fma: Remove unused code.
[gnulib.git] / ChangeLog
1 2011-11-20  Bruno Haible  <bruno@clisp.org>
2
3         fma: Remove unused code.
4         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5         unused macros.
6
7 2011-11-20  Bruno Haible  <bruno@clisp.org>
8
9         sethostname: Fix doc about AIX.
10         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11         sethostname; it has it.
12
13         sethostname: Mention more portability problems.
14         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
15         problem.
16         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17
18 2011-11-19  Bruno Haible  <bruno@clisp.org>
19
20         Depend on module fcntl-h when AT_FDCWD is used.
21         * modules/utimens (Depends-on): Add fcntl-h.
22         * modules/areadlinkat (Depends-on): Likewise.
23         * modules/areadlinkat-with-size (Depends-on): Likewise.
24         * modules/faccessat (Depends-on): Likewise.
25         * modules/fchmodat (Depends-on): Likewise.
26         * modules/fchownat (Depends-on): Likewise.
27         * modules/getcwd (Depends-on): Likewise.
28         * modules/mkdirat (Depends-on): Likewise.
29         * modules/mkfifoat (Depends-on): Likewise.
30         * modules/readlinkat (Depends-on): Likewise.
31         * modules/symlinkat (Depends-on): Likewise.
32         * modules/dup2-tests (Depends-on): Likewise.
33         * modules/fdutimensat-tests (Depends-on): Likewise.
34         * modules/futimens-tests (Depends-on): Likewise.
35
36 2011-11-19  Bruno Haible  <bruno@clisp.org>
37
38         euidaccess: Update a comment.
39         * lib/euidaccess.c: Update comment about platforms with faccessat.
40
41 2011-11-19  Bruno Haible  <bruno@clisp.org>
42
43         openat: Fix file list.
44         * modules/openat (Files): Remove lib/at-func.c.
45
46 2011-11-19  Bruno Haible  <bruno@clisp.org>
47
48         fstatat: Simplify.
49         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
50         gnulib should define rpl_fstatat, there is a
51         "#define fstatat rpl_fstatat" in <sys/stat.h>.
52
53 2011-11-19  Bruno Haible  <bruno@clisp.org>
54
55         Ensure 'inline' can be used in tests/test-utimens-common.h.
56         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
57         * modules/futimens-tests (configure.ac): Likewise.
58         * modules/utimens-tests (configure.ac): Likewise.
59         * modules/utimensat-tests (configure.ac): Likewise.
60
61 2011-11-19  Simon Josefsson  <simon@josefsson.org>
62
63         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
64         not hash_insert0.
65         (hash_insert_if_absent): Doc fix.
66
67 2011-11-19  Simon Josefsson  <simon@josefsson.org>
68
69         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
70
71 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
72
73         test-getcwd: disambiguate exit status
74         * tests/test-getcwd.c (test_long_name): Return 0..7.
75         (main): Exit with an unambiguous exit status.  The old
76         code yielded a mysterious mixture of two failure codes.
77
78         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
79         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
80         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
81         rpl_fstatat or fstatat.  This should fix the other problem
82         reported by Kai Habel in
83         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
84         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
85         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
86         and I reproduced it on a Solaris 8 host we still have in production.
87
88 2011-11-18  Jim Meyering  <meyering@redhat.com>
89
90         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
91         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
92         Add a sentence to the comment.
93         (hash_insert0): New function that simply calls hash_insert_if_absent.
94         * lib/hash.h (hash_insert_if_absent): Declare it.
95         (hash_insert0): Add deprecation attribute.
96         (_GL_ATTRIBUTE_DEPRECATED): Define.
97         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
98         not hash_insert0.
99         * NEWS: Mention it, even though it's not really an incompatible change.
100
101 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
102
103         openat: avoid compilation failure due to lack of <errno.h> inclusion
104         * lib/openat.c: Include <errno.h>.
105
106 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107
108         * modules/getcwd (Depends-on): Add fdopendir.
109         This fixes one of the two problems reported by Kai Habel in
110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
111
112         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
113         stdalign problem reported by Ian Beckwith in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
115         * modules/crypto/gc-arcfour (Depends-on):
116         Depend conditionally on crypto/arcfour.
117         * modules/crypto/gc-arctwo (Depends-on):
118         Depend conditionally on crypto/arctwo.
119         * modules/crypto/gc-des (Depends-on):
120         Depend conditionally on crypto/des.
121         * modules/crypto/gc-hmac-md5 (Depends-on):
122         Depend conditionally on crypto/hmac-md5.
123         * modules/crypto/gc-hmac-sha1 (Depends-on):
124         Depend conditionally on crypto/hmac-sha1.
125         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
126         * modules/crypto/gc-md4 (Depends-on):
127         Depend conditionally on crypto/md4.
128         * modules/crypto/gc-md5 (Depends-on):
129         Depend conditionally on crypto/md5.
130         * modules/crypto/gc-rijndael (Depends-on):
131         Depend conditionally on crypto/rijndael.
132         * modules/crypto/gc-sha1 (Depends-on):
133         Depend conditionally on crypto/sha1.
134         * modules/crypto/gc-arcfour:
135         * modules/crypto/gc-arctwo:
136         * modules/crypto/gc-des:
137         * modules/crypto/gc-hmac-md5:
138         * modules/crypto/gc-hmac-sha1:
139         * modules/crypto/gc-md2:
140         * modules/crypto/gc-md4:
141         * modules/crypto/gc-md5:
142         * modules/crypto/gc-rijndael:
143         * modules/crypto/gc-sha1:
144         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
145         now that the conditional dependencies do the work for us.
146
147 2011-11-17  Jim Meyering  <meyering@redhat.com>
148
149         tests: factor st_ctime-comparison out of two headers
150         * tests/test-utimens-common.h (ctime_compare): Define.
151         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
152         * tests/test-lutimens.h (test_lutimens): Likewise.
153         * tests/test-utimens.h (test_utimens): Likewise.
154
155         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
156         Invoke the test program via an init.sh-using wrapper.
157         * tests/test-getcwd.sh: New file.
158         * modules/getcwd-tests (Files): Add it.
159         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
160
161 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
162
163         gitlog-to-changelog: support multi-author commits.
164         The FSF cares about keeping track of all authors of patches to its
165         projects, but Git doesn't provide obvious support for multi-author
166         changesets. Consensus seems to be forming around the use of extra
167         Signed-off-by inspired lines in the log message formatted as
168         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
169         multi-author commits between version control systems.
170         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
171         log message and output in standard ChangeLog multi-author format.
172         Reported by Peter Rosin <peda@lysator.liu.se>
173
174 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
175             Bruno Haible  <bruno@clisp.org>
176
177         Fix some modules' file list.
178         * modules/fstatat (Files): Add m4/lstat.m4.
179         * modules/openat (Files): Likewise.
180         * modules/unlinkat (Files): Likewise.
181
182 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
183
184         maint.mk: fix tight-scope.mk generation in VPATH builds.
185         * top/maint.mk (tight-scope.mk): Make sure to prefix file
186         reference with $(srcdir) so that the file is found correctly even
187         when running `make syntax-check' in a VPATH build.
188
189 2011-11-13  Bruno Haible  <bruno@clisp.org>
190             Jim Meyering  <meyering@redhat.com>
191
192         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
193         * tests/init.sh (compare): Remove "No differences encountered" or
194         synonymous output from the 'diff' program.
195
196 2011-11-13  Bruno Haible  <bruno@clisp.org>
197
198         Makefile: Tweak indentation.
199         * Makefile: Use tab as first character in every line that contains rule
200         commands.
201
202 2011-11-13  Bruno Haible  <bruno@clisp.org>
203
204         Syntax check for copyright statements.
205         * check-copyright: New file.
206         * Makefile (sc_check_copyright): New rule.
207
208 2011-11-13  Simon Josefsson  <simon@josefsson.org>
209
210         * build-aux/git-version-gen: Add --prefix to configure the tag
211         match string.
212
213 2011-11-13  Simon Josefsson  <simon@josefsson.org>
214
215         * build-aux/git-version-gen: Add --help and --version.
216
217 2011-11-12  Jim Meyering  <meyering@redhat.com>
218
219         revamp the other test-exclude?.sh scripts to use init.sh, too
220         * tests/test-exclude1.sh: Use init.sh.
221         * tests/test-exclude2.sh: Likewise.
222         * tests/test-exclude3.sh: Likewise.
223         * tests/test-exclude4.sh: Likewise.
224         * tests/test-exclude5.sh: Likewise.
225         * tests/test-exclude6.sh: Likewise.
226         * tests/test-exclude7.sh: Likewise.
227         * tests/test-exclude8.sh: Likewise.
228         * modules/exclude-tests (Files): List init.sh.
229
230         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
231         These shell scripts ignored failure of the binary test-exclude,
232         so making the latter return 77 didn't cause them to be skipped.
233         * tests/test-exclude5.sh: Exit with test-exclude's error status
234         when that program fails.  Revamp to use init.sh.
235         * tests/test-exclude2.sh: Likewise.
236
237         test-exclude: fix a typo
238         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
239
240 2011-11-11  Bruno Haible  <bruno@clisp.org>
241
242         obstack: Fix compilation error on MSVC 9.
243         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
244
245 2011-11-11  Jim Meyering  <meyering@redhat.com>
246
247         test-exclude: skip tests rather than failing on deficient systems
248         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
249         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
250         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
251         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
252
253 2011-11-10  Bruno Haible  <bruno@clisp.org>
254
255         ptsname_r test: Avoid gcc warning on glibc systems.
256         * tests/test-ptsname_r.c (null_ptr): New function.
257         (test_errors): Use it.
258
259 2011-11-10  Bruno Haible  <bruno@clisp.org>
260
261         ptsname_r: Avoid compilation error on OSF/1 5.1.
262         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
264         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
265         function is not declared or incompatibly declared.
266         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
267         * modules/ptsname_r (Depends-on, configure.ac): Update.
268         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
269
270 2011-11-10  Bruno Haible  <bruno@clisp.org>
271
272         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
273         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
274         When cross-compiling, guess yes on all platforms except AIX.
275         Reported by Ludovic Courtès <ludo@gnu.org>.
276
277 2011-11-09  Bruno Haible  <bruno@clisp.org>
278
279         ptsname_r tests: Fix bugs.
280         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
281         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
282
283 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
284
285         fstatat: work with cross-compilation
286         Problem reported by Ludovic Courtès in
287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
288         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
289         "cross-compiling" and assume the bug is present.  Replace
290         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
291         an inverted sense, to be more conservative about our assumptions.
292         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
293
294 2011-11-09  Bruno Haible  <bruno@clisp.org>
295
296         Improve MODULES.html output.
297         * modules/mkfifoat (Description): Use the word "function".
298         * modules/readlinkat (Description): Likewise.
299         * modules/symlinkat (Description): Likewise.
300
301 2011-11-09  Eric Blake  <eblake@redhat.com>
302
303         ptsname_r-tests: new test module
304         * modules/ptsname_r-tests: New module.
305         * tests/test-ptsname_r.c: New file.
306
307         ptsname_r: new module
308         * modules/ptsname_r: New module.
309         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
310         * lib/ptsname.c (__ptsname_r): Split...
311         * lib/ptsname_r.c: ...into new file.
312         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
313         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
314         * modules/stdlib (Makefile.am): Substitute witnesses.
315         * lib/stdlib.in.h (ptsname_r): Declare it.
316         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
317         * MODULES.html.sh (Misc): Likewise.
318         * modules/ptsname (Depends-on): Alter dependency.
319         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
320
321 2011-11-09  Jim Meyering  <meyering@redhat.com>
322
323         announce-gen: be more concise when there's only one URL+tarball
324         * build-aux/announce-gen (get_tool_versions): When you distribute
325         only one type of tarball, combine the first two "Here are..."
326         sections and make the key-checking grammar independent of
327         how many tarballs there are.
328
329 2011-11-09  Eric Blake  <eblake@redhat.com>
330
331         openpty: provide a stub on mingw
332         * lib/pty.in.h (includes): Provide forward declarations.
333         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
334
335         raise: fix mingw handling of SIGPIPE
336         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
337
338 2011-11-08  Bruno Haible  <bruno@clisp.org>
339
340         More conditional dependencies.
341         * modules/faccessat (Depends-on): Add conditions.
342         * modules/fchmodat (Depends-on): Likewise.
343         * modules/fchownat (Depends-on): Likewise.
344         * modules/fstatat (Depends-on): Likewise.
345         * modules/mkfifoat (Depends-on): Likewise.
346         * modules/readlinkat (Depends-on): Likewise.
347         * modules/symlinkat (Depends-on): Likewise.
348         * modules/unlinkat (Depends-on): Likewise.
349         * modules/utimensat (Depends-on): Likewise.
350         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
351         * modules/linkat (Depends-on): Refine the conditions.
352         * modules/renameat (Depends-on): Likewise.
353
354 2011-11-08  Bruno Haible  <bruno@clisp.org>
355
356         faccessat: Move AC_LIBOBJ invocation to module description.
357         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
358         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
359         invocation from here...
360         * modules/faccessat (configure.ac): ... to here. Invoke
361         gl_PREREQ_FACCESSAT.
362
363 2011-11-08  Bruno Haible  <bruno@clisp.org>
364
365         faccessat: Simplify autoconf macro.
366         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
367         gl_FUNC_EUIDACCESS.
368
369 2011-11-08  Bruno Haible  <bruno@clisp.org>
370
371         renameat: Fix dependencies.
372         * modules/renameat (Depends-on): Add stdbool.
373
374 2011-11-08  Bruno Haible  <bruno@clisp.org>
375
376         mkfifoat: Fix module description.
377         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
378         not gl_UNISTD_MODULE_INDICATOR.
379
380 2011-11-08  Bruno Haible  <bruno@clisp.org>
381
382         fstatat: Remove unused dependency.
383         * modules/fstatat (Depends-on): Remove fstat.
384
385 2011-11-08  Simon Josefsson  <simon@josefsson.org>
386
387         GNUmakefile: behave when Makefile is missing.
388         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
389
390 2011-11-08  Bruno Haible  <bruno@clisp.org>
391
392         openat: Conditionalize dependencies.
393         * lib/openat.c: Reduce the scope of some #includes.
394         * modules/openat (Depends-on): Add conditions.
395
396 2011-11-07  Jim Meyering  <meyering@redhat.com>
397
398         maint.mk: extract GPG key ID without using a temporary file
399         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
400         without using a temporary file.  Based on a suggestion from Werner Koch
401         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
402
403 2011-11-07  Eric Blake  <eblake@redhat.com>
404
405         grantpt: fix typo
406         * lib/stdlib.in.h (grantpt): Check correct function.
407
408         maint.mk: silence new syntax check
409         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
410
411 2011-11-06  Bruno Haible  <bruno@clisp.org>
412
413         Doc about floating-point and math API.
414         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
415         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
416
417 2011-11-06  Bruno Haible  <bruno@clisp.org>
418
419         stdalign tests: Skip the test when compiled by Sun C.
420         * tests/test-stdalign.c (main): Skip the test on Sun C.
421
422 2011-11-06  Bruno Haible  <bruno@clisp.org>
423
424         ansi-c++-opt: Complete the 2011-06-05 change.
425         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
426         does not support namespaces, set the variable to "no", not to ":".
427
428 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
429
430         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
431
432 2011-11-06  Bruno Haible  <bruno@clisp.org>
433
434         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
435         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
436         (minus_zerol) [HP-UX]: New macro.
437         (unary_minus) [HP-UX]: New function.
438         (copysignl) [HP-UX]: Use unary_minus function.
439
440 2011-11-06  Bruno Haible  <bruno@clisp.org>
441
442         ldexp, ldexpf, ldexpl: Enhance tests.
443         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
444         and tests/test-ldexpl.c.
445         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
446         LDEXP, MIN_EXP, MAX_EXP): New macros.
447         Include test-ldexp.h.
448         (main): Just call test_function.
449         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
450         infinity.h, nan.h.
451         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
452         MAX_EXP): New macros.
453         Include test-ldexp.h.
454         (x, y): Remove variables.
455         (main): Just call test_function.
456         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
457         infinity.h, nan.h.
458         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
459         MAX_EXP): New macros.
460         Include test-ldexp.h.
461         (x, y): Remove variables.
462         (main): Just call test_function.
463         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
464         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
465         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
466         (Depends-on): Add isnand-nolibm, signbit, float.
467         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
468         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
469         (Depends-on): Add isnanf-nolibm, signbit, float.
470
471 2011-11-06  Bruno Haible  <bruno@clisp.org>
472
473         math tests: Cosmetics.
474         * tests/test-math-c++.cc: Reorder declarations.
475
476 2011-11-05  Bruno Haible  <bruno@clisp.org>
477
478         fma*: Simplify test.
479         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
480         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
481
482         Tests for module 'fmal'.
483         * modules/fmal-tests: New file.
484         * tests/test-fmal1.c: New file.
485         * tests/test-fmal2.c: New file.
486
487         New module 'fmal'.
488         * lib/math.in.h (fmal): New declaration.
489         * lib/fmal.c: New file.
490         * m4/fmal.m4: New file.
491         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
493         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
494         REPLACE_FMAL.
495         * modules/fmal: New file.
496         * doc/posix-functions/fmal.texi: Mention the new module and the various
497         bugs.
498
499         Tests for module 'fmaf'.
500         * modules/fmaf-tests: New file.
501         * tests/test-fmaf1.c: New file.
502         * tests/test-fmaf2.c: New file.
503
504         New module 'fmaf'.
505         * lib/math.in.h (fmaf): New declaration.
506         * lib/fmaf.c: New file.
507         * m4/fmaf.m4: New file.
508         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
510         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
511         REPLACE_FMAF.
512         * modules/fmaf: New file.
513         * doc/posix-functions/fmaf.texi: Mention the new module and the various
514         bugs.
515
516         Tests for module 'fma'.
517         * modules/fma-tests: New file.
518         * tests/test-fma1.c: New file.
519         * tests/test-fma1.h: New file.
520         * tests/test-fma2.c: New file.
521         * tests/test-fma2.h: New file.
522
523         New module 'fma'.
524         * lib/math.in.h (fma): New declaration.
525         * lib/fma.c: New file.
526         * m4/fma.m4: New file.
527         * m4/fegetround.m4: New file.
528         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
530         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
531         REPLACE_FMA.
532         * modules/fma: New file.
533         * doc/posix-functions/fma.texi: Mention the new module and the various
534         bugs.
535
536         Extend gl_MATHFUNC.
537         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
538         Support 'void' as argument type.
539         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
540
541 2011-11-05  Jim Meyering  <meyering@redhat.com>
542
543         maint.mk: also prohibit inclusion of dirent.h without use
544         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
545
546 2011-11-05  Bruno Haible  <bruno@clisp.org>
547
548         ldexpl tests: Avoid test failure on MSVC 9.
549         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
550         value. Needed in order to enforce the conversion from a value greater
551         than LDBL_MAX to Infinity.
552
553 2011-11-05  Bruno Haible  <bruno@clisp.org>
554
555         New modules 'at-internal', 'openat-h', split off from module 'openat'.
556         * modules/at-internal: New file, extracted from modules/openat.
557         * modules/openat-h: New file.
558         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
559         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
560         * modules/openat (Description): Add reference to POSIX function.
561         (Files): Remove lib/openat.h, lib/openat-proc.c.
562         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
563         intprops, unistd.
564         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
565         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
566         gl_FCNTL_MODULE_INDICATOR.
567         (Include): Remove unistd.h, openat.h.
568         * modules/areadlinkat (Files): Add lib/at-func.c.
569         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
570         openat-die, openat-h, save-cwd.
571         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
572         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
573         openat-die, openat-h, save-cwd, unistd.
574         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
575         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
576         openat-h, save-cwd. Remove fcntl-h, openat.
577         * modules/fchmodat (Files): Remove lib/openat.h.
578         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
579         openat, stdbool, unistd.
580         * modules/fchownat (Files): Remove lib/openat.h.
581         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
582         openat, stdbool, sys_stat.
583         * modules/fdopendir (Files): Remove lib/openat-priv.h,
584         lib/openat-proc.c.
585         (Depends-on): Add at-internal.
586         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
587         * modules/fstatat (Files): Remove lib/openat.h.
588         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
589         stdbool, unistd.
590         * modules/fts (Depends-on): Add openat-h.
591         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
592         openat.
593         * modules/mkdirat (Files): Remove lib/openat.h.
594         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
595         openat, stdbool, sys_stat.
596         * modules/mkfifoat (Files): Add lib/at-func.c.
597         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
598         openat-h, save-cwd. Remove fcntl-h, openat.
599         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
600         * modules/readlinkat (Files): Add lib/at-func.c.
601         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
602         openat-h, save-cwd. Remove fcntl-h, openat.
603         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
604         openat.
605         * modules/selinux-at (Files): Add lib/at-func.c.
606         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
607         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
608         * modules/symlinkat (Files): Add lib/at-func.c.
609         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
610         openat-h, save-cwd. Remove fcntl-h, openat.
611         * modules/unlinkat (Files): Remove lib/openat.h.
612         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
613         stdbool.
614         * modules/utimensat (Files): Add lib/at-func.c.
615         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
616         openat-die, openat-h, save-cwd.
617         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
618         * modules/fdutimensat-tests (Depends-on): Add openat.
619         * modules/fstatat-tests (Depends-on): Add openat-h.
620         * modules/readlinkat-tests (Depends-on): Add openat.
621         * modules/symlinkat-tests (Depends-on): Add openat.
622
623 2011-11-05  Bruno Haible  <bruno@clisp.org>
624
625         openat: Include <stdbool.h>.
626         * lib/openat.c: Include <stdbool.h>.
627
628 2011-11-04  Bruno Haible  <bruno@clisp.org>
629
630         fchownat, renameat, unlinkat: Fix dependencies.
631         * modules/fchownat (Depends-on): Add fstatat.
632         * modules/renameat (Depends-on): Likewise.
633         * modules/unlinkat (Depends-on): Likewise.
634
635 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
636
637         openat: remove direct dependency on dirent
638         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
639         and hasn't been needed ever since fdopendir was split into its own
640         module on 2009-08-31.
641         * modules/openat (Depends-on): Remove dirent.
642
643 2011-11-04  Bruno Haible  <bruno@clisp.org>
644
645         renameat: Optimize code size.
646         * modules/renameat (configure.ac): Don't compile at-func2.c if
647         REPLACE_RENAMEAT is 1.
648
649 2011-11-04  Bruno Haible  <bruno@clisp.org>
650
651         openat tests: Fix file list.
652         * modules/openat-tests (Files): Add tests/test-open.h.
653
654 2011-11-04  Bruno Haible  <bruno@clisp.org>
655
656         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
657         * modules/fchmodat (Depends-on): Add openat-die.
658         * modules/fchownat (Depends-on): Likewise.
659         * modules/linkat (Depends-on): Likewise.
660         * modules/renameat (Depends-on): Likewise.
661         * modules/openat (Depends-on): Add dirent.
662
663 2011-11-04  Jim Meyering  <meyering@redhat.com>
664
665         at-func*.c: fix comments
666         * lib/at-func2.c: Correct/improve first-line comment.
667         * lib/at-func.c: Correct grammar in first-line comment.
668
669 2011-11-04  Bruno Haible  <bruno@clisp.org>
670
671         New module 'mkdirat', split off from module 'openat'.
672         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
673         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
674         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
675         * modules/mkdirat: New file, extracted from modules/openat.
676         * modules/openat (Files): Remove lib/mkdirat.c.
677         (Depends-on): Remove mkdir.
678         (configure.ac): Remove AC_LIBOBJ of mkdirat.
679         (Include): Remove <sys/stat.h>.
680         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
681         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
682         tests/test-mkdir.h.
683         (Depends-on): Remove ignore-value.
684         (Makefile.am): Remove rules for test-mkdirat.
685         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
686         of module 'openat'.
687         * NEWS: Mention the change.
688
689 2011-11-04  Bruno Haible  <bruno@clisp.org>
690
691         closedir: Avoid warning on mingw.
692         * lib/closedir.c: Include <unistd.h>.
693
694 2011-11-04  Bruno Haible  <bruno@clisp.org>
695
696         New module 'fstatat', split off from module 'openat'.
697         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
698         defined.
699         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
700         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
701         gl_FUNC_FSTATAT.
702         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
703         * modules/fstatat: New file, extracted from modules/openat.
704         * modules/openat (Files): Remove lib/fstatat.c.
705         (Depends-on): Remove lstat.
706         (configure.ac): Remove AC_LIBOBJ of fstatat.
707         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
708         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
709         tests/test-lstat.h, tests/test-stat.h.
710         (Depends-on): Remove getcwd-lgpl.
711         (Makefile.am): Remove rules for test-fstatat.
712         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
713         of module 'openat'.
714         * NEWS: Mention the change.
715         * modules/getcwd (Depends-on): Add fstatat.
716         * modules/linkat (Depends-on): Likewise.
717         * modules/mkfifoat-tests (Depends-on): Likewise.
718         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
719
720 2011-11-03  Bruno Haible  <bruno@clisp.org>
721
722         New module 'unlinkat', split off from module 'openat'.
723         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
724         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
725         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
726         * modules/unlinkat: New file, extracted from modules/openat. Correct
727         the dependency conditions.
728         * modules/openat (Files): Remove lib/unlinkat.c.
729         (Depends-on): Remove rmdir, unlink.
730         (configure.ac): Remove AC_LIBOBJ of unlinkat.
731         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
732         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
733         tests/test-rmdir.h, tests/test-unlink.h.
734         (Depends-on): Remove unlinkdir.
735         (Makefile.am): Remove rules for test-unlinkat.
736         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
737         of module 'openat'.
738         * NEWS: Mention the change.
739         * modules/linkat-tests (Depends-on): Add unlinkat.
740         * modules/mkfifoat-tests (Depends-on): Likewise.
741         * modules/readlinkat-tests (Depends-on): Likewise.
742
743 2011-11-02  Bruno Haible  <bruno@clisp.org>
744
745         New module 'fchmodat', split off from module 'openat'.
746         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
747         defined.
748         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
750         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
751         * modules/fchmodat: New file, extracted from modules/openat.
752         * modules/openat (Files): Remove lib/fchmodat.c.
753         (configure.ac): Remove AC_LIBOBJ of fchmodat.
754         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
755         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
756         (Makefile.am): Remove rules for test-fchmodat.
757         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
758         of module 'openat'.
759         * NEWS: Mention the change.
760
761 2011-11-02  Jim Meyering  <meyering@redhat.com>
762
763         putenv: indent #definition of "environ" to placate cppi
764         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
765
766         gitlog-to-changelog: provide a ChangeLog-repair mechanism
767         Git logs are often treated as immutable, because editing them
768         changes the SHA1 checksums of all descendants.  Thus, errors in
769         git logs tend to stay there forever.  However, when we generate
770         a ChangeLog file -- typically for distribution -- from that git log,
771         we can actually make corrections in the generated file.  The key
772         lies in recording in machine-readable/applicable form the desired
773         corrections.  See --help for description and an example.
774         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
775         (usage): Describe it; alphabetize option descriptions.
776         (main): Honor the new option, carefully.
777
778 2011-11-01  Jim Meyering  <meyering@redhat.com>
779
780         gitlog-to-changelog: avoid an infloop
781         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
782         that ends up being empty.
783
784 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
785
786         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
787         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
788         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
789         contains (possibly-quoted) backslashes.  This should avoid
790         all-too-common shell bugs if COMPLICATED contains backslashes in
791         the "wrong" places.  Reported by David Evans in
792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
793         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
794         because we want ASCII ranges.  Is there some reason we don't use
795         the C locale everywhere in this script?
796         (func_module, top level): Avoid unwanted pathname expansion when
797         $repo_url_prefix or $repo_url_suffix_repl contain shell
798         metacharacters like '?' and '*'.
799
800 2011-11-01  Bruno Haible  <bruno@clisp.org>
801
802         fchownat: Improve description.
803         * modules/fchownat (Description): Add link to function.
804
805 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
806
807         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
808         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
810         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
811
812 2011-11-01  Bruno Haible  <bruno@clisp.org>
813
814         alignof: Avoid collision with stdalign module.
815         * lib/alignof.h (alignof): Remove macro.
816         * NEWS: Mention the change.
817         Reported by Paul Eggert.
818
819 2011-11-01  Bruno Haible  <bruno@clisp.org>
820
821         New module 'fchownat', split off from module 'openat'.
822         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
823         defined.
824         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
825         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
826         invoke gl_FUNC_FCHOWNAT.
827         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
828         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
829         * modules/fchownat: New file, extracted from modules/openat.
830         * modules/openat (Files): Remove lib/fchownat.c.
831         (Depends-on): Remove lchown.
832         (configure.ac): Remove AC_LIBOBJ of fchownat.
833         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
834         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
835         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
836         (Depends-on): Remove mgetgroups, usleep, stat-time.
837         (configure.ac): Remove test for getegid.
838         (Makefile.am): Remove rules for test-fchownat.
839         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
840         of module 'openat'.
841         * NEWS: Mention the change.
842
843 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
844
845         stdalign: port better to MSVC and to Sun C 5.11
846         This fixes some of the problems reported by Bruno Haible in
847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
848         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
849         shortcomings of MSVC and of Sun C 5.11.
850         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
851         around __declspec arg.
852         * modules/stdalign-tests (Files): Add tests/macros.h.
853         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
854         Include macros.h, for ASSERT.
855         (DECLARE_ALIGNED): Remove.
856         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
857         to catch bug), and to 1 if not (simplifies the rest of the code).
858         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
859         (CHECK_AUTO): Remove.
860         (CHECK_ALIGNED): Check only the alignment of the static vars,
861         since auto var alignment isn't supported by Sun C 5.11.
862         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
863         ASSERT failures are easier to diagnose.
864
865 2011-10-31  Bruno Haible  <bruno@clisp.org>
866
867         doc about some IRIX 5.3 problems.
868         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
869         on IRIX 5.3.
870         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
871         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
872         5.3.
873         * doc/posix-functions/grantpt.texi: Likewise.
874         * doc/posix-functions/unlockpt.texi: Likewise.
875         * doc/posix-functions/lgamma.texi: Likewise.
876         * doc/posix-functions/nextafter.texi: Likewise.
877         * doc/posix-functions/remainder.texi: Likewise.
878         * doc/posix-functions/select.texi: Mention misplaced declaration on
879         IRIX 5.3.
880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
881
882 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
883
884         gitlog-to-changelog: fix git-log invocation.
885         git-log mishandles date strings before 1970-01-01 UTC, and there is
886         no use to specify --since=1970-01-01 by default anyway.
887         * build-aux/gitlog-to-changelog: By default, when no --since option
888         was given, do not specify explicit --since option to git-log.
889
890 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
891
892         gitlog-to-changelog: new option --append-dot.
893         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
894         first non-blank line of each commit message terminated with a dot.
895
896 2011-10-30  Bruno Haible  <bruno@clisp.org>
897
898         ffsl, ffsll: Avoid compilation error due to 'restrict'.
899         * lib/ffsl.h: Include <config.h>.
900         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
901
902 2011-10-30  Jim Meyering  <meyering@redhat.com>
903
904         GNUmakefile: reenable "make syntax-check" for most projects
905         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
906         build-aux variable", "syntax-check" would do nothing but succeed with
907         the "No version control files detected..." diagnostic (unless you
908         happened to override _build-aux via cfg.mk).
909         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
910         to precede inclusion of maint.mk.  Otherwise, these variables would
911         be used undefined in any project that does not override the default.
912
913 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
914
915         gitlog-to-changelog: treat a message with only blank lines as empty.
916         * build-aux/gitlog-to-changelog: Move the code that removes leading and
917         trailing blank lines before the code that issues a warning about an
918         empty commit message.
919
920 2011-10-30  Jim Meyering  <meyering@redhat.com>
921
922         test-parse-datetime.c: avoid new DST-related false positive test failure
923         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
924         based on the time/date we'll convert, not the current time.
925         Otherwise, the moment we cross a DST boundary like today's in
926         Europe, (CEST to CET), that offset ends up being one hour off.
927
928 2011-10-27  Bruno Haible  <bruno@clisp.org>
929
930         fstat: Tweak documentation.
931         * modules/fstat (Description): More precise description.
932
933 2011-10-27  Bruno Haible  <bruno@clisp.org>
934
935         Update documentation regarding 'largefile' module.
936         * doc/posix-functions/fstat.texi: Tweak wording.
937         * doc/posix-functions/opendir.texi: Mention that the module fixes the
938         problems with huge directories and/or small ino_t types.
939         * doc/posix-functions/readdir.texi: Likewise.
940         * doc/posix-functions/rewinddir.texi: Likewise.
941
942 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
943
944         maint.mk: don't maintain a second build-aux variable.
945         * maint.mk (build_aux): Removed.  The maintainer-makefile module
946         depends on GNUmakefile, which already maintains a cfg.mk
947         overridable $(_build-aux) for projects with a non-standard
948         build-aux directory location, although without the $(srcdir)
949         prefix.  Use that variable consistently instead of introducing a
950         second one.  Adjust all call sites.
951
952 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
953
954         Add stdalign module and use it in other modules.
955         This is based on a previous proposal by Bruno Haible
956         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
957
958         stdalign: new module
959         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
960         * modules/stdalign: New files.
961         * MODULES.html.sh (c1x_core_properties): Add stdalign.
962         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
963
964         stdalign-tests: new module
965         * modules/stdalign-tests, tests/test-stdalign.c: New files.
966
967         argp: use stdalign
968         * lib/argp-parse.c: Include <stdalign.h>.
969         (alignof): Remove.
970         * modules/argp (Depends-on): Add stdalign.
971
972         crypto libraries: use stdalign
973         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
974         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
975         Do not include <stdlib.h> twice, in md4.c.
976         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
977         because we are accessing a pointer's bit-pattern, not a size.
978         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
979         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
980         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
981         * modules/crypto/sha512: Likewise.
982
983         sys_socket: use stdalign, not alignof
984         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
985         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
986
987 2011-10-27  Bruno Haible  <bruno@clisp.org>
988
989         raise test: Avoid a test failure on Linux/MIPS.
990         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
991         because 99 is a valid signal on Linux/MIPS.
992
993 2011-10-27  Bruno Haible  <bruno@clisp.org>
994
995         nonblocking tests: Fix test failure on Linux/MIPS.
996         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
997         Set to 270000.
998
999 2011-10-27  Bruno Haible  <bruno@clisp.org>
1000
1001         utimensat: Work around problem on Linux/hppa.
1002         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1003         values.
1004         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1005
1006 2011-10-25  Jim Meyering  <meyering@redhat.com>
1007
1008         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1009         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1010         after symbols like NULL, size_t, etc.
1011         Reported by Alfred M. Szmidt.
1012
1013         maint.mk: exempt ENODATA from a syntax-check rule
1014         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1015         from the sc_prohibit_always-defined_macros syntax-check rule.
1016         Add a comment.  See this for more details:
1017         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1018
1019 2011-10-23  Jim Meyering  <meyering@redhat.com>
1020
1021         fts: close parent dir FD before returning from post-traversal fts_read
1022         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1023         unlink A, even though an FD open on A remained.  This is suboptimal
1024         (holding a file descriptor open longer than needed), but otherwise not
1025         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1026         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1027         that represents a real problem: it causes the removal of A to fail
1028         with e.g., "rm: cannot remove `A': Device or resource busy"
1029
1030         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1031         directory file descriptors.  After completing the final, FTS_DP,
1032         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1033         cache, but then proceeded to add a new FD to it via the subsequent
1034         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1035         final file descriptor would be closed only via fts_close's call to
1036         fd_ring_clear.  Now, it is usually closed earlier, via the final
1037         FTS_DP-returning fts_read call.
1038         * lib/fts.c (restore_initial_cwd): New function, converted from
1039         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1040         Update callers.
1041         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1042         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1043
1044 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1045             Bruno Haible  <bruno@clisp.org>
1046             Jim Meyering  <jim@meyering.net>
1047
1048         readme-release: improve safety of release prep instructions.
1049         * README-release: Don't git pull all branches when only master
1050         is needed for the release process.
1051         Run make maintainer-clean before changing trees and merging.
1052         Don't try to run ./configure right after git pull in case files
1053         that influence the bootstrap process have changed, move the
1054         ./configure step to after running ./bootstrap.
1055         Don't bootstrap "one last time"... it's the first time!
1056
1057 2011-10-22  Bruno Haible  <bruno@clisp.org>
1058
1059         errno, strerror-override: Support for MSVC 10.
1060         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1061         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1062         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1063         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1064         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1065         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1066         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1067         Assign values compatible with MSVC 10.
1068         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1069         New macros.
1070         (GNULIB_defined_EWINSOCK): New macro.
1071         * lib/strerror-override.c (strerror_override): Update accordingly.
1072         * lib/strerror-override.h: Likewise.
1073         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1074         longer equal to the corresponding errno value.
1075         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1076
1077 2011-10-22  Bruno Haible  <bruno@clisp.org>
1078
1079         perror: Recognize when test program crashes.
1080         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1081         strerror, set gl_cv_func_perror_works to no.
1082         Reported by Daniel Richard G. <skunk@iskunk.org>.
1083
1084         perror: Fix indentation.
1085         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1086
1087 2011-10-22  Bruno Haible  <bruno@clisp.org>
1088
1089         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1090         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1091         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1092         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1093         functions, not as a macro.
1094         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1095         macros.
1096         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1097         absence of macro.
1098         Suggested by Eric Blake.
1099         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1100
1101 2011-10-21  Bruno Haible  <bruno@clisp.org>
1102
1103         relocatable-prog-wrapper: Don't leave object files behind.
1104         * build-aux/install-reloc: Re-synchronize list of .o files to be
1105         removed with list of compilation units.
1106
1107 2011-10-20  Bruno Haible  <bruno@clisp.org>
1108
1109         openpty, posix_openpt: Remove code duplication.
1110         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1111         * lib/openpty.c: Include <stdlib.h>.
1112         (openpty): Use posix_openpt on all platforms except IRIX.
1113         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1114
1115 2011-10-20  Bruno Haible  <bruno@clisp.org>
1116
1117         unlockpt: Detect invalid argument.
1118         * lib/unlockpt.c: Include <fcntl.h>.
1119         (unlockpt): Check whether fd is valid, using fcntl().
1120         * modules/unlockpt (Depends-on): Add fcntl-h.
1121
1122 2011-10-20  Bruno Haible  <bruno@clisp.org>
1123
1124         openpty: Avoid compilation error on AIX 6.1.
1125         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1126
1127 2011-10-20  Bruno Haible  <bruno@clisp.org>
1128
1129         posix_openpt: Support for OpenBSD.
1130         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1131         (posix_openpt) [OpenBSD]: New code.
1132         * lib/grantpt.c: Include <fcntl.h>.
1133         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1134         * modules/grantpt (Depends-on): Add fcntl-h.
1135
1136 2011-10-20  Bruno Haible  <bruno@clisp.org>
1137
1138         posix_openpt test: Coding style.
1139         * tests/test-posix_openpt.c: Use GNU coding style.
1140
1141 2011-10-20  Bruno Haible  <bruno@clisp.org>
1142
1143         grantpt: Support --avoid=pt_chown.
1144         * modules/grantpt (Files): Add lib/pty-private.h.
1145
1146 2011-10-20  Bruno Haible  <bruno@clisp.org>
1147
1148         posix_openpt: Fix autoconf macro.
1149         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1150         unneeded check for _getpty.
1151
1152 2011-10-20  Bruno Haible  <bruno@clisp.org>
1153
1154         openpty: Update comments.
1155         * lib/openpty.c: Add comments about Minix.
1156
1157 2011-10-19  Eric Blake  <eblake@redhat.com>
1158
1159         openpty: relax license
1160         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1161
1162         pt_chown: use configmake to simplify build
1163         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1164
1165         ptsname and others: relax license
1166         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1167         * modules/unlockpt (License): Likewise.
1168         * modules/pt_chown (License): Likewise.
1169         * modules/ptsname (License): Likewise.
1170         * modules/ttyname_r (License): Likewise.
1171
1172 2011-10-19  Jim Meyering  <meyering@redhat.com>
1173
1174         posix_openpt: remove spurious #endif
1175         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1176
1177 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1178
1179         maint.mk: Respect $(build_aux) in web-manual rule.
1180         * top/maint.mk (web-manual): Find gen-announce script in user's
1181         $(build_aux) directory instead of hard-coding 'build-aux'.
1182
1183 2011-10-19  Bruno Haible  <bruno@clisp.org>
1184
1185         posix_openpt: Fix compilation error.
1186         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1187         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1188         Mention the openpty module as an alternative.
1189
1190 2011-10-19  Bruno Haible  <bruno@clisp.org>
1191
1192         Support for old NeXTstep 3.3 frexp().
1193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1194         execution time of the test to 5 seconds.
1195         Reported by Daniel Richard G. <skunk@iskunk.org>.
1196
1197 2011-10-19  Bruno Haible  <bruno@clisp.org>
1198
1199         Support for old NeXTstep 3.3 sed.
1200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1201         part, use /.../, not \|...|. Escape periods in the header file name.
1202         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1203         Reported by Daniel Richard G. <skunk@iskunk.org>.
1204
1205 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1206
1207         Support for old NeXTstep 3.3 gcc.
1208         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1209         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1210         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1211         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1212         * lib/regex.h (_Restrict_arr_): Likewise.
1213         * lib/regex_internal.h (re_token_t): Likewise.
1214         * lib/regexec.c (check_node_accept_bytes): Likewise.
1215         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1216
1217 2011-10-18  Eric Blake  <eblake@redhat.com>
1218
1219         posix_openpt: new module
1220         * modules/posix_openpt: New module.
1221         * m4/posix_openpt.m4: New file.
1222         * lib/posix_openpt.c: Likewise.
1223         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1224         (gl_STDLIB_H_DEFAULTS): Set defaults.
1225         * modules/stdlib (Makefile.am): Substitute macros.
1226         * lib/stdlib.in.h (posix_openpt): Declare.
1227         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1228         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1229         * modules/posix_openpt-tests: New test module.
1230         * tests/test-posix_openpt.c: New test.
1231
1232 2011-10-15  Bruno Haible  <bruno@clisp.org>
1233
1234         xstrtoll: Fix compilation failure.
1235         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1236         from lib/strtol.c.
1237         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1238         some platforms.
1239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1240
1241 2011-10-15  Bruno Haible  <bruno@clisp.org>
1242
1243         vasnprintf: Optimize bit search operation.
1244         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1246         gl_DOUBLE_EXPONENT_LOCATION.
1247         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1248         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1249         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1250         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1251         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1252         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1253         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1254         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1255         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1256
1257 2011-10-15  Bruno Haible  <bruno@clisp.org>
1258
1259         vasnprintf: Fix comments.
1260         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1261
1262 2011-10-14  Bruno Haible  <bruno@clisp.org>
1263
1264         Tests for module 'integer_length_ll'.
1265         * modules/integer_length_ll-tests: New file.
1266         * tests/test-integer_length_ll.c: New file.
1267
1268         New module 'integer_length_ll'.
1269         * lib/integer_length_ll.c: New file.
1270         * modules/integer_length_ll: New file.
1271
1272 2011-10-14  Bruno Haible  <bruno@clisp.org>
1273
1274         Tests for module 'integer_length_l'.
1275         * modules/integer_length_l-tests: New file.
1276         * tests/test-integer_length_l.c: New file.
1277
1278         New module 'integer_length_l'.
1279         * lib/integer_length_l.c: New file.
1280         * modules/integer_length_l: New file.
1281
1282 2011-10-14  Bruno Haible  <bruno@clisp.org>
1283
1284         Tests for module 'integer_length'.
1285         * modules/integer_length-tests: New file.
1286         * tests/test-integer_length.c: New file.
1287
1288         New module 'integer_length'.
1289         * lib/integer_length.h: New file.
1290         * lib/integer_length.c: New file.
1291         * modules/integer_length: New file.
1292
1293 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1294
1295         popen: Fix dependency conditions.
1296         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1297
1298 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1299
1300         perror: Fix autoconf test.
1301         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1302         <stdlib.h> and <string.h>.
1303
1304 2011-10-14  Bruno Haible  <bruno@clisp.org>
1305
1306         ffsl: Optimize on 64-bit platforms.
1307         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1308         unrolling.
1309
1310 2011-10-13  Bruno Haible  <bruno@clisp.org>
1311
1312         ffsl: Optimize on 32-bit platforms.
1313         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1314         use ffs() without a loop.
1315
1316         ffsl, ffsll: Optimize for GCC.
1317         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1318         * lib/ffsl.c (GCC_BUILTIN): New macro.
1319         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1320
1321 2011-10-13  Bruno Haible  <bruno@clisp.org>
1322
1323         ffs, bcopy, memset: Support symbol renaming via config.h.
1324         * lib/ffs.c: Include <config.h>.
1325         * lib/bcopy.c: Likewise.
1326         * lib/memset.c: Likewise.
1327
1328 2011-10-10  Bruno Haible  <bruno@clisp.org>
1329
1330         atanl: Simplify for platforms where 'long double' == 'double'.
1331         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1332         alternative implementation.
1333         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1334         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1335         * modules/atanl (Depends-on): Add atan. Update conditions.
1336
1337 2011-10-10  Bruno Haible  <bruno@clisp.org>
1338
1339         acosl: Simplify for platforms where 'long double' == 'double'.
1340         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1341         alternative implementation.
1342         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1343         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1344         * modules/acosl (Depends-on): Add acos. Update conditions.
1345
1346 2011-10-10  Bruno Haible  <bruno@clisp.org>
1347
1348         asinl: Simplify for platforms where 'long double' == 'double'.
1349         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1350         alternative implementation.
1351         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1352         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1353         * modules/asinl (Depends-on): Add asin. Update conditions.
1354
1355 2011-10-10  Bruno Haible  <bruno@clisp.org>
1356
1357         tanl: Simplify for platforms where 'long double' == 'double'.
1358         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1359         implementation.
1360         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1361         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1362         * modules/tanl (Depends-on): Add tan. Update conditions.
1363         (configure.ac): Don't compile trigl.c if
1364         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1365
1366 2011-10-10  Bruno Haible  <bruno@clisp.org>
1367
1368         cosl: Simplify for platforms where 'long double' == 'double'.
1369         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1370         implementation.
1371         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1372         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1373         * modules/cosl (Depends-on): Add cos. Update conditions.
1374         (configure.ac): Don't compile sincosl.c and trigl.c if
1375         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1376
1377 2011-10-10  Bruno Haible  <bruno@clisp.org>
1378
1379         sinl: Simplify for platforms where 'long double' == 'double'.
1380         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1381         implementation.
1382         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1383         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1384         * modules/sinl (Depends-on): Add sin. Update conditions.
1385         (configure.ac): Don't compile sincosl.c and trigl.c if
1386         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1387
1388 2011-10-10  Bruno Haible  <bruno@clisp.org>
1389
1390         logl: Simplify for platforms where 'long double' == 'double'.
1391         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1392         implementation.
1393         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1394         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1395         * modules/logl (Depends-on): Add log. Update conditions.
1396
1397 2011-10-10  Bruno Haible  <bruno@clisp.org>
1398
1399         expl: Simplify for platforms where 'long double' == 'double'.
1400         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1401         implementation.
1402         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1403         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1404         * modules/expl (Depends-on): Add exp. Update conditions.
1405
1406 2011-10-10  Bruno Haible  <bruno@clisp.org>
1407
1408         sqrtl: Simplify for platforms where 'long double' == 'double'.
1409         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1410         alternative implementation.
1411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1412         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1413         * modules/sqrtl (Depends-on): Update conditions.
1414
1415 2011-10-10  Bruno Haible  <bruno@clisp.org>
1416
1417         ldexpl: Simplify for platforms where 'long double' == 'double'.
1418         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1419         alternative implementation.
1420         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1421         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1422         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1423
1424 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1425
1426         ffsll: set correct witness
1427         * modules/ffsll (configure.ac): Fix typo.
1428
1429 2011-10-10  Bruno Haible  <bruno@clisp.org>
1430
1431         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1432         * lib/printf-frexpl.c: Include <config.h>.
1433         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1434         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1435         second time.
1436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1437         gl_LONG_DOUBLE_VS_DOUBLE.
1438         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1439         conditions.
1440
1441 2011-10-10  Bruno Haible  <bruno@clisp.org>
1442
1443         frexpl: Simplify for platforms where 'long double' == 'double'.
1444         * lib/frexpl.c: Include <config.h>.
1445         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1446         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1447         time.
1448         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1449         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1450         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1451         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1452         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1453         conditions.
1454
1455 2011-10-10  Jim Meyering  <meyering@redhat.com>
1456
1457         test-renameat: don't leave behind a temporary file
1458         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1459           ERROR: files left in build directory after distclean:
1460           ./gltests/test-renameat.too
1461           make[1]: *** [distcleancheck] Error 1
1462         Reported by Tom G. Christensen.
1463
1464 2011-10-09  Bruno Haible  <bruno@clisp.org>
1465
1466         rint: Determine RINT_LIBM correctly on AIX 7.
1467         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1468         directly, not only through a function pointer. Also accept an optional
1469         4th argument with extra code.
1470         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1471         rintf() call by gcc when optimizing.
1472
1473         mathfunc.m4: Refactor.
1474         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1475         m4 variable.
1476
1477 2011-10-09  Bruno Haible  <bruno@clisp.org>
1478
1479         rintl: Simplify for platforms where 'long double' == 'double'.
1480         * lib/rintl.c: Include <config.h>.
1481         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1482         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1483         time.
1484         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1485         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1486         * modules/rintl (Depends-on): Add rint. Update conditions.
1487
1488 2011-10-09  Bruno Haible  <bruno@clisp.org>
1489
1490         roundl: Simplify for platforms where 'long double' == 'double'.
1491         * lib/roundl.c: Include <config.h>.
1492         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1493         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1494         time.
1495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1496         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1497         * modules/roundl (Depends-on): Add round. Update conditions.
1498
1499 2011-10-09  Bruno Haible  <bruno@clisp.org>
1500
1501         truncl: Simplify for platforms where 'long double' == 'double'.
1502         * lib/truncl.c: Include <config.h>.
1503         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1504         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1505         time.
1506         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1507         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1508         * modules/truncl (Depends-on): Add trunc. Update conditions.
1509
1510 2011-10-09  Bruno Haible  <bruno@clisp.org>
1511
1512         ceill: Simplify for platforms where 'long double' == 'double'.
1513         * lib/ceill.c: Include <config.h>.
1514         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1515         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1516         time.
1517         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1518         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1519         * modules/ceill (Depends-on): Add ceil. Update conditions.
1520
1521 2011-10-09  Bruno Haible  <bruno@clisp.org>
1522
1523         floorl: Simplify for platforms where 'long double' == 'double'.
1524         * lib/floorl.c: Include <config.h>.
1525         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1526         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1527         time.
1528         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1529         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1530         * modules/floorl (Depends-on): Add floor. Update conditions.
1531
1532 2011-10-09  Bruno Haible  <bruno@clisp.org>
1533
1534         rint: Fix ordering constraints.
1535         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1536         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1537         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1538
1539 2011-10-09  Bruno Haible  <bruno@clisp.org>
1540
1541         copysignl: Simplify for platforms where 'long double' == 'double'.
1542         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1543         alternative.
1544         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1545         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1546         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1547
1548 2011-10-09  Bruno Haible  <bruno@clisp.org>
1549
1550         Tests for module 'rintl'.
1551         * modules/rintl-tests: New file.
1552         * tests/test-rintl.c: New file.
1553
1554         New module 'rintl'.
1555         * lib/math.in.h (rintl): New declaration.
1556         * lib/rintl.c: New file.
1557         * m4/rintl.m4: New file.
1558         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1560         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1561         * modules/rintl: New file.
1562         * tests/test-math-c++.cc: Check the declaration of rintl.
1563         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1564         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1565         * doc/posix-functions/rintl.texi: Mention the new module.
1566
1567 2011-10-09  Bruno Haible  <bruno@clisp.org>
1568
1569         Tests for module 'rintf'.
1570         * modules/rintf-tests: New file.
1571         * tests/test-rintf.c: New file.
1572
1573         New module 'rintf'.
1574         * lib/math.in.h (rintf): New declaration.
1575         * lib/rintf.c: New file.
1576         * m4/rintf.m4: New file.
1577         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1579         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1580         * modules/rintf: New file.
1581         * tests/test-math-c++.cc: Check the declaration of rintf.
1582         * doc/posix-functions/rintf.texi: Mention the new module.
1583
1584 2011-10-09  Bruno Haible  <bruno@clisp.org>
1585
1586         rint: Support for MSVC.
1587         * lib/math.in.h (rint): New declaration.
1588         * lib/rint.c: New file.
1589         * m4/rint.m4: New file.
1590         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1592         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1593         * modules/rint (Description): Fix.
1594         (Files): Add lib/rint.c, m4/rint.m4.
1595         (Depends-on): Add math.
1596         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1597         gl_MATH_MODULE_INDICATOR.
1598         * tests/test-math-c++.cc: Check the declaration of rint.
1599         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1600         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1601         * doc/posix-functions/rint.texi: Mention the replacement provided by
1602         the module.
1603
1604         rint tests: More tests.
1605         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1606         minus-zero.h, infinity.h, nan.h.
1607         (main): Skip the test if the current rounding mode is not standard. Add
1608         tests for negative numbers, minus zero, infinity, NaN.
1609         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1610         tests/nan.h.
1611         (Depends-on): Add isnand-nolibm.
1612
1613 2011-10-09  Bruno Haible  <bruno@clisp.org>
1614
1615         Tests for module 'copysignl'.
1616         * modules/copysignl-tests: New file.
1617         * tests/test-copysignl.c: New file.
1618
1619         New module 'copysignl'.
1620         * lib/math.in.h (copysignl): New declaration.
1621         * lib/copysignl.c: New file.
1622         * m4/copysignl.m4: New file.
1623         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1625         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1626         HAVE_COPYSIGNL.
1627         * modules/copysignl: New file.
1628         * tests/test-math-c++.cc: Check the declaration of copysignl.
1629         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1630         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1631         * doc/posix-functions/copysignl.texi: Mention the new module.
1632
1633 2011-10-09  Bruno Haible  <bruno@clisp.org>
1634
1635         Tests for module 'copysignf'.
1636         * modules/copysignf-tests: New file.
1637         * tests/test-copysignf.c: New file.
1638
1639         New module 'copysignf'.
1640         * lib/math.in.h (copysignf): New declaration.
1641         * lib/copysignf.c: New file.
1642         * m4/copysignf.m4: New file.
1643         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1645         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1646         HAVE_COPYSIGNF.
1647         * modules/copysignf: New file.
1648         * tests/test-math-c++.cc: Check the declaration of copysignf.
1649         * doc/posix-functions/copysignf.texi: Mention the new module.
1650
1651 2011-10-09  Bruno Haible  <bruno@clisp.org>
1652
1653         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1656         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1657         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1658         gl_SIGNAL_H_DEFAULTS.
1659
1660 2011-10-09  Bruno Haible  <bruno@clisp.org>
1661
1662         poll: Make macro safer.
1663         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1664         ac_cv_header_poll_h is not set.
1665
1666 2011-10-09  Bruno Haible  <bruno@clisp.org>
1667
1668         copysign: Provide replacement.
1669         * lib/math.in.h (copysign): New declaration.
1670         * lib/copysign.c: New file.
1671         * m4/copysign.m4: New file.
1672         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1674         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1675         HAVE_COPYSIGN.
1676         * modules/copysign (Description): Clarify.
1677         (Files): Add lib/copysign.c, m4/copysign.m4.
1678         (Depends-on): Add math, signbit.
1679         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1680         gl_MATH_MODULE_INDICATOR.
1681         * tests/test-math-c++.cc: Check the declaration of copysign.
1682         * doc/posix-functions/copysign.texi: Mention the effects of the module
1683         on Minix and MSVC.
1684
1685 2011-10-09  Bruno Haible  <bruno@clisp.org>
1686
1687         isinf: Ensure macro on AIX 5.1.
1688         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1689         macro.
1690         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1691
1692 2011-10-09  Bruno Haible  <bruno@clisp.org>
1693
1694         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1695         * modules/snprintf-posix-tests (configure.ac): Require
1696         gl_LONG_DOUBLE_VS_DOUBLE.
1697         * modules/sprintf-posix-tests (configure.ac): Likewise.
1698         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1699         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1700         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1701         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1702         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1703         tests on platforms where 'long double' is the same as 'double'.
1704         * tests/test-sprintf-posix.h (test_function): Likewise.
1705         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1706         * tests/test-vasprintf-posix.c (test_function): Likewise.
1707
1708         *printf: Fix for platforms where 'long double' == 'double'.
1709         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1710         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1711         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1712         * modules/fprintf-posix (Files): Likewise.
1713         * modules/obstack-printf-posix (Files): Likewise.
1714         * modules/snprintf-posix (Files): Likewise.
1715         * modules/sprintf-posix (Files): Likewise.
1716         * modules/vasnprintf (Files): Likewise.
1717         * modules/vasnprintf-posix (Files): Likewise.
1718         * modules/vasprintf-posix (Files): Likewise.
1719         * modules/vdprintf-posix (Files): Likewise.
1720         * modules/vfprintf-posix (Files): Likewise.
1721         * modules/vsnprintf-posix (Files): Likewise.
1722         * modules/vsprintf-posix (Files): Likewise.
1723         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1724         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1725         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1726         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1727         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1728         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1729         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1730
1731         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1732         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1733         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1734         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1735         'long double'.
1736         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1737
1738         isinf: Fix for platforms where 'long double' == 'double'.
1739         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1740         Don't blindly assume 80-bit 'long double'.
1741
1742         isfinite: Fix for platforms where 'long double' == 'double'.
1743         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1744         Don't blindly assume 80-bit 'long double'.
1745
1746         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1747         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1748         * modules/isfinite-tests (configure.ac): Require
1749         gl_LONG_DOUBLE_VS_DOUBLE.
1750         * modules/isinf-tests (configure.ac): Likewise.
1751         * modules/isnan-tests (configure.ac): Likewise.
1752         * modules/isnanl-tests (configure.ac): Likewise.
1753         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1754         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1755         tests on platforms where 'long double' is the same as 'double'.
1756         * tests/test-isinf.c (test_isinfl): Likewise.
1757         * tests/test-isnan.c (test_long_double): Likewise.
1758         * tests/test-isnanl.h (main): Likewise.
1759
1760 2011-10-08  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'tanhf'.
1763         * modules/tanhf-tests: New file.
1764         * tests/test-tanhf.c: New file.
1765
1766         New module 'tanhf'.
1767         * lib/math.in.h (tanhf): New declaration.
1768         * lib/tanhf.c: New file.
1769         * m4/tanhf.m4: New file.
1770         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1772         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1773         * modules/tanhf: New file.
1774         * tests/test-math-c++.cc: Check the declaration of tanhf.
1775         * doc/posix-functions/tanhf.texi: Mention the new module.
1776
1777         tanh: Use a .m4 file.
1778         * m4/tanh.m4: New file.
1779         * modules/tanh (Files): Add it.
1780         (configure.ac): Just invoke gl_FUNC_TANH.
1781
1782 2011-10-08  Bruno Haible  <bruno@clisp.org>
1783
1784         Tests for module 'coshf'.
1785         * modules/coshf-tests: New file.
1786         * tests/test-coshf.c: New file.
1787
1788         New module 'coshf'.
1789         * lib/math.in.h (coshf): New declaration.
1790         * lib/coshf.c: New file.
1791         * m4/coshf.m4: New file.
1792         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1794         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1795         * modules/coshf: New file.
1796         * tests/test-math-c++.cc: Check the declaration of coshf.
1797         * doc/posix-functions/coshf.texi: Mention the new module.
1798
1799         cosh: Use a .m4 file.
1800         * m4/cosh.m4: New file.
1801         * modules/cosh (Files): Add it.
1802         (configure.ac): Just invoke gl_FUNC_COSH.
1803
1804 2011-10-08  Bruno Haible  <bruno@clisp.org>
1805
1806         Tests for module 'sinhf'.
1807         * modules/sinhf-tests: New file.
1808         * tests/test-sinhf.c: New file.
1809
1810         New module 'sinhf'.
1811         * lib/math.in.h (sinhf): New declaration.
1812         * lib/sinhf.c: New file.
1813         * m4/sinhf.m4: New file.
1814         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1816         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1817         * modules/sinhf: New file.
1818         * tests/test-math-c++.cc: Check the declaration of sinhf.
1819         * doc/posix-functions/sinhf.texi: Mention the new module.
1820
1821         sinh: Use a .m4 file.
1822         * m4/sinh.m4: New file.
1823         * modules/sinh (Files): Add it.
1824         (configure.ac): Just invoke gl_FUNC_SINH.
1825
1826 2011-10-08  Bruno Haible  <bruno@clisp.org>
1827
1828         Tests for module 'atan2f'.
1829         * modules/atan2f-tests: New file.
1830         * tests/test-atan2f.c: New file.
1831
1832         New module 'atan2f'.
1833         * lib/math.in.h (atan2f): New declaration.
1834         * lib/atan2f.c: New file.
1835         * m4/atan2f.m4: New file.
1836         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1838         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1839         * modules/atan2f: New file.
1840         * tests/test-math-c++.cc: Check the declaration of atan2f.
1841         * doc/posix-functions/atan2f.texi: Mention the new module.
1842
1843         atan2: Use a .m4 file.
1844         * m4/atan2.m4: New file.
1845         * modules/atan2 (Files): Add it.
1846         (configure.ac): Just invoke gl_FUNC_ATAN2.
1847
1848 2011-10-08  Bruno Haible  <bruno@clisp.org>
1849
1850         Tests for module 'atanf'.
1851         * modules/atanf-tests: New file.
1852         * tests/test-atanf.c: New file.
1853
1854         New module 'atanf'.
1855         * lib/math.in.h (atanf): New declaration.
1856         * lib/atanf.c: New file.
1857         * m4/atanf.m4: New file.
1858         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1860         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1861         * modules/atanf: New file.
1862         * tests/test-math-c++.cc: Check the declaration of atanf.
1863         * doc/posix-functions/atanf.texi: Mention the new module.
1864
1865         atan: Use a .m4 file.
1866         * m4/atan.m4: New file.
1867         * modules/atan (Files): Add it.
1868         (configure.ac): Just invoke gl_FUNC_ATAN.
1869
1870 2011-10-08  Bruno Haible  <bruno@clisp.org>
1871
1872         Tests for module 'acosf'.
1873         * modules/acosf-tests: New file.
1874         * tests/test-acosf.c: New file.
1875
1876         New module 'acosf'.
1877         * lib/math.in.h (acosf): New declaration.
1878         * lib/acosf.c: New file.
1879         * m4/acosf.m4: New file.
1880         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1882         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1883         * modules/acosf: New file.
1884         * tests/test-math-c++.cc: Check the declaration of acosf.
1885         * doc/posix-functions/acosf.texi: Mention the new module.
1886
1887         acos: Use a .m4 file.
1888         * m4/acos.m4: New file.
1889         * modules/acos (Files): Add it.
1890         (configure.ac): Just invoke gl_FUNC_ACOS.
1891
1892 2011-10-08  Bruno Haible  <bruno@clisp.org>
1893
1894         Tests for module 'asinf'.
1895         * modules/asinf-tests: New file.
1896         * tests/test-asinf.c: New file.
1897
1898         New module 'asinf'.
1899         * lib/math.in.h (asinf): New declaration.
1900         * lib/asinf.c: New file.
1901         * m4/asinf.m4: New file.
1902         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1904         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1905         * modules/asinf: New file.
1906         * tests/test-math-c++.cc: Check the declaration of asinf.
1907         * doc/posix-functions/asinf.texi: Mention the new module.
1908
1909         asin: Use a .m4 file.
1910         * m4/asin.m4: New file.
1911         * modules/asin (Files): Add it.
1912         (configure.ac): Just invoke gl_FUNC_ASIN.
1913
1914 2011-10-08  Bruno Haible  <bruno@clisp.org>
1915
1916         Tests for module 'tanf'.
1917         * modules/tanf-tests: New file.
1918         * tests/test-tanf.c: New file.
1919
1920         New module 'tanf'.
1921         * lib/math.in.h (tanf): New declaration.
1922         * lib/tanf.c: New file.
1923         * m4/tanf.m4: New file.
1924         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1926         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1927         * modules/tanf: New file.
1928         * tests/test-math-c++.cc: Check the declaration of tanf.
1929         * doc/posix-functions/tanf.texi: Mention the new module.
1930
1931         tan: Use a .m4 file.
1932         * m4/tan.m4: New file.
1933         * modules/tan (Files): Add it.
1934         (configure.ac): Just invoke gl_FUNC_TAN.
1935
1936 2011-10-08  Bruno Haible  <bruno@clisp.org>
1937
1938         Tests for module 'cosf'.
1939         * modules/cosf-tests: New file.
1940         * tests/test-cosf.c: New file.
1941
1942         New module 'cosf'.
1943         * lib/math.in.h (cosf): New declaration.
1944         * lib/cosf.c: New file.
1945         * m4/cosf.m4: New file.
1946         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1948         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1949         * modules/cosf: New file.
1950         * tests/test-math-c++.cc: Check the declaration of cosf.
1951         * doc/posix-functions/cosf.texi: Mention the new module.
1952
1953         cos: Use a .m4 file.
1954         * m4/cos.m4: New file.
1955         * modules/cos (Files): Add it.
1956         (configure.ac): Just invoke gl_FUNC_COS.
1957
1958 2011-10-08  Bruno Haible  <bruno@clisp.org>
1959
1960         Tests for module 'sinf'.
1961         * modules/sinf-tests: New file.
1962         * tests/test-sinf.c: New file.
1963
1964         New module 'sinf'.
1965         * lib/math.in.h (sinf): New declaration.
1966         * lib/sinf.c: New file.
1967         * m4/sinf.m4: New file.
1968         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1970         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1971         * modules/sinf: New file.
1972         * tests/test-math-c++.cc: Check the declaration of sinf.
1973         * doc/posix-functions/sinf.texi: Mention the new module.
1974
1975         sin: Use a .m4 file.
1976         * m4/sin.m4: New file.
1977         * modules/sin (Files): Add it.
1978         (configure.ac): Just invoke gl_FUNC_SIN.
1979
1980 2011-10-08  Bruno Haible  <bruno@clisp.org>
1981
1982         Tests for module 'powf'.
1983         * modules/powf-tests: New file.
1984         * tests/test-powf.c: New file.
1985
1986         New module 'powf'.
1987         * lib/math.in.h (powf): New declaration.
1988         * lib/powf.c: New file.
1989         * m4/powf.m4: New file.
1990         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1992         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1993         * modules/powf: New file.
1994         * tests/test-math-c++.cc: Check the declaration of powf.
1995         * doc/posix-functions/powf.texi: Mention the new module.
1996
1997         pow: Use a .m4 file.
1998         * m4/pow.m4: New file.
1999         * modules/pow (Files): Add it.
2000         (configure.ac): Just invoke gl_FUNC_POW.
2001
2002 2011-10-08  Bruno Haible  <bruno@clisp.org>
2003
2004         Tests for module 'log10f'.
2005         * modules/log10f-tests: New file.
2006         * tests/test-log10f.c: New file.
2007
2008         New module 'log10f'.
2009         * lib/math.in.h (log10f): New declaration.
2010         * lib/log10f.c: New file.
2011         * m4/log10f.m4: New file.
2012         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2014         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2015         * modules/log10f: New file.
2016         * tests/test-math-c++.cc: Check the declaration of log10f.
2017         * doc/posix-functions/log10f.texi: Mention the new module.
2018
2019         log10: Use a .m4 file.
2020         * m4/log10.m4: New file.
2021         * modules/log10 (Files): Add it.
2022         (configure.ac): Just invoke gl_FUNC_LOG10.
2023
2024 2011-10-08  Bruno Haible  <bruno@clisp.org>
2025
2026         Tests for module 'logf'.
2027         * modules/logf-tests: New file.
2028         * tests/test-logf.c: New file.
2029
2030         New module 'logf'.
2031         * lib/math.in.h (logf): New declaration.
2032         * lib/logf.c: New file.
2033         * m4/logf.m4: New file.
2034         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2036         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2037         * modules/logf: New file.
2038         * tests/test-math-c++.cc: Check the declaration of logf.
2039         * doc/posix-functions/logf.texi: Mention the new module.
2040
2041         log: Use a .m4 file.
2042         * m4/log.m4: New file.
2043         * modules/log (Files): Add it.
2044         (configure.ac): Just invoke gl_FUNC_LOG.
2045
2046 2011-10-08  Bruno Haible  <bruno@clisp.org>
2047
2048         Tests for module 'expf'.
2049         * modules/expf-tests: New file.
2050         * tests/test-expf.c: New file.
2051
2052         New module 'expf'.
2053         * lib/math.in.h (expf): New declaration.
2054         * lib/expf.c: New file.
2055         * m4/expf.m4: New file.
2056         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2058         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2059         * modules/expf: New file.
2060         * tests/test-math-c++.cc: Check the declaration of expf.
2061         * doc/posix-functions/expf.texi: Mention the new module.
2062
2063         exp: Use a .m4 file.
2064         * m4/exp.m4: New file.
2065         * modules/exp (Files): Add it.
2066         (configure.ac): Just invoke gl_FUNC_EXP.
2067
2068 2011-10-08  Bruno Haible  <bruno@clisp.org>
2069
2070         Tests for module 'sqrtf'.
2071         * modules/sqrtf-tests: New file.
2072         * tests/test-sqrtf.c: New file.
2073
2074         New module 'sqrtf'.
2075         * lib/math.in.h (sqrtf): New declaration.
2076         * lib/sqrtf.c: New file.
2077         * m4/sqrtf.m4: New file.
2078         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2080         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2081         * modules/sqrtf: New file.
2082         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2083         * doc/posix-functions/sqrtf.texi: Mention the new module.
2084
2085 2011-10-08  Bruno Haible  <bruno@clisp.org>
2086
2087         Tests: Avoid link failures w.r.t. libintl.
2088         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2089         $(LIBINTL).
2090         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2091         $(LIBINTL).
2092         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2093         against $(LIBINTL).
2094         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2095         $(LIBINTL).
2096         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2097         $(LIBINTL).
2098         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2099
2100 2011-10-08  Bruno Haible  <bruno@clisp.org>
2101
2102         pow tests: Defeat compiler optimizations.
2103         * tests/test-pow.c (main): Assign arguments to x and y before use.
2104
2105 2011-10-08  Bruno Haible  <bruno@clisp.org>
2106
2107         gnulib-tool: Improve last commit.
2108         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2109         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2110         ignore dependencies that are not among the modules list.
2111
2112 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         gnulib-tool: don't follow dependencies to avoided modules
2115         This fixes a bug that is related to the previous one.
2116         * gnulib-tool (func_modules_transitive_closure)
2117         (func_emit_autoconf_snippets):
2118         Check whether a dependency is acceptable before using it.
2119         (--extract-dependencies): Report an error if --avoid is also used,
2120         since this combination of options is not yet supported.
2121
2122         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2123         Problem reported by Peter Dyballa in
2124         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2125         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2126         when echoing "$condition".
2127
2128 2011-10-07  Bruno Haible  <bruno@clisp.org>
2129
2130         Fix documentation about math functions on MacOS X.
2131         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2132         MacOS X 10.5.
2133         * doc/posix-functions/fdim.texi: Likewise.
2134         * doc/posix-functions/feclearexcept.texi: Likewise.
2135         * doc/posix-functions/fegetenv.texi: Likewise.
2136         * doc/posix-functions/fegetround.texi: Likewise.
2137         * doc/posix-functions/feholdexcept.texi: Likewise.
2138         * doc/posix-functions/feraiseexcept.texi: Likewise.
2139         * doc/posix-functions/fesetenv.texi: Likewise.
2140         * doc/posix-functions/fesetround.texi: Likewise.
2141         * doc/posix-functions/fetestexcept.texi: Likewise.
2142         * doc/posix-functions/feupdateenv.texi: Likewise.
2143         * doc/posix-functions/fmax.texi: Likewise.
2144         * doc/posix-functions/fmin.texi: Likewise.
2145         * doc/posix-functions/log2.texi: Likewise.
2146         * doc/posix-functions/modff.texi: Likewise.
2147         * doc/posix-functions/nan.texi: Likewise.
2148         * doc/posix-functions/nanf.texi: Likewise.
2149         * doc/posix-functions/nextafterf.texi: Likewise.
2150         * doc/posix-functions/remquo.texi: Likewise.
2151
2152 2011-10-07  Bruno Haible  <bruno@clisp.org>
2153
2154         modff: Drop assumption about library that defines modff.
2155         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2156         AC_CHECK_FUNCS.
2157         * modules/modff (Files): Add m4/mathfunc.m4.
2158
2159 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2160
2161         raise tests: Avoid a GCC warning.
2162         * tests/test-raise.c (handler): Use _Noreturn.
2163
2164 2011-10-07  Bruno Haible  <bruno@clisp.org>
2165
2166         Tests for module 'ldexpf'.
2167         * modules/ldexpf-tests: New file.
2168         * tests/test-ldexpf.c: New file.
2169
2170         New module 'ldexpf'.
2171         * lib/math.in.h (ldexpf): New declaration.
2172         * lib/ldexpf.c: New file.
2173         * m4/ldexpf.m4: New file.
2174         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2176         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2177         * modules/ldexpf: New file.
2178         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2179         * doc/posix-functions/ldexpf.texi: Mention the new module.
2180
2181 2011-10-06  Bruno Haible  <bruno@clisp.org>
2182
2183         frexpf: Work around problems on IRIX and mingw.
2184         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2186         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2187         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2188         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2189         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2190         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2191
2192 2011-10-06  Bruno Haible  <bruno@clisp.org>
2193
2194         fabsf: Drop assumption about library that defines fabsf.
2195         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2196         AC_CHECK_FUNCS.
2197         * modules/fabsf (Files): Add m4/mathfunc.m4.
2198
2199 2011-10-06  Bruno Haible  <bruno@clisp.org>
2200
2201         frexpf: Drop assumption about library that defines frexpf.
2202         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2203         'int *', 'float *', 'long double *', 'float', 'long double'.
2204         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2205         AC_CHECK_FUNCS.
2206         * modules/frexpf (Files): Add m4/mathfunc.m4.
2207
2208         Tests for module 'frexpf'.
2209         * modules/frexpf-tests: New file.
2210         * tests/test-frexpf.c: New file.
2211
2212         New module 'frexpf'.
2213         * lib/math.in.h (frexpf): New declaration.
2214         * lib/frexpf.c: New file.
2215         * m4/frexpf.m4: New file.
2216         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2218         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2219         * modules/frexpf: New file.
2220         * tests/test-math-c++.cc: Check the declaration of frexpf.
2221         * doc/posix-functions/frexpf.texi: Mention the new module.
2222
2223 2011-10-06  Bruno Haible  <bruno@clisp.org>
2224
2225         math: Sort function declarations of math.in.h.
2226         * lib/math.in.h (frexp, logb): Move declarations.
2227
2228 2011-10-05  Bruno Haible  <bruno@clisp.org>
2229
2230         Tests for module 'modff'.
2231         * modules/modff-tests: New file.
2232         * tests/test-modff.c: New file.
2233
2234         New module 'modff'.
2235         * lib/math.in.h (modff): New declaration.
2236         * lib/modff.c: New file.
2237         * m4/modff.m4: New file.
2238         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2240         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2241         * modules/modff: New file.
2242         * tests/test-math-c++.cc: Check the declaration of modff.
2243         * doc/posix-functions/modff.texi: Mention the new module.
2244
2245         modf tests: Make test sharper.
2246         * tests/test-modf.c (main): Strengthen upper bound.
2247
2248         modf: Use a .m4 file.
2249         * m4/modf.m4: New file.
2250         * modules/modf (Files): Add it.
2251         (configure.ac): Just invoke gl_FUNC_MODF.
2252
2253 2011-10-05  Bruno Haible  <bruno@clisp.org>
2254
2255         Tests for module 'fmodf'.
2256         * modules/fmodf-tests: New file.
2257         * tests/test-fmodf.c: New file.
2258
2259         New module 'fmodf'.
2260         * lib/math.in.h (fmodf): New declaration.
2261         * lib/fmodf.c: New file.
2262         * m4/fmodf.m4: New file.
2263         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2265         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2266         * modules/fmodf: New file.
2267         * tests/test-math-c++.cc: Check the declaration of fmodf.
2268         * doc/posix-functions/fmodf.texi: Mention the new module.
2269
2270         fmod: Use a .m4 file.
2271         * m4/fmod.m4: New file.
2272         * modules/fmod (Files): Add it.
2273         (configure.ac): Just invoke gl_FUNC_FMOD.
2274
2275 2011-10-05  Bruno Haible  <bruno@clisp.org>
2276
2277         Tests for module 'fabsf'.
2278         * modules/fabsf-tests: New file.
2279         * tests/test-fabsf.c: New file.
2280
2281         New module 'fabsf'.
2282         * lib/math.in.h (fabsf): New declaration.
2283         * lib/fabsf.c: New file.
2284         * m4/fabsf.m4: New file.
2285         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2287         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2288         * modules/fabsf: New file.
2289         * tests/test-math-c++.cc: Check the declaration of fabsf.
2290         * doc/posix-functions/fabsf.texi: Mention the new module.
2291
2292         fabs: Use a .m4 file.
2293         * m4/fabs.m4: New file.
2294         * modules/fabs (Files): Add it.
2295         (configure.ac): Just invoke gl_FUNC_FABS.
2296
2297 2011-10-05  Jim Meyering  <meyering@redhat.com>
2298
2299         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2300         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2301         ls -lL regression introduced in coreutils-8.12, it does so at the
2302         cost of an additional stat call in the common case.  Besides, now
2303         that the kernel change that prompted commit 95f7c57f has been reverted
2304         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2305         we have no use for commit 95f7c57f, "file-has-acl: use
2306         acl_extended_file_nofollow if available".
2307
2308 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2309
2310         file-has-acl: revert unintended change in behavior of ls -L
2311         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2312         derived from...
2313         (file_has_acl): ...code here.  Call it.
2314         This problem was introduced with 2011-07-22 commit 95f7c57f,
2315         "file-has-acl: use acl_extended_file_nofollow if available".
2316         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2317
2318 2011-10-03  Bruno Haible  <bruno@clisp.org>
2319
2320         poll: Avoid link errors on MSVC.
2321         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2322         * modules/poll (Depends-on): Add sockets.
2323         (Link): New section.
2324         * NEWS: Mention the change.
2325         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2326         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2327         $(LIB_POLL) instead of $(LIBSOCKET).
2328
2329 2011-10-03  Bruno Haible  <bruno@clisp.org>
2330
2331         sys_select tests: Fix link error on MSVC 9.
2332         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2333         with $(LIB_SELECT) instead of $(LIBSOCKET).
2334
2335 2011-10-03  Bruno Haible  <bruno@clisp.org>
2336
2337         sys_select: Fix compilation error on mingw.
2338         * lib/sys_select.in.h: On native Windows, include <io.h>.
2339
2340 2011-10-03  Bruno Haible  <bruno@clisp.org>
2341
2342         wmemset: Support for MSVC.
2343         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2344         whether wmemset() exists.
2345
2346 2011-10-03  Bruno Haible  <bruno@clisp.org>
2347
2348         wmemmove: Support for MSVC.
2349         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2350         whether wmemmove() exists.
2351
2352 2011-10-03  Bruno Haible  <bruno@clisp.org>
2353
2354         wmemcpy: Support for MSVC.
2355         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2356         whether wmemcpy() exists.
2357
2358 2011-10-03  Bruno Haible  <bruno@clisp.org>
2359
2360         wmemcmp: Support for MSVC.
2361         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2362         whether wmemcmp() exists.
2363
2364 2011-10-03  Bruno Haible  <bruno@clisp.org>
2365
2366         wmemchr: Support for MSVC.
2367         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2368         whether wmemchr() exists.
2369
2370 2011-10-03  Bruno Haible  <bruno@clisp.org>
2371
2372         glthread/*, strsignal: Support for MSVC.
2373         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2374         including <winsock.h> on MSVC 9.
2375         * lib/glthread/lock.h: Likewise.
2376         * lib/glthread/thread.h: Likewise.
2377         * lib/glthread/tls.h: Likewise.
2378         * lib/glthread/yield.h: Likewise.
2379         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2380         if HAVE_UNISTD_H is false.
2381         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2382
2383 2011-10-03  Bruno Haible  <bruno@clisp.org>
2384
2385         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2386         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2387         Set to 100000.
2388
2389 2011-10-03  Bruno Haible  <bruno@clisp.org>
2390
2391         acl: Fix specification.
2392         * lib/file-has-acl.c (file_has_acl): Fix specification.
2393
2394 2011-10-03  Bruno Haible  <bruno@clisp.org>
2395
2396         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2397         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2398         (compute_curr_prefix, shared_library_fullname,
2399         find_shared_library_fullname, get_shared_library_fullname, relocate):
2400         Use it together with PIC && INSTALLDIR.
2401         Reported by <jojelino@gmail.com>
2402         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2403
2404 2011-10-01  Jim Meyering  <meyering@redhat.com>
2405
2406         maint.mk: adjust a release-related rule not to require use of gzip
2407         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2408         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2409         projects that build only .tar.xz files.  Also fix an erroneous test.
2410
2411         test-linkat: don't leave behind a temporary file
2412         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2413         Otherwise, coreutils' "make distcheck" would fail with this:
2414           Only in /c/cu/tests/torture/coreutils/test/\
2415             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2416           make[2]: *** [my-distcheck] Error 1
2417
2418         float, math: add omitted file
2419         * lib/itold.c: Add file, required for yesterday's float change.
2420
2421 2011-10-01  Bruno Haible  <bruno@clisp.org>
2422
2423         isinf: Fix for OpenBSD/x86.
2424         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2425         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2426         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2427
2428 2011-10-01  Bruno Haible  <bruno@clisp.org>
2429
2430         isfinite: Fix syntax error in configure test.
2431         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2432
2433         isfinite: Fix typo.
2434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2435         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2436
2437 2011-10-01  Bruno Haible  <bruno@clisp.org>
2438
2439         nonblocking tests: Fix test failure on Linux/IA-64.
2440         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2441         Set to 270000.
2442
2443 2011-10-01  Bruno Haible  <bruno@clisp.org>
2444
2445         mkfifoat tests: Fix a test failure on mingw.
2446         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2447         with error ENOSYS.
2448
2449 2011-09-30  Bruno Haible  <bruno@clisp.org>
2450
2451         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2452         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2453         'long double'. Set REPLACE_ITOLD.
2454         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2455         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2456         * lib/itold.c: New file.
2457         * modules/float (Files): Add lib/itold.c.
2458         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2459         (Makefile.am): Substitute REPLACE_ITOLD.
2460         * modules/math (Depends-on): Add float.
2461         (Makefile.am): Substitute REPLACE_ITOLD.
2462         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2463         * doc/posix-headers/math.texi: Likewise.
2464         * doc/posix-functions/logl.texi: Likewise.
2465
2466 2011-09-30  Bruno Haible  <bruno@clisp.org>
2467
2468         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2469         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2470         Set to 140000.
2471
2472 2011-09-30  Bruno Haible  <bruno@clisp.org>
2473
2474         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2475         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2476         invocation, say "right after AC_PROG_CC_STDC", not "right after
2477         AC_PROG_CC".
2478         Reported by Gary V. Vaughan <gary@gnu.org>.
2479
2480 2011-09-30  Bruno Haible  <bruno@clisp.org>
2481
2482         Centralize C99 requirement.
2483         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2484         * modules/stdarg (configure.ac-early): Invoke it instead of
2485         AC_PROG_CC_STDC.
2486         Reported by Gary V. Vaughan and Paul Eggert.
2487
2488 2011-09-29  Bruno Haible  <bruno@clisp.org>
2489
2490         float: Fix LDBL_MAX value on Linux/PowerPC.
2491         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2492         on Linux/PowerPC.
2493         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2494         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2495         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2496         platform.
2497         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2498
2499 2011-09-29  Bruno Haible  <bruno@clisp.org>
2500
2501         doc: Improve doc about gl_EARLY.
2502         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2503         AC_PROG_CC_STDC invocation.
2504         Reported by Gary V. Vaughan <gary@gnu.org>.
2505
2506 2011-09-28  Bruno Haible  <bruno@clisp.org>
2507
2508         fgetc, fputc, fread, fwrite tests: Fix link error.
2509         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2510         on non-MSVC platforms.
2511         * tests/test-fputc.c (main): Likewise.
2512         * tests/test-fread.c (main): Likewise.
2513         * tests/test-fwrite.c (main): Likewise.
2514         Reported by Jim Meyering.
2515
2516 2011-09-27  Bruno Haible  <bruno@clisp.org>
2517
2518         fputc, fwrite tests: Avoid test failure on MSVC.
2519         * tests/test-fgetc.c: Include msvc-inval.h.
2520         (main): Invoke gl_msvc_inval_ensure_handler.
2521         * tests/test-fputc.c: Include msvc-inval.h.
2522         (main): Invoke gl_msvc_inval_ensure_handler.
2523         * tests/test-fread.c: Include msvc-inval.h.
2524         (main): Invoke gl_msvc_inval_ensure_handler.
2525         * tests/test-fwrite.c: Include msvc-inval.h.
2526         (main): Invoke gl_msvc_inval_ensure_handler.
2527         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2528         * modules/fputc-tests (Depends-on): Likewise.
2529         * modules/fread-tests (Depends-on): Likewise.
2530         * modules/fwrite-tests (Depends-on): Likewise.
2531
2532 2011-09-27  Bruno Haible  <bruno@clisp.org>
2533
2534         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2535         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2536         (raise): Remove older, duplicated declaration.
2537         (_gl_raise_SIGPIPE): New declaration.
2538         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2539         (rpl_raise): Remove function.
2540         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2541         a gnulib-defined SIGPIPE here.
2542         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2543         'sigprocmask' has detected missing signal-blocking and the module
2544         'sigpipe' is enabled.
2545         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2546
2547 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2548
2549         base64-tests: avoid memory leak
2550         * tests/test-base64.c (main): Plug memory leak.
2551
2552         base32: new module
2553         * modules/base32: New module.
2554         * lib/base32.c: New file.
2555         * lib/base32.h: Likewise.
2556         * m4/base32.m4: Likewise.
2557         * modules/base32-tests: New test.
2558         * tests/test-base32.c: Likewise.
2559         * MODULES.html.sh (Misc): Mention it.
2560
2561 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         gnulib: use more-standard license notice wording
2564         * gnulib-tool (func_emit_copyright_notice): When emitting a
2565         license notice into a file, use the standard wording as suggested
2566         by the current information for GNU maintainers, except say "file"
2567         rather than "program".  The new wording gives a license version
2568         number, which addresses an issue raised by Glenn Morris in
2569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2570         * m4/onceonly.m4: Use that same wording here, too.
2571
2572         dup2: minor simplification
2573         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2574         as lib/dup2.c no longer uses 'inline'.
2575
2576 2011-09-25  Bruno Haible  <bruno@clisp.org>
2577
2578         strings: Fix compilation error on MSVC.
2579         * lib/strings.in.h: Include <stddef.h> for size_t.
2580
2581 2011-09-25  Bruno Haible  <bruno@clisp.org>
2582
2583         fflush et al.: Document limitation on MSVC.
2584         * doc/posix-functions/fflush.texi: Document possible crash in handling
2585         mode other than DEFAULT_HANDLING.
2586         * doc/posix-functions/fgetc.texi: Likewise.
2587         * doc/posix-functions/fputc.texi: Likewise.
2588         * doc/posix-functions/fread.texi: Likewise.
2589         * doc/posix-functions/fwrite.texi: Likewise.
2590
2591 2011-09-25  Bruno Haible  <bruno@clisp.org>
2592
2593         msvc-inval: Allow three invalid parameter handling modes.
2594         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2595         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2596         macros.
2597         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2598         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2599         SANE_LIBRARY_HANDLING as a no-op.
2600         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2601         <stdlib.h>.
2602         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2603
2604 2011-09-25  Bruno Haible  <bruno@clisp.org>
2605
2606         msvc-inval: Make handler multithread-safe.
2607         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2608         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2609         declarations.
2610         (gl_msvc_inval_current): New declaration.
2611         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2612         Operate on the structure returned by gl_msvc_inval_current().
2613         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2614         Remove varaiables.
2615         (tls_index, tls_initialized): New variables.
2616         (not_per_thread): New variable.
2617         (gl_msvc_inval_current): New function.
2618         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2619         returned by gl_msvc_inval_current().
2620
2621 2011-09-25  Bruno Haible  <bruno@clisp.org>
2622
2623         msvc-inval: Install handler globally.
2624         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2625         !_MSC_VER.
2626         (gl_msvc_invalid_parameter_handler): Remove declaration.
2627         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2628         declarations.
2629         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2630         Install the handler globally, don't uninstall it.
2631         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2632         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2633         currently valid, call RaiseException instead.
2634         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2635         for !_MSC_VER.
2636
2637 2011-09-25  Bruno Haible  <bruno@clisp.org>
2638
2639         strerror_r-posix: Fix for MSVC 9.
2640         * lib/strerror_r.c (local_snprintf): New function.
2641         (snprintf): Define to local_snprintf, not to _snprintf.
2642
2643 2011-09-25  Bruno Haible  <bruno@clisp.org>
2644
2645         ftruncate: Support for MSVC 9.
2646         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2647         (chsize_nothrow): New function.
2648         (chsize): Redefine as a macro.
2649         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2650         * modules/ftruncate (Depends-on): Add msvc-inval.
2651
2652 2011-09-25  Bruno Haible  <bruno@clisp.org>
2653
2654         New module 'fstat'.
2655         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2656         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2657         * lib/fchdir.c (rpl_fstat): Remove function.
2658         * m4/fstat.m4: New file.
2659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2661         declared.
2662         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2663         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2664         * modules/fstat: New file.
2665         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2666         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2667         is set.
2668         * doc/posix-functions/fstat.texi: Mention the new module and the
2669         problem on MSVC.
2670         * NEWS: Mention the change.
2671         * modules/acl (Depends-on): Add fstat.
2672         * modules/chdir-safer (Depends-on): Likewise.
2673         * modules/chown (Depends-on): Likewise.
2674         * modules/copy-file (Depends-on): Likewise.
2675         * modules/fchdir (Depends-on): Likewise.
2676         * modules/fdopendir (Depends-on): Likewise.
2677         * modules/fopen (Depends-on): Likewise.
2678         * modules/fts (Depends-on): Likewise.
2679         * modules/getcwd (Depends-on): Likewise.
2680         * modules/isapipe (Depends-on): Likewise.
2681         * modules/linkat (Depends-on): Likewise.
2682         * modules/lseek (Depends-on): Likewise.
2683         * modules/mkdir-p (Depends-on): Likewise.
2684         * modules/open (Depends-on): Likewise.
2685         * modules/openat (Depends-on): Likewise.
2686         * modules/read-file (Depends-on): Likewise.
2687         * modules/renameat (Depends-on): Likewise.
2688         * modules/utimens (Depends-on): Likewise.
2689
2690 2011-09-25  Bruno Haible  <bruno@clisp.org>
2691
2692         linkat: Fix compilation on MSVC 9.
2693         * lib/linkat.c: Don't include <stdint.h>.
2694
2695 2011-09-25  Bruno Haible  <bruno@clisp.org>
2696
2697         fclose: Support for MSVC 9.
2698         * lib/fclose.c: Include msvc-inval.h.
2699         (fclose_nothrow): New function.
2700         (rpl_fclose): Use it.
2701         * modules/fclose (Depends-on): Add msvc-inval.
2702         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2703
2704 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2705
2706         dup2: minor simplifications
2707         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2708         that it's a performance win.
2709         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2710         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2711
2712 2011-09-24  Jim Meyering  <meyering@redhat.com>
2713
2714         test-futimens: avoid a warning from gcc -Wshadow
2715         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2716         to avoid a shadowing warning.
2717
2718 2011-09-24  Bruno Haible  <bruno@clisp.org>
2719
2720         fdopen: Support for MSVC 9.
2721         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2722         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2723         * lib/fdopen.c: Include msvc-inval.h.
2724         (fdopen_nothrow): New function.
2725         (rpl_fdopen): Use it.
2726         * modules/fdopen (Depends-on): Add msvc-inval.
2727         * modules/fclose-tests (Depends-on): Add fdopen.
2728         * modules/fflush-tests (Depends-on): Likewise.
2729         * modules/fgetc-tests (Depends-on): Likewise.
2730         * modules/fputc-tests (Depends-on): Likewise.
2731         * modules/fread-tests (Depends-on): Likewise.
2732         * modules/freopen-tests (Depends-on): Likewise.
2733         * modules/fseeko-tests (Depends-on): Likewise.
2734         * modules/ftello-tests (Depends-on): Likewise.
2735         * modules/fwrite-tests  (Depends-on): Likewise.
2736         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2737
2738 2011-09-24  Bruno Haible  <bruno@clisp.org>
2739
2740         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2741         * modules/fgetc-tests (Depends-on): Add unistd.
2742         * modules/fputc-tests (Depends-on): Likewise.
2743         * modules/fread-tests (Depends-on): Likewise.
2744         * modules/fwrite-tests (Depends-on): Likewise.
2745
2746 2011-09-24  Bruno Haible  <bruno@clisp.org>
2747
2748         dup: Simplify autoconf test.
2749         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2750         on gl_MSVC_INVAL's result.
2751
2752 2011-09-24  Bruno Haible  <bruno@clisp.org>
2753
2754         Tests for function fwrite().
2755         * modules/fwrite-tests: New file.
2756         * tests/test-fwrite.c: New file.
2757         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2758
2759         Tests for function fread().
2760         * modules/fread-tests: New file.
2761         * tests/test-fread.c: New file.
2762         * modules/stdio-tests (Depends-on): Add fread-tests.
2763
2764         Activate fputc tests.
2765         * modules/stdio-tests (Depends-on): Add fputc-tests.
2766
2767         Enhance fgetc, fputc tests.
2768         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2769         * tests/test-fputc.c (main): Likewise.
2770
2771 2011-09-24  Bruno Haible  <bruno@clisp.org>
2772
2773         write: Support for MSVC 9.
2774         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2775         is not 1.
2776         * lib/write.c (write_nothrow): New function.
2777         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2778         not 1. Use write_nothrow.
2779         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2780         invalid parameter handler.
2781         (gl_PREREQ_WRITE): New macro.
2782         * modules/write (Depends-on): Add msvc-inval.
2783         (configure.ac): Invoke gl_PREREQ_WRITE.
2784         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2785
2786 2011-09-24  Bruno Haible  <bruno@clisp.org>
2787
2788         read: Fix last commit.
2789         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2790
2791 2011-09-24  Bruno Haible  <bruno@clisp.org>
2792
2793         dup2: Fix last commit.
2794         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2795         (rpl_dup2): Disable fcntl workaround on native Windows.
2796
2797         sigprocmask: Make code safer.
2798         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2799         section that changes macro definitions for this compilation unit.
2800
2801 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2802
2803         dup2: clarify by coalescing Windows-specific material
2804         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2805         "msvc-nothrow.h"' to the Windows-specific section, so that the
2806         Emacs source need not contain these include files.
2807         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2808         Windows-specific fixes into this function rather than just the
2809         nothrow fix, as this shortens and clarifies the code.  Always
2810         define as a function, as that's a bit cleaner than having it be
2811         sometimes a function and sometimes a macro.
2812         (rpl_dup2): Move the Windows-specific stuff out of here and into
2813         ms_windows_dup2.  Don't protect the Haiku-related fix with
2814         "#if !defined __linux__", as the same code also works around
2815         a Linux kernel bug, and it doesn't add any system calls on any
2816         platform.  Add comment about FreeBSD 6.1.
2817
2818         sigprocmask: move #include directive
2819         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2820         Windows-specific section, so that the Emacs source need not
2821         contain msvc-inval.h.
2822
2823 2011-09-23  Bruno Haible  <bruno@clisp.org>
2824
2825         read: Support for MSVC 9.
2826         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2827         is not 1.
2828         * lib/read.c (read_nothrow): New function.
2829         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2830         read_nothrow.
2831         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2832         invalid parameter handler.
2833         (gl_PREREQ_READ): New macro.
2834         * modules/read (Depends-on): Add msvc-inval.
2835         (configure.ac): Invoke gl_PREREQ_READ.
2836         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2837
2838 2011-09-23  Bruno Haible  <bruno@clisp.org>
2839
2840         close: Support for MSVC 9.
2841         * lib/close.c: Include <errno.h>, msvc-inval.h.
2842         (close_nothrow): New function.
2843         (rpl_close): Use it.
2844         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2845         invalid parameter handler.
2846         * modules/close (Depends-on): Add msvc-inval.
2847         * modules/dup2-tests (Depends-on): Add close.
2848         * modules/dup3-tests (Depends-on): Likewise.
2849         * modules/fcntl-tests (Depends-on): Likewise.
2850         * modules/spawn-pipe-tests (Depends-on): Likewise.
2851         * modules/unistd-safer-tests (Depends-on): Likewise.
2852         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2853
2854 2011-09-23  Bruno Haible  <bruno@clisp.org>
2855
2856         New module 'dup'.
2857         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2858         Allow replacement.
2859         * lib/dup.c: New file.
2860         * lib/fchdir.c (rpl_dup): Remove function.
2861         * m4/dup.m4: New file.
2862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2863         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2864         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2865         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2866         * modules/dup: New file.
2867         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2868         'dup' module is in use.
2869         * modules/fdopendir (Depends-on): Add dup.
2870         * modules/fdutimensat-tests (Depends-on): Likewise.
2871         * modules/fts (Depends-on): Likewise.
2872         * modules/futimens-tests (Depends-on): Likewise.
2873         * modules/posix_spawnp-tests (Depends-on): Likewise.
2874         * modules/unistd-safer-tests (Depends-on): Likewise.
2875         * modules/utimens-tests (Depends-on): Likewise.
2876         * doc/posix-functions/dup.texi: Mention the new module and the problem
2877         on MSVC.
2878
2879 2011-09-23  Bruno Haible  <bruno@clisp.org>
2880
2881         getdtablesize: Support for MSVC 9.
2882         * lib/getdtablesize.c: Include msvc-inval.h.
2883         (_setmaxstdio_nothrow): New function.
2884         (_setmaxstdio): Redefine it.
2885         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2886         * modules/getdtablesize (Depends-on): Add msvc-inval.
2887         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2888
2889 2011-09-23  Bruno Haible  <bruno@clisp.org>
2890
2891         signal-h: Rename from signal.
2892         * modules/signal-h: Renamed from modules/signal.
2893         * modules/pthread_sigmask (Depends-on): Update.
2894         * modules/raise (Depends-on): Likewise.
2895         * modules/sigaction (Depends-on): Likewise.
2896         * modules/sigpipe (Depends-on): Likewise.
2897         * modules/sigprocmask (Depends-on): Likewise.
2898         * modules/sys_select (Depends-on): Likewise.
2899         * modules/signal-h-tests: Renamed from modules/signal-tests.
2900         (Files, Depends-on, Makefile.am): Update.
2901         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2902         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2903         (Files, Makefile.am): Update.
2904         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2905         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2906         * modules/signal: New placeholder file.
2907         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2908         * doc/posix-headers/signal.texi: Update.
2909         * NEWS: Mention the change.
2910
2911 2011-09-23  Bruno Haible  <bruno@clisp.org>
2912
2913         sigprocmask: Avoid crashes through signal() on MSVC 9.
2914         * lib/sigprocmask.c: Include msvc-inval.h.
2915         (signal_nothrow): New function.
2916         (signal): Redefine it.
2917         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2918         * modules/sigprocmask (Depends-on): Add msvc-inval.
2919         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2920
2921 2011-09-23  Bruno Haible  <bruno@clisp.org>
2922
2923         Tests for module 'raise'.
2924         * modules/raise-tests: New file.
2925         * tests/test-raise.c: New file.
2926
2927         raise: Support for MSVC.
2928         * lib/signal.in.h (raise): New declaration.
2929         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2930         for native Windows platforms.
2931         * m4/raise.m4: New file.
2932         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2933         HAVE_RAISE, REPLACE_RAISE.
2934         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2935         REPLACE_RAISE.
2936         * modules/raise (Status, Notice): Remove fields.
2937         (Files): Add m4/raise.m4.
2938         (Depends-on): Add signal, msvc-inval.
2939         (configure.ac): Use the common idioms.
2940         (Maintainer): Add me.
2941         * tests/test-signal-c++.cc: Check the signature of raise.
2942         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2943
2944 2011-09-23  Bruno Haible  <bruno@clisp.org>
2945
2946         pipe2: Fix compilation on pre-C99 compilers.
2947         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2948
2949 2011-09-23  Bruno Haible  <bruno@clisp.org>
2950
2951         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2952         * lib/msvc-nothrow.h: New file.
2953         * lib/msvc-nothrow.c: New file.
2954         * m4/msvc-nothrow.m4: New file.
2955         * modules/msvc-nothrow: New file.
2956         * lib/dup2.c: Include msvc-nothrow.h.
2957         (rpl_dup2): No need to protect _get_osfhandle call here.
2958         * lib/accept4.c: Include msvc-nothrow.h.
2959         * lib/error.c: Likewise.
2960         * lib/fcntl.c: Likewise.
2961         * lib/lseek.c: Likewise.
2962         * lib/nonblocking.c: Likewise.
2963         * lib/poll.c: Likewise.
2964         * lib/read.c: Likewise.
2965         * lib/select.c: Likewise.
2966         * lib/sockets.h: Likewise.
2967         * lib/sockets.c: Likewise.
2968         * lib/stdio-read.c: Likewise.
2969         * lib/stdio-write.c: Likewise.
2970         * lib/write.c: Likewise.
2971         * lib/w32sock.h: Likewise.
2972         * lib/w32spawn.h: Likewise.
2973         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2974         * lib/fsync.c: Likewise.
2975         * lib/isapipe.c: Likewise.
2976         * modules/dup2 (Depends-on): Add msvc-nothrow.
2977         * modules/accept4 (Depends-on): Likewise.
2978         * modules/error (Depends-on): Likewise.
2979         * modules/fcntl (Depends-on): Likewise.
2980         * modules/lseek (Depends-on): Likewise.
2981         * modules/nonblocking (Depends-on): Likewise.
2982         * modules/poll (Depends-on): Likewise.
2983         * modules/read (Depends-on): Likewise.
2984         * modules/select (Depends-on): Likewise.
2985         * modules/sockets (Depends-on): Likewise.
2986         * modules/sigpipe (Depends-on): Likewise.
2987         * modules/write (Depends-on): Likewise.
2988         * modules/accept (Depends-on): Likewise.
2989         * modules/bind (Depends-on): Likewise.
2990         * modules/connect (Depends-on): Likewise.
2991         * modules/gethostname (Depends-on): Likewise.
2992         * modules/getpeername (Depends-on): Likewise.
2993         * modules/getsockname (Depends-on): Likewise.
2994         * modules/getsockopt (Depends-on): Likewise.
2995         * modules/ioctl (Depends-on): Likewise.
2996         * modules/listen (Depends-on): Likewise.
2997         * modules/recv (Depends-on): Likewise.
2998         * modules/recvfrom (Depends-on): Likewise.
2999         * modules/send (Depends-on): Likewise.
3000         * modules/sendto (Depends-on): Likewise.
3001         * modules/setsockopt (Depends-on): Likewise.
3002         * modules/shutdown (Depends-on): Likewise.
3003         * modules/socket (Depends-on): Likewise.
3004         * modules/execute (Depends-on): Likewise.
3005         * modules/spawn-pipe (Depends-on): Likewise.
3006         * modules/flock (Depends-on): Likewise.
3007         * modules/fsync (Depends-on): Likewise.
3008         * modules/isapipe (Depends-on): Likewise.
3009         * tests/test-cloexec.c: Include msvc-nothrow.h.
3010         * tests/test-dup-safer.c: Likewise.
3011         * tests/test-dup2.c: Likewise.
3012         * tests/test-dup3.c: Likewise.
3013         * tests/test-fcntl.c: Likewise.
3014         * tests/test-pipe.c: Likewise.
3015         * tests/test-pipe2.c: Likewise.
3016         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3017         * modules/unistd-safer-tests (Depends-on): Likewise.
3018         * modules/dup2-tests (Depends-on): Likewise.
3019         * modules/dup3-tests (Depends-on): Likewise.
3020         * modules/fcntl-tests (Depends-on): Likewise.
3021         * modules/pipe-posix-tests (Depends-on): Likewise.
3022         * modules/pipe2-tests (Depends-on): Likewise.
3023
3024 2011-09-23  Bruno Haible  <bruno@clisp.org>
3025
3026         dup2: Make code more maintainable.
3027         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3028         (rpl_dup2): Use it.
3029         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3030         * modules/dup2 (configure.ac): Invoke it.
3031         Reported by Paul Eggert.
3032
3033 2011-09-23  Bruno Haible  <bruno@clisp.org>
3034
3035         msvc-inval: Fix compilation error.
3036         * lib/msvc-inval.h: Include <excpt.h>.
3037
3038 2011-09-23  Bruno Haible  <bruno@clisp.org>
3039
3040         mkdir: Tweak for MSVC 9.
3041         * lib/sys_stat.in.h: Update comments.
3042         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3043
3044         Tests for module 'chdir'.
3045         * modules/chdir-tests: New file.
3046         * tests/test-chdir.c: New file.
3047
3048         New module 'chdir'.
3049         * modules/chdir: New file.
3050         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3051         (chdir): New declaration.
3052         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3053         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3054         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3055         * tests/test-unistd-c++.cc: Check signature of chdir.
3056         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3057         * modules/chdir-long (Depends-on): Add chdir.
3058         * modules/fchdir (Depends-on): Likewise.
3059         * modules/rename (Depends-on): Likewise.
3060         * modules/savewd (Depends-on): Likewise.
3061
3062         rmdir: Support for mingw, MSVC 9.
3063         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3064         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3065
3066         getcwd: Tweak for MSVC 9.
3067         * lib/unistd.in.h: Update comments.
3068         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3069
3070 2011-09-22  Bruno Haible  <bruno@clisp.org>
3071
3072         strerror_r-posix: Avoid a link error on MSVC.
3073         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3074         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3075
3076 2011-09-22  Bruno Haible  <bruno@clisp.org>
3077
3078         select: Avoid link errors on MSVC.
3079         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3080         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3081         * modules/pselect (Link): Likewise.
3082         * NEWS: Mention the change.
3083         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3084         test-select-stdin against $(LIB_SELECT).
3085         * modules/pselect-tests (Makefile.am): Link test-pselect against
3086         $(LIB_SELECT).
3087
3088 2011-09-22  Bruno Haible  <bruno@clisp.org>
3089
3090         select: Avoid compilation error on MSVC.
3091         * lib/select.c: Don't include <stdbool.h>.
3092
3093 2011-09-21  Bruno Haible  <bruno@clisp.org>
3094
3095         Consolidate all uses of PATH_MAX in *.m4 files.
3096         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3097         macros.
3098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3099         and gl_PATHMAX_SNIPPET.
3100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3102         * modules/chdir-long (Files): Add m4/pathmax.m4.
3103         * modules/getcwd (Files): Likewise.
3104
3105 2011-09-21  Bruno Haible  <bruno@clisp.org>
3106
3107         ftruncate: Un-deprecate, concentrate on Win32 support.
3108         * modules/ftruncate (Status, Notice): Remove sections.
3109         (Depends-on): Add largefile.
3110         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3111         non-mingw platforms.
3112         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3113         include <io.h>.
3114         * modules/perror-tests (Depends-on): Add ftruncate.
3115         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3116         'ftruncate' module.
3117
3118 2011-09-21  Bruno Haible  <bruno@clisp.org>
3119
3120         Add dependencies to new dirent related modules.
3121         * modules/opendir (Depends-on): Add closedir.
3122         * modules/getcwd (Depends-on): Add opendir, closedir.
3123         * modules/dirent-safer-tests (Depends-on): Likewise.
3124         * modules/fdopendir-tests (Depends-on): Likewise.
3125         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3126         * modules/renameat-tests (Depends-on): Likewise.
3127
3128 2011-09-21  Bruno Haible  <bruno@clisp.org>
3129
3130         opendir: Avoid compilation error on mingw.
3131         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3132         * modules/opendir (Depends-on): Add unistd.
3133
3134 2011-09-21  Bruno Haible  <bruno@clisp.org>
3135
3136         ftruncate tests: Avoid a test failure on mingw.
3137         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3138
3139 2011-09-21  Bruno Haible  <bruno@clisp.org>
3140
3141         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3142         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3143         native Windows.
3144
3145 2011-09-21  Bruno Haible  <bruno@clisp.org>
3146
3147         New module 'fdopen'.
3148         * lib/stdio.in.h (fdopen): New declaration.
3149         * lib/fdopen.c: New file.
3150         * m4/fdopen.m4: New file.
3151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3152         REPLACE_FDOPEN.
3153         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3154         REPLACE_FDOPEN.
3155         * modules/fdopen: New file.
3156         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3157         * tests/test-stdio-c++.cc: Check signature of fdopen.
3158         * doc/posix-functions/fdopen.texi: Mention the new module.
3159
3160 2011-09-21  Bruno Haible  <bruno@clisp.org>
3161
3162         unlockpt tests: Avoid test failure on NetBSD 5.1.
3163         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3164         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3165
3166 2011-09-21  Bruno Haible  <bruno@clisp.org>
3167
3168         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3169         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3170         * tests/test-getlogin_r.c (main): Likewise.
3171
3172 2011-09-20  Bruno Haible  <bruno@clisp.org>
3173
3174         time tests: Don't require pid_t.
3175         * doc/posix-headers/time.texi: Revert last change.
3176         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3177         * tests/test-time.c: Comment out the check for pid_t.
3178
3179 2011-09-20  Bruno Haible  <bruno@clisp.org>
3180
3181         fsync tests: Avoid a test failure on mingw.
3182         * tests/test-fsync.c (main): Allow a failure with EIO.
3183
3184 2011-09-20  Bruno Haible  <bruno@clisp.org>
3185
3186         euidaccess: Update comments.
3187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3188
3189 2011-09-20  Bruno Haible  <bruno@clisp.org>
3190
3191         Ensure EBADF returns for socket functions on mingw.
3192         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3193         descriptor is invalid.
3194         * lib/bind.c (rpl_bind): Likewise.
3195         * lib/connect.c (rpl_connect): Likewise.
3196         * lib/getpeername.c (rpl_getpeername): Likewise.
3197         * lib/getsockname.c (rpl_getsockname): Likewise.
3198         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3199         * lib/listen.c (rpl_listen): Likewise.
3200         * lib/recv.c (rpl_recv): Likewise.
3201         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3202         * lib/send.c (rpl_send): Likewise.
3203         * lib/sendto.c (rpl_sendto): Likewise.
3204         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3205         * lib/shutdown.c (rpl_shutdown): Likewise.
3206
3207 2011-09-20  Bruno Haible  <bruno@clisp.org>
3208
3209         select tests: EBADF tests.
3210         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3211         test_bad_fd): New functions.
3212         (test_function): Invoke also test_bad_fd.
3213
3214 2011-09-20  Bruno Haible  <bruno@clisp.org>
3215
3216         Tests for module 'posix_spawn_file_actions_addopen.
3217         * modules/posix_spawn_file_actions_addopen-tests: New file.
3218         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3219
3220         Tests for module 'posix_spawn_file_actions_adddup2'.
3221         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3222         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3223
3224         Tests for module 'posix_spawn_file_actions_addclose'.
3225         * modules/posix_spawn_file_actions_addclose-tests: New file.
3226         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3227
3228 2011-09-20  Bruno Haible  <bruno@clisp.org>
3229
3230         Tests for module 'unlockpt'.
3231         * modules/unlockpt-tests: New file.
3232         * tests/test-unlockpt.c: New file.
3233         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3234
3235         Tests for module 'grantpt'.
3236         * modules/grantpt-tests: New file.
3237         * tests/test-grantpt.c: New file.
3238         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3239
3240 2011-09-20  Bruno Haible  <bruno@clisp.org>
3241
3242         freopen tests: EBADF tests.
3243         * tests/test-freopen.c: Include errno.h, unistd.h.
3244         (main): Add tests for EBADF, commented out for the moment.
3245
3246         fclose tests: EBADF tests.
3247         * tests/test-fclose.c (main): Add tests for EBADF.
3248
3249         fflush tests: EBADF tests.
3250         * tests/test-fflush.c: Include errno.h, macros.h.
3251         (main): Add tests for EBADF.
3252
3253         ftello tests: EBADF tests.
3254         * tests/test-ftello4.sh: New file.
3255         * tests/test-ftello4.c: New file.
3256         * modules/ftello-tests (Files): Add them.
3257         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3258
3259         fseeko tests: EBADF tests.
3260         * tests/test-fseeko4.sh: New file.
3261         * tests/test-fseeko4.c: New file.
3262         * modules/fseeko-tests (Files): Add them.
3263         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3264
3265         Tests for function fputc().
3266         * modules/fputc-tests: New file.
3267         * tests/test-fputc.c: New file.
3268         * modules/stdio-tests (Depends-on): Add fputc-tests.
3269
3270         Tests for function fgetc().
3271         * modules/fgetc-tests: New file.
3272         * tests/test-fgetc.c: New file.
3273         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3274
3275         Tests for function fdopen().
3276         * modules/fdopen-tests: New file.
3277         * tests/test-fdopen.c: New file.
3278         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3279
3280         Tests for module 'vdprintf'.
3281         * modules/vdprintf-tests: New file.
3282         * tests/test-vdprintf.c: New file.
3283
3284         Tests for module 'dprintf'.
3285         * modules/dprintf-tests: New file.
3286         * tests/test-dprintf.c: New file.
3287
3288 2011-09-20  Bruno Haible  <bruno@clisp.org>
3289
3290         Tests for module 'ioctl'.
3291         * modules/ioctl-tests: New file.
3292         * tests/test-ioctl.c: New file.
3293
3294 2011-09-20  Bruno Haible  <bruno@clisp.org>
3295
3296         fcntl tests: EBADF tests.
3297         * tests/test-fcntl.c (main): Add more tests for EBADF.
3298
3299 2011-09-20  Bruno Haible  <bruno@clisp.org>
3300
3301         utimensat tests: EBADF tests.
3302         * tests/test-utimensat.c (main): Add tests for EBADF.
3303
3304         renameat tests: EBADF tests.
3305         * tests/test-renameat.c (main): Add tests for EBADF.
3306
3307         mkfifoat tests: EBADF tests.
3308         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3309
3310         readlinkat tests: EBADF tests.
3311         * tests/test-readlinkat.c (main): Add tests for EBADF.
3312
3313         symlinkat tests: EBADF tests.
3314         * tests/test-symlinkat.c (main): Add tests for EBADF.
3315
3316         linkat tests: EBADF tests.
3317         * tests/test-linkat.c (main): Add tests for EBADF.
3318
3319         Tests for module 'faccessat'.
3320         * modules/faccessat-tests: New file.
3321         * tests/test-faccessat.c: New file.
3322
3323         fdopendir tests: EBADF tests.
3324         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3325
3326         openat tests: EBADF tests.
3327         * tests/test-fchownat.c (main): Add tests for EBADF.
3328         * tests/test-fstatat.c (main): Likewise.
3329         * tests/test-mkdirat.c (main): Likewise.
3330         * tests/test-openat.c (main): Likewise.
3331         * tests/test-unlinkat.c (main): Likewise.
3332         * tests/test-fchmodat.c: New file.
3333         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3334         (Makefile.am): Also run 'test-fchmodat'.
3335
3336 2011-09-20  Bruno Haible  <bruno@clisp.org>
3337
3338         utimens, futimens, fdutimensat tests: EBADF tests.
3339         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3340
3341         Tests for function fstat().
3342         * modules/fstat-tests: New file.
3343         * tests/test-fstat.c: New file.
3344         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3345
3346 2011-09-20  Bruno Haible  <bruno@clisp.org>
3347
3348         test-ttyname_r tests: EBADF tests.
3349         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3350
3351         Tests for module 'isatty'.
3352         * modules/isatty-tests: New file.
3353         * tests/test-isatty.c: New file.
3354
3355         Tests for module 'write'.
3356         * modules/write-tests: New file.
3357         * tests/test-write.c: New file.
3358
3359         Tests for module 'read'.
3360         * modules/read-tests: New file.
3361         * tests/test-read.c: New file.
3362
3363         pwrite tests: EBADF tests.
3364         * tests/test-pwrite.c (main): Add tests for EBADF.
3365
3366         pread tests: EBADF tests.
3367         * tests/test-pread.c (main): Add tests for EBADF.
3368
3369         lseek tests: EBADF tests.
3370         * tests/test-lseek.c (main): Add more tests for EBADF.
3371
3372         Tests for module 'ftruncate'.
3373         * modules/ftruncate-tests: New file.
3374         * tests/test-ftruncate.sh: New file.
3375         * tests/test-ftruncate.c: New file.
3376
3377         fsync tests: EBADF tests.
3378         * tests/test-fsync.c (main): Add more tests for EBADF.
3379
3380         fdatasync tests: EBADF tests.
3381         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3382
3383         Tests for module 'fchown'.
3384         * modules/fchown-tests: New file.
3385         * tests/test-fchown.c: New file.
3386
3387         Tests for module 'fchmod'.
3388         * modules/fchmod-tests: New file.
3389         * tests/test-fchmod.c: New file.
3390
3391         fchdir tests: EBADF tests.
3392         * tests/test-fchdir.c (main): Add more tests for EBADF.
3393
3394         dup2 tests: EBADF tests.
3395         * tests/test-dup2.c (main): Add more tests for EBADF.
3396
3397         Tests for module 'dup'.
3398         * modules/dup-tests: New file.
3399         * tests/test-dup.c: New file.
3400
3401         Tests for module 'close'.
3402         * modules/close-tests: New file.
3403         * tests/test-close.c: New file.
3404
3405 2011-09-20  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'shutdown'.
3408         * modules/shutdown-tests: New file.
3409         * tests/test-shutdown.c: New file.
3410
3411         Tests for module 'setsockopt'.
3412         * modules/setsockopt-tests: New file.
3413         * tests/test-setsockopt.c: New file.
3414
3415         Tests for module 'sendto'.
3416         * modules/sendto-tests: New file.
3417         * tests/test-sendto.c: New file.
3418
3419         Tests for module 'send'.
3420         * modules/send-tests: New file.
3421         * tests/test-send.c: New file.
3422
3423         Tests for module 'recvfrom'.
3424         * modules/recvfrom-tests: New file.
3425         * tests/test-recvfrom.c: New file.
3426
3427         Tests for module 'recv'.
3428         * modules/recv-tests: New file.
3429         * tests/test-recv.c: New file.
3430
3431         Tests for module 'listen'.
3432         * modules/listen-tests: New file.
3433         * tests/test-listen.c: New file.
3434
3435         Tests for module 'getsockopt'.
3436         * modules/getsockopt-tests: New file.
3437         * tests/test-getsockopt.c: New file.
3438
3439         Tests for module 'getsockname'.
3440         * modules/getsockname-tests: New file.
3441         * tests/test-getsockname.c: New file.
3442
3443         Tests for module 'getpeername'.
3444         * modules/getpeername-tests: New file.
3445         * tests/test-getpeername.c: New file.
3446
3447         Tests for module 'connect'.
3448         * modules/connect-tests: New file.
3449         * tests/test-connect.c: New file.
3450
3451         Tests for module 'bind'.
3452         * modules/bind-tests: New file.
3453         * tests/test-bind.c: New file.
3454
3455         accept4 tests: Fix for native Windows.
3456         * tests/test-accept4.c: Include sockets.h.
3457         (main): Invoke gl_sockets_startup.
3458         * modules/accept4-tests (Depends-on): Add sockets.
3459
3460         accept tests: Fix for native Windows.
3461         * tests/test-accept.c: Include sockets.h.
3462         (main): Invoke gl_sockets_startup.
3463         * modules/accept-tests (Depends-on): Add sockets.
3464
3465 2011-09-19  Bruno Haible  <bruno@clisp.org>
3466
3467         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3468         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3469         do...while(0).
3470         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3471         Suggested by Paul Eggert.
3472
3473 2011-09-19  Bruno Haible  <bruno@clisp.org>
3474
3475         sched: Ensure pid_t is defined.
3476         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3477         not define pid_t.
3478         * lib/sched.in.h: Include <sys/types.h>.
3479         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3481
3482 2011-09-19  Bruno Haible  <bruno@clisp.org>
3483
3484         msvc-inval: Ensure the entire expansion is a single statement.
3485         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3486         of braces.
3487
3488 2011-09-19  Jim Meyering  <meyering@redhat.com>
3489
3490         tests: use printf, not echo in init.sh's warn_ function
3491         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3492         misbehave when given strings containing a backslash or starting
3493         with e.g., -n.  James Youngman suggested setting IFS.
3494
3495 2011-09-19  Eric Blake  <eblake@redhat.com>
3496
3497         futimens: enhance test
3498         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3499         closed non-negative fd.
3500
3501         date: accept 'hence' as opposite of 'ago'
3502         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3503         * tests/test-parse-datetime.c (main): Enhance test.
3504         Suggested by Jesse Wilson.
3505
3506 2011-09-19  Jim Meyering  <meyering@redhat.com>
3507
3508         getcwd: don't fail in a deep directory on a system without openat
3509         Before this change, getcwd would fail when called from a directory
3510         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3511         the non-openat implementation used "..", "../..", "../../..", etc.
3512         to access ancestor directories.  With too many, that string would
3513         be longer than PATH_MAX.
3514         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3515         using gnulib's openat replacement.
3516         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3517         we're using the replacement function.
3518
3519 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3520
3521         maint.mk: avoid warnings from perl about missing files
3522         * top/maint.mk (def_sym_regex): Ignore files listed in
3523         $(gl_other_headers_) that do not exist, say because a project
3524         does not use a corresponding module.
3525
3526 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3527
3528         stat: use pathmax.h only if needed
3529         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3530         This is better for Emacs, which does not have a mingw port and
3531         therefore can avoid the pathmax module.
3532
3533         utimens: remove dependency on dup2
3534         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3535         to work around the Linux kernel bug.
3536         * modules/utimens (Depends-on): Remove dup2.
3537
3538 2011-09-18  Bruno Haible  <bruno@clisp.org>
3539
3540         inet_ntop, inet_pton: Look for it also in libresolv.
3541         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3542         libnsl, search for it in libresolv.
3543         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3544         Needed on Solaris 7.
3545
3546 2011-09-18  Bruno Haible  <bruno@clisp.org>
3547
3548         accept, accept4 tests: Avoid link error on Solaris.
3549         * modules/accept-tests (Makefile.am): Link test-accept against
3550         $(LIBSOCKET).
3551         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3552         $(LIBSOCKET).
3553
3554         accept4: Avoid link error on Solaris.
3555         * modules/accept4 (Link): New section.
3556
3557         socket functions: Avoid link errors on Solaris.
3558         * modules/accept (Depends-on): Add socketlib.
3559         (Link): New section.
3560         * modules/bind (Depends-on): Add socketlib.
3561         (Link): New section.
3562         * modules/connect (Depends-on): Add socketlib.
3563         (Link): New section.
3564         * modules/getpeername (Depends-on): Add socketlib.
3565         (Link): New section.
3566         * modules/getsockname (Depends-on): Add socketlib.
3567         (Link): New section.
3568         * modules/getsockopt (Depends-on): Add socketlib.
3569         (Link): New section.
3570         * modules/listen (Depends-on): Add socketlib.
3571         (Link): New section.
3572         * modules/recv (Depends-on): Add socketlib.
3573         (Link): New section.
3574         * modules/recvfrom (Depends-on): Add socketlib.
3575         (Link): New section.
3576         * modules/send (Depends-on): Add socketlib.
3577         (Link): New section.
3578         * modules/sendto (Depends-on): Add socketlib.
3579         (Link): New section.
3580         * modules/setsockopt (Depends-on): Add socketlib.
3581         (Link): New section.
3582         * modules/shutdown (Depends-on): Add socketlib.
3583         (Link): New section.
3584         * modules/socket (Depends-on): Add socketlib.
3585         (Link): New section.
3586
3587 2011-09-18  Bruno Haible  <bruno@clisp.org>
3588
3589         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3590         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3591         than 5 seconds.
3592         * modules/ptsname-tests (configure.ac): Test for alarm.
3593
3594 2011-09-18  Bruno Haible  <bruno@clisp.org>
3595
3596         posix_spawn_file_actions_add*: Fix module dependencies.
3597         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3598         posix_spawn_file_actions_init.
3599         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3600         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3601
3602 2011-09-18  Bruno Haible  <bruno@clisp.org>
3603
3604         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3605         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3606         * tests/test-renameat.c (main): Likewise.
3607
3608 2011-09-18  Bruno Haible  <bruno@clisp.org>
3609
3610         Tests for module 'accept4'.
3611         * modules/accept4-tests: New file.
3612         * tests/test-accept4.c: New file.
3613
3614 2011-09-18  Bruno Haible  <bruno@clisp.org>
3615
3616         Tests for module 'accept'.
3617         * modules/accept-tests: New file.
3618         * tests/test-accept.c: New file.
3619
3620 2011-09-18  Bruno Haible  <bruno@clisp.org>
3621
3622         dup2: Support for MSVC.
3623         * lib/dup2.c: Include msvc-inval.h.
3624         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3625         _get_osfhandle calls.
3626         * modules/dup2 (Depends-on): Add msvc-inval.
3627         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3628
3629         New module 'msvc-inval'.
3630         * lib/msvc-inval.h: New file.
3631         * lib/msvc-inval.c: New file.
3632         * m4/msvc-inval.m4: New file.
3633         * modules/msvc-inval: New file.
3634
3635 2011-09-17  Bruno Haible  <bruno@clisp.org>
3636
3637         Tests for module 'pclose'.
3638         * modules/pclose-tests: New file.
3639
3640         New module 'pclose'.
3641         * lib/stdio.in.h (pclose): New declaration.
3642         * lib/pclose.c: New file.
3643         * m4/pclose.m4: New file.
3644         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3645         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3646         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3647         * modules/pclose: New file.
3648         * modules/popen-tests (Depends-on): Add pclose.
3649         * modules/popen-safer-tests (Depends-on): Likewise.
3650         * doc/posix-functions/pclose.texi: Mention the new module.
3651
3652 2011-09-17  Bruno Haible  <bruno@clisp.org>
3653
3654         popen: Support for MSVC.
3655         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3656         * lib/popen.c (popen): Provide alternate definition for native Windows.
3657         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3659         * modules/popen (Depends-on, configure.ac): Update condition.
3660         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3661         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3662         fixed.
3663
3664 2011-09-17  Bruno Haible  <bruno@clisp.org>
3665
3666         isnanl, isnand, isnanf: Work around MSVC bug.
3667         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3668
3669 2011-09-17  Bruno Haible  <bruno@clisp.org>
3670
3671         sys_socket tests: Fix recent mistake.
3672         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3673
3674 2011-09-17  Bruno Haible  <bruno@clisp.org>
3675
3676         putenv: Support for MSVC.
3677         * modules/putenv (Depends-on): Add environ.
3678         * lib/putenv.c (environ): Disable declaration.
3679         * lib/unistd.in.h: Update comment.
3680
3681 2011-09-17  Bruno Haible  <bruno@clisp.org>
3682
3683         math: Avoid macro redefinition warnings on MSVC.
3684         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3685         Undefine before redefining.
3686
3687 2011-09-17  Bruno Haible  <bruno@clisp.org>
3688
3689         doc: Mention functions which are declared as macros.
3690         * doc/posix-functions/*[fl].texi: Mention that some functions are
3691         defined as macros with arguments only.
3692
3693 2011-09-17  Bruno Haible  <bruno@clisp.org>
3694
3695         Add dependencies to new dirent related modules.
3696         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3697         * modules/fts (Depends-on): Likewise.
3698         * modules/glob (Depends-on): Likewise.
3699         * modules/savedir (Depends-on): Likewise.
3700         * modules/scandir (Depends-on): Likewise.
3701         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3702         * modules/fdopendir (Depends-on): Add opendir.
3703
3704 2011-09-17  Bruno Haible  <bruno@clisp.org>
3705
3706         inet_pton: Support for MSVC on Windows Vista or newer.
3707         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3708         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3709         HAVE_DECL_INET_PTON is defined.
3710         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3711         On platforms with <winsock2.h>, test whether inet_pton is declared in
3712         <ws2tcpip.h>. If so, arrange to replace it.
3713         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3714         REPLACE_INET_PTON.
3715         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3716         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3717         (Depends-on, configure.ac): Update condition.
3718         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3719
3720 2011-09-17  Bruno Haible  <bruno@clisp.org>
3721
3722         inet_ntop: Support for MSVC on Windows Vista or newer.
3723         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3724         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3725         HAVE_DECL_INET_NTOP is defined.
3726         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3727         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3728         <ws2tcpip.h>. If so, arrange to replace it.
3729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3730         REPLACE_INET_NTOP.
3731         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3732         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3733         (Depends-on, configure.ac): Update condition.
3734         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3735
3736 2011-09-16  Eric Blake  <eblake@redhat.com>
3737
3738         test-fsync: yet another enhancement
3739         * tests/test-fsync.c (main): Also test behavior on read-only text
3740         file.
3741
3742 2011-09-16  Bruno Haible  <bruno@clisp.org>
3743
3744         Enhance fsync, fdatasync tests.
3745         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3746         * tests/test-fdatasync.c (main): Likewise.
3747
3748 2011-09-16  Bruno Haible  <bruno@clisp.org>
3749
3750         Support for MSVC compiler: Ensure mode_t gets defined.
3751         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3752         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3754         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3755         * tests/test-fcntl-h.c: Check that mode_t is defined.
3756         * tests/test-sys_stat.c: Likewise.
3757         * tests/test-sys_types.c: Likewise.
3758         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3759         * doc/posix-headers/sys_stat.texi: Likewise.
3760         * doc/posix-headers/sys_types.texi: Likewise.
3761
3762 2011-09-16  Bruno Haible  <bruno@clisp.org>
3763
3764         sys_stat: Support for MSVC.
3765         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3766         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3767         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3768         MSVC.
3769
3770 2011-09-16  Bruno Haible  <bruno@clisp.org>
3771
3772         Support for MSVC compiler: Ensure off_t gets defined.
3773         * lib/unistd.in.h: Include <sys/types.h>.
3774         * tests/test-fcntl-h.c: Check that off_t is defined.
3775         * tests/test-sys_stat.c: Likewise.
3776         * tests/test-sys_types.c: Likewise.
3777
3778 2011-09-16  Eric Blake  <eblake@redhat.com>
3779
3780         fdatasync: port to Solaris
3781         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3782         * modules/fdatasync (Link): Document it.
3783         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3784
3785         fdatasync: port to MacOS X 10.7
3786         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3787         declared.
3788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3789         * modules/unistd (Makefile.am): Substitute it.
3790         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3791         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3792
3793         fdatasync: minor improvements
3794         * modules/fdatasync (Depends-on): Add condition for fsync.
3795         * lib/fdatasync.c (fdatasync): Add comment.
3796         * tests/test-unistd-c++.cc: Test fdatasync.
3797
3798         unistd: update refs to newer POSIX
3799         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3800         Suggested by Bruno Haible.
3801
3802         fdatasync: new module
3803         * modules/fsync (Description): Document difference to fdatasync.
3804         * modules/fdatasync: New module.
3805         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3806         * lib/fdatasync.c (fdatasync): Likewise.
3807         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3808         defaults.
3809         * modules/unistd (Makefile.am): Set witnesses.
3810         * lib/unistd.in.h (fdatasync): Declare.
3811         * MODULES.html.sh: Document it.
3812         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3813         * modules/fdatasync-tests: New test.
3814         * tests/test-fdatasync.c: Likewise.
3815
3816 2011-09-16  Eric Blake  <eblake@redhat.com>
3817
3818         test-fsync: enhance tests
3819         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3820         * tests/test-fsync.c (main): Enhance test.
3821
3822 2011-09-15  Bruno Haible  <bruno@clisp.org>
3823
3824         Support for MSVC compiler: Ensure ssize_t gets defined.
3825         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3826         * doc/posix-headers/stdio.texi: Likewise.
3827         * modules/stdio (Depends-on): Add ssize_t.
3828         * modules/sys_socket (Depends-on): Likewise.
3829         * modules/sys_types (Depends-on): Likewise.
3830         * modules/sys_uio (Depends-on): Likewise.
3831         * modules/unistd (Depends-on): Likewise.
3832         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3833         * tests/test-sys_types.c: Check that ssize_t is defined.
3834
3835 2011-09-14  Bruno Haible  <bruno@clisp.org>
3836
3837         Avoid using #, the m4 comment starter character, near brackets.
3838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3839         delimiter character in sed expressions.
3840         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3841         Suggested by Eric Blake.
3842
3843         Properly quote AC_CHECK_DECLS' 4th argument.
3844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3845         argument.
3846         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3847         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3848         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3849         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3850         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3851         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3853         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3854         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3856         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3858         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3859         * m4/isinf.m4 (gl_ISINF): Likewise.
3860         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3861         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3862         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3866         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3867         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3868         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3869         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3870         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3873         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3875         Reported by Eric Blake.
3876
3877         Properly quote AC_CHECK_DECL's 4th argument.
3878         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3879         argument.
3880         * m4/argp.m4 (gl_ARGP): Likewise.
3881         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3882         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3883         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3884         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3885         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3886         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3888         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3890         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3892         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3893         Reported by Eric Blake.
3894
3895 2011-09-14  Eric Blake  <eblake@redhat.com>
3896
3897         opendir: avoid compile warning
3898         * lib/opendir.c (includes): Always include errno.h.
3899         Reported by Tatsuro MATSUOKA.
3900
3901 2011-09-14  Jim Meyering  <meyering@redhat.com>
3902
3903         maint.mk: sc_tight_scope: propagate failure from sub-make
3904         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3905         Reported by Martin von Gagern.
3906
3907 2011-09-13  Bruno Haible  <bruno@clisp.org>
3908
3909         tempname: Support for MSVC.
3910         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3911         MSVC.
3912         * modules/tempname (Depends-on): Add fcntl-h.
3913
3914 2011-09-13  Bruno Haible  <bruno@clisp.org>
3915
3916         sys_time: Support for MSVC.
3917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3918         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3919         include <winsock2.h>.
3920         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3921         function declarations that collide with POSIX.
3922         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3923         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3924
3925 2011-09-13  Bruno Haible  <bruno@clisp.org>
3926
3927         stat: Support for MSVC.
3928         * lib/stat.c: Include pathmax.h.
3929         * modules/stat (Depends-on): Add pathmax.
3930
3931         pathmax: Support for native Windows.
3932         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3933
3934 2011-09-12  Bruno Haible  <bruno@clisp.org>
3935
3936         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3937         * lib/dirent.in.h (struct dirent): New type.
3938         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3939         DT_WHT): New macros.
3940         (DIR): New type.
3941         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3942         (readdir, rewinddir): New declarations.
3943         * lib/dirent-private.h: New file.
3944         * lib/opendir.c: New file.
3945         * lib/readdir.c: New file.
3946         * lib/rewinddir.c: New file.
3947         * lib/closedir.c: New file.
3948         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3949         * m4/opendir.m4: New file.
3950         * m4/readdir.m4: New file.
3951         * m4/rewinddir.m4: New file.
3952         * m4/closedir.m4: New file.
3953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3954         REPLACE_CLOSEDIR here.
3955         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3956         readdir, rewinddir are declared.
3957         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3958         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3959         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3960         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3961         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3962         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3963         * modules/opendir: New file.
3964         * modules/readdir: New file.
3965         * modules/rewinddir: New file.
3966         * modules/closedir: New file.
3967         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3968         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3969         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3970         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3971         * NEWS: Mention the 'fchdir' change.
3972
3973 2011-09-11  Bruno Haible  <bruno@clisp.org>
3974
3975         asm-underscore.m4: Support for MSVC.
3976         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3977         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3978
3979 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3980
3981         Doc about crypt functions.
3982         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3983         needing for _GNU_SOURCE to get crypt.
3984         * doc/posix-functions/encrypt.texi: Likewise.
3985         * doc/posix-functions/setkey.texi: Likewise.
3986
3987 2011-09-11  Bruno Haible  <bruno@clisp.org>
3988
3989         doc: Update regarding MSVC 9.
3990         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3991         tested".
3992         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3993         * doc/posix-headers/*.texi: Likewise.
3994         * doc/pastposix-functions/*.texi: Likewise.
3995         * doc/glibc-functions/*.texi: Likewise.
3996         * doc/glibc-headers/*.texi: Likewise.
3997
3998 2011-09-11  Bruno Haible  <bruno@clisp.org>
3999
4000         unistd et al.: Don't assume <unistd.h> exists.
4001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4002         does not exist.
4003         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4004         exist. But include <stdlib.h>.
4005         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4006         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4007         symlink() does not exist.
4008         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4009         include <io.h> instead.
4010         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4011         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4012         include <direct.h> instead.
4013         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4015         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4016         <io.h> instead.
4017         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4018         correctly if the system does not have hard links.
4019         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4020         <direct.h> instead.
4021         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4022         it when looking for function declarations.
4023         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4024         <direct.h> and <io.h> instead.
4025         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4026
4027 2011-09-11  Bruno Haible  <bruno@clisp.org>
4028
4029         strcase: Support for MSVC.
4030         * modules/strcase (Status, Notice): Remove obsoletion mark.
4031         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4032         * doc/posix-functions/strncasecmp.texi: Likewise.
4033
4034         strings: Don't assume <strings.h> exists.
4035         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4036         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4037         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4038         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4039
4040 2011-09-11  Bruno Haible  <bruno@clisp.org>
4041
4042         dirent: Don't assume <dirent.h> exists.
4043         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4044         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4045         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4046         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4047
4048 2011-09-11  Bruno Haible  <bruno@clisp.org>
4049
4050         Fix wint_t on MSVC.
4051         * lib/wchar.in.h (wint_t): On MSVC, override it.
4052         * lib/wctype.in.h (wint_t): Likewise.
4053         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4054         MSVC.
4055         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4056         * doc/posix-headers/wctype.texi: Likewise.
4057
4058 2011-09-11  Bruno Haible  <bruno@clisp.org>
4059
4060         sys_types: Fix typo.
4061         * lib/sys_types.in.h: Fix typo in comment.
4062         Reported by Paul Eggert.
4063
4064         Support for MSVC compiler: Ensure size_t gets defined.
4065         * modules/strings (Depends-on): Add 'sys_types'.
4066         * modules/sys_uio (Depends-on): Likewise.
4067         * lib/sys_uio.in.h: Update comment.
4068
4069         C++ tests for module 'sys_types'.
4070         * modules/sys_types-c++-tests: New file.
4071         * tests/test-sys_types-c++.cc: New file.
4072
4073         Tests for module 'sys_types'.
4074         * modules/sys_types-tests: New file.
4075         * tests/test-sys_types.c: New file.
4076
4077         New module 'sys_types'.
4078         * lib/sys_types.in.h: New file.
4079         * m4/sys_types_h.m4: New file.
4080         * modules/sys_types: New file.
4081         * doc/posix-headers/sys_types.texi: Mention the new module and the
4082         size_t problem on MSVC 9.
4083
4084 2011-09-11  Bruno Haible  <bruno@clisp.org>
4085
4086         Support for MSVC compiler: Avoid division by a literal 0.
4087         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4089         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4090         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4091         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4092         * tests/infinity.h: New file.
4093         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4094         on MSVC.
4095         * tests/test-ceilf1.c: Include infinity.h.
4096         (main): Use Infinityf.
4097         * tests/test-ceil1.c: Include infinity.h.
4098         (main): Use Infinityd.
4099         * tests/test-ceill.c: Include infinity.h.
4100         (main): Use Infinityl.
4101         * tests/test-dprintf-posix.c: Include infinity.h.
4102         (test_function): Use Infinityd.
4103         * tests/test-floorf1.c: Include infinity.h.
4104         (main): Use Infinityf.
4105         * tests/test-floor1.c: Include infinity.h.
4106         (main): Use Infinityd.
4107         * tests/test-floorl.c: Include infinity.h.
4108         (main): Use Infinityl.
4109         * tests/test-fprintf-posix.c: Include infinity.h.
4110         (test_function): Use Infinityd.
4111         * tests/test-frexp.c: Include infinity.h.
4112         (main): Use Infinityd.
4113         * tests/test-frexpl.c: Include infinity.h.
4114         (main): Use Infinityl.
4115         * tests/test-isfinite.c: Include infinity.h.
4116         (test_isfinitef): Use Infinityf.
4117         (test_isfinited): Use Infinityd.
4118         (test_isfinitel): Use Infinityl.
4119         * tests/test-isinf.c: Include infinity.h.
4120         (test_isinff): Use Infinityf.
4121         (test_isinfd): Use Infinityd.
4122         (test_isinfl): Use Infinityl.
4123         * tests/test-isnan.c: Include infinity.h.
4124         (test_float): Use Infinityf.
4125         (test_double): Use Infinityd.
4126         (test_long_double): Use Infinityl.
4127         * tests/test-isnanf.h: Include infinity.h.
4128         (main): Use Infinityf.
4129         * tests/test-isnand.h: Include infinity.h.
4130         (main): Use Infinityd.
4131         * tests/test-isnanl.h: Include infinity.h.
4132         (main): Use Infinityl.
4133         * tests/test-ldexpl.c: Include infinity.h.
4134         (main): Use Infinityl.
4135         * tests/test-printf-posix.h: Include infinity.h.
4136         (test_function): Use Infinityd.
4137         * tests/test-roundf1.c: Include infinity.h.
4138         (main): Use Infinityf.
4139         * tests/test-round1.c: Include infinity.h.
4140         (main): Use Infinityd.
4141         * tests/test-roundl.c: Include infinity.h.
4142         (main): Use Infinityl.
4143         * tests/test-signbit.c: Include infinity.h.
4144         (test_signbitf): Use Infinityf.
4145         (test_signbitd): Use Infinityd.
4146         (test_signbitl): Use Infinityl.
4147         * tests/test-snprintf-posix.h: Include infinity.h.
4148         (test_function): Use Infinityd, Infinityl.
4149         * tests/test-sprintf-posix.h: Include infinity.h.
4150         (test_function): Use Infinityd, Infinityl.
4151         * tests/test-truncf1.c: Include infinity.h.
4152         (main): Use Infinityf.
4153         * tests/test-trunc1.c: Include infinity.h.
4154         (main): Use Infinityd.
4155         * tests/test-truncl.c: Include infinity.h.
4156         (main): Use Infinityl.
4157         * tests/test-vasnprintf-posix.c: Include infinity.h.
4158         (test_function): Use Infinityd, Infinityl.
4159         * tests/test-vasprintf-posix.c: Include infinity.h.
4160         (test_function): Use Infinityd, Infinityl.
4161         * modules/ceilf-tests (Files): Add tests/infinity.h.
4162         * modules/ceil-tests (Files): Likewise.
4163         * modules/ceill-tests (Files): Likewise.
4164         * modules/dprintf-posix-tests (Files): Likewise.
4165         * modules/floorf-tests (Files): Likewise.
4166         * modules/floor-tests (Files): Likewise.
4167         * modules/floorl-tests (Files): Likewise.
4168         * modules/fprintf-posix-tests (Files): Likewise.
4169         * modules/frexp-tests (Files): Likewise.
4170         * modules/frexp-nolibm-tests (Files): Likewise.
4171         * modules/frexpl-tests (Files): Likewise.
4172         * modules/frexpl-nolibm-tests (Files): Likewise.
4173         * modules/isfinite-tests (Files): Likewise.
4174         * modules/isinf-tests (Files): Likewise.
4175         * modules/isnan-tests (Files): Likewise.
4176         * modules/isnanf-tests (Files): Likewise.
4177         * modules/isnanf-nolibm-tests (Files): Likewise.
4178         * modules/isnand-tests (Files): Likewise.
4179         * modules/isnand-nolibm-tests (Files): Likewise.
4180         * modules/isnanl-tests (Files): Likewise.
4181         * modules/isnanl-nolibm-tests (Files): Likewise.
4182         * modules/ldexpl-tests (Files): Likewise.
4183         * modules/printf-posix-tests (Files): Likewise.
4184         * modules/roundf-tests (Files): Likewise.
4185         * modules/round-tests (Files): Likewise.
4186         * modules/roundl-tests (Files): Likewise.
4187         * modules/signbit-tests (Files): Likewise.
4188         * modules/snprintf-posix-tests (Files): Likewise.
4189         * modules/sprintf-posix-tests (Files): Likewise.
4190         * modules/truncf-tests (Files): Likewise.
4191         * modules/trunc-tests (Files): Likewise.
4192         * modules/truncl-tests (Files): Likewise.
4193         * modules/vasnprintf-posix-tests (Files): Likewise.
4194         * modules/vasprintf-posix-tests (Files): Likewise.
4195         * modules/vdprintf-posix-tests (Files): Likewise.
4196         * modules/vfprintf-posix-tests (Files): Likewise.
4197         * modules/vprintf-posix-tests (Files): Likewise.
4198         * modules/vsnprintf-posix-tests (Files): Likewise.
4199         * modules/vsprintf-posix-tests (Files): Likewise.
4200         * modules/xprintf-posix-tests (Files): Likewise.
4201
4202 2011-09-11  Bruno Haible  <bruno@clisp.org>
4203
4204         Ensure pid_t gets defined.
4205         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4206         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4207         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4208         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4209         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4210         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4211         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4212         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4213         * tests/test-fcntl-h.c: Check that pid_t is defined.
4214         * tests/test-sched.c: Likewise.
4215         * tests/test-termios.c: Likewise.
4216         * tests/test-time.c: Likewise.
4217         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4218         * doc/posix-headers/signal.texi: Likewise.
4219         * doc/posix-headers/sys_types.texi: Likewise.
4220         * doc/posix-headers/time.texi: Likewise.
4221
4222 2011-09-11  Bruno Haible  <bruno@clisp.org>
4223
4224         acl: Fix compilation on Solaris 10 (older version).
4225         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4226         of ACE_EVERYONE.
4227         * lib/set-mode-acl.c (qset_acl): Likewise.
4228         Reported by Christian Jullien <eligis@orange.fr>.
4229
4230 2011-09-10  Bruno Haible  <bruno@clisp.org>
4231
4232         iconv, unsetenv: Add support for MSVC compiler.
4233         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4235
4236 2011-09-10  Bruno Haible  <bruno@clisp.org>
4237
4238         *printf: Add support for MSVC compiler.
4239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4240         handles the exception caused by the %n directive. When cross-compiling,
4241         guess no on native Windows.
4242         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4243         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4244         emulate it through vsnprintf.
4245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4246         * doc/posix-functions/dprintf.texi: Update documentation regarding
4247         MSVC 9.
4248         * doc/posix-functions/fprintf.texi: Likewise.
4249         * doc/posix-functions/printf.texi: Likewise.
4250         * doc/posix-functions/snprintf.texi: Likewise.
4251         * doc/posix-functions/sprintf.texi: Likewise.
4252         * doc/posix-functions/swprintf.texi: Likewise.
4253         * doc/posix-functions/vdprintf.texi: Likewise.
4254         * doc/posix-functions/vfprintf.texi: Likewise.
4255         * doc/posix-functions/vprintf.texi: Likewise.
4256         * doc/posix-functions/vsnprintf.texi: Likewise.
4257         * doc/posix-functions/vsprintf.texi: Likewise.
4258         * doc/glibc-functions/asprintf.texi: Likewise.
4259         * doc/glibc-functions/obstack_printf.texi: Likewise.
4260         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4261         * doc/glibc-functions/vasprintf.texi: Likewise.
4262
4263 2011-09-10  Bruno Haible  <bruno@clisp.org>
4264
4265         nocrash: Add support for native Windows.
4266         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4267
4268 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4269             Bruno Haible  <bruno@clisp.org>
4270
4271         absolute-header, include-next: Add support for MSVC compiler.
4272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4273         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4274         directory separator in #line directives.
4275         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4276         recognize also backslash as directory separator in #line directives.
4277
4278 2011-09-08  Jim Meyering  <meyering@redhat.com>
4279
4280         maint.mk: mark the post-release commit log with "maint: " prefix
4281         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4282         one-line commit-log summary.
4283
4284 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4285             Bruno Haible  <bruno@clisp.org>
4286
4287         Doc about crypt functions.
4288         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4289         systems.
4290         * doc/posix-functions/encrypt.texi: Likewise.
4291         * doc/posix-functions/setkey.texi: Likewise.
4292
4293 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4294
4295         * lib/gc.h: Fix copyright header.
4296
4297 2011-09-07  Bruno Haible  <bruno@clisp.org>
4298
4299         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4300         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4301         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4302
4303 2011-09-07  Bruno Haible  <bruno@clisp.org>
4304
4305         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4306         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4307         * lib/freopen.c: Likewise.
4308         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4309         * lib/lstat.c: Likewise.
4310         * lib/stat.c: Likewise.
4311         * lib/open.c: Use different syntax for include of <fcntl.h>.
4312         * lib/openat.c: Include fcntl.h again, explicitly.
4313
4314 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4315
4316         parse-datetime: document the newly accepted format
4317         * doc/parse-datetime.texi (Combined date and time of day items):
4318         New section.
4319
4320 2011-09-06  Bruno Haible  <bruno@clisp.org>
4321
4322         acl: Fix a test failure on newer Solaris 10 with ZFS.
4323         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4324         ENOSYS as no ACL.
4325         Reported by Jim Meyering.
4326
4327 2011-09-06  Bruno Haible  <bruno@clisp.org>
4328
4329         acl: Update for AIX >= 5.3 with NFS.
4330         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4331         ENOSYS as no ACL.
4332
4333         acl: Fix a test failure on AIX >= 5.3 with NFS.
4334         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4335         as no ACL.
4336
4337 2011-09-06  Bruno Haible  <bruno@clisp.org>
4338
4339         acl: Fix a test failure on IRIX 6.5 with NFS.
4340         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4341         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4342         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4343         * lib/copy-acl.c (qcopy_acl): Likewise.
4344
4345 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4346
4347         openat: port to AIX 7.1 with large files
4348         AIX 7.1 does a "#define openat open64at" if large files are in use,
4349         so we can't simply #undef openat.  Use the orig_openat trick (similar
4350         to orig_open in lib/open.c) to work around the problem.  Problem
4351         reported by Kevin Brott for GNU tar, in the thread containing
4352         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4353         * lib/openat.c (__need_system_fcntl_h): Define first.
4354         Include <fcntl.h> and <sys/types.h> before undefining.
4355         (orig_openat) [HAVE_OPENAT]: New inline function.
4356         (openat) [HAVE_OPENAT]: Do not undef.
4357         (rpl_openat): Use orig_openat, not openat.
4358
4359 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4360             Bruno Haible  <bruno@clisp.org>
4361
4362         acl: Avoid errors on NonStop Kernel.
4363         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4364         ENOTSUP errors.
4365
4366 2011-09-05  Bruno Haible  <bruno@clisp.org>
4367
4368         acl: Clean up Solaris code.
4369         * lib/acl-internal.h: Remove no-op #if.
4370         * lib/file-has-acl.c: Likewise.
4371         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4372         * lib/copy-acl.c (qcopy_acl): Likewise.
4373
4374 2011-09-05  Bruno Haible  <bruno@clisp.org>
4375
4376         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4377         binaries built on the original Solaris 10.
4378         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4379         trivial.
4380
4381 2011-09-05  Bruno Haible  <bruno@clisp.org>
4382
4383         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4384         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4385         10.
4386         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4387         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4388         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4389         instead of acl_get, facl_get, acl_set, facl_set.
4390
4391 2011-09-05  Bruno Haible  <bruno@clisp.org>
4392
4393         copy-file: Try unit tests on more file systems.
4394         * tests/test-copy-file-1.sh: New file.
4395         * tests/test-copy-file-2.sh: New file.
4396         * modules/copy-file-tests (Files): Add them.
4397         (Makefile.am): Add them to TESTS.
4398
4399         acl: Try unit tests on more file systems.
4400         * tests/test-file-has-acl-1.sh: New file.
4401         * tests/test-file-has-acl-2.sh: New file.
4402         * tests/test-set-mode-acl-1.sh: New file.
4403         * tests/test-set-mode-acl-2.sh: New file.
4404         * tests/test-copy-acl-1.sh: New file.
4405         * tests/test-copy-acl-2.sh: New file.
4406         * modules/acl-tests (Files): Add them.
4407         (Makefile.am): Add them to TESTS.
4408
4409 2011-09-04  Bruno Haible  <bruno@clisp.org>
4410
4411         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4412         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4413         10.
4414         (OLD_ALLOW, OLD_DENY): New macros.
4415         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4416         ACE_ACCESS_ALLOWED_ACE_TYPE.
4417         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4418         ACE_ACCESS_DENIED_ACE_TYPE.
4419         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4420         (NEW_ACE_EXECUTE): Fix value.
4421         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4422         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4423         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4424         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4425         NEW_ACE_SYNCHRONIZE): New macros.
4426         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4427         instead of acl_fromtext, acl_set, facl_set.
4428         Fixes a coreutils/tests/cp/perm failure.
4429
4430 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4431
4432         openat: test for fstatat (..., 0) bug
4433         Further testing with tar suggests that fstatat (..., 0)
4434         does not work in general, on AIX 7.1; see
4435         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4436         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4437         replacement fstatat (which is what older AIX releases were using
4438         anyway).
4439         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4440         use is now changed to orig_fstatat.  This was probably the right
4441         thing to do anyway.
4442         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4443         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4444         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4445         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4446         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4447         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4448         if the bug is found.
4449
4450         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4451         This tests for another fstatat bug on AIX 7.1:
4452         fstatat (AT_FDCWD, ..., 0) does not work.  See
4453         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4454         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4455         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4456         (rpl_fstatat): Adjust so that it works around either (or both)
4457         bugs if present.
4458         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4459
4460 2011-09-03  Karl Berry  <karl@gnu.org>
4461
4462         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4463         in index entries.
4464
4465 2011-09-02  Bruno Haible  <bruno@clisp.org>
4466
4467         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4469         values of AR, ARFLAGS, RANLIB.
4470         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4471
4472 2011-09-02  Bruno Haible  <bruno@clisp.org>
4473
4474         Find 'ar' program that fits with --host argument.
4475         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4476
4477 2011-09-02  Bruno Haible  <bruno@clisp.org>
4478
4479         tests: init.sh: Support any non-GNU diff.
4480         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4481         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4482         Solaris 8.
4483
4484 2011-09-02  Bruno Haible  <bruno@clisp.org>
4485
4486         tests: init.sh: work also with any non-GNU diff that supports -u
4487         * tests/init.sh: Relax check for diff -u support.
4488         Rather than checking for GNU diff via --version, simply check
4489         for support for -u itself.  Useful at least on OpenBSD 4.9,
4490         AIX 7.1, IRIX 6.5, and Solaris 10.
4491
4492 2011-09-01  Bruno Haible  <bruno@clisp.org>
4493
4494         strtoimax, strtoumax: Document problem on HP-UX 11.
4495         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4496         * doc/posix-functions/strtoumax.texi: Likewise.
4497
4498 2011-09-01  Bruno Haible  <bruno@clisp.org>
4499
4500         strtoumax: Avoid link error on OSF/1 with DTK cc.
4501         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4502         defined as a function.
4503         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4504         strtoumax is defined, not whether it is declared.
4505
4506 2011-09-01  Bruno Haible  <bruno@clisp.org>
4507
4508         strtoimax: Avoid link error on OSF/1 with DTK cc.
4509         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4510         defined as a function.
4511         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4512         strtoimax is defined, not whether it is declared.
4513
4514 2011-09-01  Bruno Haible  <bruno@clisp.org>
4515
4516         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4517         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4518         as a function.
4519         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4520         whether it is declared.
4521
4522 2011-09-01  Bruno Haible  <bruno@clisp.org>
4523
4524         imaxabs: Avoid link error on OSF/1 with DTK cc.
4525         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4526         as a function.
4527         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4528         whether it is declared.
4529
4530 2011-09-01  Bruno Haible  <bruno@clisp.org>
4531
4532         Tests for module 'strtoumax'.
4533         * modules/strtoumax-tests: New file.
4534         * tests/test-strtoumax.c: New file.
4535
4536         Tests for module 'strtoimax'.
4537         * modules/strtoimax-tests: New file.
4538         * tests/test-strtoimax.c: New file.
4539
4540         Tests for module 'imaxdiv'.
4541         * modules/imaxdiv-tests: New file.
4542         * tests/test-imaxdiv.c: New file.
4543
4544         Tests for module 'imaxabs'.
4545         * modules/imaxabs-tests: New file.
4546         * tests/test-imaxabs.c: New file.
4547
4548 2011-09-01  Bruno Haible  <bruno@clisp.org>
4549
4550         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4551         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4552         pthread_create.
4553
4554 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         openat: work around AIX 7.1 fstatat issue
4557         This should fix the problem that was not properly fixed
4558         in the previous change, dated 2011-08-30.
4559         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4560         __need_system_stat_h defined.
4561         (orig_fstatat) [HAVE_FSTATAT]: New function.
4562         (rpl_fstatat): Go back to the old way of doing things,
4563         except call orig_fstatat instead of fstatat.
4564         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4565         Remove unnecessary check whether fstatat fills in st_size etc.
4566
4567 2011-09-01  Bruno Haible  <bruno@clisp.org>
4568
4569         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4570         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4571         just include the system's header.
4572
4573 2011-08-31  Jim Meyering  <meyering@redhat.com>
4574
4575         tests: avoid spurious assertion failure in test-float.c on ppc64
4576         * tests/test-float.c (test_long_double): Comment out an assertion,
4577         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4578         with gcc-4.4.4.
4579
4580         maint: indent with spaces, not TABs
4581         I need to get in the habit of running gnulib's "make check".
4582         Both of these would have been caught.
4583         * m4/largefile.m4: Indent with spaces, not TABs.
4584         * lib/parse-datetime.y (iso_8601_time): Likewise.
4585         Spotted by Pádraig Brady.
4586
4587         test-parse-datetime.c: accommodate a relatively strict gcc warning
4588         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4589         to avoid a warning from gcc's -Werror=missing-declarations.
4590         Insert a few spaces-before-funcall-parenthesis.
4591
4592 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4593
4594         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4595         The parser now accepts ISO 8601 date-time strings with "T" as the
4596         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4597         with a space between the date and time strings.  Now it also parses
4598         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4599         variants like "2004-02-29T16:21:42.333-07:00"
4600         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4601         of day representation using the 'T' separator character.
4602         * doc/parse-datetime.texi (General date syntax): replace use of
4603         deprecated --iso-8601 option with --rfc-3339 in example of date
4604         command output formats that can be parsed.
4605         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4606         lib/parse-datetime.y.
4607         (gmt_offset): New function.
4608         (main): Add additional test cases to validate ISO8601 extended
4609         date and time of day parsing.
4610
4611 2011-08-31  Bruno Haible  <bruno@clisp.org>
4612
4613         freopen: Documentation.
4614         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4615         name.
4616         Reported by Claudio Bley <claudio.bley@gmail.com>.
4617
4618 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4619
4620         freopen: Don't crash if the filename argument is NULL.
4621         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4622         NULL.
4623
4624 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         openat: work around AIX 7.1 fstatat bug
4627         Problem reported by Kevin Brott for GNU tar, in the thread containing
4628         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4629         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4630         FSTATAT_ST_SIZE_ETC_BROKEN.
4631         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4632         rpl_fstatat.
4633         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4634         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4635         AC_CHECK_FUNCS_ONCE for fstatat.
4636         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4637         fchmodat, mkdirat, openat and unlinkat.
4638
4639 2011-08-30  Bruno Haible  <bruno@clisp.org>
4640
4641         Avoid endless recursions if config.h includes some header files.
4642         * lib/fopen.c (__need_FILE): Define already before including config.h.
4643         * lib/freopen.c (__need_FILE): Likewise.
4644         * lib/open.c (__need_system_fcntl_h): Likewise.
4645         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4646         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4647         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4648
4649 2011-08-25  Karl Berry  <karl@gnu.org>
4650
4651         * config/srclist.txt (ylwrap): new try.
4652         * build-aux/ylwrap: new file.
4653
4654 2011-08-23  Bruno Haible  <bruno@clisp.org>
4655
4656         tmpdir: Use a good default directory on native Windows.
4657         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4658         (P_tmpdir): Default to _P_tmpdir on native Windows.
4659         (path_search): On native Windows, try the value returned by GetTempPath
4660         before trying P_tmpdir.
4661         * modules/tmpdir (Depends-on): Add pathmax.
4662         Suggested by John Darrington <john@darrington.wattle.id.au>.
4663
4664 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4665
4666         doc: fix typo in README-release
4667         * top/README-release: Capitalize first word of a sentence.
4668
4669 2011-08-19  Jim Meyering  <meyering@redhat.com>
4670
4671         fts: do not exhaust memory when processing million-entry directories
4672         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4673         directory would require about 256*N bytes of memory.  Thus, it was
4674         easy to construct a directory too large to be processed by any of
4675         those tools.  With this change, fts' maximum memory utilization is
4676         now limited to around 30MB.
4677         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4678         (fts_read): When we've processed the final entry (i.e., when
4679         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4680         using the parent entry to read any remaining entries.  Dispatch
4681         depending on what fts_build returns:
4682         - NULL+stop, aka failure: stop
4683         - NULL otherwise: move up in the dir hierarchy
4684         - non-NULL: handle this new entry
4685         (fts_build): Declare and use new local, continue_readdir.
4686         Prepare to be called from fts_read, when the entries
4687         from a partially-read directory have just been exhausted.
4688         In that case, we'll skip the opendir and instead use the parent's
4689         fts_dirp and derive dir_fd from that.
4690         Finally, in the readdir loop, if we read max_entries entries,
4691         exit the loop ensuring *not* to call closedir.  This is required
4692         so that fts_dirp can be reused on a subsequent call.
4693         Prompted by Ben England's report of memory exhaustion in find
4694         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4695
4696         maint: fts: move decl of `dp' down into while loop; split a long line
4697         * lib/fts.c (fts_build): No semantic change.
4698
4699         fts: add/use new struct member, fts_dirp
4700         We are about to use this to manage any directory with
4701         too many entries to read all of them into memory at once.
4702         To do that, we'll need to save the DIR* pointer in each
4703         affected FTSENT struct.
4704         * lib/fts_.h: Include <dirent.h>.
4705         (struct FTSENT) [fts_dirp]: New member.
4706         * lib/fts.c (closedir_and_clear): Define.
4707         Use it in place of closedir so that we are sure to
4708         clear the new fts_dirp member when done with it.
4709         (fts_alloc): Initialize the new member.
4710         (fts_lfree): Free, if needed.
4711
4712         maint: fts: give __opendir2 a new parameter and rename
4713         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4714         than surreptitiously using sole caller's "dir_fd".
4715         (fts_opendir): Rename from __opendir2.
4716
4717         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4718         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4719
4720         maint: fts.c: correct off-by-one indentation
4721         * lib/fts.c (fts_build): Correct indentation, change style
4722         of a couple of block comments, and bracing style.
4723
4724         maint: fts.c: move __opendir2 #define "up" out of function body
4725         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4726
4727         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4728         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4729         out for a long time and besides was useful only on BSD systems.
4730
4731 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4732
4733         regex: port to Stratus OpenVOS
4734         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4735         define to empty, rather than attempting nonportable optimizations.
4736         Problem reported by Paul Green in:
4737         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4738         and fix suggested by Eric Blake in:
4739         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4740
4741 2011-08-17  Eric Blake  <eblake@redhat.com>
4742
4743         getcwd: fix test failures on mingw
4744         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4745         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4746         test if long directory cannot be created, and allow mingw errno.
4747
4748         getcwd-lgpl: fix m4 to match relaxed test for BSD
4749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4750         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4751         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4752         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4753         signature problem.
4754
4755         getcwd: fix compilation on mingw64
4756         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4757         getcwd.
4758         Reported by Marc-André Lureau.
4759
4760         pipe2: silence compiler warning
4761         * lib/pipe2.c (pipe2): Hide label if it is not used.
4762
4763 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4764
4765         relocatable-prog: fix link error
4766         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4767         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4768         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4769         into modules/relocatable-lib without noticing that
4770         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4771         also needs to build relocatable.c.
4772
4773 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4774
4775         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4777         shell code: it contained a 'break' that was not in a loop.
4778         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4779         via a shell-language loop; this may have been true in old Autoconf
4780         versions, but it's not true in Autoconf 2.68.  I found this bug
4781         when testing coreutils git on Solaris 8, whose shell complains
4782         about the syntax error.
4783
4784 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4785
4786         * lib/base64.c: Fix comment to reference RFC 4648.
4787         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4788         <gvtulder@gmail.com>.
4789
4790 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4791
4792         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4793
4794         po/Makefile.in.in: fix make -q problem
4795         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4796         rule, since there's no file named 'check-macro-version' and its
4797         use as a file breaks make -q.
4798         (all): Don't depend on check-macro-version.
4799         (CHECK_MACRO_VERSION): New macro.
4800         (stamp-po): Use it.
4801
4802         configmake: fix make -q problem
4803         * modules/configmake (configmake.h): Update configmake.h's time stamp
4804         even if the file does not change.  Otherwise, 'make -q' fails.
4805         Problem reported by Simon Josefsson in
4806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4807
4808 2011-08-11  Jim Meyering  <meyering@redhat.com>
4809
4810         git-version-gen: correct the advice in a comment
4811         * build-aux/git-version-gen: Correct comment.
4812         Don't recommend to list .tarball-version in .gitignore.
4813
4814 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4815
4816         base64: fix off-by-one buffer size bug
4817         Problem and (trivial) fix reported by Gijs van Tulder in
4818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4819         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4820         * tests/test-base64.c (main): Catch the bug.
4821
4822 2011-08-10  Eric Blake  <eblake@redhat.com>
4823
4824         closein: correct comments
4825         * lib/closein.c (close_stdin): Improve comments.
4826
4827 2011-08-09  Bruno Haible  <bruno@clisp.org>
4828
4829         More tests for 'fseeko'.
4830         * tests/test-fseeko3.c: New file, from Eric Blake.
4831         * tests/test-fseeko3.sh: New file.
4832         * modules/fseeko-tests (Files): Add them.
4833         (TESTS): Add test-fseeko3.sh.
4834         (check_PROGRAMS): Add test-fseeko3.
4835
4836 2011-08-09  Eric Blake  <eblake@redhat.com>
4837
4838         fseeko: remove unneeded hack
4839         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4840
4841         fseeko: fix bug on glibc
4842         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4843         Reported by John W. Eaton.
4844
4845 2011-08-08  Bruno Haible  <bruno@clisp.org>
4846
4847         unictype/base: Fix interoperability with preinstalled libunistring.
4848         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4849         Reported by Simon Josefsson.
4850
4851 2011-08-08  Bruno Haible  <bruno@clisp.org>
4852
4853         iswblank: Detect declaration correctly.
4854         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4855         AC_CHECK_DECLS invocation.
4856
4857 2011-08-08  Bruno Haible  <bruno@clisp.org>
4858
4859         tcgetsid: Detect declaration correctly.
4860         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4861         AC_CHECK_DECLS invocation.
4862         Reported by Simon Josefsson.
4863
4864 2011-08-08  Eric Blake  <eblake@redhat.com>
4865
4866         largefile: fix typo that regressed large file support
4867         * modules/largefile (configure.ac-early): Fix section name.
4868
4869 2011-08-06  Karl Berry  <karl@gnu.org>
4870
4871         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4872         a separate module.
4873
4874 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4875
4876         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4877         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4878         get prototype for free.
4879
4880 2011-08-04  Bruno Haible  <bruno@clisp.org>
4881
4882         Tests for module 'pathmax'.
4883         * modules/pathmax-tests: New file.
4884         * tests/test-pathmax.c: New file.
4885
4886         canonicalize-lgpl: Support larger filenames on the Hurd.
4887         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4888         Reported by Paul Eggert.
4889
4890         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4891         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4892         * lib/chdir-long.h: Include pathmax.h.
4893         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4894         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4895         (PATH_MAX): Remove code that is done by pathmax.h.
4896         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4897         * lib/tmpfile.c: Add a comment.
4898         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4899         * modules/chdir-long (Depends-on): Add pathmax.
4900         * modules/getcwd (Depends-on): Add pathmax.
4901         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4902         is not defined.
4903         * doc/posix-headers/limits.texi: Mention the pathmax module.
4904         * NEWS: Mention the change.
4905
4906 2011-08-02  Bruno Haible  <bruno@clisp.org>
4907
4908         pthread_sigmask: Actually use results of gl_THREADLIB.
4909         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4910         gl_THREADLIB, not gl_[]THREADLIB.
4911         Reported by Eric Blake.
4912
4913 2011-08-02  Jim Meyering  <meyering@redhat.com>
4914
4915         maint.mk: relax the default _gl_TS_function_match regexp
4916         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4917         space between function name and "(" in an "extern" declaration.
4918         That would fail to match a decl with no space there: extern void foo();
4919
4920 2011-07-31  Iain Nicol  <iain@thenicols.net>
4921
4922         git-version-gen: document that EXTRA_DIST must include .version
4923         * build-aux/git-version-gen: In the how-to-use comment, document
4924         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4925         will fail when run from an unpacked distribution tarball.
4926
4927 2011-08-01  Bruno Haible  <bruno@clisp.org>
4928
4929         wctype-h: Fix last change.
4930         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4931         REPLACE_TOWLOWER to 0.
4932         Reported by Sam Steingold <sds@gnu.org>.
4933
4934 2011-07-31  Bruno Haible  <bruno@clisp.org>
4935
4936         frexpl: Update autoconf test.
4937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4938         according to changes of 2011-06-20.
4939
4940 2011-07-31  Bruno Haible  <bruno@clisp.org>
4941
4942         sys_utsname: Add support for Minix.
4943         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4944         <sys/utsname.h>.
4945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4946         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4947
4948 2011-07-31  Bruno Haible  <bruno@clisp.org>
4949
4950         strings: Add support for Minix.
4951         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4952         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4953         * doc/posix-headers/strings.texi: Document the Minix problem.
4954
4955 2011-07-31  Bruno Haible  <bruno@clisp.org>
4956
4957         wctype-h: Add support for Minix.
4958         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4959         REPLACE_TOWLOWER.
4960         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4961         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4962         REPLACE_ISWCNTRL.
4963
4964 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4965
4966         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4967         This is a performance improvement for 64-bit hosts: it causes the
4968         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4969
4970 2011-07-31  Bruno Haible  <bruno@clisp.org>
4971
4972         stdioext: Add support for Minix.
4973         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4974         * lib/fpurge.c (fpurge): Likewise.
4975         * lib/freadahead.c (freadahead): Likewise.
4976         * lib/freadable.c (freadable): Likewise.
4977         * lib/freading.c (freading): Likewise.
4978         * lib/freadptr.c (freadptr): Likewise.
4979         * lib/freadseek.c (freadptrinc): Likewise.
4980         * lib/fseeko.c (rpl_fseeko): Likewise.
4981         * lib/fseterr.c (fseterr): Likewise.
4982         * lib/fwritable.c (fwritable): Likewise.
4983         * lib/fwriting.c (fwriting): Likewise.
4984         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4985         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4986
4987 2011-07-31  Bruno Haible  <bruno@clisp.org>
4988
4989         errno: Port to Minix.
4990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4991         ECONNABORTED are defined.
4992         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4993         GNULIB_defined_ECONNABORTED): New macros.
4994         * lib/strerror-override.h (strerror_override): Test also
4995         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4996         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4997         ECONNABORTED.
4998         * doc/posix-headers/errno.texi: Mention the Minix problem.
4999
5000 2011-07-31  Bruno Haible  <bruno@clisp.org>
5001
5002         Work around declaration collisions on Minix.
5003         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5004         defined, set REPLACE_MBSINIT.
5005         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5006         defined, set REPLACE_MBRTOWC.
5007         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5008         set REPLACE_MBRLEN.
5009         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5010         defined, set REPLACE_MBSRTOWCS.
5011         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5012         defined, set REPLACE_WCRTOMB.
5013         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5014         defined, set REPLACE_WCSRTOMBS.
5015
5016 2011-07-31  Bruno Haible  <bruno@clisp.org>
5017
5018         Add support for Minix with ACK compiler.
5019         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5020         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5021         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5022
5023 2011-07-31  Bruno Haible  <bruno@clisp.org>
5024
5025         Documentation about Minix.
5026         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5027         * doc/glibc-headers/*.texi: Likewise.
5028         * doc/posix-functions/*.texi: Likewise.
5029         * doc/glibc-functions/*.texi: Likewise.
5030
5031 2011-07-31  Bruno Haible  <bruno@clisp.org>
5032
5033         snippet/warn-on-use: Fix indentation.
5034         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5035
5036 2011-07-25  Jim Meyering  <meyering@redhat.com>
5037
5038         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5039         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5040         commands.
5041
5042 2011-07-27  Jim Meyering  <meyering@redhat.com>
5043
5044         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5045         * top/maint.mk (gl_extract_significant_defines_): Now that
5046         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5047         gnulib/lib/signal.in.h, and now that we recommend to
5048         define-if-undefined those two symbols in application code,
5049         we must filter them out of the "significant" list.
5050         This avoids a "make syntax-check" failure in coreutils.
5051
5052 2011-07-26  Eric Blake  <eblake@redhat.com>
5053
5054         warnings: add comments about previous patch
5055         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5056         * m4/include_next.m4: Likewise.
5057         * m4/warn-on-use.m4: Likewise.
5058         * m4/warnings.m4: Likewise, and simplify use.
5059         Suggested by Stefano Lattarini.
5060
5061         include-next, warnings: support older autoconf
5062         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5063         AS_VAR_PUSHDEF in a way that works with older autoconf.
5064         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5065         Reported by Daniel P. Berrange.
5066
5067 2011-07-25  Bruno Haible  <bruno@clisp.org>
5068
5069         fseek, ftell: Fix doc.
5070         * doc/posix-functions/fseek.texi: Reword statement about
5071         AC_SYS_LARGEFILE.
5072         * doc/posix-functions/ftell.texi: Likewise.
5073
5074 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5075             Bruno Haible  <bruno@clisp.org>
5076
5077         Add dependencies to the 'largefile' module.
5078         * modules/fopen (Depends-on): Add 'largefile'.
5079         * modules/freopen (Depends-on): Likewise.
5080         * modules/fseeko (Depends-on): Likewise.
5081         * modules/ftello (Depends-on): Likewise.
5082         * modules/glob (Depends-on): Likewise.
5083         * modules/lseek (Depends-on): Likewise.
5084         * modules/lstat (Depends-on): Likewise.
5085         * modules/mkostemp (Depends-on): Likewise.
5086         * modules/mkostemps (Depends-on): Likewise.
5087         * modules/mkstemp (Depends-on): Likewise.
5088         * modules/mkstemps (Depends-on): Likewise.
5089         * modules/open (Depends-on): Likewise.
5090         * modules/openat (Depends-on): Likewise.
5091         * modules/pread (Depends-on): Likewise.
5092         * modules/pwrite (Depends-on): Likewise.
5093         * modules/scandir (Depends-on): Likewise.
5094         * modules/stat (Depends-on): Likewise.
5095         * modules/tmpfile (Depends-on): Likewise.
5096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5097         since the containing module now depends on the largefile module.
5098         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5099         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5100         off_t is fixed by gnulib.
5101         * doc/posix-functions/freopen.texi: Likewise.
5102         * doc/posix-functions/fseeko.texi: Likewise.
5103         * doc/posix-functions/fstatat.texi: Likewise.
5104         * doc/posix-functions/ftello.texi: Likewise.
5105         * doc/posix-functions/glob.texi: Likewise.
5106         * doc/posix-functions/lseek.texi: Likewise.
5107         * doc/posix-functions/lstat.texi: Likewise.
5108         * doc/posix-functions/mkstemp.texi: Likewise.
5109         * doc/posix-functions/open.texi: Likewise.
5110         * doc/posix-functions/openat.texi: Likewise.
5111         * doc/posix-functions/pread.texi: Likewise.
5112         * doc/posix-functions/pwrite.texi: Likewise.
5113         * doc/posix-functions/scandir.texi: Likewise.
5114         * doc/posix-functions/stat.texi: Likewise.
5115         * doc/posix-functions/tmpfile.texi: Likewise.
5116         * doc/glibc-functions/mkostemp.texi: Likewise.
5117         * doc/glibc-functions/mkostemps.texi: Likewise.
5118         * doc/glibc-functions/mkstemps.texi: Likewise.
5119
5120 2011-07-25  Bruno Haible  <bruno@clisp.org>
5121
5122         fcntl: Move AC_LIBOBJ invocation to module description.
5123         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5124         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5125
5126         fcntl: Remove call-in from fchdir.m4.
5127         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5129
5130         dup3: Remove potential call-in from fchdir.m4.
5131         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5133
5134         dup2: Move AC_LIBOBJ invocation to module description.
5135         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5136         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5137         Don't invoke AC_LIBOBJ.
5138         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5139
5140         dup2: Remove call-in from fchdir.m4.
5141         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5143
5144         fclose: Move AC_LIBOBJ invocation to module description.
5145         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5146         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5147         to 1.
5148         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5149
5150         fclose: Remove call-in from close.m4.
5151         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5152         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5153
5154         close: Move AC_LIBOBJ invocation to module description.
5155         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5156         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5157         1.
5158         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5159
5160         close: Remove call-in from fchdir.m4.
5161         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5163
5164         open: Move AC_LIBOBJ invocation to module description.
5165         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5166         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5167         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5168
5169         open: Remove call-in from fchdir.m4.
5170         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5172
5173         fchdir: Start to remove gl_REPLACE_* idiom.
5174         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5175         (gl_FUNC_FCHDIR): Invoke it.
5176
5177 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5178
5179         * lib/ftell.c (ftell): Comment out cast.
5180
5181         close: use gl_REPLACE_FCLOSE only if defined
5182         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5183         is defined.  The close module doesn't depend on the fclose module
5184         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5186         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5187
5188 2011-07-24  Jim Meyering  <meyering@redhat.com>
5189
5190         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5191         * tests/test-select.h (test_function): Declare as "static".
5192
5193 2011-07-24  Bruno Haible  <bruno@clisp.org>
5194
5195         doc: Mention the effects of AC_SYS_LARGEFILE.
5196         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5197         on this function.
5198         * doc/posix-functions/aio_error.texi: Likewise.
5199         * doc/posix-functions/aio_fsync.texi: Likewise.
5200         * doc/posix-functions/aio_read.texi: Likewise.
5201         * doc/posix-functions/aio_return.texi: Likewise.
5202         * doc/posix-functions/aio_suspend.texi: Likewise.
5203         * doc/posix-functions/aio_write.texi: Likewise.
5204         * doc/posix-functions/fgetpos.texi: Likewise.
5205         * doc/posix-functions/fopen.texi: Likewise.
5206         * doc/posix-functions/freopen.texi: Likewise.
5207         * doc/posix-functions/fsetpos.texi: Likewise.
5208         * doc/posix-functions/fstatvfs.texi: Likewise.
5209         * doc/posix-functions/ftruncate.texi: Likewise.
5210         * doc/posix-functions/ftw.texi: Likewise.
5211         * doc/posix-functions/getrlimit.texi: Likewise.
5212         * doc/posix-functions/glob.texi: Likewise.
5213         * doc/posix-functions/lio_listio.texi: Likewise.
5214         * doc/posix-functions/lockf.texi: Likewise.
5215         * doc/posix-functions/mkstemp.texi: Likewise.
5216         * doc/posix-functions/mmap.texi: Likewise.
5217         * doc/posix-functions/nftw.texi: Likewise.
5218         * doc/posix-functions/openat.texi: Likewise.
5219         * doc/posix-functions/opendir.texi: Likewise.
5220         * doc/posix-functions/posix_fadvise.texi: Likewise.
5221         * doc/posix-functions/posix_fallocate.texi: Likewise.
5222         * doc/posix-functions/pread.texi: Likewise.
5223         * doc/posix-functions/pwrite.texi: Likewise.
5224         * doc/posix-functions/readdir.texi: Likewise.
5225         * doc/posix-functions/readdir_r.texi: Likewise.
5226         * doc/posix-functions/rewinddir.texi: Likewise.
5227         * doc/posix-functions/scandir.texi: Likewise.
5228         * doc/posix-functions/seekdir.texi: Likewise.
5229         * doc/posix-functions/setrlimit.texi: Likewise.
5230         * doc/posix-functions/statvfs.texi: Likewise.
5231         * doc/posix-functions/telldir.texi: Likewise.
5232         * doc/posix-functions/tmpfile.texi: Likewise.
5233         * doc/posix-functions/truncate.texi: Likewise.
5234         * doc/glibc-functions/fallocate.texi: Likewise.
5235         * doc/glibc-functions/fstatfs.texi: Likewise.
5236         * doc/glibc-functions/fts_children.texi: Likewise.
5237         * doc/glibc-functions/fts_read.texi: Likewise.
5238         * doc/glibc-functions/getdirentries.texi: Likewise.
5239         * doc/glibc-functions/mkostemp.texi: Likewise.
5240         * doc/glibc-functions/mkostemps.texi: Likewise.
5241         * doc/glibc-functions/mkstemps.texi: Likewise.
5242         * doc/glibc-functions/preadv.texi: Likewise.
5243         * doc/glibc-functions/pwritev.texi: Likewise.
5244         * doc/glibc-functions/sendfile.texi: Likewise.
5245         * doc/glibc-functions/statfs.texi: Likewise.
5246
5247 2011-07-24  Bruno Haible  <bruno@clisp.org>
5248
5249         doc: Fix typo.
5250         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5251
5252 2011-07-24  Bruno Haible  <bruno@clisp.org>
5253
5254         doc: Mention fsusage.
5255         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5256
5257 2011-07-24  Bruno Haible  <bruno@clisp.org>
5258
5259         doc: Mention new glibc headers and functions.
5260         * doc/glibc-headers/gshadow.texi: New file.
5261         * doc/glibc-functions/endsgent.texi: New file.
5262         * doc/glibc-functions/fgetsgent.texi: New file.
5263         * doc/glibc-functions/fgetsgent_r.texi: New file.
5264         * doc/glibc-functions/getsgent.texi: New file.
5265         * doc/glibc-functions/getsgent_r.texi: New file.
5266         * doc/glibc-functions/getsgnam.texi: New file.
5267         * doc/glibc-functions/getsgnam_r.texi: New file.
5268         * doc/glibc-functions/putsgent.texi: New file.
5269         * doc/glibc-functions/setsgent.texi: New file.
5270         * doc/glibc-functions/sgetsgent.texi: New file.
5271         * doc/glibc-functions/sgetsgent_r.texi: New file.
5272         * doc/glibc-functions/malloc_info.texi: New file.
5273         * doc/glibc-functions/preadv.texi: New file.
5274         * doc/glibc-functions/pwritev.texi: New file.
5275         * doc/glibc-functions/register_printf_modifier.texi: New file.
5276         * doc/glibc-functions/register_printf_specifier.texi: New file.
5277         * doc/glibc-functions/register_printf_type.texi: New file.
5278         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5279         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5280         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5281         * doc/glibc-functions/pthread_getname_np.texi: New file.
5282         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5283         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5284         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5285         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5286         * doc/glibc-functions/pthread_setname_np.texi: New file.
5287         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5288         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5289         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5290         * doc/glibc-functions/qsort_r.texi: New file.
5291         * doc/glibc-functions/quick_exit.texi: New file.
5292         * doc/glibc-functions/syncfs.texi: New file.
5293         * doc/gnulib.texi: Include them.
5294         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5295         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5296         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5297         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5298         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5299         * doc/glibc-functions/execvpe.texi: Likewise.
5300
5301 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5302
5303         ftell: don't include <unistd.h>
5304         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5305         guaranteed to define off_t, and the ftell module depends on the
5306         stdio module.
5307
5308         ftell: do not assume wraparound signed arithmetic
5309         * lib/ftell.c: Include <limits.h>.
5310         (ftell): Don't assume wraparound signed arithmetic.
5311
5312 2011-07-24  Bruno Haible  <bruno@clisp.org>
5313
5314         close: No longer depend on module 'fclose'.
5315         * modules/close (Depends-on): Remove fclose.
5316         * NEWS: Mention the change.
5317         Suggested by Sam Steingold <sds@gnu.org>.
5318
5319 2011-07-24  Bruno Haible  <bruno@clisp.org>
5320
5321         fsusage: Enable large volume support on AIX >= 5.2.
5322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5323         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5324         instead of STAT_STATVFS.
5325         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5326
5327         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5329         f_blocks field only on MacOS X.
5330
5331         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5333         * modules/fsusage (Depends-on): Add largefile.
5334
5335 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5336
5337         * README: Modernize discussion of signed integers.
5338         Assuming overflow wraparound is no longer safe.
5339         Mention ones' complement and signed magnitude.
5340
5341 2011-07-22  Bruno Haible  <bruno@clisp.org>
5342
5343         select tests, pselect tests: Refactor.
5344         * tests/test-select.h: New file, extracted from tests/test-select.c.
5345         (select_fn): New type.
5346         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5347         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5348         test_pipe): Add my_select argument.
5349         (test_function): Renamed from main. Add my_select argument.
5350         * tests/test-select.c: Move most code to tests/test-select.h. Include
5351         test-select.h.
5352         * modules/select-tests (Files): Add tests/test-select.h.
5353         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5354         (my_select, main): New functions.
5355         * modules/pselect-tests (Files): Add tests/test-select.h,
5356         tests/macros.h, tests/signature.h.
5357         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5358         (configure.ac): Check for <sys/wait.h>.
5359
5360 2011-07-22  Bruno Haible  <bruno@clisp.org>
5361
5362         sys_select tests: Check the signature of FD_*.
5363         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5364         signature tests from here...
5365         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5366         here.
5367         * modules/sys_select-tests (Files): Add tests/signature.h.
5368
5369 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         largefile: new module, replacing large-inode
5372         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5373         * MODULES.html.sh: Add largefile, remove large-inode.
5374         * modules/largefile, m4/largefile.m4: New files.
5375         * modules/large-inode, m4/large-inode.m4: Remove.
5376
5377         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5379         implementations that use only 32 bits to count blocks.
5380         On typical hosts with 1024-byte blocks, this fails with file
5381         systems as small as 4 TiB.  Problem reported by Herb Wartens
5382         <http://debbugs.gnu.org/9140> and this should also fix a similar
5383         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5384
5385         large-inode: New module
5386         * MODULES.html.sh: Add it.
5387         * modules/large-inode, m4/large-inode.m4: New files.
5388
5389         extensions: Enable extensions on MacOS X 10.5 and later.
5390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5391
5392 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5393
5394         file-has-acl: use acl_extended_file_nofollow if available
5395         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5396         (acl_extended_file): New macro.
5397         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5398         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5399
5400 2011-07-21  Bruno Haible  <bruno@clisp.org>
5401
5402         Declare system functions in a way that works with C++.
5403         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5404         declare fdopendir as extern "C".
5405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5406         declare frexpl as extern "C".
5407         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5408         declare gai_strerror as extern "C".
5409         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5410         programs, declare gai_strerror as extern "C".
5411         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5412         declare getlogin_r as extern "C".
5413         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5414         as extern "C".
5415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5416         declare ldexpl as extern "C".
5417         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5418         as extern "C".
5419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5420         program, declare getmntinfo as extern "C".
5421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5422         stpncpy as extern "C".
5423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5424         program, declare __xpg_strerror_r as extern "C".
5425         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5426         strndup as extern "C".
5427         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5428         declare memset and bzero as extern "C".
5429         Reported by Sam Steingold <sds@gnu.org>.
5430
5431 2011-07-12  Jim Meyering  <meyering@redhat.com>
5432
5433         maint.mk: prohibit inclusion of "verify.h" without use
5434         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5435
5436 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5437
5438         timer-time: A new module to check for timer_settime()
5439         * m4/timer_time.m4: Check for the posix function.
5440         * modules/timer-time: Add the new module.
5441         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5442         Mention it.
5443
5444 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5445             Bruno Haible  <bruno@clisp.org>
5446
5447         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5448         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5449         not defined, assume POSIX threads and look for pthread_sigmask in
5450         $LIBS, without changing $CPPFLAGS.
5451
5452 2011-07-19  Bruno Haible  <bruno@clisp.org>
5453
5454         strstr: Update cross-compilation guess.
5455         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5456         CPUs, guess no, in view of glibc
5457         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5458         Suggested by Eric Blake. Reported by Reuben Thomas.
5459
5460 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5461
5462         getopt-gnu: suppress core dumps from detection code
5463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5464         to suppress core dumps that may well occur on glibc systems.
5465         * modules/getopt-gnu: Depend on nocrash.
5466
5467 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5468
5469         pthread_sigmask: ensure usleep is declared
5470         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5471         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5472
5473 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5474
5475         doc: Document NonStop portability issues.
5476         * doc/posix-functions/sigaction.texi (sigaction):
5477         * doc/posix-headers/signal.texi (signal.h):
5478         Document NonStop.  See Joachim Schmitz in
5479         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5480
5481 2011-07-15  Bruno Haible  <bruno@clisp.org>
5482
5483         ffsl, ffsll: Avoid unportable behaviour.
5484         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5485
5486 2011-07-15  Bruno Haible  <bruno@clisp.org>
5487
5488         ffs: More tests.
5489         * tests/test-ffs.c (NBITS): New macro.
5490         (main): Add more tests.
5491         * tests/test-ffsl.c (NBITS): New macro.
5492         (main): Add more tests.
5493         * tests/test-ffsll.c (NBITS): New macro.
5494         (main): Add more tests.
5495
5496 2011-07-15  Eric Blake  <eblake@redhat.com>
5497
5498         ffsl, ffsll: new modules
5499         * modules/ffsl: New file.
5500         * modules/ffsll: Likewise.
5501         * m4/ffsl.m4: Likewise.
5502         * m4/ffsll.m4: Likewise.
5503         * lib/ffsl.c: Likewise.
5504         * lib/ffsl.h: Likewise.
5505         * lib/ffsll.c: Likewise.
5506         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5507         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5508         * modules/string (Makefile.am): Substitute witnesses.
5509         * lib/strings.in.h (ffsl, ffsll): Declare.
5510         * modules/ffsl-tests: New test file.
5511         * modules/ffsll-tests: Likewise.
5512         * tests/test-ffsl.c: Likewise.
5513         * tests/test-ffsll.c: Likewise.
5514         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5515         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5516         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5517
5518         ffs: fix m4 prerequisite
5519         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5520
5521         ffs: avoid undefined behavior
5522         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5523         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5524         Reported by Bruno Haible.
5525
5526 2011-07-12  Bruno Haible  <bruno@clisp.org>
5527
5528         pthread_sigmask: Rely on module 'threadlib'.
5529         * modules/pthread_sigmask (Depends-on): Add threadlib.
5530         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5531         is defined.
5532
5533 2011-07-12  Bruno Haible  <bruno@clisp.org>
5534
5535         regex: Depend on module 'strcase'.
5536         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5537
5538 2011-07-12  Jim Meyering  <meyering@redhat.com>
5539
5540         warn-on-use: fix typo in file name
5541         * modules/snippet/warn-on-use (Files): Correct file name:
5542         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5543
5544 2011-07-12  Bruno Haible  <bruno@clisp.org>
5545
5546         strings: Document module.
5547         * doc/posix-headers/strings.texi: Mention module 'strings'.
5548
5549 2011-07-12  Bruno Haible  <bruno@clisp.org>
5550
5551         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5552         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5553         (Files, Makefile.am): Update.
5554         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5555         * modules/stdlib (Depends-on): Update.
5556
5557 2011-07-12  Bruno Haible  <bruno@clisp.org>
5558
5559         * NEWS: Mention the changes.
5560
5561         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5562         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5563         (Files, Makefile.am): Update.
5564         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5565         * modules/arpa_inet (Depends-on): Update.
5566         * modules/ctype (Depends-on): Update.
5567         * modules/dirent (Depends-on): Update.
5568         * modules/fcntl-h (Depends-on): Update.
5569         * modules/glob (Depends-on): Update.
5570         * modules/iconv-h (Depends-on): Update.
5571         * modules/inttypes-incomplete (Depends-on): Update.
5572         * modules/langinfo (Depends-on): Update.
5573         * modules/locale (Depends-on): Update.
5574         * modules/math (Depends-on): Update.
5575         * modules/netdb (Depends-on): Update.
5576         * modules/poll-h (Depends-on): Update.
5577         * modules/pty (Depends-on): Update.
5578         * modules/search (Depends-on): Update.
5579         * modules/signal (Depends-on): Update.
5580         * modules/spawn (Depends-on): Update.
5581         * modules/stdio (Depends-on): Update.
5582         * modules/stdlib (Depends-on): Update.
5583         * modules/string (Depends-on): Update.
5584         * modules/strings (Depends-on): Update.
5585         * modules/sys_file (Depends-on): Update.
5586         * modules/sys_ioctl (Depends-on): Update.
5587         * modules/sys_select (Depends-on): Update.
5588         * modules/sys_socket (Depends-on): Update.
5589         * modules/sys_stat (Depends-on): Update.
5590         * modules/sys_time (Depends-on): Update.
5591         * modules/sys_times (Depends-on): Update.
5592         * modules/sys_utsname (Depends-on): Update.
5593         * modules/sys_wait (Depends-on): Update.
5594         * modules/termios (Depends-on): Update.
5595         * modules/time (Depends-on): Update.
5596         * modules/unistd (Depends-on): Update.
5597         * modules/wchar (Depends-on): Update.
5598         * modules/wctype-h (Depends-on): Update.
5599         * MODULES.html.sh (Support for building libraries and executables):
5600         Update.
5601
5602         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5603         * modules/snippet/unused-parameter: Renamed from
5604         modules/unused-parameter.
5605         (Files, Makefile.am): Update.
5606         * build-aux/snippet/unused-parameter.h: Renamed from
5607         build-aux/unused-parameter.h.
5608         * modules/selinux-h (Depends-on): Update.
5609         * modules/unistr/base (Depends-on): Update.
5610         * MODULES.html.sh (Core language properties): Update.
5611
5612         Rename module 'link-warning' to 'snippet/link-warning'.
5613         * modules/snippet/link-warning: Renamed from modules/link-warning.
5614         (Files, Makefile.am): Update.
5615         * build-aux/snippet/link-warning.h: Renamed from
5616         build-aux/link-warning.h.
5617         * MODULES.html.sh (Support for building libraries and executables):
5618         Update.
5619
5620         Rename module 'c++defs' to 'snippet/c++defs'.
5621         * modules/snippet/c++defs: Renamed from modules/c++defs.
5622         (Files, Makefile.am): Update.
5623         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5624         * modules/arpa_inet (Depends-on): Update.
5625         * modules/ctype (Depends-on): Update.
5626         * modules/dirent (Depends-on): Update.
5627         * modules/fcntl-h (Depends-on): Update.
5628         * modules/glob (Depends-on): Update.
5629         * modules/iconv-h (Depends-on): Update.
5630         * modules/langinfo (Depends-on): Update.
5631         * modules/locale (Depends-on): Update.
5632         * modules/math (Depends-on): Update.
5633         * modules/netdb (Depends-on): Update.
5634         * modules/poll-h (Depends-on): Update.
5635         * modules/pty (Depends-on): Update.
5636         * modules/search (Depends-on): Update.
5637         * modules/signal (Depends-on): Update.
5638         * modules/spawn (Depends-on): Update.
5639         * modules/stdio (Depends-on): Update.
5640         * modules/stdlib (Depends-on): Update.
5641         * modules/string (Depends-on): Update.
5642         * modules/strings (Depends-on): Update.
5643         * modules/sys_ioctl (Depends-on): Update.
5644         * modules/sys_select (Depends-on): Update.
5645         * modules/sys_socket (Depends-on): Update.
5646         * modules/sys_stat (Depends-on): Update.
5647         * modules/sys_time (Depends-on): Update.
5648         * modules/sys_wait (Depends-on): Update.
5649         * modules/termios (Depends-on): Update.
5650         * modules/time (Depends-on): Update.
5651         * modules/unistd (Depends-on): Update.
5652         * modules/wchar (Depends-on): Update.
5653         * modules/wctype-h (Depends-on): Update.
5654
5655         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5656         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5657         (Files, Makefile.am): Update.
5658         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5659         * modules/argv-iter (Depends-on): Update.
5660         * modules/arpa_inet (Depends-on): Update.
5661         * modules/dirent (Depends-on): Update.
5662         * modules/fcntl-h (Depends-on): Update.
5663         * modules/fnmatch (Depends-on): Update.
5664         * modules/getopt-posix (Depends-on): Update.
5665         * modules/glob (Depends-on): Update.
5666         * modules/iconv-h (Depends-on): Update.
5667         * modules/inttypes-incomplete (Depends-on): Update.
5668         * modules/locale (Depends-on): Update.
5669         * modules/math (Depends-on): Update.
5670         * modules/netdb (Depends-on): Update.
5671         * modules/search (Depends-on): Update.
5672         * modules/signal (Depends-on): Update.
5673         * modules/spawn (Depends-on): Update.
5674         * modules/stdio (Depends-on): Update.
5675         * modules/stdlib (Depends-on): Update.
5676         * modules/string (Depends-on): Update.
5677         * modules/strings (Depends-on): Update.
5678         * modules/sys_socket (Depends-on): Update.
5679         * modules/sys_stat (Depends-on): Update.
5680         * modules/sys_time (Depends-on): Update.
5681         * modules/sys_times (Depends-on): Update.
5682         * modules/sys_utsname (Depends-on): Update.
5683         * modules/time (Depends-on): Update.
5684         * modules/unistd (Depends-on): Update.
5685         * modules/wchar (Depends-on): Update.
5686         * MODULES.html.sh (Support for building libraries and executables):
5687         Update.
5688
5689 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         Improvements on _Noreturn and related modules.
5692
5693         modules/_Exit-tests: test _Noreturn too
5694         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5695         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5696         (main): Use them.
5697
5698         stdnoreturn, stdnoreturn-tests: remove modules
5699         They're not needed here and a bit premature for use elsewhere.  See
5700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5701         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5702         * tests/test-stdnoreturn.c: Remove files.
5703         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5704         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5705         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5706         and using noreturn.
5707         * modules/openat, modules/sigpipe-die, modules/xalloc:
5708         * modules/xmemdup0, modules/xstrtol:
5709         Remove dependency on stdnoreturn.
5710
5711         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5712         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5713         Reparenthesize to avoid GCC warning.
5714         Support Microsoft's syntax.
5715         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5716
5717         _Noreturn-tests: remove module
5718         * modules/_Noreturn-tests: Remove.
5719         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5720         * tests/test-_Noreturn.c: Remove.
5721         * tests/test-stdnoreturn.c: Merge from the old
5722         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5723
5724 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5725
5726         _Noreturn, stdnoreturn, and related modules.
5727
5728         * top/maint.mk: Adjust to new noreturn support.
5729         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5730         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5731
5732         xalloc: use stdnoreturn.h
5733         * lib/xalloc.h: Include <stdnoreturn.h>.
5734         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5735         * modules/xalloc (Depends-on): Add stdnoreturn.
5736
5737         xstrtol: use stdnoreturn.h
5738         * lib/xstrtol.h: Include <stdnoreturn.h>.
5739         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5740         * modules/xstrtol (Depends-on): Add stdnoreturn.
5741
5742         xmemdup0: use stdnoreturn.h
5743         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5744         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5745         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5746
5747         sigpipe-die: use stdnoreturn.h
5748         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5749         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5750         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5751
5752         openat: use stdnoreturn.h
5753         * lib/openat.h: Include <stdnoreturn.h>.
5754         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5755         * modules/openat (Depends-on): Add stdnoreturn.
5756
5757         * lib/openat-die.c (openat_save_fail): Modernize comment.
5758
5759         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5760
5761         * lib/glthread/thread.h: Modernize comment.
5762
5763         obstack: use _Noreturn
5764         * lib/obstack.c (__attribute__): Remove macro.
5765         (print_and_abort): Use _Noreturn.
5766
5767         c-stack: use _Noreturn
5768         * lib/c-stack.c (die, overflow_handler, segv_handler):
5769         Use _Noreturn rather than __attribute__((noreturn)).
5770
5771         argmatch-tests, exclude_tests: use _Noreturn
5772         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5773         Remove.
5774         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5775
5776         stdlib: use _Noreturn
5777         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5778         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5779         * modules/stdlib (Depends-on): Add _Noreturn.
5780         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5781
5782         stdnoreturn-tests: new module
5783         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5784
5785         stdnoreturn: new module
5786         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5787         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5788
5789         _Noreturn-tests: new module
5790         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5791
5792         _Noreturn: new module
5793         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5794         New section, mentioning it.
5795         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5796
5797         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5798
5799 2011-07-11  Eric Blake  <eblake@redhat.com>
5800
5801         ffs: new module
5802         * modules/ffs: New file.
5803         * m4/ffs.m4: Likewise.
5804         * lib/ffs.c: Likewise.
5805         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5806         * modules/strings (Makefile.am): Substitute witness.
5807         (Depends-on): Add c++defs.
5808         * lib/strings.in.h (ffs): Declare.
5809         * modules/ffs-tests: New test file.
5810         * tests/test-ffs.c: Test new module.
5811         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5812         * doc/posix-functions/ffs.texi (ffs): Likewise.
5813
5814         regex: avoid compiler warning
5815         * lib/regex.c (includes): Include <strings.h>, for use of
5816         strcasecmp in regcomp.c.
5817         Reported by Joachim Schmitz.
5818
5819 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         stdint: respect system's intmax_t if INTMAX_MAX
5822         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5823         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5824         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5825         long but int64_t is long long, and where we will clash with the
5826         system intmax_t if we override it.  See
5827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5828         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5829         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5830         similarly for UINTMAX_C.
5831
5832 2011-07-08  Bruno Haible  <bruno@clisp.org>
5833
5834         pthread_sigmask tests: Avoid a compiler warning.
5835         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5836         non-zero.
5837
5838         sigprocmask tests: A better way to avoid a compiler warning.
5839         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5840         (main): Complain if system() returns non-zero.
5841         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5842
5843 2011-07-08  Bruno Haible  <bruno@clisp.org>
5844
5845         pthread_sigmask: Work around IRIX bug.
5846         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5847         bug.
5848         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5849         there may be unblocked pending signals.
5850         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5851
5852 2011-07-08  Bruno Haible  <bruno@clisp.org>
5853
5854         pthread_sigmask: Work around Cygwin bug.
5855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5856         bug.
5857         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5858         the system's pthread_sigmask function.
5859         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5860
5861 2011-07-08  Bruno Haible  <bruno@clisp.org>
5862
5863         pthread_sigmask: Work around bug in single-threaded implementation.
5864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5865         FreeBSD, HP-UX, Solaris bug.
5866         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5867         * lib/pthread_sigmask.c: Include <stddef.h>.
5868         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5869         the system's pthread_sigmask function.
5870         * modules/pthread_sigmask (configure.ac): Invoke
5871         gl_PREREQ_PTHREAD_SIGMASK.
5872         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5873         HP-UX, Solaris.
5874
5875 2011-07-08  Eric Blake  <eblake@redhat.com>
5876
5877         test-sigprocmask: avoid compiler warning
5878         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5879         * tests/test-sigprocmask.c (main): Use it to silence warning.
5880         Reported by Jim Meyering.
5881
5882         test-snprintf: avoid compiler warning
5883         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5884         * tests/test-vsnprintf.c (main): Likewise.
5885         Reported by Jim Meyering.
5886
5887 2011-07-08  Bruno Haible  <bruno@clisp.org>
5888
5889         Tests for module 'pthread_sigmask'.
5890         * modules/pthread_sigmask-tests: New file.
5891         * tests/test-pthread_sigmask1.c: New file, based on
5892         tests/test-sigprocmask.c.
5893         * tests/test-pthread_sigmask2.c: New file.
5894
5895 2011-07-08  Jim Meyering  <meyering@redhat.com>
5896
5897         test-getopt.h: avoid warning about an unused variable
5898         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5899
5900 2011-07-07  Jim Meyering  <meyering@redhat.com>
5901
5902         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5903         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5904         now that it no longer contains leading TABs.
5905         Remove unused "url=FIXME" statement.
5906
5907 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5908
5909         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5911         When gl_THREADLIB is not in use, assume that the POSIX sematics
5912         are desired.  This is better for Emacs, which uses POSIX semantics
5913         on GNUish and/or POSIXish platforms, and does not use threads at
5914         all otherwise.
5915
5916         pthread_sigmask: fix typo when testing for libraries
5917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5918         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5919
5920 2011-07-08  Eric Blake  <eblake@redhat.com>
5921
5922         fts: introduce FTS_NOATIME
5923         * lib/fts_.h (FTS_NOATIME): New bit flag.
5924         (FTS_OPTIONMASK): Adjust.
5925         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5926         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5927
5928 2011-07-08  Bruno Haible  <bruno@clisp.org>
5929
5930         Tests for module 'thread'.
5931         * modules/thread-tests: New file.
5932         * tests/test-thread_self.c: New file.
5933         * tests/test-thread_create.cc: New file.
5934
5935 2011-07-08  Bruno Haible  <bruno@clisp.org>
5936
5937         thread: Avoid gcc warnings when using gl_thread_self().
5938         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5939         'void *'.
5940         (gl_thread_self_pointer): Update.
5941
5942 2011-07-07  Bruno Haible  <bruno@clisp.org>
5943
5944         signal-c++-tests: Check declaration of pthread_sigmask.
5945         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5946         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5947         $(LIB_PTHREAD_SIGMASK).
5948
5949 2011-07-07  Bruno Haible  <bruno@clisp.org>
5950
5951         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5952         * lib/signal.in.h (pthread_sigmask): Override if
5953         REPLACE_PTHREAD_SIGMASK is 1.
5954         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5955         REPLACE_PTHREAD_SIGMASK.
5956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5957         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5958         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5959         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5960         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5961
5962 2011-07-07  Bruno Haible  <bruno@clisp.org>
5963
5964         pthread_sigmask: Ensure declaration in <signal.h>.
5965         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5966         include <pthread.h>.
5967         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5968         problem.
5969
5970 2011-07-07  Bruno Haible  <bruno@clisp.org>
5971
5972         pthread_sigmask: Document the module.
5973         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5974
5975 2011-07-07  Bruno Haible  <bruno@clisp.org>
5976
5977         pthread_sigmask: Follow gnulib conventions.
5978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5979         gl_PTHREAD_SIGMASK.
5980         * modules/pthread_sigmask (configure.ac): Update.
5981
5982 2011-07-07  Bruno Haible  <bruno@clisp.org>
5983
5984         pthread_sigmask: Make declaration C++ safe.
5985         * lib/signal.in.h: In two special conditions, just do an #include_next.
5986         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5987         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5988         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5989         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5990         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5991         not REPLACE_PTHREAD_MASK.
5992         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5993         not REPLACE_PTHREAD_MASK.
5994         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5995
5996 2011-07-07  Bruno Haible  <bruno@clisp.org>
5997
5998         pthread_sigmask: Fix return value.
5999         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6000         * lib/pthread_sigmask.c: New file.
6001         * modules/pthread_sigmask (Files): Add it.
6002         (configure.ac): Invoke AC_LIBOBJ.
6003
6004 2011-07-07  Eric Blake  <eblake@redhat.com>
6005
6006         getopt: more portable argv creation
6007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6008         const, use char arrays rather than strings.
6009         Suggested by Paul Eggert.
6010
6011 2011-07-07  Bruno Haible  <bruno@clisp.org>
6012
6013         Tests for module 'sigprocmask'.
6014         * modules/sigprocmask-tests: New file.
6015         * tests/test-sigprocmask.c: New file.
6016
6017 2011-07-07  Bruno Haible  <bruno@clisp.org>
6018
6019         float tests: Tweak.
6020         * tests/test-float.c (main): Tweak skip message.
6021
6022 2011-07-07  Eric Blake  <eblake@redhat.com>
6023
6024         getopt: avoid compiler warning during configure
6025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6026         assigning string literals to non-const pointer.
6027
6028         getopt-gnu: avoid crash in glibc getopt
6029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6030         * tests/test-getopt.h (test_getopt): Enhance test.
6031         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6032         * doc/posix-functions/getopt.texi (getopt): Document it.
6033         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6034         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6035         Likewise.
6036
6037 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6038
6039         getopt: handle W; without long options in getopt [BZ #12922]
6040         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6041         but no long options are defined, just return 'W'.
6042
6043 2011-07-07  Bruno Haible  <bruno@clisp.org>
6044
6045         Avoid literal tabs.
6046         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6047         variable containing a tab instead of a literal tab.
6048         Reported by Jim Meyering.
6049
6050 2011-07-07  Bruno Haible  <bruno@clisp.org>
6051
6052         Comments.
6053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6054
6055 2011-07-06  Bruno Haible  <bruno@clisp.org>
6056
6057         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6058         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6059         <winsock2.h>.
6060         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6061         lib/sys_socket.in.h.
6062         (close, gethostname): Hide declarations from <winsock2.h>.
6063         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6064         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6065         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6066         (select): Don't override if gnulib's <sys/select.h> was already
6067         included.
6068         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6069         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6070         setsockopt, shutdown, select): Tweak indentation.
6071
6072 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6073
6074         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6075         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6076         in an application that does not use the sys_select module.
6077
6078 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6079
6080         poll: do not return 0 on timeout=-1
6081         * lib/poll.c: Loop with yield if no events occured
6082
6083 2011-07-06  Eric Blake  <eblake@redhat.com>
6084
6085         pthread_sigmask: always replace when not using pthread
6086         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6087         replacement when using some threading other than pthread.  Fix
6088         logic bug.
6089
6090 2011-07-06  Bruno Haible  <bruno@clisp.org>
6091
6092         Comments.
6093         * m4/printf.m4: Update comments about mingw.
6094
6095 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6096
6097         sys_select: define sigset_t more portably
6098         * lib/sys_select.in.h: Always include <sys/types.h>, since
6099         we now need sigset_t and mingw defines it there.
6100         Include <signal.h> before split inclusion guard, to avoid
6101         mishaps on Solaris, whose <signal.h> eventually includes us.
6102         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6103         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6104         which come from ...
6105         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6106         gl_CHECK_TYPE_SIGSET_T.
6107         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6108         does the real work.
6109         * modules/sys_select (Depends-on): Add 'signal'.
6110
6111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6112         Suggested by Bruno Haible.
6113
6114         pselect: Use pthread_sigmask, not sigprocmask.
6115         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6116         multithreaded apps better than sigprocmask does.
6117         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6118         sigprocmask directly.
6119
6120 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6123         Don't #undef,  since we don't need any underlying pselect.
6124         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6125         (Depends-on): Add select.
6126         (Link): Add $(LIBSOCKET).
6127         These changes suggested by Bruno Haible.
6128
6129         pselect: document better
6130         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6131         * doc/posix-functions/pselect.texi (pselect): Document new module.
6132
6133         pthread_sigmask: new module
6134         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6135         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6136         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6137         This is done only as a macro; I don't know how well that'll
6138         work for C++.  Move <sys/types.h> include before the include_next,
6139         to avoid mishap on Solaris.
6140         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6141         * modules/signal (Makefile.am): Substitute the check's results.
6142         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6143
6144         test-pselect: new module
6145         * modules/pselect-tests, tests/test-pselect.c: New files.
6146         * tests/test-select.c, tests/test-sys_select-c++.cc:
6147         If TEST_PSELECT is defined, test pselect instead of testing select.
6148
6149         * tests/test-sys_select.c (sigset_t): Test for it, too.
6150         Suggested by Bruno Haible.
6151
6152 2011-07-05  Eric Blake  <eblake@redhat.com>
6153
6154         snprintf: guarantee %1$d, for libintl
6155         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6156         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6157         * doc/posix-functions/snprintf.texi (snprintf): Update.
6158         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6159         * tests/test-snprintf.c (main): Enhance test.
6160         * tests/test-vsnprintf.c (main): Likewise.
6161
6162 2011-07-05  Jim Meyering  <meyering@redhat.com>
6163
6164         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6165         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6166         per Bruno's request, to accommodate this idiom (no space after "#")
6167         even when the function is inside an #if block:
6168         char *
6169         gets (char *s)
6170         #undef gets
6171         {
6172           ...
6173         }
6174
6175 2011-07-04  Jim Meyering  <meyering@redhat.com>
6176
6177         maint: indent with spaces, not TABs, and add a rule to check this
6178         * tests/test-userspec.c: Indent with spaces, not TABs.
6179         * tests/test-argp.c: Likewise.
6180         * tests/test-c-stack2.sh: Likewise.
6181         * tests/test-parse-duration.sh: Likewise
6182         * m4/strtod.m4: Likewise.
6183         * m4/alloca.m4: Likewise.
6184         * m4/pselect.m4: Likewise.
6185         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6186
6187 2011-07-03  Jim Meyering  <meyering@redhat.com>
6188
6189         maint.mk: correct omissions in prohibit_argmatch_without_use check
6190         This rule would mistakenly report that argmatch.h is included without
6191         use even when both the argmatch and invalid_arg macro were used.
6192         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6193         of argmatch and invalid_arg.
6194
6195 2011-07-03  Bruno Haible  <bruno@clisp.org>
6196
6197         Comments about EINTR.
6198         * lib/safe-read.h: Explain the purpose of this module.
6199         * lib/safe-write.h: Likewise.
6200         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6201         module.
6202         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6203         module.
6204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6205
6206 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6207
6208         xnanosleep: Rewrite to use new dtotimespec module.
6209         It has the conversion code that used to be in xnanosleep.
6210         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6211         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6212         (TIME_T_MAX): Remove.
6213         (xnanosleep): Rewrite in terms of dtotimespec.
6214         * modules/xnanosleep (Depends-on): Add dtotimespec.
6215         Remove intprops, stdbool.
6216
6217         timespec-add, timespec-sub: new modules
6218         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6219         * lib/timespec-add.c, lib/timespec-sub.c:
6220         * modules/timespec-add, modules/timespec-sub: New files.
6221
6222         dtotimespec: new module
6223         * lib/timespec.h (dtotimespec): New decl.
6224         * lib/dtotimespec.c, modules/dtotimespec: New files.
6225
6226         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6227
6228         pselect: new module
6229         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6230         (pselect): New decls.
6231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6232         since the standard pselect decl uses 'restrict'.
6233         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6234         HAVE_PSELECT, REPLACE_PSELECT.
6235         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6236         HAVE_PSELECT, REPLACE_PSELECT.
6237         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6238
6239         sys_select: don't depend on sys_socket
6240         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6242         This fix works on GNU and GNU-like platforms, but has not been tested
6243         on native Windows.
6244         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6246         gl_HEADER_SYS_SOCKET.
6247         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6248         gl_PREREQ_SYS_H_WINSOCK2.
6249
6250 2011-06-29  Eric Blake  <eblake@redhat.com>
6251
6252         pipe2: fix C89 compile problem
6253         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6254         Reported by Bruno Haible.
6255
6256         pipe, pipe2: don't corrupt fd on error
6257         * lib/pipe.c (pipe): Leave fd unchanged on error.
6258         * lib/pipe2.c (pipe2): Likewise.
6259         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6260         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6261
6262 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6263
6264         mmap-anon: do not use regular expressions inadvertently
6265         * m4/mmap-anon.m4: Remove trailing period from strings sought
6266         in the output.
6267
6268 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         nanosleep: fix integer overflow problem
6271         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6272         arithmetic wraps around on overflow.
6273
6274         nanosleep: simplify carrying
6275         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6276         first call to the underyling nanosleep, not for the last one.
6277         This doesn't fix any bugs, but it simplifies the computation of
6278         the remaining delay.  Found while auditing integer overflow issues.
6279
6280         dup2: remove test for existence of fcntl
6281         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6282         "#if HAVE_FCNTL", in the configure-time test program.
6283         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6284         and therefore speeds up "configure" a bit.  Found while
6285         adding the dup2 module to Emacs.
6286
6287 2011-06-24  Eric Blake  <eblake@redhat.com>
6288
6289         maint.mk: enhance useless header checks
6290         * top/maint.mk (_sc_header_without_use): Check both include
6291         styles.
6292         (sc_prohibit_assert_without_use)
6293         (sc_prohibit_close_stream_without_use)
6294         (sc_prohibit_getopt_without_use)
6295         (sc_prohibit_quotearg_without_use)
6296         (sc_prohibit_quote_without_use)
6297         (sc_prohibit_long_options_without_use)
6298         (sc_prohibit_inttostr_without_use)
6299         (sc_prohibit_ignore_value_without_use)
6300         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6301         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6302         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6303         (sc_prohibit_hash_pjw_without_use)
6304         (sc_prohibit_safe_read_without_use)
6305         (sc_prohibit_argmatch_without_use)
6306         (sc_prohibit_canonicalize_without_use)
6307         (sc_prohibit_root_dev_ino_without_use)
6308         (sc_prohibit_openat_without_use)
6309         (sc_prohibit_c_ctype_without_use)
6310         (sc_prohibit_signal_without_use)
6311         (sc_prohibit_stdio--_without_use)
6312         (sc_prohibit_stdio-safer_without_use)
6313         (sc_prohibit_strings_without_use)
6314         (sc_prohibit_intprops_without_use)
6315         (sc_prohibit_stddef_without_use)
6316         (sc_prohibit_xfreopen_without_use): Update clients.
6317
6318 2011-06-24  Jim Meyering  <meyering@redhat.com>
6319
6320         syntax-check: keep one maint.mk rule in sync with its header
6321         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6322         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6323         I prefer to avoid temporary files here, so use <(...), but that
6324         is not supported by /bin/sh, so...
6325         (SHELL): Define to /bin/bash.
6326
6327 2011-06-24  Eric Blake  <eblake@redhat.com>
6328
6329         maint.mk: update sc_prohibit_intprops_without_use
6330         * top/maint.mk (_intprops_names): Match recent changes.
6331
6332 2011-06-24  Bruno Haible  <bruno@clisp.org>
6333
6334         strerror-override: No-op tweak.
6335         * lib/strerror-override.h (strerror_override): Reorder conditions,
6336         for consistency with lib/strerror-override.c.
6337
6338 2011-06-23  Eric Blake  <eblake@redhat.com>
6339
6340         maint.mk: test further PATH_MAX issues
6341         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6342         (sc_prohibit_path_max_allocation): ...and also test alloca.
6343         Suggested by Jim Meyering.
6344
6345 2011-06-22  Eric Blake  <eblake@redhat.com>
6346
6347         maint.mk: add syntax-check to avoid char[PATH_MAX]
6348         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6349
6350         stat: be robust to PATH_MAX definition
6351         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6352         * modules/stat (Depends-on): Add verify.
6353
6354         link: work around IRIX bug
6355         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6356         * lib/link.c (rpl_link): Work around it.
6357         * tests/test-link.h (test_link): Enhance test.
6358         * doc/posix-functions/link.texi (link): Document the bug.
6359
6360         getopt: silence clang warning
6361         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6362         dereference.
6363         Reported by Gustavo Martin Domato.
6364
6365 2011-06-22  Jim Meyering  <meyering@redhat.com>
6366
6367         bootstrap: do not insert a blank line into each .gitignore file
6368         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6369
6370 2011-06-21  Eric Blake  <eblake@redhat.com>
6371
6372         perror: test for output mismatch
6373         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6374         perror on IRIX.
6375
6376         strerror_r: fix OpenBSD behavior on out-of-range
6377         * lib/strerror_r.c (strerror_r): Always use maximal string.
6378         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6379
6380         strerror_r: fix OpenBSD behavior on 0
6381         * lib/strerror-override.c (strerror_override): Also override 0
6382         when needed.
6383         * lib/strerror-override.h (strerror_override): Likewise.
6384         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6385         earlier.
6386         * lib/strerror_r.c (strerror_r): Likewise.
6387         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6388         behavior...
6389         (gl_FUNC_STRERROR_0): ...into new macro.
6390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6391         is overridden.
6392         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6393         * modules/strerror-override (Files): Add strerror.m4.
6394         (configure.ac): Also provide override for 0 when needed.
6395         * doc/posix-functions/strerror.texi (strerror): Document this.
6396         * doc/posix-functions/perror.texi (perror): Likewise.
6397
6398         perror: adjust array size
6399         * modules/perror (Depends-on): Add strerror-override.
6400         * lib/perror.c (perror): Use it to avoid magic number.
6401
6402         strerror-override: reduce size
6403         * lib/strerror-override.c (strerror_override): Use fewer lines.
6404
6405 2011-06-20  Bruno Haible  <bruno@clisp.org>
6406
6407         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6408         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6409
6410 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6411
6412         alloca: port to compilers that can optimize like GCC 4.6.0
6413         * lib/alloca.c (find_stack_direction): New signature, taken from
6414         Autoconf git.  This works with GCC 4.6.0.  This code should never
6415         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6416         be used with other compilers that optimize as well as GCC 4.6.0 does.
6417         (alloca): Adjust to new signature.
6418         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6419         New macro, which patches Autoconf in a similar way.
6420
6421         c-stack: stop worrying about stack direction
6422         * lib/c-stack.c (find_stack_direction): Remove.
6423         (segv_handler): Don't worry about stack direction growth, as it's
6424         too much of a pain to configure this correctly, given how compilers
6425         are optimizing-away our stack-growth detection code.  Instead, assume
6426         that any access to just before or just after the stack is OK.
6427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6428         Don't require AC_FUNC_ALLOCA; no longer needed.
6429
6430 2011-06-20  Eric Blake  <eblake@redhat.com>
6431
6432         test-stat: don't allocate PATH_MAX bytes
6433         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6434         PATH_MAX-sized buffer.
6435         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6436         * modules/stat-tests (Depends-on): Likewise.
6437         * tests/test-fstatat.c (includes): Drop pathmax.h.
6438         * tests/test-stat.c (includes): Likewise.
6439         Reported by Bruno Haible.
6440
6441 2011-06-20  Bruno Haible  <bruno@clisp.org>
6442
6443         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6444         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6445         * lib/float.c: New file.
6446         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6447         REPLACE_FLOAT_LDBL.
6448         * modules/float (Files): Add lib/float.c.
6449         (configure.ac): Invoke AC_LIBOBJ.
6450         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6451
6452 2011-06-20  Bruno Haible  <bruno@clisp.org>
6453
6454         Tests for module 'float'.
6455         * modules/float-tests: New file.
6456         * tests/test-float.c: New file.
6457
6458 2011-06-19  Bruno Haible  <bruno@clisp.org>
6459
6460         isinf: Coding style.
6461         * lib/isinf.c: Use GNU coding style.
6462
6463 2011-06-19  Bruno Haible  <bruno@clisp.org>
6464
6465         linkat test: Avoid test failure on AIX 7.1.
6466         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6467         * tests/test-link.h (test_link): Likewise.
6468
6469 2011-06-19  Bruno Haible  <bruno@clisp.org>
6470
6471         pread test: Avoid test failure on OpenBSD 4.9.
6472         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6473
6474 2011-06-19  Bruno Haible  <bruno@clisp.org>
6475
6476         sprintf-posix: Fix test failure on AIX 7.1.
6477         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6478         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6479         on AIX.
6480         * doc/posix-functions/fprintf.texi: Likewise.
6481         * doc/posix-functions/printf.texi: Likewise.
6482         * doc/posix-functions/snprintf.texi: Likewise.
6483         * doc/posix-functions/sprintf.texi: Likewise.
6484         * doc/posix-functions/vdprintf.texi: Likewise.
6485         * doc/posix-functions/vfprintf.texi: Likewise.
6486         * doc/posix-functions/vprintf.texi: Likewise.
6487         * doc/posix-functions/vsnprintf.texi: Likewise.
6488         * doc/posix-functions/vsprintf.texi: Likewise.
6489
6490 2011-06-19  Bruno Haible  <bruno@clisp.org>
6491
6492         roundl-ieee: Fix test failure on AIX 7.1.
6493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6494         * doc/posix-functions/roundl.texi: Mention problem with negative
6495         arguments.
6496
6497 2011-06-19  Bruno Haible  <bruno@clisp.org>
6498
6499         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6500         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6501         * doc/posix-functions/round.texi: Mention problem with negative
6502         arguments.
6503         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6504
6505 2011-06-19  Bruno Haible  <bruno@clisp.org>
6506
6507         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6509         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6510         * doc/posix-functions/roundf.texi: Mention problem with negative
6511         arguments.
6512         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6513
6514 2011-06-19  Bruno Haible  <bruno@clisp.org>
6515
6516         ceilf-ieee: Work around bug on MacOS X 10.5.
6517         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6518
6519         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6520         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6521         IEEE compliant, avoid compiler optimizations.
6522         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6523         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6524         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6525         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6526         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6527         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6529         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6530         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6531         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6532
6533 2011-06-19  Bruno Haible  <bruno@clisp.org>
6534
6535         ceilf-ieee: Work around bug on AIX 7.1.
6536         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6537         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6538
6539 2011-06-19  Bruno Haible  <bruno@clisp.org>
6540
6541         ceil-ieee: Work around bug on AIX 7.1.
6542         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6543         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6544
6545 2011-06-18  Bruno Haible  <bruno@clisp.org>
6546
6547         fsync test: Avoid test failure on MacOS X and AIX.
6548         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6549         EINVAL.
6550
6551 2011-06-18  Bruno Haible  <bruno@clisp.org>
6552
6553         openat, fdopendir tests: Fix link errors.
6554         * modules/openat-tests (Depends-on): Add progname.
6555         * modules/fdopendir-tests (Depends-on): Likewise.
6556         * tests/test-fchownat.c: Include progname.h.
6557         (main): Call set_program_name.
6558         * tests/test-fstatat.c: Include progname.h.
6559         (main): Call set_program_name.
6560         * tests/test-mkdirat.c: Include progname.h.
6561         (main): Call set_program_name.
6562         * tests/test-openat.c: Include progname.h.
6563         (main): Call set_program_name.
6564         * tests/test-unlinkat.c: Include progname.h.
6565         (main): Call set_program_name.
6566         * tests/test-fdopendir.c: Include progname.h.
6567         (main): Call set_program_name.
6568
6569 2011-06-18  Bruno Haible  <bruno@clisp.org>
6570
6571         Doc update.
6572         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6573         HP-UX.
6574         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6575
6576 2011-06-18  Bruno Haible  <bruno@clisp.org>
6577
6578         getcwd tests: Avoid compilation error on HP-UX 11.31.
6579         * modules/getcwd-tests (Depends-on): Add pathmax.
6580         * tests/test-getcwd.c: Include pathmax.h.
6581
6582 2011-06-18  Bruno Haible  <bruno@clisp.org>
6583
6584         isfinite, isinf: Fix link error on AIX 6 and 7.
6585         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6586         needed, also test the macro with a 'float' argument.
6587         * m4/isinf.m4 (gl_ISINF): Likewise.
6588
6589 2011-06-18  Bruno Haible  <bruno@clisp.org>
6590
6591         getloadavg: Don't clobber LIBS. Regression from previous commit.
6592         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6593         AC_CHECK_LIB from here...
6594         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6595         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6596         gl_func_getloadavg_done.
6597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6598
6599 2011-06-18  Bruno Haible  <bruno@clisp.org>
6600
6601         clean-temp: Improve documentation.
6602         * lib/clean-temp.h: Explain better how to use this module.
6603         Reported by John Darrington <john@darrington.wattle.id.au>.
6604
6605 2011-06-17  Bruno Haible  <bruno@clisp.org>
6606
6607         pread, pwrite: Avoid cc warning on AIX.
6608         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6609         (pwrite): Likewise.
6610
6611 2011-06-17  Bruno Haible  <bruno@clisp.org>
6612
6613         spawn-pipe tests: Fix link error.
6614         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6616
6617 2011-06-17  Bruno Haible  <bruno@clisp.org>
6618
6619         Tests: Remove unnecessary dependency.
6620         * modules/canonicalize-tests (Depends-on): Remove progname.
6621         * modules/chown-tests (Depends-on): Likewise.
6622         * modules/dirname-tests (Depends-on): Likewise.
6623         * modules/fdopendir-tests (Depends-on): Likewise.
6624         * modules/fdutimensat-tests (Depends-on): Likewise.
6625         * modules/hash-tests (Depends-on): Likewise.
6626         * modules/lchown-tests (Depends-on): Likewise.
6627         * modules/linkat-tests (Depends-on): Likewise.
6628         * modules/renameat-tests (Depends-on): Likewise.
6629         * modules/spawn-pipe-tests (Depends-on): Likewise.
6630         * modules/utimensat-tests (Depends-on): Likewise.
6631
6632 2011-06-17  Bruno Haible  <bruno@clisp.org>
6633
6634         spawn-pipe tests: Fix link error.
6635         * tests/test-spawn-pipe-child.c: Undefine fflush.
6636
6637 2011-06-17  Bruno Haible  <bruno@clisp.org>
6638
6639         Fix tests link errors.
6640         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6641         * modules/chown-tests (Makefile.am): Don't link test-chown with
6642         LIBINTL.
6643         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6644         LIBINTL.
6645         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6646         LIBINTL.
6647         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6648         LIBINTL.
6649
6650 2011-06-16  Bruno Haible  <bruno@clisp.org>
6651
6652         crypto/gc-sha1: Fix recent regression.
6653         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6654         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6655
6656         crypto/gc-md5: Fix recent regression.
6657         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6658
6659         crypto/gc-md4: Fix recent regression.
6660         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6661         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6662
6663         crypto/gc-arctwo: Fix recent regression.
6664         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6665         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6666
6667         crypto/gc-rijndael: Fix recent regression.
6668         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6669         (configure.ac): Invoke AC_LIBOBJ here.
6670         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6672
6673         crypto/gc-hmac-sha1: Fix recent regression.
6674         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6675         (configure.ac): Invoke AC_LIBOBJ here.
6676         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6678
6679         crypto/gc-hmac-md5: Fix recent regression.
6680         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6681         (configure.ac): Invoke AC_LIBOBJ here.
6682         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6684
6685         crypto/gc-des: Fix recent regression.
6686         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6687         (configure.ac): Invoke AC_LIBOBJ here.
6688         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6690
6691         crypto/gc-arcfour: Fix recent regression.
6692         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6693         (configure.ac): Invoke AC_LIBOBJ here.
6694         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6696
6697 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6698
6699         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6700         After the 2011-05-21 change, this macro requires
6701         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6702         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6703
6704 2011-06-16  Bruno Haible  <bruno@clisp.org>
6705
6706         fprintftime: Move AC_LIBOBJ invocations to module description.
6707         * m4/fprintftime.m4: Remove file.
6708         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6709         (configure.ac): Remove gl_FPRINTFTIME call.
6710         (Makefile.am): Augment lib_SOURCES.
6711         Reported by Jim Meyering.
6712
6713 2011-06-16  Bruno Haible  <bruno@clisp.org>
6714
6715         tmpfile-safer: Finish 2011-05-23 commit.
6716         * m4/stdio-safer.m4: Really remove file.
6717         Reported by Jim Meyering.
6718
6719 2011-06-16  Bruno Haible  <bruno@clisp.org>
6720
6721         syntax-check: Fix typo.
6722         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6723         printf-posix.m4.
6724         Reported by Jim Meyering.
6725
6726 2011-06-13  Jim Meyering  <meyering@redhat.com>
6727
6728         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6729         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6730
6731 2011-05-23  Bruno Haible  <bruno@clisp.org>
6732
6733         yesno: Move AC_LIBOBJ invocations to module description.
6734         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6735         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6736
6737 2011-05-23  Bruno Haible  <bruno@clisp.org>
6738
6739         xstrtol: Move AC_LIBOBJ invocations to module description.
6740         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6741         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6742
6743 2011-05-23  Bruno Haible  <bruno@clisp.org>
6744
6745         xstrtold: Move AC_LIBOBJ invocations to module description.
6746         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6747         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6748
6749 2011-05-23  Bruno Haible  <bruno@clisp.org>
6750
6751         xstrtod: Move AC_LIBOBJ invocations to module description.
6752         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6753         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6754
6755 2011-05-23  Bruno Haible  <bruno@clisp.org>
6756
6757         xnanosleep: Move AC_LIBOBJ invocations to module description.
6758         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6759         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6760
6761 2011-05-23  Bruno Haible  <bruno@clisp.org>
6762
6763         xgetcwd: Move AC_LIBOBJ invocations to module description.
6764         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6765         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6766
6767 2011-05-23  Bruno Haible  <bruno@clisp.org>
6768
6769         xalloc: Move AC_LIBOBJ invocations to module description.
6770         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6771         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6772
6773 2011-05-23  Bruno Haible  <bruno@clisp.org>
6774
6775         write-any-file: Move AC_LIBOBJ invocations to module description.
6776         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6777         invocation.
6778         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6779
6780 2011-05-23  Bruno Haible  <bruno@clisp.org>
6781
6782         utimens: Move AC_LIBOBJ invocations to module description.
6783         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6784         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6785
6786 2011-05-23  Bruno Haible  <bruno@clisp.org>
6787
6788         utimecmp: Move AC_LIBOBJ invocations to module description.
6789         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6790         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6791
6792 2011-05-23  Bruno Haible  <bruno@clisp.org>
6793
6794         userspec: Move AC_LIBOBJ invocations to module description.
6795         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6796         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6797
6798 2011-05-23  Bruno Haible  <bruno@clisp.org>
6799
6800         unlinkdir: Move AC_LIBOBJ invocations to module description.
6801         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6802         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6803
6804 2011-05-23  Bruno Haible  <bruno@clisp.org>
6805
6806         unistd-safer: Move AC_LIBOBJ invocations to module description.
6807         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6808         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6809
6810 2011-05-23  Bruno Haible  <bruno@clisp.org>
6811
6812         tempname: Move AC_LIBOBJ invocations to module description.
6813         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6814         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6815
6816 2011-05-23  Bruno Haible  <bruno@clisp.org>
6817
6818         strftime: Move AC_LIBOBJ invocations to module description.
6819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6820         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6821
6822 2011-05-23  Bruno Haible  <bruno@clisp.org>
6823
6824         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6825         * m4/stdlib-safer.m4: Remove file.
6826         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6827         (configure.ac): Remove gl_STDLIB_SAFER call.
6828         (Makefile.am): Augment lib_SOURCES.
6829
6830 2011-05-23  Bruno Haible  <bruno@clisp.org>
6831
6832         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6833         * m4/stdio-safer.m4: Remove file.
6834         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6835         (configure.ac): Remove gl_TMPFILE_SAFER call.
6836         (Makefile.am): Augment lib_SOURCES.
6837
6838 2011-05-23  Bruno Haible  <bruno@clisp.org>
6839
6840         popen-safer: Move AC_LIBOBJ invocations to module description.
6841         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6842         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6843         (configure.ac): Remove gl_POPEN_SAFER call.
6844         (Makefile.am): Augment lib_SOURCES.
6845
6846 2011-05-23  Bruno Haible  <bruno@clisp.org>
6847
6848         freopen-safer: Move AC_LIBOBJ invocations to module description.
6849         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6850         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6851         (configure.ac): Remove gl_FREOPEN_SAFER call.
6852         (Makefile.am): Augment lib_SOURCES.
6853
6854 2011-05-23  Bruno Haible  <bruno@clisp.org>
6855
6856         fopen-safer: Move AC_LIBOBJ invocations to module description.
6857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6858         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6859         (configure.ac): Remove gl_FOPEN_SAFER call.
6860         (Makefile.am): Augment lib_SOURCES.
6861
6862 2011-05-23  Bruno Haible  <bruno@clisp.org>
6863
6864         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6865         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6866         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6867
6868 2011-05-23  Bruno Haible  <bruno@clisp.org>
6869
6870         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6871         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6872         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6873
6874 2011-05-23  Bruno Haible  <bruno@clisp.org>
6875
6876         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6877         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6878         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         settime: Move AC_LIBOBJ invocations to module description.
6883         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6884         * modules/settime (Makefile.am): Augment lib_SOURCES.
6885
6886 2011-05-23  Bruno Haible  <bruno@clisp.org>
6887
6888         savedir: Move AC_LIBOBJ invocations to module description.
6889         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6890         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6891
6892 2011-05-23  Bruno Haible  <bruno@clisp.org>
6893
6894         save-cwd: Move AC_LIBOBJ invocations to module description.
6895         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6896         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6897
6898 2011-05-23  Bruno Haible  <bruno@clisp.org>
6899
6900         same: Move AC_LIBOBJ invocations to module description.
6901         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6902         * modules/same (Makefile.am): Augment lib_SOURCES.
6903
6904 2011-05-23  Bruno Haible  <bruno@clisp.org>
6905
6906         safe-write: Move AC_LIBOBJ invocations to module description.
6907         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6908         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6909         instead of gl_SAFE_WRITE.
6910         (Makefile.am): Augment lib_SOURCES.
6911
6912 2011-05-23  Bruno Haible  <bruno@clisp.org>
6913
6914         safe-read: Move AC_LIBOBJ invocations to module description.
6915         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6916         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6917         of gl_SAFE_READ.
6918         (Makefile.am): Augment lib_SOURCES.
6919
6920 2011-05-23  Bruno Haible  <bruno@clisp.org>
6921
6922         safe-alloc: Move AC_LIBOBJ invocations to module description.
6923         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6924         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6925
6926 2011-05-23  Bruno Haible  <bruno@clisp.org>
6927
6928         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6929         * m4/rijndael.m4: Remove file.
6930         * modules/crypto/rijndael (Files): Remove it.
6931         (configure.ac): Remove gl_RIJNDAEL call.
6932         (Makefile.am): Augment lib_SOURCES.
6933
6934 2011-05-23  Bruno Haible  <bruno@clisp.org>
6935
6936         readtokens: Move AC_LIBOBJ invocations to module description.
6937         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6938         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6939
6940 2011-05-23  Bruno Haible  <bruno@clisp.org>
6941
6942         read-file: Move AC_LIBOBJ invocations to module description.
6943         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6944         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6945         of gl_FUNC_READ_FILE.
6946         (Makefile.am): Augment lib_SOURCES.
6947
6948 2011-05-23  Bruno Haible  <bruno@clisp.org>
6949
6950         quotearg: Move AC_LIBOBJ invocations to module description.
6951         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6952         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6953
6954 2011-05-23  Bruno Haible  <bruno@clisp.org>
6955
6956         quote: Move AC_LIBOBJ invocations to module description.
6957         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6958         * modules/quote (Makefile.am): Augment lib_SOURCES.
6959
6960 2011-05-23  Bruno Haible  <bruno@clisp.org>
6961
6962         posixver: Move AC_LIBOBJ invocations to module description.
6963         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6964         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6965
6966 2011-05-23  Bruno Haible  <bruno@clisp.org>
6967
6968         posixtm: Move AC_LIBOBJ invocations to module description.
6969         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6970         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6971
6972 2011-05-23  Bruno Haible  <bruno@clisp.org>
6973
6974         physmem: Move AC_LIBOBJ invocations to module description.
6975         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6976         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6977
6978 2011-05-23  Bruno Haible  <bruno@clisp.org>
6979
6980         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6981         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6982         invocation.
6983         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6984
6985 2011-05-23  Bruno Haible  <bruno@clisp.org>
6986
6987         mpsort: Move AC_LIBOBJ invocations to module description.
6988         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6989         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6990
6991 2011-05-23  Bruno Haible  <bruno@clisp.org>
6992
6993         modechange: Move AC_LIBOBJ invocations to module description.
6994         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6995         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6996
6997 2011-05-23  Bruno Haible  <bruno@clisp.org>
6998
6999         mkdir-p: Move AC_LIBOBJ invocations to module description.
7000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7001         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7002
7003 2011-05-23  Bruno Haible  <bruno@clisp.org>
7004
7005         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7006         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7007         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         mgetgroups: Move AC_LIBOBJ invocations to module description.
7012         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7013         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7014
7015 2011-05-23  Bruno Haible  <bruno@clisp.org>
7016
7017         memxor: Move AC_LIBOBJ invocations to module description.
7018         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7019         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7020
7021 2011-05-23  Bruno Haible  <bruno@clisp.org>
7022
7023         memcoll: Move AC_LIBOBJ invocations to module description.
7024         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7025         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         memcasecmp: Move AC_LIBOBJ invocations to module description.
7030         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7031         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7032
7033 2011-05-23  Bruno Haible  <bruno@clisp.org>
7034
7035         crypto/md5: Move AC_LIBOBJ invocations to module description.
7036         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7037         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7038
7039 2011-05-23  Bruno Haible  <bruno@clisp.org>
7040
7041         crypto/md4: Move AC_LIBOBJ invocations to module description.
7042         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7043         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7044
7045 2011-05-23  Bruno Haible  <bruno@clisp.org>
7046
7047         crypto/md2: Move AC_LIBOBJ invocations to module description.
7048         * m4/md2.m4: Remove file.
7049         * modules/crypto/md2 (Files): Remove it.
7050         (configure.ac): Remove gl_MD2 call.
7051         (Makefile.am): Augment lib_SOURCES.
7052
7053 2011-05-23  Bruno Haible  <bruno@clisp.org>
7054
7055         long-options: Move AC_LIBOBJ invocations to module description.
7056         * m4/long-options.m4: Remove file.
7057         * modules/long-options (Files): Remove it.
7058         (configure.ac): Remove gl_LONG_OPTIONS call.
7059         (Makefile.am): Augment lib_SOURCES.
7060
7061 2011-05-23  Bruno Haible  <bruno@clisp.org>
7062
7063         i-ring: Move AC_LIBOBJ invocations to module description.
7064         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7065         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7066
7067 2011-05-23  Bruno Haible  <bruno@clisp.org>
7068
7069         idcache: Move AC_LIBOBJ invocations to module description.
7070         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7071         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         human: Move AC_LIBOBJ invocations to module description.
7076         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7077         * modules/human (Makefile.am): Augment lib_SOURCES.
7078
7079 2011-05-23  Bruno Haible  <bruno@clisp.org>
7080
7081         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7082         * m4/hmac-sha1.m4: Remove file.
7083         * modules/crypto/hmac-sha1 (Files): Remove it.
7084         (configure.ac): Remove gl_HMAC_SHA1 call.
7085         (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-23  Bruno Haible  <bruno@clisp.org>
7088
7089         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7090         * m4/hmac-md5.m4: Remove file.
7091         * modules/crypto/hmac-md5 (Files): Remove it.
7092         (configure.ac): Remove gl_HMAC_MD5 call.
7093         (Makefile.am): Augment lib_SOURCES.
7094
7095 2011-05-23  Bruno Haible  <bruno@clisp.org>
7096
7097         hash: Move AC_LIBOBJ invocations to module description.
7098         * m4/hash.m4: Remove file.
7099         * modules/hash (Files): Remove it.
7100         (configure.ac): Remove gl_HASH call.
7101         (Makefile.am): Augment lib_SOURCES.
7102
7103 2011-05-23  Bruno Haible  <bruno@clisp.org>
7104
7105         hard-locale: Move AC_LIBOBJ invocations to module description.
7106         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7107         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7108
7109 2011-05-23  Bruno Haible  <bruno@clisp.org>
7110
7111         getugroups: Move AC_LIBOBJ invocations to module description.
7112         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7113         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7114
7115 2011-05-23  Bruno Haible  <bruno@clisp.org>
7116
7117         gettime: Move AC_LIBOBJ invocations to module description.
7118         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7119         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7120
7121 2011-05-23  Bruno Haible  <bruno@clisp.org>
7122
7123         getndelim2: Move AC_LIBOBJ invocations to module description.
7124         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7125         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7130         * m4/gc-pbkdf2-sha1.m4: Remove file.
7131         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7132         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7133         (Makefile.am): Augment lib_SOURCES.
7134
7135 2011-05-23  Bruno Haible  <bruno@clisp.org>
7136
7137         fts: Move AC_LIBOBJ invocations to module description.
7138         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7139         * modules/fts (configure.ac): ... to here.
7140
7141 2011-05-23  Bruno Haible  <bruno@clisp.org>
7142
7143         file-type: Move AC_LIBOBJ invocations to module description.
7144         * m4/file-type.m4: Remove file.
7145         * modules/file-type (Files): Remove it.
7146         (configure.ac): Remove gl_FILE_TYPE call.
7147         (Makefile.am): Augment lib_SOURCES.
7148
7149 2011-05-23  Bruno Haible  <bruno@clisp.org>
7150
7151         filenamecat*: Respect rules for use of AC_LIBOBJ.
7152         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7153         Remove AC_LIBOBJ invocation.
7154         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7155         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         filemode: Move AC_LIBOBJ invocations to module description.
7160         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7161         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         openat-safer: Move AC_LIBOBJ invocations to module description.
7166         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7167         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7168
7169 2011-05-23  Bruno Haible  <bruno@clisp.org>
7170
7171         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7172         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7173         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7174
7175 2011-05-23  Bruno Haible  <bruno@clisp.org>
7176
7177         exclude: Move AC_LIBOBJ invocations to module description.
7178         * m4/exclude.m4: Remove file.
7179         * modules/exclude (Files): Remove it.
7180         (configure.ac): Remove gl_EXCLUDE call.
7181         (Makefile.am): Augment lib_SOURCES.
7182
7183 2011-05-23  Bruno Haible  <bruno@clisp.org>
7184
7185         dirname*: Respect rules for use of AC_LIBOBJ.
7186         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7187         invocations.
7188         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7189         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7190
7191 2011-05-23  Bruno Haible  <bruno@clisp.org>
7192
7193         dirent-safer: Move AC_LIBOBJ invocations to module description.
7194         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7195         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7196
7197 2011-05-23  Bruno Haible  <bruno@clisp.org>
7198
7199         crypto/des: Move AC_LIBOBJ invocations to module description.
7200         * m4/des.m4: Remove file.
7201         * modules/crypto/des (Files): Remove it.
7202         (configure.ac): Remove gl_DES call.
7203         (Makefile.am): Augment lib_SOURCES.
7204
7205 2011-05-23  Bruno Haible  <bruno@clisp.org>
7206
7207         cycle-check: Move AC_LIBOBJ invocations to module description.
7208         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7209         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7210
7211 2011-05-23  Bruno Haible  <bruno@clisp.org>
7212
7213         c-strtold: Move AC_LIBOBJ invocations to module description.
7214         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7215         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7216
7217 2011-05-23  Bruno Haible  <bruno@clisp.org>
7218
7219         c-strtod: Move AC_LIBOBJ invocations to module description.
7220         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7221         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7222
7223 2011-05-23  Bruno Haible  <bruno@clisp.org>
7224
7225         crc: Move AC_LIBOBJ invocations to module description.
7226         * m4/crc.m4: Remove file.
7227         * modules/crc (Files): Remove it.
7228         (configure.ac): Remove gl_CRC call.
7229         (Makefile.am): Augment lib_SOURCES.
7230
7231 2011-05-23  Bruno Haible  <bruno@clisp.org>
7232
7233         close-stream: Move AC_LIBOBJ invocations to module description.
7234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7235         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7236
7237 2011-05-23  Bruno Haible  <bruno@clisp.org>
7238
7239         closeout: Move AC_LIBOBJ invocations to module description.
7240         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7241         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7242
7243 2011-05-23  Bruno Haible  <bruno@clisp.org>
7244
7245         closein: Move AC_LIBOBJ invocations to module description.
7246         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7247         * modules/closein (Makefile.am): Augment lib_SOURCES.
7248
7249 2011-05-23  Bruno Haible  <bruno@clisp.org>
7250
7251         cloexec: Move AC_LIBOBJ invocations to module description.
7252         * m4/cloexec.m4: Remove file.
7253         * modules/cloexec (Files): Remove it.
7254         (configure.ac): Remove gl_CLOEXEC call.
7255         (Makefile.am): Augment lib_SOURCES.
7256
7257 2011-05-23  Bruno Haible  <bruno@clisp.org>
7258
7259         check-version: Move AC_LIBOBJ invocations to module description.
7260         * m4/check-version.m4: Remove file.
7261         * modules/check-version (Files): Remove it.
7262         (configure.ac): Remove gl_CHECK_VERSION call.
7263         (Makefile.am): Augment lib_SOURCES.
7264
7265 2011-05-23  Bruno Haible  <bruno@clisp.org>
7266
7267         chdir-safer: Move AC_LIBOBJ invocations to module description.
7268         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7269         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7270
7271 2011-05-23  Bruno Haible  <bruno@clisp.org>
7272
7273         canonicalize: Move AC_LIBOBJ invocations to module description.
7274         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7275         AC_LIBOBJ invocation.
7276         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7277
7278 2011-05-23  Bruno Haible  <bruno@clisp.org>
7279
7280         canon-host: Move AC_LIBOBJ invocations to module description.
7281         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7282         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7283         instead of gl_CANON_HOST.
7284         (Makefile.am): Augment lib_SOURCES.
7285
7286 2011-05-23  Bruno Haible  <bruno@clisp.org>
7287
7288         backupfile: Move AC_LIBOBJ invocations to module description.
7289         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7290         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7291
7292 2011-05-23  Bruno Haible  <bruno@clisp.org>
7293
7294         argmatch: Move AC_LIBOBJ invocations to module description.
7295         * m4/argmatch.m4: Remove file.
7296         * modules/argmatch (Files): Remove it.
7297         (configure.ac): Remove gl_ARGMATCH call.
7298         (Makefile.am): Augment lib_SOURCES.
7299
7300 2011-05-23  Bruno Haible  <bruno@clisp.org>
7301
7302         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7303         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7304         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7305
7306 2011-05-23  Bruno Haible  <bruno@clisp.org>
7307
7308         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7309         * m4/arcfour.m4: Remove file.
7310         * modules/crypto/arcfour (Files): Remove it.
7311         (configure.ac): Remove gl_ARCFOUR call.
7312         (Makefile.am): Augment lib_SOURCES.
7313
7314 2011-05-22  Bruno Haible  <bruno@clisp.org>
7315
7316         write: Move AC_LIBOBJ invocations to module description.
7317         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7318         * modules/write (configure.ac): ... to here.
7319
7320 2011-05-22  Bruno Haible  <bruno@clisp.org>
7321
7322         wmemset: Move AC_LIBOBJ invocations to module description.
7323         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7324         here...
7325         * modules/wmemset (configure.ac): ... to here.
7326
7327 2011-05-22  Bruno Haible  <bruno@clisp.org>
7328
7329         wmemmove: Move AC_LIBOBJ invocations to module description.
7330         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7331         here...
7332         * modules/wmemmove (configure.ac): ... to here.
7333
7334 2011-05-22  Bruno Haible  <bruno@clisp.org>
7335
7336         wmemcpy: Move AC_LIBOBJ invocations to module description.
7337         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7338         here...
7339         * modules/wmemcpy (configure.ac): ... to here.
7340
7341 2011-05-22  Bruno Haible  <bruno@clisp.org>
7342
7343         wmemcmp: Move AC_LIBOBJ invocations to module description.
7344         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7345         here...
7346         * modules/wmemcmp (configure.ac): ... to here.
7347
7348 2011-05-22  Bruno Haible  <bruno@clisp.org>
7349
7350         wmemchr: Move AC_LIBOBJ invocations to module description.
7351         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7352         here...
7353         * modules/wmemchr (configure.ac): ... to here.
7354
7355 2011-05-22  Bruno Haible  <bruno@clisp.org>
7356
7357         wcswidth: Move AC_LIBOBJ invocations to module description.
7358         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7359         here...
7360         * modules/wcswidth (configure.ac): ... to here.
7361
7362 2011-05-22  Bruno Haible  <bruno@clisp.org>
7363
7364         wcwidth: Respect rules for use of AC_LIBOBJ.
7365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7366         invocation from here...
7367         * modules/wcwidth (configure.ac): ... to here.
7368         (Depends-on): Update conditions.
7369
7370 2011-05-22  Bruno Haible  <bruno@clisp.org>
7371
7372         wctype: Move AC_LIBOBJ invocations to module description.
7373         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7374         invocation from here...
7375         * modules/wctype (configure.ac): ... to here.
7376         (Depends-on): Update conditions.
7377
7378 2011-05-22  Bruno Haible  <bruno@clisp.org>
7379
7380         wctrans: Move AC_LIBOBJ invocations to module description.
7381         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7382         invocation from here...
7383         * modules/wctrans (configure.ac): ... to here.
7384
7385 2011-05-22  Bruno Haible  <bruno@clisp.org>
7386
7387         wctomb: Move AC_LIBOBJ invocations to module description.
7388         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7389         invocations from here...
7390         * modules/wctomb (configure.ac): ... to here.
7391
7392 2011-05-22  Bruno Haible  <bruno@clisp.org>
7393
7394         wctob: Move AC_LIBOBJ invocations to module description.
7395         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7396         gl_PREREQ_WCTOB invocations from here...
7397         * modules/wctob (configure.ac): ... to here.
7398         (Depends-on): Update conditions.
7399
7400 2011-05-22  Bruno Haible  <bruno@clisp.org>
7401
7402         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7403         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7404         here...
7405         * modules/wcsxfrm (configure.ac): ... to here.
7406
7407 2011-05-22  Bruno Haible  <bruno@clisp.org>
7408
7409         wcstok: Move AC_LIBOBJ invocations to module description.
7410         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7411         * modules/wcstok (configure.ac): ... to here.
7412
7413 2011-05-22  Bruno Haible  <bruno@clisp.org>
7414
7415         wcsstr: Move AC_LIBOBJ invocations to module description.
7416         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7417         * modules/wcsstr (configure.ac): ... to here.
7418
7419 2011-05-22  Bruno Haible  <bruno@clisp.org>
7420
7421         wcsspn: Move AC_LIBOBJ invocations to module description.
7422         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7423         * modules/wcsspn (configure.ac): ... to here.
7424
7425 2011-05-22  Bruno Haible  <bruno@clisp.org>
7426
7427         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7428         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7429         gl_PREREQ_WCSRTOMBS invocations from here...
7430         * modules/wcsrtombs (configure.ac): ... to here.
7431
7432 2011-05-22  Bruno Haible  <bruno@clisp.org>
7433
7434         wcsrchr: Move AC_LIBOBJ invocations to module description.
7435         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7436         here...
7437         * modules/wcsrchr (configure.ac): ... to here.
7438
7439 2011-05-22  Bruno Haible  <bruno@clisp.org>
7440
7441         wcspbrk: Move AC_LIBOBJ invocations to module description.
7442         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7443         here...
7444         * modules/wcspbrk (configure.ac): ... to here.
7445
7446 2011-05-22  Bruno Haible  <bruno@clisp.org>
7447
7448         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7449         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7450         gl_PREREQ_WCSNRTOMBS invocations from here...
7451         * modules/wcsnrtombs (configure.ac): ... to here.
7452
7453 2011-05-22  Bruno Haible  <bruno@clisp.org>
7454
7455         wcsnlen: Move AC_LIBOBJ invocations to module description.
7456         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7457         here...
7458         * modules/wcsnlen (configure.ac): ... to here.
7459
7460 2011-05-22  Bruno Haible  <bruno@clisp.org>
7461
7462         wcsncpy: Move AC_LIBOBJ invocations to module description.
7463         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7464         here...
7465         * modules/wcsncpy (configure.ac): ... to here.
7466
7467 2011-05-22  Bruno Haible  <bruno@clisp.org>
7468
7469         wcsncmp: Move AC_LIBOBJ invocations to module description.
7470         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7471         here...
7472         * modules/wcsncmp (configure.ac): ... to here.
7473
7474 2011-05-22  Bruno Haible  <bruno@clisp.org>
7475
7476         wcsncat: Move AC_LIBOBJ invocations to module description.
7477         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7478         here...
7479         * modules/wcsncat (configure.ac): ... to here.
7480
7481 2011-05-22  Bruno Haible  <bruno@clisp.org>
7482
7483         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7484         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7485         from here...
7486         * modules/wcsncasecmp (configure.ac): ... to here.
7487
7488 2011-05-22  Bruno Haible  <bruno@clisp.org>
7489
7490         wcslen: Move AC_LIBOBJ invocations to module description.
7491         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7492         * modules/wcslen (configure.ac): ... to here.
7493
7494 2011-05-22  Bruno Haible  <bruno@clisp.org>
7495
7496         wcsdup: Move AC_LIBOBJ invocations to module description.
7497         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7498         * modules/wcsdup (configure.ac): ... to here.
7499
7500 2011-05-22  Bruno Haible  <bruno@clisp.org>
7501
7502         wcscspn: Move AC_LIBOBJ invocations to module description.
7503         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7504         here...
7505         * modules/wcscspn (configure.ac): ... to here.
7506
7507 2011-05-22  Bruno Haible  <bruno@clisp.org>
7508
7509         wcscpy: Move AC_LIBOBJ invocations to module description.
7510         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7511         * modules/wcscpy (configure.ac): ... to here.
7512
7513 2011-05-22  Bruno Haible  <bruno@clisp.org>
7514
7515         wcscoll: Move AC_LIBOBJ invocations to module description.
7516         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7517         here...
7518         * modules/wcscoll (configure.ac): ... to here.
7519
7520 2011-05-22  Bruno Haible  <bruno@clisp.org>
7521
7522         wcscmp: Move AC_LIBOBJ invocations to module description.
7523         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7524         * modules/wcscmp (configure.ac): ... to here.
7525
7526 2011-05-22  Bruno Haible  <bruno@clisp.org>
7527
7528         wcschr: Move AC_LIBOBJ invocations to module description.
7529         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7530         * modules/wcschr (configure.ac): ... to here.
7531
7532 2011-05-22  Bruno Haible  <bruno@clisp.org>
7533
7534         wcscat: Move AC_LIBOBJ invocations to module description.
7535         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7536         * modules/wcscat (configure.ac): ... to here.
7537
7538 2011-05-22  Bruno Haible  <bruno@clisp.org>
7539
7540         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7541         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7542         here...
7543         * modules/wcscasecmp (configure.ac): ... to here.
7544
7545 2011-05-22  Bruno Haible  <bruno@clisp.org>
7546
7547         wcrtomb: Move AC_LIBOBJ invocations to module description.
7548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7549         invocations from here...
7550         * modules/wcrtomb (configure.ac): ... to here.
7551
7552 2011-05-22  Bruno Haible  <bruno@clisp.org>
7553
7554         wcpncpy: Move AC_LIBOBJ invocations to module description.
7555         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7556         here...
7557         * modules/wcpncpy (configure.ac): ... to here.
7558
7559 2011-05-22  Bruno Haible  <bruno@clisp.org>
7560
7561         wcpcpy: Move AC_LIBOBJ invocations to module description.
7562         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7563         * modules/wcpcpy (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         waitpid: Move AC_LIBOBJ invocations to module description.
7568         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7569         invocation from here...
7570         * modules/waitpid (configure.ac): ... to here.
7571
7572 2011-05-22  Bruno Haible  <bruno@clisp.org>
7573
7574         utimensat: Move AC_LIBOBJ invocations to module description.
7575         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7576         here...
7577         * modules/utimensat (configure.ac): ... to here.
7578
7579 2011-05-22  Bruno Haible  <bruno@clisp.org>
7580
7581         usleep: Move AC_LIBOBJ invocations to module description.
7582         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7583         here...
7584         * modules/usleep (configure.ac): ... to here.
7585
7586 2011-05-22  Bruno Haible  <bruno@clisp.org>
7587
7588         unlockpt: Move AC_LIBOBJ invocations to module description.
7589         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7590         gl_PREREQ_UNLOCKPT invocations from here...
7591         * modules/unlockpt (configure.ac): ... to here.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         unlink: Respect rules for use of AC_LIBOBJ.
7596         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7597         * modules/unlink (configure.ac): ... to here.
7598
7599 2011-05-22  Bruno Haible  <bruno@clisp.org>
7600
7601         uname: Move AC_LIBOBJ invocations to module description.
7602         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7604         here...
7605         * modules/uname (configure.ac): ... to here.
7606
7607 2011-05-22  Bruno Haible  <bruno@clisp.org>
7608
7609         ttyname_r: Move AC_LIBOBJ invocations to module description.
7610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7611         gl_PREREQ_TTYNAME_R invocations from here...
7612         * modules/ttyname_r (configure.ac): ... to here.
7613
7614 2011-05-22  Bruno Haible  <bruno@clisp.org>
7615
7616         tsearch: Move AC_LIBOBJ invocations to module description.
7617         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7618         invocations from here...
7619         * modules/tsearch (configure.ac): ... to here.
7620
7621 2011-05-22  Bruno Haible  <bruno@clisp.org>
7622
7623         towctrans: Move AC_LIBOBJ invocations to module description.
7624         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7625         AC_LIBOBJ invocation from here...
7626         * modules/towctrans (configure.ac): ... to here.
7627
7628 2011-05-22  Bruno Haible  <bruno@clisp.org>
7629
7630         tmpfile: Move AC_LIBOBJ invocations to module description.
7631         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7632         invocations from here...
7633         * modules/tmpfile (configure.ac): ... to here.
7634
7635 2011-05-22  Bruno Haible  <bruno@clisp.org>
7636
7637         times: Move AC_LIBOBJ invocations to module description.
7638         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7639         * modules/times (configure.ac): ... to here.
7640
7641 2011-05-22  Bruno Haible  <bruno@clisp.org>
7642
7643         time_r: Move AC_LIBOBJ invocations to module description.
7644         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7645         invocations from here...
7646         * modules/time_r (configure.ac): ... to here.
7647
7648 2011-05-22  Bruno Haible  <bruno@clisp.org>
7649
7650         timegm: Move AC_LIBOBJ invocations to module description.
7651         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7652         invocations from here...
7653         * modules/timegm (configure.ac): ... to here.
7654
7655 2011-05-22  Bruno Haible  <bruno@clisp.org>
7656
7657         tcgetsid: Move AC_LIBOBJ invocations to module description.
7658         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7659         and gl_PREREQ_TCGETSID invocations from here...
7660         * modules/tcgetsid (configure.ac): ... to here.
7661         (Depends-on): Update conditions.
7662
7663 2011-05-22  Bruno Haible  <bruno@clisp.org>
7664
7665         symlinkat: Move AC_LIBOBJ invocations to module description.
7666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7667         here...
7668         * modules/symlinkat (configure.ac): ... to here.
7669
7670 2011-05-22  Bruno Haible  <bruno@clisp.org>
7671
7672         symlink: Move AC_LIBOBJ invocations to module description.
7673         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7674         here...
7675         * modules/symlink (configure.ac): ... to here.
7676
7677 2011-05-22  Bruno Haible  <bruno@clisp.org>
7678
7679         strverscmp: Move AC_LIBOBJ invocations to module description.
7680         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7682         from here...
7683         * modules/strverscmp (configure.ac): ... to here.
7684
7685 2011-05-22  Bruno Haible  <bruno@clisp.org>
7686
7687         strtok_r: Move AC_LIBOBJ invocations to module description.
7688         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7689         and gl_PREREQ_STRTOK_R invocations from here...
7690         * modules/strtok_r (configure.ac): ... to here.
7691         (Depends-on): Update conditions.
7692
7693 2011-05-22  Bruno Haible  <bruno@clisp.org>
7694
7695         strtoumax: Move AC_LIBOBJ invocations to module description.
7696         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7698         from here...
7699         * modules/strtoumax (configure.ac): ... to here.
7700
7701 2011-05-22  Bruno Haible  <bruno@clisp.org>
7702
7703         strtoimax: Move AC_LIBOBJ invocations to module description.
7704         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7705         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7706         from here...
7707         * modules/strtoimax (configure.ac): ... to here.
7708
7709 2011-05-22  Bruno Haible  <bruno@clisp.org>
7710
7711         strtoull: Move AC_LIBOBJ invocations to module description.
7712         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7714         from here...
7715         * modules/strtoull (configure.ac): ... to here.
7716
7717 2011-05-22  Bruno Haible  <bruno@clisp.org>
7718
7719         strtoll: Move AC_LIBOBJ invocations to module description.
7720         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7722         here...
7723         * modules/strtoll (configure.ac): ... to here.
7724
7725 2011-05-22  Bruno Haible  <bruno@clisp.org>
7726
7727         strtoul: Move AC_LIBOBJ invocations to module description.
7728         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7729         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7730         * modules/strtoul (configure.ac): ... to here.
7731
7732 2011-05-22  Bruno Haible  <bruno@clisp.org>
7733
7734         strtol: Move AC_LIBOBJ invocations to module description.
7735         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7736         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7737         * modules/strtol (configure.ac): ... to here.
7738
7739 2011-05-22  Bruno Haible  <bruno@clisp.org>
7740
7741         strtod: Move AC_LIBOBJ invocations to module description.
7742         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7743         invocations from here...
7744         * modules/strtod (configure.ac): ... to here.
7745
7746 2011-05-22  Bruno Haible  <bruno@clisp.org>
7747
7748         strstr*: Move AC_LIBOBJ invocations to module description.
7749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7750         invocations from here...
7751         * modules/strstr-simple (configure.ac): ... to here.
7752         * modules/strstr (configure.ac): ... and here.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         strsignal: Move AC_LIBOBJ invocations to module description.
7757         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7758         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7759         * modules/strsignal (configure.ac): ... to here.
7760         (Depends-on): Update conditions.
7761
7762 2011-05-22  Bruno Haible  <bruno@clisp.org>
7763
7764         strsep: Move AC_LIBOBJ invocations to module description.
7765         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7767         here...
7768         * modules/strsep (configure.ac): ... to here.
7769
7770 2011-05-22  Bruno Haible  <bruno@clisp.org>
7771
7772         strptime: Move AC_LIBOBJ invocations to module description.
7773         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7774         gl_PREREQ_STRPTIME invocations from here...
7775         * modules/strptime (configure.ac): ... to here.
7776
7777 2011-05-22  Bruno Haible  <bruno@clisp.org>
7778
7779         strpbrk: Move AC_LIBOBJ invocations to module description.
7780         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7782         here...
7783         * modules/strpbrk (configure.ac): ... to here.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         strnlen: Move AC_LIBOBJ invocations to module description.
7788         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7789         invocations from here...
7790         * modules/strnlen (configure.ac): ... to here.
7791
7792 2011-05-22  Bruno Haible  <bruno@clisp.org>
7793
7794         strndup: Move AC_LIBOBJ invocations to module description.
7795         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7796         invocations from here...
7797         * modules/strndup (configure.ac): ... to here.
7798         (Depends-on): Update conditions.
7799
7800 2011-05-22  Bruno Haible  <bruno@clisp.org>
7801
7802         strncat: Move AC_LIBOBJ invocations to module description.
7803         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7804         invocations from here...
7805         * modules/strncat (configure.ac): ... to here.
7806
7807 2011-05-22  Bruno Haible  <bruno@clisp.org>
7808
7809         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7810         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7811         invocations from here...
7812         * modules/strdup (configure.ac): ... to here.
7813         * modules/strdup-posix (configure.ac): ... and here.
7814
7815 2011-05-22  Bruno Haible  <bruno@clisp.org>
7816
7817         strcspn: Move AC_LIBOBJ invocations to module description.
7818         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7820         here...
7821         * modules/strcspn (configure.ac): ... to here.
7822
7823 2011-05-22  Bruno Haible  <bruno@clisp.org>
7824
7825         strchrnul: Move AC_LIBOBJ invocations to module description.
7826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7827         gl_PREREQ_STRCHRNUL invocations from here...
7828         * modules/strchrnul (configure.ac): ... to here.
7829
7830 2011-05-22  Bruno Haible  <bruno@clisp.org>
7831
7832         strcasestr*: Move AC_LIBOBJ invocations to module description.
7833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7834         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7835         * modules/strcasestr-simple (configure.ac): ... to here.
7836         * modules/strcasestr (configure.ac): ... and here.
7837
7838 2011-05-22  Bruno Haible  <bruno@clisp.org>
7839
7840         strcase: Move AC_LIBOBJ invocations to module description.
7841         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7842         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7843         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7844         gl_PREREQ_STRNCASECMP invocations from here...
7845         * modules/strcase (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         stpncpy: Move AC_LIBOBJ invocations to module description.
7850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7851         here...
7852         * modules/stpncpy (configure.ac): ... to here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         stpcpy: Move AC_LIBOBJ invocations to module description.
7857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7859         here...
7860         * modules/stpcpy (configure.ac): ... to here.
7861
7862 2011-05-21  Bruno Haible  <bruno@clisp.org>
7863
7864         stat: Move AC_LIBOBJ invocations to module description.
7865         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7866         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7867         here...
7868         * modules/stat (configure.ac): ... to here.
7869
7870 2011-05-21  Bruno Haible  <bruno@clisp.org>
7871
7872         sleep: Move AC_LIBOBJ invocations to module description.
7873         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7874         * modules/sleep (configure.ac): ... to here.
7875
7876 2011-05-21  Bruno Haible  <bruno@clisp.org>
7877
7878         signbit: Move AC_LIBOBJ invocations to module description.
7879         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7880         * modules/signbit (configure.ac): ... to here.
7881
7882 2011-05-21  Bruno Haible  <bruno@clisp.org>
7883
7884         sigprocmask: Move AC_LIBOBJ invocations to module description.
7885         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7886         gl_PREREQ_SIGPROMASK invocations from here...
7887         * modules/sigprocmask (configure.ac): ... to here.
7888
7889 2011-05-21  Bruno Haible  <bruno@clisp.org>
7890
7891         sigaction: Move AC_LIBOBJ invocations to module description.
7892         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7893         gl_PREREQ_SIGACTION invocations from here...
7894         * modules/sigaction (configure.ac): ... to here.
7895
7896 2011-05-21  Bruno Haible  <bruno@clisp.org>
7897
7898         sig2str: Move AC_LIBOBJ invocations to module description.
7899         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7901         here...
7902         * modules/sig2str (configure.ac): ... to here.
7903
7904 2011-05-21  Bruno Haible  <bruno@clisp.org>
7905
7906         setlocale: Move AC_LIBOBJ invocations to module description.
7907         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7908         gl_PREREQ_SETLOCALE invocations from here...
7909         * modules/setlocale (configure.ac): ... to here.
7910
7911 2011-05-21  Bruno Haible  <bruno@clisp.org>
7912
7913         unsetenv: Move AC_LIBOBJ invocations to module description.
7914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7915         and gl_PREREQ_UNSETENV invocations from here...
7916         * modules/unsetenv (configure.ac): ... to here.
7917         (Depends-on): Update.
7918
7919 2011-05-21  Bruno Haible  <bruno@clisp.org>
7920
7921         setenv: Move AC_LIBOBJ invocations to module description.
7922         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7923         here...
7924         * modules/setenv (configure.ac): ... to here.
7925
7926 2011-05-21  Bruno Haible  <bruno@clisp.org>
7927
7928         selinux-h: Move AC_LIBOBJ invocations to module description.
7929         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7930         AC_LIBOBJ invocation from here...
7931         * modules/selinux-h (configure.ac): ... to here.
7932
7933 2011-05-21  Bruno Haible  <bruno@clisp.org>
7934
7935         select: Respect rules for use of AC_LIBOBJ.
7936         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7937         here...
7938         * modules/select (configure.ac): ... to here.
7939
7940 2011-05-21  Bruno Haible  <bruno@clisp.org>
7941
7942         scandir: Move AC_LIBOBJ invocations to module description.
7943         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7944         invocations from here...
7945         * modules/scandir (configure.ac): ... to here.
7946
7947 2011-05-21  Bruno Haible  <bruno@clisp.org>
7948
7949         rpmatch: Move AC_LIBOBJ invocations to module description.
7950         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7952         here...
7953         * modules/rpmatch (configure.ac): ... to here.
7954
7955 2011-05-21  Bruno Haible  <bruno@clisp.org>
7956
7957         rmdir: Respect rules for use of AC_LIBOBJ.
7958         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7959         * modules/rmdir (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         renameat: Move AC_LIBOBJ invocations to module description.
7964         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7965         here...
7966         * modules/renameat (configure.ac): ... to here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         rename: Respect rules for use of AC_LIBOBJ.
7971         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7972         here...
7973         * modules/rename (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         remove: Move AC_LIBOBJ invocations to module description.
7978         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7979         here...
7980         * modules/remove (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7985         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7986         macro.
7987         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7988         * modules/relocatable-lib (configure.ac): ... to here.
7989         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7990         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7991
7992 2011-05-21  Bruno Haible  <bruno@clisp.org>
7993
7994         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7995         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7996         here...
7997         * modules/relocatable-prog (configure.ac): ... to here.
7998
7999 2011-05-21  Bruno Haible  <bruno@clisp.org>
8000
8001         regex: Move AC_LIBOBJ invocations to module description.
8002         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8003         invocations from here...
8004         * modules/regex (configure.ac): ... to here.
8005
8006 2011-05-21  Bruno Haible  <bruno@clisp.org>
8007
8008         realloc-*: Move AC_LIBOBJ invocations to module description.
8009         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8010         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8011         AC_LIBOBJ invocations from here...
8012         * modules/realloc-gnu (configure.ac): ... to here.
8013         * modules/realloc-posix (configure.ac): ... and here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         readutmp: Move AC_LIBOBJ invocations to module description.
8018         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8019         * modules/readutmp (configure.ac): ... to here.
8020
8021 2011-05-21  Bruno Haible  <bruno@clisp.org>
8022
8023         readlinkat: Move AC_LIBOBJ invocations to module description.
8024         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8025         here...
8026         * modules/readlinkat (configure.ac): ... to here.
8027
8028 2011-05-21  Bruno Haible  <bruno@clisp.org>
8029
8030         readlink: Move AC_LIBOBJ invocations to module description.
8031         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8032         gl_PREREQ_READLINK invocations from here...
8033         * modules/readlink (configure.ac): ... to here.
8034
8035 2011-05-21  Bruno Haible  <bruno@clisp.org>
8036
8037         readline: Move AC_LIBOBJ invocations to module description.
8038         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8039         gl_PREREQ_READLINE invocations from here...
8040         * modules/readline (configure.ac): ... to here.
8041
8042 2011-05-21  Bruno Haible  <bruno@clisp.org>
8043
8044         read: Move AC_LIBOBJ invocations to module description.
8045         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8046         * modules/read (configure.ac): ... to here.
8047
8048 2011-05-21  Bruno Haible  <bruno@clisp.org>
8049
8050         rawmemchr: Move AC_LIBOBJ invocations to module description.
8051         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8053         from here...
8054         * modules/rawmemchr (configure.ac): ... to here.
8055
8056 2011-05-21  Bruno Haible  <bruno@clisp.org>
8057
8058         random_r: Move AC_LIBOBJ invocations to module description.
8059         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8060         gl_PREREQ_RANDOM_R invocations from here...
8061         * modules/random_r (configure.ac): ... to here.
8062
8063 2011-05-21  Bruno Haible  <bruno@clisp.org>
8064
8065         pwrite: Move AC_LIBOBJ invocations to module description.
8066         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8067         * modules/pwrite (configure.ac): ... to here.
8068
8069 2011-05-21  Bruno Haible  <bruno@clisp.org>
8070
8071         putenv: Move AC_LIBOBJ invocations to module description.
8072         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8073         * modules/putenv (configure.ac): ... to here.
8074
8075 2011-05-21  Bruno Haible  <bruno@clisp.org>
8076
8077         login_tty: Move AC_LIBOBJ invocations to module description.
8078         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8079         * modules/login_tty (configure.ac): ... to here.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         openpty: Move AC_LIBOBJ invocations to module description.
8084         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8085         * modules/openpty (configure.ac): ... to here.
8086
8087 2011-05-21  Bruno Haible  <bruno@clisp.org>
8088
8089         forkpty: Move AC_LIBOBJ invocations to module description.
8090         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8091         * modules/forkpty (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         ptsname: Move AC_LIBOBJ invocations to module description.
8096         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8097         invocations from here...
8098         * modules/ptsname (configure.ac): ... to here.
8099
8100 2011-05-21  Bruno Haible  <bruno@clisp.org>
8101
8102         pread: Move AC_LIBOBJ invocations to module description.
8103         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8104         * modules/pread (configure.ac): ... to here.
8105
8106 2011-05-21  Bruno Haible  <bruno@clisp.org>
8107
8108         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8109         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8110         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8111         * modules/posix_spawn (configure.ac): ... to here.
8112         * modules/posix_spawnp (configure.ac): ... and here.
8113
8114 2011-05-21  Bruno Haible  <bruno@clisp.org>
8115
8116         popen: Move AC_LIBOBJ invocations to module description.
8117         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8118         invocations from here...
8119         * modules/popen (configure.ac): ... to here.
8120
8121 2011-05-21  Bruno Haible  <bruno@clisp.org>
8122
8123         poll: Move AC_LIBOBJ invocations to module description.
8124         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8125         invocations from here...
8126         * modules/poll (configure.ac): ... to here.
8127
8128 2011-05-21  Bruno Haible  <bruno@clisp.org>
8129
8130         pipe-posix: Move AC_LIBOBJ invocations to module description.
8131         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8132         * modules/pipe-posix (configure.ac): ... to here.
8133
8134 2011-05-21  Bruno Haible  <bruno@clisp.org>
8135
8136         openat: Respect rules for use of AC_LIBOBJ.
8137         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8138         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8139         * modules/openat (configure.ac): ... to here.
8140
8141 2011-05-21  Bruno Haible  <bruno@clisp.org>
8142
8143         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8144         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8145         invocation from here...
8146         * modules/obstack-printf (configure.ac): ... to here.
8147         * modules/obstack-printf-posix (configure.ac): ... and here.
8148
8149 2011-05-21  Bruno Haible  <bruno@clisp.org>
8150
8151         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8152         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8153         from here...
8154         * modules/nl_langinfo (configure.ac): ... to here.
8155
8156 2011-05-21  Bruno Haible  <bruno@clisp.org>
8157
8158         nanosleep: Move AC_LIBOBJ invocations to module description.
8159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8160         gl_PREREQ_NANOSLEEP invocations from here...
8161         * modules/nanosleep (configure.ac): ... to here.
8162
8163 2011-05-21  Bruno Haible  <bruno@clisp.org>
8164
8165         mountlist: Move AC_LIBOBJ invocations to module description.
8166         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8167         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8168         * modules/mountlist (configure.ac): ... to here.
8169
8170 2011-05-21  Bruno Haible  <bruno@clisp.org>
8171
8172         mktime: Respect rules for use of AC_LIBOBJ.
8173         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8174         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8175         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8176         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8177         * modules/mktime (configure.ac): ... to here.
8178         * modules/mktime-internal (configure.ac): ... and here.
8179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8180
8181 2011-05-21  Bruno Haible  <bruno@clisp.org>
8182
8183         mkstemps: Move AC_LIBOBJ invocations to module description.
8184         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8185         here...
8186         * modules/mkstemps (configure.ac): ... to here.
8187
8188 2011-05-21  Bruno Haible  <bruno@clisp.org>
8189
8190         mkstemp: Move AC_LIBOBJ invocations to module description.
8191         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8192         gl_PREREQ_MKSTEMP invocations from here...
8193         * modules/mkstemp (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         mkostemps: Move AC_LIBOBJ invocations to module description.
8198         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8199         here...
8200         * modules/mkostemps (configure.ac): ... to here.
8201
8202 2011-05-21  Bruno Haible  <bruno@clisp.org>
8203
8204         mkostemp: Move AC_LIBOBJ invocations to module description.
8205         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8206         gl_PREREQ_MKOSTEMP invocations from here...
8207         * modules/mkostemp (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         mknod: Move AC_LIBOBJ invocations to module description.
8212         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8213         * modules/mknod (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         mkfifoat: Move AC_LIBOBJ invocations to module description.
8218         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8219         here...
8220         * modules/mkfifoat (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         mkfifo: Respect rules for use of AC_LIBOBJ.
8225         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8226         here...
8227         * modules/mkfifo (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         mkdtemp: Move AC_LIBOBJ invocations to module description.
8232         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8233         invocations from here...
8234         * modules/mkdtemp (configure.ac): ... to here.
8235
8236 2011-05-21  Bruno Haible  <bruno@clisp.org>
8237
8238         mkdir: Move AC_LIBOBJ invocations to module description.
8239         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8240         * modules/mkdir (configure.ac): ... to here.
8241
8242 2011-05-21  Bruno Haible  <bruno@clisp.org>
8243
8244         memset: Move AC_LIBOBJ invocations to module description.
8245         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8247         here...
8248         * modules/memset (configure.ac): ... to here.
8249
8250 2011-05-21  Bruno Haible  <bruno@clisp.org>
8251
8252         memrchr: Move AC_LIBOBJ invocations to module description.
8253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8255         here...
8256         * modules/memrchr (configure.ac): ... to here.
8257
8258 2011-05-21  Bruno Haible  <bruno@clisp.org>
8259
8260         mempcpy: Move AC_LIBOBJ invocations to module description.
8261         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8263         here...
8264         * modules/mempcpy (configure.ac): ... to here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         memmove: Move AC_LIBOBJ invocations to module description.
8269         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8271         here...
8272         * modules/memmove (configure.ac): ... to here.
8273
8274 2011-05-21  Bruno Haible  <bruno@clisp.org>
8275
8276         memmem*: Move AC_LIBOBJ invocations to module description.
8277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8278         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8279         here...
8280         (gl_FUNC_MEMMEM): ... and here...
8281         * modules/memmem-simple (configure.ac): ... to here.
8282         * modules/memmem (configure.ac): ... and here.
8283
8284 2011-05-21  Bruno Haible  <bruno@clisp.org>
8285
8286         memcpy: Move AC_LIBOBJ invocations to module description.
8287         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8289         here...
8290         * modules/memcpy (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         memcmp: Simplify autoconf macro.
8295         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8296         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8297         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8298
8299 2011-05-21  Bruno Haible  <bruno@clisp.org>
8300
8301         memcmp: Move AC_LIBOBJ invocations to module description.
8302         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8303         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8304         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8305         * modules/memcmp (configure.ac): ... to here.
8306         (Depends-on): Update conditions.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         memchr: Respect rules for use of AC_LIBOBJ.
8311         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8312         invocations from here...
8313         * modules/memchr (configure.ac): ... to here.
8314
8315 2011-05-21  Bruno Haible  <bruno@clisp.org>
8316
8317         mbtowc: Move AC_LIBOBJ invocations to module description.
8318         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8319         invocations from here...
8320         * modules/mbtowc (configure.ac): ... to here.
8321
8322 2011-05-21  Bruno Haible  <bruno@clisp.org>
8323
8324         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8325         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8326         gl_PREREQ_MBSRTOWCS invocations from here...
8327         * modules/mbsrtowcs (configure.ac): ... to here.
8328
8329 2011-05-21  Bruno Haible  <bruno@clisp.org>
8330
8331         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8332         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8333         gl_PREREQ_MBSNRTOWCS invocations from here...
8334         * modules/mbsnrtowcs (configure.ac): ... to here.
8335
8336 2011-05-21  Bruno Haible  <bruno@clisp.org>
8337
8338         mbsinit: Move AC_LIBOBJ invocations to module description.
8339         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8340         invocations from here...
8341         * modules/mbsinit (configure.ac): ... to here.
8342
8343 2011-05-21  Bruno Haible  <bruno@clisp.org>
8344
8345         mbrlen: Move AC_LIBOBJ invocations to module description.
8346         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8347         invocations from here...
8348         * modules/mbrlen (configure.ac): ... to here.
8349
8350 2011-05-21  Bruno Haible  <bruno@clisp.org>
8351
8352         mbrtowc: Respect rules for use of AC_LIBOBJ.
8353         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8354         invocations from here...
8355         * modules/mbrtowc (configure.ac): ... to here.
8356
8357 2011-05-21  Bruno Haible  <bruno@clisp.org>
8358
8359         malloc-*: Move AC_LIBOBJ invocations to module description.
8360         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8361         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8362         AC_LIBOBJ invocations from here...
8363         * modules/malloc-gnu (configure.ac): ... to here.
8364         * modules/malloc-posix (configure.ac): ... and here.
8365
8366 2011-05-21  Bruno Haible  <bruno@clisp.org>
8367
8368         lstat, openat: Respect rules for use of AC_LIBOBJ.
8369         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8370         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8371         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8372         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8373         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8374         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8375         here.
8376         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8377
8378 2011-05-21  Bruno Haible  <bruno@clisp.org>
8379
8380         lseek: Move AC_LIBOBJ invocations to module description.
8381         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8382         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8383         * modules/lseek (configure.ac): ... to here.
8384
8385 2011-05-21  Bruno Haible  <bruno@clisp.org>
8386
8387         linkat: Move AC_LIBOBJ invocations to module description.
8388         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8389         here...
8390         * modules/linkat (configure.ac): ... to here.
8391
8392 2011-05-21  Bruno Haible  <bruno@clisp.org>
8393
8394         link: Respect rules for use of AC_LIBOBJ.
8395         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8396         * modules/link (configure.ac): ... to here.
8397
8398 2011-05-21  Bruno Haible  <bruno@clisp.org>
8399
8400         lchown: Move AC_LIBOBJ invocations to module description.
8401         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8402         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8403         * modules/lchown (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         iswctype: Move AC_LIBOBJ invocations to module description.
8408         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8409         here...
8410         * modules/iswctype (configure.ac): ... to here.
8411
8412 2011-05-21  Bruno Haible  <bruno@clisp.org>
8413
8414         iswblank: Move AC_LIBOBJ invocations to module description.
8415         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8416         here...
8417         * modules/iswblank (configure.ac): ... to here.
8418
8419 2011-05-21  Bruno Haible  <bruno@clisp.org>
8420
8421         atanl: Move AC_LIBOBJ invocations to module description.
8422         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8423         * modules/atanl (configure.ac): ... to here.
8424
8425 2011-05-21  Bruno Haible  <bruno@clisp.org>
8426
8427         acosl: Move AC_LIBOBJ invocations to module description.
8428         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8429         * modules/acosl (configure.ac): ... to here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         asinl: Respect rules for use of AC_LIBOBJ.
8434         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8435         * modules/asinl (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         tanl: Move AC_LIBOBJ invocations to module description.
8440         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8441         * modules/tanl (configure.ac): ... to here.
8442
8443 2011-05-21  Bruno Haible  <bruno@clisp.org>
8444
8445         cosl: Move AC_LIBOBJ invocations to module description.
8446         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8447         * modules/cosl (configure.ac): ... to here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         sinl: Move AC_LIBOBJ invocations to module description.
8452         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8453         * modules/sinl (configure.ac): ... to here.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         logl: Move AC_LIBOBJ invocations to module description.
8458         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8459         * modules/logl (configure.ac): ... to here.
8460
8461 2011-05-21  Bruno Haible  <bruno@clisp.org>
8462
8463         expl: Move AC_LIBOBJ invocations to module description.
8464         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8465         * modules/expl (configure.ac): ... to here.
8466
8467 2011-05-21  Bruno Haible  <bruno@clisp.org>
8468
8469         roundl: Move AC_LIBOBJ invocations to module description.
8470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8471         * modules/roundl (configure.ac): ... to here.
8472
8473 2011-05-21  Bruno Haible  <bruno@clisp.org>
8474
8475         round: Move AC_LIBOBJ invocations to module description.
8476         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8477         * modules/round (configure.ac): ... to here.
8478
8479 2011-05-21  Bruno Haible  <bruno@clisp.org>
8480
8481         roundf: Move AC_LIBOBJ invocations to module description.
8482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8483         * modules/roundf (configure.ac): ... to here.
8484
8485 2011-05-21  Bruno Haible  <bruno@clisp.org>
8486
8487         truncl: Move AC_LIBOBJ invocations to module description.
8488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8489         * modules/truncl (configure.ac): ... to here.
8490
8491 2011-05-21  Bruno Haible  <bruno@clisp.org>
8492
8493         trunc: Move AC_LIBOBJ invocations to module description.
8494         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8495         * modules/trunc (configure.ac): ... to here.
8496
8497 2011-05-21  Bruno Haible  <bruno@clisp.org>
8498
8499         truncf: Move AC_LIBOBJ invocations to module description.
8500         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8501         * modules/truncf (configure.ac): ... to here.
8502
8503 2011-05-21  Bruno Haible  <bruno@clisp.org>
8504
8505         ceill: Move AC_LIBOBJ invocations to module description.
8506         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8507         * modules/ceill (configure.ac): ... to here.
8508
8509 2011-05-21  Bruno Haible  <bruno@clisp.org>
8510
8511         ceil: Move AC_LIBOBJ invocations to module description.
8512         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8513         * modules/ceil (configure.ac): ... to here.
8514
8515 2011-05-21  Bruno Haible  <bruno@clisp.org>
8516
8517         ceilf: Move AC_LIBOBJ invocations to module description.
8518         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8519         * modules/ceilf (configure.ac): ... to here.
8520
8521 2011-05-21  Bruno Haible  <bruno@clisp.org>
8522
8523         floorl: Respect rules for use of AC_LIBOBJ.
8524         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8525         * modules/floorl (configure.ac): ... to here.
8526
8527 2011-05-21  Bruno Haible  <bruno@clisp.org>
8528
8529         floor: Respect rules for use of AC_LIBOBJ.
8530         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8531         * modules/floor (configure.ac): ... to here.
8532
8533 2011-05-21  Bruno Haible  <bruno@clisp.org>
8534
8535         floorf: Move AC_LIBOBJ invocations to module description.
8536         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8537         * modules/floorf (configure.ac): ... to here.
8538
8539 2011-05-20  Bruno Haible  <bruno@clisp.org>
8540
8541         sqrtl: Respect rules for use of AC_LIBOBJ.
8542         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8543         * modules/sqrtl (configure.ac): ... to here.
8544
8545 2011-05-20  Bruno Haible  <bruno@clisp.org>
8546
8547         ldexpl: Respect rules for use of AC_LIBOBJ.
8548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8549         * modules/ldexpl (configure.ac): ... to here.
8550
8551 2011-05-20  Bruno Haible  <bruno@clisp.org>
8552
8553         frexpl*: Respect rules for use of AC_LIBOBJ.
8554         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8555         invocation from here...
8556         * modules/frexpl (configure.ac): ... to here.
8557         * modules/frexpl-nolibm (configure.ac): ... and here.
8558
8559 2011-05-20  Bruno Haible  <bruno@clisp.org>
8560
8561         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8562         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8563         invocation from here...
8564         * modules/frexp (configure.ac): ... to here.
8565         * modules/frexp-nolibm (configure.ac): ... and here.
8566
8567 2011-05-20  Bruno Haible  <bruno@clisp.org>
8568
8569         isnan: Respect rules for use of AC_LIBOBJ.
8570         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8571         invocations here.
8572         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8573         REPLACE_ISNAN.
8574         * modules/isnand (configure.ac): Likewise.
8575         * modules/isnanl (configure.ac): Likewise.
8576
8577 2011-05-20  Bruno Haible  <bruno@clisp.org>
8578
8579         isnanl*: Respect rules for use of AC_LIBOBJ.
8580         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8581         invocation from here...
8582         * modules/isnanl (configure.ac): ... to here.
8583         * modules/isnanl-nolibm (configure.ac): ... and here.
8584
8585 2011-05-20  Bruno Haible  <bruno@clisp.org>
8586
8587         isnand*: Move AC_LIBOBJ invocations to module description.
8588         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8589         invocation from here...
8590         * modules/isnand (configure.ac): ... to here.
8591         * modules/isnand-nolibm (configure.ac): ... and here.
8592
8593 2011-05-20  Bruno Haible  <bruno@clisp.org>
8594
8595         isnanf*: Move AC_LIBOBJ invocations to module description.
8596         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8597         invocation from here...
8598         * modules/isnanf (configure.ac): ... to here.
8599         * modules/isnanf-nolibm (configure.ac): ... and here.
8600
8601 2011-05-20  Bruno Haible  <bruno@clisp.org>
8602
8603         isnan*: Separate the AC_LIBOBJ invocations.
8604         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8605         AC_LIBOBJ invocation.
8606         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8607         here.
8608         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8609         AC_LIBOBJ invocation.
8610         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8611         here.
8612         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8613         AC_LIBOBJ invocation.
8614         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8615         here.
8616         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8617
8618 2011-05-08  Bruno Haible  <bruno@clisp.org>
8619
8620         isinf: Move AC_LIBOBJ invocations to module description.
8621         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8622         * modules/isinf (configure.ac): ... to here.
8623
8624 2011-05-08  Bruno Haible  <bruno@clisp.org>
8625
8626         isfinite: Move AC_LIBOBJ invocations to module description.
8627         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8628         * modules/isfinite (configure.ac): ... to here.
8629
8630 2011-05-08  Bruno Haible  <bruno@clisp.org>
8631
8632         isblank: Move AC_LIBOBJ invocations to module description.
8633         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8634         here...
8635         * modules/isblank (configure.ac): ... to here.
8636
8637 2011-05-08  Bruno Haible  <bruno@clisp.org>
8638
8639         isapipe: Move AC_LIBOBJ invocations to module description.
8640         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8641         gl_PREREQ_ISAPIPE invocations from here...
8642         * modules/isapipe (configure.ac): ... to here.
8643         (Depends-on): Update condition.
8644
8645 2011-05-08  Bruno Haible  <bruno@clisp.org>
8646
8647         ioctl: Move AC_LIBOBJ invocations to module description.
8648         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8649         invocations from here...
8650         * modules/ioctl (configure.ac): ... to here.
8651         (Depends-on): Update condition.
8652
8653 2011-05-08  Bruno Haible  <bruno@clisp.org>
8654
8655         imaxdiv: Move AC_LIBOBJ invocations to module description.
8656         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8657         invocations from here...
8658         * modules/imaxdiv (configure.ac): ... to here.
8659
8660 2011-05-08  Bruno Haible  <bruno@clisp.org>
8661
8662         imaxabs: Move AC_LIBOBJ invocations to module description.
8663         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8664         invocations from here...
8665         * modules/imaxabs (configure.ac): ... to here.
8666
8667 2011-05-08  Bruno Haible  <bruno@clisp.org>
8668
8669         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8671         AC_LIBOBJ invocations from here...
8672         * modules/getaddrinfo (configure.ac): ... to here.
8673         (Depends-on): Add conditions.
8674
8675 2011-05-08  Bruno Haible  <bruno@clisp.org>
8676
8677         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8678         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8679         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8680         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8681         (gl_PREREQ_INET_PTON): ... from here.
8682         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8683         gl_PREREQ_INET_PTON here.
8684         (Depends-on): Update condition.
8685
8686 2011-05-08  Bruno Haible  <bruno@clisp.org>
8687
8688         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8689         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8690         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8691         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8692         (gl_PREREQ_INET_NTOP): ... from here.
8693         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8694         gl_PREREQ_INET_NTOP here.
8695         (Depends-on): Update condition.
8696
8697 2011-05-08  Bruno Haible  <bruno@clisp.org>
8698
8699         iconv_open: Move AC_LIBOBJ invocations to module description.
8700         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8701         AC_LIBOBJ invocations from here...
8702         * modules/iconv_open (configure.ac): ... to here.
8703
8704 2011-05-08  Bruno Haible  <bruno@clisp.org>
8705
8706         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8707         If module 'iconv_open' is among the main modules and module
8708         'iconv_open-utf' is among the tests dependencies, then
8709         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8710         return the special iconv_t values. Therefore iconv() and iconv_close()
8711         must support these special iconv_t values, already in lib, not only in
8712         tests.
8713         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8715         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8716         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8717         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8718         (Depends-on): Add the dependencies of iconv_open-utf.
8719         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8720         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8721         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8722
8723 2011-05-08  Bruno Haible  <bruno@clisp.org>
8724
8725         group-member: Move AC_LIBOBJ invocations to module description.
8726         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8727         gl_PREREQ_GROUP_MEMBER invocations from here...
8728         * modules/group-member (configure.ac): ... to here.
8729
8730 2011-05-08  Bruno Haible  <bruno@clisp.org>
8731
8732         grantpt: Move AC_LIBOBJ invocations to module description.
8733         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8734         invocations from here...
8735         * modules/grantpt (configure.ac): ... to here.
8736
8737 2011-05-08  Bruno Haible  <bruno@clisp.org>
8738
8739         glob: Move AC_LIBOBJ invocations to module description.
8740         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8741         from here...
8742         * modules/glob (configure.ac): ... to here.
8743
8744 2011-05-08  Bruno Haible  <bruno@clisp.org>
8745
8746         getusershell: Move AC_LIBOBJ invocations to module description.
8747         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8748         Move AC_LIBOBJ invocation from here...
8749         * modules/getusershell (configure.ac): ... to here.
8750         (Depends-on): Update condition.
8751
8752 2011-05-08  Bruno Haible  <bruno@clisp.org>
8753
8754         gettimeofday: Move AC_LIBOBJ invocations to module description.
8755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8756         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8757         gl_PREREQ_GETTIMEOFDAY invocations from here...
8758         * modules/gettimeofday (configure.ac): ... to here.
8759
8760 2011-05-08  Bruno Haible  <bruno@clisp.org>
8761
8762         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8763         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8764         just gl_FUNC_TZSET.
8765         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8766         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8768         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8769
8770 2011-05-08  Bruno Haible  <bruno@clisp.org>
8771
8772         getsubopt: Move AC_LIBOBJ invocations to module description.
8773         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8774         gl_PREREQ_GETSUBOPT invocations from here...
8775         * modules/getsubopt (configure.ac): ... to here.
8776
8777 2011-05-08  Bruno Haible  <bruno@clisp.org>
8778
8779         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8780         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8781         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8782         * modules/getpass-gnu (configure.ac): ... to here.
8783
8784 2011-05-08  Bruno Haible  <bruno@clisp.org>
8785
8786         getpass: Move AC_LIBOBJ invocations to module description.
8787         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8788         gl_PREREQ_GETPASS invocations from here...
8789         * modules/getpass (configure.ac): ... to here.
8790
8791 2011-05-08  Bruno Haible  <bruno@clisp.org>
8792
8793         getpagesize: Move AC_LIBOBJ invocations to module description.
8794         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8795         from here...
8796         * modules/getpagesize (configure.ac): ... to here.
8797
8798 2011-05-08  Bruno Haible  <bruno@clisp.org>
8799
8800         getopt: Move AC_LIBOBJ invocations to module description.
8801         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8802         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8803         invocations from here...
8804         * modules/getopt-gnu (configure.ac): ... to here.
8805         * modules/getopt-posix (configure.ac): ... and here.
8806         (Depends-on): Update condition.
8807
8808 2011-05-08  Bruno Haible  <bruno@clisp.org>
8809
8810         getopt, argp: Respect rules for use of AC_LIBOBJ.
8811         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8812         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8813         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8814         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8815
8816 2011-05-08  Bruno Haible  <bruno@clisp.org>
8817
8818         getlogin_r: Move AC_LIBOBJ invocations to module description.
8819         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8820         gl_PREREQ_GETLOGIN_R invocations from here...
8821         * modules/getlogin_r (configure.ac): ... to here.
8822
8823 2011-05-08  Bruno Haible  <bruno@clisp.org>
8824
8825         getlogin: Move AC_LIBOBJ invocations to module description.
8826         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8827         here...
8828         * modules/getlogin (configure.ac): ... to here.
8829
8830 2011-05-08  Bruno Haible  <bruno@clisp.org>
8831
8832         getloadavg: Move AC_LIBOBJ invocations to module description.
8833         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8834         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8835         * modules/getloadavg (configure.ac): ... to here.
8836
8837 2011-05-08  Bruno Haible  <bruno@clisp.org>
8838
8839         gethrxtime: Move AC_LIBOBJ invocations to module description.
8840         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8841         LIB_GETHRXTIME from here...
8842         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8843         invocations from here...
8844         * modules/gethrxtime (configure.ac): ... to here.
8845
8846 2011-05-08  Bruno Haible  <bruno@clisp.org>
8847
8848         gethostname: Move AC_LIBOBJ invocations to module description.
8849         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8850         gl_PREREQ_GETHOSTNAME invocations from here...
8851         * modules/gethostname (configure.ac): ... to here.
8852
8853 2011-05-08  Bruno Haible  <bruno@clisp.org>
8854
8855         getgroups: Move AC_LIBOBJ invocations to module description.
8856         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8857         here...
8858         * modules/getgroups (configure.ac): ... to here.
8859
8860 2011-05-08  Bruno Haible  <bruno@clisp.org>
8861
8862         getdtablesize: Move AC_LIBOBJ invocations to module description.
8863         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8864         invocation from here...
8865         * modules/getdtablesize (configure.ac): ... to here.
8866
8867 2011-05-08  Bruno Haible  <bruno@clisp.org>
8868
8869         getdomainname: Move AC_LIBOBJ invocations to module description.
8870         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8871         gl_PREREQ_GETDOMAINNAME invocations from here...
8872         * modules/getdomainname (configure.ac): ... to here.
8873
8874 2011-05-08  Bruno Haible  <bruno@clisp.org>
8875
8876         getline: Move AC_LIBOBJ invocations to module description.
8877         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8878         invocations from here...
8879         * modules/getline (configure.ac): ... to here.
8880
8881 2011-05-08  Bruno Haible  <bruno@clisp.org>
8882
8883         getline: Simplify.
8884         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8885         It's already handled through the module dependency.
8886
8887 2011-05-08  Bruno Haible  <bruno@clisp.org>
8888
8889         getdelim: Move AC_LIBOBJ invocations to module description.
8890         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8891         and gl_PREREQ_GETDELIM invocations from here...
8892         * modules/getdelim (configure.ac): ... to here.
8893         (Depends-on): Fix condition.
8894
8895 2011-05-08  Bruno Haible  <bruno@clisp.org>
8896
8897         getcwd: Move AC_LIBOBJ invocations to module description.
8898         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8899         invocations from here...
8900         * modules/getcwd (configure.ac): ... to here.
8901
8902 2011-05-08  Bruno Haible  <bruno@clisp.org>
8903
8904         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8905         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8906         here...
8907         * modules/getcwd-lgpl (configure.ac): ... to here.
8908
8909 2011-05-07  Bruno Haible  <bruno@clisp.org>
8910
8911         crypto/gc: Move AC_LIBOBJ invocations to module description.
8912         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8913         * modules/crypto/gc (configure.ac): ... to here.
8914
8915 2011-05-07  Bruno Haible  <bruno@clisp.org>
8916
8917         fwriting: Move AC_LIBOBJ invocations to module description.
8918         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8919         here...
8920         * modules/fwriting (configure.ac): ... to here.
8921
8922 2011-05-07  Bruno Haible  <bruno@clisp.org>
8923
8924         fwritable: Move AC_LIBOBJ invocations to module description.
8925         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8926         here...
8927         * modules/fwritable (configure.ac): ... to here.
8928
8929 2011-05-07  Bruno Haible  <bruno@clisp.org>
8930
8931         futimens: Move AC_LIBOBJ invocations to module description.
8932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8933         here...
8934         * modules/futimens (configure.ac): ... to here.
8935
8936 2011-05-07  Bruno Haible  <bruno@clisp.org>
8937
8938         ftruncate: Move AC_LIBOBJ invocations to module description.
8939         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8940         gl_PREREQ_FTRUNCATE invocations from here...
8941         * modules/ftruncate (configure.ac): ... to here.
8942
8943 2011-05-07  Bruno Haible  <bruno@clisp.org>
8944
8945         fsync: Move AC_LIBOBJ invocations to module description.
8946         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8947         invocations from here...
8948         * modules/fsync (configure.ac): ... to here.
8949
8950 2011-05-07  Bruno Haible  <bruno@clisp.org>
8951
8952         fsusage: Move AC_LIBOBJ invocations to module description.
8953         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8954         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8955         * modules/fsusage (configure.ac): ... to here.
8956
8957 2011-05-07  Bruno Haible  <bruno@clisp.org>
8958
8959         freopen: Move AC_LIBOBJ invocations to module description.
8960         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8961         invocations from here...
8962         * modules/freopen (configure.ac): ... to here.
8963
8964 2011-05-07  Bruno Haible  <bruno@clisp.org>
8965
8966         free: Move AC_LIBOBJ invocations to module description.
8967         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8968         invocations from here...
8969         * modules/free (configure.ac): ... to here.
8970
8971 2011-05-07  Bruno Haible  <bruno@clisp.org>
8972
8973         freadable: Move AC_LIBOBJ invocations to module description.
8974         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8975         here...
8976         * modules/freadable (configure.ac): ... to here.
8977
8978 2011-05-07  Bruno Haible  <bruno@clisp.org>
8979
8980         fpurge: Move AC_LIBOBJ invocations to module description.
8981         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8982         invocations from here...
8983         * modules/fpurge (configure.ac): ... to here.
8984
8985 2011-05-07  Bruno Haible  <bruno@clisp.org>
8986
8987         fpending: Move AC_LIBOBJ invocations to module description.
8988         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8989         gl_FUNC_FPENDING.
8990         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8991         invocations from here...
8992         * modules/fpending (configure.ac): ... to here.
8993
8994 2011-05-07  Bruno Haible  <bruno@clisp.org>
8995
8996         fopen: Move AC_LIBOBJ invocations to module description.
8997         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8998         invocations from here...
8999         * modules/fopen (configure.ac): ... to here.
9000
9001 2011-05-07  Bruno Haible  <bruno@clisp.org>
9002
9003         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9004         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9005         gl_FUNC_FNMATCH_POSIX.
9006         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9007         invocations from here...
9008         * modules/fnmatch (configure.ac): ... to here.
9009         * modules/fnmatch-gnu (configure.ac): ... and here.
9010
9011 2011-05-07  Bruno Haible  <bruno@clisp.org>
9012
9013         flock: Move AC_LIBOBJ invocations to module description.
9014         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9015         invocations from here...
9016         * modules/flock (configure.ac): ... to here.
9017
9018 2011-05-07  Bruno Haible  <bruno@clisp.org>
9019
9020         fileblocks: Move AC_LIBOBJ invocations to module description.
9021         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9022         gl_PREREQ_FILEBLOCKS invocations from here...
9023         * modules/fileblocks (configure.ac): ... to here.
9024
9025 2011-05-06  Bruno Haible  <bruno@clisp.org>
9026
9027         fflush: Move AC_LIBOBJ invocations to module description.
9028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9029         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9030         invocations from here...
9031         * modules/fflush (configure.ac): ... to here.
9032
9033 2011-05-06  Bruno Haible  <bruno@clisp.org>
9034
9035         fdopendir: Move AC_LIBOBJ invocations to module description.
9036         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9037         here...
9038         * modules/fdopendir (configure.ac): ... to here.
9039         (Depends-on): Improve conditions.
9040
9041 2011-05-06  Bruno Haible  <bruno@clisp.org>
9042
9043         _Exit: Move AC_LIBOBJ invocations to module description.
9044         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9045         invocations from here...
9046         * modules/_Exit (configure.ac): ... to here.
9047
9048 2011-05-21  Bruno Haible  <bruno@clisp.org>
9049
9050         euidaccess: Respect rules for use of AC_LIBOBJ.
9051         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9053         from here...
9054         * modules/euidaccess (configure.ac): ... to here.
9055
9056 2011-05-06  Bruno Haible  <bruno@clisp.org>
9057
9058         error: Move AC_LIBOBJ invocations to module description.
9059         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9060         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9061         invocations from here...
9062         * modules/error (configure.ac): ... to here.
9063
9064 2011-05-06  Bruno Haible  <bruno@clisp.org>
9065
9066         duplocale: Move AC_LIBOBJ invocations to module description.
9067         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9068         gl_PREREQ_DUPLOCALE invocations from here...
9069         * modules/duplocale (configure.ac): ... to here.
9070
9071 2011-05-05  Bruno Haible  <bruno@clisp.org>
9072
9073         dirfd: Move AC_LIBOBJ invocations to module description.
9074         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9075         gl_FUNC_DIRFD.
9076         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9077         here...
9078         * modules/dirfd (configure.ac): ... to here.
9079         (Depends-on): Fix condition.
9080
9081 2011-05-05  Bruno Haible  <bruno@clisp.org>
9082
9083         chown: Respect rules for use of AC_LIBOBJ.
9084         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9085         * modules/chown (configure.ac): ... to here.
9086
9087 2011-05-05  Bruno Haible  <bruno@clisp.org>
9088
9089         chdir-long: Move AC_LIBOBJ invocations to module description.
9090         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9091         gl_PREREQ_CHDIR_LONG invocations from here...
9092         * modules/chdir-long (configure.ac): ... to here.
9093
9094 2011-05-05  Bruno Haible  <bruno@clisp.org>
9095
9096         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9097         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9098         from here...
9099         * modules/canonicalize-lgpl (configure.ac): ... to here.
9100
9101 2011-05-05  Bruno Haible  <bruno@clisp.org>
9102
9103         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9104         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9105         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9106         REPLACE_CALLOC.
9107         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9108         * modules/calloc-gnu (configure.ac): Likewise.
9109
9110 2011-05-05  Bruno Haible  <bruno@clisp.org>
9111
9112         btowc: Move AC_LIBOBJ invocations to module description.
9113         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9114         invocations from here...
9115         * modules/btowc (configure.ac): ... to here.
9116
9117 2011-05-21  Bruno Haible  <bruno@clisp.org>
9118
9119         atexit: Move AC_LIBOBJ invocations to module description.
9120         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9122         here...
9123         * modules/atexit (configure.ac): ... to here.
9124
9125 2011-05-05  Bruno Haible  <bruno@clisp.org>
9126
9127         atoll: Move AC_LIBOBJ invocations to module description.
9128         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9129         invocations from here...
9130         * modules/atoll (configure.ac): ... to here.
9131
9132 2011-05-05  Bruno Haible  <bruno@clisp.org>
9133
9134         argz: Move AC_LIBOBJ invocations to module description.
9135         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9136         * modules/argz (configure.ac): ... to here.
9137
9138 2011-05-05  Bruno Haible  <bruno@clisp.org>
9139
9140         alphasort: Move AC_LIBOBJ invocations to module description.
9141         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9142         gl_PREREQ_ALPHASORT invocations from here...
9143         * modules/alphasort (configure.ac): ... to here.
9144
9145 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9146
9147         verify: new macro verify_expr; verify_true deprecated
9148         * NEWS: Mention this.
9149         * doc/verify.texi (Compile-time Assertions): Document this.
9150         * lib/verify.h (verify_true): Deprecate.
9151         (verify_expr): New macro.
9152         * tests/test-verify.c (function): Test verify_expr.
9153
9154 2011-06-14  Jim Meyering  <meyering@redhat.com>
9155
9156         init.sh: give more portable redirection-related advice in a comment
9157         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9158         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9159         for lots of discussion.  Stefano Lattarini suggested the solution
9160         of putting "9>&2" after the command.  Reported by Bruno Haible.
9161
9162 2011-06-13  Bruno Haible  <bruno@clisp.org>
9163
9164         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9166         'none'.
9167
9168 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9169
9170         ftoastr: use strtof only if HAVE_STRTOF
9171         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9173         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9174         * modules/ftoastr (configure.ac): Check for strtof.
9175
9176 2011-06-13  Bruno Haible  <bruno@clisp.org>
9177
9178         gnulib-tool: Addendum to 2011-06-08 commit.
9179         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9180         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9181
9182 2011-06-13  Bruno Haible  <bruno@clisp.org>
9183
9184         fseeko: Provide a non-inline replacement of fseek().
9185         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9186         * modules/fseeko (Depends-on): Add fseek.
9187         * modules/fseek (License): Change to LGPLv2+.
9188
9189 2011-06-13  Bruno Haible  <bruno@clisp.org>
9190
9191         ftello: Provide a non-inline replacement of ftell().
9192         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9193         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9194         not have ftello() (such as on mingw).
9195         * modules/ftello (Depends-on): Add ftell.
9196         * modules/ftell (License): Change to LGPLv2+.
9197
9198 2011-05-07  Bruno Haible  <bruno@clisp.org>
9199
9200         ftell: Move AC_LIBOBJ invocations to module description.
9201         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9202         * modules/ftell (configure.ac): ... to here.
9203
9204 2011-05-07  Bruno Haible  <bruno@clisp.org>
9205
9206         ftello: Respect rules for use of AC_LIBOBJ.
9207         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9208         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9209         here...
9210         * modules/ftello (configure.ac): ... to here.
9211
9212 2011-05-07  Bruno Haible  <bruno@clisp.org>
9213
9214         fseeko: Simplify.
9215         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9216         (gl_FUNC_FSEEKO): Inline it here.
9217
9218 2011-05-07  Bruno Haible  <bruno@clisp.org>
9219
9220         fseek: Move AC_LIBOBJ invocations to module description.
9221         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9222         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9223         * modules/fseek (configure.ac): ... to here.
9224
9225 2011-05-07  Bruno Haible  <bruno@clisp.org>
9226
9227         fseek: Respect rules for use of AC_LIBOBJ.
9228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9229         here...
9230         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9231
9232 2011-05-07  Bruno Haible  <bruno@clisp.org>
9233
9234         fseeko: Respect rules for use of AC_LIBOBJ.
9235         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9236         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9237         here...
9238         * modules/fseeko (configure.ac): ... to here.
9239
9240 2011-06-13  Bruno Haible  <bruno@clisp.org>
9241
9242         gnulib-tool: Allow comments in the 'Depends-on' section.
9243         * doc/gnulib.texi (Module description): Mention comment syntax in the
9244         Depends-on section.
9245         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9246
9247 2011-06-13  Bruno Haible  <bruno@clisp.org>
9248
9249         file-set.h: guard __attibute__ use, now that it's not always defined
9250         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9251         versions that support it.  This fixes a coreutils build failure with
9252         the vendor cc on HP-UX 11.31.
9253
9254 2011-06-12  Bruno Haible  <bruno@clisp.org>
9255
9256         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9257         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9258         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9259         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9260         (acl, aclsort): New declarations.
9261         (aclv_nontrivial): New declaration.
9262         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9263         (file_has_acl): Read also the second kind of HP-UX ACLs.
9264         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9265         kind of HP-UX ACLs if the first kind fails.
9266         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9267         second kind of HP-UX ACLs.
9268         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9269         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9270         agree.
9271         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9272         hpuxjfs.
9273         Handle hpuxjfs.
9274         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9275         hpuxjfs.
9276         Handle hpuxjfs.
9277         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9278         (func_test_same_acls): Use both lsacl and getacl.
9279         Handle hpuxjfs.
9280         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9281         (func_test_same_acls): Use both lsacl and getacl.
9282         Handle hpuxjfs.
9283
9284 2011-06-12  Bruno Haible  <bruno@clisp.org>
9285
9286         acl: Complete the 2010-08-10 fix.
9287         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9288         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9289         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9290         explicitly.
9291         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9292         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9293
9294 2011-06-12  Bruno Haible  <bruno@clisp.org>
9295
9296         spawn-pipe tests: Comments.
9297         * tests/test-spawn-pipe-child.c (main): Update comment.
9298         Reported by James Youngman <jay@gnu.org>.
9299
9300 2011-06-11  James Youngman  <jay@gnu.org>
9301
9302         New module 'stat-size'.
9303         * modules/stat-size: New module.  Provides macros for accessing
9304         file size information in instances of struct stat.  Depends on the
9305         fileblocks module because it calls st_blocks.
9306         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9307         * doc/gnulib.texi: Include stat-size.texi.
9308         * doc/stat-size.texi: Documentation for this module.
9309         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9310         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9311         AC_STRUCT_ST_BLOCKS.
9312
9313 2011-06-09  Bruno Haible  <bruno@clisp.org>
9314
9315         thread: Support pthreads-win32.
9316         * lib/glthread/thread.h (gl_thread_self): Define differently on
9317         pthreads-win32.
9318         (gl_null_thread): New declaration.
9319         (gl_thread_self_pointer): New macro.
9320         * lib/glthread/thread.c (gl_null_thread): New constant.
9321         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9322         gl_thread_self.
9323         * tests/test-tls.c: Likewise.
9324         Suggested by Paul Eggert. Reported by Eric Blake.
9325
9326 2011-06-09  Bruno Haible  <bruno@clisp.org>
9327
9328         thread: Fix confusion between NULL and 0.
9329         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9330         Reported by Paul Eggert.
9331
9332 2011-06-09  Bruno Haible  <bruno@clisp.org>
9333
9334         spawn-pipe tests: Avoid test failure on HP-UX 11.
9335         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9336         is closed.
9337
9338 2011-06-09  Bruno Haible  <bruno@clisp.org>
9339
9340         acl tests: Fix compilation error on HP-UX 11.
9341         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9342
9343 2011-06-09  Bruno Haible  <bruno@clisp.org>
9344
9345         rmdir: Avoid test failure on HP-UX 10.20.
9346         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9347         EEXIST.
9348
9349 2011-06-08  Eric Blake  <eblake@redhat.com>
9350
9351         perror: fix test on mingw
9352         * modules/perror-tests (Depends-on): Add dup2.
9353
9354         strerror_r-posix: fix on MacOS
9355         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9357         logic bug.
9358         * lib/strerror_r.c (strerror_r): Fix the bug.
9359         * lib/strerror.c (strerror): Likewise.
9360         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9361         problem.
9362         * doc/posix-functions/strerror.texi (strerror): Likewise.
9363         * doc/posix-functions/perror.texi (perror): Likewise.
9364         * tests/test-strerror.c (main): Enhance test.
9365         * tests/test-strerror_r.c (main): Likewise.
9366
9367 2011-06-08  Bruno Haible  <bruno@clisp.org>
9368
9369         gnulib-tool: Better isolation between different gnulib-tool invocations.
9370         * gnulib-tool: New option --witness-c-macro.
9371         (witness_c_macro): New variable.
9372         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9373         AM_CPPFLAGS define it as a C macro.
9374         (func_emit_tests_Makefile_am): Likewise.
9375         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9376         read it from there.
9377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9378         m4_define, not AC_DEFUN.
9379         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9380         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9381         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9382         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9383         s|...|...|, to substitute the values of the GNULIB_* module indicator
9384         variables.
9385         * modules/dirent (Makefile.am): Likewise.
9386         * modules/fcntl-h (Makefile.am): Likewise.
9387         * modules/iconv-h (Makefile.am): Likewise.
9388         * modules/langinfo (Makefile.am): Likewise.
9389         * modules/locale (Makefile.am): Likewise.
9390         * modules/math (Makefile.am): Likewise.
9391         * modules/netdb (Makefile.am): Likewise.
9392         * modules/poll-h (Makefile.am): Likewise.
9393         * modules/pty (Makefile.am): Likewise.
9394         * modules/search (Makefile.am): Likewise.
9395         * modules/signal (Makefile.am): Likewise.
9396         * modules/spawn (Makefile.am): Likewise.
9397         * modules/stdio (Makefile.am): Likewise.
9398         * modules/stdlib (Makefile.am): Likewise.
9399         * modules/string (Makefile.am): Likewise.
9400         * modules/sys_ioctl (Makefile.am): Likewise.
9401         * modules/sys_select (Makefile.am): Likewise.
9402         * modules/sys_socket (Makefile.am): Likewise.
9403         * modules/sys_stat (Makefile.am): Likewise.
9404         * modules/sys_times (Makefile.am): Likewise.
9405         * modules/sys_utsname (Makefile.am): Likewise.
9406         * modules/sys_wait (Makefile.am): Likewise.
9407         * modules/termios (Makefile.am): Likewise.
9408         * modules/time (Makefile.am): Likewise.
9409         * modules/unistd (Makefile.am): Likewise.
9410         * modules/wchar (Makefile.am): Likewise.
9411
9412 2011-06-08  Eric Blake  <eblake@redhat.com>
9413
9414         strerror: simplify replacement
9415         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9416         * modules/strerror (configure.ac): No prereqs needed here...
9417         * modules/strerror-override (configure.ac): ...but this needs it.
9418         (Files): Add file for needed prereq macro.
9419
9420 2011-06-08  Bruno Haible  <bruno@clisp.org>
9421
9422         strerror_r-posix: Tweaks.
9423         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9424         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9425         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9426         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9427         (gl_FUNC_STRERROR_R): ... to here.
9428         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9429
9430 2011-06-07  Eric Blake  <eblake@redhat.com>
9431
9432         perror: document fixed bugs
9433         * doc/posix-functions/perror.texi (perror): Document recent
9434         patches.
9435
9436 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9437
9438         stat-time: get_stat_birthtime failure is better-defined
9439         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9440         return a timestamp whose tv_sec and tv_nsec values are both -1.
9441         Previously, the spec said only that the tv_nsec value was negative.
9442         This upward-compatible change simplifies GNU tar a bit.
9443
9444 2011-06-07  Eric Blake  <eblake@redhat.com>
9445
9446         strerror_r-posix: work around cygwin 1.7.9
9447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9448         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9449         bug without replacing strerror_r.
9450         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9451         strerror_r is buggy, but without requiring strerror_r compilation.
9452         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9453
9454         test-perror: relax test to ignore cygwin bug
9455         * tests/test-perror2.c (main): Relax test on requiring detection
9456         of stream errors, and use unbuffered stream.
9457         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9458         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9459         * doc/posix-functions/fputc.texi (fputc): Likewise.
9460         * doc/posix-functions/fputs.texi (fputs): Likewise.
9461         * doc/posix-functions/fputws.texi (fputws): Likewise.
9462         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9463         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9464         * doc/posix-functions/getopt.texi (getopt): Likewise.
9465         * doc/posix-functions/perror.texi (perror): Likewise.
9466         * doc/posix-functions/printf.texi (printf): Likewise.
9467         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9468         * doc/posix-functions/psignal.texi (psignal): Likewise.
9469         * doc/posix-functions/putc.texi (putc): Likewise.
9470         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9471         Likewise.
9472         * doc/posix-functions/putchar.texi (putchar): Likewise.
9473         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9474         Likewise.
9475         * doc/posix-functions/puts.texi (puts): Likewise.
9476         * doc/posix-functions/putwc.texi (putwc): Likewise.
9477         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9478         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9479         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9480         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9481         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9482         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9483         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9484         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9485
9486 2011-05-22  Bruno Haible  <bruno@clisp.org>
9487
9488         strerror: Move AC_LIBOBJ invocations to module description.
9489         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9490         gl_PREREQ_STRERROR invocations from here...
9491         * modules/strerror (configure.ac): ... to here.
9492
9493 2011-05-21  Bruno Haible  <bruno@clisp.org>
9494
9495         perror: Use common idiom.
9496         * modules/perror (configure.ac): Reorder statements.
9497
9498 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9499
9500         tests: fix usage message in 'mktempd_'
9501         * tests/init.sh (mktempd_): In the usage message, use literal
9502         'mktempd_', not '$ME' (which is even undefined), as the name of
9503         the subroutine.
9504
9505 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9506
9507         tests init: new function 'fatal_', for hard errors
9508         Before this patch, the only way offered by tests/init.sh to
9509         properly signal a hard error was the `framework_failure_'
9510         function.  But the error message issued by that function,
9511         as its name would suggest, refers to a set-up failure in the
9512         testsuite, while hard errors can obviously also be due to
9513         other reasons.  The best way to fix this inconsistency is to
9514         introduce a new function with a more general error message.
9515         * tests/init.sh (fatal_): New function.
9516
9517 2011-06-06  Eric Blake  <eblake@redhat.com>
9518
9519         canonicalize-lgpl: use common idiom
9520         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9521         over newer POSIX -Rf.
9522         Reported by Bruno Haible.
9523
9524         canonicalize-lgpl: work around AIX realpath bug
9525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9526         * doc/posix-functions/realpath.texi (realpath): Document it.
9527         Reported by Bruno Haible.
9528
9529         strerror: work around FreeBSD bug
9530         * lib/strerror.c (strerror): Special case 0.
9531         Reported by Bruno Haible.
9532
9533         strerror-override: avoid bloating errno module
9534         * modules/errno (Files, configure.ac): Move replacement strings...
9535         * modules/strerror-override: ...to new module.
9536         * modules/strerror (Depends-on): Add strerror-override.
9537         * modules/strerror_r-posix (Depends-on): Likewise.
9538         * MODULES.html.sh: Document new module.
9539         Reported by Bruno Haible.
9540
9541 2011-06-06  Bruno Haible  <bruno@clisp.org>
9542
9543         spawn-pipe tests: Rename program.
9544         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9545         * tests/test-spawn-pipe-child.c: Update comment.
9546         * tests/test-spawn-pipe.sh: Update.
9547         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9548
9549         spawn-pipe tests: Link the child program only against libc.
9550         * tests/test-spawn-pipe-child.c: New file, extracted from
9551         tests/test-spawn-pipe.c.
9552         (main): Expect only one argument.
9553         (is_open): New function, copied from tests/test-pipe.c.
9554         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9555         (child_main): Remove function.
9556         (test_pipe): Pass only one argument to the child program.
9557         (main): Remove child process code. Expect the child program's name as
9558         first argument.
9559         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9560         argument.
9561         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9562         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9563         test-spawn-pipe-child against no libraries.
9564
9565 2011-06-06  Bruno Haible  <bruno@clisp.org>
9566
9567         careadlinkat: Avoid mismatch between ssize_t and int.
9568         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9569         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9570
9571 2011-06-06  Jim Meyering  <meyering@redhat.com>
9572
9573         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9574         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9575         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9576
9577 2011-06-05  Bruno Haible  <bruno@clisp.org>
9578
9579         ansi-c++-opt: Interoperability with libtool.
9580         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9581         set the variable to "no", not to ":".
9582         * NEWS: Mention the change.
9583
9584 2011-06-05  Bruno Haible  <bruno@clisp.org>
9585
9586         acl: Fix test failure on AIX 7.
9587         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9588         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9589
9590 2011-06-05  Bruno Haible  <bruno@clisp.org>
9591
9592         pipe-filter-ii: Fix test failure on AIX and IRIX.
9593         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9594         with EAGAIN, retry with a smaller buffer size.
9595
9596 2011-06-05  Bruno Haible  <bruno@clisp.org>
9597
9598         localename: Fix link dependencies.
9599         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9600         * modules/localename-tests (Makefile.am): Link test-localename with
9601         $(LIBTHREAD).
9602
9603 2011-06-05  Bruno Haible  <bruno@clisp.org>
9604
9605         error: Avoid gcc warning.
9606         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9607
9608 2011-06-05  Bruno Haible  <bruno@clisp.org>
9609
9610         unsetenv: Avoid gcc warning.
9611         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9612
9613 2011-06-05  Bruno Haible  <bruno@clisp.org>
9614
9615         setenv: Avoid gcc warning.
9616         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9617
9618 2011-06-05  Bruno Haible  <bruno@clisp.org>
9619
9620         sys_select: Ensure memset is declared also on AIX 7.
9621         * lib/sys_select.in.h: Include <string.h> also on AIX.
9622         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9623         self-contained also on AIX 7.1.
9624
9625 2011-06-04  Jim Meyering  <meyering@redhat.com>
9626
9627         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9628         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9629         function name, "error".
9630         (_gl_translatable_diag_func_re): New configurable variable.
9631
9632 2011-06-04  Bruno Haible  <bruno@clisp.org>
9633
9634         getopt: Avoid gcc warning.
9635         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9636
9637 2011-06-04  Bruno Haible  <bruno@clisp.org>
9638
9639         strerror_r: Fix comments.
9640         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9641         commit.
9642
9643 2011-06-04  Bruno Haible  <bruno@clisp.org>
9644
9645         perror: Fix compilation error.
9646         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9647         Undefine fprintf, not sprintf.
9648         * modules/perror (Depends-on): Remove intprops, verify.
9649
9650 2011-06-04  Bruno Haible  <bruno@clisp.org>
9651
9652         setlocale: Enable replacement on Cygwin 1.5.
9653         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9654         Cygwin 1.5.x.
9655         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9656         LC_CTYPE category also exists on Cygwin 1.5.x.
9657
9658 2011-06-04  Bruno Haible  <bruno@clisp.org>
9659
9660         strerror-override: Don't disable symbol renamings.
9661         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9662         * lib/strerror-override.c: Include config.h.
9663         (strerror_override): Don't undefine.
9664
9665 2011-06-03  Bruno Haible  <bruno@clisp.org>
9666
9667         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9668         * lib/localename.h: Update copyright header.
9669         * lib/localename.c: Likewise.
9670         * lib/relocatable.h: Likewise.
9671         * lib/relocatable.c: Likewise.
9672
9673 2011-06-02  Bruno Haible  <bruno@clisp.org>
9674
9675         doc: Fix a module name.
9676         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9677
9678 2011-06-02  Bruno Haible  <bruno@clisp.org>
9679
9680         pipe2: Remove dependency on 'nonblocking' module.
9681         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9682         O_NONBLOCK is defined by gnulib.
9683         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9684         is zero.
9685         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9686         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9687         defined by gnulib.
9688         (get_nonblocking_flag): New function.
9689         (main): Test O_NONBLOCK flag only if it is nonzero.
9690         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9691
9692 2011-06-03  Jim Meyering  <meyering@redhat.com>
9693
9694         maint: three new prohibit-header-without-use rules
9695         Prohibit use of cloexec.h, posixver.h, same.h without use.
9696         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9697         (sc_prohibit_posixver_without_use): Likewise.
9698         (sc_prohibit_same_without_use): Likewise.
9699
9700 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9701
9702         allocator: 'die' routine is now given requested size
9703         * lib/allocator.h (struct allocator.die): New size arg.
9704         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9705         If the actual problem is an ssize_t limitation, not a size_t or
9706         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9707
9708 2011-06-01  Eric Blake  <eblake@redhat.com>
9709
9710         strerror: drop strerror_r dependency
9711         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9712         * lib/strerror-override.c (strerror_override): ...to new file.
9713         * lib/strerror-override.h: Add prototype.
9714         * lib/strerror-impl.h: Delete.
9715         * lib/strerror.c (strerror): New implementation.
9716         * modules/errno (Files): Add new files.
9717         (configure.ac): Compile new file as appropriate.
9718         * modules/strerror (Files): Drop unused file.
9719         (Depends-on): Drop strerror_r-posix.
9720         * MODULES.html.sh: Document strerror_r-posix.
9721         Requested by Sam Steingold.
9722
9723         perror: call strerror_r directly
9724         * modules/perror (Files): Drop strerror-impl.h.
9725         * lib/perror.c (perror): Use our own stack buffer, rather than
9726         calling a wrapper that uses static storage.
9727         * doc/posix-functions/perror.texi (perror): Document a limitation
9728         of our replacement.
9729
9730         strerror_r: fix includes for FreeBSD
9731         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9732         since we use abort on some platforms.
9733         Reported by Matthias Bolte.
9734
9735 2011-05-31  Bruno Haible  <bruno@clisp.org>
9736
9737         Fix link errors in tests: openat-die uses gettext-h.
9738         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9739         against $(LIBINTL).
9740         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9741         against $(LIBINTL).
9742         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9743         $(LIBINTL).
9744         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9745         against $(LIBINTL).
9746         * modules/linkat-tests (Makefile.am): Link test-linkat against
9747         $(LIBINTL).
9748         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9749         $(LIBINTL).
9750         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9751         against $(LIBINTL).
9752         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9753         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9754         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9755         $(LIBINTL).
9756         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9757         $(LIBINTL).
9758         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9759         $(LIBINTL).
9760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9761
9762 2011-05-31  Bruno Haible  <bruno@clisp.org>
9763
9764         Fix link errors in tests: wait-process uses gettext-h.
9765         * modules/nonblocking-pipe-tests (Makefile.am): Set
9766         test_nonblocking_pipe_main_LDADD.
9767         * modules/nonblocking-socket-tests (Makefile.am): Link
9768         test-nonblocking-socket-main against $(LIBINTL).
9769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9770
9771 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9772
9773         assert-h: work around 'verify' incompatibility
9774         * lib/verify.h: Use @...@ directives, not ifdef.
9775         * modules/assert-h (assert.h): Implement the directives.
9776         (assert.h): Substitute the symbol-prefix more consistently.
9777
9778 2011-05-29  Jim Meyering  <meyering@redhat.com>
9779
9780         trim: remove three superfluous assignments
9781         * lib/trim.c (trim2): Remove three superfluous assignments
9782         and correct brace positioning.
9783
9784 2011-05-29  Bruno Haible  <bruno@clisp.org>
9785
9786         wctype-h: Avoid namespace pollution on Solaris 2.6.
9787         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9788         identifiers.
9789         * doc/posix-headers/wctype.texi: Mention the problem.
9790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9791
9792 2011-05-28  Jim Meyering  <meyering@redhat.com>
9793
9794         parse-datetime.y: accommodate -Wstrict-overflow
9795         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9796         placate -Wstrict-overflow.
9797
9798         trim: avoid a warning from -O2 -Wstrict-overflow
9799         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9800
9801 2011-05-29  Bruno Haible  <bruno@clisp.org>
9802
9803         gnulib-tool: Fix bug in yesterday's commit.
9804         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9805         twice.
9806
9807 2011-05-29  Bruno Haible  <bruno@clisp.org>
9808
9809         Allow multiple gnulib generated include files to be combined.
9810         * gnulib-tool (func_compute_include_guard_prefix): New function.
9811         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9812         ${gl_include_guard_prefix} references.
9813         (func_import, func_create_testdir): Invoke
9814         func_compute_include_guard_prefix.
9815         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9816         * lib/ctype.in.h: Likewise.
9817         * lib/dirent.in.h: Likewise.
9818         * lib/errno.in.h: Likewise.
9819         * lib/fcntl.in.h: Likewise.
9820         * lib/float.in.h: Likewise.
9821         * lib/getopt.in.h: Likewise.
9822         * lib/iconv.in.h: Likewise.
9823         * lib/langinfo.in.h: Likewise.
9824         * lib/locale.in.h: Likewise.
9825         * lib/math.in.h: Likewise.
9826         * lib/netdb.in.h: Likewise.
9827         * lib/netinet_in.in.h: Likewise.
9828         * lib/poll.in.h: Likewise.
9829         * lib/pthread.in.h: Likewise.
9830         * lib/pty.in.h: Likewise.
9831         * lib/sched.in.h: Likewise.
9832         * lib/se-selinux.in.h: Likewise.
9833         * lib/search.in.h: Likewise.
9834         * lib/signal.in.h: Likewise.
9835         * lib/spawn.in.h: Likewise.
9836         * lib/stdarg.in.h: Likewise.
9837         * lib/stddef.in.h: Likewise.
9838         * lib/stdint.in.h: Likewise.
9839         * lib/stdio.in.h: Likewise.
9840         * lib/stdlib.in.h: Likewise.
9841         * lib/string.in.h: Likewise.
9842         * lib/strings.in.h: Likewise.
9843         * lib/sys_file.in.h: Likewise.
9844         * lib/sys_ioctl.in.h: Likewise.
9845         * lib/sys_select.in.h: Likewise.
9846         * lib/sys_socket.in.h: Likewise.
9847         * lib/sys_stat.in.h: Likewise.
9848         * lib/sys_time.in.h: Likewise.
9849         * lib/sys_times.in.h: Likewise.
9850         * lib/sys_uio.in.h: Likewise.
9851         * lib/sys_utsname.in.h: Likewise.
9852         * lib/sys_wait.in.h: Likewise.
9853         * lib/sysexits.in.h: Likewise.
9854         * lib/termios.in.h: Likewise.
9855         * lib/time.in.h: Likewise.
9856         * lib/unistd.in.h: Likewise.
9857         * lib/wchar.in.h: Likewise.
9858         * lib/wctype.in.h: Likewise.
9859         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9860         * modules/ctype (Makefile.am): Likewise.
9861         * modules/dirent (Makefile.am): Likewise.
9862         * modules/errno (Makefile.am): Likewise.
9863         * modules/fcntl-h (Makefile.am): Likewise.
9864         * modules/float (Makefile.am): Likewise.
9865         * modules/getopt-posix (Makefile.am): Likewise.
9866         * modules/iconv-h (Makefile.am): Likewise.
9867         * modules/langinfo (Makefile.am): Likewise.
9868         * modules/locale (Makefile.am): Likewise.
9869         * modules/math (Makefile.am): Likewise.
9870         * modules/netdb (Makefile.am): Likewise.
9871         * modules/netinet_in (Makefile.am): Likewise.
9872         * modules/poll-h (Makefile.am): Likewise.
9873         * modules/pthread (Makefile.am): Likewise.
9874         * modules/pty (Makefile.am): Likewise.
9875         * modules/sched (Makefile.am): Likewise.
9876         * modules/search (Makefile.am): Likewise.
9877         * modules/selinux-h (Makefile.am): Likewise.
9878         * modules/signal (Makefile.am): Likewise.
9879         * modules/spawn (Makefile.am): Likewise.
9880         * modules/stdarg (Makefile.am): Likewise.
9881         * modules/stddef (Makefile.am): Likewise.
9882         * modules/stdint (Makefile.am): Likewise.
9883         * modules/stdio (Makefile.am): Likewise.
9884         * modules/stdlib (Makefile.am): Likewise.
9885         * modules/string (Makefile.am): Likewise.
9886         * modules/strings (Makefile.am): Likewise.
9887         * modules/sys_file (Makefile.am): Likewise.
9888         * modules/sys_ioctl (Makefile.am): Likewise.
9889         * modules/sys_select (Makefile.am): Likewise.
9890         * modules/sys_socket (Makefile.am): Likewise.
9891         * modules/sys_stat (Makefile.am): Likewise.
9892         * modules/sys_time (Makefile.am): Likewise.
9893         * modules/sys_times (Makefile.am): Likewise.
9894         * modules/sys_uio (Makefile.am): Likewise.
9895         * modules/sys_utsname (Makefile.am): Likewise.
9896         * modules/sys_wait (Makefile.am): Likewise.
9897         * modules/sysexits (Makefile.am): Likewise.
9898         * modules/termios (Makefile.am): Likewise.
9899         * modules/time (Makefile.am): Likewise.
9900         * modules/unistd (Makefile.am): Likewise.
9901         * modules/wchar (Makefile.am): Likewise.
9902         * modules/wctype-h (Makefile.am): Likewise.
9903         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9904
9905 2011-05-29  Bruno Haible  <bruno@clisp.org>
9906
9907         assert-h: Allow multiple gnulib generated replacements to coexist.
9908         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9909
9910 2011-05-29  Bruno Haible  <bruno@clisp.org>
9911
9912         argp: Allow coexistence with strerror_r-posix module.
9913         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9914         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9915         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9916         not the glibc signature.
9917
9918 2011-05-28  Bruno Haible  <bruno@clisp.org>
9919
9920         gnulib-tool: Alternative structure of testdirs, similar to --import.
9921         * gnulib-tool: New option --single-configure.
9922         (func_usage): Document it.
9923         (single_configure): New variable.
9924         (func_modules_transitive_closure_separately,
9925         func_modules_transitive_closure_separately,
9926         func_determine_use_libtests, func_modules_add_dummy_separately,
9927         func_modules_to_filelist_separately): New functions, extracted from
9928         func_import.
9929         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9930         (func_import): Use the new functions.
9931         (func_create_testdir): Set final_modules. Handle $single_configure =
9932         true case.
9933
9934 2011-05-28  Bruno Haible  <bruno@clisp.org>
9935
9936         getloadavg: Remove an unreliable safety check.
9937         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9938         getloadavg.c is in place.
9939         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9940         Reported by Sam Steingold <sds@gnu.org>.
9941
9942 2011-05-28  Bruno Haible  <bruno@clisp.org>
9943
9944         doc: Cleanup yet another file produced by texinfo.tex.
9945         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9946
9947 2011-05-28  Bruno Haible  <bruno@clisp.org>
9948
9949         Finish the conditional dependencies mechanism.
9950         * gnulib-tool: New option --no-conditional-dependencies.
9951         (func_usage): Document it. Don't mark --conditional-dependencies as
9952         experimental.
9953         (cond_dependencies): The possible values can now be true, false, empty.
9954         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9955         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9956         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9957
9958 2011-05-28  Bruno Haible  <bruno@clisp.org>
9959
9960         doc: Use a recent texinfo.tex.
9961         * doc/Makefile (tex_opts): New variable.
9962         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9963
9964 2011-05-28  Jim Meyering  <meyering@redhat.com>
9965
9966         intprops.h: adjust comment to match code change
9967         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9968         only once, it *may* have side effects.  Also fix an unrelated typo.
9969         (_GL_INT_SIGNED): Likewise.
9970
9971 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9972
9973         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9974
9975 2011-05-26  Bruno Haible  <bruno@clisp.org>
9976
9977         mbsrchr: Avoid collision with system function on Interix.
9978         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9979         Reported by Markus Duft <mduft@gentoo.org>.
9980
9981 2011-05-15  James Youngman  <jay@gnu.org>
9982
9983         getopt: for ambiguous options, enumerate the possibilities.
9984         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9985         the ambiguous options when an ambiguous prefix is given. This was
9986         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9987         glibc change was
9988         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9989
9990 2011-05-25  Eric Blake  <eblake@redhat.com>
9991
9992         getcwd: work around mingw bug
9993         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9994         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9995         Reported by Matthias Bolte.
9996
9997 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         test-intprops: disable -Wtype-limits diagnostics
10000         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10001         diagnostics.  Otherwise, the integer overflow macros generate many
10002         diagnostics.  Reported by Jim Meyering in
10003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10004
10005         intprops: shorten, to pacify gcc -Woverlength-strings
10006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10007         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10008         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10009         likely to run afoul of C compiler limits for string constant lengths.
10010         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10011
10012 2011-05-24  Eric Blake  <eblake@redhat.com>
10013
10014         docs: document recently fixed glibc printf bug
10015         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10016         * doc/posix-functions/printf.texi (printf): Likewise.
10017         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10018         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10019
10020         closein-tests: convert to init.sh
10021         * modules/closein-tests (Files): Add init.sh
10022         * tests/test-closein.sh Use it.
10023
10024         yesno-tests: convert to init.sh
10025         * modules/yesno-tests (Files): Add init.sh.
10026         * tests/test-yesno.sh: Use it.
10027
10028         atexit-tests: ensure reliable exit status
10029         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10030         Reported by Bruno Haible.
10031
10032 2011-05-24  Bruno Haible  <bruno@clisp.org>
10033
10034         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10036         gl_PREREQ_STRERROR_R invocations from here...
10037         * modules/strerror_r-posix (configure.ac): ... to here.
10038
10039 2011-05-24  Eric Blake  <eblake@redhat.com>
10040
10041         strerror_r: fix missing header
10042         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10043
10044         strerror_r: fix AIX test failures
10045         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10046         ERANGE failure.
10047
10048         strerror_r: fix Solaris test failures
10049         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10050         failures.
10051         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10052
10053         strerror_r: enforce POSIX recommendations
10054         * lib/strerror_r.c (safe_copy): New helper method.
10055         (strerror_r): Guarantee a non-empty string.
10056         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10057         recent POSIX rulings and to match our strerror guarantees.
10058         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10059
10060 2011-05-24  Jim Meyering  <meyering@redhat.com>
10061
10062         test-perror2.c: avoid warning about unused variable
10063         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10064
10065 2011-05-24  Eric Blake  <eblake@redhat.com>
10066
10067         perror: avoid spurious test failure on HP-UX
10068         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10069
10070         tests: fix logic bug in init.sh
10071         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10072         shell.
10073
10074 2011-05-24  Jim Meyering  <meyering@redhat.com>
10075
10076         utimensat: do not reference an out-of-scope buffer
10077         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10078         declared in an inner scope, yet "times" would be dereferenced outside
10079         the scope in which "ts" was valid.
10080         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10081         of ts[2] "out/up", so that the use of aliased "times" (via
10082         "times = ts;") does not end up referencing an out-of-scope "ts"
10083
10084         opendir-safer.c: don't clobber errno; don't close negative FD
10085         * lib/opendir-safer.c (opendir_safer):
10086         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10087         file descriptor, and more importantly, don't clobber the
10088         offending errno value with EINVAL.  Before, upon failure
10089         of dup_safer, we would pass the negative file descriptor to
10090         fdopendir, which would clobber errno.
10091
10092 2011-05-23  Bruno Haible  <bruno@clisp.org>
10093
10094         idcache: Fix module description.
10095         * modules/idcache (Include): Set to "idcache.h".
10096
10097 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         gnulib-tool: fix portability problem with MacOS sed
10100         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10101         before the "}".  Problem reported by Leo in
10102         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10103         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10104         sed_extract_condition1, sed_extract_condition2.
10105
10106 2011-05-23  Bruno Haible  <bruno@clisp.org>
10107
10108         hash: Simplify autoconf macro.
10109         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10110
10111 2011-05-23  Bruno Haible  <bruno@clisp.org>
10112
10113         getugroups: Fix module description.
10114         * modules/getugroups (Include): Set to "getugroups.h".
10115
10116 2011-05-23  Bruno Haible  <bruno@clisp.org>
10117
10118         linkat: Simplify autoconf macro.
10119         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10120
10121 2011-05-23  Bruno Haible  <bruno@clisp.org>
10122             Eric Blake  <eblake@redhat.com>
10123
10124         linkat, renameat: Update dependencies.
10125         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10126         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10127         symlinkat.
10128
10129 2011-05-23  Jim Meyering  <meyering@redhat.com>
10130
10131         maint.mk: more tight_scope improvements
10132         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10133         (_gl_TS_headers): Define only in if-0'd block.
10134         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10135         sometimes we must *not* use it.  Adjust uses accordingly.
10136         (sc_tight_scope): Use much simpler grep-based test to determine
10137         whether we skip this rule.
10138
10139         maint.mk: generalize/improve the tight-scope rule
10140         * top/maint.mk: Emit a warning when the test is skipped.
10141         (_gl_TS_dir): Add $(srcdir)/ prefix.
10142         (_gl_TS_function_match): Simplify, rather than trying
10143         to enumerate common types.  Otherwise, it would fail to match an
10144         "extern unsigned char const *" declaration in idutils.
10145         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10146         a way to support use of that type of macro.
10147         (_gl_TS_var_match): Simplify regexp.
10148         (_gl_TS_obj_files): New configurable variable.
10149         (_gl_TS_headers): Likewise.
10150
10151 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         verify: fix bug when gnulib <assert.h> is also included
10154         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10155         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10156         Perhaps there's a better way, but this fixes the immediate problem.
10157         Problem reported by Bruno Haible in
10158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10159
10160 2011-05-22  Bruno Haible  <bruno@clisp.org>
10161
10162         xgetcwd: Simplify autoconf macro.
10163         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10164
10165 2011-05-22  Bruno Haible  <bruno@clisp.org>
10166
10167         New module 'mktime-internal'.
10168         * modules/mktime-internal: New file.
10169         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10170         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10171         mktime_internal as a C macro if libc has __mktime_internal.
10172         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10173         conditions.
10174         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10175
10176 2011-05-22  Bruno Haible  <bruno@clisp.org>
10177
10178         timegm: Correct mktime replacement statements.
10179         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10180         defining mktime as a C macro. This completes a 2009-07-28 commit.
10181
10182 2011-05-22  Bruno Haible  <bruno@clisp.org>
10183
10184         timegm: Simplify autoconf macro.
10185         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10186
10187 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         clock-time: change to LGPLv2+.
10190         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10191         BSD-like but we have no mark for that; this is good enough for now.
10192
10193 2011-05-21  Bruno Haible  <bruno@clisp.org>
10194
10195         strerror_r: Fix comments.
10196         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10197
10198 2011-05-21  Bruno Haible  <bruno@clisp.org>
10199
10200         relocatable-prog-wrapper: Fix possible link error.
10201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10202         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10203         (gl_FUNC_SETENV): ... to here.
10204         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10205         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10206
10207 2011-05-21  Bruno Haible  <bruno@clisp.org>
10208
10209         relocatable-prog-wrapper: Assume strerror() exists.
10210         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10211         m4/strerror.m4.
10212         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10213         * lib/relocwrapper.c: Remove mention of strerror module.
10214         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10216         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10217         C macro.
10218
10219 2011-05-21  Bruno Haible  <bruno@clisp.org>
10220
10221         select: Simplify replacement idiom.
10222         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10223         Win32 platforms.
10224         * lib/sys_select.in.h (select): Simplify accordingly.
10225         * modules/select (Depends-on): Likewise.
10226
10227 2011-05-21  Bruno Haible  <bruno@clisp.org>
10228
10229         mkdir-p: Simplify autoconf macro.
10230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10231         gl_FUNC_LCHOWN.
10232
10233 2011-05-21  Eric Blake  <eblake@redhat.com>
10234
10235         strerror_r: avoid clobbering strerror on cygwin
10236         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10237         fall back instead to sys_errlist.
10238         * modules/strerror (configure.ac): Add witness.
10239         * tests/test-strerror_r.c (main): Enhance test.
10240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10241         * tests/test-perror2.c (main): Free memory before exit.
10242
10243 2011-05-21  Bruno Haible  <bruno@clisp.org>
10244
10245         mkdtemp: Use gnulib naming conventions.
10246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10247         * modules/mkdtemp (configure.ac): Update.
10248
10249 2011-05-20  Eric Blake  <eblake@redhat.com>
10250
10251         strerror_r: avoid corrupting errno on Solaris
10252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10253         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10254
10255         strerror_r: avoid compiler warning
10256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10257
10258         strerror_r: simplify AIX code
10259         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10260
10261         test-perror: avoid spurious failure on FreeBSD
10262         * modules/perror-tests (Depends-on): Add strerror, now that
10263         strerror_r no longer pulls it in.
10264
10265 2011-05-20  Bruno Haible  <bruno@clisp.org>
10266
10267         strerror_r-posix: Remove unused dependencies.
10268         * modules/strerror_r-posix (Depends-on): Remove strerror.
10269         Reported by Eric Blake.
10270
10271 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10272
10273         intprops: remove assumption about A|B representation
10274         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10275         is a valid integer if both A and B are.  Although this is true for
10276         all known practical hosts, the C standard doesn't guarantee it,
10277         and the code need not assume it.  Also, this change may work around
10278         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10280
10281 2011-05-20  Eric Blake  <eblake@redhat.com>
10282
10283         perror: work around FreeBSD bug
10284         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10285         is broken.  Move AC_LIBOBJ...
10286         * modules/perror (configure.ac): Here.
10287         * doc/posix-functions/perror.texi (perror): Document this.
10288         * tests/test-perror2.c (main): Enhance test.
10289
10290         test-perror: check for strerror interactions
10291         * tests/macros.h (STREQ): Add macro.
10292         * modules/perror-tests (Files): Add second test.
10293         * tests/test-perror2.c (main): New file.
10294         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10295
10296         test-perror: rewrite to use init script
10297         * modules/perror-tests (Files): Add init.sh.
10298         * tests/test-perror.sh: Use temporary directory.
10299
10300 2011-05-20  Jim Meyering  <meyering@redhat.com>
10301
10302         maint: replace misused "a" with "an"
10303         * doc/intprops.texi: "a integer"
10304         * doc/regex.texi: "a explanation"
10305         * lib/alignof.h: "a object"
10306         * lib/argmatch.h: "a explanation"
10307         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10308         * lib/stdint.in.h: "a integer"
10309         * lib/userspec.c: "a owner"
10310         * doc/gnulib.texi: Fix "a idea", and reword.
10311
10312 2011-05-19  Jim Meyering  <meyering@redhat.com>
10313
10314         maint: correct misuse of "a" and "an"
10315         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10316         * lib/argp-help.c: "an docum...": s/an/a/
10317         * lib/argp-parse.c: "An vector": s/An/A/
10318         * lib/execute.c: "an native": s/an/a/
10319         * lib/spawn-pipe.c: Likewise.
10320         * lib/gc.h: "an Gc_rc": s/an/a/
10321         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10322         * lib/fts.c: "an stat.st_dev": s/an/a/
10323
10324 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10325
10326         intprops-tests: work around HP-UX 11.23 cc bug with constants
10327         * tests/test-intprops.c (VERIFY): New macro.
10328         (main): Use it, instead of verify, to work around the compiler bug; see
10329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10330
10331         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10332         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10333         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10334         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10335         (_GL_REMAINDER_OVERFLOW): Use it.
10336
10337         intprops-tests: revert unsigned part of previous change
10338         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10339         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10340         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10342
10343 2011-05-19  Bruno Haible  <bruno@clisp.org>
10344
10345         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10346         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10347         strerror_r() returned without filling the buffer.
10348         Reported by Eric Blake.
10349
10350 2011-05-19  Eric Blake  <eblake@redhat.com>
10351
10352         strerror_r: guarantee unchanged errno
10353         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10354         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10355         failure.
10356         * tests/test-strerror_r.c (main): Enhance test.
10357
10358 2011-05-19  Bruno Haible  <bruno@clisp.org>
10359
10360         strerror_r: Reorder #if blocks.
10361         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10362         for consistency with the previous commit.
10363
10364 2011-05-19  Bruno Haible  <bruno@clisp.org>
10365
10366         perror: Avoid clobbering the strerror buffer when possible.
10367         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10368         * lib/strerror.c: Include it.
10369         * modules/strerror (Files): Add lib/strerror-impl.h.
10370         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10371         (my_strerror): New function, defined through lib/strerror-impl.h.
10372         (perror): Use it instead of strerror.
10373         * modules/perror (Files): Add lib/strerror-impl.h.
10374         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10375
10376 2011-05-19  Eric Blake  <eblake@redhat.com>
10377
10378         strerror_r: fix on newer cygwin
10379         * lib/strerror_r.c (strerror_r): Cygwin now has
10380         __xpg_strerror_r, use it.
10381
10382 2011-05-19  Bruno Haible  <bruno@clisp.org>
10383
10384         strerror_r: Avoid clobbering the strerror buffer when possible.
10385         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10386         (sys_nerr, sys_errlist): New declarations.
10387         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10388         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10389         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10390
10391 2011-05-19  Bruno Haible  <bruno@clisp.org>
10392
10393         strerror_r: Fix test failure on mingw.
10394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10395         EXTEND_STRERROR_R.
10396         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10397         macros from errno.in.h instead.
10398
10399 2011-05-19  Eric Blake  <eblake@redhat.com>
10400
10401         strerror: relax test for Solaris
10402         * tests/test-strerror.c (main): Permit Solaris behavior.
10403         * tests/test-strerror_r.c (main): Likewise.
10404
10405         strerror: enforce POSIX ruling on strerror(0)
10406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10408         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10409         * doc/posix-functions/strerror.texi (strerror): Document it.
10410         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10411         * tests/test-strerror.c (main): Strengthen test.
10412         * tests/test-strerror_r.c (main): Likewise.
10413
10414 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10415
10416         intprop-tests: port to older and more-pedantic compilers
10417         * modules/intprops-tests (Files): Add tests/macros.h.
10418         * tests/test-intprops.c: Include macros.h.
10419         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10420         it's no longer documented to expand to an integer constant expression.
10421         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10422         argument is floating point, as it's no longer documented to expand
10423         to an integer constant expression in that case.
10424         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10425         compiler bugs reported by Bruno Haible.  See
10426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10427         (U0, U1): New constants, to work around the same bugs.  Also,
10428         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10429
10430         intprops: work around C compiler bugs
10431         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10432         bug in Sun C 5.11 2010/08/13 and other compilers; see
10433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10434
10435         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10436         * doc/intprops.texi (Integer Type Determination): Fix
10437         documentation for TYPE_IS_INTEGER: it returns an constant
10438         expression, not an integer constant expression.  Fix doc for
10439         TYPE_SIGNED: it returns an integer constant expression only if its
10440         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10441         hardly worth documented that way....)
10442
10443 2011-05-18  Bruno Haible  <bruno@clisp.org>
10444
10445         strerror_r: Avoid clobbering the strerror buffer when possible.
10446         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10447         Handle gnulib defined errno values here. When strerror() returns NULL
10448         or an empty string, return EINVAL.
10449         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10450         gnulib defined errno values here.
10451         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10452
10453 2011-05-18  Eric Blake  <eblake@redhat.com>
10454
10455         fnmatch: avoid compiler warning
10456         * lib/fnmatch_loop.c (FCT): Use correct type.
10457         Reported by Matthias Bolte.
10458
10459 2011-05-13  Jim Meyering  <meyering@redhat.com>
10460
10461         maint.mk: three new prohibit_<HDR>_without_use rules
10462         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10463         (sc_prohibit_stdio-safer_without_use): Likewise.
10464         (sc_prohibit_xfreopen_without_use): Likewise.
10465
10466 2011-05-17  Jim Meyering  <meyering@redhat.com>
10467
10468         announce-gen: fail if the NEWS delta is empty
10469         If there's nothing noteworthy in NEWS, then either you forgot
10470         or you shouldn't be releasing.
10471         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10472
10473 2011-05-17  Pádraig Brady <P@draigBrady.com>
10474
10475         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10476         reserved symbols starting with double underscore from the check.
10477
10478 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10479
10480         intprops: add doc
10481         * doc/intprops.texi: New file, documenting intprops.
10482         * doc/gnulib.texi (Particular Modules): Include it.
10483
10484         verify: add doc to gnulib manual and fix example
10485         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10486         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10487         (Compile-time Assertions): Fix example so it can't overflow.
10488
10489 2011-05-17  Jim Meyering  <meyering@redhat.com>
10490
10491         warnings.m4: don't usurp save_CPPFLAGS variable name
10492         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10493
10494         doc: fix typo
10495         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10496
10497 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10498             Bruno Haible  <bruno@clisp.org>
10499
10500         doc: Tweak recent change.
10501         * README (Portability guidelines): Tweak new text.
10502         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10503         Interix 6.1.
10504
10505 2011-05-16  Eric Blake  <eblake@redhat.com>
10506
10507         inttypes: avoid autoconf warning
10508         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10509         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10510
10511 2011-05-16  Sam Steingold <sds@gnu.org>
10512         and Eric Blake  <eblake@redhat.com>
10513
10514         vc-list-files: accept multiple directory operands
10515         * build-aux/vc-list-files: Iterate over all remaining operands.
10516
10517 2011-05-16  Bruno Haible  <bruno@clisp.org>
10518
10519         Fix confusion regarding deprecated modules.
10520         * modules/calloc (Status, Notice): Mark module as deprecated, not
10521         obsolete.
10522         * modules/fnmatch-posix (Status, Notice): Likewise.
10523         * modules/getdate (Status, Notice): Likewise.
10524         * modules/getopt (Status, Notice): Likewise.
10525         * modules/malloc (Status, Notice): Likewise.
10526         * modules/pipe (Status, Notice): Likewise.
10527         * modules/realloc (Status, Notice): Likewise.
10528         * modules/rename-dest-slash (Status, Notice): Likewise.
10529         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10530         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10531         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10532         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10533         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10534
10535 2011-05-16  Bruno Haible  <bruno@clisp.org>
10536
10537         doc: List the target platforms.
10538         * doc/gnulib-intro.texi (Target Platforms): New section.
10539         * doc/gnulib.texi (Introduction): Update menu.
10540         * README (Portability guidelines): Refer to the new section. Update
10541         statement about oldest supported environment. Remove rationale why
10542         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10543         unportable C89 function.
10544         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10545         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10546
10547 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10550
10551 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         intprops-tests: new module
10554         * modules/intprops-tests, tests/test-intprops.c: New files.
10555
10556         intprops: add safe, portable integer overflow checking
10557         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10558         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10559         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10560         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10561         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10562         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10563         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10564         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10565         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10566         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10567         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10568
10569 2011-05-12  James Youngman  <jay@gnu.org>
10570
10571         Add a test for glibc's Bugzilla bug #12378.
10572         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10573         doesn't allow the literal matching of a lone "[" (which is
10574         required by POSIX).
10575         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10576
10577 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10578
10579         Sync glibc change fixing Bugzilla bug #12378.
10580         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10581         beginning and fall back to matching as normal character if the
10582         string ends before the matching ']' is found.  This is what POSIX
10583         requires.
10584
10585 2011-05-13  Eric Blake  <eblake@redhat.com>
10586
10587         getcwd-lgpl: relax test for FreeBSD
10588         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10589         issue.
10590         * tests/test-getcwd-lgpl.c (main): Relax test.
10591         Reported by Matthias Bolte.
10592
10593 2011-05-11  Eric Blake  <eblake@redhat.com>
10594
10595         test-fflush: silence compiler warning
10596         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10597
10598 2011-05-11  Bruno Haible  <bruno@clisp.org>
10599
10600         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10601         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10602         * modules/canonicalize (Depends-on): Add 'nocrash'.
10603         * modules/canonicalize-lgpl (Depends-on): Likewise.
10604         * doc/posix-functions/realpath.texi: Update platforms list.
10605         Reported by Ryan Schmidt <ryandesign@macports.org>.
10606
10607 2011-05-11  Bruno Haible  <bruno@clisp.org>
10608
10609         group-member: Declare function in <unistd.h>.
10610         * lib/unistd.in.h (group_member): New declaration.
10611         * lib/group-member.h: Remove file.
10612         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10613         * tests/test-unistd-c++.cc: Check signature of group_member.
10614         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10615         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10616         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10618         HAVE_GROUP_MEMBER.
10619         * modules/group-member (Files): Remove lib/group-member.h.
10620         (Depends-on): Add unistd. Specify conditions.
10621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10622         (Include): Change to <unistd.h>.
10623         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10624         HAVE_GROUP_MEMBER.
10625         * NEWS: Mention the change.
10626         * lib/euidaccess.c: Don't include group-member.h.
10627
10628 2011-05-11  Bruno Haible  <bruno@clisp.org>
10629
10630         group-member: Document module.
10631         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10632         module.
10633
10634 2011-05-11  Bruno Haible  <bruno@clisp.org>
10635
10636         fclose: Fix mistake earlier today.
10637         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10638
10639 2011-05-11  Eric Blake  <eblake@redhat.com>
10640
10641         fclose: preserve fflush errors
10642         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10643         Reported by Jim Meyering.
10644
10645         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10646         * build-aux/bootstrap (check_versions): When no specific version
10647         is required, merely check that the app produces an exit status
10648         that indicates its existence.
10649
10650         maint.mk: drop redundant check
10651         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10652         the same but better.
10653
10654 2011-05-11  Bruno Haible  <bruno@clisp.org>
10655
10656         fclose: Fix possible link error.
10657         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10658         unregister_shadow_fd. Improve comments.
10659         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10660         Eric Blake.
10661
10662 2011-05-11  Jim Meyering  <meyering@redhat.com>
10663
10664         maint.mk: improve "can not" detection and generalize rule name
10665         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10666         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10667         Use the same technique as in sc_prohibit_doubled_word, so that
10668         we recognize "can not" also when the words are separated by a newline.
10669         Suggested by Eric Blake.
10670         (perl_filename_lineno_text_): Define.  Factored out of...
10671         (prohibit_doubled_word_): ...here.  Use the new definition.
10672         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10673         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10674         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10675
10676 2011-05-10  Eric Blake  <eblake@redhat.com>
10677
10678         fclose: avoid double close race when possible
10679         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10680         all but WINDOWS_SOCKETS.
10681
10682 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10683
10684         openat: correct new comment
10685         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10686
10687 2011-05-10  Jim Meyering  <meyering@redhat.com>
10688
10689         openat: add comments
10690         * lib/openat-proc.c (openat_proc_name): Add comments,
10691         mostly from Eric Blake.
10692
10693 2011-05-09  Eric Blake  <eblake@redhat.com>
10694
10695         openat: reduce syscalls in first probe of /proc
10696         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10697         be a directory.  Simplify the probe for .. bugs.
10698         * modules/openat (Depends-on): Drop same-inode.
10699         Reported by Bastien ROUCARIES.
10700
10701 2011-05-09  Jim Meyering  <meyering@redhat.com>
10702
10703         maint.mk: change semantics/name of tight_scope variables
10704         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10705         Rename variables to align with semantics that make them more useful.
10706
10707         maint.mk: tweak new rule's name not to impinge
10708         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10709         (sc_tight_scope): Use new rule name rather than $@-0.
10710
10711         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10712         * top/maint.mk (sc_tight_scope): New rule.
10713         (sc_tight_scope-0): New rule, ifdef'd out.
10714         (_gl_TS_dir): Default.
10715         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10716         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10717
10718 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10719
10720         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10721         Haible <bruno@clisp.org>.
10722
10723 2011-05-08  Bruno Haible  <bruno@clisp.org>
10724
10725         Comments.
10726         * m4/isnanf.m4: Add comment.
10727         * m4/isnanl.m4: Likewise.
10728
10729 2011-05-08  Bruno Haible  <bruno@clisp.org>
10730
10731         glob: Remove obsolete macro.
10732         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10733
10734 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10735
10736         intprops: Sun C 5.11 supports __typeof__
10737         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10738         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10739         which is new.
10740         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10741
10742         intprops: switch to usual gnulib indenting and naming
10743         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10744         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10745
10746         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10747
10748 2011-05-08  Jim Meyering  <meyering@redhat.com>
10749
10750         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10751         * top/maint.mk (release-prep): Use make's --no-print-directory
10752         option when generating the announcement.  This eliminates the
10753         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10754         generated announcement template.
10755
10756 2011-05-08  Bruno Haible  <bruno@clisp.org>
10757
10758         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10759         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10760         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10761
10762 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10763
10764         ignore-value, verify: Omit include files from lib_SOURCES.
10765         * modules/ignore-value, modules/verify (Makefile.am):
10766         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10767         that leads Automake to duplicate use of am__objects_... variables
10768         in Makefile.in.  See
10769         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10770
10771 2011-05-07  Bruno Haible  <bruno@clisp.org>
10772
10773         fclose: Simplify autoconf macro.
10774         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10775         defined.
10776
10777 2011-05-07  Bruno Haible  <bruno@clisp.org>
10778
10779         canonicalize-lgpl: Fix autoconf macro ordering bug.
10780         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10781         gl_STDLIB_H_DEFAULTS.
10782
10783 2011-05-06  Eric Blake  <eblake@redhat.com>
10784
10785         maintainer-makefile: make sc_po_check easier to tune
10786         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10787         to probe for strings, such as an alternate location for gnulib.
10788
10789         fclose: guarantee behavior on seekable stdin
10790         * modules/fclose (Depends-on): Add fflush.
10791         * doc/posix-functions/fclose.texi (fclose): Document this.
10792         * tests/test-fclose.c (main): Make test for this unconditional.
10793
10794 2011-05-06  Bruno Haible  <bruno@clisp.org>
10795
10796         fflush, fpurge: Relicense under LGPLv2+.
10797         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10798         * modules/fpurge (License): Likewise.
10799         With permission from Eric Blake and Jim Meyering.
10800         Suggested by Eric Blake.
10801
10802 2011-05-06  Karl Berry  <karl@gnu.org>
10803
10804         * MODULES.html.sh (func_all_modules): remove exit.
10805
10806 2011-05-06  Jim Meyering  <meyering@redhat.com>
10807
10808         maint.mk: use info-gnu@ as the default only for a stable release
10809         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10810         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10811         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10813
10814 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         assert-h: new module, which supports C1X-style static_assert
10817         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10818         * lib/verify.h: Revamp so that this can be copied into assert.h,
10819         while retaining the ability to use it standalone as before.
10820         Rename private identifiers so as not to encroach on the
10821         standard C namespace, since this is now used by assert.h.
10822         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10823         the old verify_true.
10824         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10825         the old verify_true.  Use _GL_VERIFY_TYPE.
10826         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10827         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10828         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10829         defined when this file is copied into the replacement assert.h.
10830         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10831         and _Static_assert is not built in.
10832         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10833         defined, and use the new macros mentioned above.
10834         * doc/posix-headers/assert.texi: Document this.
10835
10836 2011-05-05  Bruno Haible  <bruno@clisp.org>
10837
10838         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10839         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10840         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10841         gl_REPLACE_FCLOSE here.
10842         * modules/fflush (Depends-on): Remove fclose.
10843         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10844         combination with module 'fclose'.
10845
10846 2011-05-05  Bruno Haible  <bruno@clisp.org>
10847
10848         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10849         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10850         gl_FUNC_FFLUSH.
10851         (gl_FUNC_FFLUSH): Use it.
10852         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10854         gl_REPLACE_FSEEKO here.
10855
10856 2011-05-05  Bruno Haible  <bruno@clisp.org>
10857
10858         tzset: Relicense under LGPL.
10859         * modules/tzset (License): Change to LGPL.
10860         No agreement needed; it's a no-op.
10861
10862         strtoimax, strtoumax: Relicense under LGPL.
10863         * modules/strtoimax (License): Change to LGPL.
10864         * modules/strtoumax (License): Likewise.
10865         With permission from Jim Meyering, Paul Eggert:
10866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10868
10869         getgroups: Relicense under LGPL.
10870         * modules/getgroups (License): Change to LGPL.
10871         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10875
10876         nanosleep: Relicense under LGPL.
10877         * modules/nanosleep (License): Change to LGPL.
10878         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10879         Haible:
10880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10884
10885         futimens: Relicense under LGPL.
10886         * modules/futimens (License): Change to LGPL.
10887         With permission from Eric Blake:
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10889
10890         fflush: Relicense under LGPL.
10891         * modules/fflush (License): Change to LGPL.
10892         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10896
10897         tmpfile: Relicense under LGPL.
10898         * modules/tmpfile (License): Change to LGPL.
10899         With permission from Ben Pfaff:
10900         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10901
10902         isfinite: Relicense under LGPL.
10903         * modules/isfinite (License): Change to LGPL.
10904         With permission from Ben Pfaff, Bruno Haible:
10905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10907
10908         acosl..tanl: Relicense under LGPL.
10909         * modules/acosl (License): Change to LGPL.
10910         * modules/asinl (License): Likewise.
10911         * modules/atanl (License): Likewise.
10912         * modules/cosl (License): Likewise.
10913         * modules/expl (License): Likewise.
10914         * modules/logl (License): Likewise.
10915         * modules/sinl (License): Likewise.
10916         * modules/sqrtl (License): Likewise.
10917         * modules/tanl (License): Likewise.
10918         Source code originally from glibc and Paolo Bonzini. Agreements:
10919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10921
10922 2011-05-05  Bruno Haible  <bruno@clisp.org>
10923
10924         signal: Define sighandler_t.
10925         * lib/signal.in.h (sighandler_t): New type.
10926         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10927         whether sighandler_t is defined.
10928         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10929         * modules/signal (Depends-on): Add extensions.
10930         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10931         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10932         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10933
10934 2011-05-05  Eric Blake  <eblake@redhat.com>
10935
10936         maint: remove useless REPLACE_*_H macros
10937         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10938         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10939         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10940         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10941         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10942         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10943         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10944         * m4/btowc.m4: Update callers.
10945         * m4/dirfd.m4: Likewise.
10946         * m4/duplocale.m4: Likewise.
10947         * m4/fchdir.m4: Likewise.
10948         * m4/fdopendir.m4: Likewise.
10949         * m4/inet_ntop.m4: Likewise.
10950         * m4/inet_pton.m4: Likewise.
10951         * m4/ioctl.m4: Likewise.
10952         * m4/mbrlen.m4: Likewise.
10953         * m4/mbrtowc.m4: Likewise.
10954         * m4/mbsinit.m4: Likewise.
10955         * m4/mbsnrtowcs.m4: Likewise.
10956         * m4/mbsrtowcs.m4: Likewise.
10957         * m4/poll.m4: Likewise.
10958         * m4/setlocale.m4: Likewise.
10959         * m4/wcrtomb.m4: Likewise.
10960         * m4/wcsnrtombs.m4: Likewise.
10961         * m4/wcsrtombs.m4: Likewise.
10962         * m4/wctob.m4: Likewise.
10963         * m4/wcwidth.m4: Likewise.
10964         * modules/posix_spawn: Likewise.
10965         * modules/posix_spawn_file_actions_addclose: Likewise.
10966         * modules/posix_spawn_file_actions_adddup2: Likewise.
10967         * modules/posix_spawn_file_actions_addopen: Likewise.
10968         * modules/posix_spawn_file_actions_destroy: Likewise.
10969         * modules/posix_spawn_file_actions_init: Likewise.
10970         * modules/posix_spawnattr_destroy: Likewise.
10971         * modules/posix_spawnattr_getflags: Likewise.
10972         * modules/posix_spawnattr_getpgroup: Likewise.
10973         * modules/posix_spawnattr_getschedparam: Likewise.
10974         * modules/posix_spawnattr_getschedpolicy: Likewise.
10975         * modules/posix_spawnattr_getsigdefault: Likewise.
10976         * modules/posix_spawnattr_getsigmask: Likewise.
10977         * modules/posix_spawnattr_init: Likewise.
10978         * modules/posix_spawnattr_setflags: Likewise.
10979         * modules/posix_spawnattr_setpgroup: Likewise.
10980         * modules/posix_spawnattr_setschedparam: Likewise.
10981         * modules/posix_spawnattr_setschedpolicy: Likewise.
10982         * modules/posix_spawnattr_setsigdefault: Likewise.
10983         * modules/posix_spawnattr_setsigmask: Likewise.
10984         * modules/posix_spawnp: Likewise.
10985
10986 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10987
10988         Add option to do-release-commit-and-tag to specify branch.
10989         * build-aux/do-release-commit-and-tag: Add --branch.
10990
10991 2011-05-03  Bruno Haible  <bruno@clisp.org>
10992
10993         Avoid unnecessary compilation units, through conditional dependencies.
10994         * modules/accept (Depends-on): Add conditions to the dependencies.
10995         * modules/acosl (Depends-on): Likewise.
10996         * modules/argz (Depends-on): Likewise.
10997         * modules/asinl (Depends-on): Likewise.
10998         * modules/atanl (Depends-on): Likewise.
10999         * modules/atoll (Depends-on): Likewise.
11000         * modules/bind (Depends-on): Likewise.
11001         * modules/btowc (Depends-on): Likewise.
11002         * modules/canonicalize-lgpl (Depends-on): Likewise.
11003         * modules/ceil (Depends-on): Likewise.
11004         * modules/ceilf (Depends-on): Likewise.
11005         * modules/ceill (Depends-on): Likewise.
11006         * modules/chdir-long (Depends-on): Likewise.
11007         * modules/chown (Depends-on): Likewise.
11008         * modules/close (Depends-on): Likewise.
11009         * modules/connect (Depends-on): Likewise.
11010         * modules/cosl (Depends-on): Likewise.
11011         * modules/dirfd (Depends-on): Likewise.
11012         * modules/dprintf (Depends-on): Likewise.
11013         * modules/dprintf-posix (Depends-on): Likewise.
11014         * modules/error (Depends-on): Likewise.
11015         * modules/euidaccess (Depends-on): Likewise.
11016         * modules/expl (Depends-on): Likewise.
11017         * modules/faccessat (Depends-on): Likewise.
11018         * modules/fchdir (Depends-on): Likewise.
11019         * modules/fclose (Depends-on): Likewise.
11020         * modules/fcntl (Depends-on): Likewise.
11021         * modules/fdopendir (Depends-on): Likewise.
11022         * modules/fflush (Depends-on): Likewise.
11023         * modules/floor (Depends-on): Likewise.
11024         * modules/floorf (Depends-on): Likewise.
11025         * modules/floorl (Depends-on): Likewise.
11026         * modules/fnmatch (Depends-on): Likewise.
11027         * modules/fopen (Depends-on): Likewise.
11028         * modules/fprintf-posix (Depends-on): Likewise.
11029         * modules/frexp (Depends-on): Likewise.
11030         * modules/frexp-nolibm (Depends-on): Likewise.
11031         * modules/frexpl (Depends-on): Likewise.
11032         * modules/frexpl-nolibm (Depends-on): Likewise.
11033         * modules/fseek (Depends-on): Likewise.
11034         * modules/fsusage (Depends-on): Likewise.
11035         * modules/ftell (Depends-on): Likewise.
11036         * modules/ftello (Depends-on): Likewise.
11037         * modules/futimens (Depends-on): Likewise.
11038         * modules/getcwd (Depends-on): Likewise.
11039         * modules/getcwd-lgpl (Depends-on): Likewise.
11040         * modules/getdelim (Depends-on): Likewise.
11041         * modules/getdomainname (Depends-on): Likewise.
11042         * modules/getgroups (Depends-on): Likewise.
11043         * modules/gethostname (Depends-on): Likewise.
11044         * modules/getline (Depends-on): Likewise.
11045         * modules/getlogin_r (Depends-on): Likewise.
11046         * modules/getopt-posix (Depends-on): Likewise.
11047         * modules/getpeername (Depends-on): Likewise.
11048         * modules/getsockname (Depends-on): Likewise.
11049         * modules/getsockopt (Depends-on): Likewise.
11050         * modules/getsubopt (Depends-on): Likewise.
11051         * modules/getusershell (Depends-on): Likewise.
11052         * modules/glob (Depends-on): Likewise.
11053         * modules/grantpt (Depends-on): Likewise.
11054         * modules/iconv_open (Depends-on): Likewise.
11055         * modules/iconv_open-utf (Depends-on): Likewise.
11056         * modules/inet_ntop (Depends-on): Likewise.
11057         * modules/inet_pton (Depends-on): Likewise.
11058         * modules/ioctl (Depends-on): Likewise.
11059         * modules/isapipe (Depends-on): Likewise.
11060         * modules/isfinite (Depends-on): Likewise.
11061         * modules/isinf (Depends-on): Likewise.
11062         * modules/lchown (Depends-on): Likewise.
11063         * modules/ldexpl (Depends-on): Likewise.
11064         * modules/link (Depends-on): Likewise.
11065         * modules/linkat (Depends-on): Likewise.
11066         * modules/listen (Depends-on): Likewise.
11067         * modules/logl (Depends-on): Likewise.
11068         * modules/lstat (Depends-on): Likewise.
11069         * modules/mbrlen (Depends-on): Likewise.
11070         * modules/mbrtowc (Depends-on): Likewise.
11071         * modules/mbsinit (Depends-on): Likewise.
11072         * modules/mbsnrtowcs (Depends-on): Likewise.
11073         * modules/mbsrtowcs (Depends-on): Likewise.
11074         * modules/mbtowc (Depends-on): Likewise.
11075         * modules/memcmp (Depends-on): Likewise.
11076         * modules/mkdir (Depends-on): Likewise.
11077         * modules/mkdtemp (Depends-on): Likewise.
11078         * modules/mkfifo (Depends-on): Likewise.
11079         * modules/mkfifoat (Depends-on): Likewise.
11080         * modules/mknod (Depends-on): Likewise.
11081         * modules/mkostemp (Depends-on): Likewise.
11082         * modules/mkostemps (Depends-on): Likewise.
11083         * modules/mkstemp (Depends-on): Likewise.
11084         * modules/mkstemps (Depends-on): Likewise.
11085         * modules/mktime (Depends-on): Likewise.
11086         * modules/nanosleep (Depends-on): Likewise.
11087         * modules/open (Depends-on): Likewise.
11088         * modules/openat (Depends-on): Likewise.
11089         * modules/perror (Depends-on): Likewise.
11090         * modules/poll (Depends-on): Likewise.
11091         * modules/popen (Depends-on): Likewise.
11092         * modules/posix_spawn (Depends-on): Likewise.
11093         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11094         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11095         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11096         * modules/posix_spawnp (Depends-on): Likewise.
11097         * modules/pread (Depends-on): Likewise.
11098         * modules/printf-posix (Depends-on): Likewise.
11099         * modules/ptsname (Depends-on): Likewise.
11100         * modules/putenv (Depends-on): Likewise.
11101         * modules/pwrite (Depends-on): Likewise.
11102         * modules/readline (Depends-on): Likewise.
11103         * modules/readlink (Depends-on): Likewise.
11104         * modules/readlinkat (Depends-on): Likewise.
11105         * modules/recv (Depends-on): Likewise.
11106         * modules/recvfrom (Depends-on): Likewise.
11107         * modules/regex (Depends-on): Likewise.
11108         * modules/remove (Depends-on): Likewise.
11109         * modules/rename (Depends-on): Likewise.
11110         * modules/renameat (Depends-on): Likewise.
11111         * modules/rmdir (Depends-on): Likewise.
11112         * modules/round (Depends-on): Likewise.
11113         * modules/roundf (Depends-on): Likewise.
11114         * modules/roundl (Depends-on): Likewise.
11115         * modules/rpmatch (Depends-on): Likewise.
11116         * modules/select (Depends-on): Likewise.
11117         * modules/send (Depends-on): Likewise.
11118         * modules/sendto (Depends-on): Likewise.
11119         * modules/setenv (Depends-on): Likewise.
11120         * modules/setlocale (Depends-on): Likewise.
11121         * modules/setsockopt (Depends-on): Likewise.
11122         * modules/shutdown (Depends-on): Likewise.
11123         * modules/sigaction (Depends-on): Likewise.
11124         * modules/signbit (Depends-on): Likewise.
11125         * modules/sigprocmask (Depends-on): Likewise.
11126         * modules/sinl (Depends-on): Likewise.
11127         * modules/sleep (Depends-on): Likewise.
11128         * modules/snprintf (Depends-on): Likewise.
11129         * modules/snprintf-posix (Depends-on): Likewise.
11130         * modules/socket (Depends-on): Likewise.
11131         * modules/sprintf-posix (Depends-on): Likewise.
11132         * modules/sqrtl (Depends-on): Likewise.
11133         * modules/stat (Depends-on): Likewise.
11134         * modules/strchrnul (Depends-on): Likewise.
11135         * modules/strdup-posix (Depends-on): Likewise.
11136         * modules/strerror (Depends-on): Likewise.
11137         * modules/strerror_r-posix (Depends-on): Likewise.
11138         * modules/strndup (Depends-on): Likewise.
11139         * modules/strnlen (Depends-on): Likewise.
11140         * modules/strptime (Depends-on): Likewise.
11141         * modules/strsep (Depends-on): Likewise.
11142         * modules/strsignal (Depends-on): Likewise.
11143         * modules/strstr-simple (Depends-on): Likewise.
11144         * modules/strtod (Depends-on): Likewise.
11145         * modules/strtoimax (Depends-on): Likewise.
11146         * modules/strtok_r (Depends-on): Likewise.
11147         * modules/strtoumax (Depends-on): Likewise.
11148         * modules/symlink (Depends-on): Likewise.
11149         * modules/symlinkat (Depends-on): Likewise.
11150         * modules/tanl (Depends-on): Likewise.
11151         * modules/tcgetsid (Depends-on): Likewise.
11152         * modules/tmpfile (Depends-on): Likewise.
11153         * modules/trunc (Depends-on): Likewise.
11154         * modules/truncf (Depends-on): Likewise.
11155         * modules/truncl (Depends-on): Likewise.
11156         * modules/uname (Depends-on): Likewise.
11157         * modules/unlink (Depends-on): Likewise.
11158         * modules/unlockpt (Depends-on): Likewise.
11159         * modules/unsetenv (Depends-on): Likewise.
11160         * modules/usleep (Depends-on): Likewise.
11161         * modules/utimensat (Depends-on): Likewise.
11162         * modules/vasprintf (Depends-on): Likewise.
11163         * modules/vdprintf (Depends-on): Likewise.
11164         * modules/vdprintf-posix (Depends-on): Likewise.
11165         * modules/vfprintf-posix (Depends-on): Likewise.
11166         * modules/vprintf-posix (Depends-on): Likewise.
11167         * modules/vsnprintf (Depends-on): Likewise.
11168         * modules/vsnprintf-posix (Depends-on): Likewise.
11169         * modules/vsprintf-posix (Depends-on): Likewise.
11170         * modules/wcrtomb (Depends-on): Likewise.
11171         * modules/wcscasecmp (Depends-on): Likewise.
11172         * modules/wcscspn (Depends-on): Likewise.
11173         * modules/wcsdup (Depends-on): Likewise.
11174         * modules/wcsncasecmp (Depends-on): Likewise.
11175         * modules/wcsnrtombs (Depends-on): Likewise.
11176         * modules/wcspbrk (Depends-on): Likewise.
11177         * modules/wcsrtombs (Depends-on): Likewise.
11178         * modules/wcsspn (Depends-on): Likewise.
11179         * modules/wcsstr (Depends-on): Likewise.
11180         * modules/wcstok (Depends-on): Likewise.
11181         * modules/wcswidth (Depends-on): Likewise.
11182         * modules/wctob (Depends-on): Likewise.
11183         * modules/wctomb (Depends-on): Likewise.
11184         * modules/wctype (Depends-on): Likewise.
11185         * modules/wcwidth (Depends-on): Likewise.
11186         * modules/write (Depends-on): Likewise.
11187
11188 2011-05-03  Bruno Haible  <bruno@clisp.org>
11189
11190         Support for conditional dependencies.
11191         * doc/gnulib.texi (Module description): Document the syntax of
11192         conditional dependencies.
11193         * gnulib-tool: New option --conditional-dependencies.
11194         (func_usage): Document it.
11195         (cond_dependencies): New variable.
11196         (func_get_automake_snippet_conditional,
11197         func_get_automake_snippet_unconditional): New functions, extracted from
11198         func_get_automake_snippet.
11199         (func_get_automake_snippet): Use them.
11200         (sed_first_32_chars): New variable.
11201         (func_module_shellfunc_name): New function.
11202         (func_module_shellvar_name): New function.
11203         (func_module_conditional_name): New function.
11204         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11205         func_cond_module_condition): New functions.
11206         (func_modules_transitive_closure): Add support for conditional
11207         dependencies.
11208         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11209         conditional automake snippet in an automake conditional.
11210         (func_emit_autoconf_snippets): Emit shell functions that contain the
11211         code for conditional modules.
11212         (func_import, func_create_testdir): Update specification.
11213
11214 2011-05-03  Eric Blake  <eblake@redhat.com>
11215
11216         test-getaddrinfo: report error information
11217         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11218
11219 2011-05-03  Jim Meyering  <meyering@redhat.com>
11220
11221         bootstrap: avoid build failure when $GZIP is set
11222         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11223         program name.  If defined at all, it is supposed to list gzip options.
11224         Reported by Alan Curry in http://debbugs.gnu.org/8609
11225
11226 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11227
11228         readme-release: new module with release instructions
11229         * modules/readme-release: New module.
11230         * top/README-release: New file, from coreutils, grep, diffutils.
11231         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11232
11233 2011-05-02  Eric Blake  <eblake@redhat.com>
11234
11235         fflush: also replace fclose when fixing fflush
11236         * modules/fflush (Depends-on): Add fclose.
11237         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11238         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11239         memstreams with no backing fd.
11240         * doc/posix-functions/fclose.texi (fclose): Document the use of
11241         fflush module to fix the bug.
11242         * tests/test-fclose.c (main): Relax test when fclose is used in
11243         isolation.
11244
11245         fclose: add some tests
11246         * modules/fclose-tests: New test module.
11247         * tests/test-fclose.c: New file.
11248         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11249
11250         fclose: reduced dependencies
11251         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11252         simpler lseek.
11253         * lib/fclose.c (rpl_fclose): Likewise.
11254         Reported by Simon Josefsson.
11255
11256         exit: drop remaining clients
11257         * modules/argmatch (Depends-on): Replace exit with stdlib.
11258         * modules/copy-file (Depends-on): Likewise.
11259         * modules/execute (Depends-on): Likewise.
11260         * modules/exitfail (Depends-on): Likewise.
11261         * modules/obstack (Depends-on): Likewise.
11262         * modules/pagealign_alloc (Depends-on): Likewise.
11263         * modules/pipe-filter-gi (Depends-on): Likewise.
11264         * modules/pipe-filter-ii (Depends-on): Likewise.
11265         * modules/savewd (Depends-on): Likewise.
11266         * modules/spawn-pipe (Depends-on): Likewise.
11267         * modules/wait-process (Depends-on): Likewise.
11268         * modules/xsetenv (Depends-on): Likewise.
11269         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11270         * modules/git-merge-changelog (Depends-on): Likewise.
11271         * modules/long-options (Depends-on): Likewise.
11272         * modules/pt_chown (Depends-on): Likewise.
11273         * modules/sysexits (Depends-on): Likewise.
11274
11275         freading: relax license from LGPLv3+ to LGPLv2+
11276         * modules/freading (License): Relax LGPL version.
11277
11278 2011-05-02  Bruno Haible  <bruno@clisp.org>
11279
11280         fchdir: Remove unused dependencies.
11281         * modules/fchdir (Depends-on): Remove include_next.
11282
11283 2011-05-02  Bruno Haible  <bruno@clisp.org>
11284
11285         gnulib-tool: Refactor.
11286         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11287         from func_emit_autoconf_snippets.
11288         (func_emit_autoconf_snippets): Use it.
11289
11290 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11291
11292         * NEWS: Document removal of 'exit'.
11293         * modules/exit: Remove file.
11294
11295 2011-05-01  Bruno Haible  <bruno@clisp.org>
11296
11297         Update DEPENDENCIES.
11298         * DEPENDENCIES (gettext): Recommend the newest release.
11299         Reported by Simon Josefsson.
11300
11301 2011-05-01  Bruno Haible  <bruno@clisp.org>
11302
11303         gnulib-tool: Reduce code duplication.
11304         * gnulib-tool (func_emit_autoconf_snippets): New function.
11305         (func_import, func_create_testdir): Use it.
11306
11307 2011-04-30  Eric Blake  <eblake@redhat.com>
11308
11309         fclose: don't fail on non-seekable input stream
11310         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11311         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11312         since fflush is allowed to fail in that case.
11313
11314 2011-04-30  Bruno Haible  <bruno@clisp.org>
11315
11316         dup3: cleanup
11317         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11318
11319 2011-04-30  Bruno Haible  <bruno@clisp.org>
11320
11321         netdb: Make it work in C++ mode.
11322         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11323         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11324         module.
11325         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11326         gl_MODULE_INDICATOR_FOR_TESTS.
11327         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11328         * modules/netdb-c++-tests: New file.
11329         * tests/test-netdb-c++.cc: New file.
11330
11331 2011-04-30  Bruno Haible  <bruno@clisp.org>
11332
11333         New modules 'vfscanf', 'vscanf'.
11334         * modules/vfscanf: New file.
11335         * modules/vscanf: New file.
11336         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11337         here.
11338         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11339         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11340
11341 2011-04-30  Bruno Haible  <bruno@clisp.org>
11342
11343         passfd: Add comments.
11344         * lib/passfd.c: Add comments about platforms.
11345
11346 2011-04-30  Bruno Haible  <bruno@clisp.org>
11347
11348         sys_uio: Make <sys/uio.h> self-contained.
11349         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11350         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11351
11352 2011-04-30  Bruno Haible  <bruno@clisp.org>
11353
11354         sys_socket: Ensure 'struct iovec' definition.
11355         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11356         <sys/socket.h>.
11357         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11358
11359 2011-04-30  Bruno Haible  <bruno@clisp.org>
11360
11361         sys_uio: Protect definition of 'struct iovec'.
11362         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11363         it as a C struct.
11364
11365 2011-04-30  Bruno Haible  <bruno@clisp.org>
11366
11367         manywarnings: fix indentation
11368         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11369
11370 2011-04-30  Pádraig Brady <P@draigBrady.com>
11371
11372         manywarnings: add -Wno-missing-field-initializers if needed.
11373         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11374         option if it's needed to allow initialization with { 0, }
11375
11376 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11377
11378         announce-gen: cosmetic improvement
11379         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11380
11381 2011-04-29  Jim Meyering  <meyering@redhat.com>
11382
11383         vc-list-files: indent with spaces, not TABs
11384         * build-aux/vc-list-files: Convert leading TABs to spaces,
11385         to match the style of most other files in gnulib.
11386
11387         announce-gen: indent with spaces, not TABs
11388         * build-aux/announce-gen: Convert all TABs to spaces, to match
11389         the style of most other files in gnulib.
11390
11391 2011-04-29  Eric Blake  <eblake@redhat.com>
11392
11393         quotearg: avoid uninitialized variable use
11394         * lib/quotearg.c (quoting_options_from_style): Initialize
11395         remaining fields, and ensure that custom styles are only used via
11396         quoting_options rather than quoting_style.
11397
11398 2011-04-29  Jim Meyering  <meyering@redhat.com>
11399
11400         maint.mk: remove unused VC-tag variable
11401         * top/maint.mk (VC-tag): Remove unused variable.
11402
11403 2011-04-29  Bruno Haible  <bruno@clisp.org>
11404
11405         netdb: fix gai_strerror replacements
11406         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11407         * modules/netdb: Substitute it.
11408
11409 2011-04-29  Jim Meyering  <meyering@redhat.com>
11410
11411         test-getcwd.c: avoid new set-but-not-used warning
11412         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11413         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11414         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11415         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11416
11417         test-hash.c: avoid a new shadowing warning
11418         * tests/test-hash.c (main): Don't shadow "dup".
11419
11420 2011-04-28  Eric Blake  <eblake@redhat.com>
11421
11422         getaddrinfo: fix gai_strerror signature
11423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11424         and work around mingw with UNICODE defined.
11425         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11426         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11427         * modules/netdb (Makefile.am): Substitute it.
11428         * lib/netdb.in.h (gai_strerror): Declare replacement.
11429         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11430         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11431         the fix.
11432
11433         getsockopt: avoid compiler warning
11434         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11435         Reported by Matthias Bolte.
11436
11437         tests: drop unused link dependency
11438         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11439         * modules/dirent-safer-tests (Makefile.am): Likewise.
11440         * modules/fdopendir-tests (Makefile.am): Likewise.
11441         * modules/mkfifoat-tests (Makefile.am): Likewise.
11442         * modules/openat-safer-tests (Makefile.am): Likewise.
11443         * modules/openat-tests (Makefile.am): Likewise.
11444         * modules/readlinkat-tests (Makefile.am): Likewise.
11445         * modules/symlinkat-tests (Makefile.am): Likewise.
11446         * modules/linkat-tests (Makefile.am): Likewise.
11447         (Depends-on): Switch to filenamecat-lgpl.
11448         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11449         LIBINTL.
11450         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11451         * tests/test-linkat.c (main): Don't require xalloc.
11452
11453         hash, mgetgroups: drop xalloc dependency
11454         * lib/hash.c (includes): Adjust includes.
11455         * lib/mgetgroups.c (includes): Likewise.
11456         (xgetgroups): Move...
11457         * lib/xgetgroups.c: ...to new file.
11458         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11459         * modules/xgetgroups: New file, split from...
11460         * modules/mgetgroups: ...here.
11461         (Depends-on): Add xalloc-oversized.
11462         * modules/hash (Depends-on): Likewise.
11463         * modules/hash-tests (Depends-on): Drop xalloc.
11464         (test_hash_LDADD): Drop unused library.
11465         * tests/test-hash.c (main): Break xalloc dependency.
11466         (includes): Drop unused include.
11467
11468         xalloc-oversized: new module
11469         * modules/xalloc-oversized: New module.
11470         * modules/xalloc (Depends-on): Add it.
11471         * lib/xalloc.h (xalloc_oversized): Move...
11472         * lib/xalloc-oversized.h: ...into new file.
11473
11474         utimecmp: drop dependency on xmalloc
11475         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11476         due to memory pressure.
11477         * modules/utimecmp (Depends-on): Drop xalloc.
11478
11479 2011-04-27  Eric Blake  <eblake@redhat.com>
11480
11481         getcwd: fix mingw bugs
11482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11483         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11484         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11485
11486 2011-04-27  Bruno Haible  <bruno@clisp.org>
11487
11488         mkstemps: Ensure declaration on MacOS X 10.5.
11489         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11490         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11491         MacOS X.
11492
11493 2011-04-27  Bruno Haible  <bruno@clisp.org>
11494
11495         mkstemp: More documentation.
11496         * doc/posix-functions/mkstemp.texi: Document header file problem on
11497         MacOS X.
11498
11499 2011-04-27  Bruno Haible  <bruno@clisp.org>
11500
11501         mkstemp: Tweak configure message when cross-compiling.
11502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11503         result as a guess.
11504
11505 2011-04-27  Bruno Haible  <bruno@clisp.org>
11506
11507         clean-temp: Clarify what it does.
11508         * lib/clean-temp.h: Add more comments.
11509         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11510         module.
11511         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11512         * doc/glibc-functions/mkstemps.texi: Likewise.
11513         * doc/glibc-functions/mkostemps.texi: Likewise.
11514
11515 2011-04-27  Eric Blake  <eblake@redhat.com>
11516
11517         fchdir: avoid extra chdir and fix test
11518         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11519         getcwd-lgpl.
11520         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11521         have to be canonical.
11522         (canonicalize_file_name): Drop unused macro.
11523         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11524
11525         filenamecat-lgpl: fix licence
11526         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11527         when it was first created.
11528
11529         linkat, renameat: add missing dependency
11530         * modules/linkat (Depends-on): Require getcwd-lgpl.
11531         * modules/renameat (Depends-on): Likewise.
11532
11533         tests: reduce dependencies
11534         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11535         * tests/test-renameat.c (main): Likewise.
11536         * modules/linkat-tests (Depends-on): Relax dependency.
11537         * modules/renameat-tests (Depends-on): Likewise.
11538         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11539         dependency explicit.
11540
11541         save-cwd: reduce default dependency
11542         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11543         * lib/save-cwd.c: Update comments.
11544         * NEWS: Document the semantic change.
11545
11546         getcwd: enhance tests
11547         * tests/test-getcwd-lgpl.c: New file, taken from...
11548         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11549         repeat long path stress tests from m4 probe.
11550         * modules/getcwd-lgpl-tests: New module.
11551         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11552         * m4/getcwd-abort-bug.m4: Update comment.
11553         * m4/getcwd-path-max.m4: Likewise.
11554
11555         getcwd-lgpl: new module
11556         * modules/getcwd-lgpl: New module.
11557         * lib/getcwd-lgpl.c: New file.
11558         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11559         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11560         * modules/getcwd (configure.ac): Set C witness.
11561         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11562
11563         getcwd: tweak comments
11564         * m4/getcwd-abort-bug.m4: Fix comments.
11565         * m4/getcwd-path-max.m4: Likewise.
11566         * m4/getcwd.m4: Likewise.
11567
11568 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11569         and Eric Blake  <eblake@redhat.com>
11570
11571         mkstemp: replace if system version uses wrong permissions
11572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11573         read/write mode bits set in file created by mkstemp.
11574         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11575
11576 2011-04-27  Eric Blake  <eblake@redhat.com>
11577
11578         passfd: avoid compiler warning
11579         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11580         Reported by Laine Stump.
11581
11582 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11583
11584         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11585         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11586
11587 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11588         and Eric Blake  <eblake@redhat.com>
11589
11590         mkstemp: mention clean-temp module
11591         * lib/mkstemp.c: Add comment.
11592         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11593
11594 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11595
11596         inttypes: also provide default values for 32-bit tests
11597         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11598         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11599
11600 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11601
11602         strtoumax: remove dependency on strtoimax
11603         This is like the strtoull change of yesterday.
11604         * modules/strtoumax (Files): Add lib/strtoimax.c.
11605         (Depends-on): Remove strtoimax and add verify.
11606
11607         inttypes-incomplete: new module
11608         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11609         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11610         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11611         of gl_INTTYPES_H.
11612         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11613         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11614         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11615         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11616         * modules/strtoumax, modules/xstrtol (Depends-on):
11617         Depend on inttypes-incomplete, not inttypes.
11618         * modules/inttypes-incomplete: New module, containing the contents
11619         of the old modules/inttypes module, except that the Files: section
11620         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11621         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11622         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11623         (Depends-on): Depend only on inttypes-incomplete.
11624         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11625
11626         inttypes: omit now-redundant strtoimax and strtoumax work
11627         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11628         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11629
11630         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11631         This supports apps that need pointers to strtoimax and strtoumax,
11632         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11633         nonexistent functions.  See
11634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11635         et seq.
11636         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11637         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11638         a macro.
11639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11640
11641 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11642
11643         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11644
11645 2011-04-25  Bruno Haible  <bruno@clisp.org>
11646
11647         strtol, strtoul: Mark modules as obsolete.
11648         * modules/strtol (Status, Notice): New sections.
11649         * modules/strtoul (Status, Notice): New sections.
11650
11651 2011-04-25  Bruno Haible  <bruno@clisp.org>
11652
11653         strtod: Remove check for strtod, unless supporting old platforms.
11654         * modules/strtod-obsolete: New file.
11655         * m4/strtod-obsolete.m4: New file.
11656         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11657         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11658         * modules/strtod (Depends-on): Add strtod-obsolete.
11659         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11660
11661 2011-04-25  Bruno Haible  <bruno@clisp.org>
11662
11663         strcase: Make module obsolete.
11664         * modules/strcase (Status, Notice): New sections.
11665
11666 2011-04-25  Bruno Haible  <bruno@clisp.org>
11667
11668         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11669         * modules/dup2-obsolete: New file.
11670         * m4/dup2-obsolete.m4: New file.
11671         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11672         gl_FUNC_DUP2_OBSOLETE is not also defined.
11673         * modules/dup2 (Depends-on): Add dup2-obsolete.
11674         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11675
11676 2011-04-25  Bruno Haible  <bruno@clisp.org>
11677
11678         strnlen: Avoid memchr related link error on old obsolete platforms.
11679         * modules/memchr-obsolete: New file.
11680         * m4/memchr-obsolete.m4: New file.
11681         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11682         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11683         * modules/memchr (Depends-on): Add memchr-obsolete.
11684         * modules/strnlen (Depends-on): Likewise.
11685         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11686
11687 2011-04-25  Jim Meyering  <meyering@redhat.com>
11688
11689         maint.mk: makefile_at_at_check extend and clean up
11690         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11691         in addition to */Makefile.am.
11692         Exempt legitimate uses of @VAR@ notation, e.g.,
11693         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11694         Remove obsolete coreutils-specific comment.
11695         Prompted by discussion here:
11696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11697
11698 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         strtoul: remove dependency on strtol
11701         This is so that 'configure' need not check for strtol merely because
11702         the application needs strtoul.
11703         * modules/strtoul (Files): Add lib/strtol.c.
11704         (Depends-on): Remove strtol.
11705
11706         strtoull: remove dependency on strtoul
11707         This is like the strtoll change.
11708         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11709         (Depends-on): Remove strtoul.
11710
11711         strtoll: remove dependency on strtol
11712         This is so that 'configure' need not check for strtol merely because
11713         the application needs strtoll.
11714         * modules/strtoll (Files): Add lib/strtol.c.
11715         (Depends-on): Remove strtol.
11716
11717 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11718
11719         inttypes: Move some configure check to module 'imaxdiv'.
11720         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11721         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11722         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11723
11724 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11725
11726         inttypes: Move some configure check to module 'imaxabs'.
11727         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11728         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11729         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11730
11731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         inttypes: Remove configure tests that are not needed since 2009-12-31.
11734         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11735         gl_cv_header_working_inttypes_h.
11736
11737 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11738
11739         * modules/strnlen (Depends-on): Remove memchr.
11740         The strnlen implementation doesn't need the memchr module's fixes; see
11741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11742
11743         strtol: remove dependency on wchar
11744         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11745         * modules/strtol (Depends-on): Remove wchar.
11746
11747 2011-04-21  Eric Blake  <eblake@redhat.com>
11748
11749         passfd: fix test regression on Linux
11750         * modules/passfd-tests (configure.ac): Correct socketpair check.
11751
11752         passfd: speed up configure and drop unused code
11753         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11754         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11755         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11756         Instead of probing at configure for unix_scm_rights_bsd44_way,
11757         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11758         check to a struct member probe.
11759         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11760         (sendfd, recvfd): Update preprocessor checks.
11761         * modules/passfd (Files): Reflect rename, and drop unused file.
11762         (Depends-on): Drop unused dependency.
11763
11764         passfd: allow compilation on mingw
11765         * modules/sys_socket (Depends-on): Add sys_uio.
11766         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11767         iovec and a minimal struct msghdr.
11768         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11769         * tests/test-sys_socket.c (main): Enhance test.
11770         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11771         guaranteed to provide what we need.
11772         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11773         * modules/passfd-tests (Depends-on): Add sys_wait.
11774         * tests/test-passfd.c (main): Skip test on mingw, for now.
11775         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11776         partial 'struct msghdr' implementation.
11777
11778         sys_uio: new module
11779         * modules/sys_uio: New module.
11780         * modules/sys_uio-tests: Likewise.
11781         * lib/sys_uio.in.h: New file.
11782         * m4/sys_uio_h.m4: Likewise.
11783         * tests/test-sys_uio.c: Likewise.
11784         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11785         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11786
11787 2011-04-20  Jim Meyering  <meyering@redhat.com>
11788
11789         useless-if-before-free: avoid false-positive
11790         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11791         disjunct so that it too requires a terminating ";".  Without that,
11792         this script would identify as useless one statement from gcc that
11793         was not:
11794           if (aligned_ptr)
11795             free (((void **) aligned_ptr) [-1]);
11796
11797 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11798
11799         doc: update users.txt.
11800         * users.txt: Add barcode.
11801
11802 2011-04-19  Bruno Haible  <bruno@clisp.org>
11803
11804         ioctl: Remove link dependency on native Windows.
11805         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11806         (gl_close_fn, gl_ioctl_fn): New types.
11807         (struct fd_hook): Renamed from struct close_hook. Change type of
11808         private_close_fn field. Add private_ioctl_fn field.
11809         (close_hook_fn): Add parameter for primary close method.
11810         (execute_close_hooks, execute_all_close_hooks): Likewise.
11811         (ioctl_hook_fn): New type.
11812         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11813         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11814         argument.
11815         (unregister_fd_hook): Renamed from unregister_close_hook.
11816         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11817         Don't include <unistd.h>.
11818         (close): Remove undef.
11819         (anchor): Update.
11820         (execute_close_hooks): Add argument for primary close method.
11821         (execute_all_close_hooks): Likewise.
11822         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11823         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11824         argument. Allow each argument to be NULL.
11825         (unregister_fd_hook): Renamed from unregister_close_hook.
11826         * lib/close.c (rpl_close): Pass 'close' function pointer to
11827         execute_all_close_hooks.
11828         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11829         (primary_ioctl): New function.
11830         (ioctl): Don't call ioctlsocket here. Instead, call
11831         execute_all_ioctl_hooks.
11832         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11833         close method.
11834         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11835         (fd_sockets_hook): Renamed from close_sockets_hook.
11836         (gl_sockets_startup, gl_sockets_cleanup): Update.
11837         * modules/fd-hook: Renamed from modules/close-hook. Update.
11838         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11839         * modules/sockets (Depends-on): Likewise.
11840         * modules/ioctl (Depends-on): Add fd-hook.
11841         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11842         GNULIB_SOCKET.
11843
11844 2011-04-19  Bruno Haible  <bruno@clisp.org>
11845
11846         Move the support of O_NONBLOCK in open() to the 'open' module.
11847         * modules/nonblocking (Depends-on): Remove 'open'.
11848         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11849         gl_cv_have_open_O_NONBLOCK.
11850         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11851         O_NONBLOCK support.
11852         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11853
11854 2011-04-17  Bruno Haible  <bruno@clisp.org>
11855
11856         pipe2: Simplify code.
11857         * lib/pipe2.c (pipe2): Reduce code duplication.
11858
11859 2011-04-17  Bruno Haible  <bruno@clisp.org>
11860
11861         nonblocking: Add comment.
11862         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11863
11864 2011-04-17  Bruno Haible  <bruno@clisp.org>
11865
11866         nonblocking: Add tests for sockets.
11867         * tests/test-nonblocking-socket.sh: New file.
11868         * tests/test-nonblocking-socket-main.c: New file.
11869         * tests/test-nonblocking-socket-child.c: New file.
11870         * tests/test-nonblocking-socket.h: New file.
11871         * tests/socket-server.h: New file.
11872         * tests/socket-client.h: New file.
11873         * modules/nonblocking-socket-tests: New file.
11874         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11875
11876 2011-04-17  Bruno Haible  <bruno@clisp.org>
11877
11878         nonblocking: Add tests for pipes.
11879         * tests/test-nonblocking-pipe.sh: New file.
11880         * tests/test-nonblocking-pipe-main.c: New file.
11881         * tests/test-nonblocking-pipe-child.c: New file.
11882         * tests/test-nonblocking-pipe.h: New file.
11883         * tests/test-nonblocking-writer.h: New file.
11884         * tests/test-nonblocking-reader.h: New file.
11885         * tests/test-nonblocking-misc.h: New file.
11886         * modules/nonblocking-pipe-tests: New file.
11887         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11888
11889 2011-04-16  Bruno Haible  <bruno@clisp.org>
11890
11891         gettext: Clarify the needed programmer actions.
11892         * modules/gettext (Notice): New field.
11893         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11894
11895 2011-04-16  Bruno Haible  <bruno@clisp.org>
11896
11897         strchrnul: Tweak last commit.
11898         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11899         bug.
11900         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11901         as in _GL_FUNCDECL_SYS.
11902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11903         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11904
11905 2011-04-15  Eric Blake  <eblake@redhat.com>
11906
11907         strchrnul: work around cygwin bug
11908         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11911         * modules/string (Makefile.am): Substitute it.
11912         * lib/string.in.h (strchrnul): Use it.
11913
11914 2011-04-15  Bruno Haible  <bruno@clisp.org>
11915
11916         Don't require lib/stdio-write.c when only module 'stdio' is used.
11917         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11918         invocation.
11919         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11920
11921 2011-04-14  Bruno Haible  <bruno@clisp.org>
11922
11923         Support non-blocking pipe I/O in read() on native Windows.
11924         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11925         (read): New declaration.
11926         * lib/read.c: New file.
11927         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11928         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11929         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11930         vscanf): New declarations.
11931         * lib/stdio-read.c: New file.
11932         * m4/read.m4: New file.
11933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11934         REPLACE_READ.
11935         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11936         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11937         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11938         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11939         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11940         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11941         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11942         * modules/read: New file.
11943         * modules/nonblocking (Files): Add lib/stdio-read.c.
11944         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11945         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11946         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11947         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11948         * modules/pread (Depends-on): Add read.
11949         * modules/safe-read (Depends-on): Likewise.
11950         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11951         gets, scanf, vfscanf, vscanf): Verify signatures.
11952         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11953         problem with non-blocking pipes.
11954         * doc/posix-functions/fgetc.texi: Likewise.
11955         * doc/posix-functions/fgets.texi: Likewise.
11956         * doc/posix-functions/fread.texi: Likewise.
11957         * doc/posix-functions/fscanf.texi: Likewise.
11958         * doc/posix-functions/getc.texi: Likewise.
11959         * doc/posix-functions/getchar.texi: Likewise.
11960         * doc/posix-functions/gets.texi: Likewise.
11961         * doc/posix-functions/scanf.texi: Likewise.
11962         * doc/posix-functions/vfscanf.texi: Likewise.
11963         * doc/posix-functions/vscanf.texi: Likewise.
11964
11965 2011-04-14  Bruno Haible  <bruno@clisp.org>
11966
11967         Support non-blocking pipe I/O in write() on native Windows.
11968         * lib/write.c (rpl_write): Split a write request that failed merely
11969         because the byte count was larger than the pipe buffer's size.
11970         * doc/posix-functions/write.texi: Mention the problem with large byte
11971         counts.
11972
11973 2011-04-14  Bruno Haible  <bruno@clisp.org>
11974
11975         wchar: Ensure that wchar_t gets defined on uClibc.
11976         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11977         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11978
11979 2011-04-13  Bruno Haible  <bruno@clisp.org>
11980
11981         safe-write, full-read: Avoid unnecessary compilation units.
11982         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11983         (Depends-on): Remove safe-read. Add ssize_t.
11984         * modules/full-read (Files): Add lib/full-write.c.
11985         (Depends-on): Add full-write.
11986
11987 2011-04-13  Bruno Haible  <bruno@clisp.org>
11988
11989         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11990         * modules/pwrite (Depends-on): Add 'write'.
11991
11992 2011-04-13  Bruno Haible  <bruno@clisp.org>
11993
11994         Support non-blocking pipe I/O in write() on native Windows.
11995         * lib/unistd.in.h (write): Enable replacement also if
11996         GNULIB_UNISTD_H_NONBLOCKING is 1.
11997         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11998         (rpl_write): When failing to write on a non-blocking pipe, change
11999         errno from ENOSPC to EAGAIN.
12000         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12001         putchar, puts, vfprintf, vprintf): Enable replacement also if
12002         GNULIB_STDIO_H_NONBLOCKING is 1.
12003         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12004         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12005         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12006         CALL_WITH_SIGPIPE_EMULATION.
12007         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12008         * m4/nonblocking.m4: New file.
12009         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12010         for non-blocking I/O support.
12011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12012         GNULIB_UNISTD_H_NONBLOCKING.
12013         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12014         required for non-blocking I/O support.
12015         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12016         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12017         lib/stdio-write.c, m4/asm-underscore.m4.
12018         (Depends-on): Add stdio, unistd.
12019         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12020         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12021         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12022         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12023         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12024         problem with non-blocking pipes.
12025         * doc/posix-functions/fputc.texi: Likewise.
12026         * doc/posix-functions/fputs.texi: Likewise.
12027         * doc/posix-functions/fwrite.texi: Likewise.
12028         * doc/posix-functions/printf.texi: Likewise.
12029         * doc/posix-functions/putc.texi: Likewise.
12030         * doc/posix-functions/putchar.texi: Likewise.
12031         * doc/posix-functions/puts.texi: Likewise.
12032         * doc/posix-functions/vfprintf.texi: Likewise.
12033         * doc/posix-functions/vprintf.texi: Likewise.
12034         * doc/posix-functions/write.texi: Likewise.
12035
12036 2011-04-10  Jim Meyering  <meyering@redhat.com>
12037
12038         maint.mk: prohibit doubled words
12039         Detect them also when they're separated by a newline.
12040         There are 3 ways to customize it:
12041           - disable the test on a per file basis, as usual with rules using
12042             $(VC_LIST_EXCEPT)
12043           - replace the default doubled-word-selecting regexp (affects all files)
12044           - ignore a particular file-vs-doubled-word match
12045         I nearly used that last one to ignore the "is is" match in
12046         coreutils' NEWS file, since the text was "ls -is is ..."
12047         To do that, I would have added this line to cfg.mk:
12048           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12049         but it would have ignored any "is is" match in NEWS.
12050         Low probability, but still...
12051         Instead, I changed the text, slightly:
12052           -  ls -is is now consistent with ls -lis in ignoring values returned
12053           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12054         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12055         (prohibit_doubled_word_): Define.
12056         (sc_prohibit_doubled_word): New rule.
12057         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12058
12059 2011-04-10  Jim Meyering  <meyering@redhat.com>
12060
12061         maint: fix doubled-word typo in comment
12062         * m4/gethostname.m4: s/is is/it is/
12063         * m4/getdomainname.m4: Likewise.
12064
12065 2011-04-10  Jim Meyering  <meyering@redhat.com>
12066
12067         maint: remove doubled word: s/it it/it/
12068         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12069
12070 2011-04-10  Jim Meyering  <meyering@redhat.com>
12071
12072         maint.mk: remove useless semicolon and backslash
12073         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12074         semicolon and backslash.
12075
12076 2011-04-10  Bruno Haible  <bruno@clisp.org>
12077
12078         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12079         * modules/stdint-tests (Depends-on): Add wchar.
12080
12081 2011-04-10  Jim Meyering  <meyering@redhat.com>
12082
12083         maint: remove doubled words in comments, e.g., s/a a/a/
12084         * lib/strptime.c (day_of_the_week): s/the the/the/
12085         * tests/test-chown.h (test_chown): s/a a/a/
12086
12087         test-chown.h: correct a cast
12088         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12089         when the destination is a stat.st_gid.
12090
12091 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12092
12093         getaddrinfo: Fix test for sa_len member.
12094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12095         include <sys/types.h> before <sys/socket.h>.
12096
12097 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         maint: change "can not" to "cannot"
12100         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12101         boundaries.
12102
12103 2011-04-09  Jim Meyering  <meyering@redhat.com>
12104
12105         maint: change "a a" to "a"
12106         * tests/test-lchown.h (test_lchown): s/a a/a/
12107
12108         maint.mk: prohibit \<the the\>
12109         * top/maint.mk (sc_prohibit_the_the): New rule.
12110
12111         maint: fix "the the" in comment
12112         * lib/count-one-bits.h: s/the the/the/
12113
12114         maint: change "can not" to "cannot"
12115         But do not change the occurrences in maintain.texi or in
12116         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12117         * doc/gnulib-tool.texi: s/can not/cannot/
12118         * doc/posix-functions/accept.texi (accept): Likewise.
12119         * doc/posix-functions/socket.texi (socket): Likewise.
12120         * lib/mbrtowc.c: Likewise.
12121
12122         maint.mk: prohibit use of "can not"
12123         * top/maint.mk (sc_prohibit_can_not): New rule.
12124         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12125
12126 2011-04-09  Bruno Haible  <bruno@clisp.org>
12127
12128         careadlinkat: Guard against misuse of careadlinkatcwd.
12129         * lib/careadlinkat.c: Include <stdlib.h>.
12130         (careadlinkatcwd): Check that the fd argument is as expected.
12131
12132 2011-04-09  Bruno Haible  <bruno@clisp.org>
12133
12134         careadlinkat: Use common coding style.
12135         * lib/careadlinkat.c: Move gnulib includes after system includes.
12136
12137 2011-04-09  Bruno Haible  <bruno@clisp.org>
12138
12139         careadlinkat: Clarify specification.
12140         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12141         (careadlinkatcwd): Add comment.
12142         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12143
12144 2011-04-09  Bruno Haible  <bruno@clisp.org>
12145
12146         areadlinkat: Avoid link error on many platforms.
12147         * modules/areadlinkat (Depends-on): Add areadlink.
12148
12149 2011-04-09  Bruno Haible  <bruno@clisp.org>
12150
12151         allocator, careadlinkat: Fix double-inclusion guard.
12152         * lib/allocator.h: Fix double-inclusion guard.
12153         * lib/careadlinkat.h: Likewise.
12154
12155 2011-04-09  Bruno Haible  <bruno@clisp.org>
12156
12157         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12158         * lib/relocwrapper.c: Update dependencies hierarchy.
12159         * build-aux/install-reloc: Update list of files to be compiled.
12160         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12161         lib/allocator.[hc].
12162
12163 2011-04-08  Eric Blake  <eblake@redhat.com>
12164
12165         strftime: silence gnulib-tool warning
12166         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12167
12168 2011-04-08  Bruno Haible  <bruno@clisp.org>
12169
12170         verify: Fix syntax error with GCC 4.6 in C++ mode.
12171         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12172         (HAVE_STATIC_ASSERT): New macro.
12173         (verify_true, verify): Use 'static_assert' if it is supported and
12174         '_Static_assert' is not supported.
12175
12176 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12177
12178         allocator: New module.
12179         * modules/allocator, lib/allocator.c: New files.
12180         * lib/allocator.h (stdlib_allocator): New decl.
12181         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12182         Remove.  Do not include <stdlib.h>.
12183         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12184         * modules/careadlinkat (Files): Remove lib/allocator.h.
12185         (Depends-on): Add allocator.
12186
12187         stdlib: let modules use system malloc, realloc
12188         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12189         if !_GL_USE_STDLIB_ALLOC.
12190         (malloc, realloc): Limit this change to a smaller scope.
12191
12192         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12193         (malloc, realloc): Don't #undef; no longer needed.
12194         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12195         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12196         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12197         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12198         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12199         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12200         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12201         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12202
12203         careadlinkat: rename members to avoid problem
12204         * lib/allocator.h (struct allocator): Rename members from
12205         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12206         and realloc are #define'd.  Reported by Eric Blake in
12207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12208         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12209
12210 2011-04-08  Eric Blake  <eblake@redhat.com>
12211
12212         nonblocking: reduce dependency
12213         * tests/test-nonblocking.c: Only test sockets when in use.
12214         * modules/nonblocking-tests (Depends-on): Drop socket.
12215         (Makefile.am): Link even if sockets are not present.
12216         * modules/pipe2-tests (Makefile.am): Likewise.
12217         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12218
12219         pipe2: fix O_NONBLOCK support on mingw
12220         * modules/pipe2 (Depends-on): Add nonblocking.
12221         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12222         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12223         * tests/test-nonblocking.c (main): Likewise.
12224         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12225
12226         fcntl-h: fix O_ACCMODE on cygwin
12227         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12228         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12229
12230         pipe-filter: drop O_NONBLOCK workarounds
12231         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12232         * modules/pipe-filter-ii (Depends-on): Likewise.
12233         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12234
12235         nonblocking: provide O_NONBLOCK for mingw
12236         * modules/nonblocking (Depends-on): Add open.
12237         (configure.ac): Set new witness macro.
12238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12239         * modules/fcntl-h (Makefile.am): Substitute it.
12240         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12241         nonblocking module is in use.
12242         * lib/nonblocking.c: Adjust portability test.
12243         * lib/open.c (open): Don't let native open see gnulib flag.
12244         * tests/test-fcntl-h.c (main): Enhance test.
12245         * tests/test-open.h (test_open): Likewise.
12246         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12247
12248         careadlinkat: fix compilation error on mingw
12249         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12250         within struct allocator.
12251
12252 2011-04-06  Eric Blake  <eblake@redhat.com>
12253
12254         binary-io: relicense under LGPLv2+
12255         * modules/binary-io (License): Relax to LGPLv2+.
12256         Requested for libvirt, and required by pipe2.
12257
12258 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         verify: use _Static_assert if available
12261         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12262         (verify_true, verify): Use it if available.  This generates better
12263         diagnostics with GCC 4.6.0 and later.
12264
12265 2011-04-05  Bruno Haible  <bruno@clisp.org>
12266
12267         Remove leftover generated .h files after config.status changed.
12268
12269         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12270         GL_GENERATE_ALLOCA_H.
12271         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12272         GL_GENERATE_ALLOCA_H evaluates to false.
12273
12274         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12275         GL_GENERATE_ARGZ_H.
12276         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12277         evaluates to false.
12278
12279         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12280         GL_GENERATE_BYTESWAP_H.
12281         * modules/byteswap (Makefile.am): Remove byteswap.h if
12282         GL_GENERATE_BYTESWAP_H evaluates to false.
12283
12284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12285         GL_GENERATE_ERRNO_H.
12286         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12287         evaluates to false.
12288
12289         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12290         GL_GENERATE_FLOAT_H.
12291         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12292         evaluates to false.
12293
12294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12295         GL_GENERATE_FNMATCH_H.
12296         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12297         GL_GENERATE_FNMATCH_H evaluates to false.
12298
12299         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12300         GL_GENERATE_GLOB_H.
12301         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12302         evaluates to false.
12303
12304         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12305         automake conditional GL_GENERATE_ICONV_H.
12306         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12307         evaluates to false.
12308
12309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12310         GL_GENERATE_NETINET_IN_H.
12311         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12312         GL_GENERATE_NETINET_IN_H evaluates to false.
12313
12314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12315         conditional GL_GENERATE_PTHREAD_H.
12316         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12317         * modules/pthread (Makefile.am): Remove pthread.h if
12318         GL_GENERATE_PTHREAD_H evaluates to false.
12319
12320         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12321         GL_GENERATE_SCHED_H.
12322         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12323         evaluates to false.
12324
12325         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12326         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12327         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12328         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12329
12330         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12331         GL_GENERATE_STDARG_H.
12332         * modules/stdarg (Makefile.am): Remove stdarg.h if
12333         GL_GENERATE_STDARG_H evaluates to false.
12334
12335         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12336         GL_GENERATE_STDBOOL_H.
12337         * modules/stdbool (Makefile.am): Remove stdbool.h if
12338         GL_GENERATE_STDBOOL_H evaluates to false.
12339
12340         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12341         conditional GL_GENERATE_STDDEF_H.
12342         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12343         * modules/stddef (Makefile.am): Remove stddef.h if
12344         GL_GENERATE_STDDEF_H evaluates to false.
12345
12346         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12347         GL_GENERATE_STDINT_H.
12348         * modules/stdint (Makefile.am): Remove stdint.h if
12349         GL_GENERATE_STDINT_H evaluates to false.
12350
12351         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12352         GL_GENERATE_SYSEXITS_H.
12353         * modules/sysexits (Makefile.am): Remove sysexits.h if
12354         GL_GENERATE_SYSEXITS_H evaluates to false.
12355
12356         Reported by Karl Berry and Ralf Wildenhues.
12357
12358 2011-04-05  Bruno Haible  <bruno@clisp.org>
12359
12360         Ensure to rebuild generated .h files when config.status has changed.
12361         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12362         config.status.
12363         * modules/ctype (Makefile.am): Likewise.
12364         * modules/dirent (Makefile.am): Likewise.
12365         * modules/errno (Makefile.am): Likewise.
12366         * modules/fcntl-h (Makefile.am): Likewise.
12367         * modules/float (Makefile.am): Likewise.
12368         * modules/getopt-posix (Makefile.am): Likewise.
12369         * modules/glob (Makefile.am): Likewise.
12370         * modules/iconv-h (Makefile.am): Likewise.
12371         * modules/inttypes (Makefile.am): Likewise.
12372         * modules/langinfo (Makefile.am): Likewise.
12373         * modules/locale (Makefile.am): Likewise.
12374         * modules/math (Makefile.am): Likewise.
12375         * modules/netdb (Makefile.am): Likewise.
12376         * modules/netinet_in (Makefile.am): Likewise.
12377         * modules/poll-h (Makefile.am): Likewise.
12378         * modules/pthread (Makefile.am): Likewise.
12379         * modules/pty (Makefile.am): Likewise.
12380         * modules/sched (Makefile.am): Likewise.
12381         * modules/search (Makefile.am): Likewise.
12382         * modules/selinux-h (Makefile.am): Likewise.
12383         * modules/signal (Makefile.am): Likewise.
12384         * modules/spawn (Makefile.am): Likewise.
12385         * modules/stdarg (Makefile.am): Likewise.
12386         * modules/stdbool (Makefile.am): Likewise.
12387         * modules/stddef (Makefile.am): Likewise.
12388         * modules/stdint (Makefile.am): Likewise.
12389         * modules/stdio (Makefile.am): Likewise.
12390         * modules/stdlib (Makefile.am): Likewise.
12391         * modules/string (Makefile.am): Likewise.
12392         * modules/strings (Makefile.am): Likewise.
12393         * modules/sys_file (Makefile.am): Likewise.
12394         * modules/sys_ioctl (Makefile.am): Likewise.
12395         * modules/sys_select (Makefile.am): Likewise.
12396         * modules/sys_socket (Makefile.am): Likewise.
12397         * modules/sys_stat (Makefile.am): Likewise.
12398         * modules/sys_time (Makefile.am): Likewise.
12399         * modules/sys_times (Makefile.am): Likewise.
12400         * modules/sys_utsname (Makefile.am): Likewise.
12401         * modules/sys_wait (Makefile.am): Likewise.
12402         * modules/sysexits (Makefile.am): Likewise.
12403         * modules/termios (Makefile.am): Likewise.
12404         * modules/time (Makefile.am): Likewise.
12405         * modules/unistd (Makefile.am): Likewise.
12406         * modules/wchar (Makefile.am): Likewise.
12407         * modules/wctype-h (Makefile.am): Likewise.
12408         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12409
12410 2011-04-05  Bruno Haible  <bruno@clisp.org>
12411
12412         pipe2: Relicense under LGPLv2+.
12413         * modules/pipe2 (License): Change to LGPLv2+.
12414         Requested by Eric Blake, for libvirt.
12415
12416 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12417
12418         bootstrap: compute gnulib_extra_files after updating build_aux
12419         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12420         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12421
12422 2011-04-05  Eric Blake  <eblake@redhat.com>
12423
12424         bootstrap: preserve git whitelist item sorting
12425         * build-aux/bootstrap (sort_patterns): New function.
12426         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12427
12428 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12429
12430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12431         sc_space_tab check.
12432
12433 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12434
12435         areadlink, areadlinkat: rewrite in terms of careadlinkat
12436         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12437         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12438         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12439         (malloc, realloc): Remove #undefs.
12440         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12441         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12442         readlink, ssize_t, stdint, unistd.
12443         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12444         areadlink, stdint.
12445
12446         careadlinkat: new module
12447         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12448         * modules/careadlinkat: New files, written by me with
12449         a review and feedback from Ben Pfaff in
12450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12451
12452 2011-04-01  Bruno Haible  <bruno@clisp.org>
12453
12454         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12455         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12456         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12457         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12458         Reported by Bruce Korb <bruce.korb@gmail.com>.
12459
12460 2011-04-01  Bruno Haible  <bruno@clisp.org>
12461
12462         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12463         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12464         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12465         * modules/wcpcpy (Depends-on): Add extensions.
12466         * modules/wcpncpy (Depends-on): Likewise.
12467         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12468         systems.
12469         * doc/posix-functions/wcpncpy.texi: Likewise.
12470         * doc/posix-functions/wcwidth.texi: Likewise.
12471
12472 2011-03-31  Eric Blake  <eblake@redhat.com>
12473
12474         nonblocking: fix mingw test failures
12475         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12476         non-blocking flag on regular file.
12477         (get_nonblocking_flag): Set errno on invalid fd.
12478         * tests/test-nonblocking.c (main): Avoid test failure on
12479         directories if fchdir is not active.
12480         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12481
12482 2011-03-31  Bruno Haible  <bruno@clisp.org>
12483
12484         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12485         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12486         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12487         Reported by Simon Josefsson <simon@josefsson.org>.
12488
12489 2011-03-31  Bruno Haible  <bruno@clisp.org>
12490         and Eric Blake  <eblake@redhat.com>
12491
12492         nonblocking: new module
12493         * modules/nonblocking: New module.
12494         * modules/nonblocking-tests: Likewise.
12495         * lib/nonblocking.h: New file.
12496         * lib/nonblocking.c: Likewise.
12497         * tests/test-nonblocking.c: New test.
12498         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12499
12500 2011-03-30  Bruno Haible  <bruno@clisp.org>
12501
12502         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12503         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12504         instead of 'printf' format for GCC >= 4.4.
12505         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12506         (fprintf, printf, vfprintf, vprintf): Declare with
12507         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12508         the system's vfprintf() function.
12509         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12510
12511 2011-03-30  Eric Blake  <eblake@redhat.com>
12512
12513         passfd: fix scoping bug
12514         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12515         before sendmsg/recvmsg.
12516
12517         passfd: standardize coding conventions
12518         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12519         can be learned at compile time.
12520         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12521         ifdefs.
12522         (sendfd, recvfd): Follow gnulib code conventions.
12523
12524         passfd: fix incorrect sendmsg arguments
12525         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12526         incorrect msg_controllen value.
12527         * modules/passfd-tests (Depends-on): Check for alarm.
12528         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12529         Reported by Bastien ROUCARIES.
12530
12531 2011-03-30  Bruno Haible  <bruno@clisp.org>
12532
12533         c-strcasestr: Relicense under LGPLv2+.
12534         * modules/c-strcasestr (License): Change to LGPLv2+.
12535         Requested by Eric Blake, for libvirt.
12536
12537 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12538
12539         * users.txt: Add libidn2.  Fix libtasn1 link.
12540
12541 2011-03-30  Jim Meyering  <meyering@redhat.com>
12542
12543         tests: readlink* ("",... fails with EINVAL on newer kernels
12544         readlink and readlinkat have typically failed with ENOENT for
12545         the invalid, empty file name,  "".  However, with the advent
12546         of linux-2.6.39, they fail with EINVAL.
12547         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12548         when operating on the empty file name.
12549         * tests/test-readlink.h (test_readlink): Likewise.
12550
12551 2011-03-29  Bruno Haible  <bruno@clisp.org>
12552
12553         Relicense some modules under LGPLv2+, for libidn2.
12554         * modules/array-mergesort (License): Change to LGPLv2+.
12555         * modules/c-strcaseeq (License): Likewise.
12556         * modules/striconveh (License): Likewise.
12557         * modules/striconveha (License): Likewise.
12558         * modules/uniconv/base (License): Likewise.
12559         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12560         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12561         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12562         * modules/unictype/base (License): Likewise.
12563         * modules/unictype/bidiclass-of (License): Likewise.
12564         * modules/unictype/category-M (License): Likewise.
12565         * modules/unictype/category-none (License): Likewise.
12566         * modules/unictype/category-of (License): Likewise.
12567         * modules/unictype/category-test (License): Likewise.
12568         * modules/unictype/category-test-withtable (License): Likewise.
12569         * modules/unictype/combining-class (License): Likewise.
12570         * modules/unictype/joiningtype-of (License): Likewise.
12571         * modules/unictype/scripts (License): Likewise.
12572         * modules/uninorm/base (License): Likewise.
12573         * modules/uninorm/canonical-decomposition (License): Likewise.
12574         * modules/uninorm/composition (License): Likewise.
12575         * modules/uninorm/decompose-internal (License): Likewise.
12576         * modules/uninorm/decomposition-table (License): Likewise.
12577         * modules/uninorm/nfc (License): Likewise.
12578         * modules/uninorm/nfd (License): Likewise.
12579         * modules/uninorm/u32-normalize (License): Likewise.
12580         * modules/unistr/base (License): Likewise.
12581         * modules/unistr/u32-cpy (License): Likewise.
12582         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12583         * modules/unistr/u32-to-u8 (License): Likewise.
12584         * modules/unistr/u32-uctomb (License): Likewise.
12585         * modules/unistr/u8-check (License): Likewise.
12586         * modules/unistr/u8-mblen (License): Likewise.
12587         * modules/unistr/u8-mbtouc (License): Likewise.
12588         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12589         * modules/unistr/u8-mbtoucr (License): Likewise.
12590         * modules/unistr/u8-prev (License): Likewise.
12591         * modules/unistr/u8-strlen (License): Likewise.
12592         * modules/unistr/u8-to-u32 (License): Likewise.
12593         * modules/unistr/u8-uctomb (License): Likewise.
12594         * modules/unitypes (License): Likewise.
12595         Requested by Simon Josefsson.
12596
12597 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12598
12599         lib-symbol-visibility: Add a notice.
12600         * modules/lib-symbol-visibility (Notice): New field.
12601
12602 2011-03-29  Bruno Haible  <bruno@clisp.org>
12603
12604         getaddrinfo: Doc fix.
12605         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12606         section "fixed in Gnulib".
12607
12608 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12609
12610         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12611         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12612
12613 2011-03-26  Bruno Haible  <bruno@clisp.org>
12614
12615         unictype/property-byname: Reduce the number of load-time relocations.
12616         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12617         (UC_PROPERTY_INDEX_*): New enumeration values.
12618         (uc_property_byname): Convert an index from the lookup table to an
12619         uc_property_t.
12620         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12621         values.
12622
12623 2011-03-26  Bruno Haible  <bruno@clisp.org>
12624
12625         unictype/property-byname: Allow omitted word separators and aliases.
12626         * lib/unictype/pr_byname.gperf: Add property names without word
12627         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12628         for 'space'.
12629
12630 2011-03-26  Bruno Haible  <bruno@clisp.org>
12631
12632         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12633         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12634         also hyphens to space.
12635         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12636         without spaces.
12637         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12638
12639 2011-03-26  Bruno Haible  <bruno@clisp.org>
12640
12641         unictype/joiningtype-byname: Recognize long names as well.
12642         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12643         a long name.
12644         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12645         unictype/joiningtype_byname.h.
12646         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12647         * lib/unictype/joiningtype_byname.gperf: New file.
12648         * modules/unictype/joiningtype-byname (Files): Add
12649         lib/unictype/joiningtype_byname.gperf.
12650         (Depends-on): Add gperf.
12651         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12652         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12653         long names.
12654
12655         Tests for module 'unictype/joiningtype-longname'.
12656         * modules/unictype/joiningtype-longname-tests: New file.
12657         * tests/unictype/test-joiningtype_longname.c: New file.
12658
12659         New module 'unictype/joiningtype-longname'.
12660         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12661         * lib/unictype/joiningtype_longname.c: New file.
12662         * modules/unictype/joiningtype-longname: New file.
12663         * modules/unictype/joiningtype-all (Depends-on): Add
12664         unictype/joiningtype-longname.
12665
12666 2011-03-26  Bruno Haible  <bruno@clisp.org>
12667
12668         unictype/bidiclass-byname: Recognize long names as well.
12669         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12670         name.
12671         * lib/unictype/bidi_byname.c: Include <string.h>,
12672         unictype/bidi_byname.h.
12673         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12674         * lib/unictype/bidi_byname.gperf: New file.
12675         * modules/unictype/bidiclass-byname (Files): Add
12676         lib/unictype/bidi_byname.gperf.
12677         (Depends-on): Add gperf.
12678         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12679         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12680         long names.
12681
12682         Tests for module 'unictype/bidiclass-longname'.
12683         * modules/unictype/bidiclass-longname-tests: New file.
12684         * tests/unictype/test-bidi_longname.c: New file.
12685
12686         New module 'unictype/bidiclass-longname'.
12687         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12688         * lib/unictype/bidi_longname.c: New file.
12689         * modules/unictype/bidiclass-longname: New file.
12690         * modules/unictype/bidiclass-all (Depends-on): Add
12691         unictype/bidiclass-longname.
12692
12693 2011-03-26  Bruno Haible  <bruno@clisp.org>
12694
12695         unictype/bidi*: Rename modules.
12696         * modules/unictype/bidiclass-all: Renamed from
12697         modules/unictype/bidicategory-all.
12698         * modules/unictype/bidiclass-name: Renamed from
12699         modules/unictype/bidiclass-name.
12700         (Description): Update.
12701         * modules/unictype/bidiclass-name-tests: Renamed from
12702         modules/unictype/bidicategory-name-tests.
12703         * modules/unictype/bidiclass-byname: Renamed from
12704         modules/unictype/bidicategory-byname.
12705         (Description): Update.
12706         * modules/unictype/bidiclass-byname-tests: Renamed from
12707         modules/unictype/bidicategory-byname-tests.
12708         * modules/unictype/bidiclass-of: Renamed from
12709         modules/unictype/bidicategory-of.
12710         (Description): Update.
12711         * modules/unictype/bidiclass-of-tests: Renamed from
12712         modules/unictype/bidicategory-of-tests.
12713         * modules/unictype/bidiclass-test: Renamed from
12714         modules/unictype/bidicategory-test.
12715         (Description): Update.
12716         * modules/unictype/bidiclass-test-tests: Renamed from
12717         modules/unictype/bidicategory-test-tests.
12718         * modules/unictype/bidicategory-all: New file, a simple redirection.
12719         * modules/unictype/bidicategory-name: Likewise.
12720         * modules/unictype/bidicategory-byname: Likewise.
12721         * modules/unictype/bidicategory-of: Likewise.
12722         * modules/unictype/bidicategory-test: Likewise.
12723         * modules/unictype/property-bidi-* (Dependencies): Update.
12724         * lib/unictype/bidi_*.c: Update comment.
12725
12726 2011-03-26  Bruno Haible  <bruno@clisp.org>
12727
12728         unictype/bidi*: Rename functions, part 2.
12729         * modules/unictype/bidicategory-name (configure.ac): Update required
12730         libunistring version.
12731         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12732
12733 2011-03-25  Bruno Haible  <bruno@clisp.org>
12734
12735         New module 'unictype/combining-class-all'.
12736         * modules/unictype/combining-class-all: New file.
12737
12738         Tests for module 'unictype/combining-class-byname'.
12739         * modules/unictype/combining-class-byname-tests: New file.
12740         * tests/unictype/test-combiningclass_byname.c: New file.
12741
12742         New module 'unictype/combining-class-byname'.
12743         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12744         * lib/unictype/combiningclass_byname.c: New file.
12745         * lib/unictype/combiningclass_byname.gperf: New file.
12746         * modules/unictype/combining-class-byname: New file.
12747
12748         Tests for module 'unictype/combining-class-longname'.
12749         * modules/unictype/combining-class-longname-tests: New file.
12750         * tests/unictype/test-combiningclass_longname.c: New file.
12751
12752         New module 'unictype/combining-class-longname'.
12753         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12754         * lib/unictype/combiningclass_longname.c: New file.
12755         * modules/unictype/combining-class-longname: New file.
12756
12757         Tests for module 'unictype/combining-class-name'.
12758         * modules/unictype/combining-class-name-tests: New file.
12759         * tests/unictype/test-combiningclass_name.c: New file.
12760
12761         New module 'unictype/combining-class-name'.
12762         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12763         * lib/unictype/combiningclass_name.c: New file.
12764         * modules/unictype/combining-class-name: New file.
12765
12766 2011-03-25  Bruno Haible  <bruno@clisp.org>
12767
12768         unictype/combining-class: Rename source files.
12769         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12770         of unictype/combining.h.
12771         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12772         Update.
12773         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12774         * modules/unictype/combining-class (Description): Fix.
12775         (Files, Makefile.am): Update.
12776         * tests/unictype/test-combiningclass.c: Renamed from
12777         tests/unictype/test-combining.c.
12778         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12779
12780 2011-03-25  Bruno Haible  <bruno@clisp.org>
12781
12782         unictype: Update list of canonical combining classes.
12783         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12784
12785 2011-03-25  Bruno Haible  <bruno@clisp.org>
12786
12787         unictype/category-byname: Recognize long names as well.
12788         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12789         a long name.
12790         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12791         unictype/categ_byname.h.
12792         (UC_CATEGORY_INDEX_*): New enumeration values.
12793         (uc_general_category_byname): Use uc_general_category_lookup and
12794         convert from index to value.
12795         * lib/unictype/categ_byname.gperf: New file.
12796         * modules/unictype/category-byname (Files): Add
12797         lib/unictype/categ_byname.gperf.
12798         (Depends-on): Add gperf.
12799         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12800         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12801         long names.
12802
12803         Tests for module 'unictype/category-longname'.
12804         * modules/unictype/category-longname-tests: New file.
12805         * tests/unictype/test-categ_longname.c: New file.
12806
12807         New module 'unictype/category-longname'.
12808         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12809         * lib/unictype/categ_longname.c: New file.
12810         * modules/unictype/category-longname: New file.
12811         * modules/unictype/category-all (Depends-on): Add it.
12812
12813 2011-03-25  Bruno Haible  <bruno@clisp.org>
12814
12815         Tests for module 'unictype/category-LC'.
12816         * modules/unictype/category-LC-tests: New file.
12817         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12818
12819         New module 'unictype/category-LC'.
12820         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12821         (UC_CATEGORY_LC): New declaration.
12822         (UC_CASED_LETTER): New macro.
12823         * lib/gen-uni-tables.c (is_category_LC): New function.
12824         (output_categories): Also handle category LC.
12825         (UC_CATEGORY_MASK_LC): New enumeration value.
12826         (general_category_byname): Also handle category LC.
12827         * lib/unictype/categ_LC.c: New file.
12828         * lib/unictype/categ_LC.h: New file, automatically generated.
12829         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12830         category LC.
12831         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12832         * modules/unictype/category-LC: New file.
12833         * modules/unictype/category-byname (Depends-on): Add
12834         unictype/category-LC.
12835         * modules/unictype/category-all (Depends-on): Likewise.
12836
12837 2011-03-25  Eric Blake  <eblake@redhat.com>
12838
12839         xmalloc: revert yesterday's regression
12840         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12841         realloc's underlying behavior (allowing allocation of zero-size
12842         objects, especially if malloc-gnu is also in use).
12843
12844 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12845
12846         maint.mk: add missing version to VC-tag
12847         * top/maint.mk: git tag was missing actual tag name; add it.
12848
12849         valgrind: do leak checking, and exit with code 1 on error (not 0)
12850         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12851         to VALGRIND.
12852
12853 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12854
12855         posix-modules: say what it does.
12856         * posix-modules: Add a line to the --help output saying what it does.
12857
12858 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12859
12860         xmalloc: Do not leak if underlying realloc is C99 compatible.
12861         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12862         This avoids a leak on C99-based systems.  See
12863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12864
12865 2011-03-24  Eric Blake  <eblake@redhat.com>
12866
12867         realloc: document portability problem
12868         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12869         passing 0 size to realloc.
12870
12871 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12872
12873         doc: update users.txt
12874         * users.txt: Add cvsps, tmpwatch
12875
12876 2011-03-23  Matt Rice  <ratmice@gmail.com>
12877
12878         doc: update users.txt
12879         * users.txt: Add gdb.
12880
12881 2011-03-23  Jim Meyering  <meyering@redhat.com>
12882
12883         doc: update users.txt
12884         Looking through matches up to the following URL (there are still
12885         several more pages), I found several projects that use gnulib:
12886         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12887         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12888         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12889
12890 2011-03-22  Bruno Haible  <bruno@clisp.org>
12891
12892         unictype/bidi*: Rename functions.
12893         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12894         uc_bidi_class, uc_is_bidi_class): New declarations.
12895         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12896         uc_bidi_category_byname.
12897         (uc_bidi_category_byname): New function.
12898         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12899         u_bidi_category_name.
12900         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12901         (uc_bidi_category_name): New function.
12902         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12903         uc_bidi_category.
12904         (uc_bidi_category): New function.
12905         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12906         uc_is_bidi_category. Invoke uc_bidi_class.
12907         (uc_is_bidi_category): New function.
12908         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12909         instead of uc_bidi_category_byname.
12910         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12911         instead of uc_bidi_category_name.
12912         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12913         uc_bidi_category.
12914         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12915         instead of uc_is_bidi_category.
12916
12917 2011-03-21  Bruno Haible  <bruno@clisp.org>
12918
12919         New module 'unictype/joininggroup-all'.
12920         * modules/unictype/joininggroup-all: New file.
12921
12922         Tests for module 'unictype/joininggroup-of'.
12923         * modules/unictype/joininggroup-of-tests: New file.
12924         * tests/unictype/test-joininggroup_of.c: New file.
12925         * tests/unictype/test-joininggroup_of.h: New file, automatically
12926         generated by gen-uni-tables.
12927
12928         New module 'unictype/joininggroup-of'.
12929         * modules/unictype/joininggroup-of: New file.
12930         * lib/unictype/joininggroup_of.c: New file.
12931         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12932         gen-uni-tables.
12933
12934         Tests for module 'unictype/joininggroup-byname'.
12935         * modules/unictype/joininggroup-byname-tests: New file.
12936         * tests/unictype/test-joininggroup_byname.c: New file.
12937
12938         New module 'unictype/joininggroup-byname'.
12939         * modules/unictype/joininggroup-byname: New file.
12940         * lib/unictype/joininggroup_byname.c: New file.
12941         * lib/unictype/joininggroup_byname.gperf: New file.
12942
12943         Tests for module 'unictype/joininggroup-name'.
12944         * modules/unictype/joininggroup-name-tests: New file.
12945         * tests/unictype/test-joininggroup_name.c: New file.
12946
12947         New module 'unictype/joininggroup-name'.
12948         * modules/unictype/joininggroup-name: New file.
12949         * lib/unictype/joininggroup_name.c: New file.
12950         * lib/unictype/joininggroup_name.h: New file.
12951
12952         New module 'unictype/joiningtype-all'.
12953         * modules/unictype/joiningtype-all: New file.
12954
12955         Tests for module 'unictype/joiningtype-of'.
12956         * modules/unictype/joiningtype-of-tests: New file.
12957         * tests/unictype/test-joiningtype_of.c: New file.
12958         * tests/unictype/test-joiningtype_of.h: New file, automatically
12959         generated by gen-uni-tables.
12960
12961         New module 'unictype/joiningtype-of'.
12962         * modules/unictype/joiningtype-of: New file.
12963         * lib/unictype/joiningtype_of.c: New file.
12964         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12965         gen-uni-tables.
12966
12967         Tests for module 'unictype/joiningtype-byname'.
12968         * modules/unictype/joiningtype-byname-tests: New file.
12969         * tests/unictype/test-joiningtype_byname.c: New file.
12970
12971         New module 'unictype/joiningtype-byname'.
12972         * modules/unictype/joiningtype-byname: New file.
12973         * lib/unictype/joiningtype_byname.c: New file.
12974
12975         Tests for module 'unictype/joiningtype-name'.
12976         * modules/unictype/joiningtype-name-tests: New file.
12977         * tests/unictype/test-joiningtype_name.c: New file.
12978
12979         New module 'unictype/joiningtype-name'.
12980         * modules/unictype/joiningtype-name: New file.
12981         * lib/unictype/joiningtype_name.c: New file.
12982
12983         unictype: Add support for Arabic shaping properties.
12984         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12985         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12986         declarations.
12987         (UC_JOINING_GROUP_*): New enumeration values.
12988         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12989         declarations.
12990         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12991         (unicode_joining_type): New variable.
12992         (UC_JOINING_GROUP_*): New enumeration values.
12993         (unicode_joining_group): New variable.
12994         (fill_arabicshaping, joining_type_as_c_identifier,
12995         output_joining_type_test, output_joining_type,
12996         joining_group_as_c_identifier, output_joining_group_test,
12997         output_joining_group): New functions.
12998         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12999         fill_arabicshaping and output_joining_type_test, output_joining_type,
13000         output_joining_group_test, output_joining_group.
13001         Reported by Simon Josefsson.
13002
13003 2011-03-21  Jim Meyering  <meyering@redhat.com>
13004
13005         strftime: fix a bug in yesterday's change
13006         * lib/strftime.c (add): Accommodate width's initial value of -1.
13007         Otherwise, nstrftime would copy uninitialized data into
13008         the result buffer.
13009
13010 2011-03-21  Jim Meyering  <meyering@redhat.com>
13011
13012         tests: add strftime-tests module
13013         * tests/test-strftime.c: New file.
13014         * modules/strftime-tests: New module.
13015
13016 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13017
13018         strftime: don't assume a byte count fits in 'int'
13019         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13020         found this problem by static analysis, using gcc -Wstrict-overflow
13021         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13022         on an integer overflow having undefined behavior, but it turns out
13023         that the argument is a size, which might not fit in 'int' anyway,
13024
13025 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13026
13027         stdio: don't require ignore_value around fwrite
13028
13029         This patch works around libc bug 11959
13030         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13031         Without this patch, applications must often write
13032         ignore_value (fwrite (...)) even though the ignore_value is
13033         not helpful here.  It's common to write many objects, using
13034         fwrite/printf/etc., and then use ferror to detect output error.
13035
13036         I considered making this patch optional, but decided against it,
13037         because libc is obviously being inconsistent here: there is no
13038         reason libc should insist that user code must inspect fwrite
13039         return's value without also insisting that it inspect printf's,
13040         putchar's, etc.  If user code wants to have a strict style where
13041         all these functions' values are checked (so that ferror need not
13042         be checked), we could add support for that style in a new gnulib
13043         module, but in the meantime it's better to be consistent and to
13044         support common usage.
13045
13046         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13047         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13048         that we are compiling in checking mode, and if not C++, and
13049         if not already wrapping fwrite for some other reason.
13050         (fwrite): #define to rpl_fwrite if the latter is defined.
13051
13052 2011-03-20  Bruno Haible  <bruno@clisp.org>
13053
13054         verror: Fix compilation error introduced on 2011-02-13.
13055         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13056         instead of __attribute__.
13057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13058
13059 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13060             Bruno Haible  <bruno@clisp.org>
13061
13062         socklen: do not depend on sys_socket
13063         While trying to modify Emacs to use gnulib's socklen module,
13064         I discovered a circular dependency: socklen depends on sys_socket
13065         and vice versa.  Emacs can use socklen, but it does not need
13066         sys_socket because it has its own substitute for sys/socket.h.
13067         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13068         gl_TYPE_SOCKLEN_T.
13069         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13070         gl_PREREQ_SYS_H_SOCKET.
13071         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13072         gl_PREREQ_SYS_H_SOCKET.
13073         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13074         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13075         * modules/socklen (Depends-on): Do not depend on sys_socket.
13076         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13077
13078 2011-03-20  Jim Meyering  <meyering@redhat.com>
13079
13080         maint.mk: sort file names *after* new transformation
13081         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13082         prefix would have led to an unwarranted failure in GNU parted.
13083         Sort after that transformation.
13084
13085 2011-03-19  Jim Meyering  <meyering@redhat.com>
13086
13087         maint.mk: fix po-file syntax-check rule
13088         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13089         Patch by Bruno Haible.
13090
13091 2011-03-19  Bruno Haible  <bruno@clisp.org>
13092
13093         socklen: Update comment.
13094         * m4/socklen.m4: Update comment about platforms.
13095
13096 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13097             Bruno Haible  <bruno@clisp.org>
13098
13099         inet_ntop, inet_pton: Simplify.
13100         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13101         documented to provide socklen_t and we already depend on sys_socket.
13102         * modules/inet_pton (Depends-on): Likewise.
13103         * lib/arpa_inet.in.h: Adjust comment.
13104
13105 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13106             Bruno Haible  <bruno@clisp.org>
13107
13108         netdb: Simplify.
13109         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13110         documented to provide socklen_t and we already depend on sys_socket.
13111         * lib/netdb.in.h: Adjust comment.
13112
13113 2011-03-19  Bruno Haible  <bruno@clisp.org>
13114
13115         sys_socket, netdb: Document problem with socklen_t.
13116         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13117         platforms.
13118         * doc/posix-headers/netdb.texi: Likewise.
13119
13120 2011-03-18  Eric Blake  <eblake@redhat.com>
13121
13122         maint.mk: let po check work in VPATH build
13123         * top/maint.mk (po_file): Allow cfg.mk override.
13124         (sc_po_check): Allow VPATH use.
13125         Reported by Jiri Denemark.
13126
13127 2011-03-16  Jim Meyering  <meyering@redhat.com>
13128
13129         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13130         Before, you would have had to create one .x-sc_ file per rule in order
13131         to exempt offending files.  Now, you may instead use a Make variable --
13132         usually defined in cfg.mk -- whose name identifies the affected rule.
13133         * top/maint.mk (_sc_excl): Define.
13134         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13135         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13136
13137 2011-03-13  Bruno Haible  <bruno@clisp.org>
13138
13139         ignore-value tests: Avoid warnings.
13140         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13141         empty for gcc < 3.4.
13142
13143 2011-03-13  Bruno Haible  <bruno@clisp.org>
13144
13145         passfd: Fix link error on Solaris.
13146         * modules/passfd (Description): Correct.
13147         (Depends-on): Add socketlib.
13148         (Link): New section.
13149         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13150
13151 2011-03-13  Bruno Haible  <bruno@clisp.org>
13152
13153         passfd: Fix link error on AIX 5.2.
13154         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13155
13156 2011-03-13  Bruno Haible  <bruno@clisp.org>
13157
13158         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13159         * lib/sys_socket.in.h: Include <stddef.h>.
13160         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13161         CMSG_FIRSTHDR. Remove unused variable.
13162
13163 2011-03-13  Bruno Haible  <bruno@clisp.org>
13164
13165         passfd: Fix compilation error on OpenBSD.
13166         * lib/passfd.c: Include <sys/uio.h>.
13167
13168 2011-03-13  Bruno Haible  <bruno@clisp.org>
13169
13170         passfd test: Fix warnings.
13171         * tests/test-passfd.c: Include <sys/wait.h>.
13172         (main): Fix typo.
13173
13174 2011-03-13  Bruno Haible  <bruno@clisp.org>
13175
13176         passfd module, part 4, tweaks.
13177         * tests/test-passfd.c: Reorder includes.
13178         (main): Fix perror and printf calls.
13179
13180 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13181
13182         passfd module, part 4.
13183         * modules/passfd-tests: New file.
13184         * tests/test-passfd.c: New file.
13185
13186 2011-03-13  Jim Meyering  <meyering@redhat.com>
13187
13188         Makefile: rely on GNU make; derive syntax-check rule names
13189         Rather than requiring that each sc_ rule be listed as a dependent
13190         of "check", use features of GNU make to derive the list.
13191         * Makefile (syntax-check-rules): Define.
13192         (check): Depend on the new variable, not the hard-coded list.
13193
13194 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13195             Bruno Haible  <bruno@clisp.org>
13196
13197         passfd module, part 3.
13198         * lib/passfd.h (recvfd): Add a flags argument.
13199         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13200         (recvfd): Add a flags argument.
13201         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13202         exists.
13203         * modules/passfd (Depends-on): Add cloexec.
13204         Suggested by Eric Blake.
13205
13206 2011-03-13  Bruno Haible  <bruno@clisp.org>
13207
13208         passfd module, part 2, tweaks.
13209         * modules/passfd (Files): Reorder.
13210         (Depends-on): Remove errno.
13211         (Include): Remove <sys/socket.h>, <sys/un.h>.
13212         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13213         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13214         specification header. Include <sys/socket.h> always. Don't include
13215         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13216         (sendfd): Clarify that it sets errno when it fails.
13217         (recvfd): Fix specification.
13218
13219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13220
13221         passfd module, part 2.
13222         * modules/passfd: New file.
13223         * lib/passfd.h: New file.
13224         * lib/passfd.c: New file.
13225
13226 2011-03-12  Bruno Haible  <bruno@clisp.org>
13227
13228         wcswidth, mbswidth: Avoid integer overflow.
13229         * lib/wcswidth.c: Include <limits.h>.
13230         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13231         * lib/mbswidth.c: Include <limits.h>.
13232         (mbsnwidth): Avoid 'int' overflow.
13233         Reported by Jim Meyering.
13234
13235 2011-03-12  Bruno Haible  <bruno@clisp.org>
13236
13237         futimens, utimensat: Avoid endless recursion on Solaris 10.
13238         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13239         Solaris.
13240         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13241         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13242
13243 2011-03-11  Jim Meyering  <meyering@redhat.com>
13244
13245         maint.mk: relax a regexp to accommodate other formatting styles
13246         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13247         between "ngettext" and the following "(".
13248
13249 2011-03-11  Pádraig Brady <P@draigBrady.com>
13250
13251         maint.mk: suppress a false positive warning
13252         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13253         diagnostics are marked with ngettext.
13254
13255 2011-03-10  Eric Blake  <eblake@redhat.com>
13256
13257         wchar: add explicit dependencies, for Tru64
13258         * modules/mbmemcasecoll (Depends-on): Add wchar.
13259         * modules/mbtowc (Depends-on): Likewise.
13260         * modules/vasnprintf (Depends-on): Likewise.
13261         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13262         * modules/wctomb (Depends-on): Likewise.
13263         Reported by Peter O'Gorman.
13264
13265 2011-03-08  Bruno Haible  <bruno@clisp.org>
13266
13267         passfd module, part 1, tweaks.
13268         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13269         Improve indentation. Improve AC_MSG_CHECKING messages.
13270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13271         gl_SOCKET_FAMILIES.
13272
13273 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13274
13275         passfd module, part 1.
13276         * m4/afunix.m4: New file.
13277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13278         sockets.
13279
13280 2011-03-08  Bruno Haible  <bruno@clisp.org>
13281
13282         regex-quote: New API.
13283         * lib/regex-quote.h: Include <stdbool.h>.
13284         (struct regex_quote_spec): New type.
13285         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13286         New declarations.
13287         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13288         'const struct regex_quote_spec *' argument.
13289         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13290         (pcre_special): New constant.
13291         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13292         New functions.
13293         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13294         'const struct regex_quote_spec *' argument.
13295         * modules/regex-quote (Depends-on): Add stdbool.
13296         * tests/test-regex-quote.c (check): Update for new API. Add test for
13297         anchored results.
13298         * NEWS: Mention the API change.
13299         Reported by Reuben Thomas and Eric Blake.
13300
13301 2011-03-06  Bruno Haible  <bruno@clisp.org>
13302
13303         regex-quote: Fix creation of POSIX extended regular expressions.
13304         * lib/regex-quote.c (ere_special): Add grouping and alternation
13305         operators.
13306
13307 2011-03-05  Bruno Haible  <bruno@clisp.org>
13308
13309         doc: Improve doc regarding autopoint vs. gnulib.
13310         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13311         disable autopoint while running autoreconf.
13312         Suggested by Ralf Wildenhues.
13313
13314 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13315
13316         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13317         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13318
13319 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13320
13321         parse-duration: remove xalloc.h dependency
13322         * lib/parse-duration.c (parse_period): handle NULL return from
13323         strdup instead of calling xstrdup().
13324         * modules/parse-duration: remove "xalloc" dependency
13325
13326 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13327
13328         bootstrap: honor m4_base when running aclocal
13329         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13330
13331 2011-03-02  Jim Meyering  <meyering@redhat.com>
13332
13333         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13334         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13335         on request from Matt Booth.
13336
13337 2011-03-01  Eric Blake  <eblake@redhat.com>
13338
13339         test-link: work on Hurd
13340         * tests/test-link.h (test_link): Hurd rejects linking directories
13341         with EISDIR instead of the POSIX-mandated EPERM.
13342
13343 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13344
13345         stdio: simplify by moving files to printf-posix, sigpipe
13346         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13347         since this symbol is needed only if printf is replaced.
13348         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13349         Require gl_ASM_SYMBOL_PREFIX.
13350         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13351         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13352         (Depends-on): Add 'raise'.
13353         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13354         * modules/stdio (Files): Remove lib/stdio-write.c,
13355         m4/asm-underscore.m4.
13356         (Depends-on): Remove 'raise'.
13357
13358         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13359         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13360         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13361         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13362
13363 2011-02-28  Bruno Haible  <bruno@clisp.org>
13364
13365         localcharset: Assume ANSI C behaviour of free().
13366         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13367         calling free().
13368         Suggested by Simon Josefsson <simon@josefsson.org>.
13369
13370 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13371             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13372             Bruno Haible  <bruno@clisp.org>  (tiny change)
13373
13374         On Cygwin, use /proc file system instead of win32 API.
13375         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13376         Win32 file names.
13377         (DllMain): Simplify by removing Cygwin specific code.
13378         (find_shared_library_fullname): Use Linux specific implementation also
13379         for Cygwin.
13380         (get_shared_library_fullname): Update accordingly.
13381         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13382         Win32 file names.
13383         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13384         Cygwin specific code.
13385
13386 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13387             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13388
13389         Fix OpenMP flag detection for various Fortran compilers.
13390         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13391         OpenMP-conditional compilation construct, to force compile
13392         failure with missing OpenMP flag.
13393         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13394
13395 2011-02-25  Eric Blake  <eblake@redhat.com>
13396
13397         strstr: expand test coverage
13398         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13399         compilation.
13400         * tests/test-memmem.c (main): Duplicate tests.
13401         * tests/test-strcasestr.c (main): Likewise.
13402         * tests/test-c-strcasestr.c (main): Likewise.
13403
13404 2011-02-25  Jim Meyering  <meyering@redhat.com>
13405
13406         maint.mk: detect missing-NL-at-EOF, too
13407         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13408         it also detects when a file lacks a newline at EOF.
13409         (require_exactly_one_NL_at_EOF_): Renamed from
13410         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13411         since people may well have .x-sc_... file names tied to the
13412         existing name.  Suggested by Eric Blake.
13413
13414 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13415
13416         dirname: move m4/dos.m4 functionality into lib/dosname.h
13417
13418         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13419         extracts symbols from it, puts them into config.h; but it's much
13420         easier to use the symbols directly.  filename.h already does this,
13421         but it disagrees with dos.m4 in some respects.  This patch
13422         introduces a different include file dosname.h that packages up
13423         dos.m4, and then later we can work on merging filename.h and
13424         dosname.h.  Applications that need only the easy-to-configure
13425         symbols should consider including dosname.h rather than dirname.h.
13426         * NEWS: Mention incompatible changes.
13427         * m4/dos.m4: Remove.
13428         * lib/dosname.h, modules/dosname: New files.
13429         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13430         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13431         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13432         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13433         Include dosname.h, not dirname.h.
13434         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13435         Include dosname.h, for definitions of symbols like ISSLASH
13436         that used to be in config.h.
13437         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13439         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13440         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13441         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13442         * modules/rmdir (Files): Likewise.
13443         * modules/stat (Files): Likewise.
13444         * modules/unlink (Files): Likewise.
13445         * modules/dirname-lgpl (Depends-on): Add dosname.
13446         * modules/lstat (Depends-on): Likewise.
13447         * modules/openat (Depends-on): Likewise.
13448         * modules/rmdir (Depends-on): Likewise.
13449         * modules/savewd (Depends-on): Likewise.
13450         * modules/stat (Depends-on): Likewise.
13451         * modules/unlink (Depends-on): Likewise.
13452         * modules/openat (Depends-on): Remove dirname-lgpl.
13453         * modules/savewd (Depends-on): Likewise.
13454         * tests/test-dirname.c: Do not use removed symbols like
13455         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13456         the remaining symbols, e.g., ISSLASH ('\\').
13457
13458 2011-02-25  Eric Blake  <eblake@redhat.com>
13459
13460         strstr: revert patches that introduced bug and pessimization
13461         * lib/str-two-way.h: Add another reference.
13462         (two_way_short_needle, two_way_long_needle): Revert changes from
13463         2011-02-24; they pessimize search speed.
13464         (critical_factorization): Partially revert changes from
13465         2010-06-22; they violate the requirement that the left half of the
13466         needle be smaller than the period of the needle.
13467
13468 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13469
13470         filenamecat: remove unnecessary dependency on dirname-lgpl
13471         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13472         is no direct dependency, just an indirect one via filenamecat-lgpl.
13473
13474         remove: remove unnecessary use of m4/dos.m4
13475         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13476         * modules/remove (FILES): Remove m4/dos.m4.
13477
13478         * lib/openat-proc.c: Don't include dirname.h; not needed.
13479
13480         backupfile: remove unnecessary use of m4/dos.m4
13481         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13482         of its symbols are used by the backupfile code.  backupfile.c does
13483         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13484         for the rare case of programs that want all their backup file
13485         names to live within 8+3 limits, and dos.m4 doesn't address that.
13486         * modules/backupfile (Files): Remove m4/dos.m4.
13487
13488 2011-02-24  Jim Meyering  <meyering@redhat.com>
13489
13490         strstr: fix a bug whereby strstr would mistakenly return NULL
13491         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13492         in period calculation.
13493         (two_way_long_needle): Likewise.
13494         The original problem was reported by Mike Stump in
13495         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13496         Ralf Wildenhues provided the short needle and haystack.
13497         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13498         Add a more involved test to trigger the bug in two_way_long_needle.
13499
13500 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13501
13502         gnulib-tool: remove use of bold display in help screen
13503         * gnulib-tool (func_usage): Do not use bold display anymore in the
13504         help screen.  That was just meant to be a temporary emphasis for a
13505         backward-incompatible change.
13506
13507 2011-02-23  Bruno Haible  <bruno@clisp.org>
13508
13509         Fix misindentation of preprocessor directives.
13510         * lib/argp-namefrob.h: Reindent preprocessor directives.
13511         * lib/getopt_int.h (struct _getopt_data): Likewise.
13512         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13513         * lib/vasnprintf.c (decode_long_double): Likewise.
13514         * tests/test-argmatch.c: Insert blank lines, for clarity.
13515         * tests/test-exclude.c: Likewise.
13516
13517 2011-02-22  Bruno Haible  <bruno@clisp.org>
13518
13519         ioctl: Fix for MacOS X in 64-bit mode.
13520         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13521         value.
13522         Suggested by Eric Blake.
13523         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13524
13525 2011-02-22  Jim Meyering  <meyering@redhat.com>
13526
13527         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13528         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13529         in lib/.
13530
13531 2011-02-22  Eric Blake  <eblake@redhat.com>
13532
13533         maint: avoid any CDPATH issue
13534         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13535
13536         maint: adjust cpp indentation for my modules, as well
13537         * Makefile (sc_cpp_indent_check): Add my name.
13538         * lib/fbufmode.c: Filter through cppi.
13539         * lib/fpurge.c: Likewise.
13540         * lib/freadable.c: Likewise.
13541         * lib/freading.c: Likewise.
13542         * lib/fwritable.c: Likewise.
13543         * lib/fwriting.c: Likewise.
13544         * lib/sigaction.c: Likewise.
13545
13546 2011-02-22  Jim Meyering  <meyering@redhat.com>
13547
13548         maint: adjust cpp indentation to reflect nesting depth
13549         I.e., in a block of code that begins with an unnested "#if",
13550         put one space between the "#" in column 1 and following token.
13551         For example,
13552         -#include <sys/vfs.h>
13553         +# include <sys/vfs.h>
13554         Do this only in .c files that are part of a module I maintain.
13555         * lib/linkat.c: Filter through cppi.
13556         * lib/nanosleep.c: Likewise.
13557         * lib/openat.c: Likewise.
13558         * lib/openat-die.c: Likewise.
13559         * lib/dup3.c: Likewise.
13560         * lib/fchownat.c: Likewise.
13561         * lib/flock.c: Likewise.
13562         * lib/fsync.c: Likewise.
13563         * lib/fts.c: Likewise.
13564         * lib/getpass.c: Likewise.
13565         * lib/gettimeofday.c: Likewise.
13566         * lib/userspec.c: Likewise.
13567         * Makefile (sc_cpp_indent_check): New rule, to check this.
13568
13569 2011-02-22  Bruno Haible  <bruno@clisp.org>
13570
13571         New module 'wctomb'.
13572         * lib/stdlib.in.h (wctomb): New declaration.
13573         * lib/wctomb.c: New file.
13574         * lib/wctomb-impl.h: New file.
13575         * m4/wctomb.m4: New file.
13576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13577         REPLACE_WCTOMB.
13578         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13579         REPLACE_WCTOMB.
13580         * modules/wctomb: New file.
13581         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13582         * doc/posix-functions/wctomb.texi: Mention the new module.
13583         * modules/wctob (Depends-on): Add wctomb.
13584
13585 2011-02-22  Bruno Haible  <bruno@clisp.org>
13586
13587         New module 'mbtowc'.
13588         * lib/stdlib.in.h (mbtowc): New declaration.
13589         * lib/mbtowc.c: New file.
13590         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13591         * m4/mbtowc.m4: New file.
13592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13593         REPLACE_MBTOWC.
13594         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13595         REPLACE_MBTOWC.
13596         * modules/mbtowc: New file.
13597         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13598         * doc/posix-functions/mbtowc.texi: Mention the new module.
13599         * modules/btowc (Depends-on): Add mbtowc.
13600
13601 2011-02-22  Bruno Haible  <bruno@clisp.org>
13602
13603         wcrtomb: Add more tests for native Windows platforms.
13604         * tests/test-wcrtomb-w32-1.sh: New file.
13605         * tests/test-wcrtomb-w32-2.sh: New file.
13606         * tests/test-wcrtomb-w32-3.sh: New file.
13607         * tests/test-wcrtomb-w32-4.sh: New file.
13608         * tests/test-wcrtomb-w32-5.sh: New file.
13609         * tests/test-wcrtomb-w32.c: New file.
13610         * modules/wcrtomb-tests (Files): Add them.
13611         (Makefile.am): Arrange to run these tests.
13612         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13613         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13614
13615 2011-02-20  Bruno Haible  <bruno@clisp.org>
13616
13617         wcrtomb: Enhance test.
13618         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13619
13620 2011-02-20  Bruno Haible  <bruno@clisp.org>
13621
13622         mbrtowc: Tiny optimization.
13623         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13624
13625 2011-02-20  Jim Meyering  <meyering@redhat.com>
13626
13627         test-exclude.c: remove unmatched #endif
13628         * tests/test-exclude.c: Remove stray #endif, left over from
13629         the change of a week ago.
13630
13631 2011-02-19  Jim Meyering  <meyering@redhat.com>
13632
13633         git-version-gen: skip "-dirty" check when appropriate
13634         * build-aux/git-version-gen: Don't run any git commands when the
13635         version string comes from .tarball-version.  Prior to this, we
13636         would run git update-index --refresh even from a just-unpacked
13637         tarball directory, and that could affect a .git/ directory in a
13638         parent of the build directory.  Reported by Mike Frysinger.
13639
13640 2011-02-19  Bruno Haible  <bruno@clisp.org>
13641
13642         unictype/property-byname: Reduce the size of the 'data' segment.
13643         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13644
13645 2011-02-19  Bruno Haible  <bruno@clisp.org>
13646
13647         unictype/scripts: Reduce the size of the 'data' segment.
13648         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13649         '%pic'.
13650         * lib/unictype/scripts_byname.gperf: Regenerated.
13651
13652 2011-02-19  Bruno Haible  <bruno@clisp.org>
13653
13654         stdint: Update documentation.
13655         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13656
13657 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13658
13659         stdint: omit redundant check for wchar.h
13660         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13661         always tests whether wchar.h exists, so remove the now-redundant test.
13662
13663 2011-02-18  Bruno Haible  <bruno@clisp.org>
13664
13665         stdint: Cut dependency to module 'wchar'.
13666         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13667         include the necessary prerequisites.
13668         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13669         * modules/stdint (Depends-on): Remove wchar.
13670         (Makefile.am): Substitute HAVE_WCHAR_H.
13671         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13672
13673 2011-02-18  Eric Blake  <eblake@redhat.com>
13674
13675         longlong: skip, rather than fail, on cross-compilation
13676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13677         when cross-compiling; regression from 2011-02-16.
13678
13679 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         * NEWS: Mention 2011-02-08 change to stdlib.
13682
13683 2011-02-17  Bruno Haible  <bruno@clisp.org>
13684
13685         getloadavg: Add comments about platforms.
13686         * m4/getloadavg.m4: Add comment.
13687         * lib/getloadavg.c: Likewise.
13688
13689 2011-02-17  Bruno Haible  <bruno@clisp.org>
13690
13691         getloadavg: Fix link error on Solaris 2.6.
13692         * modules/getloadavg (Link): New section.
13693         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13694         linking test-getloadavg.
13695         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13696         getloadavg.
13697
13698 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13699
13700         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13701         It was 'int', but this doesn't match the IRIX 6.5 manual.
13702         Suggested by Bruno Haible in
13703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13704
13705 2011-02-17  Bruno Haible  <bruno@clisp.org>
13706
13707         havelib: Fix comments.
13708         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13709         change.
13710
13711 2011-02-17  Bruno Haible  <bruno@clisp.org>
13712
13713         havelib: Update config.rpath.
13714         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13715
13716 2011-02-17  Bruno Haible  <bruno@clisp.org>
13717
13718         getloadavg test: Add some plausibility checks.
13719         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13720         is improbable.
13721
13722 2011-02-16  Eric Blake  <eblake@redhat.com>
13723
13724         maintainer-makefile: make syntax-check a no-op from tarballs
13725         * top/maint.mk (no-vc-detected): New rule.
13726         (local-checks-available): Use it to avoid hanging if someone tries
13727         'make syntax-check' from a tarball.  Also append to any non-syntax
13728         checks already defined in cfg.mk.
13729
13730 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13731
13732         longlong: tune, particularly for common case of c99
13733
13734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13735         or running anything if c99, or if unsigned long long int does not
13736         work.  In either case, we know the answer without further tests.
13737         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13738         it at most once, and use its results for both long long int and
13739         unsigned long long int.  This is more likely to be efficient in
13740         the common case where the program wants to check for both long
13741         long int and unsigned long long int.
13742         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13743         since the answer is already known.
13744
13745 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13746
13747         getloadavg: set errno
13748         * lib/getloadavg.c: Set errno when returning -1.  If no other
13749         error number looks appropriate, set it to ENOSYS if the getloadavg
13750         looks like it can't possibly ever work, ENOTSUP otherwise.
13751         Suggested by Bruno Haible in
13752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13753
13754         getloadavg: trim unused parts and speed up 'configure'
13755         * NEWS: Document this.
13756         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13757         always compiled if getloadavg is absent.
13758         Move test code to ...
13759         * tests/test-getloadavg.c: New file, containing previous
13760         contents of test from lib/getloadavg.c.  It also contains
13761         suggestions by Bruno Haible in
13762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13763         * modules/getloadavg-tests: New file.
13764         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13765         Do tests in the same order as they're needed for getloadavg.c.
13766         Omit setgid-related tests that generate symbols KMEM_GROUP,
13767         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13768         Do only the tests that are needed to see whether the system has
13769         getloadavg, moving the other tests into ...
13770         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13771         NLIST_NAME_UNION; nobody should be using it.  Do not define
13772         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13773         relevant, as the user of this module shouldn't care how getloadavg
13774         is implemented.
13775
13776         getloadavg: omit unused var
13777         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13778
13779 2011-02-15  Jim Meyering  <meyering@redhat.com>
13780
13781         doc: update users.txt
13782         * users.txt: Update iwhd's URL.
13783
13784 2011-02-13  Bruno Haible  <bruno@clisp.org>
13785
13786         Consistent macro naming for macros that use GCC __attribute__.
13787         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13788         _ATTRIBUTE_NONNULL_.
13789         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13790         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13791         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13792         ATTRIBUTE_DEPRECATED.
13793         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13794         ATTRIBUTE_NORETURN.
13795         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13796         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13797         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13798         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13799         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13800         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13801         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13802         ATTRIBUTE_SENTINEL.
13803         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13804         ATTRIBUTE_RETURN_CHECK.
13805         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13806         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13807         ATTRIBUTE_NORETURN.
13808         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13809         Reported by Paul Eggert.
13810
13811 2011-02-13  Bruno Haible  <bruno@clisp.org>
13812
13813         Don't interfere with a program's definition of __attribute__.
13814         * lib/argp.h (__attribute__): Remove definition.
13815         (_GL_ATTRIBUTE_FORMAT): New macro.
13816         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13817         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13818         (_GL_ATTRIBUTE_FORMAT): New macro.
13819         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13820         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13821         GCC 3 or newer.
13822         * lib/error.h (__attribute__): Remove definition.
13823         (_GL_ATTRIBUTE_FORMAT): New macro.
13824         (error, error_at_line): Use it.
13825         * lib/hash.h (__attribute__): Remove definition.
13826         (ATTRIBUTE_WUR): Update definition. Define always.
13827         * lib/openat.h (__attribute__): Remove definition.
13828         (ATTRIBUTE_NORETURN): Update definition. Define always.
13829         * lib/sigpipe-die.h (__attribute__): Remove definition.
13830         (ATTRIBUTE_NORETURN): Update definition. Define always.
13831         * lib/vasnprintf.h (__attribute__): Remove definition.
13832         (_GL_ATTRIBUTE_FORMAT): New macro.
13833         (asnprintf, vasnprintf): Use it.
13834         * lib/xalloc.h (__attribute__): Remove definition.
13835         (ATTRIBUTE_NORETURN): Update definition. Define always.
13836         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13837         * lib/xmemdup0.h (__attribute__): Remove definition.
13838         (ATTRIBUTE_NORETURN): Update definition. Define always.
13839         * lib/xprintf.h (__attribute__): Remove definition.
13840         (_GL_ATTRIBUTE_FORMAT): New macro.
13841         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13842         * lib/xstrtol.h (__attribute__): Remove definition.
13843         (ATTRIBUTE_NORETURN): Update definition. Define always.
13844         * lib/xvasprintf.h (__attribute__): Remove definition.
13845         (_GL_ATTRIBUTE_FORMAT): New macro.
13846         (xasprintf, xvasprintf): Use it.
13847         * tests/test-argmatch.c (__attribute__): Remove definition.
13848         (ATTRIBUTE_NORETURN): Update definition. Define always.
13849         * tests/test-exclude.c (__attribute__): Remove definition.
13850         (ATTRIBUTE_NORETURN): Update definition. Define always.
13851         Reported by Paul Eggert.
13852
13853 2011-02-13  Bruno Haible  <bruno@clisp.org>
13854
13855         mbrtowc: Add more tests for native Windows platforms.
13856         * tests/test-mbrtowc-w32-1.sh: New file.
13857         * tests/test-mbrtowc-w32-2.sh: New file.
13858         * tests/test-mbrtowc-w32-3.sh: New file.
13859         * tests/test-mbrtowc-w32-4.sh: New file.
13860         * tests/test-mbrtowc-w32-5.sh: New file.
13861         * tests/test-mbrtowc-w32.c: New file.
13862         * modules/mbrtowc-tests (Files): Add them.
13863         (Makefile.am): Arrange to run these tests.
13864         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13865         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13866
13867 2011-02-13  Bruno Haible  <bruno@clisp.org>
13868
13869         mbrtowc: Work around native Windows bug.
13870         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13871         guess when no suitable locale for testing was found.
13872         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13873
13874 2011-02-13  Bruno Haible  <bruno@clisp.org>
13875
13876         mbsinit: Work around mingw bug.
13877         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13878         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13879         Windows.
13880         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13881
13882 2011-02-13  Bruno Haible  <bruno@clisp.org>
13883
13884         mbsinit: Don't crash for a NULL argument.
13885         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13886         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13887
13888 2011-02-13  Bruno Haible  <bruno@clisp.org>
13889
13890         Don't interfere with a program's definition of __attribute__.
13891         * lib/stdio.in.h (__attribute__): Remove definition.
13892         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13893         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13894         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13895         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13896         * lib/string.in.h (__attribute__): Remove definition.
13897         Reported by Paul Eggert.
13898
13899 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13900
13901         stdlib: don't get in the way of non-GCC __attribute__
13902         See thread starting at
13903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13904         Revert previous stdlib change, installing the following instead:
13905         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13906         to get in the way of a non-GCC compiler that supports __attribute__.
13907         (_GL_ATTRIBUTE_RETURN): New macro.
13908         (_Exit): Use it instead of __attribute__.
13909
13910 2011-02-12  Bruno Haible  <bruno@clisp.org>
13911
13912         quotearg test: Avoid test failure on mingw.
13913         * tests/test-quotearg.sh: Convert the locale identifier from native
13914         Windows syntax to Unix syntax.
13915
13916 2011-02-12  Bruno Haible  <bruno@clisp.org>
13917
13918         setlocale: Prefer gnulib's override over libintl's override.
13919         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13920         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13921         GNULIB_defined_setlocale is set.
13922
13923 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         stdlib: support non-GCC __attribute__
13926
13927         Fix a serious and tricky problem encountered when attempting to
13928         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13929         5.5, but it crashed due to memory corruption on Solaris 10 with
13930         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13931         bits that are otherwise zero.  This tagging is optional inside
13932         Emacs but is preferred and is used when __attribute__ ((__aligned
13933         (8))) works, as it does with both recent-enough GCC and with Sun C
13934         5.11.  However, Sun C 5.11 is not GCC and does not #define
13935         __GNUC__ and __GNUC_MINOR__.
13936
13937         When I added the getloadavg module to Emacs, it brought in
13938         stdlib.in.h, which contained this fragment:
13939
13940            #ifndef __attribute__
13941            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13942            #  define __attribute__(Spec)   /* empty */
13943            # endif
13944            #endif
13945
13946         When files that include <stdlib.h> were compiled with Sun C 5.11,
13947         the above code disabled __attribute__ ((__aligned (8))), which
13948         caused variables to not be properly aligned, which eventually led
13949         to the pointer corruption mentioned above.  (This was a bit hard
13950         to diagnose, unfortunately.)
13951
13952         Several "#define __attribute__(X) /* empty */" code snippets need
13953         to be eradicated from Gnulib to work with non-GCC compilers that
13954         support __attribute__.  The Autoconf way to do this is to test for
13955         each kind of attribute that we want support for, and selectively
13956         enable that in source code.
13957
13958         Fix this problem just for stdlib.h, by adding a test for the
13959         __noreturn__ attribute, and change stdlib.in.h to use that test
13960         when needed.  This technique can be easily generalized to the
13961         other *.in.h files and attributes, and a similar technique can be
13962         used for *.h and *.c files.  This patch is enough to solve the
13963         problem for Emacs + getloadavg, and I thought I'd publish it for
13964         feedback before undertaking further, similar fixes in other
13965         modules.
13966
13967         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13968         because it's not needed for stdlib.h.  It merely substitutes the
13969         value directly into stdlib.h.  We may well need to #define it, or
13970         similar symbols, for other modules, but it's nice to also have an
13971         option to not #define it for applications like Emacs that do not
13972         need it.
13973
13974         * lib/stdlib.in.h (__attribute__): Do not #define.
13975         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13976         be defined only if the _Exit module is also used.
13977         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13979         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13980         platforms.
13981         * modules/_Exit (Files): Add m4/attribute.m4.
13982         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13983         * m4/attribute.m4: New file.
13984
13985 2011-02-12  Bruno Haible  <bruno@clisp.org>
13986
13987         wcsrtombs: Work around bug on native Windows.
13988         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13989         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13990         instead of len.
13991         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13992
13993 2011-02-12  Bruno Haible  <bruno@clisp.org>
13994
13995         mbsrtowcs: Work around bug on native Windows.
13996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13997         against mingw bug.
13998         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13999
14000 2011-02-12  Bruno Haible  <bruno@clisp.org>
14001
14002         Avoid setlocale bugs in tests.
14003         * modules/btowc (Dependencies): Add setlocale.
14004         * modules/c-strcase (Dependencies): Likewise.
14005         * modules/mbmemcasecmp (Dependencies): Likewise.
14006         * modules/mbmemcasecoll (Dependencies): Likewise.
14007         * modules/mbrtowc (Dependencies): Likewise.
14008         * modules/mbscasecmp (Dependencies): Likewise.
14009         * modules/mbscasestr (Dependencies): Likewise.
14010         * modules/mbschr (Dependencies): Likewise.
14011         * modules/mbscspn (Dependencies): Likewise.
14012         * modules/mbsinit (Dependencies): Likewise.
14013         * modules/mbsncasecmp (Dependencies): Likewise.
14014         * modules/mbsnrtowcs (Dependencies): Likewise.
14015         * modules/mbspbrk (Dependencies): Likewise.
14016         * modules/mbspcasecmp (Dependencies): Likewise.
14017         * modules/mbsrchr (Dependencies): Likewise.
14018         * modules/mbsrtowcs (Dependencies): Likewise.
14019         * modules/mbsspn (Dependencies): Likewise.
14020         * modules/mbsstr (Dependencies): Likewise.
14021         * modules/nl_langinfo (Dependencies): Likewise.
14022         * modules/quotearg (Dependencies): Likewise.
14023         * modules/unicase/locale-language (Dependencies): Likewise.
14024         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14025         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14026         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14027         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14028         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14029         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14030         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14031         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14032         * modules/vasnprintf-posix (Dependencies): Likewise.
14033         * modules/wcrtomb (Dependencies): Likewise.
14034         * modules/wcsnrtombs (Dependencies): Likewise.
14035         * modules/wcsrtombs (Dependencies): Likewise.
14036
14037 2011-02-12  Bruno Haible  <bruno@clisp.org>
14038
14039         setlocale: Workaround native Windows bug.
14040         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14041         succeeds but sets LC_CTYPE to "C", report a failure.
14042         * tests/test-setlocale2.sh: New file.
14043         * tests/test-setlocale2.c: New file.
14044         * modules/setlocale-tests (Files): Add the new files.
14045         (Makefile.am): Enable test-setlocale2.sh test.
14046         * doc/posix-functions/setlocale.texi: Mention workaround.
14047
14048 2011-02-11  Bruno Haible  <bruno@clisp.org>
14049
14050         Tests for module 'setlocale'.
14051         * modules/setlocale-tests: New file.
14052         * tests/test-setlocale1.sh: New file.
14053         * tests/test-setlocale1.c: New file.
14054
14055         New module 'setlocale'.
14056         * lib/locale.in.h (setlocale): New declaration.
14057         * lib/setlocale.c: New file, based on
14058         gettext/gettext-runtime/intl/setlocale.c.
14059         * m4/setlocale.m4: New file.
14060         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14061         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14062         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14063         REPLACE_SETLOCALE.
14064         * modules/setlocale: New file.
14065         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14066         * doc/posix-functions/setlocale.texi: Mention the new module.
14067
14068 2011-02-11  Bruno Haible  <bruno@clisp.org>
14069
14070         Prepare for locale dependent tests on mingw.
14071         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14072         because it has the wrong locale encoding.
14073         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14074         French_France.1252 instead of "fr".
14075         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14076         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14077         because it has the wrong locale encoding.
14078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14079         native Windows, try Turkish_Turkey.65001.
14080         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14081         Chinese_China.54936.
14082
14083         Prepare for locale dependent tests on mingw.
14084         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14085         differently.
14086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14087         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14090
14091 2011-02-11  Eric Blake  <eblake@redhat.com>
14092
14093         strptime: avoid compiler warnings
14094         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14095         compiler warnings about dead code.
14096         Reported by Daniel P. Berrange.
14097
14098 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14099
14100         doc: update users.txt
14101         * users.txt: Add rcs.
14102
14103 2011-02-10  John W. Eaton  <jwe@gnu.org>
14104
14105         doc: update users.txt
14106         * users.txt: Add octave.
14107
14108 2011-02-10  Jim Meyering  <meyering@redhat.com>
14109
14110         doc: update users.txt
14111         * users.txt: Add iwhd.
14112
14113 2011-02-09  Bruno Haible  <bruno@clisp.org>
14114
14115         gnulib-tool: Make copyright notice adjustment more robust.
14116         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14117         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14118         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14119         License".
14120         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14121
14122 2011-02-06  Bruno Haible  <bruno@clisp.org>
14123
14124         New module 'towctrans'.
14125         * modules/towctrans: New file.
14126         * lib/wctype.in.h (towctrans): New declaration.
14127         * lib/towctrans.c: New file.
14128         * lib/towctrans-impl.h: New file.
14129         * m4/towctrans.m4: New file.
14130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14132         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14133         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14134         * doc/posix-functions/towctrans.texi: Mention the new module.
14135
14136 2011-02-06  Bruno Haible  <bruno@clisp.org>
14137
14138         New module 'wctrans'.
14139         * modules/wctrans: New file.
14140         * lib/wctype.in.h (wctrans): New declaration.
14141         * lib/wctrans.c: New file.
14142         * lib/wctrans-impl.h: New file.
14143         * m4/wctrans.m4: New file.
14144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14146         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14147         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14148         * doc/posix-functions/wctrans.texi: Mention the new module.
14149
14150 2011-02-06  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'iswctype'.
14153         * modules/iswctype: New file.
14154         * lib/wctype.in.h (iswctype): New declaration.
14155         * lib/iswctype.c: New file.
14156         * lib/iswctype-impl.h: New file.
14157         * m4/iswctype.m4: New file.
14158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14160         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14161         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14162         * doc/posix-functions/iswctype.texi: Mention the new module and the
14163         HP-UX 11.00 problem.
14164
14165 2011-02-06  Bruno Haible  <bruno@clisp.org>
14166
14167         New module 'wctype'.
14168         * modules/wctype: Change to represent the wctype() substitute.
14169         * lib/wctype.in.h (wctype): New declaration.
14170         * lib/wctype.c: New file.
14171         * lib/wctype-impl.h: New file.
14172         * m4/wctype.m4: New file.
14173         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14174         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14175         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14176         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14177         * doc/posix-functions/wctype.texi: Mention the new module and the
14178         HP-UX 11.00 problem.
14179
14180 2011-02-06  Bruno Haible  <bruno@clisp.org>
14181
14182         wctype-h: Ensure wctype_t and wctrans_t are defined.
14183         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14184         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14185         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14186         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14187         HAVE_WCTRANS_T.
14188         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14189
14190 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         flock: fix license typo
14193
14194         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14195         omitted.
14196
14197 2011-02-08  Bruno Haible  <bruno@clisp.org>
14198
14199         Split large sed scripts, for HP-UX sed.
14200         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14201         to avoid HP-UX limit of 99 commands, in the near future.
14202         * modules/stdlib (Makefile.am): Likewise.
14203         * modules/unistd (Makefile.am): Likewise.
14204         * modules/wchar (Makefile.am): Likewise.
14205         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14206         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14208
14209 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14210             Bruno Haible  <bruno@clisp.org>
14211
14212         stdlib: improve random_r modularization
14213         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14214         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14215         you also need the random_r module to get this material right.
14216         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14217         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14218         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14219
14220 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         stdlib: don't depend on stdint
14223         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14224         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14225         be independent of whether stdint.h is needed.
14226         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14227         here, instead of ...
14228         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14229         struct random_data should be using the random_r module, not just
14230         the stdlib module (which wouldn't make sense: what package needs
14231         just struct random_data without also needing random_r?).
14232         * modules/stdlib (Depends-on): Remove stdint.
14233
14234         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14235         See the thread rooted at
14236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14237         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14238         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14239         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14240         __VMS)); previously it was always included (via fcntl--.h).
14241         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14242         hand; this is good enough for load averages.  Also, do not use
14243         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14244         flags directly if available and don't bother otherwise.  (Packages
14245         that need the extra reliability should use the modules that define
14246         these flags on older platforms that lack them.)
14247         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14248         fcntl-safer.
14249
14250 2011-02-08  Jim Meyering  <meyering@redhat.com>
14251
14252         di-set.h, ino-map.h: add multiple-inclusion guard
14253         Technically, the guard is required only for ino-map.h, due to its
14254         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14255         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14256         * lib/ino-map.h: Likewise.
14257
14258 2011-02-06  Bruno Haible  <bruno@clisp.org>
14259
14260         iswblank: Ensure declaration on glibc systems.
14261         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14262         * modules/iswblank (Dependencies): Add 'extensions'.
14263         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14264
14265 2011-02-06  Bruno Haible  <bruno@clisp.org>
14266
14267         New module 'iswblank'.
14268         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14269         * modules/iswblank: New file.
14270         * modules/wctype-h (Files): Remove lib/iswblank.c.
14271         (Makefile.am): Substitute GNULIB_ISWBLANK.
14272         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14273         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14274         (gl_WCTYPE_H_DEFAULTS): New macro.
14275         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14276         * modules/iswblank-tests: New file.
14277         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14278         * tests/test-wctype-h.c (main): Remove iswblank tests.
14279         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14280         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14281         of 'wctype-h'.
14282         * NEWS: Mention the change.
14283         * modules/mbchar (Depends-on): Add iswblank.
14284
14285 2011-02-08  Bruno Haible  <bruno@clisp.org>
14286
14287         di-set tests: Refactor.
14288         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14289         unnecessary includes.
14290         (ASSERT): Remove macro.
14291         (main): Make C90 compliant by avoiding variable declaration after
14292         statement.
14293         * modules/di-set-tests (Files): Add tests/macros.h.
14294
14295 2011-02-08  Bruno Haible  <bruno@clisp.org>
14296
14297         ino-map tests: Refactor.
14298         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14299         unnecessary includes.
14300         (ASSERT): Remove macro.
14301         (main): Make C90 compliant by avoiding variable declaration after
14302         statement.
14303         * modules/ino-map-tests (Files): Add tests/macros.h.
14304
14305 2011-02-08  Jim Meyering  <meyering@redhat.com>
14306
14307         di-set: add "const" to a cast
14308         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14309         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14310
14311 2011-02-06  Bruno Haible  <bruno@clisp.org>
14312
14313         Rename module 'wctype' to 'wctype-h'.
14314         * modules/wctype-h: Renamed from modules/wctype.
14315         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14316         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14317         (Files, Depends-on, Makefile.am): Update.
14318         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14319         (Files, Makefile.am): Update.
14320         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14321         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14322         * doc/posix-headers/wctype.texi: Update.
14323         * doc/posix-functions/iswalnum.texi: Update.
14324         * doc/posix-functions/iswalpha.texi: Update.
14325         * doc/posix-functions/iswblank.texi: Update.
14326         * doc/posix-functions/iswcntrl.texi: Update.
14327         * doc/posix-functions/iswdigit.texi: Update.
14328         * doc/posix-functions/iswgraph.texi: Update.
14329         * doc/posix-functions/iswlower.texi: Update.
14330         * doc/posix-functions/iswprint.texi: Update.
14331         * doc/posix-functions/iswpunct.texi: Update.
14332         * doc/posix-functions/iswspace.texi: Update.
14333         * doc/posix-functions/iswupper.texi: Update.
14334         * doc/posix-functions/iswxdigit.texi: Update.
14335         * doc/posix-functions/towlower.texi: Update.
14336         * doc/posix-functions/towupper.texi: Update.
14337         * NEWS: Mention the change.
14338         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14339         * modules/mbchar (Dependencies): Likewise.
14340         * modules/mbswidth (Dependencies): Likewise.
14341         * modules/quotearg (Dependencies): Likewise.
14342         * modules/regex (Dependencies): Likewise.
14343         * modules/wcscasecmp (Dependencies): Likewise.
14344         * modules/wcsncasecmp (Dependencies): Likewise.
14345         * modules/wcwidth (Dependencies): Likewise.
14346
14347 2011-02-06  Bruno Haible  <bruno@clisp.org>
14348
14349         New module 'wcswidth'.
14350         * modules/wcswidth: New file.
14351         * lib/wchar.in.h (wcswidth): New declaration.
14352         * lib/wcswidth.c: New file.
14353         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14354         * m4/wcswidth.m4: New file.
14355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14357         REPLACE_WCSWIDTH.
14358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14359         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14360         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14361         * doc/posix-functions/wcswidth.texi: Mention the new module.
14362
14363 2011-02-06  Bruno Haible  <bruno@clisp.org>
14364
14365         New module 'wcstok'.
14366         * modules/wcstok: New file.
14367         * lib/wchar.in.h (wcstok): New declaration.
14368         * lib/wcstok.c: New file.
14369         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14370         * m4/wcstok.m4: New file.
14371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14374         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14375         * doc/posix-functions/wcstok.texi: Mention the new module.
14376
14377 2011-02-06  Bruno Haible  <bruno@clisp.org>
14378
14379         New module 'wcsstr'.
14380         * modules/wcsstr: New file.
14381         * lib/wchar.in.h (wcsstr): New declaration.
14382         * lib/wcsstr.c: New file.
14383         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14384         * m4/wcsstr.m4: New file.
14385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14388         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14389         * doc/posix-functions/wcsstr.texi: Mention the new module.
14390
14391 2011-02-06  Bruno Haible  <bruno@clisp.org>
14392
14393         New module 'wcspbrk'.
14394         * modules/wcspbrk: New file.
14395         * lib/wchar.in.h (wcspbrk): New declaration.
14396         * lib/wcspbrk.c: New file.
14397         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14398         * m4/wcspbrk.m4: New file.
14399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14402         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14403         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14404
14405 2011-02-06  Bruno Haible  <bruno@clisp.org>
14406
14407         New module 'wcsspn'.
14408         * modules/wcsspn: New file.
14409         * lib/wchar.in.h (wcsspn): New declaration.
14410         * lib/wcsspn.c: New file.
14411         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14412         * m4/wcsspn.m4: New file.
14413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14416         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14417         * doc/posix-functions/wcsspn.texi: Mention the new module.
14418
14419 2011-02-06  Bruno Haible  <bruno@clisp.org>
14420
14421         New module 'wcscspn'.
14422         * modules/wcscspn: New file.
14423         * lib/wchar.in.h (wcscspn): New declaration.
14424         * lib/wcscspn.c: New file.
14425         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14426         * m4/wcscspn.m4: New file.
14427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14430         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14431         * doc/posix-functions/wcscspn.texi: Mention the new module.
14432
14433 2011-02-06  Bruno Haible  <bruno@clisp.org>
14434
14435         New module 'wcsrchr'.
14436         * modules/wcsrchr: New file.
14437         * lib/wchar.in.h (wcsrchr): New declaration.
14438         * lib/wcsrchr.c: New file.
14439         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14440         * m4/wcsrchr.m4: New file.
14441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14444         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14445         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14446
14447 2011-02-06  Bruno Haible  <bruno@clisp.org>
14448
14449         New module 'wcschr'.
14450         * modules/wcschr: New file.
14451         * lib/wchar.in.h (wcschr): New declaration.
14452         * lib/wcschr.c: New file.
14453         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14454         * m4/wcschr.m4: New file.
14455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14458         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14459         * doc/posix-functions/wcschr.texi: Mention the new module.
14460
14461 2011-02-06  Bruno Haible  <bruno@clisp.org>
14462
14463         New module 'wcsdup'.
14464         * modules/wcsdup: New file.
14465         * lib/wchar.in.h (wcsdup): New declaration.
14466         * lib/wcsdup.c: New file.
14467         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14468         * m4/wcsdup.m4: New file.
14469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14472         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14473         * doc/posix-functions/wcsdup.texi: Mention the new module.
14474
14475 2011-02-06  Bruno Haible  <bruno@clisp.org>
14476
14477         New module 'wcsxfrm'.
14478         * modules/wcsxfrm: New file.
14479         * lib/wchar.in.h (wcsxfrm): New declaration.
14480         * lib/wcsxfrm.c: New file.
14481         * lib/wcsxfrm-impl.h: New file.
14482         * m4/wcsxfrm.m4: New file.
14483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14486         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14487         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14488
14489 2011-02-06  Bruno Haible  <bruno@clisp.org>
14490
14491         New module 'wcscoll'.
14492         * modules/wcscoll: New file.
14493         * lib/wchar.in.h (wcscoll): New declaration.
14494         * lib/wcscoll.c: New file.
14495         * lib/wcscoll-impl.h: New file.
14496         * m4/wcscoll.m4: New file.
14497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14500         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14501         * doc/posix-functions/wcscoll.texi: Mention the new module.
14502
14503 2011-02-06  Bruno Haible  <bruno@clisp.org>
14504
14505         New module 'wcsncasecmp'.
14506         * modules/wcsncasecmp: New file.
14507         * lib/wchar.in.h (wcsncasecmp): New declaration.
14508         * lib/wcsncasecmp.c: New file.
14509         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14510         * m4/wcsncasecmp.m4: New file.
14511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14514         HAVE_WCSNCASECMP.
14515         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14516         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14517
14518 2011-02-06  Bruno Haible  <bruno@clisp.org>
14519
14520         New module 'wcscasecmp'.
14521         * modules/wcscasecmp: New file.
14522         * lib/wchar.in.h (wcscasecmp): New declaration.
14523         * lib/wcscasecmp.c: New file.
14524         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14525         * m4/wcscasecmp.m4: New file.
14526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14529         HAVE_WCSCASECMP.
14530         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14531         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14532
14533 2011-02-05  Bruno Haible  <bruno@clisp.org>
14534
14535         New module 'wcsncmp'.
14536         * modules/wcsncmp: New file.
14537         * lib/wchar.in.h (wcsncmp): New declaration.
14538         * lib/wcsncmp.c: New file.
14539         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14540         * m4/wcsncmp.m4: New file.
14541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14544         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14545         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14546
14547 2011-02-05  Bruno Haible  <bruno@clisp.org>
14548
14549         New module 'wcscmp'.
14550         * modules/wcscmp: New file.
14551         * lib/wchar.in.h (wcscmp): New declaration.
14552         * lib/wcscmp.c: New file.
14553         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14554         * m4/wcscmp.m4: New file.
14555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14558         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14559         * doc/posix-functions/wcscmp.texi: Mention the new module.
14560
14561 2011-02-05  Bruno Haible  <bruno@clisp.org>
14562
14563         New module 'wcsncat'.
14564         * modules/wcsncat: New file.
14565         * lib/wchar.in.h (wcsncat): New declaration.
14566         * lib/wcsncat.c: New file.
14567         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14568         * m4/wcsncat.m4: New file.
14569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14572         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14573         * doc/posix-functions/wcsncat.texi: Mention the new module.
14574
14575 2011-02-05  Bruno Haible  <bruno@clisp.org>
14576
14577         New module 'wcscat'.
14578         * modules/wcscat: New file.
14579         * lib/wchar.in.h (wcscat): New declaration.
14580         * lib/wcscat.c: New file.
14581         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14582         * m4/wcscat.m4: New file.
14583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14586         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14587         * doc/posix-functions/wcscat.texi: Mention the new module.
14588
14589 2011-02-05  Bruno Haible  <bruno@clisp.org>
14590
14591         New module 'wcpncpy'.
14592         * modules/wcpncpy: New file.
14593         * lib/wchar.in.h (wcpncpy): New declaration.
14594         * lib/wcpncpy.c: New file.
14595         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14596         * m4/wcpncpy.m4: New file.
14597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14599         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14600         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14601         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14602
14603 2011-02-05  Bruno Haible  <bruno@clisp.org>
14604
14605         New module 'wcsncpy'.
14606         * modules/wcsncpy: New file.
14607         * lib/wchar.in.h (wcsncpy): New declaration.
14608         * lib/wcsncpy.c: New file.
14609         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14610         * m4/wcsncpy.m4: New file.
14611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14614         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14615         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14616
14617 2011-02-05  Bruno Haible  <bruno@clisp.org>
14618
14619         New module 'wcpcpy'.
14620         * modules/wcpcpy: New file.
14621         * lib/wchar.in.h (wcpcpy): New declaration.
14622         * lib/wcpcpy.c: New file.
14623         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14624         * m4/wcpcpy.m4: New file.
14625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14627         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14628         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14629         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14630
14631 2011-02-05  Bruno Haible  <bruno@clisp.org>
14632
14633         New module 'wcscpy'.
14634         * modules/wcscpy: New file.
14635         * lib/wchar.in.h (wcscpy): New declaration.
14636         * lib/wcscpy.c: New file.
14637         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14638         * m4/wcscpy.m4: New file.
14639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14642         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14643         * doc/posix-functions/wcscpy.texi: Mention the new module.
14644
14645 2011-02-05  Bruno Haible  <bruno@clisp.org>
14646
14647         New module 'wcsnlen'.
14648         * modules/wcsnlen: New file.
14649         * lib/wchar.in.h (wcsnlen): New declaration.
14650         * lib/wcsnlen.c: New file.
14651         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14652         * m4/wcsnlen.m4: New file.
14653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14656         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14657         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14658
14659 2011-02-05  Bruno Haible  <bruno@clisp.org>
14660
14661         New module 'wcslen'.
14662         * modules/wcslen: New file.
14663         * lib/wchar.in.h (wcslen): New declaration.
14664         * lib/wcslen.c: New file.
14665         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14666         * m4/wcslen.m4: New file.
14667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14670         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14671         * doc/posix-functions/wcslen.texi: Mention the new module.
14672
14673 2011-02-05  Bruno Haible  <bruno@clisp.org>
14674
14675         New module 'wmemset'.
14676         * modules/wmemset: New file.
14677         * lib/wchar.in.h (wmemset): New declaration.
14678         * lib/wmemset.c: New file.
14679         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14680         * m4/wmemset.m4: New file.
14681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14684         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14685         * doc/posix-functions/wmemset.texi: Mention the new module.
14686
14687 2011-02-05  Bruno Haible  <bruno@clisp.org>
14688
14689         New module 'wmemmove'.
14690         * modules/wmemmove: New file.
14691         * lib/wchar.in.h (wmemmove): New declaration.
14692         * lib/wmemmove.c: New file.
14693         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14694         * m4/wmemmove.m4: New file.
14695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14698         HAVE_WMEMMOVE.
14699         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14700         * doc/posix-functions/wmemmove.texi: Mention the new module.
14701
14702 2011-02-05  Bruno Haible  <bruno@clisp.org>
14703
14704         New module 'wmemcpy'.
14705         * modules/wmemcpy: New file.
14706         * lib/wchar.in.h (wmemcpy): New declaration.
14707         * lib/wmemcpy.c: New file.
14708         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14709         * m4/wmemcpy.m4: New file.
14710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14712         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14713         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14714         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14715
14716 2011-02-05  Bruno Haible  <bruno@clisp.org>
14717
14718         New module 'wmemcmp'.
14719         * modules/wmemcmp: New file.
14720         * lib/wchar.in.h (wmemcmp): New declaration.
14721         * lib/wmemcmp.c: New file.
14722         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14723         * m4/wmemcmp.m4: New file.
14724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14727         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14728         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14729
14730 2011-02-07  Jim Meyering  <meyering@redhat.com>
14731
14732         di-set, ino-map: new modules, from coreutils
14733         * lib/di-set.c: New file.
14734         * lib/di-set.h: Likewise.
14735         * lib/ino-map.c: Likewise.
14736         * lib/ino-map.h: Likewise.
14737         * modules/di-set: Likewise.
14738         * modules/di-set-tests: Likewise.
14739         * modules/ino-map: Likewise.
14740         * modules/ino-map-tests: Likewise.
14741         * tests/test-di-set.c: Likewise.
14742         * tests/test-ino-map.c: Likewise.
14743
14744 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         getloadavg: merge minor changes from Emacs
14747
14748         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14749         (getloadavg): Use memset, not bzero.
14750
14751         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14752         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14753         clash (bug#86).
14754
14755 2010-11-14  Bruno Haible  <bruno@clisp.org>
14756
14757         Allow multiple gnulib generated replacements to coexist.
14758         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14759         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14760         * lib/langinfo.in.h (nl_item): Likewise.
14761         * lib/math.in.h (_NaN, NAN): Likewise.
14762         * lib/netdb.in.h (struct addrinfo): Likewise.
14763         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14764         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14765         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14766         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14767         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14768         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14769         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14770         pthread_mutexattr_init, pthread_mutexattr_settype,
14771         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14772         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14773         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14774         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14775         * lib/sched.in.h (struct sched_param): Likewise.
14776         * lib/se-selinux.in.h (security_class_t, security_context_t,
14777         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14778         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14779         lsetfilecon, fsetfilecon, security_check_context,
14780         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14781         Likewise.
14782         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14783         Likewise.
14784         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14785         _gl_function_taking_int_returning_void_t, union sigval,
14786         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14787         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14788         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14789         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14790         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14791         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14792         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14793         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14794         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14795         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14796         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14797         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14798         socklen_t, rpl_fd_isset): Likewise.
14799         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14800         * lib/sys_time.in.h (struct timeval): Likewise.
14801         * lib/sys_times.in.h (struct tms): Likewise.
14802         * lib/sys_utsname.in.h (struct utsname):
14803         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14804         * lib/unistd.in.h (getpagesize): Likewise.
14805         * lib/wchar.in.h (mbstate_t): Likewise.
14806         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14807         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14808         towlower, towupper): Likewise.
14809         Reported by Sam Steingold <sds@gnu.org>.
14810
14811 2011-02-05  Eric Blake  <eblake@redhat.com>
14812
14813         unsetenv: work around Haiku issues
14814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14815         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14816
14817 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14818
14819         libposix: avoid calling error() within libposix
14820         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14821         is defined.
14822
14823 2011-02-05  Eric Blake  <eblake@redhat.com>
14824
14825         strerror_r-posix: port to cygwin
14826         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14827         implementation.
14828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14829         * tests/test-strerror_r.c (main): Fix test.
14830         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14831         issue.
14832
14833 2011-02-05  Bruno Haible  <bruno@clisp.org>
14834
14835         New module 'wmemchr'.
14836         * modules/wmemchr: New file.
14837         * lib/wchar.in.h (wmemchr): New declaration.
14838         * lib/wmemchr.c: New file.
14839         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14840         * m4/wmemchr.m4: New file.
14841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14844         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14845         * doc/posix-functions/wmemchr.texi: Mention the new module.
14846
14847 2011-02-04  Eric Blake  <eblake@redhat.com>
14848
14849         fdopendir: detect FreeBSD bug
14850         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14851         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14852
14853 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14854
14855         stdbool: do not define HAVE_STDBOOL_H
14856         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14857         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14858         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14859         imported from the latest Autoconf git.  It was motivated by Emacs,
14860         which uses gnulib but does not need HAVE_STDBOOL_H.
14861
14862 2011-02-04  Bruno Haible  <bruno@clisp.org>
14863
14864         wcsnrtombs: Prepare for new module wwcsnrtombs.
14865         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14866         * lib/wcsnrtombs.c: Include it.
14867         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14868
14869         wcsrtombs: Prepare for new module wwcsrtombs.
14870         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14871         * lib/wcsrtombs.c: Include it.
14872         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14873
14874         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14875         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14876         * lib/mbsnrtowcs.c: Include it.
14877         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14878
14879         mbsrtowcs: Prepare for new module mbsrtowwcs.
14880         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14881         * lib/mbsrtowcs.c: Include it.
14882         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14883
14884 2011-02-04  Bruno Haible  <bruno@clisp.org>
14885
14886         vasnprintf: Reduce use of malloc for small format strings.
14887         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14888         (arguments): Add room for the first 7 arguments.
14889         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14890         (char_directives, u8_directives, u16_directives, u32_directives): Add
14891         room for the first 7 directives.
14892         * lib/printf-parse.c: Include <string.h>.
14893         (PRINTF_PARSE): Change memory handling code so that it uses the first
14894         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14895         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14896         Reported by Pádraig Brady <P@draigbrady.com>.
14897
14898 2011-01-31  Eric Blake  <eblake@redhat.com>
14899
14900         dup2: work around Haiku bug
14901         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14902         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14903         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14904         * tests/test-dup2.c (main): Enhance test.
14905
14906 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14907
14908         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14909         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14910         declared by eglibc 2.11.2.
14911         * lib/stdio.in.h: Likewise.
14912
14913 2011-01-31  Eric Blake  <eblake@redhat.com>
14914
14915         ignore-value: add missing test dependency
14916         * tests/test-ignore-value.c: Revert previous change; stdio.h
14917         provides off_t.
14918         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14919
14920 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         mktime: clarify long_int width checking
14923         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14924         the top level, to make it clearer that the assumption about
14925         long_int width is being checked.  See
14926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14927
14928 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14929
14930         ignore-value: Fix self-test.
14931         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14932
14933 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         TYPE_MAXIMUM: avoid theoretically undefined behavior
14936         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14937         negative number, which the C Standard says has undefined behavior.
14938         In practice this is not a problem, but might as well do it by the book.
14939         Reported by Rich Felker and Eric Blake; see
14940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14941         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14942         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14944         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14946         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14947
14948         mktime: #undef mktime before #defining it
14949         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14950
14951         mktime: systematically normalize tm_isdst comparisons
14952         * lib/mktime.c (isdst_differ): New function.
14953         (__mktime_internal): Use it systematically for all isdst comparisons.
14954         This completes the fix for libc BZ #6723, and removes the need for
14955         normalizing tm_isdst.  See
14956         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14957         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14958
14959         mktime: fix some integer overflow issues and sidestep the rest
14960
14961         This was prompted by a bug report by Benjamin Lindner for MinGW
14962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14963         His bug is due to signed integer overflow (0 - INT_MIN), and I
14964         I scanned through mktime.c looking for other integer overflow
14965         problems, fixing all the bugs I found.
14966
14967         Although the C Standard says the resulting code is still not safe
14968         in the presence of integer overflow, in practice it should be good
14969         enough for all real-world two's-complement implementations, except
14970         for debugging environments that deliberately trap on integer
14971         overflow (e.g., gcc -ftrapv).
14972
14973         * lib/mktime.c (WRAPV): New macro.
14974         (SHR): Also check that long_int and time_t shift right in the
14975         usual way, before using the fast-but-unportable method.
14976         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14977         used.  The code already assumed two's complement, so there's
14978         no need to test for alternatives.  All uses removed.
14979         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14980         the C standard.  Problem reported by Rich Felker in
14981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14982         (twos_complement_arithmetic): Also check long_int and time_t.
14983         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14984         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14985         (__mktime_internal): Avoid integer overflow with unary subtraction
14986         in two instances where -1 - X is an adequate replacement for -X,
14987         since the calculations are approximate.
14988
14989 2011-01-29  Eric Blake  <eblake@redhat.com>
14990
14991         mktime: avoid infinite loop
14992         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14993         type; behavior is still undefined but portable to all known targets.
14994         Reported by Rich Felker.
14995
14996 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14997
14998         rename, unlink, same-inode: Relicense.
14999         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15000         * modules/unlink (License): Likewise.
15001         * modules/same-inode (License): Likewise.
15002
15003 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15004
15005         mktime: avoid problems on NetBSD 5 / i386
15006         * lib/mktime.c (long_int): New type.  This works around a problem
15007         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15008         but time_t is 64 bits, and where I expect the existing code is
15009         wrong in some cases.
15010         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15011         (ydhms_diff): Bring back the compile-time check for wide-enough
15012         year and yday.
15013
15014         mktime: fix misspelling in comment
15015         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15016         This merges all recent glibc changes of importance.
15017
15018 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15019
15020         move-if-change: cope with concurrent mv of identical file.
15021         * build-aux/move-if-change (CMPPROG): Accept environment
15022         variable as an override for `cmp'.
15023         (usage): Document CMPPROG.
15024         Adjust comparison to drop stdout.  Cope with failure of mv if
15025         the target file exists and is identical to the source, for
15026         parallel builds.
15027         Report from H.J. Lu against binutils in PR binutils/12283.
15028
15029 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15030
15031         * users.txt: Mention sharutils.
15032
15033 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15034
15035         * users.txt: Mention OATH Toolkit.
15036
15037 2011-01-27  Bruno Haible  <bruno@clisp.org>
15038
15039         Prepare for supporting FreeBSD 10.
15040         * build-aux/config.libpath: Remove handling of freebsd1*.
15041
15042 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15043
15044         Prepare for supporting FreeBSD 10.
15045         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15046         match FreeBSD 10.0.
15047
15048 2011-01-27  Bruno Haible  <bruno@clisp.org>
15049
15050         vma-iter, get-rusage-as: Add OpenBSD support.
15051         * modules/vma-iter (configure.ac): Test for mquery.
15052         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15053         * lib/vma-iter.c: Include <sys/mman.h>.
15054         (vma_iterate): Add an implementation based on mquery().
15055         * lib/resource-ext.h (get_rusage_as): Update comments.
15056         * lib/get-rusage-as.c: Likewise.
15057         * lib/get-rusage-data.c: Likewise.
15058
15059 2011-01-26  Karl Berry  <karl@gnu.org>
15060
15061         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15062         variables to make it easier to override the makeinfo program used.
15063
15064 2011-01-26  Eric Blake  <eblake@redhat.com>
15065
15066         fcntl: work around Haiku F_DUPFD bugs
15067         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15068         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15069         cloexec bit on duplication.
15070         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15071
15072 2011-01-26  Bruno Haible  <bruno@clisp.org>
15073
15074         Enable memory leak tests on AIX.
15075         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15076         * tests/test-fprintf-posix3.c (main): Likewise.
15077
15078 2011-01-26  Bruno Haible  <bruno@clisp.org>
15079
15080         Tests for module 'get-rusage-data'.
15081         * modules/get-rusage-data-tests: New file.
15082         * tests/test-get-rusage-data.c: New file.
15083
15084         New module 'get-rusage-data'.
15085         * lib/resource-ext.h (get_rusage_data): New declaration.
15086         * lib/get-rusage-data.c: New file.
15087         * modules/get-rusage-data: New file.
15088
15089 2011-01-25  Bruno Haible  <bruno@clisp.org>
15090
15091         get-rusage-as: Allow for easier testing.
15092         * lib/resource-ext.h (get_rusage_as): Add comment.
15093         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15094         (main): New function for interactive testing.
15095
15096 2011-01-25  Bruno Haible  <bruno@clisp.org>
15097
15098         vma-iter: Treat Haiku like BeOS.
15099         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15100         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15101
15102 2011-01-25  Eric Blake  <eblake@redhat.com>
15103
15104         c-stack: fix regression on cygwin when libsigsegv is present
15105         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15106
15107 2011-01-24  Bruno Haible  <bruno@clisp.org>
15108
15109         vma-iter: Avoid empty intervals.
15110         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15111         on an empty interval.
15112
15113 2011-01-24  Jim Meyering  <meyering@redhat.com>
15114
15115         u64: remove unnecessary #include
15116         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15117
15118 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15119
15120         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15121         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15122
15123 2011-01-23  Bruno Haible  <bruno@clisp.org>
15124
15125         New module 'vma-iter'.
15126         * lib/vma-iter.h: New file.
15127         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15128         * modules/vma-iter: New file.
15129         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15130         for get_rusage_as_via_iterator.
15131         (vma_iterate_callback): New function.
15132         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15133         * modules/get-rusage-as (Depends-on): Add vma-iter.
15134
15135 2011-01-23  Bruno Haible  <bruno@clisp.org>
15136
15137         uninorm: Tweak includes.
15138         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15139         Reported by Jim Meyering.
15140
15141 2011-01-23  Bruno Haible  <bruno@clisp.org>
15142
15143         get-rusage-as: Improve on NetBSD.
15144         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15145         /proc, like on FreeBSD.
15146
15147 2011-01-23  Jim Meyering  <meyering@redhat.com>
15148
15149         xreadlink.h: remove unnecessary #include
15150         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15151
15152         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15153         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15154
15155 2011-01-23  Bruno Haible  <bruno@clisp.org>
15156
15157         get-rusage-as: Fix bug.
15158         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15159         original limit when aborting the first loop.
15160
15161 2011-01-23  Bruno Haible  <bruno@clisp.org>
15162
15163         wctype: Ensure valid C syntax.
15164         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15165         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15166
15167 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15168
15169         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15171         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15172         as they are needed only for configure's test case.
15173         This removes two unnecessary symbols from config.h.
15174
15175         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15176         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15178         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15179         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15180         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15181         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15182         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15183         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15185         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15187         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15189         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15190         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15191         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15192         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15193
15194 2011-01-21  Eric Blake  <eblake@redhat.com>
15195
15196         maintainer-makefile: work with older git for submodule check
15197         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15198         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15199         Reported by Matthias Bolte.
15200
15201         bootstrap: minor portability fixes
15202         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15203         (usage): Omit leading capital and trailing . on help phrases, per
15204         GNU Coding Standards.
15205         (check_versions, top level): Prefix messages with script name.
15206
15207 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15208
15209         bootstrap: support --no-git option
15210         * build-aux/bootstrap: Add --no-git option, to be used when
15211         --gnulib-srcdir points to the exact desired checkout.
15212
15213 2011-01-21  Eric Blake  <eblake@redhat.com>
15214
15215         strerror_r-posix: work with glibc 2.13
15216         * lib/strerror_r.c (strerror_r): Fix return type.
15217
15218 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15219             Bruno Haible  <bruno@clisp.org>
15220
15221         uN_strstr: New unit tests.
15222         * modules/unistr/u8-strstr-tests: New file.
15223         * modules/unistr/u16-strstr-tests: New file.
15224         * modules/unistr/u32-strstr-tests: New file.
15225         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15226         * tests/unistr/test-u8-strstr.c: New file.
15227         * tests/unistr/test-u16-strstr.c: New file.
15228         * tests/unistr/test-u32-strstr.c: New file.
15229
15230 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15231             Bruno Haible  <bruno@clisp.org>
15232
15233         Make uN_strstr functions O(n) worst-case.
15234         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15235         16-bit and 32-bit unit cases, use the unibyte algorithm from
15236         lib/mbsstr.c.
15237         * lib/unistr/u8-strstr.c: Include <string.h>.
15238         (UNIT_IS_UINT8_T): New macro.
15239         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15240         (U_STRLEN, U_STRNLEN): New macros.
15241         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15242         (U_STRLEN, U_STRNLEN): New macros.
15243         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15244         (configure.ac): Update required libunistring version.
15245         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15246         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15247         malloca.
15248         (configure.ac): Update required libunistring version.
15249         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15250         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15251         malloca.
15252         (configure.ac): Update required libunistring version.
15253
15254 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15255             Bruno Haible  <bruno@clisp.org>
15256
15257         Prepare for faster uN_strstr functions.
15258         * lib/str-kmp.h: Support definable UNITs.
15259         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15260         needle_len argument.
15261         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15262         * lib/mbscasestr.c (mbscasestr): Likewise.
15263
15264 2011-01-21  Pádraig Brady <P@draigBrady.com>
15265
15266         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15267         * tests/test-malloca.c (main): Unset the environment variable
15268         to greatly speed up the test.
15269         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15270         * modules/malloca-tests: Depend on unsetenv.
15271
15272 2011-01-21  Pádraig Brady <P@draigBrady.com>
15273
15274         ignore-value: remove stdint dependency
15275         * lib/ignore-value.h: Remove <stdint.h>
15276         * modules/ignore-value: Remove stdint dependency.
15277
15278 2011-01-21  Jim Meyering  <meyering@redhat.com>
15279
15280         maint.mk: adjust variable name to be consistent with other gl_ vars
15281         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15282         to be lower case.
15283
15284 2011-01-20  Jim Meyering  <meyering@redhat.com>
15285
15286         maint.mk: make "check" depend on public-submodule-commit by default
15287         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15288
15289 2011-01-20  Bruno Haible  <bruno@clisp.org>
15290
15291         mbfile, mbiter: Complete change from 2008-12-21.
15292         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15293         * m4/mbiter.m4 (gl_MBITER): Likewise.
15294
15295 2011-01-20  Jim Meyering  <meyering@redhat.com>
15296
15297         init.sh: insert space between each function name and "()"
15298         * tests/init.sh: Make it a little easier to see that a function's
15299         name is "warn_", and not "warn" when looking at the first part of
15300         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15301
15302 2011-01-20  Jim Meyering  <meyering@redhat.com>
15303
15304         mountlist: clean up code formatting
15305         * lib/mountlist.c (read_file_system_list): Split a long line,
15306         correct bracing style, use NULL in place of "(struct statfs *)0",
15307         don't parenthesize return value, add spaces around "=" and after
15308         ";-in-for-stmt".
15309
15310 2011-01-14  Markus Duft <mduft@gentoo.org>
15311
15312         mountlist: add support for Interix
15313         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15314         Apply statvfs to all entries of /dev/fs.
15315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15316         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15317
15318 2011-01-20  Jim Meyering  <meyering@redhat.com>
15319
15320         maint.mk: improve the public-submodule-commit rule
15321         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15322         to suppress printing of its commands... unless V=1.
15323         Add git submodule's --quiet option to suppress printing of e.g.,
15324         "Entering gnulib" output.
15325         "cd" into $(srcdir) before running git submodule.
15326
15327 2011-01-20  Bruno Haible  <bruno@clisp.org>
15328
15329         include_next: Fix bug introduced on 2011-01-18.
15330         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15331         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15332         ac_cv_header_... variable if the second argument is not 'check'.
15333         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15334         gl_NEXT_HEADERS_INTERNAL.
15335
15336 2011-01-20  Bruno Haible  <bruno@clisp.org>
15337
15338         Allow the user to avoid the GNULIB_TEST_* macros.
15339         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15340         Suggested by Paul Eggert.
15341
15342 2011-01-14  Jim Meyering  <meyering@redhat.com>
15343
15344         bootstrap: avoid failure when there is no .gitmodules file
15345         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15346         has been assigned to, even when its value is the empty string.
15347         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15348         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15349         Reported by John W. Eaton <jwe@gnu.org>.
15350
15351 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         assume <ctype.h>, ..., <time.h> exist
15354         For years gnulib has been assuming the existence of the headers
15355         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15356         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15357         them, since they don't appear to be needed.
15358         * README (Portability guidelines): Document this.
15359         * lib/flock.c: Assume <fcntl.h> exists.
15360         * lib/regex_internal.h: Assume <locale.h> exists.
15361         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15363         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15364         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15365         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15366         * m4/regex.m4 (gl_REGEX): Likewise.
15367         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15368         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15369         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15370         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15371         * tests/test-argp.c: Likewise.
15372         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15373
15374         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15375         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15376         AA_APPLE_UNIVERSAL_BUILD.  See
15377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15378         * NEWS: Document this.
15379
15380 2011-01-19  Eric Blake  <eblake@redhat.com>
15381
15382         c-stack: assume stack overflow if SA_SIGINFO unsupported
15383         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15384         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15385         sigaction will work.
15386         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15387         behavior match Linux.
15388         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15389
15390         stdbool-tests: accomodate Haiku
15391         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15392
15393         binary-io: fix O_TEXT on Haiku
15394         * modules/binary-io (Depends-on): Add fcntl-h.
15395         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15396         than blindly undefining O_TEXT.
15397         Reported by Scott McCreary.
15398
15399 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         include_next: do not check for standard headers like stddef.h
15402
15403         I found this problem when modifying Emacs to use gnulib.
15404         I noticed that it added HAVE_STDDEF_H to config.h, even though
15405         gnulib always assumes <stddef.h> exists as per README and this
15406         symbol is unnecessary.
15407         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15408         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15409         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15410         faster for headers like stddef.h that are known to exist.
15411         (gl_CHECK_NEXT_HEADERS): Use it.
15412         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15413         rather than gl_CHECK_NEXT_HEADERS.
15414         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15415         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15416
15417 2011-01-18  Eric Blake  <eblake@redhat.com>
15418
15419         ansi-c++-opt: skip C++ dependency style if C++ is unused
15420         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15421         tests when we know C++ compilation is not desired.
15422         Reported by Scott McCreary.
15423
15424 2011-01-18  Bruno Haible  <bruno@clisp.org>
15425
15426         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15427         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15428         (main): Perform test also when getrlimit and setrlimit don't exist or
15429         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15430         limiting the address space size using setrlimit, compare the address
15431         space size before and after the the test.
15432         * tests/test-dprintf-posix2.c: Likewise.
15433         * tests/test-fprintf-posix3.sh: Update skip messages.
15434         * tests/test-dprintf-posix2.sh: Likewise.
15435         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15436         * modules/dprintf-posix-tests (Depends-on): Likewise.
15437         Reported by Bruce Korb <bkorb@gnu.org> and
15438         Gary V. Vaughan <gary@gnu.org>.
15439
15440 2011-01-18  Bruno Haible  <bruno@clisp.org>
15441
15442         get-rusage-as: Improvement for Cygwin.
15443         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15444         areas that are merely reserved.
15445
15446 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15447
15448         strftime: remove dependencies on multibyte modules
15449
15450         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15451         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15452         only if __osf__ is defined, and I suspect OSF doesn't need these
15453         other modules.  If my guess is wrong, we'll need to come up with a
15454         variant of strftime that doesn't need the multibyte modules.
15455
15456         I discovered this problem when attempting modify Emacs to use the
15457         strftime module.  With the previous gnulib, this caused Emacs to
15458         need 31 new files, ranging from lib/config.charset to
15459         m4/wint_t.m4.  This was overkill and I expect would be offputting
15460         to the Emacs maintainers.  After this change, only 6 new files are
15461         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15462         stdbool.m4, and tm_gmtoff.m4.
15463
15464         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15465         Suggested by Bruno Haible in
15466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15468         and do not check for wchar.h.
15469         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15470         (Depends-on): Remove mbrlen, mbsinit, wchar.
15471
15472 2011-01-18  Bruno Haible  <bruno@clisp.org>
15473
15474         Tests for module 'get-rusage-as'.
15475         * modules/get-rusage-as-tests: New file.
15476         * tests/test-get-rusage-as.c: New file.
15477
15478         New module 'get-rusage-as'.
15479         * modules/get-rusage-as: New file.
15480         * lib/resource-ext.h: New file.
15481         * lib/get-rusage-as.c: New file.
15482
15483 2011-01-17  Eric Blake  <eblake@redhat.com>
15484
15485         sigaction: relax license from LGPLv3+ to LGPLv2+
15486         * modules/sigaction (License): Relax to LGPLv2+.
15487
15488 2011-01-14  Bruno Haible  <bruno@clisp.org>
15489
15490         filemode: Make function declarations usable in C++ mode.
15491         * lib/filemode.h: Enclose function declarations in extern "C" block.
15492         Reported by John W. Eaton <jwe@gnu.org>.
15493
15494 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15495
15496         save-cwd: no longer include "xgetcwd.h"
15497         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15498         This avoids a compilation failure in projects that use save-cwd
15499         without also using the xgetcwd module.
15500
15501 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15502
15503         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15504         This is so that a program like Emacs, which needs only dtoastr,
15505         does not have to bother with distributing and compiling ftoastr
15506         and ldtoastr.
15507         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15508         * modules/dtoastr, modules/ldtoastr: New files.
15509         * modules/ftoastr: Now works just for 'float'.
15510         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15511         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15512         dtoastr.c, ldtoastr.c.
15513
15514 2011-01-11  Jim Meyering  <meyering@redhat.com>
15515
15516         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15517         There is no need to work around the lack of the fchdir function,
15518         since gnulib can now provide a replacement when required.
15519         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15520         * modules/save-cwd (Depends-on): Add fchdir.
15521
15522 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         openat, save-cwd: avoid xmalloc
15525
15526         This removes a direct (but undocumented) dependency of openat on
15527         xalloc, along with an indirect dependency via save-cwd.  It also
15528         removes a dependency of save-cwd on xgetcwd, and thereby
15529         indirectly on xalloc.  This change causes the openat substitute
15530         to fall back on save_cwd when memory is tight, and for save_cwd to
15531         fail instead of dying when memory is tight, but that's good enough.
15532         Problem and initial idea for fix reported by Bastien Roucaries in
15533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15534
15535         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15536         xalloc.h (for xmalloc).
15537         (openat_proc_name): Use malloc, not xmalloc.
15538         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15539         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15540
15541         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15542         This avoids heap allocation for file names whose lengths are in
15543         the range 512..1023, with the upper bound increasing to at most
15544         4031 depending on the platform's PATH_MAX.  (We do not want
15545         pathmax.h here as it might supply a non-constant PATH_MAX.)
15546         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15547         Perhaps they should be moved to malloca.h?
15548         (OPENAT_BUFFER_SIZE): Use them.
15549
15550 2011-01-10  Bruno Haible  <bruno@clisp.org>
15551
15552         doc: Update users.txt.
15553         * users.txt: Add recutils.
15554
15555 2011-01-09  Karl Berry  <karl@gnu.org>
15556
15557         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15558
15559         * doc/configmake.texi: New file.
15560         * doc/gnulib.texi: Include it.
15561         * modules/configmake: Move documentation from here.
15562
15563 2011-01-09  Bruno Haible  <bruno@clisp.org>
15564
15565         Update to Unicode 6.0.0.
15566         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15567         (get_lbp): Update for Unicode 6.0.0.
15568         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15569         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15570         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15571         U+11001, U+11038..U+11046. Remove U+06DE.
15572         (uc_width): Fix bounds of planes.
15573         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15574         lib/uniwidth/width.c.
15575         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15576         trailing whitespace removed.
15577         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15578         without comments, but with the original copyright notice.
15579         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15580         * lib/unicase/ignorable.h: Likewise.
15581         * lib/unicase/tocasefold.h: Likewise.
15582         * lib/unicase/tolower.h: Likewise.
15583         * lib/unicase/totitle.h: Likewise.
15584         * lib/unicase/toupper.h: Likewise.
15585         * lib/unictype/bidi_of.h: Likewise.
15586         * lib/unictype/blocks.h: Likewise.
15587         * lib/unictype/categ_C.h: Likewise.
15588         * lib/unictype/categ_Cn.h: Likewise.
15589         * lib/unictype/categ_L.h: Likewise.
15590         * lib/unictype/categ_Ll.h: Likewise.
15591         * lib/unictype/categ_Lm.h: Likewise.
15592         * lib/unictype/categ_Lo.h: Likewise.
15593         * lib/unictype/categ_Lu.h: Likewise.
15594         * lib/unictype/categ_M.h: Likewise.
15595         * lib/unictype/categ_Mc.h: Likewise.
15596         * lib/unictype/categ_Me.h: Likewise.
15597         * lib/unictype/categ_Mn.h: Likewise.
15598         * lib/unictype/categ_N.h: Likewise.
15599         * lib/unictype/categ_Nd.h: Likewise.
15600         * lib/unictype/categ_No.h: Likewise.
15601         * lib/unictype/categ_P.h: Likewise.
15602         * lib/unictype/categ_Po.h: Likewise.
15603         * lib/unictype/categ_S.h: Likewise.
15604         * lib/unictype/categ_Sc.h: Likewise.
15605         * lib/unictype/categ_Sk.h: Likewise.
15606         * lib/unictype/categ_Sm.h: Likewise.
15607         * lib/unictype/categ_So.h: Likewise.
15608         * lib/unictype/categ_of.h: Likewise.
15609         * lib/unictype/combining.h: Likewise.
15610         * lib/unictype/ctype_alnum.h: Likewise.
15611         * lib/unictype/ctype_alpha.h: Likewise.
15612         * lib/unictype/ctype_graph.h: Likewise.
15613         * lib/unictype/ctype_lower.h: Likewise.
15614         * lib/unictype/ctype_print.h: Likewise.
15615         * lib/unictype/ctype_punct.h: Likewise.
15616         * lib/unictype/ctype_upper.h: Likewise.
15617         * lib/unictype/decdigit.h: Likewise.
15618         * lib/unictype/digit.h: Likewise.
15619         * lib/unictype/numeric.h: Likewise.
15620         * lib/unictype/pr_alphabetic.h: Likewise.
15621         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15622         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15623         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15624         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15625         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15626         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15627         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15628         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15629         * lib/unictype/pr_case_ignorable.h: Likewise.
15630         * lib/unictype/pr_cased.h: Likewise.
15631         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15632         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15633         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15634         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15635         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15636         * lib/unictype/pr_combining.h: Likewise.
15637         * lib/unictype/pr_composite.h: Likewise.
15638         * lib/unictype/pr_currency_symbol.h: Likewise.
15639         * lib/unictype/pr_decimal_digit.h: Likewise.
15640         * lib/unictype/pr_deprecated.h: Likewise.
15641         * lib/unictype/pr_format_control.h: Likewise.
15642         * lib/unictype/pr_grapheme_base.h: Likewise.
15643         * lib/unictype/pr_grapheme_extend.h: Likewise.
15644         * lib/unictype/pr_grapheme_link.h: Likewise.
15645         * lib/unictype/pr_id_continue.h: Likewise.
15646         * lib/unictype/pr_id_start.h: Likewise.
15647         * lib/unictype/pr_ideographic.h: Likewise.
15648         * lib/unictype/pr_lowercase.h: Likewise.
15649         * lib/unictype/pr_math.h: Likewise.
15650         * lib/unictype/pr_numeric.h: Likewise.
15651         * lib/unictype/pr_other_alphabetic.h: Likewise.
15652         * lib/unictype/pr_other_id_continue.h: Likewise.
15653         * lib/unictype/pr_other_math.h: Likewise.
15654         * lib/unictype/pr_punctuation.h: Likewise.
15655         * lib/unictype/pr_sentence_terminal.h: Likewise.
15656         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15657         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15658         * lib/unictype/pr_unified_ideograph.h: Likewise.
15659         * lib/unictype/pr_uppercase.h: Likewise.
15660         * lib/unictype/pr_xid_continue.h: Likewise.
15661         * lib/unictype/pr_xid_start.h: Likewise.
15662         * lib/unictype/scripts.h: Likewise.
15663         * lib/unictype/scripts_byname.gperf: Likewise.
15664         * lib/unictype/sy_java_ident.h: Likewise.
15665         * lib/unigbrk/gbrkprop.h: Likewise.
15666         * lib/unilbrk/lbrkprop1.h: Likewise.
15667         * lib/unilbrk/lbrkprop2.h: Likewise.
15668         * lib/uninorm/decomposition-table2.h: Likewise.
15669         * lib/uniwbrk/wbrkprop.h: Likewise.
15670         * tests/unicase/test-cased.c: Likewise.
15671         * tests/unicase/test-ignorable.c: Likewise.
15672         * tests/unicase/test-uc_tolower.c: Likewise.
15673         * tests/unicase/test-uc_totitle.c: Likewise.
15674         * tests/unicase/test-uc_toupper.c: Likewise.
15675         * tests/unictype/test-categ_C.c: Likewise.
15676         * tests/unictype/test-categ_Cn.c: Likewise.
15677         * tests/unictype/test-categ_L.c: Likewise.
15678         * tests/unictype/test-categ_Ll.c: Likewise.
15679         * tests/unictype/test-categ_Lm.c: Likewise.
15680         * tests/unictype/test-categ_Lo.c: Likewise.
15681         * tests/unictype/test-categ_Lu.c: Likewise.
15682         * tests/unictype/test-categ_M.c: Likewise.
15683         * tests/unictype/test-categ_Mc.c: Likewise.
15684         * tests/unictype/test-categ_Me.c: Likewise.
15685         * tests/unictype/test-categ_Mn.c: Likewise.
15686         * tests/unictype/test-categ_N.c: Likewise.
15687         * tests/unictype/test-categ_Nd.c: Likewise.
15688         * tests/unictype/test-categ_No.c: Likewise.
15689         * tests/unictype/test-categ_P.c: Likewise.
15690         * tests/unictype/test-categ_Po.c: Likewise.
15691         * tests/unictype/test-categ_S.c: Likewise.
15692         * tests/unictype/test-categ_Sc.c: Likewise.
15693         * tests/unictype/test-categ_Sk.c: Likewise.
15694         * tests/unictype/test-categ_Sm.c: Likewise.
15695         * tests/unictype/test-categ_So.c: Likewise.
15696         * tests/unictype/test-ctype_alnum.c: Likewise.
15697         * tests/unictype/test-ctype_alpha.c: Likewise.
15698         * tests/unictype/test-ctype_graph.c: Likewise.
15699         * tests/unictype/test-ctype_lower.c: Likewise.
15700         * tests/unictype/test-ctype_print.c: Likewise.
15701         * tests/unictype/test-ctype_punct.c: Likewise.
15702         * tests/unictype/test-ctype_upper.c: Likewise.
15703         * tests/unictype/test-decdigit.h: Likewise.
15704         * tests/unictype/test-digit.h: Likewise.
15705         * tests/unictype/test-numeric.h: Likewise.
15706         * tests/unictype/test-pr_alphabetic.c: Likewise.
15707         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15708         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15709         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15710         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15711         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15712         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15713         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15714         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15715         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15716         * tests/unictype/test-pr_cased.c: Likewise.
15717         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15718         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15719         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15720         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15721         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15722         * tests/unictype/test-pr_combining.c: Likewise.
15723         * tests/unictype/test-pr_composite.c: Likewise.
15724         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15725         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15726         * tests/unictype/test-pr_deprecated.c: Likewise.
15727         * tests/unictype/test-pr_format_control.c: Likewise.
15728         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15729         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15730         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15731         * tests/unictype/test-pr_id_continue.c: Likewise.
15732         * tests/unictype/test-pr_id_start.c: Likewise.
15733         * tests/unictype/test-pr_ideographic.c: Likewise.
15734         * tests/unictype/test-pr_lowercase.c: Likewise.
15735         * tests/unictype/test-pr_math.c: Likewise.
15736         * tests/unictype/test-pr_numeric.c: Likewise.
15737         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15738         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15739         * tests/unictype/test-pr_other_math.c: Likewise.
15740         * tests/unictype/test-pr_punctuation.c: Likewise.
15741         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15742         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15745         * tests/unictype/test-pr_uppercase.c: Likewise.
15746         * tests/unictype/test-pr_xid_continue.c: Likewise.
15747         * tests/unictype/test-pr_xid_start.c: Likewise.
15748         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15749         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15750         changes.
15751         * lib/unictype/categ_Cc.h: Likewise.
15752         * lib/unictype/categ_Cf.h: Likewise.
15753         * lib/unictype/categ_Co.h: Likewise.
15754         * lib/unictype/categ_Cs.h: Likewise.
15755         * lib/unictype/categ_Lt.h: Likewise.
15756         * lib/unictype/categ_Nl.h: Likewise.
15757         * lib/unictype/categ_Pc.h: Likewise.
15758         * lib/unictype/categ_Pd.h: Likewise.
15759         * lib/unictype/categ_Pe.h: Likewise.
15760         * lib/unictype/categ_Pf.h: Likewise.
15761         * lib/unictype/categ_Pi.h: Likewise.
15762         * lib/unictype/categ_Ps.h: Likewise.
15763         * lib/unictype/categ_Z.h: Likewise.
15764         * lib/unictype/categ_Zl.h: Likewise.
15765         * lib/unictype/categ_Zp.h: Likewise.
15766         * lib/unictype/categ_Zs.h: Likewise.
15767         * lib/unictype/ctype_blank.h: Likewise.
15768         * lib/unictype/ctype_cntrl.h: Likewise.
15769         * lib/unictype/ctype_digit.h: Likewise.
15770         * lib/unictype/ctype_space.h: Likewise.
15771         * lib/unictype/ctype_xdigit.h: Likewise.
15772         * lib/unictype/mirror.h: Likewise.
15773         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15774         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15775         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15776         * lib/unictype/pr_bidi_control.h: Likewise.
15777         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15778         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15779         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15780         * lib/unictype/pr_bidi_pdf.h: Likewise.
15781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15783         * lib/unictype/pr_dash.h: Likewise.
15784         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15785         * lib/unictype/pr_diacritic.h: Likewise.
15786         * lib/unictype/pr_extender.h: Likewise.
15787         * lib/unictype/pr_hex_digit.h: Likewise.
15788         * lib/unictype/pr_hyphen.h: Likewise.
15789         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15790         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15791         * lib/unictype/pr_ignorable_control.h: Likewise.
15792         * lib/unictype/pr_iso_control.h: Likewise.
15793         * lib/unictype/pr_join_control.h: Likewise.
15794         * lib/unictype/pr_left_of_pair.h: Likewise.
15795         * lib/unictype/pr_line_separator.h: Likewise.
15796         * lib/unictype/pr_logical_order_exception.h: Likewise.
15797         * lib/unictype/pr_non_break.h: Likewise.
15798         * lib/unictype/pr_not_a_character.h: Likewise.
15799         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15800         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15801         * lib/unictype/pr_other_id_start.h: Likewise.
15802         * lib/unictype/pr_other_lowercase.h: Likewise.
15803         * lib/unictype/pr_other_uppercase.h: Likewise.
15804         * lib/unictype/pr_paired_punctuation.h: Likewise.
15805         * lib/unictype/pr_paragraph_separator.h: Likewise.
15806         * lib/unictype/pr_pattern_syntax.h: Likewise.
15807         * lib/unictype/pr_pattern_white_space.h: Likewise.
15808         * lib/unictype/pr_private_use.h: Likewise.
15809         * lib/unictype/pr_quotation_mark.h: Likewise.
15810         * lib/unictype/pr_radical.h: Likewise.
15811         * lib/unictype/pr_soft_dotted.h: Likewise.
15812         * lib/unictype/pr_space.h: Likewise.
15813         * lib/unictype/pr_titlecase.h: Likewise.
15814         * lib/unictype/pr_variation_selector.h: Likewise.
15815         * lib/unictype/pr_white_space.h: Likewise.
15816         * lib/unictype/pr_zero_width.h: Likewise.
15817         * lib/unictype/sy_c_ident.h: Likewise.
15818         * lib/unictype/sy_c_whitespace.h: Likewise.
15819         * lib/unictype/sy_java_whitespace.h: Likewise.
15820         * lib/uninorm/composition-table.gperf: Likewise.
15821         * lib/uninorm/decomposition-table1.h: Likewise.
15822         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15823         LB8.
15824         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15825         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15826         * modules/unictype/*: Bump version number of expected libunistring
15827         version.
15828
15829 2011-01-09  Bruno Haible  <bruno@clisp.org>
15830
15831         Update to Unicode 5.2.0.
15832         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15833         trailing whitespace removed.
15834
15835 2011-01-09  Bruno Haible  <bruno@clisp.org>
15836
15837         New Unicode character properties, from Unicode 5.2.0.
15838         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15839         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15840         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15841         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15842         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15843         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15844         uc_is_property_cased, uc_is_property_case_ignorable,
15845         uc_is_property_changes_when_lowercased,
15846         uc_is_property_changes_when_uppercased,
15847         uc_is_property_changes_when_titlecased,
15848         uc_is_property_changes_when_casefolded,
15849         uc_is_property_changes_when_casemapped): New declarations.
15850         * lib/unictype/pr_byname.gperf: Add the new properties.
15851         * modules/unictype/property-byname (Depends-on): Depend on the new
15852         properties modules.
15853         * modules/unictype/property-all (Depends-on): Likewise.
15854         * MODULES.html.sh (Unicode string functions): Add
15855         unictype/property-case-ignorable, unictype/property-cased,
15856         unictype/property-changes-when-casefolded,
15857         unictype/property-changes-when-casemapped,
15858         unictype/property-changes-when-lowercased,
15859         unictype/property-changes-when-titlecased,
15860         unictype/property-changes-when-uppercased.
15861
15862         New module 'unictype/property-changes-when-casemapped'.
15863         * modules/unictype/property-changes-when-casemapped: New file.
15864         * lib/unictype/pr_changes_when_casemapped.c: New file.
15865         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15866         generated by gen-uni-tables.
15867         * modules/unictype/property-changes-when-casemapped-tests: New file.
15868         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15869         automatically generated by gen-uni-tables.
15870
15871         New module 'unictype/property-changes-when-casefolded'.
15872         * modules/unictype/property-changes-when-casefolded: New file.
15873         * lib/unictype/pr_changes_when_casefolded.c: New file.
15874         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15875         generated by gen-uni-tables.
15876         * modules/unictype/property-changes-when-casefolded-tests: New file.
15877         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15878         automatically generated by gen-uni-tables.
15879
15880         New module 'unictype/property-changes-when-titlecased'.
15881         * modules/unictype/property-changes-when-titlecased: New file.
15882         * lib/unictype/pr_changes_when_titlecased.c: New file.
15883         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15884         generated by gen-uni-tables.
15885         * modules/unictype/property-changes-when-titlecased-tests: New file.
15886         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15887         automatically generated by gen-uni-tables.
15888
15889         New module 'unictype/property-changes-when-uppercased'.
15890         * modules/unictype/property-changes-when-uppercased: New file.
15891         * lib/unictype/pr_changes_when_uppercased.c: New file.
15892         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15893         generated by gen-uni-tables.
15894         * modules/unictype/property-changes-when-uppercased-tests: New file.
15895         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15896         automatically generated by gen-uni-tables.
15897
15898         New module 'unictype/property-changes-when-lowercased'.
15899         * modules/unictype/property-changes-when-lowercased: New file.
15900         * lib/unictype/pr_changes_when_lowercased.c: New file.
15901         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15902         generated by gen-uni-tables.
15903         * modules/unictype/property-changes-when-lowercased-tests: New file.
15904         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15905         automatically generated by gen-uni-tables.
15906
15907         New module 'unictype/property-case-ignorable'.
15908         * modules/unictype/property-case-ignorable: New file.
15909         * lib/unictype/pr_case_ignorable.c: New file.
15910         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15911         by gen-uni-tables.
15912         * modules/unictype/property-case-ignorable-tests: New file.
15913         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15914         generated by gen-uni-tables.
15915
15916         New module 'unictype/property-cased'.
15917         * modules/unictype/property-cased: New file.
15918         * lib/unictype/pr_cased.c: New file.
15919         * lib/unictype/pr_cased.h: New file, automatically generated by
15920         gen-uni-tables.
15921         * modules/unictype/property-cased-tests: New file.
15922         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15923         gen-uni-tables.
15924
15925 2011-01-09  Bruno Haible  <bruno@clisp.org>
15926
15927         Update to Unicode 5.2.0.
15928         * lib/gen-uni-tables.c (output_predicate, output_category,
15929         output_combclass, output_bidi_category, output_decimal_digit_test,
15930         output_decimal_digit, output_digit_test, output_digit,
15931         output_numeric_test, output_numeric, output_mirror, output_scripts,
15932         output_scripts_byname, output_blocks, output_ident_category): Fix
15933         comment header.
15934         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15935         get_wbp.
15936         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15937         items.
15938         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15939         Changes_When_Lowercased, Changes_When_Uppercased,
15940         Changes_When_Titlecased, Changes_When_Casefolded,
15941         Changes_When_Casemapped.
15942         (is_property_alphabetic, is_property_default_ignorable_code_point):
15943         Update for Unicode 5.2.0.
15944         (is_property_cased, is_property_case_ignorable,
15945         is_property_changes_when_lowercased,
15946         is_property_changes_when_uppercased,
15947         is_property_changes_when_titlecased,
15948         is_property_changes_when_casefolded,
15949         is_property_changes_when_casemapped): New functions.
15950         (output_properties): Output also the properties cased, case_ignorable,
15951         changes_when_lowercased, changes_when_uppercased,
15952         changes_when_titlecased, changes_when_casefolded,
15953         changes_when_casemapped.
15954         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15955         Unicode TR#11 revision 17 -> 19.
15956         (LBP_CP): New enumeration value.
15957         (LBP_*): Adjust values accordingly.
15958         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15959         TR#14 revision 22 -> 24.
15960         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15961         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15962         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15963         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15964         is_WBP_MIDLETTER.
15965         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15966         the code1 and code2 of each composition rule.
15967         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15968         * lib/unicase/ignorable.h: Likewise.
15969         * lib/unicase/tocasefold.h: Likewise.
15970         * lib/unicase/tolower.h: Likewise.
15971         * lib/unicase/totitle.h: Likewise.
15972         * lib/unicase/toupper.h: Likewise.
15973         * lib/unictype/bidi_of.h: Likewise.
15974         * lib/unictype/blocks.h: Likewise.
15975         * lib/unictype/categ_C.h: Likewise.
15976         * lib/unictype/categ_Cf.h: Likewise.
15977         * lib/unictype/categ_Cn.h: Likewise.
15978         * lib/unictype/categ_L.h: Likewise.
15979         * lib/unictype/categ_Ll.h: Likewise.
15980         * lib/unictype/categ_Lm.h: Likewise.
15981         * lib/unictype/categ_Lo.h: Likewise.
15982         * lib/unictype/categ_Lu.h: Likewise.
15983         * lib/unictype/categ_M.h: Likewise.
15984         * lib/unictype/categ_Mc.h: Likewise.
15985         * lib/unictype/categ_Mn.h: Likewise.
15986         * lib/unictype/categ_N.h: Likewise.
15987         * lib/unictype/categ_Nd.h: Likewise.
15988         * lib/unictype/categ_Nl.h: Likewise.
15989         * lib/unictype/categ_No.h: Likewise.
15990         * lib/unictype/categ_P.h: Likewise.
15991         * lib/unictype/categ_Pd.h: Likewise.
15992         * lib/unictype/categ_Po.h: Likewise.
15993         * lib/unictype/categ_S.h: Likewise.
15994         * lib/unictype/categ_Sc.h: Likewise.
15995         * lib/unictype/categ_So.h: Likewise.
15996         * lib/unictype/categ_of.h: Likewise.
15997         * lib/unictype/combining.h: Likewise.
15998         * lib/unictype/ctype_alnum.h: Likewise.
15999         * lib/unictype/ctype_alpha.h: Likewise.
16000         * lib/unictype/ctype_graph.h: Likewise.
16001         * lib/unictype/ctype_lower.h: Likewise.
16002         * lib/unictype/ctype_print.h: Likewise.
16003         * lib/unictype/ctype_punct.h: Likewise.
16004         * lib/unictype/ctype_upper.h: Likewise.
16005         * lib/unictype/decdigit.h: Likewise.
16006         * lib/unictype/digit.h: Likewise.
16007         * lib/unictype/numeric.h: Likewise.
16008         * lib/unictype/pr_alphabetic.h: Likewise.
16009         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16010         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16011         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16012         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16013         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16014         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16015         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16016         * lib/unictype/pr_combining.h: Likewise.
16017         * lib/unictype/pr_composite.h: Likewise.
16018         * lib/unictype/pr_currency_symbol.h: Likewise.
16019         * lib/unictype/pr_dash.h: Likewise.
16020         * lib/unictype/pr_decimal_digit.h: Likewise.
16021         * lib/unictype/pr_deprecated.h: Likewise.
16022         * lib/unictype/pr_diacritic.h: Likewise.
16023         * lib/unictype/pr_extender.h: Likewise.
16024         * lib/unictype/pr_grapheme_base.h: Likewise.
16025         * lib/unictype/pr_grapheme_extend.h: Likewise.
16026         * lib/unictype/pr_grapheme_link.h: Likewise.
16027         * lib/unictype/pr_id_continue.h: Likewise.
16028         * lib/unictype/pr_id_start.h: Likewise.
16029         * lib/unictype/pr_ideographic.h: Likewise.
16030         * lib/unictype/pr_ignorable_control.h: Likewise.
16031         * lib/unictype/pr_logical_order_exception.h: Likewise.
16032         * lib/unictype/pr_lowercase.h: Likewise.
16033         * lib/unictype/pr_numeric.h: Likewise.
16034         * lib/unictype/pr_other_alphabetic.h: Likewise.
16035         * lib/unictype/pr_punctuation.h: Likewise.
16036         * lib/unictype/pr_sentence_terminal.h: Likewise.
16037         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16038         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16039         * lib/unictype/pr_unified_ideograph.h: Likewise.
16040         * lib/unictype/pr_uppercase.h: Likewise.
16041         * lib/unictype/pr_xid_continue.h: Likewise.
16042         * lib/unictype/pr_xid_start.h: Likewise.
16043         * lib/unictype/pr_zero_width.h: Likewise.
16044         * lib/unictype/scripts.h: Likewise.
16045         * lib/unictype/scripts_byname.gperf: Likewise.
16046         * lib/unictype/sy_java_ident.h: Likewise.
16047         * lib/unigbrk/gbrkprop.h: Likewise.
16048         * lib/unilbrk/lbrkprop1.h: Likewise.
16049         * lib/unilbrk/lbrkprop2.h: Likewise.
16050         * lib/unilbrk/lbrktables.h: Likewise.
16051         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16052         LBP_CP. Implement rule LB30.
16053         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16054         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16055         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16056         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16057         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16058         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16059         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16060         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16061         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16062         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16063         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16064         bits instead of 16 bits in the code1 and code2 of each composition
16065         rule.
16066         (uc_composition): Update for Unicode 5.2.0.
16067         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16068         * lib/uninorm/decomposition-table2.h: Likewise.
16069         * lib/uniwbrk/wbrkprop.h: Likewise.
16070         * tests/unicase/test-cased.c: Likewise.
16071         * tests/unicase/test-ignorable.c: Likewise.
16072         * tests/unicase/test-uc_tolower.c: Likewise.
16073         * tests/unicase/test-uc_totitle.c: Likewise.
16074         * tests/unicase/test-uc_toupper.c: Likewise.
16075         * tests/unictype/test-categ_C.c: Likewise.
16076         * tests/unictype/test-categ_Cf.c: Likewise.
16077         * tests/unictype/test-categ_Cn.c: Likewise.
16078         * tests/unictype/test-categ_L.c: Likewise.
16079         * tests/unictype/test-categ_Ll.c: Likewise.
16080         * tests/unictype/test-categ_Lm.c: Likewise.
16081         * tests/unictype/test-categ_Lo.c: Likewise.
16082         * tests/unictype/test-categ_Lu.c: Likewise.
16083         * tests/unictype/test-categ_M.c: Likewise.
16084         * tests/unictype/test-categ_Mc.c: Likewise.
16085         * tests/unictype/test-categ_Mn.c: Likewise.
16086         * tests/unictype/test-categ_N.c: Likewise.
16087         * tests/unictype/test-categ_Nd.c: Likewise.
16088         * tests/unictype/test-categ_Nl.c: Likewise.
16089         * tests/unictype/test-categ_No.c: Likewise.
16090         * tests/unictype/test-categ_P.c: Likewise.
16091         * tests/unictype/test-categ_Pd.c: Likewise.
16092         * tests/unictype/test-categ_Po.c: Likewise.
16093         * tests/unictype/test-categ_S.c: Likewise.
16094         * tests/unictype/test-categ_Sc.c: Likewise.
16095         * tests/unictype/test-categ_So.c: Likewise.
16096         * tests/unictype/test-ctype_alnum.c: Likewise.
16097         * tests/unictype/test-ctype_alpha.c: Likewise.
16098         * tests/unictype/test-ctype_graph.c: Likewise.
16099         * tests/unictype/test-ctype_lower.c: Likewise.
16100         * tests/unictype/test-ctype_print.c: Likewise.
16101         * tests/unictype/test-ctype_punct.c: Likewise.
16102         * tests/unictype/test-ctype_upper.c: Likewise.
16103         * tests/unictype/test-decdigit.h: Likewise.
16104         * tests/unictype/test-digit.h: Likewise.
16105         * tests/unictype/test-numeric.h: Likewise.
16106         * tests/unictype/test-pr_alphabetic.c: Likewise.
16107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16108         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16109         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16110         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16111         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16112         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16113         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16114         * tests/unictype/test-pr_combining.c: Likewise.
16115         * tests/unictype/test-pr_composite.c: Likewise.
16116         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16117         * tests/unictype/test-pr_dash.c: Likewise.
16118         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16119         * tests/unictype/test-pr_deprecated.c: Likewise.
16120         * tests/unictype/test-pr_diacritic.c: Likewise.
16121         * tests/unictype/test-pr_extender.c: Likewise.
16122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16125         * tests/unictype/test-pr_id_continue.c: Likewise.
16126         * tests/unictype/test-pr_id_start.c: Likewise.
16127         * tests/unictype/test-pr_ideographic.c: Likewise.
16128         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16129         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16130         * tests/unictype/test-pr_lowercase.c: Likewise.
16131         * tests/unictype/test-pr_numeric.c: Likewise.
16132         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16133         * tests/unictype/test-pr_punctuation.c: Likewise.
16134         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16135         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16136         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16137         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16138         * tests/unictype/test-pr_uppercase.c: Likewise.
16139         * tests/unictype/test-pr_xid_continue.c: Likewise.
16140         * tests/unictype/test-pr_xid_start.c: Likewise.
16141         * tests/unictype/test-pr_zero_width.c: Likewise.
16142         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16143         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16144         changed behaviour: line breaking is now disallowed between a letter
16145         or '=' and '('.
16146         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16147         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16148         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16149         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16150         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16151         lib/uniwidth/width.c.
16152         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16153         without comments, but with the original copyright notice.
16154         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16155         changes.
16156         * lib/unictype/categ_Cc.h: Likewise.
16157         * lib/unictype/categ_Co.h: Likewise.
16158         * lib/unictype/categ_Cs.h: Likewise.
16159         * lib/unictype/categ_Lt.h: Likewise.
16160         * lib/unictype/categ_Me.h: Likewise.
16161         * lib/unictype/categ_Pc.h: Likewise.
16162         * lib/unictype/categ_Pe.h: Likewise.
16163         * lib/unictype/categ_Pf.h: Likewise.
16164         * lib/unictype/categ_Pi.h: Likewise.
16165         * lib/unictype/categ_Ps.h: Likewise.
16166         * lib/unictype/categ_Sk.h: Likewise.
16167         * lib/unictype/categ_Sm.h: Likewise.
16168         * lib/unictype/categ_Z.h: Likewise.
16169         * lib/unictype/categ_Zl.h: Likewise.
16170         * lib/unictype/categ_Zp.h: Likewise.
16171         * lib/unictype/categ_Zs.h: Likewise.
16172         * lib/unictype/ctype_blank.h: Likewise.
16173         * lib/unictype/ctype_cntrl.h: Likewise.
16174         * lib/unictype/ctype_digit.h: Likewise.
16175         * lib/unictype/ctype_space.h: Likewise.
16176         * lib/unictype/ctype_xdigit.h: Likewise.
16177         * lib/unictype/mirror.h: Likewise.
16178         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16179         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16180         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16181         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16182         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16183         * lib/unictype/pr_bidi_control.h: Likewise.
16184         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16185         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16186         * lib/unictype/pr_bidi_pdf.h: Likewise.
16187         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16188         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16189         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16190         * lib/unictype/pr_format_control.h: Likewise.
16191         * lib/unictype/pr_hex_digit.h: Likewise.
16192         * lib/unictype/pr_hyphen.h: Likewise.
16193         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16194         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16195         * lib/unictype/pr_iso_control.h: Likewise.
16196         * lib/unictype/pr_join_control.h: Likewise.
16197         * lib/unictype/pr_left_of_pair.h: Likewise.
16198         * lib/unictype/pr_line_separator.h: Likewise.
16199         * lib/unictype/pr_math.h: Likewise.
16200         * lib/unictype/pr_non_break.h: Likewise.
16201         * lib/unictype/pr_not_a_character.h: Likewise.
16202         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16203         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16204         * lib/unictype/pr_other_id_continue.h: Likewise.
16205         * lib/unictype/pr_other_id_start.h: Likewise.
16206         * lib/unictype/pr_other_lowercase.h: Likewise.
16207         * lib/unictype/pr_other_math.h: Likewise.
16208         * lib/unictype/pr_other_uppercase.h: Likewise.
16209         * lib/unictype/pr_paired_punctuation.h: Likewise.
16210         * lib/unictype/pr_paragraph_separator.h: Likewise.
16211         * lib/unictype/pr_pattern_syntax.h: Likewise.
16212         * lib/unictype/pr_pattern_white_space.h: Likewise.
16213         * lib/unictype/pr_private_use.h: Likewise.
16214         * lib/unictype/pr_quotation_mark.h: Likewise.
16215         * lib/unictype/pr_radical.h: Likewise.
16216         * lib/unictype/pr_soft_dotted.h: Likewise.
16217         * lib/unictype/pr_space.h: Likewise.
16218         * lib/unictype/pr_titlecase.h: Likewise.
16219         * lib/unictype/pr_variation_selector.h: Likewise.
16220         * lib/unictype/pr_white_space.h: Likewise.
16221         * lib/unictype/sy_c_ident.h: Likewise.
16222         * lib/unictype/sy_c_whitespace.h: Likewise.
16223         * lib/unictype/sy_java_whitespace.h: Likewise.
16224         * modules/uni*/*: Bump version number of expected libunistring version.
16225         Reported by Simon Josefsson.
16226
16227 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16228
16229         useless-if-before-free: fix typo in --help and make the internal,
16230         automatic version date update process work once again.
16231         --help output contained a NUL character instead of the
16232         backslash-zero that was intended.  Also, the "must lie within
16233         the first 8 lines" line is on line 9, and hence not getting
16234         automatically updated.
16235         * build-aux/useless-if-before-free: Fix the former by adding a
16236         backslash, and the latter by condensing the three lines of what-it-does
16237         to a single line, leaving one line of slack for the future.
16238
16239 2011-01-09  Bruno Haible  <bruno@clisp.org>
16240
16241         uniwidth/width: Fix width of U+1D173..U+1D17A.
16242         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16243         symbolic_width, output_width_property_test): New functions.
16244         (main): Invoke output_nonspacing_property, output_width_property_test.
16245         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16246         U+1D173..U+1D17A.
16247         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16248         1.
16249         * modules/uniwidth/*: Bump version number of expected libunistring
16250         version.
16251         * modules/unilbrk/*: Likewise.
16252
16253 2011-01-08  Bruno Haible  <bruno@clisp.org>
16254
16255         uninorm tests: Preserve copyright of Unicode data file.
16256         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16257         Mention modifications.
16258
16259 2011-01-08  Bruno Haible  <bruno@clisp.org>
16260
16261         gen-uni-tables: Prepare for Unicode 5.2.0.
16262         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16263         (debug_output_lbp, output_lbp): Update.
16264
16265 2011-01-08  Bruno Haible  <bruno@clisp.org>
16266
16267         unilbrk: Clarify gen-uni-tables.c code.
16268         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16269         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16270         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16271
16272 2011-01-07  Bruno Haible  <bruno@clisp.org>
16273
16274         strtod: Restore errno when successfully parsing Infinity or NaN.
16275         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16276         restore the original errno.
16277
16278 2011-01-07  Bruno Haible  <bruno@clisp.org>
16279
16280         remove test: Avoid failure on HP-UX 11.
16281         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16282
16283 2011-01-07  Bruno Haible  <bruno@clisp.org>
16284
16285         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16286         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16287         error code.
16288
16289 2011-01-07  Pádraig Brady <P@draigBrady.com>
16290
16291         ignore-value: fixup comments, and add Eric Blake
16292         as an author since he rewrote the macros.
16293         * lib/ignore-value.h (ignore_value):  State that
16294         we now support aggregates.  Also specify exactly
16295         when the GCC warn_unused_result feature was added.
16296
16297 2011-01-06  Eric Blake  <eblake@redhat.com>
16298
16299         ignore-value: support aggregate types
16300         * lib/ignore-value.h (ignore_value): Provide separate gcc
16301         definition.
16302         * modules/ignore-value-tests: New test module.
16303         * tests/test-ignore-value.c: New test.
16304
16305         maint.mk: improve sc_prohibit_strcmp regex
16306         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16307         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16308         definition of STRNEQ.
16309
16310         signal: work around Haiku issue with SIGBUS
16311         * lib/siglist.h: Add comment.
16312         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16313         strsignal's favoring of SIGSEGV.
16314         * tests/test-signal.c (main): Avoid test failure.
16315         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16316         Reported by Scott McCreary.
16317
16318         maint.mk: add pre-release check to ensure submodule commits are public
16319         * top/maint.mk (public-submodule-commit): New rule.
16320         (submodule-checks): New variable.
16321         (alpha beta stable): Depend on the variable.
16322
16323 2011-01-05  Pádraig Brady <P@draigBrady.com>
16324         and Jim Meyering  <meyering@redhat.com>
16325
16326         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16327         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16328         (ATTRIBUTE_DEPRECATED): Define.
16329         (_ignore_case): New function.
16330         (ignore_value): New macro, to replace the old function.
16331         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16332         * modules/ignore-value (Depends-on): Add stdint.
16333
16334 2011-01-04  Eric Blake  <eblake@redhat.com>
16335
16336         doc: regenerate INSTALL
16337         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16338         @firstparagraphindent support, now that autoconf dropped it.
16339         (INSTALL_PRELUDE): Reinstate old macro.
16340         * doc/install.texi: Resync from autoconf.
16341         * doc/INSTALL: Reflect recent autoconf update.
16342         * doc/INSTALL.ISO: Likewise.
16343         * doc/INSTALL.UTF-8: Likewise.
16344         Reported by Karl Berry.
16345
16346 2011-01-04  Bruce Korb  <address@hidden>
16347
16348         git-version-gen: avoid a sub-shell
16349         * build-aux/git-version-gen: Redirect stderr in `...` via
16350         "exec 2>...", rather than via an added sub-shell.
16351
16352 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16353
16354         git-version-gen: use (...) rather than sh -c '...'
16355         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16356         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16357
16358 2011-01-03  Jim Meyering  <meyering@redhat.com>
16359
16360         git-version-gen: convert leading TABs to spaces
16361         * build-aux/git-version-gen: Expand leading TABs.
16362
16363         git-version-gen: handle failed "git rev-list"
16364         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16365         from git and proceeding as if it had succeeded but printed no SHA1
16366         checksums, suppress the diagnostic and handle the failure.
16367         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16368
16369         git-version-gen: include command name in one more diagnostic
16370         * build-aux/git-version-gen: When the required .tarball-version file
16371         was missing or unreadable, you might see the diagnostic from "cat",
16372         but no trace of the name of the invoking script.  Now, you still see
16373         the diagnostic from cat, but also get one from "git-version-gen: ".
16374         Inspired by a patch from Bruce Korb.
16375
16376         update-copyright: adjust test to match changed code
16377         * tests/test-update-copyright.sh: Change test's expected output
16378         to match new actual output.
16379
16380 2011-01-02  Bruno Haible  <bruno@clisp.org>
16381
16382         getlogin_r: Avoid test failure on HP-UX 11.
16383         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16384         ERANGE when the second argument is zero.
16385         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16386         portability problem.
16387
16388 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16389
16390         * build-aux/update-copyright: doc Simon's changes
16391
16392 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16393
16394         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16395         environment variable.
16396
16397 2011-01-02  Bruno Haible  <bruno@clisp.org>
16398
16399         unigbrk: Avoid gcc warnings.
16400         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16401         unused variable.
16402         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16403         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16404         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16405         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16406         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16407         Change type of first argument to 'const char *'.
16408         (main): Remove unused variable.
16409         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16410         type of first argument to 'const char *'.
16411         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16412         Likewise.
16413         (main): Change type of variable 's'.
16414         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16415         to 'int'.
16416
16417 2011-01-02  Bruno Haible  <bruno@clisp.org>
16418
16419         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16420         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16421         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16422         bug.
16423         * lib/pwrite.c: Undo 2010-12-31 patch.
16424         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16425
16426 2011-01-02  Bruno Haible  <bruno@clisp.org>
16427
16428         pread: Fix test whether it works.
16429         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16430
16431 2011-01-02  Bruno Haible  <bruno@clisp.org>
16432
16433         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16434         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16435         ends in "6". Don't require a specific month name. Try also the locale
16436         names found on HP-UX 11 and Solaris 7.
16437
16438 2011-01-02  Bruno Haible  <bruno@clisp.org>
16439
16440         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16441         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16442         C linkage.
16443         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16444
16445 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16446
16447         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16448         for consistency, since the "cluster" term is not used elsewhere.
16449         * lib/unigbrk.in.h: Update name.
16450         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16451         * lib/unigbrk/u16-grapheme-next.c: Update name.
16452         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16453         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16454         * lib/unigbrk/u32-grapheme-next.c: Update name.
16455         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16456         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16457         * lib/unigbrk/u8-grapheme-next.c: Update name.
16458         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16459         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16460         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16461         Suggested by Bruno Haible.
16462
16463 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16464
16465         Remove module 'u8-grapheme-len' as too redundant with
16466         'u8-grapheme-next'.
16467         * modules/unigbrk/u8-grapheme-len: Delete file.
16468         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16469         * lib/unigbrk.in.h: Remove prototype for deleted function.
16470         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16471         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16472
16473         Remove module 'u16-grapheme-len' as too redundant with
16474         'u16-grapheme-next'.
16475         * modules/unigbrk/u16-grapheme-len: Delete file.
16476         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16477         * lib/unigbrk.in.h: Remove prototype for deleted function.
16478         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16479         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16480
16481         Remove module 'u32-grapheme-len' as too redundant with
16482         'u32-grapheme-next'.
16483         * modules/unigbrk/u32-grapheme-len: Delete file.
16484         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16485         * lib/unigbrk.in.h: Remove prototype for deleted function.
16486         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16487         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16488
16489         Suggested by Bruno Haible.
16490
16491 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16492
16493         * unigbrk.in.h: Fix typo: "ben" => "been".
16494         Reported by Bruno Haible.
16495
16496 2011-01-01  Jim Meyering  <meyering@redhat.com>
16497
16498         maint: update almost all copyright ranges to include 2011
16499         Run the new "make update-copyright" rule.
16500
16501 2011-01-01  Jim Meyering  <meyering@redhat.com>
16502
16503         maint: update-copyright: exempt doc/INSTALL*
16504         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16505         since they are generated.  Suggested by Bruno Haible.
16506
16507 2011-01-01  Jim Meyering  <meyering@redhat.com>
16508
16509         maint: refine the update-copyright rule
16510         * Makefile (update-copyright): Also exclude any file that includes
16511         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16512         code that merely generates the comment.
16513
16514 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16515
16516         New module 'u8-grapheme-len'.
16517         * modules/unigbrk/u8-grapheme-len: New file.
16518         * modules/unigbrk/u8-grapheme-len-tests: New file.
16519         * lib/unigbrk.in.h: Add prototype for new function.
16520         * lib/unigbrk/u8-grapheme-len.c: New file.
16521         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16522
16523         New module 'u16-grapheme-len'.
16524         * modules/unigbrk/u16-grapheme-len: New file.
16525         * modules/unigbrk/u16-grapheme-len-tests: New file.
16526         * lib/unigbrk.in.h: Add prototype for new function.
16527         * lib/unigbrk/u16-grapheme-len.c: New file.
16528         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16529
16530         New module 'u32-grapheme-len'.
16531         * modules/unigbrk/u32-grapheme-len: New file.
16532         * modules/unigbrk/u32-grapheme-len-tests: New file.
16533         * lib/unigbrk.in.h: Add prototype for new function.
16534         * lib/unigbrk/u32-grapheme-len.c: New file.
16535         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16536
16537         New module 'u8-grapheme-next'.
16538         * modules/unigbrk/u8-grapheme-next: New file.
16539         * modules/unigbrk/u8-grapheme-next-tests: New file.
16540         * lib/unigbrk.in.h: Add prototype for new function.
16541         * lib/unigbrk/u8-grapheme-next.c: New file.
16542         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16543
16544         New module 'u16-grapheme-next'.
16545         * modules/unigbrk/u16-grapheme-next: New file.
16546         * modules/unigbrk/u16-grapheme-next-tests: New file.
16547         * lib/unigbrk.in.h: Add prototype for new function.
16548         * lib/unigbrk/u16-grapheme-next.c: New file.
16549         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16550
16551         New module 'u32-grapheme-next'.
16552         * modules/unigbrk/u32-grapheme-next: New file.
16553         * modules/unigbrk/u32-grapheme-next-tests: New file.
16554         * lib/unigbrk.in.h: Add prototype for new function.
16555         * lib/unigbrk/u32-grapheme-next.c: New file.
16556         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16557
16558         New module 'u8-grapheme-prev'.
16559         * modules/unigbrk/u8-grapheme-prev: New file.
16560         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16561         * lib/unigbrk.in.h: Add prototype for new function.
16562         * lib/unigbrk/u8-grapheme-prev.c: New file.
16563         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16564
16565         New module 'u16-grapheme-prev'.
16566         * modules/unigbrk/u16-grapheme-prev: New file.
16567         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16568         * lib/unigbrk.in.h: Add prototype for new function.
16569         * lib/unigbrk/u16-grapheme-prev.c: New file.
16570         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16571
16572         New module 'u32-grapheme-prev'.
16573         * modules/unigbrk/u32-grapheme-prev: New file.
16574         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16575         * lib/unigbrk.in.h: Add prototype for new function.
16576         * lib/unigbrk/u32-grapheme-prev.c: New file.
16577         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16578
16579         New module 'u8-grapheme-breaks'.
16580         * modules/unigbrk/u8-grapheme-breaks: New file.
16581         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16582         * lib/unigbrk.in.h: Add prototype for new function.
16583         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16584         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16585
16586         New module 'u16-grapheme-breaks'.
16587         * modules/unigbrk/u16-grapheme-breaks: New file.
16588         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16589         * lib/unigbrk.in.h: Add prototype for new function.
16590         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16591         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16592
16593         New module 'u32-grapheme-breaks'.
16594         * modules/unigbrk/u32-grapheme-breaks: New file.
16595         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16596         * lib/unigbrk.in.h: Add prototype for new function.
16597         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16598         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16599
16600         New module 'ulc-grapheme-breaks'.
16601         * modules/unigbrk/ulc-grapheme-breaks: New file.
16602         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16603         * m4/locale-ar.m4: New file.
16604         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16605         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16606         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16607
16608 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16609
16610         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16611         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16612         modified how this file was generated before I initially submitted
16613         the module, but failed to regenerate it.  This meant that several
16614         of the level2 entries were wrong.
16615         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16616         Remove the division-by-2 that is folded into the table now that
16617         gbrkprop.h has been regenerated properly.  Now -1 entries are
16618         handled correctly.
16619
16620         New module 'unigbrk/uc-gbrk-prop-tests'.
16621         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16622         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16623         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16624         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16625
16626 2011-01-01  Bruno Haible  <bruno@clisp.org>
16627
16628         Avoid use of hexadecimal escapes.
16629         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16630         instead of hexadecimal escapes.
16631
16632 2011-01-01  Jim Meyering  <meyering@redhat.com>
16633
16634         maint: new rule to update copyright year ranges
16635         * Makefile (update-copyright): New rule.
16636
16637         maint: indent with TABs in Makefile
16638         * Makefile: Expand leading sequences of spaces to TABs
16639
16640         version-etc: update the copyright year it reports
16641         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16642
16643 2010-12-31  Bruno Haible  <bruno@clisp.org>
16644
16645         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16646         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16647         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16648         zero.
16649
16650 2010-12-31  Bruno Haible  <bruno@clisp.org>
16651
16652         pwrite: Work around HP-UX 11.11 bug.
16653         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16654         works and set REPLACE_PWRITE if not.
16655         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16656         function.
16657         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16658
16659 2010-12-31  Bruno Haible  <bruno@clisp.org>
16660
16661         pread: Work around HP-UX 11 bugs.
16662         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16663         and set REPLACE_PREAD if not.
16664         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16665
16666 2010-12-31  Eric Blake  <eblake@redhat.com>
16667
16668         nl_langinfo: fix YESEXPR on Irix 6.5
16669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16670         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16671         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16672         it.
16673
16674 2010-12-31  Bruno Haible  <bruno@clisp.org>
16675
16676         iconv: Document HP-UX 11 bug.
16677         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16678
16679 2010-12-31  Bruno Haible  <bruno@clisp.org>
16680
16681         ldexpl: Fix link error on HP-UX 11.
16682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16683         LDEXPL_LIBM, using $ISNANL_LIBM.
16684
16685 2010-12-31  Eric Blake  <eblake@redhat.com>
16686
16687         ftello: avoid compilation failure with SunStudio c89
16688         * lib/ftello.c (ftello): Use lseek, not llseek.
16689
16690         tests: avoid failing coreutils tests on cygwin
16691         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16692         (create_exe_shims_): Return 0 when skipping.
16693
16694 2010-12-31  Bruno Haible  <bruno@clisp.org>
16695
16696         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16697         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16698
16699 2010-12-31  Bruno Haible  <bruno@clisp.org>
16700
16701         waitpid: Fix link error in C++ mode.
16702         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16703
16704 2010-12-31  Bruno Haible  <bruno@clisp.org>
16705
16706         isnan: Use GCC built-ins when possible.
16707         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16708         __builtin_isnan.
16709         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16710         (isnan): Define using GCC built-ins for GCC >= 4.0.
16711
16712 2010-12-31  Bruno Haible  <bruno@clisp.org>
16713
16714         isnand: Fix mistake.
16715         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16716         __builtin_isnand.
16717
16718 2010-12-31  Bruno Haible  <bruno@clisp.org>
16719
16720         open: Avoid C++ error on HP-UX 11.
16721         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16722
16723 2010-12-31  Bruno Haible  <bruno@clisp.org>
16724
16725         time_r: Add missing declarations on HP-UX 11.
16726         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16727         instead of HAVE_LOCALTIME_R.
16728         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16729         HAVE_LOCALTIME_R always.
16730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16731         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16732         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16733         HAVE_LOCALTIME_R.
16734         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16735         * doc/posix-functions/localtime_r.texi: Likewise.
16736
16737 2010-12-29  Eric Blake  <eblake@redhat.com>
16738
16739         mountlist: tweak previous commit
16740         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16741         Reported by Paul Eggert.
16742
16743         mountlist: fix local drive detection on cygwin
16744         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16745         that works for cygwin.
16746
16747 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16748
16749         ftoastr, snprintf: ftoastr + snprintf module
16750         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16751         since the snprintf module now should be good enough here.
16752         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16753         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16754         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16755         GNULIB_SNPRINTF only for the test directory, and the latter
16756         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16757         seems to suffice by itself.
16758
16759 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16760
16761         alloca: one step towards thread-safety
16762         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16763         need for a static variable.  All callers changed.  This does not
16764         make the alloca replacement thread-safe, but it's one step.
16765
16766         tests: minor indenting change
16767         * tests/init.sh: Sync from coreutils housekeeping patch
16768         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16769         to keep lines within 80 columns.
16770
16771 2010-12-28  Jim Meyering  <meyering@redhat.com>
16772
16773         regex: don't infloop on persistent failing calloc
16774         * lib/regexec.c (build_trtable): Return failure indication upon
16775         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16776         In glibc, this was fixed for version 2.13:
16777         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16778
16779 2010-12-28  Bruno Haible  <bruno@clisp.org>
16780             Paul Eggert <eggert@cs.ucla.edu>
16781
16782         linkat: Make implementation robust against system behaviour variations.
16783         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16784         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16785         way, and to -2 if it needs a generic runtime test.
16786         * lib/linkat.c (solaris_optimized_link_immediate,
16787         solaris_optimized_link_follow): New functions.
16788         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16789         (check_same_link): Use it.
16790
16791 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16792
16793         New module 'unigbrk/base'.
16794         * modules/unigbrk/base: New file.
16795         * lib/unigbrk.in.h: New file.
16796
16797         New module 'unigbrk/uc-gbrk-prop'.
16798         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16799         * modules/unigbrk/uc-gbrk-prop: New file.
16800         * lib/unigbrk/gbrkprop.h: New file.
16801         * lib/unigbrk/uc-gbrk-prop.c: New file.
16802
16803         New module 'unigbrk/uc-is-grapheme-break'.
16804         * modules/unigbrk/uc-is-grapheme-break: New file.
16805         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16806         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16807         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16808         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16809         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16810
16811         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16812
16813 2010-12-27  Bruno Haible  <bruno@clisp.org>
16814
16815         linkat test: Avoid failure on Solaris 11 2010-11.
16816         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16817
16818 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16819
16820         utimens: work around glibc rounding bug on more platforms
16821         * lib/utimens.c (fdutimens): Work around rounding bug even if
16822         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16824
16825 2010-12-27  Bruno Haible  <bruno@clisp.org>
16826
16827         select tests: Improve comments.
16828         * tests/test-select.c (do_select): Add comments.
16829
16830 2010-12-27  Bruno Haible  <bruno@clisp.org>
16831
16832         select tests: Safer way of handling timeout.
16833         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16834         at every invocation.
16835
16836 2010-12-27  Bruno Haible  <bruno@clisp.org>
16837
16838         select tests: Use 'bool' where appropriate.
16839         * tests/test-select.c (connect_to_socket): Change argument type to
16840         'bool'.
16841
16842 2010-12-27  Bruno Haible  <bruno@clisp.org>
16843
16844         select tests: Use existing modules.
16845         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16846         (configure.ac): Don't test for unistd.h.
16847         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16848         declared in <unistd.h>.
16849
16850 2010-12-27  Bruno Haible  <bruno@clisp.org>
16851
16852         mbrtowc: Work around a Solaris 7 bug.
16853         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16854         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16855         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16856         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16857         MBRTOWC_NULL_ARG1_BUG.
16858         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16859         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16860         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16861         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16862
16863 2010-12-27  Jim Meyering  <meyering@redhat.com>
16864
16865         read-file.c: tweak syntax
16866         * lib/read-file.c (fread_file): Remove space after "*" in function
16867         definitions.
16868
16869 2010-12-27  Bruno Haible  <bruno@clisp.org>
16870
16871         times test: Avoid gcc warnings on OSF/1.
16872         * tests/test-times.c (main): Cast printf arguments from clock_t to
16873         'long int'.
16874
16875 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16876
16877         utimens: work around glibc rounding bug on older Linux kernels
16878         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16879         on Linux with a glibc whose utimes might not work, then work
16880         around a longstanding glibc bug involving rounding rather than
16881         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16883
16884 2010-12-26  Bruno Haible  <bruno@clisp.org>
16885
16886         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16887         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16888         _GL_CXXALIAS_SYS.
16889         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16890
16891 2010-12-26  Bruno Haible  <bruno@clisp.org>
16892
16893         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16894         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16895         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16896         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16897         looking for the declaration.
16898         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16899         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16900         problem.
16901         * doc/posix-functions/inet_pton.texi: Likewise.
16902
16903 2010-12-26  Bruno Haible  <bruno@clisp.org>
16904
16905         arpa_inet: Use the common idioms with C++ support.
16906         * lib/arpa_inet.in.h: Include c++defs.h.
16907         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16908         support.
16909         * modules/arpa_inet (Depends-on): Add c++defs.
16910         (Makefile.am): Substitute the contents of c++defs.h.
16911         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16912         * modules/arpa_inet-c++-tests: New file.
16913         * tests/test-arpa_inet-c++.cc: New file.
16914
16915 2010-12-25  Bruno Haible  <bruno@clisp.org>
16916
16917         Fix more C++ link errors on Solaris 8.
16918         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16919         $(LIB_EACCESS).
16920         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16921         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16922         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16923         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16924         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16925
16926 2010-12-25  Bruno Haible  <bruno@clisp.org>
16927
16928         printf-posix: Fix link error when a non-GCC compiler is used.
16929         * lib/stdio.in.h (printf): When not using GCC, override printf
16930         correctly.
16931         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16932
16933 2010-12-25  Bruno Haible  <bruno@clisp.org>
16934
16935         strerror_r-posix: Update doc.
16936         * doc/posix-functions/strerror_r.texi: Update doc about the return
16937         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16938
16939 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16940
16941         utimens: simplify the logic of the previous change
16942         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16943         This should not affect whether the test succeeds or fails.
16944
16945         utimens: configure better on hosts with NFS clock skew
16946         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16947         uses the clock of the local host.  It might use the clock of the
16948         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16950
16951 2010-12-25  Bruno Haible  <bruno@clisp.org>
16952
16953         ptsname test: Avoid failure on Solaris.
16954         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16955         open a pseudo-terminal; don't use BSD-style ptys.
16956         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16957
16958 2010-12-25  Bruno Haible  <bruno@clisp.org>
16959
16960         ptsname: Avoid ERANGE failure on some systems.
16961         * lib/ptsname.c (buffer): Increase size.
16962
16963 2010-12-25  Bruno Haible  <bruno@clisp.org>
16964
16965         rename, renameat: Avoid test failures at NFS mounted locations.
16966         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16967         so that subsequent mkdir calls succeed.
16968
16969 2010-12-25  Bruno Haible  <bruno@clisp.org>
16970
16971         iswblank: Fix C++ link error on Solaris 8.
16972         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16973         _GL_FUNCDECL_SYS.
16974
16975 2010-12-25  Bruno Haible  <bruno@clisp.org>
16976
16977         unistd: Fix C++ link error on Solaris 8.
16978         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16979
16980 2010-12-25  Bruno Haible  <bruno@clisp.org>
16981
16982         readlink doc: Mention an old glibc bug.
16983         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16984
16985 2010-12-25  Bruno Haible  <bruno@clisp.org>
16986
16987         fcntl-h: Fix for use of C++ on glibc systems.
16988         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16989         also on glibc systems in C++ mode.
16990         Reported by Gary V. Vaughan <gary@gnu.org>.
16991
16992 2010-12-25  Bruno Haible  <bruno@clisp.org>
16993
16994         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16995         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16996
16997 2010-12-25  Bruno Haible  <bruno@clisp.org>
16998
16999         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17000         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17001         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17002         test whether truncl works according to ISO C 99 with IEC 60559.
17003         * m4/truncl-ieee.m4: New file.
17004         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17005         m4/signbit.m4.
17006         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17007
17008 2010-12-25  Bruno Haible  <bruno@clisp.org>
17009
17010         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17011         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17012         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17013         test whether ceill works according to ISO C 99 with IEC 60559.
17014         * m4/ceill-ieee.m4: New file.
17015         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17016         m4/signbit.m4.
17017         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17018
17019 2010-12-25  Bruno Haible  <bruno@clisp.org>
17020
17021         Ensure all prerequisites of <wchar.h> are included.
17022         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17023         before <wchar.h>.
17024         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17025         gl_MBRLEN_NUL_RETVAL): Likewise.
17026         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17027         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17028         AC_FUNC_MBRTOWC): Likewise.
17029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17030         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17032         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17033         Likewise.
17034         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17035         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17036         (gl_WCHAR_H): Improve comments.
17037         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17038
17039 2010-12-25  Bruno Haible  <bruno@clisp.org>
17040
17041         strtok_r: Fix C syntax error in autoconf macro.
17042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17043         characters in test program.
17044
17045 2010-12-24  Bruno Haible  <bruno@clisp.org>
17046
17047         ceil, trunc, round: Fix gcc warnings.
17048         * lib/ceil.c (MIN): Undefine before redefining.
17049         * lib/trunc.c (MIN): Likewise.
17050         * lib/round.c (MIN): Likewise.
17051         Include <math.h> first.
17052
17053 2010-12-24  Bruno Haible  <bruno@clisp.org>
17054
17055         select tests: Avoid failures on OSF/1 5.1.
17056         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17057         failure of closing the last socket; it may fail with ECONNRESET.
17058
17059 2010-12-24  Eric Blake  <eblake@redhat.com>
17060
17061         stdint: avoid HP-UX 10.20 preprocessor bug
17062         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17063         than #if.
17064         * tests/test-floor2.c (main): Likewise.
17065         Reported by Peter O'Gorman.
17066
17067         pipe: make obsoletion transition easier
17068         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17069         * modules/pipe (Files): Include revived file.
17070         (Include): Drop reference, to mirror getdate's behavior.
17071
17072 2010-12-24  Bruno Haible  <bruno@clisp.org>
17073
17074         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17075         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17076         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17078
17079 2010-12-24  Bruno Haible  <bruno@clisp.org>
17080
17081         gethostname: Ensure declaration on NonStop Kernel.
17082         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17083         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17084
17085 2010-12-24  Bruno Haible  <bruno@clisp.org>
17086
17087         sys_select: Ensure all necessary types on NonStop Kernel.
17088         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17089         include <sys/time.h>.
17090         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17091         NonStop Kernel.
17092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17093
17094 2010-12-24  Bruno Haible  <bruno@clisp.org>
17095
17096         sys_select: Remove unneeded include.
17097         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17098         have <sys/select.h>.
17099
17100 2010-12-24  Bruno Haible  <bruno@clisp.org>
17101
17102         gethostname: Provide a fallback for HOST_NAME_MAX.
17103         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17104         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17105         instead.
17106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17107
17108 2010-12-24  Bruno Haible  <bruno@clisp.org>
17109
17110         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17111         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17112         (SA_RESTART): Likewise.
17113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17114
17115 2010-12-24  Bruno Haible  <bruno@clisp.org>
17116
17117         signal: Define NSIG.
17118         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17119         * tests/test-signal.c (nsig): New variable.
17120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17121
17122 2010-12-24  Bruno Haible  <bruno@clisp.org>
17123
17124         rename, renameat: Avoid test failures on OSF/1 5.1.
17125         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17126         alternative error codes.
17127         * tests/test-renameat.c (main): Likewise.
17128
17129 2010-12-24  Bruno Haible  <bruno@clisp.org>
17130
17131         *printf: Detect large precisions bug on Solaris 10/SPARC.
17132         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17133         by Paul Eggert.
17134         * tests/test-snprintf-posix.h (test_function): Add this test code here
17135         too.
17136         * tests/test-sprintf-posix.h (test_function): Likewise.
17137         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17138         * tests/test-vasprintf-posix.c (test_function): Likewise.
17139         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17140         around by gnulib.
17141         * doc/posix-functions/printf.texi: Likewise.
17142         * doc/posix-functions/snprintf.texi: Likewise.
17143         * doc/posix-functions/sprintf.texi: Likewise.
17144         * doc/posix-functions/vfprintf.texi: Likewise.
17145         * doc/posix-functions/vprintf.texi: Likewise.
17146         * doc/posix-functions/vsnprintf.texi: Likewise.
17147         * doc/posix-functions/vsprintf.texi: Likewise.
17148         * doc/posix-functions/dprintf.texi: Undo last commit.
17149         * doc/posix-functions/vdprintf.texi: Likewise.
17150
17151 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         tests: port test-fdutimensat.c to Solaris 8
17154         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17155         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17156         On Solaris 8, it fails with errno == ENOSYS, because there is no
17157         futimens (so it can't use the fd), and there is no lutimens (so it
17158         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17159
17160         vsnprintf: make more consistent with snprintf; doc fixes
17161
17162         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17163         the byte count return problem was promoted from the snprintf-posix
17164         to the snprintf module.
17165         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17166         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17167         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17168         * tests/test-snprintf.c (main): Check the byte count returned.
17169         * tests/test-vsnprintf.c (main): Likewise.
17170
17171 2010-12-23  Eric Blake  <eblake@redhat.com>
17172
17173         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17174         * modules/sigpipe (License): Relax license.
17175
17176 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17177
17178         doc: document Solaris printf bug with large float precisions
17179         * doc/posix-functions/dprintf.texi (dprintf):
17180         * doc/posix-functions/fprintf.texi (fprintf):
17181         * doc/posix-functions/printf.texi (printf):
17182         * doc/posix-functions/snprintf.texi (snprintf):
17183         * doc/posix-functions/sprintf.texi (sprintf):
17184         * doc/posix-functions/vdprintf.texi (vdprintf):
17185         * doc/posix-functions/vfprintf.texi (vfprintf):
17186         * doc/posix-functions/vprintf.texi (vprintf):
17187         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17188         * doc/posix-functions/vsprintf.texi (vsprintf):
17189         Mention that these functions mishandle large floating point
17190         precisions on Solaris 10.  The same bug is also present in Solaris
17191         8, and I assume earlier.  This causes "cd gnulib-tests; make
17192         check" to fail on Solaris 8 (and I assume, later) when building
17193         the latest coreutils, in test-vasprintf-posix's call to
17194         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17195         the wide flavors (e.g., wprintf) so this patch just updates the
17196         documentation for the narrow ones.
17197
17198         test-posixtm.c: add two tests
17199         * tests/test-posixtm.c: Add two tests, to highlight the
17200         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17201         around this bug; this is merely to document it.
17202
17203 2010-12-22  Bruno Haible  <bruno@clisp.org>
17204
17205         getlogin_r: Work around portability problem on OSF/1.
17206         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17207         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17208         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17209         test for a truncated result.
17210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17211         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17212         * modules/getlogin_r (Depends-on): Add memchr.
17213         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17214
17215 2010-12-22  Bruno Haible  <bruno@clisp.org>
17216
17217         ptsname: Avoid test failure on OSF/1 5.1.
17218         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17219         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17220         (same_slave): New function.
17221         (main): Use it to compare ptsname's result with the expected file name.
17222
17223 2010-12-22  Bruno Haible  <bruno@clisp.org>
17224
17225         Port extended stdio modules to HP NonStop Kernel.
17226         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17227         macros.
17228         * lib/fbufmode.c: Update comments.
17229         * lib/fflush.c: Likewise.
17230         * lib/fpurge.c: Likewise.
17231         * lib/freadable.c: Likewise.
17232         * lib/freadahead.c: Likewise.
17233         * lib/freading.c: Likewise.
17234         * lib/freadptr.c: Likewise.
17235         * lib/freadseek.c: Likewise.
17236         * lib/fseeko.c: Likewise.
17237         * lib/fseterr.c: Likewise.
17238         * lib/fwritable.c: Likewise.
17239         * lib/fwriting.c: Likewise.
17240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17241
17242 2010-12-22  Bruno Haible  <bruno@clisp.org>
17243
17244         ttyname_r: Work around bug on OSF/1 5.1.
17245         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17247         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17248         present.
17249         * lib/ttyname_r.c (ttyname_r): Update comments.
17250
17251 2010-12-22  Bruno Haible  <bruno@clisp.org>
17252
17253         round: Implement result sign according to IEEE 754.
17254         * lib/round.c (MIN, MINUS_ZERO): New macros.
17255         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17256         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17257         * tests/test-round-ieee.c (main): Likewise.
17258         * tests/test-roundl-ieee.c (main): Likewise.
17259
17260         trunc: Implement result sign according to IEEE 754.
17261         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17262         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17263         * tests/test-trunc2.c: Include minus-zero.h.
17264         (MINUS_ZERO): New macro.
17265         (trunc_reference): Keep in sync with lib/trunc.c.
17266         * tests/test-truncf2.c: Include minus-zero.h.
17267         (MINUS_ZERO): New macro.
17268         (truncf_reference): Keep in sync with lib/trunc.c.
17269         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17270         * tests/test-trunc-ieee.c (main): Likewise.
17271         * tests/test-truncl-ieee.c (main): Likewise.
17272
17273         ceil: Implement result sign according to IEEE 754.
17274         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17275         (FUNC): Return -0.0 for -1 < x < 0.
17276         * tests/test-ceil2.c: Include minus-zero.h.
17277         (MINUS_ZERO): New macro.
17278         (ceil_reference): Keep in sync with lib/ceil.c.
17279         * tests/test-ceilf2.c: Include minus-zero.h.
17280         (MINUS_ZERO): New macro.
17281         (ceilf_reference): Keep in sync with lib/ceil.c.
17282         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17283         * tests/test-ceil-ieee.c (main): Likewise.
17284         * tests/test-ceill-ieee.c (main): Likewise.
17285
17286         floor: Implement result sign according to IEEE 754.
17287         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17288         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17289         * tests/test-floorf2.c (floorf_reference): Likewise.
17290         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17291         * tests/test-floor-ieee.c (main): Likewise.
17292         * tests/test-floorl-ieee.c (main): Likewise.
17293
17294 2010-12-22  Bruno Haible  <bruno@clisp.org>
17295
17296         getaddrinfo: Update doc.
17297         * doc/posix-functions/gai_strerror.texi: Return type is also different
17298         on AIX and HP-UX.
17299
17300 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17301
17302         getaddrinfo, inet_ntop: Update doc for Solaris.
17303         * doc/posix-functions/gai_strerror.texi: Return type is also an
17304         issue on Solaris 9 and earlier.
17305         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17306         on Solaris 10 and earlier.
17307
17308 2010-12-21  Bruno Haible  <bruno@clisp.org>
17309
17310         New module 'roundl-ieee'.
17311         * modules/roundl-ieee: New file.
17312         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17313         test whether roundl works according to ISO C 99 with IEC 60559.
17314         * m4/roundl-ieee.m4: New file.
17315         * modules/roundl-ieee-tests: New file.
17316         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17317         * tests/test-roundl.c (main): Remove signbit tests.
17318         * modules/roundl-tests (Depends-on): Remove signbit.
17319         * doc/posix-functions/roundl.texi: Mention the new module.
17320
17321 2010-12-21  Bruno Haible  <bruno@clisp.org>
17322
17323         New module 'truncl-ieee'.
17324         * modules/truncl-ieee: New file.
17325         * modules/truncl-ieee-tests: New file.
17326         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17327         * tests/test-truncl.c (main): Remove signbit tests.
17328         * modules/truncl-tests (Depends-on): Remove signbit.
17329         * doc/posix-functions/truncl.texi: Mention the new module.
17330
17331 2010-12-21  Bruno Haible  <bruno@clisp.org>
17332
17333         New module 'ceill-ieee'.
17334         * modules/ceill-ieee: New file.
17335         * modules/ceill-ieee-tests: New file.
17336         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17337         * tests/test-ceill.c (main): Remove signbit tests.
17338         * modules/ceill-tests (Depends-on): Remove signbit.
17339         * doc/posix-functions/ceill.texi: Mention the new module.
17340
17341 2010-12-21  Bruno Haible  <bruno@clisp.org>
17342
17343         New module 'floorl-ieee'.
17344         * modules/floorl-ieee: New file.
17345         * modules/floorl-ieee-tests: New file.
17346         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17347         * tests/test-floorl.c (main): Remove signbit tests.
17348         * modules/floorl-tests (Depends-on): Remove signbit.
17349         * doc/posix-functions/floorl.texi: Mention the new module.
17350
17351 2010-12-21  Bruno Haible  <bruno@clisp.org>
17352
17353         New module 'round-ieee'.
17354         * modules/round-ieee: New file.
17355         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17356         whether round works according to ISO C 99 with IEC 60559.
17357         * m4/round-ieee.m4: New file.
17358         * modules/round-ieee-tests: New file.
17359         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17360         * tests/test-round1.c (main): Remove signbit tests.
17361         * modules/round-tests (Depends-on): Remove 'signbit'.
17362         * doc/posix-functions/round.texi: Mention the new module.
17363
17364 2010-12-21  Bruno Haible  <bruno@clisp.org>
17365
17366         New module 'trunc-ieee'.
17367         * modules/trunc-ieee: New file.
17368         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17369         whether trunc works according to ISO C 99 with IEC 60559.
17370         * m4/trunc-ieee.m4: New file.
17371         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17373         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17374         * modules/trunc-ieee-tests: New file.
17375         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17376         * tests/test-trunc1.c (main): Remove signbit tests.
17377         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17378         * doc/posix-functions/trunc.texi: Mention the new module.
17379
17380 2010-12-21  Bruno Haible  <bruno@clisp.org>
17381
17382         New module 'ceil-ieee'.
17383         * modules/ceil-ieee: New file.
17384         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17385         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17386         ISO C 99 with IEC 60559.
17387         * m4/ceil-ieee.m4: New file.
17388         * modules/ceil (Files): Add lib/ceil.c.
17389         (Depends-on): Add 'float'.
17390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17391         * lib/math.in.h (ceil): New declaration.
17392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17393         REPLACE_CEIL.
17394         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17395         * modules/ceil-ieee-tests: New file.
17396         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17397         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17398         * doc/posix-functions/ceil.texi: Mention the new module.
17399
17400 2010-12-21  Bruno Haible  <bruno@clisp.org>
17401
17402         New module 'floor-ieee'.
17403         * modules/floor-ieee: New file.
17404         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17405         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17406         ISO C 99 with IEC 60559.
17407         * m4/floor-ieee.m4: New file.
17408         * modules/floor (Files): Add lib/floor.c.
17409         (Depends-on): Add 'float'.
17410         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17411         * lib/math.in.h (floor): New declaration.
17412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17413         REPLACE_FLOOR.
17414         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17415         * modules/floor-ieee-tests: New file.
17416         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17417         * tests/test-math-c++.cc: Check the signature of 'floor'.
17418         * doc/posix-functions/floor.texi: Mention the new module.
17419
17420 2010-12-21  Bruno Haible  <bruno@clisp.org>
17421
17422         New module 'roundf-ieee'.
17423         * modules/roundf-ieee: New file.
17424         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17425         test whether roundf works according to ISO C 99 with IEC 60559.
17426         * m4/roundf-ieee.m4: New file.
17427         * modules/roundf-ieee-tests: New file.
17428         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17429         * tests/test-roundf1.c (main): Remove signbit tests.
17430         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17431         * doc/posix-functions/roundf.texi: Mention the new module.
17432
17433 2010-12-21  Bruno Haible  <bruno@clisp.org>
17434
17435         New module 'truncf-ieee'.
17436         * modules/truncf-ieee: New file.
17437         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17438         test whether truncf works according to ISO C 99 with IEC 60559.
17439         * m4/truncf-ieee.m4: New file.
17440         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17442         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17443         * modules/truncf-ieee-tests: New file.
17444         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17445         * tests/test-truncf1.c (main): Remove signbit tests.
17446         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17447         * doc/posix-functions/truncf.texi: Mention the new module.
17448
17449 2010-12-21  Bruno Haible  <bruno@clisp.org>
17450
17451         New module 'ceilf-ieee'.
17452         * modules/ceilf-ieee: New file.
17453         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17454         test whether ceilf works according to ISO C 99 with IEC 60559.
17455         * m4/ceilf-ieee.m4: New file.
17456         * modules/ceilf-ieee-tests: New file.
17457         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17458         * tests/test-ceilf1.c (main): Remove signbit tests.
17459         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17460         * doc/posix-functions/ceilf.texi: Mention the new module.
17461
17462 2010-12-21  Bruno Haible  <bruno@clisp.org>
17463
17464         New module 'floorf-ieee'.
17465         * modules/floorf-ieee: New file.
17466         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17467         test whether floorf works according to ISO C 99 with IEC 60559.
17468         * m4/floorf-ieee.m4: New file.
17469         * modules/floorf-ieee-tests: New file.
17470         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17471         * tests/test-floorf1.c (main): Remove signbit tests.
17472         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17473         * doc/posix-functions/floorf.texi: Mention the new module.
17474
17475 2010-12-21  Bruno Haible  <bruno@clisp.org>
17476
17477         Support for minus zero in autoconf macros.
17478         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17479         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17480         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17481         * tests/minus-zero.h: Update comments.
17482
17483 2010-12-21  Bruno Haible  <bruno@clisp.org>
17484
17485         Tests for module 'ceil'.
17486         * modules/ceil-tests: New file.
17487         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17488         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17489
17490 2010-12-21  Bruno Haible  <bruno@clisp.org>
17491
17492         Tests for module 'floor'.
17493         * modules/floor-tests: New file.
17494         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17495         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17496
17497 2010-12-21  Bruno Haible  <bruno@clisp.org>
17498
17499         math: Fix indentation.
17500         * lib/math.in.h (floorf): Fix indentation.
17501
17502 2010-12-21  Bruno Haible  <bruno@clisp.org>
17503
17504         Fix cross-compilation guesses on Solaris.
17505         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17506         not match "solaris2.10".
17507         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17508         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17509         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17510
17511 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17512
17513         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17514         This fixes a problem observed with the latest coreutils snapshot
17515         that caused a test to fail on Solaris 8.  src/csplit.c's call
17516         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17517         earlier, instead of returning the number of bytes that would have
17518         been generated; this causes csplit to incorrectly report memory
17519         exhaustion.
17520         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17521         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17522         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17523         comments to match.
17524         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17525         Fix typo in matching older versions of Solaris: "solaris2.10"
17526         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17527         only for guessing while cross-compiling.
17528         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17529
17530 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17531
17532         ftoastr: fix comment again
17533         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17535         Also, simplify example a bit by using flags = 0.
17536
17537 2010-12-20  Bruno Haible  <bruno@clisp.org>
17538
17539         round*, trunc*: Update documentation regarding glibc.
17540         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17541         * doc/posix-functions/round.texi: Likewise.
17542         * doc/posix-functions/roundl.texi: Likewise.
17543         * doc/posix-functions/truncf.texi: Likewise.
17544         * doc/posix-functions/trunc.texi: Likewise.
17545         * doc/posix-functions/truncl.texi: Likewise.
17546
17547 2010-12-20  Bruno Haible  <bruno@clisp.org>
17548
17549         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17550         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17551         * doc/posix-functions/round.texi: Likewise.
17552         * doc/posix-functions/roundl.texi: Likewise.
17553
17554 2010-12-20  Bruno Haible  <bruno@clisp.org>
17555
17556         ttyname_r: Add missing declaration on HP-UX 11.
17557         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17558         HAVE_TTYNAME_R.
17559         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17560         declared. Set HAVE_TTYNAME_R always.
17561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17562         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17564         HAVE_TTYNAME_R.
17565         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17566
17567 2010-12-20  Bruno Haible  <bruno@clisp.org>
17568
17569         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17570         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17571         * doc/posix-functions/getlogin_r.texi: Likewise.
17572         * tests/test-getlogin.c: Include <errno.h>.
17573         (main): Avoid test failure on HP-UX 11.11.
17574         * tests/test-getlogin_r.c (main): Likewise.
17575
17576 2010-12-20  Bruno Haible  <bruno@clisp.org>
17577
17578         getlogin_r: Add missing declaration on HP-UX 11.
17579         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17580         declared also when it exists as a function.
17581         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17582
17583 2010-12-20  Bruno Haible  <bruno@clisp.org>
17584
17585         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17586         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17587         through wcrtomb.
17588
17589 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17590
17591         ftoastr: fix comment
17592         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17594
17595 2010-12-19  Bruno Haible  <bruno@clisp.org>
17596
17597         isnan: Ensure it is a macro.
17598         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17599         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17600         Solaris.
17601
17602 2010-12-19  Bruno Haible  <bruno@clisp.org>
17603
17604         ldexpl test: Fix link error on OSF/1 5.1.
17605         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17606
17607 2010-12-19  Bruno Haible  <bruno@clisp.org>
17608
17609         wctype: Make it work in C++ mode on OSF/1 5.1.
17610         * lib/wctype.in.h (iswblank): Declare but not define here.
17611         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17612         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17613         * modules/wctype (Files): Add lib/iswblank.c.
17614
17615 2010-12-19  Bruno Haible  <bruno@clisp.org>
17616
17617         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17618         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17619         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17620
17621 2010-12-19  Bruno Haible  <bruno@clisp.org>
17622
17623         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17625         _POSIX_PII_SOCKET.
17626         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17627         * doc/posix-functions/recvfrom.texi: Likewise.
17628         * doc/posix-functions/send.texi: Likewise.
17629         * doc/posix-functions/sendto.texi: Likewise.
17630
17631 2010-12-19  Bruno Haible  <bruno@clisp.org>
17632
17633         tcgetsid: Add missing declaration on OSF/1 5.1.
17634         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17635         HAVE_TCGETSID.
17636         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17637         Don't set HAVE_TCGETSID.
17638         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17639         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17640         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17641         HAVE_TCGETSID.
17642         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17643
17644 2010-12-19  Bruno Haible  <bruno@clisp.org>
17645
17646         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17647         * lib/stdio.in.h: During the include_next statement, let recursive
17648         includes of this file include only the system header file.
17649
17650 2010-12-19  Bruno Haible  <bruno@clisp.org>
17651
17652         iconv_open: Fix regression from 2010-12-04.
17653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17654         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17655
17656 2010-12-19  Bruno Haible  <bruno@clisp.org>
17657
17658         stdbool test: Avoid a gcc warning.
17659         * tests/test-stdbool.c (main): Fail if e1 is false.
17660         Reported by Jim Meyering.
17661
17662 2010-12-19  Jim Meyering  <meyering@redhat.com>
17663
17664         setenv: restore to working order
17665         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17666         mistakenly removed.
17667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17668         HAVE_SETENV.
17669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17670         HAVE_SETENV.
17671
17672 2010-12-19  Bruno Haible  <bruno@clisp.org>
17673
17674         Document some different function declarations on OSF/1 5.1.
17675         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17676         * doc/posix-functions/inet_ntop.texi: Likewise.
17677         * doc/posix-functions/gethostname.texi: Likewise.
17678         * lib/unistd.in.h (gethostname): Update comment.
17679
17680 2010-12-19  Bruno Haible  <bruno@clisp.org>
17681
17682         doc: Mention vasprintf-posix module.
17683         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17684         the 'vasprintf-posix' module.
17685         * doc/glibc-functions/vasprintf.texi: Likewise.
17686
17687 2010-12-19  Bruno Haible  <bruno@clisp.org>
17688
17689         unsetenv: Add missing declaration on OSF/1 5.1.
17690         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17691         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17692         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17694         not HAVE_UNSETENV.
17695         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17696         HAVE_UNSETENV.
17697         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17698
17699 2010-12-19  Bruno Haible  <bruno@clisp.org>
17700
17701         setenv: Add missing declaration on OSF/1 5.1.
17702         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17704         declared. Don't set HAVE_SETENV.
17705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17706         not HAVE_SETENV.
17707         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17708         HAVE_SETENV.
17709         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17710
17711 2010-12-19  Bruno Haible  <bruno@clisp.org>
17712
17713         nl_langinfo tests: Avoid gcc warning.
17714         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17715
17716 2010-12-19  Bruno Haible  <bruno@clisp.org>
17717
17718         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17719         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17720         _GL_CXXALIAS_SYS.
17721
17722 2010-12-19  Bruno Haible  <bruno@clisp.org>
17723
17724         stdbool: Relax test.
17725         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17726         address to 'bool' work in static initializer, for compilers other than
17727         GCC.
17728
17729 2010-12-19  Bruno Haible  <bruno@clisp.org>
17730
17731         ftello: Add missing declaration on OSF/1 5.1.
17732         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17733         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17735         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17736         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17737
17738 2010-12-19  Bruno Haible  <bruno@clisp.org>
17739
17740         fseeko: Add missing declaration on OSF/1 5.1.
17741         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17744         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17745         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17746
17747 2010-12-19  Bruno Haible  <bruno@clisp.org>
17748
17749         fchdir: Add missing declaration on OSF/1 5.1.
17750         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17754         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17755
17756 2010-12-19  Bruno Haible  <bruno@clisp.org>
17757
17758         relocatable-prog-wrapper: Separate from relocatable-prog.
17759         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17760         uninstall-relocwrapper rule here.
17761         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17762         Reported by Ian Beckwith <ianb@erislabs.net>.
17763
17764 2010-12-19  Bruno Haible  <bruno@clisp.org>
17765
17766         unistr/u8-mbsnlen: Add missing dependency.
17767         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17768         Reported by Ian Beckwith <ianb@erislabs.net>.
17769
17770 2010-12-19  Bruno Haible  <bruno@clisp.org>
17771
17772         iconv: Make it possible again to use this module without 'iconv-h'.
17773         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17774         if it is not defined.
17775         Reported by Ian Beckwith <ianb@erislabs.net>.
17776
17777 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17778
17779         acl: port to Solaris 8 when copying from tmpfs to ufs
17780         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17781         error number.  Problem observed on Solaris 8 with latest
17782         coreutils, with "mv A B", where A is on a tmpfs file system and B
17783         is on a ufs file system.  This caused coreutils' mv/part-symlink
17784         test to fail.
17785
17786         tests: set fail=0 at start
17787         * tests/init.sh (setup_): Move fail=0 initialization here ...
17788         (mktempd_): ... from here, so that tests can rely on fail being
17789         set to 0 initially.  This fixes a problem in coreutils; see:
17790         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17791
17792 2010-12-18  Bruno Haible  <bruno@clisp.org>
17793
17794         memmem-simple: Stylistic changes.
17795         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17796         Fix preprocessor directive indentation.
17797
17798 2010-12-15  Pádraig Brady <P@draigBrady.com>
17799
17800         memmem, memmem-simple: reorganize and expand empty needle check
17801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17802         functional checks to memmem-simple so that one has a fully functional
17803         memmem by using just this module.
17804         Restrict the performance only check to the memmem module.
17805         Also expand the empty needle check to ensure the correct
17806         pointer is returned, not just a non NULL pointer.
17807         * doc/glibc-functions/memmem.texi: Rearrange the portability
17808         documentation to correlate with the rearranged checks.
17809         Clarify exactly how the memmem and memmem-simple modules
17810         relate to each other.
17811
17812 2010-12-15  Pádraig Brady <P@draigBrady.com>
17813             Bruno Haible  <bruno@clisp.org>
17814
17815         Improve cross-compilation guesses for uClibc.
17816         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17817         that uClibc does not have the glibc bug.
17818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17819         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17820
17821 2010-12-14  Eric Blake  <eblake@redhat.com>
17822
17823         configmake: provide fallbacks for oldest supported autotools
17824         * m4/configmake.m4: New file.
17825         * modules/configmake (Files): Ship it.
17826         (configure.ac): Use it to guarantee fallbacks.
17827
17828 2010-12-13  Pádraig Brady <P@draigBrady.com>
17829
17830         read-file: Improve handling of large files
17831         * lib/read-file.c (fread_file): Minimize realloc()s
17832         for regular files, and better manage sizes around SIZE_MAX.
17833
17834 2010-12-13  Eric Blake  <eblake@redhat.com>
17835
17836         cloexec, fcntl: relax license
17837         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17838         consent from all contributors.
17839         * modules/fcntl (License): Likewise.
17840
17841 2010-12-10  Bruno Haible  <bruno@clisp.org>
17842
17843         Tests for module 'pipe-posix'.
17844         * modules/pipe-posix-tests: New file.
17845         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17846
17847 2010-12-10  Bruno Haible  <bruno@clisp.org>
17848
17849         pipe-posix: Make it work in C++ mode.
17850         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17851         (pipe): Use common idiom, not a macro definition.
17852         * lib/pipe.c: New file.
17853         * m4/pipe.m4: New file.
17854         * modules/pipe-posix (Description): Enhance.
17855         (Files): Add lib/pipe.c, m4/pipe.m4.
17856         (configure.ac): Invoke gl_FUNC_PIPE.
17857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17858         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17859         * tests/test-unistd-c++.cc: Check the signature of pipe.
17860
17861 2010-12-10  Bruno Haible  <bruno@clisp.org>
17862
17863         Rename module 'pipe' to 'spawn-pipe'.
17864         * modules/spawn-pipe: New file, renamed from modules/pipe.
17865         (Files, configure.ac, Makefile.am): Update.
17866         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17867         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17868         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17869         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17870         "spawn-pipe.h" instead of "pipe.h".
17871         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17872         to gl_SPAWN_PIPE.
17873         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17874         (Files, Makefile.am): Update.
17875         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17876         Update.
17877         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17878         Include "spawn-pipe.h" instead of "pipe.h".
17879         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17880         * lib/javacomp.c: Likewise.
17881         * lib/javaversion.c: Likewise.
17882         * lib/pipe-filter-gi.c: Likewise.
17883         * lib/pipe-filter-ii.c: Likewise.
17884         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17885         * modules/javacomp (Depends-on): Likewise.
17886         * modules/javaversion (Depends-on): Likewise.
17887         * modules/pipe-filter-gi (Depends-on): Likewise.
17888         * modules/pipe-filter-ii (Depends-on): Likewise.
17889         * MODULES.html.sh (Executing programs): Update.
17890         * NEWS: Mention the change.
17891
17892 2010-12-10  Eric Blake  <eblake@redhat.com>
17893
17894         pipe-posix: new module
17895         * modules/pipe-posix: New file.
17896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17897         (gl_UNISTD_H): Check for declaration.
17898         * modules/unistd (Makefile.am): Substitute it.
17899         * lib/unistd.in.h (pipe): Provide it for mingw.
17900         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17901         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17902
17903 2010-12-07  Bruno Haible  <bruno@clisp.org>
17904
17905         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17906         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17907         u8_strcmp_gnu.
17908         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17909
17910 2010-12-06  Bruno Haible  <bruno@clisp.org>
17911
17912         Update internal documentation.
17913         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17914
17915 2010-12-04  Bruno Haible  <bruno@clisp.org>
17916
17917         Put more information about failed tests into the test return codes.
17918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17919         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17921         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17922         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17924         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17925         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17926         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17929         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17930         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17931         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17932         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17933         returns a bit mask.
17934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17935         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17936         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17937         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17938         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17948         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17949         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17950         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17951         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17953         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17955         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17957         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17958         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17959         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17960         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17961         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17962         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17963         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17964         gl_PRINTF_PRECISION): Likewise.
17965         * m4/regex.m4 (gl_REGEX): Likewise.
17966         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17968         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17972         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17973         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17974         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17976         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17978         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17979         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17980         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17982         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17985         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17986         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17987         enumerated value.
17988         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17989
17990 2010-12-04  Bruno Haible  <bruno@clisp.org>
17991
17992         Update for Solaris 11 2010-11.
17993         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17994         Express, released in November 2010.
17995
17996 2010-12-04  Bruno Haible  <bruno@clisp.org>
17997
17998         nproc: Relax license.
17999         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18000         and Paul Eggert.
18001         Requested by Ludovic Courtès <ludo@gnu.org>.
18002
18003 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18004
18005         utimecmp: fine-grained src to nearby coarse-grained dest
18006
18007         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18008         and the source is on a file system with higher-resolution time
18009         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18010         not work, and the time stamps are close together, the algorithm to
18011         determine the exact resolution from the read-back mtime was buggy:
18012         it had a "!=" where it should have had an "==".  This bug has been
18013         in the code ever since it was introduced to gnulib.
18014         Problem reported by Dan Jacobson in
18015         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18016
18017 2010-11-30  Bruno Haible  <bruno@clisp.org>
18018
18019         strerror_r-posix: Fix autoconf test.
18020         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18021
18022 2010-11-28  Bruno Haible  <bruno@clisp.org>
18023             Paul Eggert  <eggert@cs.ucla.edu>
18024
18025         Tests for module 'getdomainname'.
18026         * modules/getdomainname-tests: New file.
18027         * tests/test-getdomainname.c: New file, based on
18028         tests/test-gethostname.c.
18029
18030 2010-11-28  Bruno Haible  <bruno@clisp.org>
18031             Paul Eggert  <eggert@cs.ucla.edu>
18032
18033         getdomainname: Use the system function when possible.
18034         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18035         (getdomainname): Replace if needed. Provide the declaration if it is
18036         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18037         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18038         (getdomainname): When the system has getdomainname, call the system
18039         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18041         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18042         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18043         the function if its second argument is of type 'int' or if it is found
18044         in libnsl.
18045         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18046         <sys/systeminfo.h> and sysinfo().
18047         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18049         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18050         HAVE_GETDOMAINNAME.
18051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18052         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18053         * doc/glibc-functions/getdomainname.texi: Document the problems with
18054         the getdomainname declaration.
18055
18056 2010-11-28  Bruno Haible  <bruno@clisp.org>
18057
18058         sys_socket: Ensure ss_family field on AIX.
18059         * lib/sys_socket.in.h (ss_family): New macro definition.
18060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18061         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18062         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18063         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18064         * modules/sys_socket (Makefile.am): Substitute
18065         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18066         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18067
18068 2010-11-27  Bruno Haible  <bruno@clisp.org>
18069
18070         readline: Improve configure output.
18071         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18072         "checking for readline..." result understandable.
18073
18074 2010-11-27  Bruno Haible  <bruno@clisp.org>
18075
18076         *printf-posix: Detect a bug on Solaris 10/x86.
18077         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18078         for floating-point output.
18079         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18080         directive.
18081         * tests/test-snprintf-posix.h (test_function): Likewise.
18082         * tests/test-sprintf-posix.h (test_function): Likewise.
18083         * tests/test-vasprintf-posix.c (test_function): Likewise.
18084         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18085         * doc/posix-functions/printf.texi: Likewise.
18086         * doc/posix-functions/snprintf.texi: Likewise.
18087         * doc/posix-functions/sprintf.texi: Likewise.
18088         * doc/posix-functions/vfprintf.texi: Likewise.
18089         * doc/posix-functions/vprintf.texi: Likewise.
18090         * doc/posix-functions/vsnprintf.texi: Likewise.
18091         * doc/posix-functions/vsprintf.texi: Likewise.
18092         * doc/glibc-functions/obstack_printf.texi: Likewise.
18093         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18094
18095 2010-11-27  Bruno Haible  <bruno@clisp.org>
18096
18097         Fix link error when module libunistring-optional is in use.
18098         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18099         * modules/striconveha-tests (Makefile.am): Likewise.
18100
18101 2010-11-27  Bruno Haible  <bruno@clisp.org>
18102
18103         regex: Mention link dependencies.
18104         * modules/regex (Link): New section.
18105         * modules/rpmatch (Link): Likewise.
18106         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18107
18108 2010-11-27  Bruno Haible  <bruno@clisp.org>
18109
18110         ftoastr: Fix compilation error on Solaris.
18111         * lib/ftoastr.c: Include <config.h>.
18112
18113 2010-11-27  Bruno Haible  <bruno@clisp.org>
18114
18115         getloadavg: Update documentation.
18116         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18117
18118 2010-11-27  Bruno Haible  <bruno@clisp.org>
18119
18120         sys_socket: Fix test whether the functions are declared.
18121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18122         not <sys/select.h>.
18123
18124 2010-11-27  Bruno Haible  <bruno@clisp.org>
18125
18126         getpass: Make sure to get system declaration on some platforms.
18127         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18128         gl_USE_SYSTEM_EXTENSIONS.
18129         * modules/getpass (Depends-on): Add extensions.
18130
18131 2010-11-26  Bruno Haible  <bruno@clisp.org>
18132
18133         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18134         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18135         'iconv' module is present.
18136         (ICONV_CONST): New macro.
18137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18138         ICONV_CONST.
18139         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18140         set ICONV_CONST.
18141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18142         here.
18143         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18144         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18145         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18146         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18147         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18148         present.
18149
18150 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18151
18152         ftoastr: comment fix
18153         * lib/ftoastr.c: "little" -> "little or no" in comment
18154
18155 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18156
18157         stdint: port to GCC 4.3 + OSX + Octave
18158         On this platform, stdint.h is buggy and defines int64_t to long
18159         long int.  The replacement defined it to long int, causing
18160         problems with C++ style name mangling.  Instead, trust the system
18161         definition if INT64_MAX is defined, and likewise for the unsigned
18162         variant.   Problem reported by Jarno Rajahalme in
18163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18164         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18165         and don't mess with int64_t and INT64_MAX in this case.
18166         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18167
18168 2010-11-24  Bruno Haible  <bruno@clisp.org>
18169
18170         doc: Corrections regarding MacOS X 10.4 and 10.5.
18171         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18172         MacOS X.
18173         Reported by Simon Josefsson.
18174
18175 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18176
18177         Uninstall ".bin" files installed by relocwrapper.
18178         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18179         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18180         unless it is already there.
18181
18182 2010-11-21  Bruno Haible  <bruno@clisp.org>
18183
18184         Update for NetBSD 5.0.
18185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18186         NetBSD; the test fails on NetBSD 5.0.
18187         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18188         about NetBSD.
18189
18190 2010-11-21  Bruno Haible  <bruno@clisp.org>
18191
18192         Update for HP-UX 11.23 and HP-UX 11.31.
18193         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18194         HP-UX.
18195
18196 2010-11-21  Bruno Haible  <bruno@clisp.org>
18197
18198         Update for MacOS X 10.5.
18199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18200         MacOS X; the test fails on MacOS X 10.5.8.
18201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18202         about MacOS X.
18203
18204 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18205
18206         bootstrap: add bootstrap_sync option.
18207         See discussion at
18208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18210         * build-aux/bootstrap: Accept --bootstrap-sync to update
18211         bootstrap if it is not identical to the local gnulib's
18212         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18213         enable this by default.  Accept --no-bootstrap-sync to disable
18214         it.
18215
18216 2010-11-20  Bruno Haible  <bruno@clisp.org>
18217
18218         Ensure that <features.h> is included before __GLIBC__ is tested.
18219         * lib/printf-parse.h: Include <features.h>.
18220         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18221         Reported by Mike Frysinger <vapier@gentoo.org>.
18222
18223         Ensure that <features.h> is included before __GLIBC__ is tested.
18224         * lib/wchar.in.h: Include <features.h>.
18225         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18226         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18227         Reported by Mike Frysinger <vapier@gentoo.org>.
18228
18229         Ensure that <features.h> is included before __GLIBC__ is tested.
18230         * lib/arpa_inet.in.h: Include <features.h>.
18231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18232         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18233         Reported by Mike Frysinger <vapier@gentoo.org>.
18234
18235         Ensure that <features.h> is included before __GLIBC__ is tested.
18236         * build-aux/link-warning.h: Include <features.h>.
18237         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18238         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18239         Reported by Mike Frysinger <vapier@gentoo.org>.
18240
18241         Ensure that <features.h> is included before __GLIBC__ is tested.
18242         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18243         Reported by Mike Frysinger <vapier@gentoo.org>.
18244
18245 2010-11-20  Bruno Haible  <bruno@clisp.org>
18246
18247         memmem: Fix autoconf test.
18248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18249
18250 2010-11-20  Bruno Haible  <bruno@clisp.org>
18251
18252         Port to uClibc.
18253         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18254         * lib/fcntl.in.h: Likewise.
18255         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18256         * lib/mbrtowc.c (mbrtowc): Likewise.
18257         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18258         * lib/strerror_r.c: Likewise.
18259         * lib/unistr/u8-strnlen.c: Likewise.
18260         * lib/vasnprintf.c (decimal_point_char): Likewise.
18261         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18262         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18264         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18265         * tests/test-sigaction.c (handler, main): Likewise.
18266         * lib/freading.h: Treat uClibc like a non-glibc platform.
18267         * lib/freading.c: Likewise.
18268         * lib/gettext.h: Likewise.
18269         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18270         Likewise.
18271         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18272         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18273         * lib/propername.c (proper_name_utf8): Likewise.
18274         * lib/spawn.in.h: Likewise.
18275         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18276         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18277         mem_cd_iconveh_internal): Likewise.
18278         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18279         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18280         strstr, strcasestr): Likewise.
18281         * lib/unicodeio.c (unicode_to_mb): Likewise.
18282         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18283         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18284         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18285         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18286         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18287         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18288         * lib/unistr/u8-stpncpy.c: Likewise.
18289         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18290         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18292         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18293         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18295         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18298         Likewise.
18299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18300         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18305         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18306         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18307         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18308         * tests/test-striconveha.c (main): Likewise.
18309         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18310         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18311         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18312         * doc/posix-functions/getline.texi: Likewise.
18313         Reported by Mike Frysinger <vapier@gentoo.org>.
18314
18315 2010-11-20  Bruno Haible  <bruno@clisp.org>
18316
18317         nproc: Fix condition.
18318         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18319         HAVE_PTHREAD_AFFINITY_NP.
18320
18321 2010-11-20  Bruno Haible  <bruno@clisp.org>
18322
18323         Fix a comment.
18324         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18325
18326 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18327
18328         ftoastr: don't assume snprintf
18329         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18330         Implement a subset of snprintf here, by using sprintf safely.
18331         * modules/ftoastr (Depends-on): Remove snprintf.
18332
18333 2010-11-19  Jim Meyering  <meyering@redhat.com>
18334
18335         test-rename.h: fix compilation failure
18336         * tests/test-rename.h (test_rename): Add omitted "}".
18337
18338 2010-11-17  Jim Meyering  <meyering@redhat.com>
18339
18340         maint.mk: add a URL discussing the no-@acronym policy
18341         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18342
18343 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18344
18345         ftoastr: depend on snprintf, improve comments
18346         * lib/ftoastr.c: Also mention Loitsch's draft.
18347         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18348         needed in the current implementation, but it might simplify
18349         speeding up the code later.
18350         * modules/ftoastr: Depend on snprintf; this improves portability.
18351         Suggested by Bruno Haible in the same email.
18352
18353         ftoastr: port to hosts lacking strtof and strtold
18354         Problem reported by Bruno Haible in
18355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18356         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18357         environment and strtold (and presumably strtof) are not available.
18358         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18359         (configure.ac): Require gl_C99_STRTOLD.
18360
18361 2010-11-18  Bruno Haible  <bruno@clisp.org>
18362
18363         c-strtold: Avoid link error on AIX 7.
18364         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18365         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18366         (gl_C_STRTOLD): Test whether strtold_l exists.
18367         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18368
18369 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18370
18371         intprops: new macro INT_BITS_STRLEN_BOUND
18372         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18373         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18374         not exposed.  Also, it uses a slightly tighter bound than before;
18375         though this makes no practical difference, we might as well be as
18376         tight as we easily can.
18377
18378         ftoastr: new module, for lossless conversion of floats to short strings
18379         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18380         * modules/ftoastr: New files.
18381
18382 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         bootstrap: port to Solaris sed
18385         * build-aux/bootstrap (get_version): Port to Solaris sed.
18386         See Ralf Wildenhues's note in
18387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18388
18389 2010-11-14  Jim Meyering  <meyering@redhat.com>
18390
18391         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18392         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18393         and move definition closer to sole use.
18394
18395 2010-11-13  Jim Meyering  <meyering@redhat.com>
18396
18397         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18398         Now we require at least autoconf-2.59, which means the work-around
18399         is no longer needed.
18400         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18402         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18405
18406 2010-11-13  Bruno Haible  <bruno@clisp.org>
18407
18408         rename, renameat: Avoid test failures at NFS mounted locations.
18409         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18410         functions.
18411         (test_rename): Use assert_nonexistent.
18412         * tests/test-rename.c: Include <dirent.h>.
18413         * tests/test-renameat.c: Likewise.
18414         Reported by Gary V. Vaughan <gary@gnu.org>.
18415
18416         rename, renameat: Document Linux bug with NFS
18417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18418         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18419         * doc/posix-functions/renameat.texi: Likewise.
18420         Suggested by Eric Blake.
18421
18422 2010-11-13  Bruno Haible  <bruno@clisp.org>
18423
18424         rename test: Add comments.
18425         * tests/test-rename.h (test_rename): Add structure and comments.
18426
18427 2010-11-13  Eric Blake  <eblake@redhat.com>
18428
18429         maintainer-makefile: cover a few more files
18430         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18431         scripts generated within C files, for libvirt.
18432
18433 2010-11-13  Bruno Haible  <bruno@clisp.org>
18434
18435         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18436         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18437         character, return the number of bytes that belong together, not always
18438         1.
18439         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18440         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18441         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18442         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18443         number of bytes of an invalid character.
18444         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18445         (main): Invoke it.
18446         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18447         results.
18448         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18449         malformed byte sequences.
18450         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18451         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18452         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18453         Reported by Ben Pfaff and Paolo Bonzini.
18454
18455 2010-11-13  Bruno Haible  <bruno@clisp.org>
18456
18457         openat: Work around glibc bug with fchownat() and empty file names.
18458         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18459         (gl_FUNC_FCHOWNAT): Invoke it.
18460         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18461         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18462         Reported by Gary V. Vaughan <gary@gnu.org>.
18463
18464 2010-11-13  Bruno Haible  <bruno@clisp.org>
18465
18466         openat: Ensure autoconf macro ordering.
18467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18468         gl_USE_SYSTEM_EXTENSIONS.
18469         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18470
18471 2010-11-13  Bruno Haible  <bruno@clisp.org>
18472
18473         Update comments.
18474         * lib/unistr/u8-check.c: Update file name in comments.
18475         * lib/unistr/u8-mblen.c: Likewise.
18476         * lib/unistr/u8-prev.c: Likewise.
18477         * lib/unistr/u8-strmblen.c: Likewise.
18478         * lib/unistr/u8-strmbtouc.c: Likewise.
18479
18480 2010-11-13  Jim Meyering  <meyering@redhat.com>
18481
18482         tests: avoid test failure on Solaris 10 due to lack of PATH export
18483         * tests/test-update-copyright.sh: Don't forget to export PATH.
18484
18485         init.sh: ensure that IFS is defined, just in case...
18486         * tests/init.sh (setup_): Ensure that IFS is defined,
18487         so that saving and restoring it works as expected.  This
18488         appears to be useful at least for an old version of dash
18489         from a long time ago (RH 6).  See here for details:
18490         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18491
18492         maint.mk: tighten "test a == b" check
18493         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18494         test to files that contain something like #!/bin/sh.
18495         Without this, coreutils would get two false positives in
18496         the comments of C source files.
18497
18498 2010-11-12  Eric Blake  <eblake@redhat.com>
18499
18500         bootstrap: fix typo in previous attempt
18501         * build-aux/bootstrap (buildreq): Correct the grouping.
18502         Reported by Paul Eggert.
18503
18504         maintainer-makefile: prohibit test x == x
18505         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18506         Based on a report by Matthias Bolte.
18507
18508         bootstrap: allow FreeBSD gzip
18509         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18510         which has no '.' and goes to stderr.
18511         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18512         Reported by Matthias Bolte.
18513
18514         maintainer-makefile: check for i18n setup
18515         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18516         will likely work.
18517
18518 2010-11-12  Bruno Haible  <bruno@clisp.org>
18519
18520         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18521         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18522         * lib/nanosleep.c (nanosleep): Likewise.
18523
18524 2010-11-11  Bruno Haible  <bruno@clisp.org>
18525
18526         fcntl-h: Fix for use of C++ on glibc systems.
18527         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18528         also on glibc systems in C++ mode.
18529         Reported by Gary V. Vaughan <gary@gnu.org>.
18530
18531 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18532
18533         mknod: avoid false failure with dash
18534         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18535
18536 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18537
18538         unlink: Fix "is it should" typo in diagnostic.
18539         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18541
18542 2010-11-11  Bruno Haible  <bruno@clisp.org>
18543
18544         Tests for module 'strerror_r-posix'.
18545         * modules/strerror_r-posix-tests: New file.
18546         * tests/test-strerror_r.c: New file.
18547         * tests/test-string-c++.cc: Check the signature of strerror_r.
18548
18549         New module 'strerror_r-posix'.
18550         * lib/string.in.h (strerror_r): New declaration.
18551         * lib/strerror_r.c: New file.
18552         * m4/strerror_r.m4: New file.
18553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18554         of strerror_r.
18555         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18556         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18557         * modules/strerror_r-posix: New file.
18558         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18559         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18560         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18561         portability problems.
18562
18563 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18564
18565         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18566         line is also considered for output. Quoted function name in shell
18567         command, so temporary files for functions like MyClass::operator()
18568         are removed correctly without errors.
18569
18570 2010-11-09  Bruno Haible  <bruno@clisp.org>
18571
18572         * doc/posix-functions/strerror.texi: List more failing platforms.
18573
18574         * doc/posix-functions/strerror.texi: Add a comment.
18575
18576 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         fdopendir: fix bug on MacOS X when low on file descriptors
18579
18580         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18581         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18582         All callers changed.
18583         (fdopendir): Invoke save_cwd at the top level, not after using
18584         multiple dup() calls to use up file descriptors.  Then retry
18585         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18586         less than the maximum number of open file descriptors, because
18587         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18588         on Mac OS X 10.6.4 for tar 1.24
18589         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18590         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18591         and for tar 1.25
18592         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18593
18594 2010-11-07  Bruno Haible  <bruno@clisp.org>
18595
18596         vasnprintf: Support I flag on glibc systems.
18597         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18598         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18599         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18600         snprintf function.
18601         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18602         glibc systems.
18603         * tests/test-vasnprintf-posix3.c: New file.
18604         * modules/vasnprintf-posix-tests (Files): Add it.
18605         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18606
18607 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18608
18609         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18610         * MODULES.html.sh: For compiler warnings, use name
18611         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18612
18613 2010-11-05  Eric Blake  <eblake@redhat.com>
18614
18615         ceil, floor: avoid spurious failure with icc
18616         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18617         [denormals-as-zero] when optimizing without -mieee-fp option.
18618         * tests/test-floorf2.c (floorf_reference): Likewise.
18619         * tests/test-ceilf1.c (dummy): New function.
18620         (main): Use it to outsmart icc's optimization.
18621         * tests/test-floorf1.c (dummy, main): Likewise.
18622
18623         tests: require working signbit
18624         * modules/ceilf-tests (Depends-on): Add signbit.
18625         * modules/ceill-tests (Depends-on): Likewise.
18626         * modules/floorf-tests (Depends-on): Likewise.
18627         * modules/floorl-tests (Depends-on): Likewise.
18628         * modules/round-tests (Depends-on): Likewise.
18629         * modules/roundf-tests (Depends-on): Likewise.
18630         * modules/roundl-tests (Depends-on): Likewise.
18631         * modules/trunc-tests (Depends-on): Likewise.
18632         * modules/truncf-tests (Depends-on): Likewise.
18633         * modules/truncl-tests (Depends-on): Likewise.
18634
18635         strtod: work around icc bug
18636         * lib/strtod.c (minus_zero): Define to working value.
18637         (strtod): Use it to avoid icc bug.
18638
18639         copysign: enhance tests
18640         * modules/copysign-tests (Files): Add minus-zero.h.
18641         * tests/test-copysign.c (main): Also test zeros.
18642
18643 2010-11-04  Eric Blake  <eblake@redhat.com>
18644
18645         ceil, floor, round, trunc: enhance tests of -0
18646         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18647         * tests/test-ceill.c (main): Likewise.
18648         * tests/test-floorf1.c (main): Likewise.
18649         * tests/test-floorl.c (main): Likewise.
18650         * tests/test-round1.c (main): Likewise.
18651         * tests/test-roundf1.c (main): Likewise.
18652         * tests/test-roundl.c (main): Likewise.
18653         * tests/test-trunc1.c (main): Likewise.
18654         * tests/test-truncf1.c (main): Likewise.
18655         * tests/test-truncl.c (main): Likewise.
18656
18657 2010-11-04  Eric Blake  <eblake@redhat.com>
18658
18659         frexp, tests: work around ICC bug with -zero
18660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18661         works with more compilers.
18662         * tests/minus-zero.h: New file.
18663         * modules/ceilf-tests (Files): Include it.
18664         * modules/ceill-tests (Files): Likewise.
18665         * modules/floorf-tests (Files): Likewise.
18666         * modules/floorl-tests (Files): Likewise.
18667         * modules/frexp-nolibm-tests (Files): Likewise.
18668         * modules/frexp-tests (Files): Likewise.
18669         * modules/frexpl-nolibm-tests (Files): Likewise.
18670         * modules/frexpl-tests (Files): Likewise.
18671         * modules/isnan-tests (Files): Likewise.
18672         * modules/isnand-nolibm-tests (Files): Likewise.
18673         * modules/isnand-tests (Files): Likewise.
18674         * modules/isnanf-nolibm-tests (Files): Likewise.
18675         * modules/isnanf-tests (Files): Likewise.
18676         * modules/isnanl-nolibm-tests (Files): Likewise.
18677         * modules/isnanl-tests (Files): Likewise.
18678         * modules/round-tests (Files): Likewise.
18679         * modules/roundf-tests (Files): Likewise.
18680         * modules/roundl-tests (Files): Likewise.
18681         * modules/ldexpl-tests (Files): Likewise.
18682         * modules/signbit-tests (Files): Likewise.
18683         * modules/snprintf-posix-tests (Files): Likewise.
18684         * modules/sprintf-posix-tests (Files): Likewise.
18685         * modules/strtod-tests (Files): Likewise.
18686         * modules/trunc-tests (Files): Likewise.
18687         * modules/truncf-tests (Files): Likewise.
18688         * modules/truncl-tests (Files): Likewise.
18689         * modules/vsnprintf-posix-tests (Files): Likewise.
18690         * modules/vsprintf-posix-tests (Files): Likewise.
18691         * modules/vasnprintf-posix-tests (Files): Likewise.
18692         * modules/vasprintf-posix-tests (Files): Likewise.
18693         * tests/test-ceilf1.c (main): Use it.
18694         * tests/test-ceill.c (main): Likewise.
18695         * tests/test-floorf1.c (main): Likewise.
18696         * tests/test-floorl.c (main): Likewise.
18697         * tests/test-frexp.c (main): Likewise.
18698         * tests/test-frexpl.c (main): Likewise.
18699         * tests/test-isnan.c (main): Likewise.
18700         * tests/test-isnand.h (main): Likewise.
18701         * tests/test-isnanf.h (main): Likewise.
18702         * tests/test-isnanl.h (main): Likewise.
18703         * tests/test-ldexpl.c (main): Likewise.
18704         * tests/test-round.c (main): Likewise.
18705         * tests/test-roundf.c (main): Likewise.
18706         * tests/test-roundl.c (main): Likewise.
18707         * tests/test-signbit.c (test_signbitf, test_signbitd)
18708         (test_signbitl): Likewise.
18709         * tests/test-snprintf-posix.h (test_function): Likewise.
18710         * tests/test-sprintf-posix.h (test_function): Likewise.
18711         * tests/test-strtod.c (main): Likewise.
18712         * tests/test-trunc1.c (main): Likewise.
18713         * tests/test-truncf1.c (main): Likewise.
18714         * tests/test-truncl.c (main): Likewise.
18715
18716         isnanl: work around icc bug
18717         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18718
18719 2010-11-03  Eric Blake  <eblake@redhat.com>
18720
18721         tests: fix compiler warnings
18722         * tests/test-getopt.h (test_getopt): Fix condition.
18723         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18724         * tests/test-pipe2.c (main): Likewise.
18725         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18726
18727         utimens: fix broken m4 test
18728         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18729
18730 2010-10-28  Bruno Haible  <bruno@clisp.org>
18731
18732         posix_spawn*, getdtablesize: Relax license.
18733         * modules/posix_spawn (License): Change to LGPLv2+.
18734         * modules/posix_spawnp (License): Likewise.
18735         * modules/posix_spawn-internal (License): Likewise.
18736         * modules/posix_spawnattr_init (License): Likewise.
18737         * modules/posix_spawnattr_getflags (License): Likewise.
18738         * modules/posix_spawnattr_setflags (License): Likewise.
18739         * modules/posix_spawnattr_getpgroup (License): Likewise.
18740         * modules/posix_spawnattr_setpgroup (License): Likewise.
18741         * modules/posix_spawnattr_getschedparam (License): Likewise.
18742         * modules/posix_spawnattr_setschedparam (License): Likewise.
18743         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18744         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18745         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18746         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18747         * modules/posix_spawnattr_getsigmask (License): Likewise.
18748         * modules/posix_spawnattr_setsigmask (License): Likewise.
18749         * modules/posix_spawnattr_destroy (License): Likewise.
18750         * modules/posix_spawn_file_actions_init (License): Likewise.
18751         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18752         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18753         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18754         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18755         * modules/getdtablesize (License): Likewise.
18756         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18757
18758 2010-10-26  Bruno Haible  <bruno@clisp.org>
18759
18760         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18761         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18762         Cygwin and mingw.
18763         Suggested by Eric Blake.
18764
18765 2010-10-26  Bruno Haible  <bruno@clisp.org>
18766
18767         stdio: Work around compilation error due to renameat() on Solaris 10.
18768         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18769         * lib/renameat.c: Don't include <unistd.h> here.
18770         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18771         Reported by Paul Eggert and Eric Blake.
18772
18773 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18774
18775         renameat: port to Solaris 10, which declares renameat in unistd.h
18776
18777         * lib/renameat.c: Include unistd.h before stdio.h, because
18778         Solaris 10 declares renameat in unistd.h.  Problem encountered
18779         when building GNU tar 1.24 on Solaris 10.
18780
18781 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18782
18783         fdopendir: fix C89 compilation
18784         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18785         compilers.
18786
18787 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18788
18789         inttostr: simplify by removing unnecessary redundancy
18790         * lib/anytostr.c: Don't include verify.h.
18791         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18792         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18793         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18794         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18795         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18796         Likewise.
18797         * modules/inttostr (Depends-on): Remove 'verify'.
18798
18799 2010-10-23  Bruno Haible  <bruno@clisp.org>
18800
18801         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18802         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18803         Reported by Eric Blake.
18804
18805 2010-10-23  Bruno Haible  <bruno@clisp.org>
18806
18807         Tests: Fix LOCALE_JA on MirBSD 10.
18808         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18809         to an UTF-8 locale.
18810         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18811         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18812         Reported by Eric Blake.
18813
18814 2010-10-21  Bruno Haible  <bruno@clisp.org>
18815
18816         nl_langinfo test: Avoid test failure on NetBSD 5.
18817         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18818         Reported by Eric Blake.
18819
18820 2010-10-21  Eric Blake  <eblake@redhat.com>
18821
18822         c-stack: work around libsigsegv 2.8 bug
18823         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18824         overflow on at least PowerPC64.
18825
18826 2010-10-17  Bruno Haible  <bruno@clisp.org>
18827
18828         userspec: Drop redundant file.
18829         * modules/userspec (Files): Remove lib/inttostr.h.
18830
18831 2010-10-17  Bruno Haible  <bruno@clisp.org>
18832
18833         nl_langinfo tests: Silence some warnings.
18834         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18835         Reported by Jim Meyering.
18836
18837 2010-10-17  Bruno Haible  <bruno@clisp.org>
18838
18839         Make use of GCC's attribute __alloc_size__.
18840         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18841         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18842         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18843         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18844         __alloc_size__.
18845         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18846         Suggested by Jim Meyering.
18847
18848 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18849
18850         bootstrap: anchor .gitignore entries.
18851         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18852         with...
18853         (insert_vc_ignore): ... this new function, which prepends `/' to
18854         all .gitignore entries before passing them to
18855         insert_sorted_if_absent.
18856
18857 2010-10-16  Bruno Haible  <bruno@clisp.org>
18858
18859         nextafter: Fix configure check.
18860         * modules/nextafter (configure.ac): Correct expected prototype.
18861
18862 2010-10-16  Bruno Haible  <bruno@clisp.org>
18863
18864         termios: Update documentation.
18865         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18866
18867 2010-10-16  Bruno Haible  <bruno@clisp.org>
18868
18869         tests: Make them compile with TinyCC.
18870         * tests/test-strstr.c (main): Remove parentheses around array
18871         initializer.
18872
18873 2010-10-15  Eric Blake  <eblake@redhat.com>
18874
18875         ignore-value: make header idempotent
18876         * lib/ignore-value.h: Add double-inclusion guards.
18877         Reported by Stefan Berger.
18878
18879 2010-10-15  Jim Meyering  <meyering@redhat.com>
18880
18881         GNUmakefile: handle "stable" target, not "major"
18882         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18883         lists in maint.mk and announce-gen.  Without this, "make stable"
18884         would fail to ensure that $(VERSION) is up to date.
18885
18886 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18887
18888         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18889         & co.
18890
18891 2010-10-14  Bruno Haible  <bruno@clisp.org>
18892
18893         vasnprintf: Don't set errno to 0.
18894         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18895         block that sets it to 0.
18896         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18897
18898 2010-10-14  Bruno Haible  <bruno@clisp.org>
18899
18900         socketlib: Fix.
18901         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18902         gl_PREREQ_SYS_H_WINSOCK2.
18903         Reported by Ian Beckwith <ianb@erislabs.net>.
18904
18905 2010-10-13  Jim Meyering  <meyering@redhat.com>
18906
18907         test-select-stdin.c: avoid warn_unused_result warnings
18908         * tests/test-select-stdin.c: Include "macros.h".
18909         ASSERT that read and fflush succeed.
18910
18911 2010-10-13  Jim Meyering  <meyering@redhat.com>
18912
18913         git-version-gen: do require git-VC'd files in cwd
18914         * build-aux/git-version-gen: Reject a git version string
18915         if there are no commits associated with the current directory.
18916         This avoids an unlikely false-positive (unrelated dir whose parent
18917         repository also contains a tag matching v*), as pointed out
18918         by Giuseppe Scrivano in
18919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18920
18921 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18922
18923         argv-iter: omit nonconforming declaration
18924         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18925         enum arg_iter_err declaration, which doesn't conform to C99.
18926         Solaris 10 cc warns about this.
18927
18928 2010-10-13  Eric Blake  <eblake@redhat.com>
18929
18930         termios: fix compilation on mingw
18931         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18932         (gl_TERMIOS_H): Adjust it on mingw.
18933         * modules/termios (Makefile.am): Substitute new key.
18934         * lib/termios.in.h (includes): Make include_next conditional.
18935         * doc/posix-headers/termios.texi (termios.h): Update
18936         documentation.
18937         Reported by Daniel P. Berrange.
18938
18939 2010-10-13  Jim Meyering  <meyering@redhat.com>
18940
18941         git-version-gen: don't require that .git/ be in the current dir
18942         * build-aux/git-version-gen: Adjust this script so that it works
18943         when run from any working directory beneath the top-level .git/-
18944         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18946
18947         test-select: avoid warn_unused_result warnings
18948         * tests/test-select.c: Include "macros.h".
18949         ASSERT that each call to read, write, and pipe succeeds.
18950         While not technically required, also check each "close".
18951         * modules/select-tests (Files): Add tests/macros.h.
18952
18953         test-symlinkat: remove declaration of unused local
18954         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18955
18956         test-inttostr: avoid shadowing warnings
18957         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18958         and use malloc rather than the stack for the same reason as
18959         mentioned in the comment justifying the other allocation.
18960
18961 2010-10-11  Bruno Haible  <bruno@clisp.org>
18962
18963         stdlib: Allow multiple gnulib generated replacements to coexist.
18964         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18965         Reported by Sam Steingold <sds@gnu.org>.
18966
18967 2010-10-11  Jim Meyering  <meyering@redhat.com>
18968
18969         fix a documentation typo
18970         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18971
18972 2010-10-11  Eric Blake  <eblake@redhat.com>
18973
18974         futimens: work around Solaris 11 bug
18975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18976         * tests/test-futimens.h (test_futimens): Enhance, rather than
18977         weaken test.
18978         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18979
18980 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18981
18982         Indentation.
18983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18984         higher-level operators more to the left.
18985
18986 2010-10-11  Jim Meyering  <meyering@redhat.com>
18987
18988         test-futimens: avoid unwarranted test failure on Solaris 5.11
18989         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18990         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18991         because it tries to dereference the NULL name argument.
18992
18993 2010-10-11  Bruno Haible  <bruno@clisp.org>
18994
18995         Indentation.
18996         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18997         indentation.
18998
18999 2010-10-11  Jim Meyering  <meyering@redhat.com>
19000
19001         spawn.in.h: make indentation consistent with parentheses
19002         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19003         Make indentation consistent with parentheses.
19004
19005 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19006
19007         Fix mismatched parens in previous commit
19008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19009         parens.
19010
19011 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19012
19013         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19014
19015         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19016         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19017         * lib/malloca.c: Include "verify.h".
19018         (verify1): Remove, replacing with a verify call.
19019         * lib/relocwrapper.c (verify1): Likewise.
19020         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19021         Likewise.
19022         * modules/malloca (Depends-on): Add 'verify'.
19023         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19024         * modules/vasnprintf (Depends-on): Add 'verify'.
19025         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19027         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19028         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19029         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19030         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19032
19033         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19034
19035         Formerly the style was sometimes 2*X - 1, because the C standard
19036         was wrongly thought to disallow ?: in integral constant expressions.
19037         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19038         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19039         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19040         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19041         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19042         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19043         verify that time_t cannot be floating.
19044
19045 2010-10-08  Eric Blake  <eblake@redhat.com>
19046
19047         time: enforce recent POSIX ruling that time_t is integral
19048         * lib/time.in.h (__time_t_must_be_integral): Detect any
19049         problematic systems, allowing the rest of gnulib to assume POSIX.
19050
19051 2010-10-08  Jim Meyering  <meyering@redhat.com>
19052
19053         fdopendir: fix a bug on systems lacking openat and /proc support
19054         OpenBSD 4.7 is one such system.  The most noticeable effect was
19055         failure of any application making nontrivial use of fts: rm, du,
19056         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19057           ./rm: traversal failed: `a': Bad file descriptor
19058         Debugging that, you see that even though FD 6 was closed just
19059         prior to the opendir call in fd_clone_opendir, its resulting
19060         dir->dd_fd was 8, rather than the expected value of 6:
19061
19062         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19063         93                close (fd);
19064         (gdb) n
19065         94                dir = fd_clone_opendir (dupfd);
19066         (gdb) n
19067         95                saved_errno = errno;
19068         (gdb) p dir->dd_fd
19069         $11 = 8
19070
19071         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19072         The problem is that on OpenBSD, fd_clone_opendir has to resort
19073         to using the old-style save/restore CWD mechanism, due to its
19074         lack of openat/proc support, and *that* would steal the FD (6)
19075         that opendir was supposed to use.
19076
19077         The fix is to squirrel away the desired FD so that save_cwd uses a
19078         different one, and then free the dest FD right before calling opendir.
19079         That guarantees opendir will use the required file descriptor.
19080
19081         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19082
19083 2010-10-08  Bruno Haible  <bruno@clisp.org>
19084
19085         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19086         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19087
19088 2010-10-08  Bruno Haible  <bruno@clisp.org>
19089
19090         nanosleep: Make replacement POSIX compliant.
19091         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19092         is out of range.
19093         Reported by Jim Meyering.
19094
19095 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19096
19097         bootstrap: add hook for altering gnulib.mk, for Bison
19098         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19099         the Bison bootstrapping process can rewrite file names and variables
19100         in this file before later parts of 'bootstrap' use the file.
19101         Bison wants to include lib/gnulib.mk from the top-level makefile,
19102         so it needs the file names in this file to be relative to the top
19103         level, not relative to lib; plus it needs variable names to be
19104         rewritten.
19105         (slurp): Use the new function.
19106
19107         bootstrap: reformat for readability
19108         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19109
19110 2010-10-08  Eric Blake  <eblake@redhat.com>
19111
19112         docs: update cygwin progress
19113         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19114         1.7.7.
19115         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19116         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19117         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19118         * doc/posix-functions/carg.texi (carg): Likewise.
19119         * doc/posix-functions/cargf.texi (cargf): Likewise.
19120         * doc/posix-functions/casin.texi (casin): Likewise.
19121         * doc/posix-functions/casinf.texi (casinf): Likewise.
19122         * doc/posix-functions/casinh.texi (casinh): Likewise.
19123         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19124         * doc/posix-functions/catan.texi (catan): Likewise.
19125         * doc/posix-functions/catanf.texi (catanf): Likewise.
19126         * doc/posix-functions/catanh.texi (catanh): Likewise.
19127         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19128         * doc/posix-functions/ccos.texi (ccos): Likewise.
19129         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19130         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19131         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19132         * doc/posix-functions/cexp.texi (cexp): Likewise.
19133         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19134         * doc/posix-functions/cimag.texi (cimag): Likewise.
19135         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19136         * doc/posix-functions/clog.texi (clog): Likewise.
19137         * doc/posix-functions/clogf.texi (clogf): Likewise.
19138         * doc/posix-functions/conj.texi (conj): Likewise.
19139         * doc/posix-functions/conjf.texi (conjf): Likewise.
19140         * doc/posix-functions/cpow.texi (cpow): Likewise.
19141         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19142         * doc/posix-functions/cproj.texi (cproj): Likewise.
19143         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19144         * doc/posix-functions/creal.texi (creal): Likewise.
19145         * doc/posix-functions/crealf.texi (crealf): Likewise.
19146         * doc/posix-functions/csin.texi (csin): Likewise.
19147         * doc/posix-functions/csinf.texi (csinf): Likewise.
19148         * doc/posix-functions/csinh.texi (csinh): Likewise.
19149         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19150         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19151         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19152         * doc/posix-functions/ctan.texi (ctan): Likewise.
19153         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19154         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19155         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19156         * doc/posix-headers/complex.texi (complex.h): Likewise.
19157
19158 2010-10-07  Jim Meyering  <meyering@redhat.com>
19159
19160         parse-datetime: avoid compilation failure on OpenBSD 4.7
19161         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19162         This works around a compilation failure on OpenBSD 4.7:
19163         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19164
19165 2010-10-07  Eric Blake  <eblake@redhat.com>
19166
19167         docs: update cygwin progress
19168         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19169         1.7.6.
19170         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19171         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19172         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19173         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19174         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19175         Likewise.
19176         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19177         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19178         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19179         Likewise.
19180         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19181         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19182         Likewise.
19183         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19184         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19185         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19186         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19187         Likewise.
19188         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19189         Likewise.
19190         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19191
19192         docs: update parse-datetime history
19193         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19194         documentation of this function's history and alternatives.
19195
19196         cygwin: use more robust version check
19197         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19198         exclude an eventual cygwin 1.9.1.
19199         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19201         (gl_FUNC_STRCASESTR): Likewise.
19202         Reported by Bruno Haible.
19203
19204 2010-10-06  Bruno Haible  <bruno@clisp.org>
19205
19206         string, sys_select: Avoid #including large headers unless necessary.
19207         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19208         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19209         OSF/1, BeOS, Haiku.
19210         Reported by Jim Meyering.
19211
19212 2010-10-05  Eric Blake  <eblake@redhat.com>
19213
19214         memmem, strstr, strcasestr: fix bug with long periodic needle
19215         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19216         periodic needle having false positive.
19217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19218         and cygwin 1.7.7.
19219         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19221         (gl_FUNC_STRCASESTR): Likewise.
19222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19223         * tests/test-memmem.c (main): Expose the bug.
19224         * tests/test-strcasestr.c (main): Likewise.
19225         * tests/test-strstr.c (main): Likewise.
19226         * tests/test-c-strcasestr.c (main): Likewise.
19227         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19228         * doc/posix-functions/strstr.texi (strstr): Likewise.
19229         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19230         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19231
19232 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19233
19234         parse-datetime: do some more renaming
19235         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19236         parse_datetime, not get_date.  Mention the renaming.
19237         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19238         in comments.
19239         * m4/bison.m4: Likewise.
19240
19241 2010-10-05  Eric Blake  <eblake@redhat.com>
19242
19243         parse-datetime: better name than get_date
19244         * NEWS: Reword the deprecation notice.
19245         * modules/get_date: Rename to modules/parse-datetime.
19246         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19247         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19248         * lib/get_date.y: Rename to lib/parse-datetime.y.
19249         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19250         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19251         * doc/getdate.texi: Provide fallback wrapper.
19252         * lib/getdate.h: Move guts, and wrap...
19253         * lib/parse-datetime.h: ...new file.
19254         * lib/parse-datetime.y (get_date): Rename...
19255         (parse_datetime): ...to this.
19256         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19257         (gl_PARSE_DATETIME): ...to this.
19258         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19259         documentation.
19260         * modules/getdate (Files): Provide fallback docs and header.
19261         (Notice, Depends-on): Update references.
19262         * tests/test-parse-datetime.c: Likewise.
19263         * DEPENDENCIES: Likewise.
19264         * MODULES.html.sh (Date and time <time.h>): Likewise.
19265         * doc/parse-datetime.texi (Date input formats)
19266         (Authors of parse_datetime): Likewise.
19267         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19268         (Include): Likewise.
19269         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19270         * gnulib-tool: Likewise.
19271         * m4/bison.m4 (gl_BISON): Likewise.
19272         Suggested by Bruno Haible.
19273
19274 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19275
19276         more ports to Solaris tr, which needs [] around ranges
19277         * gnulib-tool: Solaris tr needs [] around ranges.
19278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19279         * tests/test-pipe-filter-gi1.c (main): Likewise.
19280         * tests/test-pipe-filter-ii1.c (main): Likewise.
19281
19282 2010-10-05  Eric Blake  <eblake@redhat.com>
19283
19284         bootstrap: fix Solaris regression
19285         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19286         around ranges.
19287         Reported by Pádraig Brady.
19288
19289         bootstrap: work with pkg-config
19290         * build-aux/bootstrap (check_versions): Also transliterate - in
19291         prerequisite name.
19292         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19293         prerequisites that were already found, to avoid confusion.
19294         Reported by Justin Clift.
19295
19296         faccessat: remove unused wrappers
19297         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19298         presence of these wrappers dragged in -lgen on Solaris.
19299         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19300
19301 2010-10-05  Jim Meyering  <meyering@redhat.com>
19302
19303         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19304         * Makefile (sc_pragma_columns): New syntax-check rule.
19305
19306 2010-10-04  Bruno Haible  <bruno@clisp.org>
19307
19308         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19309         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19310         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19311         Reported by Bruce Korb and Eric Blake.
19312
19313 2010-10-04  Bruno Haible  <bruno@clisp.org>
19314
19315         threadlib: Make option --with-libpth-prefix work.
19316         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19317         use $LIBPTH, not just -lpth.
19318
19319 2010-10-04  Bruno Haible  <bruno@clisp.org>
19320
19321         Avoid line length limitation from HP NonStop system header files.
19322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19323         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19324         * lib/ctype.in.h: Likewise.
19325         * lib/dirent.in.h: Likewise.
19326         * lib/errno.in.h: Likewise.
19327         * lib/fcntl.in.h: Likewise.
19328         * lib/float.in.h: Likewise.
19329         * lib/getopt.in.h: Likewise.
19330         * lib/iconv.in.h: Likewise.
19331         * lib/inttypes.in.h: Likewise.
19332         * lib/langinfo.in.h: Likewise.
19333         * lib/locale.in.h: Likewise.
19334         * lib/math.in.h: Likewise.
19335         * lib/netdb.in.h: Likewise.
19336         * lib/netinet_in.in.h: Likewise.
19337         * lib/poll.in.h: Likewise.
19338         * lib/pthread.in.h: Likewise.
19339         * lib/pty.in.h: Likewise.
19340         * lib/sched.in.h: Likewise.
19341         * lib/se-selinux.in.h: Likewise.
19342         * lib/search.in.h: Likewise.
19343         * lib/signal.in.h: Likewise.
19344         * lib/spawn.in.h: Likewise.
19345         * lib/stdarg.in.h: Likewise.
19346         * lib/stddef.in.h: Likewise.
19347         * lib/stdint.in.h: Likewise.
19348         * lib/stdio.in.h: Likewise.
19349         * lib/stdlib.in.h: Likewise.
19350         * lib/string.in.h: Likewise.
19351         * lib/strings.in.h: Likewise.
19352         * lib/sys_file.in.h: Likewise.
19353         * lib/sys_ioctl.in.h: Likewise.
19354         * lib/sys_select.in.h: Likewise.
19355         * lib/sys_socket.in.h: Likewise.
19356         * lib/sys_stat.in.h: Likewise.
19357         * lib/sys_time.in.h: Likewise.
19358         * lib/sys_times.in.h: Likewise.
19359         * lib/sys_utsname.in.h: Likewise.
19360         * lib/sys_wait.in.h: Likewise.
19361         * lib/sysexits.in.h: Likewise.
19362         * lib/termios.in.h: Likewise.
19363         * lib/time.in.h: Likewise.
19364         * lib/unistd.in.h: Likewise.
19365         * lib/wchar.in.h: Likewise.
19366         * lib/wctype.in.h: Likewise.
19367         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19368         * modules/ctype (Makefile.am): Likewise.
19369         * modules/dirent (Makefile.am): Likewise.
19370         * modules/errno (Makefile.am): Likewise.
19371         * modules/fcntl-h (Makefile.am): Likewise.
19372         * modules/float (Makefile.am): Likewise.
19373         * modules/getopt-posix (Makefile.am): Likewise.
19374         * modules/iconv-h (Makefile.am): Likewise.
19375         * modules/inttypes (Makefile.am): Likewise.
19376         * modules/langinfo (Makefile.am): Likewise.
19377         * modules/locale (Makefile.am): Likewise.
19378         * modules/math (Makefile.am): Likewise.
19379         * modules/netdb (Makefile.am): Likewise.
19380         * modules/netinet_in (Makefile.am): Likewise.
19381         * modules/poll-h (Makefile.am): Likewise.
19382         * modules/pthread (Makefile.am): Likewise.
19383         * modules/pty (Makefile.am): Likewise.
19384         * modules/sched (Makefile.am): Likewise.
19385         * modules/search (Makefile.am): Likewise.
19386         * modules/selinux-h (Makefile.am): Likewise.
19387         * modules/signal (Makefile.am): Likewise.
19388         * modules/spawn (Makefile.am): Likewise.
19389         * modules/stdarg (Makefile.am): Likewise.
19390         * modules/stddef (Makefile.am): Likewise.
19391         * modules/stdint (Makefile.am): Likewise.
19392         * modules/stdio (Makefile.am): Likewise.
19393         * modules/stdlib (Makefile.am): Likewise.
19394         * modules/string (Makefile.am): Likewise.
19395         * modules/strings (Makefile.am): Likewise.
19396         * modules/sys_file (Makefile.am): Likewise.
19397         * modules/sys_ioctl (Makefile.am): Likewise.
19398         * modules/sys_select (Makefile.am): Likewise.
19399         * modules/sys_socket (Makefile.am): Likewise.
19400         * modules/sys_stat (Makefile.am): Likewise.
19401         * modules/sys_time (Makefile.am): Likewise.
19402         * modules/sys_times (Makefile.am): Likewise.
19403         * modules/sys_utsname (Makefile.am): Likewise.
19404         * modules/sys_wait (Makefile.am): Likewise.
19405         * modules/sysexits (Makefile.am): Likewise.
19406         * modules/termios (Makefile.am): Likewise.
19407         * modules/time (Makefile.am): Likewise.
19408         * modules/unistd (Makefile.am): Likewise.
19409         * modules/wchar (Makefile.am): Likewise.
19410         * modules/wctype (Makefile.am): Likewise.
19411
19412 2010-10-04  Bruno Haible  <bruno@clisp.org>
19413
19414         read-file tests: Avoid a test failure on NonStop Kernel.
19415         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19416         a regular file.
19417         Reported by Joachim Schmitz <schmitz@hp.com>.
19418
19419 2010-10-03  Bruno Haible  <bruno@clisp.org>
19420
19421         gnulib-tool: Fixes for --create-testdir with --libtool.
19422         * gnulib-tool (func_get_automake_snippet): Don't augment
19423         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19424         an executable.
19425         (func_create_testdir): Handle module 'alloca' like func_import.
19426         Reported by Bruce Korb <bruce.korb@gmail.com>.
19427
19428 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         Avoid some lines longer than 80 characters.
19431         * lib/stdint.in.h: Break long comment lines.
19432         * lib/math.in.h: Likewise.
19433         (_GL_NUM_UINT_WORDS): New macro, for readability.
19434         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19435         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19436         * lib/stdlib.in.h: Likewise.
19437         * lib/spawn.in.h: Likewise.
19438         * lib/sys_socket.in.h: Update an URL.
19439         * lib/sys_stat.in.h: Break long line.
19440
19441 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19442
19443         Improve pmccabe2html.
19444         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19445         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19446         when the sources change. Remove the line in the HTML about "Used
19447         ranges" (which implied that there might be other unused ranges),
19448         rename "Resume" to "Summary" (easier to understand for more users).
19449         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19450         styles, and some unnecessary blank lines.
19451
19452 2010-10-03  Bruno Haible  <bruno@clisp.org>
19453             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19454
19455         acl: Add support for ACLs on NonStop Kernel.
19456         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19457         Check whether the function aclsort() exists.
19458         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19459         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19460         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19461         (acl_nontrivial [HAVE_ACLSORT]: New function.
19462         (file_has_acl): Implement for NonStop Kernel.
19463         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19464         (qset_acl): Implement for NonStop Kernel.
19465         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19466         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19467         (main): Implement for NonStop Kernel.
19468         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19469         Kernel. Handle this flavor.
19470         * tests/test-set-mode-acl.sh: Likewise.
19471         * tests/test-copy-acl.sh: Likewise.
19472         * tests/test-copy-file.sh: Likewise.
19473
19474 2010-10-03  Bruno Haible  <bruno@clisp.org>
19475
19476         Info about ACLs on NonStop Kernel.
19477         * doc/acl-resources.txt: Add info about NonStop Kernel.
19478         References by Joachim Schmitz <schmitz@hp.com>.
19479
19480 2010-10-02  Bruno Haible  <bruno@clisp.org>
19481
19482         Define missing EDQUOT on NonStop Kernel.
19483         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19484         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19486         missing.
19487         * doc/posix-headers/errno.texi: Mention the NSK bug.
19488         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19489         Reported by Joachim Schmitz <schmitz@hp.com>.
19490
19491 2010-10-02  Bruno Haible  <bruno@clisp.org>
19492
19493         Update doc for POSIX:2008.
19494         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19495         Update URL of POSIX specification.
19496
19497 2010-10-02  Bruno Haible  <bruno@clisp.org>
19498
19499         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19500         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19501         from gnulib, not from Automake.
19502
19503 2010-10-02  Bruno Haible  <bruno@clisp.org>
19504
19505         New module 'system-posix'.
19506         * modules/system-posix: New file.
19507         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19508         module is present.
19509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19510         GNULIB_SYSTEM_POSIX.
19511         * modules/stdlib (Depends-on): Remove sys_wait.
19512         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19513         * doc/posix-functions/system.texi: Mention the new module.
19514         * doc/posix-headers/stdlib.texi: Likewise.
19515         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19516         define test_sys_wait_macros to a no-op.
19517         Reported by Sam Steingold <sds@gnu.org>.
19518
19519 2010-09-30  Bruno Haible  <bruno@clisp.org>
19520
19521         More renaming from 'getdate' to 'get_date'.
19522         * doc/get_date.texi: Renamed from doc/getdate.texi.
19523         * modules/get_date (Files): Update.
19524         * MODULES.html.sh (Date and time <time.h>): Update.
19525         * DEPENDENCIES: Update.
19526         * gnulib-tool: Update comment.
19527         * m4/bison.m4 (gl_BISON): Likewise.
19528         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19529
19530 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19531
19532         bootstrap: support ACLOCAL_FLAGS during aclocal
19533         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19534         can add additional -I dir for third-party .m4 files.
19535
19536 2010-09-30  Eric Blake  <eblake@redhat.com>
19537
19538         bootstrap: use glibtoolize on MacOS
19539         * build-aux/bootstrap (check_versions): Convert libtool into
19540         libtoolize.
19541         (tool search): Move libtool check earlier, and look for
19542         glibtoolize for MacOS.
19543         (gnulib_tool_options): Auto-add --libtool when appropriate.
19544         Reported by Justin Clift.
19545
19546         poll: fix typo that broke test on MacOS
19547         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19548         Reported by Justin Clift.
19549
19550         getdate: rename to get_date
19551         Note: getdate.h is not renamed, to minimize client impact.
19552         * modules/getdate: Mark obsolete.  Move old contents...
19553         * modules/get_date: ...to new module name.
19554         * modules/getdate-tests: Move...
19555         * modules/get_date-tests: ...here.
19556         * m4/getdate.m4: Move...
19557         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19558         * lib/getdate.y: Move...
19559         * lib/get_date.y: ...here.
19560         * tests/test-getdate.c: Move...
19561         * tests/test-get_date.c: ...here.
19562         * doc/posix-functions/getdate.texi (getdate): Update name.
19563         * NEWS: Mention the change.
19564
19565 2010-09-29  Bruno Haible  <bruno@clisp.org>
19566
19567         Separate the module 'waitpid' from the module 'sys_wait'.
19568         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19569         present.
19570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19571         gl_MODULE_INDICATOR_FOR_TESTS.
19572         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19573         * modules/sys_wait (Depends-on): Remove waitpid.
19574         (Makefile.am): Substitute GNULIB_WAITPID.
19575         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19576         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19577         signature only if the 'waitpid' module is present.
19578         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19579         * NEWS: Mention the change.
19580         * modules/grantpt (Depends-on): Add waitpid.
19581         * modules/wait-process (Depends-on): Likewise.
19582
19583 2010-09-29  Bruno Haible  <bruno@clisp.org>
19584
19585         More tests for module 'sys_wait'.
19586         * modules/sys_wait-c++-tests: New file.
19587         * tests/test-sys_wait-c++.cc: New file.
19588         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19589         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19590
19591 2010-09-29  Bruno Haible  <bruno@clisp.org>
19592
19593         New module 'waitpid'.
19594         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19595         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19596         Don't include <process.h>.
19597         (waitpid): Declare only, using modern idiom.
19598         * m4/waitpid.m4: New file.
19599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19600         * modules/waitpid: New file.
19601         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19602         (Makefile.am): Update.
19603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19604
19605 2010-09-28  Bruno Haible  <bruno@clisp.org>
19606
19607         poll: Assume ANSI C.
19608         * lib/poll.c (poll): Use an ANSI C declaration.
19609
19610 2010-09-28  Bruno Haible  <bruno@clisp.org>
19611
19612         poll-h: Create poll.h on all platforms.
19613         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19614         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19615         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19616         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19617         (gl_REPLACE_POLL_H): Don't set POLL_H.
19618         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19619         * modules/poll-h (Depends-on): Add include_next.
19620         (Makefile.am): Create poll.h unconditionally. Substitute also
19621         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19622
19623 2010-09-28  Bruno Haible  <bruno@clisp.org>
19624
19625         Tests for module 'poll-h'.
19626         * modules/poll-h-c++-tests: New file.
19627         * tests/test-poll-h-c++.cc: New file.
19628
19629         Tests for module 'poll-h'.
19630         * modules/poll-h-tests: New file.
19631         * tests/test-poll-h.c: New file.
19632
19633 2010-09-28  Bruno Haible  <bruno@clisp.org>
19634
19635         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19636         * modules/poll-h (Depends-on): Add 'extensions'.
19637
19638 2010-09-28  Bruno Haible  <bruno@clisp.org>
19639
19640         New module 'poll-h'.
19641         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19642         (poll): Use modern idiom.
19643         * modules/poll-h: New file.
19644         * modules/poll (Files): Remove lib/poll.in.h.
19645         (Depends-on): Add poll-h.
19646         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19647         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19648         * m4/poll_h.m4: New file.
19649         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19650         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19651         and invoke gl_REPLACE_POLL_H.
19652         * lib/poll.c: Use common idiom.
19653         * tests/test-poll.c: Likewise.
19654         * doc/posix-headers/poll.texi: Mention the poll-h module.
19655         Suggested by Eric Blake.
19656
19657 2010-09-26  Bruno Haible  <bruno@clisp.org>
19658
19659         sys_wait: Implement WSTOPSIG.
19660         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19661         Reported by Simon Josefsson.
19662
19663 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19664
19665         stdlib, sys_wait: Avoid compilation error on mingw.
19666         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19667
19668 2010-09-26  Bruno Haible  <bruno@clisp.org>
19669
19670         stdlib tests: Avoid code duplication.
19671         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19672         * modules/sys_wait-tests (Files): Likewise.
19673         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19674         * tests/test-stdlib.c: Include test-sys_wait.h.
19675         (main): Invoke test_sys_wait_macros.
19676         * tests/test-sys_wait.c: Include test-sys_wait.h.
19677         (main): Invoke test_sys_wait_macros.
19678
19679 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19680
19681         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19682         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19683         sure Windows sockets are working before calling getaddrinfo.
19684         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19685         * doc/gnulib.texi (Windows sockets): Fix typo.
19686
19687 2010-09-25  Bruno Haible  <bruno@clisp.org>
19688
19689         Tests for module 'regex-quote'.
19690         * modules/regex-quote-tests: New file.
19691         * tests/test-regex-quote.c: New file.
19692
19693         New module 'regex-quote'.
19694         * lib/regex-quote.h: New file.
19695         * lib/regex-quote.c: New file.
19696         * modules/regex-quote: New file.
19697         Suggested by Reuben Thomas <rrt@sc3d.org>.
19698
19699 2010-09-24  Bruno Haible  <bruno@clisp.org>
19700
19701         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19702         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19703
19704 2010-09-23  Bruno Haible  <bruno@clisp.org>
19705
19706         setenv: Relax license.
19707         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19708         Blake.
19709         Requested by Eric Blake.
19710
19711 2010-09-22  Bruno Haible  <bruno@clisp.org>
19712
19713         termios: Relax license.
19714         * modules/termios (License): Change to LGPLv2+.
19715         Requested by Eric Blake.
19716
19717 2010-09-22  Bruno Haible  <bruno@clisp.org>
19718
19719         threadlib: Allow the package to change the default to 'no'.
19720         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19721         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19722         Reported by Paul Eggert.
19723
19724 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19725             Bruno Haible  <bruno@clisp.org>
19726
19727         Fix endless loop in mbmemcasecoll.
19728         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19729         byte.
19730         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19731
19732 2010-09-22  Bruno Haible  <bruno@clisp.org>
19733
19734         Tests for module 'memcoll'.
19735         * modules/memcoll-tests: New file.
19736         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19737
19738         memcoll, xmemcoll: Clarify size vs. length.
19739         * modules/memcoll.c (memcoll0): Clarify specification.
19740         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19741         passed to collate_error.
19742
19743 2010-09-22  Bruno Haible  <bruno@clisp.org>
19744
19745         Tests for module 'memcasecmp'.
19746         * modules/memcasecmp-tests: New file.
19747         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19748
19749 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19750
19751         * lib/pthread.in.h: Add split double-inclusion guard, and include
19752         system <pthread.h> if there is one.  Use @@-style as in other
19753         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19754         pthread.h doesn't.
19755         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19756         (pthread_mutexattr_settype, pthread_mutex_trylock):
19757         New static inline functions, if there's no system <pthread.h>.
19758         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19759         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19760         Approximate with mutexes if the system lacks spinlocks, as in
19761         MacOS.
19762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19763         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19764         @@-style.  Check for spinlocks separately.
19765         (gl_PTHREAD_DEFAULTS): New macro.
19766         * modules/pthread: Redo to use a more typical style for in.h files.
19767
19768 2010-09-21  Eric Blake  <eblake@redhat.com>
19769
19770         net_if: enhance tests
19771         * tests/test-net_if.c (main): Move signature checks earlier.
19772         Print failures to stderr.
19773         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19774         Document the bug that we do not yet fix.
19775
19776 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19777
19778         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19779         about gnulib, not GSS.
19780
19781 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19782
19783         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19784         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19785         for Emacs.
19786         * build-aux/pmccabe2html: Make Makefile.am example code more
19787         cut-and-paste friendly.
19788
19789 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19790
19791         * tests/test-net_if.c: New file.
19792         * modules/net_if-tests: New file.
19793
19794 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         pthread: add pthread_spin_destroy
19797         * lib/pthread.in.h (pthread_spin_destroy): New function.
19798
19799 2010-09-19  Bruno Haible  <bruno@clisp.org>
19800
19801         gnulib-tool: Fix --help output.
19802         * gnulib-tool (func_usage): Fix help message.
19803         Reported by Reuben Thomas <rrt@sc3d.org>.
19804
19805 2010-09-18  Jim Meyering  <meyering@redhat.com>
19806
19807         maint.mk: avoid unexpanded \n in two diagnostics
19808         * top/maint.mk (sc_prohibit_always_true_header_tests):
19809         Don't use a literal \n in a halt=... assignment.  It would not be
19810         expanded, and the two \n bytes would appear in the diagnostic output
19811         rather than the desired newline.  Use halt=$$(printf ... instead.
19812         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19813
19814 2010-09-18  Bruno Haible  <bruno@clisp.org>
19815
19816         netinet_in: Doc tweak.
19817         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19819
19820 2010-09-18  Jim Meyering  <meyering@redhat.com>
19821
19822         init.sh: correct an outdated comment
19823         * tests/init.sh (create_exe_shims_):  s/function/alias/
19824
19825         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19826         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19827         a file named "*.exe" is removed between the glob expansion and the
19828         processing of that oddly named file.
19829
19830 2010-09-17  Eric Blake  <eblake@redhat.com>
19831
19832         mirbsd: add some more support
19833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19834         in BSD family.
19835         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19836         devices as OpenBSD.
19837         * m4/host-os.m4 (mirbsd): Add MirBSD.
19838
19839         tests: fix unportable assumption on sys/wait.h
19840         * tests/test-sys_wait.c (main): Relax test.
19841         * tests/test-stdlib.c (main): Likewise.
19842
19843         init.sh: accomodate directory with no .exes
19844         * tests/init.sh: Accomodate directory containing only scripts.
19845
19846         tests: avoid compiler warning
19847         * tests/test-stdlib.c (main): Use the variable.
19848
19849         fdutimens, fdutimensat: update signature, again
19850         * lib/utimens.h (gl_futimens): Delete, and move signature...
19851         (fdutimens): ...here.
19852         (fdutimensat): Rearrange signature.
19853         (lutimensat): Rename variable for clarity.
19854         * lib/fdutimensat.c (fdutimensat): Update signature.
19855         * lib/utimens.c (fdutimens): Likewise.
19856         (gl_futimens): Delete.
19857         (utimens, lutimens): Update callers.
19858         * lib/futimens.c (futimens): Likewise.
19859         * tests/test-fdutimensat.c: Likewise.
19860         * tests/test-utimens.c: Likewise.
19861         * tests/test-futimens.h: Update comment.
19862         * NEWS: Mention this.
19863         Suggested by Paul Eggert.
19864
19865 2010-09-17  Bruno Haible  <bruno@clisp.org>
19866
19867         Take over the maintenance of some older macros from Autoconf.
19868         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19869         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19870         GNU Autoconf.
19871         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19872         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19873
19874 2010-09-17  Eric Blake  <eblake@redhat.com>
19875
19876         fdutimensat: drop atflag validation
19877         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19878         with valid fd, to close a race scenario where futimens is
19879         unsupported and FILE was replaced by a symlink.
19880         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19881         accordingly.
19882         Suggested by Paul Eggert.
19883
19884 2010-09-16  Bruno Haible  <bruno@clisp.org>
19885
19886         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19887         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19888
19889 2010-09-16  Bruno Haible  <bruno@clisp.org>
19890
19891         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19892         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19893         login_tty exists.
19894         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19895
19896 2010-09-16  Bruno Haible  <bruno@clisp.org>
19897
19898         login_tty: Make the replacement code work on BSD systems.
19899         * lib/login_tty.c: Include <sys/ioctl.h>.
19900         (login_tty): Use ioctl TIOCSCTTY when available.
19901         * modules/login_tty (Depends-on): Add sys_ioctl.
19902         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19903
19904 2010-09-16  Bruno Haible  <bruno@clisp.org>
19905
19906         login_tty: Stricter unit test.
19907         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19908         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19909         and tcgetsid() after login_tty.
19910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19911
19912 2010-09-16  Bruno Haible  <bruno@clisp.org>
19913
19914         New module 'tcgetsid'.
19915         * lib/tcgetsid.c: New file.
19916         * m4/tcgetsid.m4: New file.
19917         * modules/tcgetsid: New file.
19918         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19919         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19920         GNULIB_TCGETSID, HAVE_TCGETSID.
19921         * lib/termios.in.h: Include <sys/types.h>.
19922         (tcgetsid): New declaration.
19923         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19924         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19925         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19926         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19927
19928 2010-09-16  Bruno Haible  <bruno@clisp.org>
19929
19930         Tests for module 'termios'.
19931         * modules/termios-c++-tests: New file.
19932         * modules/termios-tests: New file.
19933         * tests/test-termios-c++.cc: New file.
19934         * tests/test-termios.c: New file.
19935
19936         New module 'termios'.
19937         * modules/termios: New file.
19938         * lib/termios.in.h: New file.
19939         * m4/termios_h.m4: New file.
19940         * doc/posix-headers/termios.texi: Mention the new module.
19941
19942 2010-09-16  Eric Blake  <eblake@redhat.com>
19943
19944         fdutimensat: add an atflag parameter
19945         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19946         * lib/utimens.h (fdutimensat): Update prototype.
19947         * tests/test-fdutimensat.c: Adjust test to match.
19948         * NEWS: Document the change.
19949         Suggested by Paul Eggert.
19950
19951 2010-09-16  Bruno Haible  <bruno@clisp.org>
19952
19953         Fix typos in comments.
19954         * lib/striconveh.h: Fix typo in comment.
19955         * lib/login_tty.c (login_tty): Likewise.
19956
19957 2010-09-15  Bruno Haible  <bruno@clisp.org>
19958
19959         stdlib: clarify MirBSD WEXITSTATUS bug
19960         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19961         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19962
19963 2010-09-15  Eric Blake  <eblake@redhat.com>
19964
19965         stdlib: work around MirBSD WEXITSTATUS bug
19966         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19967         * modules/stdlib (Depends-on): Add sys_wait.
19968         * tests/test-sys_wait.c (main): Enhance test.
19969         * tests/test-stdlib.c (main): Likewise.
19970         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19971
19972         docs: mention MacOS issue with WEXITSTATUS(constant)
19973         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19974         issue.
19975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19976
19977         strnlen: add tests
19978         * modules/strnlen-tests: New file.
19979         * tests/test-strnlen.c: Likewise.
19980
19981 2010-09-14  Bruno Haible  <bruno@clisp.org>
19982
19983         unistr/base: Avoid link errors when module 'libunistring' is also used.
19984         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19985         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19986         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19987         Declare also when HAVE_LIBUNISTRING is set.
19988         Reported by Pádraig Brady <P@draigbrady.com>.
19989
19990 2010-09-14  Eric Blake  <eblake@redhat.com>
19991
19992         test-rawmemchr: make more robust
19993         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19994         (Depends-on, configure.ac): Add needed prerequisites to use it.
19995         * modules/memchr-tests (Files, Depends-on, configure.ac):
19996         Likewise, to avoid implicit reliance on memchr module prereqs.
19997         * tests/test-memchr.c (main): Ensure proper masking.
19998         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19999         reads.
20000
20001         memchr: detect glibc Alpha bug
20002         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20004         Alpha.
20005         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20006         * tests/test-memchr.c (main): Enhance test.
20007         Reported by Nelson H. F. Beebe.
20008
20009 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20010
20011         fts, getcwd, glob: audit for dirfd returning -1
20012         * lib/fts.c (opendir): Remove #define; no longer used.
20013         (opendirat): New arg PDIR_FD.  All callers changed.
20014         (fts_build, _opendir2): Use new opendirat to avoid the need for
20015         dirfd, or for checking whether dirfd returns a negative value.
20016         Don't use opendir; always use openat followed by fdopendir.
20017         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20018         it.
20019         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20020         returns -1 here.
20021         * modules/fts (Depends-on): Remove dirfd.
20022         * modules/getcwd (Depends-on): Likewise.
20023
20024 2010-09-13  Eric Blake  <eblake@redhat.com>
20025
20026         float: fix broken MirBSD header
20027         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20028         * doc/posix-headers/float.texi (float.h): Document it.
20029
20030 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20031
20032         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20033         * lib/fts.c (opendirat): New arg extra_flags.
20034         (__opendir2): Use it to avoid following symlinks when opening
20035         a directory, if symlinks are not supposed to be followed.  See
20036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20037
20038         fdopendir: preserve argument fd before returning
20039         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20040         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20041         (fdopendir): Use them, arranging for FD to be open to the same
20042         directory that it was when it started.  (It might be temporarily
20043         closed while fdopendir is running, so this not thread- or
20044         signal-safe.)  Be careful to do the right thing even when file
20045         descriptors are scarce and dup fails with errno == EMFILE.  See
20046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20047
20048 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20049
20050         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20051         * NEWS: Document change.
20052         * m4/regex.m4: Disable test for regoff_t size.
20053
20054 2010-09-13  Jim Meyering  <meyering@redhat.com>
20055
20056         fts: don't operate on an invalid file descriptor after failed dup
20057         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20058         negative file descriptor.
20059
20060 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         savedir: add streamsavedir, deprecate fdsavedir
20063         * NEWS: Mention deprecation of fdsavedir.
20064         * lib/savedir.c (streamsavedir): New extern function, whose name
20065         ends in "savedir" to be consistent with the others.  This differs
20066         from savedirstream in that it doesn't close its argument.  The
20067         next version of GNU tar will use this instead of fdsavedir, to
20068         avoid some race conditions and conserve file descriptors.
20069         (savedirstream): Reimplement as a wrapper around streamsavedir.
20070         (fdsavedir): Add a comment deprecating this function.  As far as
20071         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20072         * lib/savedir.h (streamsavedir): New decl.
20073         (fdsavedir): Add a comment deprecating this.
20074
20075 2010-09-10  Bruno Haible  <bruno@clisp.org>
20076
20077         langinfo: Fix last commit.
20078         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20079         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20081
20082 2010-09-10  Bruno Haible  <bruno@clisp.org>
20083
20084         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20085         * lib/progreloc.c (O_EXEC): Define fallback.
20086
20087 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20088
20089         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20090         * NEWS: Document recent changes to fcntl-h.
20091         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20092         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20093         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20094         Similarly for O_SEARCH; this last was already true, but not documented.
20095         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20096         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20097         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20098         Likewise.
20099         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20100         is zero, not whether it is defined.
20101         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20102         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20103         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20104
20105 2010-09-10  Bruno Haible  <bruno@clisp.org>
20106
20107         langinfo, nl_langinfo: Fix for IRIX 5.3.
20108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20109         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20110         HAVE_LANGINFO_YESEXPR.
20111         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20112         HAVE_LANGINFO_YESEXPR.
20113         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20114         HAVE_LANGINFO_T_FMT_AMPM is 0.
20115         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20116         HAVE_LANGINFO_YESEXPR is 0.
20117         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20118         NOEXPR.
20119         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20120         * doc/posix-functions/nl_langinfo.texi: Likewise.
20121         Reported by Eric Blake.
20122
20123 2010-09-10  Bruno Haible  <bruno@clisp.org>
20124
20125         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20126         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20127         on FreeBSD 8.0 and OpenBSD 4.6.
20128         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20129         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20130         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20131         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20132         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20133         ac_includes_default.
20134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20135
20136 2010-09-09  Eric Blake  <eblake@redhat.com>
20137
20138         strsignal: work around NetBSD bug
20139         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20140         * lib/string.in.h (includes): Likewise.
20141         * doc/posix-functions/strsignal.texi (strsignal): Document the
20142         bug.
20143         Reported by Nelson H. F. Beebe.
20144
20145         gnulib-tool: work with NetBSD /bin/sh
20146         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20147         (func_get_description, func_get_comment, func_get_status)
20148         (func_get_notice, func_get_applicability, func_get_filelist)
20149         (func_get_dependencies, func_get_autoconf_early_snippet)
20150         (func_get_autoconf_snippet, func_get_automake_snippet)
20151         (func_get_include_directive, func_get_link_directive)
20152         (func_get_license, func_get_maintainer, func_import): Avoid
20153         shell syntax errors from parsing syntax extensions.
20154
20155 2010-09-09  Bruno Haible  <bruno@clisp.org>
20156
20157         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20158         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20159         a reliable way to determine whether the 'alias' command works.
20160
20161 2010-09-08  Jim Meyering  <meyering@redhat.com>
20162
20163         init.sh: penalize a set-x-impaired shell; don't disqualify it
20164         * tests/init.sh: Too many shells corrupt application stderr when
20165         you set -x, so we can't afford to disqualify them, since at least
20166         on Irix-6.5, that would disqualify all bourne shells.
20167         Instead, use a two-pass approach.
20168         On the first pass, try to find a shell that meets the stricter
20169         condition that set -x does not corrupt stderr.
20170         If no shell meets the stricter condition, retest each candidate
20171         shell, but without that extra condition.  Finally, when
20172         VERBOSE=yes is requested and set -x might cause trouble, simply
20173         issue a warning and refrain from enabling debug output.
20174
20175 2010-09-08  Eric Blake  <eblake@redhat.com>
20176
20177         unsetenv: fix OpenBSD bug
20178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20179         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20180         documentation.
20181         Reported by Jim Meyering.
20182
20183         strtod: work around IRIX 6.5 bug
20184         * lib/strtod.c (strtod): Reparse number on shorter string if
20185         exponent parse was invalid.
20186         * tests/test-strtod.c (main): Add check for "0x1p 2".
20187         Reported by Tom G. Christensen.
20188
20189         getopt: optimize previous patch
20190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20191         empty variable.  Speed up awk script.
20192         Reported by Paolo Bonzini.
20193
20194 2010-09-08  Jim Meyering  <meyering@redhat.com>
20195
20196         test.sh: disqualify shells for which set -x corrupts stderr
20197         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20198         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20199         appear in stderr output.  For example, this command:
20200             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20201         prints "P=1" on those two systems:
20202
20203 2010-09-08  Bruno Haible  <bruno@clisp.org>
20204
20205         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20206         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20207         commands, because some shells ignore redirections when there is an
20208         error in the command lookup.
20209         Reported by Eric Blake.
20210
20211 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20212
20213         * lib/regex.h: Fix a mention of `regex_compile' (should be
20214         `re_compile_pattern').
20215         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20216         (re_set_registers): Correct name of parameter in comment.
20217
20218         * doc/regex.texi: Add documentation for missing syntax flags.
20219         Remove commented-out documentation of defunct syntax option
20220         RE_NO_EMPTY_ALTS.
20221         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20222         Add documentation of re_set_registers.
20223         Document trick to re-use a pattern buffer by setting fastmap manually.
20224         Update documentation of struct re_pattern_buffer per public members.
20225         Uncomment documentation of equivalence class operators and
20226         collating symbol operators, since they are now implemented,
20227         Explain leftmost-longest matching in relation to alternatives.
20228         Tidy documentation of substring matching.
20229         Remove POSIX documentation, which is done better in
20230         glibc, and refer the reader there. Keep BSD API documentation, as
20231         that is not readily available elsewhere.
20232
20233 2010-09-07  Eric Blake  <eblake@redhat.com>
20234
20235         getopt: handle POSIXLY_CORRECT set but not exported
20236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20237         export state of POSIXLY_CORRECT, due to bash set -o posix.
20238         Reported by Dustin J. Mitchell.
20239
20240 2010-09-05  Bruno Haible  <bruno@clisp.org>
20241
20242         gnulib-tool: Highlight the changed options.
20243         * gnulib-tool (func_usage): Display the --import, --add-import,
20244         --remove-import explanations in bold font.
20245
20246 2010-09-06  Karl Berry  <karl@gnu.org>
20247
20248         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20249
20250 2010-09-05  Bruno Haible  <bruno@clisp.org>
20251
20252         uniwidth/width: Update comment.
20253         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20254         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20255
20256 2010-09-05  Bruno Haible  <bruno@clisp.org>
20257
20258         isinf, isnan: Relax license.
20259         * modules/isinf (License): Change from GPL to LGPL, with consent from
20260         Ben Pfaff.
20261         * modules/isnan (License): Likewise.
20262         Requested by Ludovic Courtès.
20263
20264 2010-09-04  Bruno Haible  <bruno@clisp.org>
20265
20266         gnulib-tool: Help migration from --import to --add-import or --update.
20267         * gnulib-tool: Emit a verbose error message when --import is used
20268         without any module name.
20269
20270 2010-09-04  Bruno Haible  <bruno@clisp.org>
20271
20272         Update doc about gnulib-tool.
20273         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20274         'gnulib-tool --update' in more detail.
20275         Reported by Eric Blake.
20276
20277 2010-09-04  Bruno Haible  <bruno@clisp.org>
20278
20279         gnulib-tool: Change --import. New options --add/remove-import.
20280         * gnulib-tool: New options --add-import, --remove-import.
20281         (func_usage): Document them.
20282         (have_associative): Define always.
20283         (func_import): In import mode, don't merge the specified settings with
20284         the cached settings. Implement remove-import mode.
20285         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20286         Explain when to use them versus --import.
20287         (Simple update): Use --add-import instead of --import.
20288         * NEWS: Mention the change.
20289
20290 2010-09-04  Bruno Haible  <bruno@clisp.org>
20291
20292         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20293         separate gnulib.mk.
20294
20295 2010-09-04  Bruno Haible  <bruno@clisp.org>
20296
20297         gnulib-tool: Don't talk about CVS any more.
20298         * gnulib-tool (func_usage, func_import): Write "version control"
20299         instead of CVS.
20300
20301 2010-09-04  Jim Meyering  <meyering@redhat.com>
20302
20303         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20304         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20305         false positives (whose names may be ill-chosen) when searching
20306         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20307         would cause a false-positive.
20308
20309         avoid coreutils "make distcheck" failure
20310         Coreutils tests with an absolute build directory name that contains
20311         a space.  Not quoting this directory name caused a failure.
20312         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20313         * tests/test-vc-list-files-cvs.sh: Likewise.
20314
20315 2010-09-04  Bruno Haible  <bruno@clisp.org>
20316
20317         gnulib-tool: Avoid error when run in a package without Makefile.am.
20318         * gnulib-tool: When collecting the m4dirs in a package that does not
20319         have a Makefile.am, eliminate those directories that contain no
20320         gnulib-cache.m4. Fix expression that counts these directories.
20321
20322 2010-09-04  Bruno Haible  <bruno@clisp.org>
20323
20324         update-copyright test: Improve output when perl is missing or too old.
20325         * tests/test-update-copyright.sh: Move test of Perl version down after
20326         the test whether Perl exists. Provide an explanation relating Perl's
20327         error message to Automake's SKIP: message.
20328
20329 2010-09-04  Bruno Haible  <bruno@clisp.org>
20330
20331         Don't augment PATH in TESTS_ENVIRONMENT.
20332         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20333         set abs_aux_dir instead of augmenting PATH.
20334         * modules/vc-list-files-tests (Makefile.am): Likewise.
20335         * tests/test-update-copyright.sh: Augment PATH here.
20336         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20337         path_prepend_.
20338         * tests/test-vc-list-files-git.sh: Likewise.
20339
20340 2010-09-04  Jim Meyering  <meyering@redhat.com>
20341
20342         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20343         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20344
20345 2010-09-04  Bruno Haible  <bruno@clisp.org>
20346
20347         strdup: Fix compilation error in C++ mode.
20348         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20349         the macro.
20350
20351 2010-09-04  Bruno Haible  <bruno@clisp.org>
20352
20353         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20354         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20355         macro into a function.
20356         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20357
20358 2010-09-04  Bruno Haible  <bruno@clisp.org>
20359
20360         Set PATH_SEPARATOR the same way autoconf does.
20361         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20362         the value of PATH_SEPARATOR the same way autoconf-generated configure
20363         scripts do.
20364         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20365         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20366
20367 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20368
20369         Set PATH_SEPARATOR the same way autoconf does.
20370         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20371         the same way autoconf-generated configure scripts do.
20372         * posix-modules: Likewise.
20373
20374 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20375
20376         hash: fix safe_hasher const typo
20377         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20378         const; otherwise, there is a type error later.
20379
20380 2010-09-02  Jim Meyering  <meyering@redhat.com>
20381
20382         test-update-copyright.sh: require perl 5.8.0
20383         * tests/test-update-copyright.sh: Require 5.8.0,
20384         which Tom G. Christensen has confirmed is adequate,
20385         while 5.6.1 is not.
20386
20387 2010-09-02  Eric Blake  <eblake@redhat.com>
20388
20389         tests: init.sh improvements for re-exec'ing with zsh
20390         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20391         -vx through shell re-exec.
20392         Reported by Tom G. Christensen.
20393
20394         wctype: fix typo in previous commit
20395         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20396         Reported by Ludovic Courtès.
20397
20398 2010-09-02  Jim Meyering  <meyering@redhat.com>
20399
20400         test-update-copyright.sh: skip test if Perl is too old
20401         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20402         Reported by Tom G. Christensen.
20403
20404 2010-09-02  Bruno Haible  <bruno@clisp.org>
20405
20406         wctype: Avoid compilation error on IRIX 6.5.30.
20407         * lib/wctype.in.h (iswblank): Declare with a replacement if
20408         REPLACE_ISWBLANK is set.
20409         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20410         declared. Set REPLACE_ISWBLANK.
20411         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20412         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20413         * doc/posix-headers/wctype.texi: Likewise.
20414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20415
20416 2010-09-01  Bruno Haible  <bruno@clisp.org>
20417
20418         New module 'socketlib'.
20419         * modules/socketlib: New file.
20420         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20421         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20422         * modules/sockets (Depends-on): Add socketlib.
20423         Suggested by Sam Steingold <sds@gnu.org>.
20424
20425 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20426
20427         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20428
20429         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20430         when one needs search access to a directory but not read access.
20431         On systems where it is available, it works in some cases where
20432         O_RDONLY does not, namely on directories that are searchable but
20433         not readable, and which need only to be searchable.  If O_SEARCH
20434         is not available, fall back to the traditional method of using
20435         O_RDONLY.
20436
20437         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20438         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20439         when opening a directory that needs only to be searchable.
20440         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20441         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20442         * lib/openat-proc.c (openat_proc_name): Likewise.
20443         * lib/openat.c (openat_needs_fchdir): Likewise.
20444         * lib/save-cwd.c (save_cwd): Likewise.
20445         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20446
20447 2010-08-28  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'host-cpu-c-abi'.
20450         * modules/host-cpu-c-abi: New file.
20451         * m4/host-cpu-c-abi.m4: New file, based on part of
20452         clisp/src/m4/general.m4.
20453         Requested by Sam Steingold <sds@gnu.org>.
20454
20455 2010-08-31  Eric Blake  <eblake@redhat.com>
20456         and Jim Meyering  <meyering@redhat.com>
20457
20458         hash: factor, and guard against misbehaving hasher function
20459         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20460         of table->hasher's return value.  Also protect against a hash value
20461         so large that adding it to table->bucket results in a NULL pointer.
20462         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20463         Use it in place of open-coded check-and-abort.
20464
20465 2010-08-30  Bruno Haible  <bruno@clisp.org>
20466
20467         hash: silence spurious clang warning
20468         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20469         Reported by Eric Blake.
20470
20471 2010-08-30  Eric Blake  <eblake@redhat.com>
20472
20473         strstr, memmem, strcasestr: avoid leaked shell message
20474         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20475         FreeBSD.
20476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20478
20479         tests: silence clang warning
20480         * tests/test-malloca.c (do_allocation): Avoid dead store.
20481
20482 2010-08-29  Bruno Haible  <bruno@clisp.org>
20483
20484         gettext: Fix recent mistake.
20485         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20486
20487 2010-08-29  Bruno Haible  <bruno@clisp.org>
20488
20489         selinux-h: Offer a --without-selinux option.
20490         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20491         --without-selinux was specified, skip all tests and define
20492         HAVE_SELINUX_SELINUX_H to 0.
20493         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20494         set LIB_SELINUX to empty.
20495         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20496         gl_LIBSELINUX. If --without-selinux was specified, replace
20497         selinux/context.h.
20498         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20499
20500 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20501             Bruno Haible  <bruno@clisp.org>
20502
20503         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20504         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20505         of HAVE_REALLOC.
20506         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20507         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20508         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20509         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20510
20511 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20512             Bruno Haible  <bruno@clisp.org>
20513
20514         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20515         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20516         HAVE_CALLOC.
20517         * lib/xmalloc.c: Update accordingly.
20518         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20519         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20520         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20521
20522 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20523             Bruno Haible  <bruno@clisp.org>
20524
20525         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20526         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20527         HAVE_MALLOC.
20528         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20529         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20530         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20531
20532 2010-08-29  Bruno Haible  <bruno@clisp.org>
20533
20534         Update modules list.
20535         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20536         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20537         (String handling <string.h>): Add astrxfrm.
20538         (File system functions): Add readlinkat.
20539
20540 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20541
20542         Tests for module 'realloc-gnu'.
20543         * modules/realloc-gnu-tests: New file.
20544         * tests/test-realloc-gnu.c: New file.
20545
20546         Tests for module 'calloc-gnu'.
20547         * modules/calloc-gnu-tests: New file.
20548         * tests/test-calloc-gnu.c: New file.
20549
20550         Tests for module 'malloc-gnu'.
20551         * modules/malloc-gnu-tests: New file.
20552         * tests/test-malloc-gnu.c: New file.
20553
20554 2010-08-28  Bruno Haible  <bruno@clisp.org>
20555
20556         Rename module 'realloc' -> 'realloc-gnu'.
20557         * modules/realloc-gnu: New file, copied from modules/realloc.
20558         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20559         obsolete.
20560         * modules/mgetgroups (Depends-on): Update.
20561         * doc/posix-functions/realloc.texi: Update.
20562         * NEWS: Mention the change.
20563
20564         Rename module 'calloc' -> 'calloc-gnu'.
20565         * modules/calloc-gnu: New file, copied from modules/calloc.
20566         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20567         obsolete.
20568         * doc/posix-functions/calloc.texi: Update.
20569         * NEWS: Mention the change.
20570
20571         Rename module 'malloc' -> 'malloc-gnu'.
20572         * modules/malloc-gnu: New file, copied from modules/malloc.
20573         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20574         obsolete.
20575         * modules/argp (Depends-on): Update.
20576         * modules/regex (Depends-on): Update.
20577         * doc/posix-functions/malloc.texi: Update.
20578         * NEWS: Mention the change.
20579
20580 2010-08-28  Eric Blake  <eblake@redhat.com>
20581
20582         pread, pwrite: add missing dependency
20583         * modules/pread (Depends-on): Add extensions.
20584         * modules/pwrite (Depends-on): Likewise.
20585
20586 2010-08-28  Bruno Haible  <bruno@clisp.org>
20587
20588         unistr/u*-strchr: Fix tests dependencies.
20589         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20590         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20591         Reported by Ian Beckwith <ianb@erislabs.net>.
20592
20593 2010-08-28  Bruno Haible  <bruno@clisp.org>
20594
20595         read-file: Don't occupy too much unused memory.
20596         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20597
20598 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20599             Eric Blake  <eblake@redhat.com>
20600             Bruno Haible  <bruno@clisp.org>
20601
20602         read-file: Avoid memory reallocations with regular files.
20603         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20604         (fread_file): With regular files, use the remaining length as the
20605         initial buffer size.  Check against overflow.
20606         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20607         sys_stat.
20608
20609 2010-08-28  Bruno Haible  <bruno@clisp.org>
20610
20611         ftello: Relax license.
20612         * modules/ftello (License): Relax to LGPLv2+.
20613         Reported by Eric Blake.
20614
20615 2010-08-28  Bruno Haible  <bruno@clisp.org>
20616
20617         Avoid relocwrapper link errors due to gnulib replacement functions.
20618         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20619         function.
20620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20621
20622 2010-08-28  Bruno Haible  <bruno@clisp.org>
20623
20624         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20625         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20626         defined.
20627         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20628         Suggested by Eric Blake.
20629
20630 2010-08-28  Bruno Haible  <bruno@clisp.org>
20631
20632         sys_socket, netdb: Ensure socklen_t gets defined.
20633         * modules/sys_socket (Depends-on): Add socklen.
20634         * modules/netdb (Depends-on): Likewise.
20635         * modules/getaddrinfo (Depends-on): Remove socklen.
20636         * modules/getsockopt (Depends-on): Likewise.
20637         * modules/setsockopt (Depends-on): Likewise.
20638         * tests/test-sys_socket.c: Check that socklen_t is defined.
20639         * tests/test-netdb.c: Likewise.
20640         * m4/socklen.m4: Update comments.
20641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20642
20643 2010-08-27  Eric Blake  <eblake@redhat.com>
20644
20645         login_tty: add missing dependency
20646         * modules/login_tty (Depends-on): Add pty.
20647
20648 2010-08-26  Eric Blake  <eblake@redhat.com>
20649
20650         lib-symbol-versions: fix m4 quoting
20651         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20652         format for AC_LINK_IFELSE.
20653
20654         glob: fix compile test
20655         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20656
20657         btowc: fix missing file
20658         * modules/btowc (Files): Also ship locale-fr.m4.
20659
20660         lseek: fix link test
20661         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20662         AC_LINK_IFELSE.
20663
20664         include_next: silence autoconf 2.68 warning
20665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20666         AC_COMPILE_IFELSE as special.
20667         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20668         autoconf < 2.68.
20669
20670         acl: fix compilation test
20671         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20672         AC_COMPILE_IFELSE.
20673
20674 2010-08-26  Bruno Haible  <bruno@clisp.org>
20675
20676         Modernize AC_TRY_RUN invocations.
20677         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20678         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20679         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20680         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20681         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20682         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20686         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20688         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20689         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20692         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20693         gl_MBRLEN_NUL_RETVAL): Likewise.
20694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20695         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20696         Likewise.
20697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20699         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20700         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20701         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20702         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20703         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20704         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20705         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20706         Likewise.
20707         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20708         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20710         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20712         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20713         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20714         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20715         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20717
20718 2010-08-26  Bruno Haible  <bruno@clisp.org>
20719
20720         Modernize AC_TRY_LINK invocations.
20721         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20722         AC_TRY_LINK.
20723         * m4/argp.m4 (gl_ARGP): Likewise.
20724         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20725         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20726         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20727         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20729         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20730         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20731         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20732         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20733         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20735         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20736         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20737         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20738         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20739         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20740         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20741         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20742         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20743         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20744         Likewise.
20745         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20746         Likewise.
20747         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20748         Likewise.
20749         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20751         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20752         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20753         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20754         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20755         * m4/servent.m4 (gl_SERVENT): Likewise.
20756         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20757         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20759         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20760         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20761         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20763         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20764         * modules/tsearch-tests (configure.ac): Likewise.
20765
20766 2010-08-26  Bruno Haible  <bruno@clisp.org>
20767
20768         Modernize AC_TRY_COMPILE invocations.
20769         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20770         AC_TRY_COMPILE.
20771         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20772         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20773         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20774         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20775         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20776         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20778         * m4/lock.m4 (gl_LOCK): Likewise.
20779         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20780         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20781         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20783         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20784         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20785         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20787         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20788         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20789         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20790         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20791         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20792         extraneous semicolon.
20793
20794 2010-08-26  Jim Meyering  <meyering@redhat.com>
20795
20796         stat-time: relax license LGPL
20797         * modules/stat-time (License): Change from GPL to LGPL,
20798         with consent from all contributors, for use in libguile.
20799         Requested by Ludovic Courtès.
20800
20801 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20802
20803         poll: return immediately on POLLHUP.
20804         * lib/poll.c (poll): Always set timeout before wait_timeout is
20805         computed.
20806
20807 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20808
20809         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20810         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20811         rmdir ("dir/.//"), unlinkat.
20812
20813 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20814
20815         stdbool: avoid spurious failure with modern xlc
20816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20817
20818 2010-08-24  Bruno Haible  <bruno@clisp.org>
20819
20820         getloadavg: simplify code
20821         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20822         gl_have_func. Update comments.
20823
20824 2010-08-24  Eric Blake  <eblake@redhat.com>
20825
20826         getloadavg: don't define SVR4 on cygwin
20827         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20828         only define SVR4 when -lkvm is required.
20829         Reported by Yaakov Selkowitz.
20830
20831 2010-08-24  Bruno Haible  <bruno@clisp.org>
20832
20833         priv-set: fix comment
20834         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20835
20836 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20837
20838         priv-set: fix comments
20839         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20840         to match code, as suggested by David Bartley in:
20841         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20842
20843 2010-08-23  Eric Blake  <eblake@redhat.com>
20844
20845         stdbool: avoid rejecting clang
20846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20847         * tests/test-stdbool.c: Enable more tests if using the system
20848         <stdbool.h> instead of the gnulib replacement.
20849         (main): Move xlc bug test to a runtime test for all compilers.
20850         Reported by Anders Kaseorg.
20851
20852         argz: fix shell quoting issue
20853         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20854         Reported by Charles Wilson.
20855
20856 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20857             Erik Faye-Lund <kusmabite@gmail.com>
20858
20859         poll, select: handle ERROR_BROKEN_PIPE.
20860         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20861         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20862         * lib/select.c (win32_compute_revents): Do not mark a pipe
20863         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20864
20865 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20866
20867         fts: allow compilation with C++
20868         * lib/fts_.h: Specify extern "C" linkage with C++.
20869
20870 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20871
20872         Fix gnulib-tool sed script de-commentation for AIX sed.
20873         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20874         sed.
20875
20876 2010-08-17  Eric Blake  <eblake@redhat.com>
20877
20878         test-stddef: test for (some) offsetof bugs
20879         * tests/test-stddef.c: Enhance test to ensure correct type of
20880         offsetof.
20881         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20882         that we are not fixing at this time.
20883
20884 2010-08-15  Bruno Haible  <bruno@clisp.org>
20885
20886         stpncpy: Allow stpncpy to be defined as a macro.
20887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20888         if it's already correctly declared.
20889         * lib/string.in.h (stpncpy): Undefine before redefining.
20890         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20891
20892 2010-08-14  Bruno Haible  <bruno@clisp.org>
20893
20894         Rename module 'memxfrm' to 'amemxfrm'.
20895         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20896         (amemxfrm): Renamed from memxfrm.
20897         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20898         (amemxfrm): Renamed from memxfrm.
20899         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20900         * NEWS: Mention the change.
20901         * MODULES.html.sh (String handling <string.h>): Update.
20902         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20903         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20904         * lib/unicase/u16-casexfrm.c: Likewise.
20905         * lib/unicase/u32-casexfrm.c: Likewise.
20906         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20907         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20908         * lib/uninorm/u16-normxfrm.c: Likewise.
20909         * lib/uninorm/u32-normxfrm.c: Likewise.
20910         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20911         memxfrm.
20912         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20913         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20914         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20915         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20916         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20917         Suggested by Paul Eggert.
20918
20919 2010-08-14  Bruno Haible  <bruno@clisp.org>
20920
20921         Tests for module 'astrxfrm'.
20922         * modules/astrxfrm-tests: New file.
20923         * tests/test-astrxfrm.c: New file.
20924
20925         New module 'astrxfrm'.
20926         * lib/astrxfrm.h: New file.
20927         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20928         * modules/astrxfrm: New file.
20929
20930 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20931
20932         regex: Tweak doc.
20933         * doc/regex.texi (Overview): Don't mention regex.c.
20934         (GNU Regular Expression Compiling): Likewise.
20935         (Match-end-of-line Operator): Mention 'not_eol'.
20936
20937 2010-08-14  Brian Gough  <bjg@gnu.org>
20938             Bruno Haible  <bruno@clisp.org>
20939
20940         git-merge-changelog: add doc relating to use with bzr and hg.
20941         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20942
20943 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20944
20945         pthread: fix pthread.h creation for srcdir != builddir
20946         * modules/pthread (Makefile.am): Fix the rule to work also in a
20947         non-srcdir build.
20948
20949 2010-08-13  Karl Berry  <karl@gnu.org>
20950
20951         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20952         * doc/posix-*/*: force line break before @url of POSIX
20953         specifications.
20954         Suggested by Werner Lemberg.
20955
20956 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20957
20958         strtod: fix const diagnostic
20959         * lib/strtod.c (strtod): Don't assign const char * to char *,
20960         as this elicits a warning from GCC when warnings are enabled.
20961
20962 2010-08-10  Pádraig Brady <P@draigbrady.com>
20963         and Eric Blake  <eblake@redhat.com>
20964
20965         copy-acl: ignore ENOTSUP on HP-UX
20966         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20967         so that it is available for HP-UX.
20968         * lib/copy-acl.c (qcopy_acl): Use it.
20969         Reported by Patrick M. Callahan.
20970
20971 2010-08-10  Eric Blake  <eblake@redhat.com>
20972
20973         open, chown: relax license
20974         * modules/open (License): Change to LGPLv2+, with consent by all
20975         authors, for use in augeas.
20976         * modules/chown (License): Likewise.
20977         * modules/lchown (Likewise): Likewise.
20978         Requested by Adam Stokes.
20979
20980 2010-08-09  Karl Berry  <karl@gnu.org>
20981
20982         * build-aux/ar-lib: new file, import from Automake.
20983         * config/srclist.txt: autocheck for updates.
20984
20985 2010-08-09  Eric Blake  <eblake@redhat.com>
20986
20987         readlinkat: adjust client modules
20988         * modules/areadlinkat (Depends-on): Use readlinkat, not
20989         symlinkat.
20990         * modules/areadlinkat-with-size (Depends-on): Likewise.
20991
20992         mknod: be more vocal about danger of running tests as root
20993         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20994         root, since that is just asking for problems.
20995         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20996
20997         readlinkat: split into its own module
20998         * modules/symlinkat: Split readlinkat...
20999         * modules/readlinkat: ...into separate module.
21000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21001         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21002         * lib/symlinkat.c (readlinkat): Move...
21003         * lib/readlinkat.c: ...into new file.
21004         * modules/symlinkat-tests: Split readlinkat test...
21005         * modules/readlinkat-tests: ...into separate module.
21006         * tests/test-symlinkat.c: Split...
21007         * tests/test-readlinkat.c: ...into new file.
21008         * NEWS: Document the split.
21009         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21010         * lib/unistd.in.h (readlinkat): Likewise.
21011         Suggested by Bruno Haible.
21012
21013 2010-08-08  Bruno Haible  <bruno@clisp.org>
21014
21015         memxfrm: Speed up.
21016         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21017         that usually only one call to strxfrm is necessary for each string
21018         part.
21019         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21020
21021 2010-08-07  Karl Berry  <karl@gnu.org>
21022
21023         * doc/posix-headers/limits.texi,
21024         * doc/posix-functions/malloc.texi,
21025         * doc/posix-functions/strsignal.texi: missing @item.
21026         * doc/ld-version-script.texi: spurious leading i.
21027         * doc/regex.texi (Interval Operators): no commas inside @var.
21028
21029 2010-08-01  Bruno Haible  <bruno@clisp.org>
21030
21031         Integrate the regex documentation.
21032         * doc/gnulib.texi: Define 'cn' index.
21033         (Regular expressions): New a chapter that includes regex.texi and
21034         regexprops-generic.texi.
21035         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21036         syntax.
21037
21038         Whitespace cleanup.
21039         * doc/regex.texi: Remove trailing spaces.
21040
21041         Add regex documentation.
21042         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21043         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21044         Written by Kathy A. Hargreaves and Karl Berry.
21045
21046 2010-08-01  Bruno Haible  <bruno@clisp.org>
21047
21048         link: Update documentation.
21049         * doc/posix-functions/link.texi: Update regarding Solaris.
21050
21051 2010-07-31  Bruno Haible  <bruno@clisp.org>
21052
21053         Update modules list.
21054         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21055         (String handling <string.h>): Add memcmp2, memxfrm.
21056         (Container data structures): Add xlist, xsublist, xoset.
21057         (Core language properties): Add alignof, unused-parameter.
21058         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21059         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21060         (Unibyte characters <ctype.h>): New section.
21061         (String handling <string.h>): New section.
21062         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21063         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21064         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21065         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21066         tan, tanh, tanl, y0, y1, yn.
21067         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21068         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21069         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21070         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21071         unlockpt, vdprintf, vdprintf-posix.
21072         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21073         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21074         xconcat-filename.
21075         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21076         getdtablesize, pipe2, pipe2-safer.
21077         (Security): New section.
21078         (Networking functions): Add accept4.
21079         (Signal handling): Add sigpipe.
21080         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21081         mbmemcasecoll.
21082         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21083         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21084         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21085         pipe-filter-ii.
21086         (Misc): Add argp-version-etc, login_tty, parse-duration.
21087
21088 2010-07-31  Bruno Haible  <bruno@clisp.org>
21089
21090         Improve doc in MODULES.html.
21091         * modules/linkat (Description): Add the word "function".
21092         * modules/mkfifo (Description): Likewise.
21093         * modules/mknod (Description): Likewise.
21094         * modules/remove (Description): Likewise.
21095         * modules/renameat (Description): Likewise.
21096         * modules/stat (Description): Likewise.
21097         * modules/symlink (Description): Likewise.
21098         * modules/unlink (Description): Likewise.
21099
21100 2010-07-31  Bruno Haible  <bruno@clisp.org>
21101
21102         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21103         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21104         option --enable/disable-c++ instead of --enable/disable-cxx.
21105         * NEWS: Mention the change.
21106
21107 2010-07-31  Bruno Haible  <bruno@clisp.org>
21108
21109         readlink, areadlink: Relax test a bit.
21110         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21111         alternative to ENOTDIR.
21112         * tests/test-areadlink.h (test_areadlink): Likewise.
21113         Reported by Rainer Tammer.
21114
21115 2010-07-31  Bruno Haible  <bruno@clisp.org>
21116
21117         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21118         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21119         character, perform the search using U_STRCHR.
21120         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21121         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21122         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21123         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21124         Suggested by Paolo Bonzini.
21125
21126 2010-07-31  Bruno Haible  <bruno@clisp.org>
21127
21128         unistr/u*-strstr: Fix dependencies.
21129         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21130         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21131         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21132
21133 2010-07-31  Bruno Haible  <bruno@clisp.org>
21134
21135         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21136         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21137         the beginning of the loop.
21138         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21139         cases in 'switch' statement.
21140
21141         unistr/u8-strchr: Fix several bugs.
21142         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21143         the string. When not found, return NULL, not a pointer near the end.
21144
21145         More tests for unistr/u8-strchr.
21146         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21147         that the function does not read past the first occurrence of the byte
21148         being searched.
21149         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21150         * tests/unistr/test-u16-strchr.c (main): New function.
21151         * tests/unistr/test-u32-strchr.c (main): New function.
21152
21153 2010-07-31  Bruno Haible  <bruno@clisp.org>
21154
21155         posix-modules: Ignore backup files of documentation files.
21156         * posix-modules: grep only through files named *.texi.
21157
21158 2010-07-31  Bruno Haible  <bruno@clisp.org>
21159
21160         symlinkat: Fix documentation.
21161         * doc/posix-functions/readlinkat.texi: Fix module name.
21162
21163 2010-07-31  Bruno Haible  <bruno@clisp.org>
21164
21165         fchownat: Replace also when chown has the trailing slash bug.
21166         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21167         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21168         introduced on 2010-04-10.
21169         Reported by Rainer Tammer.
21170
21171 2010-07-31  Bruno Haible  <bruno@clisp.org>
21172
21173         linkat: Work around AIX 7.1 bug.
21174         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21175         whether linkat handles trailing slash correctly. If not, replace linkat
21176         and define LINKAT_TRAILING_SLASH_BUG.
21177         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21178         check whether (fd1,file1) points to a directory if file1 or file2 ends
21179         in a slash. Code taken from lib/link.c.
21180         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21181         Reported by Rainer Tammer.
21182
21183 2010-07-31  Bruno Haible  <bruno@clisp.org>
21184
21185         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21186         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21187         This disables an xlc optimization that was causing wrong test results.
21188         Reported by Rainer Tammer.
21189
21190 2010-07-31  Bruno Haible  <bruno@clisp.org>
21191
21192         iconv: Work around AIX 6.1..7.1 bug.
21193         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21194         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21195         cross-compiling, guess no on all versions of AIX.
21196         Reported by Rainer Tammer.
21197
21198 2010-07-31  Bruno Haible  <bruno@clisp.org>
21199
21200         readlink: Relax test a bit.
21201         * tests/test-readlink.h (test_readlink): Allow different errno value
21202         when readlink is called with a file name that ends in / and refers to
21203         a file.
21204         Suggested by Eric Blake.
21205         Reported by Rainer Tammer.
21206
21207 2010-07-31  Bruno Haible  <bruno@clisp.org>
21208
21209         copysign: Does not require -lm on glibc systems.
21210         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21211         gl_COMMON_DOUBLE_MATHFUNC.
21212         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21213
21214 2010-07-31  Bruno Haible  <bruno@clisp.org>
21215
21216         duplocale: Work around AIX 7.1 bug.
21217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21218         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21219         * lib/duplocale.c (rpl_duplocale): Update comment.
21220         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21221         Reported by Rainer Tammer.
21222
21223 2010-07-30  Bruno Haible  <bruno@clisp.org>
21224
21225         dirfd: Avoid link error on AIX 7.1.
21226         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21227         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21228         exist, set REPLACE_DIRFD.
21229         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21230         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21231         * doc/posix-functions/dirfd.texi: Update.
21232         Reported by Rainer Tammer.
21233
21234 2010-07-30  Eric Blake  <eblake@redhat.com>
21235
21236         strtod: next round of AIX fixes
21237         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21238         exponent.
21239         * tests/test-strtod.c (main): Enhance tests.
21240         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21241         Reported by Rainer Tammer.
21242
21243         futimens: fix configure check
21244         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21245         Reported by Bruno Haible.
21246
21247 2010-07-30  Bruno Haible  <bruno@clisp.org>
21248
21249         getline: Update regarding AIX.
21250         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21251         Reported by Rainer Tammer.
21252
21253 2010-07-30  Bruno Haible  <bruno@clisp.org>
21254
21255         wcwidth: Drop replacement on AIX 7.
21256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21257         AIX 7.
21258         Reported by Rainer Tammer.
21259
21260 2010-07-30  Bruno Haible  <bruno@clisp.org>
21261
21262         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21264         a 'char *'.
21265         Reported by Rainer Tammer.
21266
21267 2010-07-30  Bruno Haible  <bruno@clisp.org>
21268
21269         unlink: Update regarding AIX.
21270         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21271         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21272         Reported by Rainer Tammer.
21273
21274 2010-07-30  Bruno Haible  <bruno@clisp.org>
21275
21276         symlink: Update regarding AIX.
21277         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21278         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21279         Reported by Rainer Tammer.
21280
21281 2010-07-30  Bruno Haible  <bruno@clisp.org>
21282
21283         strndup: Update regarding AIX.
21284         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21285         AIX 7.
21286         Reported by Rainer Tammer.
21287
21288 2010-07-30  Bruno Haible  <bruno@clisp.org>
21289
21290         stat: Update regarding AIX.
21291         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21292         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21293         Reported by Rainer Tammer.
21294
21295 2010-07-30  Bruno Haible  <bruno@clisp.org>
21296
21297         truncl: Fix autoconf test.
21298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21299         whether truncl works.
21300         Reported by Rainer Tammer.
21301
21302 2010-07-30  Bruno Haible  <bruno@clisp.org>
21303
21304         round: Update regarding AIX.
21305         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21306         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21307         Reported by Rainer Tammer.
21308
21309 2010-07-30  Bruno Haible  <bruno@clisp.org>
21310
21311         rename: Update regarding AIX.
21312         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21313         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21314         Reported by Rainer Tammer.
21315
21316 2010-07-30  Bruno Haible  <bruno@clisp.org>
21317
21318         printf.m4: Update regarding AIX.
21319         * m4/printf.m4: Update comments regarding AIX.
21320         Reported by Rainer Tammer.
21321
21322 2010-07-30  Bruno Haible  <bruno@clisp.org>
21323
21324         iconv: Update regarding AIX.
21325         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21326         AIX 7.
21327         Reported by Rainer Tammer.
21328
21329 2010-07-30  Bruno Haible  <bruno@clisp.org>
21330
21331         getopt: Update regarding AIX.
21332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21333         no on AIX.
21334         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21335         Reported by Rainer Tammer.
21336
21337 2010-07-30  Bruno Haible  <bruno@clisp.org>
21338
21339         ldexpl; Update regarding AIX.
21340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21341         on AIX 7.
21342         Reported by Rainer Tammer.
21343
21344 2010-07-30  Bruno Haible  <bruno@clisp.org>
21345
21346         frexpl: Update regarding AIX.
21347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21348         on AIX 7.
21349         Reported by Rainer Tammer.
21350
21351 2010-07-30  Bruno Haible  <bruno@clisp.org>
21352
21353         open, fopen: Update regarding AIX.
21354         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21355         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21356         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21357         * doc/posix-functions/fopen.texi: Likewise.
21358         Reported by Rainer Tammer.
21359
21360 2010-07-30  Bruno Haible  <bruno@clisp.org>
21361
21362         chown: Update doc regarding AIX.
21363         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21364         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21365         Reported by Rainer Tammer.
21366
21367 2010-07-30  Eric Blake  <eblake@redhat.com>
21368
21369         strtod: fix bug in replacement function on AIX
21370         * lib/strtod.c (strtod): Special case broken "0x" parse in
21371         underlying strtod.
21372         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21373         * doc/posix-functions/strtod.texi (strtod): Likewise.
21374         Reported by Rainer Tammer.
21375
21376 2010-07-30  Bruno Haible  <bruno@clisp.org>
21377
21378         mbrlen: Fix cross-compilation guess for AIX.
21379         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21380         guess. Leftover from 2008-12-22.
21381
21382 2010-07-30  Bruno Haible  <bruno@clisp.org>
21383
21384         mbrtowc: Fix cross-compilation guess for AIX.
21385         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21386         guess. Leftover from 2008-12-21.
21387
21388 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21389
21390         init.sh: work around trap limitation of some shells
21391         * tests/init.sh (setup_): Move exit trap outside of shell function.
21392
21393 2010-07-29  Eric Blake  <eblake@redhat.com>
21394
21395         strtod: aid debugging
21396         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21397         understanding why strtod is rejected.
21398
21399 2010-07-28  Bruno Haible  <bruno@clisp.org>
21400
21401         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21402         * lib/unistr/u8-chr.c: Include <string.h>.
21403         * tests/unistr/test-u8-chr.c: Likewise.
21404         * tests/unistr/test-u16-chr.c: Likewise.
21405         * tests/unistr/test-u32-chr.c: Likewise.
21406         * tests/unistr/test-u8-strchr.c: Likewise.
21407         * tests/unistr/test-u16-strchr.c: Likewise.
21408         * tests/unistr/test-u32-strchr.c: Likewise.
21409         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21410         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21411         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21412         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21413
21414 2010-07-28  Bruno Haible  <bruno@clisp.org>
21415
21416         Use spaces for indentation, not tabs.
21417         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21418
21419 2010-07-27  Bruno Haible  <bruno@clisp.org>
21420
21421         mbspcasecmp: Fix function specification.
21422         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21423         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21424         Reported by Eric Blake <eblake@redhat.com>.
21425
21426 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21427
21428         timespec: use cast and not conditional, as truncation isn't possible
21429         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21430         instead of a conditional.  Comment about the situation in more detail.
21431         This undoes most of the 2009-10-29 patch.
21432
21433 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21434
21435         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21436         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21437         * lib/unistr/u8-strchr.c: Likewise.
21438         * modules/unistr/u8-chr: Depend on memchr.
21439
21440         unistr/u*-strchr: add tests
21441         * modules/unistr/u8-strchr-tests: New file.
21442         * modules/unistr/u16-strchr-tests: New file.
21443         * modules/unistr/u32-strchr-tests: New file.
21444         * tests/unistr/test-strchr.h: New file.
21445         * tests/unistr/test-u8-strchr.c: New file.
21446         * tests/unistr/test-u16-strchr.c: New file.
21447         * tests/unistr/test-u32-strchr.c: New file.
21448
21449         unistr/u*-chr: test multibyte sequences more
21450         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21451         test vector.
21452         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21453         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21454         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21455
21456         unistr/u*-chr: test multibyte sequences
21457         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21458
21459         unistr/u*-chr: prepare for multibyte tests
21460         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21461         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21462         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21463         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21464         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21465         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21466
21467 2010-07-18  Bruno Haible  <bruno@clisp.org>
21468
21469         unistr/u8-strchr: Optimize non-ASCII argument case.
21470         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21471         because the first byte often matches anyway.
21472         Reported by Pádraig Brady <P@draigbrady.com>.
21473
21474 2010-07-15  Karl Berry  <karl@gnu.org>
21475
21476         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21477
21478 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21479
21480         getcwd: on Solaris, work better if ancestors are inaccessible
21481         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21482         buffer and size, try again with a large buffer.  This works better
21483         on Solaris, since its getcwd succeeds even if the path to the root
21484         is inaccessible, and this is helpful in common cases such as .zfs
21485         hidden directories.  Problem reported by J Chapman Flack in
21486         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21487         Use system getcwd if it's declared, not merely if it's partly
21488         working; use the partly-working test only to avoid needless effort
21489         if the system getcwd fails.
21490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21491         comment that was already obsolete and is now even more obsolete.
21492         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21493         now might call strdup.
21494
21495 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21496
21497         pthread: Add enough so that coreutils/src/sort.c compiles.
21498         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21499         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21500         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21501         Include <sys/types.h>, in case it defines pthread_t.
21502         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21503         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21504         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21505         (pthread_rwlockattr_t, pthread_spinlock_t):
21506         New typedefs, if HAVE_PTHREAD_T is not defined.
21507         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21508         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21509         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21510         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21511         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21512         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21513         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21514         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21515         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21516         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21517         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21518         New macros.
21519         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21520         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21521         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21522         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21523         (pthread_spin_unlock): New dummy functions.
21524         (pthread_create): Return EAGAIN; don't set errno.
21525         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21526         require AC_C_INLINE.
21527         * modules/pthread (Depends-on): Add sched, time.
21528         (pthread.h): Use AM_V_GEN.
21529
21530 2010-07-13  Bruno Haible  <bruno@clisp.org>
21531
21532         striconveh: Don't malloc memory if the result buffer is sufficient.
21533         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21534         buffer if its size is sufficient.
21535         Reported by Ludovic Courtès <ludo@gnu.org>.
21536
21537 2010-07-13  Bruno Haible  <bruno@clisp.org>
21538
21539         strtod: Add safety check.
21540         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21541
21542 2010-07-12  Bruno Haible  <bruno@clisp.org>
21543
21544         Unify tests that set gl_cv_func_ldexpl_no_libm.
21545         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21546         gl_FUNC_LDEXPL.
21547         (gl_FUNC_LDEXPL): Invoke it.
21548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21549
21550 2010-07-12  Bruno Haible  <bruno@clisp.org>
21551
21552         Unify tests that set gl_cv_func_ldexp_no_libm.
21553         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21554         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21555         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21556         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21557         * modules/strtod (Files): Add m4/ldexp.m4.
21558
21559 2010-07-12  Bruno Haible  <bruno@clisp.org>
21560
21561         Unify tests that set gl_cv_func_frexpl_no_libm.
21562         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21563         gl_FUNC_FREXPL_NO_LIBM.
21564         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21566
21567 2010-07-12  Bruno Haible  <bruno@clisp.org>
21568
21569         Unify tests that set gl_cv_func_frexp_no_libm.
21570         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21571         gl_FUNC_FREXP_NO_LIBM.
21572         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21573         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21574
21575 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21576
21577         memcoll: clarify sizes versus lengths, document better, and tweak perf
21578         * lib/memcoll.c (strcoll_loop, memcoll0):
21579         Improve quality of descriptive comments.  Name variables
21580         consistently as to whether they are lengths (which do not include
21581         terminating null) versus sizes (which do).
21582         * lib/xmemcoll.c (xmemcoll0): Likewise.
21583         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21584         returned when s1size == 0; this is easier to compile and saves
21585         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21586
21587 2010-07-12  Bruno Haible  <bruno@clisp.org>
21588
21589         Tests for module '_Exit'.
21590         * modules/_Exit-tests: New file.
21591         * tests/test-_Exit.sh: New file.
21592         * tests/test-_Exit.c: New file.
21593
21594         New module '_Exit'.
21595         * lib/stdlib.in.h (__attribute__): New macro.
21596         (_Exit): New declaration.
21597         * lib/_Exit.c: New file.
21598         * m4/_Exit.m4: New file.
21599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21600         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21601         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21602         * modules/_Exit: New file.
21603         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21604         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21605
21606 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21607
21608         strtod: make it more-accurate typically, and don't require libm
21609         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21610         Include limits.h.  Don't include string.h.
21611         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21612         (locale_isspace): New function, so that no casts are needed to
21613         check whether *s is a space.
21614         (ldexp): Provide an unused dummy if not available.
21615         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21616         (strtod): Use them.  This implementation prefers to use the
21617         underlying strtod if available, falling back on our own code
21618         only to fix known bugs.  This is more likely to produce an
21619         accurate result.  Also, it avoids the use of libm functions.
21620         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21621         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21622         was absent, but it caused a test failure with coreutils.
21623         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21624         with libm.
21625         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21626         * modules/strtod-tests (Makefile.am): Likewise.
21627
21628 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21629             Bruno Haible  <bruno@clisp.org>
21630
21631         unistr/u8-strchr: Optimize ASCII argument case.
21632         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21633
21634 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21635
21636         (x)memcoll: minor tweaks
21637         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21638         is after the type that it qualifies.
21639         (memcoll0): Likewise.
21640         * lib/memcoll.h (memcoll0): Likewise.
21641         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21642         * lib/xmemcoll.h (xmemcoll0): Likewise.
21643         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21644         differs from memcoll in that the NUL byte is part of the argument.
21645         Omit the abort-checks, as performance is a real issue here.  Plus,
21646         the checks were wrong anyway (an off-by-one error).  Omit local
21647         variable 'diff', as it's a bit clearer that way.
21648         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21649         no longer needed.
21650
21651 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21652
21653         (x)memcoll: speedup when input is known to be NUL delimited
21654         * lib/memcoll.c: Include stdlib.
21655         (memcoll0): New function.
21656         (strcoll_loop): New function, refactored for use in both memcoll
21657         and memcoll0.
21658         * lib/memcoll.h (memcoll0): Add prototype.
21659         * lib/xmemcoll.c (xmemcoll0): New function.
21660         (collate_error): New function, refactored for use in both xmemcoll
21661         and xmemcoll0.
21662         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21663         * m4/memcoll.m4: add inline invocation.
21664
21665 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21666
21667         * build-aux/bootstrap: Remove any local translations
21668         from the translation project synchronization directory,
21669         so that local only translations are not distributed.
21670
21671 2010-07-04  Bruno Haible  <bruno@clisp.org>
21672
21673         fsusage: Clarify which code applies to which platforms.
21674         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21675         platform.
21676         * lib/fsusage.c (get_fs_usage): Likewise.
21677
21678 2010-07-04  Bruno Haible  <bruno@clisp.org>
21679
21680         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21681         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21682         Reported by Martin Lambers <marlam@marlam.de>.
21683
21684 2010-07-04  Jim Meyering  <meyering@redhat.com>
21685
21686         hash: once again explicitly disallow insertion of NULL
21687         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21688         inserting a NULL pointer cannot work with these functions.
21689         Add a comment with details.
21690         This reverts part of the 2010-07-01 commit, 5bef1a35
21691         "hash: extend module to deal with non-pointer keys".
21692
21693 2010-07-01  Bruno Haible  <bruno@clisp.org>
21694
21695         stdbool: Update doc.
21696         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21697         Info from Christian Weisgerber <naddy@mips.inka.de>.
21698
21699 2010-07-01  Jim Meyering  <meyering@redhat.com>
21700
21701         hash: extend module to deal with non-pointer keys
21702         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21703         but that allows insertion of non-pointer entries.
21704         Do not disallow an ENTRY value of NULL.
21705         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21706         * lib/hash.h (hash_insert0): Declare.
21707
21708 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21709
21710         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21711         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21712         not present (i.e. with autoconf 2.59 and when using gettextize, not
21713         gnulib), require AC_GNU_SOURCE instead.
21714
21715 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21716
21717         idpriv-drop: Fix tests.
21718         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21719         not to the test-idpriv-droptemp program.
21720
21721 2010-06-29  Bruno Haible  <bruno@clisp.org>
21722
21723         string: Fix syntax error with g++ 2.96.
21724         * lib/string.in.h (__pure__): Remove definition.
21725         (_GL_ATTRIBUTE_PURE): New macro.
21726         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21727         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21728         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21729
21730 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21731
21732         unitypes: Fix bug introduced on 2010-05-18.
21733         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21734
21735 2010-06-22  Eric Blake  <eblake@redhat.com>
21736
21737         memmem: slight optimization
21738         * lib/str-two-way.h (critical_factorization): Update comments.
21739         Reduce work during factorization phase.
21740         Reported by Carlos Bueno <carlos@bueno.org>.
21741
21742 2010-06-21  Bruno Haible  <bruno@clisp.org>
21743
21744         Fix HAVE_CALLOC_POSIX misnomer.
21745         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21746         !HAVE_CALLOC_POSIX.
21747         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21748         HAVE_CALLOC_POSIX.
21749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21750         instead of HAVE_CALLOC_POSIX.
21751         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21752         HAVE_CALLOC_POSIX.
21753
21754         Use modern idiom for calloc() replacement.
21755         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21756         AC_FUNC_CALLOC.
21757         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21758         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21759         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21760         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21761         (gl_REPLACE_CALLOC): New macro.
21762
21763 2010-06-21  Bruno Haible  <bruno@clisp.org>
21764
21765         Fix HAVE_REALLOC_POSIX misnomer.
21766         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21767         !HAVE_REALLOC_POSIX.
21768         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21769         HAVE_REALLOC_POSIX.
21770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21771         instead of HAVE_REALLOC_POSIX.
21772         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21773         HAVE_REALLOC_POSIX.
21774
21775         Use modern idiom for realloc() replacement.
21776         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21777         AC_FUNC_REALLOC.
21778         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21779         Autoconf's AC_FUNC_REALLOC.
21780         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21781         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21782         (gl_REPLACE_REALLOC): New macro.
21783         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21784
21785 2010-06-21  Bruno Haible  <bruno@clisp.org>
21786
21787         Fix HAVE_MALLOC_POSIX misnomer.
21788         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21789         !HAVE_MALLOC_POSIX.
21790         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21791         HAVE_MALLOC_POSIX.
21792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21793         instead of HAVE_MALLOC_POSIX.
21794         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21795         HAVE_MALLOC_POSIX.
21796
21797         Use modern idiom for malloc() replacement.
21798         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21799         AC_FUNC_MALLOC.
21800         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21801         Autoconf's AC_FUNC_MALLOC.
21802         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21803         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21804         (gl_REPLACE_MALLOC): New macro.
21805         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21806
21807 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21808
21809         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21810         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21811         This macro takes 3 arguments, not 4.
21812
21813 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21814
21815         ipv6: fix detection under mingw
21816         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21817         in6_addr.
21818
21819 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21820
21821         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21822         that strtod() works when cross-compiling to a glibc version known
21823         to work.
21824
21825 2010-06-15  Bruno Haible  <bruno@clisp.org>
21826
21827         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21828
21829 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21830
21831         select: Correct timeout.
21832         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21833
21834 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21835
21836         git-version-gen: init shell var to avoid env var influence
21837         * build-aux/git-version-gen (v): Init shell var to empty.
21838
21839 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21840
21841         priv-set: Don't assume that priv.h exists merely because getppriv does.
21842         See Jan Andersen's bug report about AIX 5L in
21843         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21844         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21845         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21846         * lib/priv-set.h: Likewise.
21847         * tests/test-priv-set.c: Likewise.
21848
21849 2010-06-13  Bruno Haible  <bruno@clisp.org>
21850
21851         relocatable: Make it easier to test whether to install wrappers.
21852         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21853         RELOCATABLE_VIA_WRAPPER.
21854
21855 2010-06-13  Bruno Haible  <bruno@clisp.org>
21856
21857         gnulib-tool: Display specified modules and dependencies differently.
21858         * gnulib-tool (func_show_module_list): New function.
21859         (func_import, func_create_testdir): Invoke it.
21860         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21861
21862 2010-06-13  Bruno Haible  <bruno@clisp.org>
21863
21864         gnulib-tool: Align code of func_import and func_create_testdir.
21865         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21866         specified_modules.
21867
21868 2010-06-12  Jim Meyering  <meyering@redhat.com>
21869
21870         test-inttostr: avoid spurious failure on Solaris 9
21871         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21872         to accept "%ju".  Reported by Bruno Haible.
21873
21874 2010-06-11  Jim Meyering  <meyering@redhat.com>
21875
21876         test-sys_socket: mark variables as used more readably
21877         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21878         as "used" explicitly via (void) statement casts.  This is more
21879         readable than using them in an artificial return expression.
21880         Suggestion from Bruno Haible.
21881
21882 2010-06-11  Bruno Haible  <bruno@clisp.org>
21883
21884         Avoid some more warnings from "gcc -Wwrite-strings".
21885         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21886         to 'const char *'.
21887         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21888         * tests/test-c-strcasestr.c (main): Likewise.
21889         * tests/test-mbscasestr1.c (main): Likewise.
21890         * tests/test-mbscasestr2.c (main): Likewise.
21891         * tests/test-memmem.c (main): Likewise.
21892         * tests/test-strstr.c (main): Likewise.
21893         * tests/test-strcasestr.c (main): Likewise.
21894
21895 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21896
21897         init.sh: change framework_failure_ to fail with status 99, not 1
21898         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21899         automake's parallel-tests rule that this is an unexpected failure,
21900         even if the test is listed in XFAIL_TESTS.
21901
21902 2010-06-11  Jim Meyering  <meyering@redhat.com>
21903
21904         test-inttostr: avoid warnings about 4-6KB literal strings
21905         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21906         Include "macros.h", for its definition of ASSERT.
21907         (CK): s/assert/ASSERT/
21908         * modules/inttostr-tests (Files): Add macros.h.
21909
21910         init.sh: don't use $ME_ or skip_ before they are defined
21911         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21912         their first uses.  Also hoist their companions: warn_, fail_,
21913         framework_failure_, $stderr_fileno.  Prompted by a patch from
21914         Stefano Lattarini.
21915
21916         test-sys_socket: avoid set-but-not-used warnings from gcc
21917         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21918         avoid warning about set-but-not-used variables.
21919
21920         test-xvasprintf: avoid 'const' discard warnings
21921         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21922         "const" when assigning from literal strings.
21923         (test_xasprintf): Add "void" in function argument list to placate
21924         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21925
21926         tests: avoid compilation warnings in argmatch and exclude tests...
21927         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21928         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21929         Since it always exits, declare with the "noreturn" attribute.
21930         * tests/test-argmatch.c: Likewise.
21931
21932         tests: avoid 'const' discard warnings in mbsstr tests
21933         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21934         * tests/test-mbsstr2.c (main): Likewise.
21935
21936         test-verify: avoid warning from gcc's -Wmissing-declarations
21937         * tests/test-verify.c (function): Declare to be static.
21938
21939         test-inttostr.c: include <string.h> for use of strcmp
21940         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21941
21942         test-linkat: avoid failed assertion on "other" architectures
21943         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21944         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21945         sparc: https://bugs.launchpad.net/bugs/591968
21946
21947 2010-06-11  Jim Meyering  <meyering@redhat.com>
21948
21949         printf.m4: avoid autoconf's "Expanded Before Required" warning
21950         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21951         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21952         autoconf warning.
21953
21954 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21955
21956         Replacement header templates are now named with ".in", not "_".
21957         * doc/gnulib-intro.texi: Correct.
21958
21959 2010-06-10  Jim Meyering  <meyering@redhat.com>
21960
21961         inttostr-tests: depend on snprintf, not snprintf-posix
21962         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21963         snprintf-posix, to avoid this aclocal failure:
21964           missing file gnulib-tests/vasnprintf.c
21965           configure.ac:45: error: expected source file, required through \
21966           AC_LIBSOURCES, not found
21967
21968 2010-06-10  Jim Meyering  <meyering@redhat.com>
21969
21970         inttostr: add a new function, inttostr, and tests
21971         The namesake function was not available.  The existence of the
21972         template file, inttostr.c makes its addition nontrivial.
21973         * lib/anytostr.c: Rename from inttostr.c.
21974         (anytostr): Rename from inttostr.
21975         * lib/inttostr.c: New file.
21976         * modules/inttostr (Files): Add anytostr.c.
21977         (Makefile.am): Set lib_SOURCES instead of ...
21978         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21979         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21980         * lib/offtostr.c: Likewise.
21981         * lib/uinttostr.c: Likewise.
21982         * lib/umaxtostr.c: Likewise.
21983         * modules/inttostr-tests: New file.
21984         * tests/test-inttostr.c: New file.  Test these functions.
21985
21986 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21987             Bruno Haible  <bruno@clisp.org>
21988
21989         Add "Extending Gnulib" chapter to manual.
21990         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21991         chapter.
21992         (Extending Gnulib): New chapter.
21993         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21994         chapter.
21995
21996 2010-06-09  Bruno Haible  <bruno@clisp.org>
21997
21998         Avoid relocwrapper link errors due to gnulib replacement functions.
21999         * lib/areadlink.c: Use the system's malloc, realloc functions.
22000         (areadlink): Set errno to ENOMEM explicitly.
22001         * modules/areadlink (Depends-on): Remove malloc-posix.
22002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22003
22004 2010-06-09  Bruno Haible  <bruno@clisp.org>
22005
22006         Avoid relocwrapper link errors due to gnulib replacement functions.
22007         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22008         * lib/malloca.c: Likewise.
22009         * lib/relocatable.c: Likewise.
22010         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22011         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22012         * lib/setenv.c: Use the system's malloc, realloc functions.
22013         * lib/strerror.c: Use the system's sprintf function.
22014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22015
22016 2010-06-04  Bruno Haible  <bruno@clisp.org>
22017
22018         Prefer documented low-level autoconf macro names.
22019         * m4/lib-link.m4: Use m4_translit instead of translit.
22020         * m4/environ.m4: Likewise.
22021         * m4/mathfunc.m4: Likewise.
22022         * m4/onceonly.m4: Likewise.
22023         * m4/stdint.m4: Likewise.
22024         Suggested by Eric Blake.
22025
22026 2010-06-04  Martin Lambers  <marlam@marlam.de>
22027             Bruno Haible  <bruno@clisp.org>
22028
22029         havelib: Allow library names with '+' characters.
22030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22031         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22032
22033 2010-06-09  Bruno Haible  <bruno@clisp.org>
22034
22035         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22036         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22037         realloc failed.
22038
22039 2010-06-08  Peter Simons  <simons@cryp.to>
22040
22041         maint.mk: make the news-check rule more configurable
22042         * top/maint.mk (news-check-lines-spec): New variable.
22043         (news-check): Use "sed -n 1,10p" in place of "head".
22044
22045 2010-06-07  Jim Meyering  <meyering@redhat.com>
22046
22047         do-release-commit-and-tag: fix typo in --help
22048         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22049
22050         regex: avoid new dead-code warning with gcc-4.6.0
22051         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22052         if-block containing a while-loop.  It's been unused for at least
22053         5 years.
22054
22055 2010-06-05  Bruno Haible  <bruno@clisp.org>
22056
22057         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22058         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22059
22060 2010-06-04  Bruno Haible  <bruno@clisp.org>
22061
22062         Update to GNU gettext 0.18.1.
22063         * modules/gettext (configure.ac): Require gettext infrastructure from
22064         version 0.18.1.
22065
22066 2010-06-03  Bruno Haible  <bruno@clisp.org>
22067
22068         Don't use AC_LIBOBJ with file names in subdirectories.
22069         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22070         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22071         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22072         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22073         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22074         gl_LIBUNISTRING_LIBSOURCE.
22075         (Makefile.am): Augment lib_SOURCES here, conditionally.
22076         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22077
22078 2010-06-03  Bruno Haible  <bruno@clisp.org>
22079
22080         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22081         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22082         expansion does not end with a newline.
22083         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22084         unnecessary newline.
22085
22086 2010-06-03  Bruno Haible  <bruno@clisp.org>
22087
22088         Reduce dependencies.
22089         * tests/test-quotearg.h: New file, extracted from
22090         tests/test-quotearg.c.
22091         * tests/test-quotearg-simple.c: New file, extracted from
22092         tests/test-quotearg.c.
22093         * tests/test-quotearg.c: Don't include <ctype.h>.
22094         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22095         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22096         use_quote_double_quotes, use_quotearg_colon): Moved to
22097         tests/test-quotearg.h.
22098         (results_g, flag_results, custom_quotes, custom_results): Moved
22099         to tests/test-quotearg-simple.c.
22100         (main): Moved the part that does not depend on gettext to
22101         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22102         performed.
22103         * modules/quotearg-simple: New file.
22104         * modules/quotearg-simple-tests: New file.
22105         * modules/quotearg (Depends-on): Add quotearg-simple.
22106         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22107         (Files): Add tests/test-quotearg.h.
22108         Reported by Paolo Bonzini.
22109
22110 2010-06-03  Bruno Haible  <bruno@clisp.org>
22111
22112         Reduce dependencies.
22113         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22114
22115 2010-06-03  Bruno Haible  <bruno@clisp.org>
22116
22117         time: Undefine more broken macros.
22118         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22119         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22120         Reported by Eric Blake.
22121
22122 2010-06-03  Bruno Haible  <bruno@clisp.org>
22123
22124         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22125         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22126         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22127         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22128         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22129         Reported by Ludovic Courtès <ludo@gnu.org>.
22130
22131 2010-06-02  Eric Blake  <eblake@redhat.com>
22132
22133         time: work with mingw + pthreads-win32 library
22134         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22135         if timespec is defined only in pthread.h.
22136         * modules/time (Makefile.am): Substitute it.
22137         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22138         <pthread.h>, when needed.
22139         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22140         from the library.
22141
22142 2010-05-31  Bruno Haible  <bruno@clisp.org>
22143
22144         Avoid expanding two macros in the wrong order.
22145         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22146         gl_LIBUNISTRING if it is defined.
22147         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22148         autoconf >= 2.64.
22149         Reported by Ludovic Courtès <ludo@gnu.org>.
22150
22151 2010-05-27  Jim Meyering  <meyering@redhat.com>
22152
22153         maint.mk: also prohibit "#undef" of always-defined symbols
22154         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22155         Allow more than one space before the symbol name.
22156         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22157         the regexp uses alternation.
22158
22159 2010-05-26  Eric Blake  <eblake@redhat.com>
22160
22161         maint.mk: avoid echo -e
22162         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22163         Convert all uses of echo -* to printf.
22164         Reported by Matthias Bolte.
22165
22166 2010-05-25  Bruno Haible  <bruno@clisp.org>
22167
22168         Update to GNU gettext 0.18, part 2.
22169         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22170         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22171
22172 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22173
22174         Add missing include in test-pwrite.c.
22175         * tests/test-pwrite.c: Include string.h, for strcmp.
22176
22177 2010-05-24  Bruno Haible  <bruno@clisp.org>
22178
22179         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22180
22181 2010-05-24  Bruno Haible  <bruno@clisp.org>
22182
22183         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22184         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22185         iconveh_error argument.
22186         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22187         U_STRCONV_TO_LOCALE.
22188         * lib/unistr/u16-strcoll.c: Likewise.
22189         * lib/unistr/u32-strcoll.c: Likewise.
22190         * modules/unistr/u8-strcoll (Depends-on): Add
22191         uniconv/u8-strconv-to-enc, localcharset. Remove
22192         uniconv/u8-strconv-to-locale.
22193         (configure.ac): Bump version number.
22194         * modules/unistr/u16-strcoll (Depends-on): Add
22195         uniconv/u16-strconv-to-enc, localcharset. Remove
22196         uniconv/u16-strconv-to-locale.
22197         (configure.ac): Bump version number.
22198         * modules/unistr/u32-strcoll (Depends-on): Add
22199         uniconv/u32-strconv-to-enc, localcharset. Remove
22200         uniconv/u32-strconv-to-locale.
22201         (configure.ac): Bump version number.
22202
22203 2010-05-24  Bruno Haible  <bruno@clisp.org>
22204
22205         Avoid a test failure on NetBSD 5.0.
22206         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22207         an iconv() bug.
22208
22209 2010-05-24  Bruno Haible  <bruno@clisp.org>
22210
22211         Adjust #include directive style.
22212         * modules/regex (Includes): Recommend to write <regex.h>.
22213
22214 2010-05-24  Bruno Haible  <bruno@clisp.org>
22215
22216         regex: Don't require alloca.
22217         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22218         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22219         only inside if (0).
22220
22221 2010-05-23  Jim Meyering  <meyering@redhat.com>
22222
22223         test-renameat.c: include <sys/stat.h>
22224         * tests/test-renameat.c: Include <sys/stat.h>; required for
22225         definition of S_IS* macros.
22226
22227 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22228
22229         Update maintainer documentation for 'relocatable-prog' module.
22230         * doc/relocatable-maint.texi: Update.
22231         Comments by Bruno Haible.
22232
22233 2010-05-23  Bruno Haible  <bruno@clisp.org>
22234
22235         git-merge-changelog: Enable --split-merged-entry by default.
22236         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22237         (usage): Don't mention this option any more.
22238         Reported by Ralf Wildenhues.
22239
22240 2010-05-23  Jim Meyering  <meyering@redhat.com>
22241
22242         test-pwrite: do not leave behind a test file named "out"
22243         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22244         The trivial-looking use of init.sh is really necessary.
22245         It ensures that the temporary file, "out", is created in
22246         a temporary directory, and removed upon termination.
22247         * tests/test-pwrite.sh: Re-add file.
22248         * modules/pwrite-tests: Reference it.
22249
22250 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22251
22252         Fix output redirection buglet in init.sh.
22253         * tests/init.sh: Fix redirection of stderr.
22254
22255 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22256
22257         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22258
22259 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22260
22261         * modules/valgrind-tests: New file.
22262         * m4/valgrind-tests.m4: New file.
22263         * doc/valgrind-tests.texi: New file.
22264         * doc/gnulib.texi (Running self-tests under valgrind): New
22265         section.
22266
22267 2010-05-19  Bruno Haible  <bruno@clisp.org>
22268
22269         Clean up dead code in recent commit.
22270         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22271         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22272         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22273         Suggested by Paolo Bonzini.
22274
22275 2010-05-19  Bruno Haible  <bruno@clisp.org>
22276
22277         Avoid valgrind error reports from libunistring.
22278         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22279         * modules/libunistring (Files): Add it.
22280         * modules/libunistring-optional (Files): Likewise.
22281
22282 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22283             Bruno Haible  <bruno@clisp.org>
22284
22285         New module 'libunistring-optional'.
22286         * modules/libunistring-optional: New file.
22287         * m4/libunistring-base.m4: New file.
22288         * m4/libunistring-optional.m4: New file.
22289         * lib/unicase.in.h: Renamed from lib/unicase.h.
22290         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22291         * lib/unictype.in.h: Renamed from lib/unictype.h.
22292         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22293         * lib/uniname.in.h: Renamed from lib/uniname.h.
22294         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22295         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22296         * lib/unistr.in.h: Renamed from lib/unistr.h.
22297         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22298         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22299         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22300         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22301         gl_LIBUNISTRING. If the library was found, determine the installed
22302         version and set LIBUNISTRING_VERSION.
22303         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22304         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22305         handle a configuration option --with-included-libunistring.
22306         * modules/libunistring (Files): Add m4/absolute-header.m4.
22307         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22308         Add m4/libunistring-base.m4.
22309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22310         (Makefile.am): Build unicase.h from unicase.in.h.
22311         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22312         Add m4/libunistring-base.m4.
22313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22314         (Makefile.am): Build uniconv.h from uniconv.in.h.
22315         * modules/unictype/base (Files): Use unictype.in.h instead of
22316         unictype.h. Add m4/libunistring-base.m4.
22317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22318         (Makefile.am): Build unictype.h from unictype.in.h.
22319         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22320         Add m4/libunistring-base.m4.
22321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22322         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22323         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22324         Add m4/libunistring-base.m4.
22325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22326         (Makefile.am): Build uniname.h from uniname.in.h.
22327         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22328         Add m4/libunistring-base.m4.
22329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22330         (Makefile.am): Build uninorm.h from uninorm.in.h.
22331         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22332         unistdio.h. Add m4/libunistring-base.m4.
22333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22334         (Makefile.am): Build unistdio.h from unistdio.in.h.
22335         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22336         Add m4/libunistring-base.m4.
22337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22338         (Makefile.am): Build unistr.h from unistr.in.h.
22339         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22340         Add m4/libunistring-base.m4.
22341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22342         (Makefile.am): Build unitypes.h from unitypes.in.h.
22343         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22344         Add m4/libunistring-base.m4.
22345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22346         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22347         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22348         uniwidth.h. Add m4/libunistring-base.m4.
22349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22350         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22351         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22352         instead of augmenting lib_SOURCES.
22353         * modules/unicase/empty-suffix-context: Likewise.
22354         * modules/unicase/locale-language: Likewise.
22355         * modules/unicase/tolower: Likewise.
22356         * modules/unicase/totitle: Likewise.
22357         * modules/unicase/toupper: Likewise.
22358         * modules/unicase/u8-casecmp: Likewise.
22359         * modules/unicase/u8-casecoll: Likewise.
22360         * modules/unicase/u8-casefold: Likewise.
22361         * modules/unicase/u8-casexfrm: Likewise.
22362         * modules/unicase/u8-ct-casefold: Likewise.
22363         * modules/unicase/u8-ct-tolower: Likewise.
22364         * modules/unicase/u8-ct-totitle: Likewise.
22365         * modules/unicase/u8-ct-toupper: Likewise.
22366         * modules/unicase/u8-is-cased: Likewise.
22367         * modules/unicase/u8-is-casefolded: Likewise.
22368         * modules/unicase/u8-is-lowercase: Likewise.
22369         * modules/unicase/u8-is-titlecase: Likewise.
22370         * modules/unicase/u8-is-uppercase: Likewise.
22371         * modules/unicase/u8-prefix-context: Likewise.
22372         * modules/unicase/u8-suffix-context: Likewise.
22373         * modules/unicase/u8-tolower: Likewise.
22374         * modules/unicase/u8-totitle: Likewise.
22375         * modules/unicase/u8-toupper: Likewise.
22376         * modules/unicase/u16-casecmp: Likewise.
22377         * modules/unicase/u16-casecoll: Likewise.
22378         * modules/unicase/u16-casefold: Likewise.
22379         * modules/unicase/u16-casexfrm: Likewise.
22380         * modules/unicase/u16-ct-casefold: Likewise.
22381         * modules/unicase/u16-ct-tolower: Likewise.
22382         * modules/unicase/u16-ct-totitle: Likewise.
22383         * modules/unicase/u16-ct-toupper: Likewise.
22384         * modules/unicase/u16-is-cased: Likewise.
22385         * modules/unicase/u16-is-casefolded: Likewise.
22386         * modules/unicase/u16-is-lowercase: Likewise.
22387         * modules/unicase/u16-is-titlecase: Likewise.
22388         * modules/unicase/u16-is-uppercase: Likewise.
22389         * modules/unicase/u16-prefix-context: Likewise.
22390         * modules/unicase/u16-suffix-context: Likewise.
22391         * modules/unicase/u16-tolower: Likewise.
22392         * modules/unicase/u16-totitle: Likewise.
22393         * modules/unicase/u16-toupper: Likewise.
22394         * modules/unicase/u32-casecmp: Likewise.
22395         * modules/unicase/u32-casecoll: Likewise.
22396         * modules/unicase/u32-casefold: Likewise.
22397         * modules/unicase/u32-casexfrm: Likewise.
22398         * modules/unicase/u32-ct-casefold: Likewise.
22399         * modules/unicase/u32-ct-tolower: Likewise.
22400         * modules/unicase/u32-ct-totitle: Likewise.
22401         * modules/unicase/u32-ct-toupper: Likewise.
22402         * modules/unicase/u32-is-cased: Likewise.
22403         * modules/unicase/u32-is-casefolded: Likewise.
22404         * modules/unicase/u32-is-lowercase: Likewise.
22405         * modules/unicase/u32-is-titlecase: Likewise.
22406         * modules/unicase/u32-is-uppercase: Likewise.
22407         * modules/unicase/u32-prefix-context: Likewise.
22408         * modules/unicase/u32-suffix-context: Likewise.
22409         * modules/unicase/u32-tolower: Likewise.
22410         * modules/unicase/u32-totitle: Likewise.
22411         * modules/unicase/u32-toupper: Likewise.
22412         * modules/unicase/ulc-casecmp: Likewise.
22413         * modules/unicase/ulc-casecoll: Likewise.
22414         * modules/unicase/ulc-casexfrm: Likewise.
22415         * modules/uniconv/u8-conv-from-enc: Likewise.
22416         * modules/uniconv/u8-conv-to-enc: Likewise.
22417         * modules/uniconv/u8-strconv-from-enc: Likewise.
22418         * modules/uniconv/u8-strconv-from-locale: Likewise.
22419         * modules/uniconv/u8-strconv-to-enc: Likewise.
22420         * modules/uniconv/u8-strconv-to-locale: Likewise.
22421         * modules/uniconv/u16-conv-from-enc: Likewise.
22422         * modules/uniconv/u16-conv-to-enc: Likewise.
22423         * modules/uniconv/u16-strconv-from-enc: Likewise.
22424         * modules/uniconv/u16-strconv-from-locale: Likewise.
22425         * modules/uniconv/u16-strconv-to-enc: Likewise.
22426         * modules/uniconv/u16-strconv-to-locale: Likewise.
22427         * modules/uniconv/u32-conv-from-enc: Likewise.
22428         * modules/uniconv/u32-conv-to-enc: Likewise.
22429         * modules/uniconv/u32-strconv-from-enc: Likewise.
22430         * modules/uniconv/u32-strconv-from-locale: Likewise.
22431         * modules/uniconv/u32-strconv-to-enc: Likewise.
22432         * modules/uniconv/u32-strconv-to-locale: Likewise.
22433         * modules/unictype/bidicategory-byname: Likewise.
22434         * modules/unictype/bidicategory-name: Likewise.
22435         * modules/unictype/bidicategory-of: Likewise.
22436         * modules/unictype/bidicategory-test: Likewise.
22437         * modules/unictype/block-list: Likewise.
22438         * modules/unictype/block-test: Likewise.
22439         * modules/unictype/category-C: Likewise.
22440         * modules/unictype/category-Cc: Likewise.
22441         * modules/unictype/category-Cf: Likewise.
22442         * modules/unictype/category-Cn: Likewise.
22443         * modules/unictype/category-Co: Likewise.
22444         * modules/unictype/category-Cs: Likewise.
22445         * modules/unictype/category-L: Likewise.
22446         * modules/unictype/category-Ll: Likewise.
22447         * modules/unictype/category-Lm: Likewise.
22448         * modules/unictype/category-Lo: Likewise.
22449         * modules/unictype/category-Lt: Likewise.
22450         * modules/unictype/category-Lu: Likewise.
22451         * modules/unictype/category-M: Likewise.
22452         * modules/unictype/category-Mc: Likewise.
22453         * modules/unictype/category-Me: Likewise.
22454         * modules/unictype/category-Mn: Likewise.
22455         * modules/unictype/category-N: Likewise.
22456         * modules/unictype/category-Nd: Likewise.
22457         * modules/unictype/category-Nl: Likewise.
22458         * modules/unictype/category-No: Likewise.
22459         * modules/unictype/category-P: Likewise.
22460         * modules/unictype/category-Pc: Likewise.
22461         * modules/unictype/category-Pd: Likewise.
22462         * modules/unictype/category-Pe: Likewise.
22463         * modules/unictype/category-Pf: Likewise.
22464         * modules/unictype/category-Pi: Likewise.
22465         * modules/unictype/category-Po: Likewise.
22466         * modules/unictype/category-Ps: Likewise.
22467         * modules/unictype/category-S: Likewise.
22468         * modules/unictype/category-Sc: Likewise.
22469         * modules/unictype/category-Sk: Likewise.
22470         * modules/unictype/category-Sm: Likewise.
22471         * modules/unictype/category-So: Likewise.
22472         * modules/unictype/category-Z: Likewise.
22473         * modules/unictype/category-Zl: Likewise.
22474         * modules/unictype/category-Zp: Likewise.
22475         * modules/unictype/category-Zs: Likewise.
22476         * modules/unictype/category-and: Likewise.
22477         * modules/unictype/category-and-not: Likewise.
22478         * modules/unictype/category-byname: Likewise.
22479         * modules/unictype/category-name: Likewise.
22480         * modules/unictype/category-none: Likewise.
22481         * modules/unictype/category-of: Likewise.
22482         * modules/unictype/category-or: Likewise.
22483         * modules/unictype/category-test: Likewise.
22484         * modules/unictype/combining-class: Likewise.
22485         * modules/unictype/ctype-alnum: Likewise.
22486         * modules/unictype/ctype-alpha: Likewise.
22487         * modules/unictype/ctype-blank: Likewise.
22488         * modules/unictype/ctype-cntrl: Likewise.
22489         * modules/unictype/ctype-digit: Likewise.
22490         * modules/unictype/ctype-graph: Likewise.
22491         * modules/unictype/ctype-lower: Likewise.
22492         * modules/unictype/ctype-print: Likewise.
22493         * modules/unictype/ctype-punct: Likewise.
22494         * modules/unictype/ctype-space: Likewise.
22495         * modules/unictype/ctype-upper: Likewise.
22496         * modules/unictype/ctype-xdigit: Likewise.
22497         * modules/unictype/decimal-digit: Likewise.
22498         * modules/unictype/digit: Likewise.
22499         * modules/unictype/mirror: Likewise.
22500         * modules/unictype/numeric: Likewise.
22501         * modules/unictype/property-alphabetic: Likewise.
22502         * modules/unictype/property-ascii-hex-digit: Likewise.
22503         * modules/unictype/property-bidi-arabic-digit: Likewise.
22504         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22505         * modules/unictype/property-bidi-block-separator: Likewise.
22506         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22507         * modules/unictype/property-bidi-common-separator: Likewise.
22508         * modules/unictype/property-bidi-control: Likewise.
22509         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22510         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22511         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22512         * modules/unictype/property-bidi-european-digit: Likewise.
22513         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22514         * modules/unictype/property-bidi-left-to-right: Likewise.
22515         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22516         * modules/unictype/property-bidi-other-neutral: Likewise.
22517         * modules/unictype/property-bidi-pdf: Likewise.
22518         * modules/unictype/property-bidi-segment-separator: Likewise.
22519         * modules/unictype/property-bidi-whitespace: Likewise.
22520         * modules/unictype/property-byname: Likewise.
22521         * modules/unictype/property-combining: Likewise.
22522         * modules/unictype/property-composite: Likewise.
22523         * modules/unictype/property-currency-symbol: Likewise.
22524         * modules/unictype/property-dash: Likewise.
22525         * modules/unictype/property-decimal-digit: Likewise.
22526         * modules/unictype/property-default-ignorable-code-point: Likewise.
22527         * modules/unictype/property-deprecated: Likewise.
22528         * modules/unictype/property-diacritic: Likewise.
22529         * modules/unictype/property-extender: Likewise.
22530         * modules/unictype/property-format-control: Likewise.
22531         * modules/unictype/property-grapheme-base: Likewise.
22532         * modules/unictype/property-grapheme-extend: Likewise.
22533         * modules/unictype/property-grapheme-link: Likewise.
22534         * modules/unictype/property-hex-digit: Likewise.
22535         * modules/unictype/property-hyphen: Likewise.
22536         * modules/unictype/property-id-continue: Likewise.
22537         * modules/unictype/property-id-start: Likewise.
22538         * modules/unictype/property-ideographic: Likewise.
22539         * modules/unictype/property-ids-binary-operator: Likewise.
22540         * modules/unictype/property-ids-trinary-operator: Likewise.
22541         * modules/unictype/property-ignorable-control: Likewise.
22542         * modules/unictype/property-iso-control: Likewise.
22543         * modules/unictype/property-join-control: Likewise.
22544         * modules/unictype/property-left-of-pair: Likewise.
22545         * modules/unictype/property-line-separator: Likewise.
22546         * modules/unictype/property-logical-order-exception: Likewise.
22547         * modules/unictype/property-lowercase: Likewise.
22548         * modules/unictype/property-math: Likewise.
22549         * modules/unictype/property-non-break: Likewise.
22550         * modules/unictype/property-not-a-character: Likewise.
22551         * modules/unictype/property-numeric: Likewise.
22552         * modules/unictype/property-other-alphabetic: Likewise.
22553         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22554         * modules/unictype/property-other-grapheme-extend: Likewise.
22555         * modules/unictype/property-other-id-continue: Likewise.
22556         * modules/unictype/property-other-id-start: Likewise.
22557         * modules/unictype/property-other-lowercase: Likewise.
22558         * modules/unictype/property-other-math: Likewise.
22559         * modules/unictype/property-other-uppercase: Likewise.
22560         * modules/unictype/property-paired-punctuation: Likewise.
22561         * modules/unictype/property-paragraph-separator: Likewise.
22562         * modules/unictype/property-pattern-syntax: Likewise.
22563         * modules/unictype/property-pattern-white-space: Likewise.
22564         * modules/unictype/property-private-use: Likewise.
22565         * modules/unictype/property-punctuation: Likewise.
22566         * modules/unictype/property-quotation-mark: Likewise.
22567         * modules/unictype/property-radical: Likewise.
22568         * modules/unictype/property-sentence-terminal: Likewise.
22569         * modules/unictype/property-soft-dotted: Likewise.
22570         * modules/unictype/property-space: Likewise.
22571         * modules/unictype/property-terminal-punctuation: Likewise.
22572         * modules/unictype/property-test: Likewise.
22573         * modules/unictype/property-titlecase: Likewise.
22574         * modules/unictype/property-unassigned-code-value: Likewise.
22575         * modules/unictype/property-unified-ideograph: Likewise.
22576         * modules/unictype/property-uppercase: Likewise.
22577         * modules/unictype/property-variation-selector: Likewise.
22578         * modules/unictype/property-white-space: Likewise.
22579         * modules/unictype/property-xid-continue: Likewise.
22580         * modules/unictype/property-xid-start: Likewise.
22581         * modules/unictype/property-zero-width: Likewise.
22582         * modules/unictype/scripts: Likewise.
22583         * modules/unictype/syntax-c-ident: Likewise.
22584         * modules/unictype/syntax-c-whitespace: Likewise.
22585         * modules/unictype/syntax-java-ident: Likewise.
22586         * modules/unictype/syntax-java-whitespace: Likewise.
22587         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22588         * modules/unilbrk/u8-width-linebreaks: Likewise.
22589         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22590         * modules/unilbrk/u16-width-linebreaks: Likewise.
22591         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22592         * modules/unilbrk/u32-width-linebreaks: Likewise.
22593         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22594         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22595         * modules/uniname/uniname: Likewise.
22596         * modules/uninorm/canonical-decomposition: Likewise.
22597         * modules/uninorm/composition: Likewise.
22598         * modules/uninorm/decomposing-form: Likewise.
22599         * modules/uninorm/decomposition: Likewise.
22600         * modules/uninorm/filter: Likewise.
22601         * modules/uninorm/nfc: Likewise.
22602         * modules/uninorm/nfd: Likewise.
22603         * modules/uninorm/nfkc: Likewise.
22604         * modules/uninorm/nfkd: Likewise.
22605         * modules/uninorm/u8-normalize: Likewise.
22606         * modules/uninorm/u8-normcmp: Likewise.
22607         * modules/uninorm/u8-normcoll: Likewise.
22608         * modules/uninorm/u8-normxfrm: Likewise.
22609         * modules/uninorm/u16-normalize: Likewise.
22610         * modules/uninorm/u16-normcmp: Likewise.
22611         * modules/uninorm/u16-normcoll: Likewise.
22612         * modules/uninorm/u16-normxfrm: Likewise.
22613         * modules/uninorm/u32-normalize: Likewise.
22614         * modules/uninorm/u32-normcmp: Likewise.
22615         * modules/uninorm/u32-normcoll: Likewise.
22616         * modules/uninorm/u32-normxfrm: Likewise.
22617         * modules/unistdio/u8-asnprintf: Likewise.
22618         * modules/unistdio/u8-asprintf: Likewise.
22619         * modules/unistdio/u8-snprintf: Likewise.
22620         * modules/unistdio/u8-sprintf: Likewise.
22621         * modules/unistdio/u8-u8-asnprintf: Likewise.
22622         * modules/unistdio/u8-u8-asprintf: Likewise.
22623         * modules/unistdio/u8-u8-snprintf: Likewise.
22624         * modules/unistdio/u8-u8-sprintf: Likewise.
22625         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22626         * modules/unistdio/u8-u8-vasprintf: Likewise.
22627         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22628         * modules/unistdio/u8-u8-vsprintf: Likewise.
22629         * modules/unistdio/u8-vasnprintf: Likewise.
22630         * modules/unistdio/u8-vasprintf: Likewise.
22631         * modules/unistdio/u8-vsnprintf: Likewise.
22632         * modules/unistdio/u8-vsprintf: Likewise.
22633         * modules/unistdio/u16-asnprintf: Likewise.
22634         * modules/unistdio/u16-asprintf: Likewise.
22635         * modules/unistdio/u16-snprintf: Likewise.
22636         * modules/unistdio/u16-sprintf: Likewise.
22637         * modules/unistdio/u16-u16-asnprintf: Likewise.
22638         * modules/unistdio/u16-u16-asprintf: Likewise.
22639         * modules/unistdio/u16-u16-snprintf: Likewise.
22640         * modules/unistdio/u16-u16-sprintf: Likewise.
22641         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22642         * modules/unistdio/u16-u16-vasprintf: Likewise.
22643         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22644         * modules/unistdio/u16-u16-vsprintf: Likewise.
22645         * modules/unistdio/u16-vasnprintf: Likewise.
22646         * modules/unistdio/u16-vasprintf: Likewise.
22647         * modules/unistdio/u16-vsnprintf: Likewise.
22648         * modules/unistdio/u16-vsprintf: Likewise.
22649         * modules/unistdio/u32-asnprintf: Likewise.
22650         * modules/unistdio/u32-asprintf: Likewise.
22651         * modules/unistdio/u32-snprintf: Likewise.
22652         * modules/unistdio/u32-sprintf: Likewise.
22653         * modules/unistdio/u32-u32-asnprintf: Likewise.
22654         * modules/unistdio/u32-u32-asprintf: Likewise.
22655         * modules/unistdio/u32-u32-snprintf: Likewise.
22656         * modules/unistdio/u32-u32-sprintf: Likewise.
22657         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22658         * modules/unistdio/u32-u32-vasprintf: Likewise.
22659         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22660         * modules/unistdio/u32-u32-vsprintf: Likewise.
22661         * modules/unistdio/u32-vasnprintf: Likewise.
22662         * modules/unistdio/u32-vasprintf: Likewise.
22663         * modules/unistdio/u32-vsnprintf: Likewise.
22664         * modules/unistdio/u32-vsprintf: Likewise.
22665         * modules/unistdio/ulc-asnprintf: Likewise.
22666         * modules/unistdio/ulc-asprintf: Likewise.
22667         * modules/unistdio/ulc-fprintf: Likewise.
22668         * modules/unistdio/ulc-snprintf: Likewise.
22669         * modules/unistdio/ulc-sprintf: Likewise.
22670         * modules/unistdio/ulc-vasnprintf: Likewise.
22671         * modules/unistdio/ulc-vasprintf: Likewise.
22672         * modules/unistdio/ulc-vfprintf: Likewise.
22673         * modules/unistdio/ulc-vsnprintf: Likewise.
22674         * modules/unistdio/ulc-vsprintf: Likewise.
22675         * modules/unistr/u8-check: Likewise.
22676         * modules/unistr/u8-chr: Likewise.
22677         * modules/unistr/u8-cmp: Likewise.
22678         * modules/unistr/u8-cmp2: Likewise.
22679         * modules/unistr/u8-cpy: Likewise.
22680         * modules/unistr/u8-cpy-alloc: Likewise.
22681         * modules/unistr/u8-endswith: Likewise.
22682         * modules/unistr/u8-mblen: Likewise.
22683         * modules/unistr/u8-mbsnlen: Likewise.
22684         * modules/unistr/u8-mbtouc: Likewise.
22685         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22686         * modules/unistr/u8-mbtoucr: Likewise.
22687         * modules/unistr/u8-move: Likewise.
22688         * modules/unistr/u8-next: Likewise.
22689         * modules/unistr/u8-prev: Likewise.
22690         * modules/unistr/u8-set: Likewise.
22691         * modules/unistr/u8-startswith: Likewise.
22692         * modules/unistr/u8-stpcpy: Likewise.
22693         * modules/unistr/u8-stpncpy: Likewise.
22694         * modules/unistr/u8-strcat: Likewise.
22695         * modules/unistr/u8-strchr: Likewise.
22696         * modules/unistr/u8-strcmp: Likewise.
22697         * modules/unistr/u8-strcoll: Likewise.
22698         * modules/unistr/u8-strcpy: Likewise.
22699         * modules/unistr/u8-strcspn: Likewise.
22700         * modules/unistr/u8-strdup: Likewise.
22701         * modules/unistr/u8-strlen: Likewise.
22702         * modules/unistr/u8-strmblen: Likewise.
22703         * modules/unistr/u8-strmbtouc: Likewise.
22704         * modules/unistr/u8-strncat: Likewise.
22705         * modules/unistr/u8-strncmp: Likewise.
22706         * modules/unistr/u8-strncpy: Likewise.
22707         * modules/unistr/u8-strnlen: Likewise.
22708         * modules/unistr/u8-strpbrk: Likewise.
22709         * modules/unistr/u8-strrchr: Likewise.
22710         * modules/unistr/u8-strspn: Likewise.
22711         * modules/unistr/u8-strstr: Likewise.
22712         * modules/unistr/u8-strtok: Likewise.
22713         * modules/unistr/u8-to-u16: Likewise.
22714         * modules/unistr/u8-to-u32: Likewise.
22715         * modules/unistr/u8-uctomb: Likewise.
22716         * modules/unistr/u16-check: Likewise.
22717         * modules/unistr/u16-chr: Likewise.
22718         * modules/unistr/u16-cmp: Likewise.
22719         * modules/unistr/u16-cmp2: Likewise.
22720         * modules/unistr/u16-cpy: Likewise.
22721         * modules/unistr/u16-cpy-alloc: Likewise.
22722         * modules/unistr/u16-endswith: Likewise.
22723         * modules/unistr/u16-mblen: Likewise.
22724         * modules/unistr/u16-mbsnlen: Likewise.
22725         * modules/unistr/u16-mbtouc: Likewise.
22726         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22727         * modules/unistr/u16-mbtoucr: Likewise.
22728         * modules/unistr/u16-move: Likewise.
22729         * modules/unistr/u16-next: Likewise.
22730         * modules/unistr/u16-prev: Likewise.
22731         * modules/unistr/u16-set: Likewise.
22732         * modules/unistr/u16-startswith: Likewise.
22733         * modules/unistr/u16-stpcpy: Likewise.
22734         * modules/unistr/u16-stpncpy: Likewise.
22735         * modules/unistr/u16-strcat: Likewise.
22736         * modules/unistr/u16-strchr: Likewise.
22737         * modules/unistr/u16-strcmp: Likewise.
22738         * modules/unistr/u16-strcoll: Likewise.
22739         * modules/unistr/u16-strcpy: Likewise.
22740         * modules/unistr/u16-strcspn: Likewise.
22741         * modules/unistr/u16-strdup: Likewise.
22742         * modules/unistr/u16-strlen: Likewise.
22743         * modules/unistr/u16-strmblen: Likewise.
22744         * modules/unistr/u16-strmbtouc: Likewise.
22745         * modules/unistr/u16-strncat: Likewise.
22746         * modules/unistr/u16-strncmp: Likewise.
22747         * modules/unistr/u16-strncpy: Likewise.
22748         * modules/unistr/u16-strnlen: Likewise.
22749         * modules/unistr/u16-strpbrk: Likewise.
22750         * modules/unistr/u16-strrchr: Likewise.
22751         * modules/unistr/u16-strspn: Likewise.
22752         * modules/unistr/u16-strstr: Likewise.
22753         * modules/unistr/u16-strtok: Likewise.
22754         * modules/unistr/u16-to-u32: Likewise.
22755         * modules/unistr/u16-to-u8: Likewise.
22756         * modules/unistr/u16-uctomb: Likewise.
22757         * modules/unistr/u32-check: Likewise.
22758         * modules/unistr/u32-chr: Likewise.
22759         * modules/unistr/u32-cmp: Likewise.
22760         * modules/unistr/u32-cmp2: Likewise.
22761         * modules/unistr/u32-cpy: Likewise.
22762         * modules/unistr/u32-cpy-alloc: Likewise.
22763         * modules/unistr/u32-endswith: Likewise.
22764         * modules/unistr/u32-mblen: Likewise.
22765         * modules/unistr/u32-mbsnlen: Likewise.
22766         * modules/unistr/u32-mbtouc: Likewise.
22767         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22768         * modules/unistr/u32-mbtoucr: Likewise.
22769         * modules/unistr/u32-move: Likewise.
22770         * modules/unistr/u32-next: Likewise.
22771         * modules/unistr/u32-prev: Likewise.
22772         * modules/unistr/u32-set: Likewise.
22773         * modules/unistr/u32-startswith: Likewise.
22774         * modules/unistr/u32-stpcpy: Likewise.
22775         * modules/unistr/u32-stpncpy: Likewise.
22776         * modules/unistr/u32-strcat: Likewise.
22777         * modules/unistr/u32-strchr: Likewise.
22778         * modules/unistr/u32-strcmp: Likewise.
22779         * modules/unistr/u32-strcoll: Likewise.
22780         * modules/unistr/u32-strcpy: Likewise.
22781         * modules/unistr/u32-strcspn: Likewise.
22782         * modules/unistr/u32-strdup: Likewise.
22783         * modules/unistr/u32-strlen: Likewise.
22784         * modules/unistr/u32-strmblen: Likewise.
22785         * modules/unistr/u32-strmbtouc: Likewise.
22786         * modules/unistr/u32-strncat: Likewise.
22787         * modules/unistr/u32-strncmp: Likewise.
22788         * modules/unistr/u32-strncpy: Likewise.
22789         * modules/unistr/u32-strnlen: Likewise.
22790         * modules/unistr/u32-strpbrk: Likewise.
22791         * modules/unistr/u32-strrchr: Likewise.
22792         * modules/unistr/u32-strspn: Likewise.
22793         * modules/unistr/u32-strstr: Likewise.
22794         * modules/unistr/u32-strtok: Likewise.
22795         * modules/unistr/u32-to-u16: Likewise.
22796         * modules/unistr/u32-to-u8: Likewise.
22797         * modules/unistr/u32-uctomb: Likewise.
22798         * modules/uniwbrk/u8-wordbreaks: Likewise.
22799         * modules/uniwbrk/u16-wordbreaks: Likewise.
22800         * modules/uniwbrk/u32-wordbreaks: Likewise.
22801         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22802         * modules/uniwbrk/wordbreak-property: Likewise.
22803         * modules/uniwidth/u8-strwidth: Likewise.
22804         * modules/uniwidth/u8-width: Likewise.
22805         * modules/uniwidth/u16-strwidth: Likewise.
22806         * modules/uniwidth/u16-width: Likewise.
22807         * modules/uniwidth/u32-strwidth: Likewise.
22808         * modules/uniwidth/u32-width: Likewise.
22809         * modules/uniwidth/width: Likewise.
22810         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22811         with $(LIBUNISTRING).
22812         * modules/unicase/ignorable-tests: Likewise.
22813         * modules/unicase/locale-language-tests: Likewise.
22814         * modules/unicase/tolower-tests: Likewise.
22815         * modules/unicase/totitle-tests: Likewise.
22816         * modules/unicase/toupper-tests: Likewise.
22817         * modules/unicase/u8-casecmp-tests: Likewise.
22818         * modules/unicase/u8-casecoll-tests: Likewise.
22819         * modules/unicase/u8-casefold-tests: Likewise.
22820         * modules/unicase/u8-is-cased-tests: Likewise.
22821         * modules/unicase/u8-is-casefolded-tests: Likewise.
22822         * modules/unicase/u8-is-lowercase-tests: Likewise.
22823         * modules/unicase/u8-is-titlecase-tests: Likewise.
22824         * modules/unicase/u8-is-uppercase-tests: Likewise.
22825         * modules/unicase/u8-tolower-tests: Likewise.
22826         * modules/unicase/u8-totitle-tests: Likewise.
22827         * modules/unicase/u8-toupper-tests: Likewise.
22828         * modules/unicase/u16-casecmp-tests: Likewise.
22829         * modules/unicase/u16-casecoll-tests: Likewise.
22830         * modules/unicase/u16-casefold-tests: Likewise.
22831         * modules/unicase/u16-is-cased-tests: Likewise.
22832         * modules/unicase/u16-is-casefolded-tests: Likewise.
22833         * modules/unicase/u16-is-lowercase-tests: Likewise.
22834         * modules/unicase/u16-is-titlecase-tests: Likewise.
22835         * modules/unicase/u16-is-uppercase-tests: Likewise.
22836         * modules/unicase/u16-tolower-tests: Likewise.
22837         * modules/unicase/u16-totitle-tests: Likewise.
22838         * modules/unicase/u16-toupper-tests: Likewise.
22839         * modules/unicase/u32-casecmp-tests: Likewise.
22840         * modules/unicase/u32-casecoll-tests: Likewise.
22841         * modules/unicase/u32-casefold-tests: Likewise.
22842         * modules/unicase/u32-is-cased-tests: Likewise.
22843         * modules/unicase/u32-is-casefolded-tests: Likewise.
22844         * modules/unicase/u32-is-lowercase-tests: Likewise.
22845         * modules/unicase/u32-is-titlecase-tests: Likewise.
22846         * modules/unicase/u32-is-uppercase-tests: Likewise.
22847         * modules/unicase/u32-tolower-tests: Likewise.
22848         * modules/unicase/u32-totitle-tests: Likewise.
22849         * modules/unicase/u32-toupper-tests: Likewise.
22850         * modules/unicase/ulc-casecmp-tests: Likewise.
22851         * modules/unicase/ulc-casecoll-tests: Likewise.
22852         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22853         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22854         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22855         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22856         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22857         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22858         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22859         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22860         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22861         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22862         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22863         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22864         * modules/unictype/bidicategory-byname-tests: Likewise.
22865         * modules/unictype/bidicategory-name-tests: Likewise.
22866         * modules/unictype/bidicategory-of-tests: Likewise.
22867         * modules/unictype/bidicategory-test-tests: Likewise.
22868         * modules/unictype/block-list-tests: Likewise.
22869         * modules/unictype/block-of-tests: Likewise.
22870         * modules/unictype/block-test-tests: Likewise.
22871         * modules/unictype/category-C-tests: Likewise.
22872         * modules/unictype/category-Cc-tests: Likewise.
22873         * modules/unictype/category-Cf-tests: Likewise.
22874         * modules/unictype/category-Cn-tests: Likewise.
22875         * modules/unictype/category-Co-tests: Likewise.
22876         * modules/unictype/category-Cs-tests: Likewise.
22877         * modules/unictype/category-L-tests: Likewise.
22878         * modules/unictype/category-Ll-tests: Likewise.
22879         * modules/unictype/category-Lm-tests: Likewise.
22880         * modules/unictype/category-Lo-tests: Likewise.
22881         * modules/unictype/category-Lt-tests: Likewise.
22882         * modules/unictype/category-Lu-tests: Likewise.
22883         * modules/unictype/category-M-tests: Likewise.
22884         * modules/unictype/category-Mc-tests: Likewise.
22885         * modules/unictype/category-Me-tests: Likewise.
22886         * modules/unictype/category-Mn-tests: Likewise.
22887         * modules/unictype/category-N-tests: Likewise.
22888         * modules/unictype/category-Nd-tests: Likewise.
22889         * modules/unictype/category-Nl-tests: Likewise.
22890         * modules/unictype/category-No-tests: Likewise.
22891         * modules/unictype/category-P-tests: Likewise.
22892         * modules/unictype/category-Pc-tests: Likewise.
22893         * modules/unictype/category-Pd-tests: Likewise.
22894         * modules/unictype/category-Pe-tests: Likewise.
22895         * modules/unictype/category-Pf-tests: Likewise.
22896         * modules/unictype/category-Pi-tests: Likewise.
22897         * modules/unictype/category-Po-tests: Likewise.
22898         * modules/unictype/category-Ps-tests: Likewise.
22899         * modules/unictype/category-S-tests: Likewise.
22900         * modules/unictype/category-Sc-tests: Likewise.
22901         * modules/unictype/category-Sk-tests: Likewise.
22902         * modules/unictype/category-Sm-tests: Likewise.
22903         * modules/unictype/category-So-tests: Likewise.
22904         * modules/unictype/category-Z-tests: Likewise.
22905         * modules/unictype/category-Zl-tests: Likewise.
22906         * modules/unictype/category-Zp-tests: Likewise.
22907         * modules/unictype/category-Zs-tests: Likewise.
22908         * modules/unictype/category-and-not-tests: Likewise.
22909         * modules/unictype/category-and-tests: Likewise.
22910         * modules/unictype/category-byname-tests: Likewise.
22911         * modules/unictype/category-name-tests: Likewise.
22912         * modules/unictype/category-none-tests: Likewise.
22913         * modules/unictype/category-of-tests: Likewise.
22914         * modules/unictype/category-or-tests: Likewise.
22915         * modules/unictype/category-test-withtable-tests: Likewise.
22916         * modules/unictype/combining-class-tests: Likewise.
22917         * modules/unictype/ctype-alnum-tests: Likewise.
22918         * modules/unictype/ctype-alpha-tests: Likewise.
22919         * modules/unictype/ctype-blank-tests: Likewise.
22920         * modules/unictype/ctype-cntrl-tests: Likewise.
22921         * modules/unictype/ctype-digit-tests: Likewise.
22922         * modules/unictype/ctype-graph-tests: Likewise.
22923         * modules/unictype/ctype-lower-tests: Likewise.
22924         * modules/unictype/ctype-print-tests: Likewise.
22925         * modules/unictype/ctype-punct-tests: Likewise.
22926         * modules/unictype/ctype-space-tests: Likewise.
22927         * modules/unictype/ctype-upper-tests: Likewise.
22928         * modules/unictype/ctype-xdigit-tests: Likewise.
22929         * modules/unictype/decimal-digit-tests: Likewise.
22930         * modules/unictype/digit-tests: Likewise.
22931         * modules/unictype/mirror-tests: Likewise.
22932         * modules/unictype/numeric-tests: Likewise.
22933         * modules/unictype/property-alphabetic-tests: Likewise.
22934         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22935         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22936         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22937         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22938         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22939         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22940         * modules/unictype/property-bidi-control-tests: Likewise.
22941         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22942         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22943         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22944         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22945         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22946         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22947         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22948         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22949         * modules/unictype/property-bidi-pdf-tests: Likewise.
22950         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22951         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22952         * modules/unictype/property-byname-tests: Likewise.
22953         * modules/unictype/property-combining-tests: Likewise.
22954         * modules/unictype/property-composite-tests: Likewise.
22955         * modules/unictype/property-currency-symbol-tests: Likewise.
22956         * modules/unictype/property-dash-tests: Likewise.
22957         * modules/unictype/property-decimal-digit-tests: Likewise.
22958         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22959         * modules/unictype/property-deprecated-tests: Likewise.
22960         * modules/unictype/property-diacritic-tests: Likewise.
22961         * modules/unictype/property-extender-tests: Likewise.
22962         * modules/unictype/property-format-control-tests: Likewise.
22963         * modules/unictype/property-grapheme-base-tests: Likewise.
22964         * modules/unictype/property-grapheme-extend-tests: Likewise.
22965         * modules/unictype/property-grapheme-link-tests: Likewise.
22966         * modules/unictype/property-hex-digit-tests: Likewise.
22967         * modules/unictype/property-hyphen-tests: Likewise.
22968         * modules/unictype/property-id-continue-tests: Likewise.
22969         * modules/unictype/property-id-start-tests: Likewise.
22970         * modules/unictype/property-ideographic-tests: Likewise.
22971         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22972         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22973         * modules/unictype/property-ignorable-control-tests: Likewise.
22974         * modules/unictype/property-iso-control-tests: Likewise.
22975         * modules/unictype/property-join-control-tests: Likewise.
22976         * modules/unictype/property-left-of-pair-tests: Likewise.
22977         * modules/unictype/property-line-separator-tests: Likewise.
22978         * modules/unictype/property-logical-order-exception-tests: Likewise.
22979         * modules/unictype/property-lowercase-tests: Likewise.
22980         * modules/unictype/property-math-tests: Likewise.
22981         * modules/unictype/property-non-break-tests: Likewise.
22982         * modules/unictype/property-not-a-character-tests: Likewise.
22983         * modules/unictype/property-numeric-tests: Likewise.
22984         * modules/unictype/property-other-alphabetic-tests: Likewise.
22985         * modules/unictype/property-other-default-ignorable-code-point-tests:
22986         Likewise.
22987         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22988         * modules/unictype/property-other-id-continue-tests: Likewise.
22989         * modules/unictype/property-other-id-start-tests: Likewise.
22990         * modules/unictype/property-other-lowercase-tests: Likewise.
22991         * modules/unictype/property-other-math-tests: Likewise.
22992         * modules/unictype/property-other-uppercase-tests: Likewise.
22993         * modules/unictype/property-paired-punctuation-tests: Likewise.
22994         * modules/unictype/property-paragraph-separator-tests: Likewise.
22995         * modules/unictype/property-pattern-syntax-tests: Likewise.
22996         * modules/unictype/property-pattern-white-space-tests: Likewise.
22997         * modules/unictype/property-private-use-tests: Likewise.
22998         * modules/unictype/property-punctuation-tests: Likewise.
22999         * modules/unictype/property-quotation-mark-tests: Likewise.
23000         * modules/unictype/property-radical-tests: Likewise.
23001         * modules/unictype/property-sentence-terminal-tests: Likewise.
23002         * modules/unictype/property-soft-dotted-tests: Likewise.
23003         * modules/unictype/property-space-tests: Likewise.
23004         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23005         * modules/unictype/property-test-tests: Likewise.
23006         * modules/unictype/property-titlecase-tests: Likewise.
23007         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23008         * modules/unictype/property-unified-ideograph-tests: Likewise.
23009         * modules/unictype/property-uppercase-tests: Likewise.
23010         * modules/unictype/property-variation-selector-tests: Likewise.
23011         * modules/unictype/property-white-space-tests: Likewise.
23012         * modules/unictype/property-xid-continue-tests: Likewise.
23013         * modules/unictype/property-xid-start-tests: Likewise.
23014         * modules/unictype/property-zero-width-tests: Likewise.
23015         * modules/unictype/scripts-tests: Likewise.
23016         * modules/unictype/syntax-c-ident-tests: Likewise.
23017         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23018         * modules/unictype/syntax-java-ident-tests: Likewise.
23019         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23020         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23021         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23022         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23023         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23024         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23025         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23026         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23027         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23028         * modules/uniname/uniname-tests: Likewise.
23029         * modules/uninorm/canonical-decomposition-tests: Likewise.
23030         * modules/uninorm/compat-decomposition-tests: Likewise.
23031         * modules/uninorm/composition-tests: Likewise.
23032         * modules/uninorm/decomposing-form-tests: Likewise.
23033         * modules/uninorm/decomposition-tests: Likewise.
23034         * modules/uninorm/filter-tests: Likewise.
23035         * modules/uninorm/nfc-tests: Likewise.
23036         * modules/uninorm/nfd-tests: Likewise.
23037         * modules/uninorm/nfkc-tests: Likewise.
23038         * modules/uninorm/nfkd-tests: Likewise.
23039         * modules/uninorm/u8-normcmp-tests: Likewise.
23040         * modules/uninorm/u8-normcoll-tests: Likewise.
23041         * modules/uninorm/u16-normcmp-tests: Likewise.
23042         * modules/uninorm/u16-normcoll-tests: Likewise.
23043         * modules/uninorm/u32-normcmp-tests: Likewise.
23044         * modules/uninorm/u32-normcoll-tests: Likewise.
23045         * modules/unistdio/u8-asnprintf-tests: Likewise.
23046         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23047         * modules/unistdio/u8-vasprintf-tests: Likewise.
23048         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23049         * modules/unistdio/u8-vsprintf-tests: Likewise.
23050         * modules/unistdio/u16-asnprintf-tests: Likewise.
23051         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23052         * modules/unistdio/u16-vasprintf-tests: Likewise.
23053         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23054         * modules/unistdio/u16-vsprintf-tests: Likewise.
23055         * modules/unistdio/u32-asnprintf-tests: Likewise.
23056         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23057         * modules/unistdio/u32-vasprintf-tests: Likewise.
23058         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23059         * modules/unistdio/u32-vsprintf-tests: Likewise.
23060         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23061         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23062         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23063         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23064         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23065         * modules/unistr/u8-check-tests: Likewise.
23066         * modules/unistr/u8-chr-tests: Likewise.
23067         * modules/unistr/u8-cmp-tests: Likewise.
23068         * modules/unistr/u8-cmp2-tests: Likewise.
23069         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23070         * modules/unistr/u8-cpy-tests: Likewise.
23071         * modules/unistr/u8-mblen-tests: Likewise.
23072         * modules/unistr/u8-mbsnlen-tests: Likewise.
23073         * modules/unistr/u8-mbtouc-tests: Likewise.
23074         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23075         * modules/unistr/u8-mbtoucr-tests: Likewise.
23076         * modules/unistr/u8-move-tests: Likewise.
23077         * modules/unistr/u8-next-tests: Likewise.
23078         * modules/unistr/u8-prev-tests: Likewise.
23079         * modules/unistr/u8-set-tests: Likewise.
23080         * modules/unistr/u8-stpcpy-tests: Likewise.
23081         * modules/unistr/u8-stpncpy-tests: Likewise.
23082         * modules/unistr/u8-strcat-tests: Likewise.
23083         * modules/unistr/u8-strcmp-tests: Likewise.
23084         * modules/unistr/u8-strcoll-tests: Likewise.
23085         * modules/unistr/u8-strcpy-tests: Likewise.
23086         * modules/unistr/u8-strdup-tests: Likewise.
23087         * modules/unistr/u8-strlen-tests: Likewise.
23088         * modules/unistr/u8-strmblen-tests: Likewise.
23089         * modules/unistr/u8-strmbtouc-tests: Likewise.
23090         * modules/unistr/u8-strncat-tests: Likewise.
23091         * modules/unistr/u8-strncmp-tests: Likewise.
23092         * modules/unistr/u8-strncpy-tests: Likewise.
23093         * modules/unistr/u8-strnlen-tests: Likewise.
23094         * modules/unistr/u8-to-u16-tests: Likewise.
23095         * modules/unistr/u8-to-u32-tests: Likewise.
23096         * modules/unistr/u8-uctomb-tests: Likewise.
23097         * modules/unistr/u16-check-tests: Likewise.
23098         * modules/unistr/u16-chr-tests: Likewise.
23099         * modules/unistr/u16-cmp-tests: Likewise.
23100         * modules/unistr/u16-cmp2-tests: Likewise.
23101         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23102         * modules/unistr/u16-cpy-tests: Likewise.
23103         * modules/unistr/u16-mblen-tests: Likewise.
23104         * modules/unistr/u16-mbsnlen-tests: Likewise.
23105         * modules/unistr/u16-mbtouc-tests: Likewise.
23106         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23107         * modules/unistr/u16-mbtoucr-tests: Likewise.
23108         * modules/unistr/u16-move-tests: Likewise.
23109         * modules/unistr/u16-next-tests: Likewise.
23110         * modules/unistr/u16-prev-tests: Likewise.
23111         * modules/unistr/u16-set-tests: Likewise.
23112         * modules/unistr/u16-stpcpy-tests: Likewise.
23113         * modules/unistr/u16-stpncpy-tests: Likewise.
23114         * modules/unistr/u16-strcat-tests: Likewise.
23115         * modules/unistr/u16-strcmp-tests: Likewise.
23116         * modules/unistr/u16-strcoll-tests: Likewise.
23117         * modules/unistr/u16-strcpy-tests: Likewise.
23118         * modules/unistr/u16-strdup-tests: Likewise.
23119         * modules/unistr/u16-strlen-tests: Likewise.
23120         * modules/unistr/u16-strmblen-tests: Likewise.
23121         * modules/unistr/u16-strmbtouc-tests: Likewise.
23122         * modules/unistr/u16-strncat-tests: Likewise.
23123         * modules/unistr/u16-strncmp-tests: Likewise.
23124         * modules/unistr/u16-strncpy-tests: Likewise.
23125         * modules/unistr/u16-strnlen-tests: Likewise.
23126         * modules/unistr/u16-to-u32-tests: Likewise.
23127         * modules/unistr/u16-to-u8-tests: Likewise.
23128         * modules/unistr/u16-uctomb-tests: Likewise.
23129         * modules/unistr/u32-check-tests: Likewise.
23130         * modules/unistr/u32-chr-tests: Likewise.
23131         * modules/unistr/u32-cmp-tests: Likewise.
23132         * modules/unistr/u32-cmp2-tests: Likewise.
23133         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23134         * modules/unistr/u32-cpy-tests: Likewise.
23135         * modules/unistr/u32-mblen-tests: Likewise.
23136         * modules/unistr/u32-mbsnlen-tests: Likewise.
23137         * modules/unistr/u32-mbtouc-tests: Likewise.
23138         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23139         * modules/unistr/u32-mbtoucr-tests: Likewise.
23140         * modules/unistr/u32-move-tests: Likewise.
23141         * modules/unistr/u32-next-tests: Likewise.
23142         * modules/unistr/u32-prev-tests: Likewise.
23143         * modules/unistr/u32-set-tests: Likewise.
23144         * modules/unistr/u32-stpcpy-tests: Likewise.
23145         * modules/unistr/u32-stpncpy-tests: Likewise.
23146         * modules/unistr/u32-strcat-tests: Likewise.
23147         * modules/unistr/u32-strcmp-tests: Likewise.
23148         * modules/unistr/u32-strcoll-tests: Likewise.
23149         * modules/unistr/u32-strcpy-tests: Likewise.
23150         * modules/unistr/u32-strdup-tests: Likewise.
23151         * modules/unistr/u32-strlen-tests: Likewise.
23152         * modules/unistr/u32-strmblen-tests: Likewise.
23153         * modules/unistr/u32-strmbtouc-tests: Likewise.
23154         * modules/unistr/u32-strncat-tests: Likewise.
23155         * modules/unistr/u32-strncmp-tests: Likewise.
23156         * modules/unistr/u32-strncpy-tests: Likewise.
23157         * modules/unistr/u32-strnlen-tests: Likewise.
23158         * modules/unistr/u32-to-u16-tests: Likewise.
23159         * modules/unistr/u32-to-u8-tests: Likewise.
23160         * modules/unistr/u32-uctomb-tests: Likewise.
23161         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23162         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23163         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23164         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23165         * modules/uniwidth/u8-strwidth-tests: Likewise.
23166         * modules/uniwidth/u8-width-tests: Likewise.
23167         * modules/uniwidth/u16-strwidth-tests: Likewise.
23168         * modules/uniwidth/u16-width-tests: Likewise.
23169         * modules/uniwidth/u32-strwidth-tests: Likewise.
23170         * modules/uniwidth/u32-width-tests: Likewise.
23171         * modules/uniwidth/width-tests: Likewise.
23172
23173 2010-05-18  Richard Jones  <rjones@redhat.com>
23174
23175         doc: users.txt: list hivex
23176         * users.txt: Add hivex.
23177
23178 2010-05-18  Richard Jones  <rjones@redhat.com>
23179
23180         doc: users.txt: list febootstrap
23181         * users.txt: Add febootstrap.
23182
23183 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23184
23185         bootstrap: fix an error when gnulib is not used as a git submodule
23186         * build-aux/bootstrap (gnulib_path): If its length is zero then
23187         assign "gnulib" to it.
23188         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23189
23190 2010-05-16  Bruno Haible  <bruno@clisp.org>
23191
23192         Avoid autoconf warnings about AM_ICONV.
23193         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23194         2.64.
23195
23196 2010-05-16  Bruno Haible  <bruno@clisp.org>
23197
23198         absolute-header: Make the macro usable in more situations.
23199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23200         from gl_ABSOLUTE_HEADER.
23201         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23202
23203 2010-05-16  James Youngman  <jay@gnu.org>
23204
23205         doc: update users.txt
23206         * users.txt: Add CSSC.
23207
23208 2010-05-16  Jim Meyering  <meyering@redhat.com>
23209
23210         init.sh: fix an error in the previous change; add more comments
23211         * tests/init.sh: Compare exit code in loop against 9, not 2.
23212         Patch by Bruno Haible.
23213         Make the two tests more similar by adding an empty "then" clause.
23214         Add comments.
23215
23216         init.sh: avoid unnecessary shell re-exec
23217         * tests/init.sh: Improve the re-exec-required check to first test the
23218         current shell.  If it passes the test, do not search for a shell that
23219         does pass, and do not re-exec.  This test is particularly contorted to
23220         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23221         of $(...) evokes a syntax error and causes immediate shell exit with
23222         status 2.  Bruno Haible reported that the re-exec made it impossible
23223         to single-step through any init.sh-using script.
23224
23225 2010-05-16  Bruno Haible  <bruno@clisp.org>
23226
23227         Fix collision between gnulib's and libintl's printf replacements.
23228         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23229         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23230         (printf): When using GNU C, map the __printf__ function to rpl_printf
23231         via __asm__. When not using GNU C, define rpl_printf instead of
23232         __printf__.
23233         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23234         commit.
23235         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23236         commit.
23237         * m4/asm-underscore.m4: New file.
23238         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23239         * modules/stdio (Files): Add m4/asm-underscore.m4.
23240         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23241         Reported by Ben Pfaff.
23242
23243 2010-05-16  Bruno Haible  <bruno@clisp.org>
23244
23245         verify: Avoid skipping the test on openSUSE 11.0.
23246         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23247
23248 2010-05-13  Bruno Haible  <bruno@clisp.org>
23249
23250         Avoid useless warnings from G++.
23251         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23252         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23254
23255 2010-05-11  Jim Meyering  <meyering@redhat.com>
23256
23257         maint.mk: tweak preceding change
23258         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23259         regexps tighter by anchoring at EOL, and make the new group "shy"
23260         for slightly decreased overhead.
23261
23262 2010-05-11  Eric Blake  <eblake@redhat.com>
23263
23264         maint.mk: gnulib doesn't guarantee NSIG
23265         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23266
23267 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23268
23269         test-pwrite.c: Remove unused variable declaration.
23270         * tests/test-pwrite.c (main): Remove read_buf declaration.
23271
23272         Remove useless test-pwrite.sh file.
23273         * tests/test-pwrite.sh: Delete file.
23274         * modules/pwrite-tests: Remove references.
23275         Reported by Bruno Haible.
23276
23277 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23278
23279         init.sh: fix a typo
23280         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23281
23282 2010-05-10  Jim Meyering  <meyering@redhat.com>
23283
23284         maint.mk: avoid using a temporary file in the always-defined-macros check
23285         * top/maint.mk (.re-defmac): Remove rule.
23286         (gl_trap_): Remove definition.
23287         (sc_prohibit_always-defined_macros): Rewrite not to create and
23288         depend on a temporary file.  Instead, depend on GNU grep's ability
23289         to read a list of regular expressions from stdin when given "-f -".
23290
23291 2010-05-09  Bruno Haible  <bruno@clisp.org>
23292
23293         Update to GNU gettext 0.18, part 1.
23294         * m4/gettext.m4: Update to GNU gettext 0.18.
23295         * m4/intl.m4: Likewise.
23296         * m4/po.m4: Likewise.
23297         * modules/gettext (Files): Add m4/fcntl-o.m4.
23298         (configure.ac): Require gettext infrastructure from version 0.18.
23299
23300 2010-05-09  Jim Meyering  <meyering@redhat.com>
23301
23302         init.sh: enable MALLOC_PERTURB_
23303         * tests/init.sh: Enable glibc's malloc-perturbing option.
23304
23305         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23306         With my recent change in init.sh from the two-line form:
23307             -#   : ${srcdir=.}
23308             -#   . "$srcdir/init.sh"; path_prepend_ .
23309             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23310         I noticed that using the one-line form would cause this test
23311         to fail with a false-positive, or to stop working altogether,
23312         depending on whether help-version changed or all the tests did.
23313         * top/maint.mk (_hv_regex): Remove this definition.
23314         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23315         (_hv_regex_strong): Use a stronger regex to check for conformance.
23316         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23317         Give a separate diagnostic for lack of conforming use.
23318
23319         maint.mk: prohibit definition of symbols defined by gnulib
23320         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23321         definition of symbols defined by gnulib.
23322
23323 2010-05-09  Bruno Haible  <bruno@clisp.org>
23324
23325         acl: Avoid test failure on Cygwin-hosted mingw.
23326         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23327
23328 2010-05-09  Bruno Haible  <bruno@clisp.org>
23329
23330         error: Use system's fcntl function.
23331         * lib/error.c (fcntl): Undefine.
23332
23333 2010-05-09  Jim Meyering  <meyering@redhat.com>
23334
23335         verify: adjust formatting to be more consistent
23336         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23337         argument-list '('s, and after one comma.
23338
23339 2010-05-09  Bruno Haible  <bruno@clisp.org>
23340
23341         error: More reliable output on mingw.
23342         * lib/error.c: Include <windows.h>.
23343         (is_open): New function.
23344         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23345         defined.
23346
23347 2010-05-09  Bruno Haible  <bruno@clisp.org>
23348
23349         vasnprintf: Fix syntax errors in libintl build on mingw.
23350         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23351         pad_ourselves and prec_ourselves after use.
23352
23353 2010-05-08  Bruno Haible  <bruno@clisp.org>
23354
23355         * lib/config.charset: Update comments for Cygwin 1.7.
23356         * lib/localcharset.c: Likewise.
23357
23358 2010-05-07  Jim Meyering  <meyering@redhat.com>
23359
23360         init.sh: improve comments
23361         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23362         . "${srcdir=.}/init.sh"; path_prepend_ .
23363         Add a note about path_prepend_ and the alternative of using
23364         TESTS_ENVIRONMENT.
23365
23366 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23367
23368         exclude: Unescape hashed patterns in wildcard mode.
23369         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23370         to the hash list.
23371         * tests/test-exclude8.sh: New test case.
23372         * modules/exclude-tests: Add new test.
23373
23374 2010-05-05  Eric Blake  <eblake@redhat.com>
23375
23376         verify: automate tests
23377         * modules/verify-tests: New module.
23378         * tests/test-verify.sh: New file.
23379         * tests/test-verify.c: Guard each negative test with a unique id.
23380         Also avoid warning about unused left hand of comma expressions.
23381
23382 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23383
23384         Further improvements to verify.h, suggested by Eric Blake.
23385         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23386         the GL_* versions, to avoid collision with OpenGL.
23387         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23388         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23389         than testing merely whether it's defined.
23390
23391         Modify verify.h to pacify gcc -Wredundant_decls.
23392         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23393         These use the prefix "GL_" since they're likely to be useful elsewhere.
23394         We may need to break them out into a different .h file.
23395         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23396         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23397         of verify_function__.
23398
23399 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23400
23401         Tests for module pwrite.
23402         * modules/pwrite-tests: New file.
23403         * tests/test-pwrite.sh: New file.
23404         * tests/test-pwrite.c: New file.
23405
23406         New module pwrite.
23407         * lib/unistd.in.h (pwrite): New declaration.
23408         * lib/pwrite.c: New file, from glibc with modifications.
23409         * m4/pwrite.m4: New file.
23410         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23411         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23412         REPLACE_PWRITE.
23413         * modules/pwrite: New file.
23414         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23415         REPLACE_PWRITE.
23416         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23417         * doc/posix-functions/pwrite.texi: Mention the new module.
23418
23419 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23420
23421         pread: Update documentation.
23422         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23423
23424 2010-05-04  Eric Blake  <eblake@redhat.com>
23425
23426         docs: update cygwin progress
23427         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23428         this bug.
23429         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23430         Added in cygwin 1.7.2.
23431         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23432         Likewise.
23433         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23434         Likewise.
23435         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23436         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23437         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23438         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23439         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23440         Mention nproc module.
23441         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23442         bug in cygwin 1.7.5 addition.
23443         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23444         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23445         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23446         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23447         1.7.5.
23448         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23449         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23450         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23451         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23452         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23453         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23454         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23455         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23456         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23457         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23458         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23459         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23460         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23461         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23462         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23463         Likewise.
23464         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23465         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23466         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23467         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23468         Likewise.
23469         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23470         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23471         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23472         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23473         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23474         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23475         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23476         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23477         Likewise.
23478         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23479         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23480         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23481         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23482         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23483         Likewise.
23484         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23485         Likewise.
23486         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23487         Likewise.
23488         * doc/glibc-functions/xdrrec_endofrecord.texi
23489         (xdrrec_endofrecord): Likewise.
23490         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23491         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23492         Likewise.
23493         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23494         Likewise.
23495
23496 2010-05-04  Jim Meyering  <meyering@redhat.com>
23497
23498         gendocs.sh: make its "-s FILE" option more useful
23499         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23500         $PACKAGE to reflect the probably-different basename of "FILE".
23501
23502 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23503
23504         bootstrap: don't ignore download_po_files failure
23505         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23506         failure.
23507
23508 2010-05-03  Jim Meyering  <meyering@redhat.com>
23509
23510         maint.mk: allow to pass options to gendocs.sh
23511         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23512         (gendocs_options_): New overridable variable.
23513
23514         gnu-web-doc-update: don't ignore configure or build failure
23515         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23516
23517         announce-gen: backslash-escape '@'s in --help output
23518         * build-aux/announce-gen: Fix syntax errors.
23519
23520         maint.mk, announce-gen: allow project-specific announcement mail headers
23521         * top/maint.mk (translation_project_): Define default.
23522         (announcement_Cc_, announcement_mail_headers_): Likewise.
23523         (announcement): Invoke announce-gen with new --mail-headers option.
23524         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23525
23526         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23527         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23528         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23529         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23530         line in the "err2" output file when running "make check" in verbose
23531         mode (i.e., with set -x enabled).
23532
23533 2010-05-03  Bruno Haible  <bruno@clisp.org>
23534
23535         wctob: Fix for weird platforms.
23536         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23537         argument value.
23538
23539 2010-05-03  Jim Meyering  <meyering@redhat.com>
23540
23541         maint.mk: prohibit unwarranted use of <strings.h>
23542         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23543         strings.h in a file that does not also use strcasecmp, strncasecmp,
23544         ffs or ffsll.
23545
23546         maint.mk: remove obsolete comments
23547         * top/maint.mk: Remove stale, commented-out rules.
23548
23549 2010-05-02  Bruno Haible  <bruno@clisp.org>
23550
23551         wcwidth: Declare also when it's aliased.
23552         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23553         macro.
23554
23555 2010-05-02  Bruno Haible  <bruno@clisp.org>
23556
23557         Fix regression from 2010-04-25.
23558         * gnulib-tool (func_modules_transitive_closure): Check the status of
23559         all modules, not only of the tests that are of the form foo-tests where
23560         foo is a module.
23561
23562 2010-05-02  Bruno Haible  <bruno@clisp.org>
23563
23564         wctob: Work around nasty Cygwin 1.7.2 bug.
23565         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23566         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23567
23568 2010-05-01  Bruno Haible  <bruno@clisp.org>
23569
23570         fpurge: Sharper test.
23571         * tests/test-fpurge.c (main): Add one more ftell check.
23572         * modules/fpurge-tests (Depends-on): Add ftell.
23573         Suggested by Eric Blake.
23574
23575 2010-05-01  Bruno Haible  <bruno@clisp.org>
23576
23577         ftello: Another test.
23578         * tests/test-ftello3.c: New file.
23579         * modules/ftello-tests (Files): Add it.
23580         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23581         MOSTLYCLEANFILES.
23582
23583         ftell: Another test.
23584         * tests/test-ftell3.c: New file.
23585         * modules/ftell-tests (Files): Add it.
23586         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23587         MOSTLYCLEANFILES.
23588
23589 2010-05-01  Bruno Haible  <bruno@clisp.org>
23590
23591         ftell, ftello: Work around Solaris bug.
23592         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23593         * lib/ftello.c: Include stdio-impl.h.
23594         (ftello): On Solaris, when _IOWRT is set, compute the result without
23595         looking at _IOREAD.
23596         * modules/ftello (Files): Add lib/stdio-impl.h.
23597         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23598         * doc/posix-functions/ftello.texi: Likewise.
23599         Reported by Eric Blake.
23600
23601 2010-05-01  Bruno Haible  <bruno@clisp.org>
23602
23603         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23604         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23605         the _IOWRT flag is also set.
23606
23607 2010-05-01  Bruno Haible  <bruno@clisp.org>
23608
23609         Fix doc about a HP-UX stdio bug.
23610         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23611         * doc/posix-functions/ftello.texi: Likewise.
23612
23613 2010-05-01  Bruno Haible  <bruno@clisp.org>
23614
23615         lseek test: Fix failure on Solaris.
23616         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23617         output.
23618
23619 2010-04-30  Jim Meyering  <meyering@redhat.com>
23620
23621         bootstrap: don't ignore failure to generate po*/Makevars
23622         * build-aux/bootstrap (with_gettext): Don't ignore failure
23623         to create po/Makevars or runtime-po/Makevars.
23624
23625 2010-04-29  Eric Blake  <eblake@redhat.com>
23626
23627         headers: relax license to LGPLv2+
23628         * modules/fcntl-h (License): Relax license.
23629         * modules/getopt-posix (License): Likewise.
23630         * modules/locale (License): Likewise.
23631         * modules/math (License): Likewise.
23632         * modules/pty (License): Likewise.
23633         * modules/sched (License): Likewise.
23634         * modules/search (License): Likewise.
23635         * modules/spawn (License): Likewise.
23636         * modules/stdarg (License): Likewise.
23637         * modules/sysexits (License): Likewise.
23638
23639 2010-04-29  Jim Meyering  <meyering@redhat.com>
23640
23641         inttypes: relax license to LGPLv2+
23642         * modules/inttypes (License): Relax license.
23643
23644 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23645
23646         * top/maint.mk (indent): Run twice to produce idempotent results.
23647
23648 2010-04-28  Bruno Haible  <bruno@clisp.org>
23649
23650         getdate: Generate getdate.c in the source directory.
23651         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23652         MOSTLYCLEANFILES.
23653         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23654
23655 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23656
23657         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23658         is not declared as a const *; avoid warnings in that case.
23659
23660 2010-04-28  Eric Blake  <eblake@redhat.com>
23661
23662         canonicalize-lgpl: avoid compiler warning
23663         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23664         declaration' / 'extraneous semicolon' warning with some compilers.
23665         Reported by Andreas Gruenbacher.
23666
23667 2010-04-28  Jim Meyering  <meyering@redhat.com>
23668
23669         init.sh: ensure a more reliable exit status when exiting via trap
23670         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23671         Inspired by patches from Dmitry V. Levin.
23672         Also trap on signal 3 (SIGQUIT).
23673
23674 2010-04-27  Bruno Haible  <bruno@clisp.org>
23675
23676         Update doc about utimes().
23677         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23678         'utimens' module.
23679         Reported by Andreas Gruenbacher <agruen@suse.de>.
23680
23681 2010-04-27  Eric Blake  <eblake@redhat.com>
23682
23683         full-read, full-write: relax license
23684         * modules/full-read (License): Drop to LGPLv2+.
23685         * modules/full-write (License): Likewise.
23686         * modules/safe-read (License): Likewise.
23687         * modules/safe-write (License): Likewise.
23688
23689         pthread: mention library for linking
23690         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23691
23692 2010-04-27  Jim Meyering  <meyering@redhat.com>
23693
23694         maint.mk: fix a bug introduced in last change
23695         * top/maint.mk (gl_assured_headers_): Now that all names are on
23696         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23697         is not anchored to end of word, it should be adequate.
23698
23699         maint.mk: avoid side-effect in latest syntax-check
23700         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23701         to run commands via $(shell...), and hence to incur cost only when
23702         the new rule is actually run.
23703
23704         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23705         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23706         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23707         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23708         (gl_assured_headers_, az_, AZ_): Define.
23709         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23710
23711 2010-04-26  Jim Meyering  <jim@meyering.net>
23712             Bruno Haible  <bruno@clisp.org>
23713
23714         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23715         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23716         Prompted by an exchange with Gilles Espinasse.
23717
23718 2010-04-26  Jim Meyering  <meyering@redhat.com>
23719
23720         git-version-gen: aesthetic tweak
23721         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23722         so that the command remains on a single line.
23723
23724 2010-04-26  Eric Blake  <eblake@redhat.com>
23725
23726         git-version-gen: allow use on EBCDIC hosts
23727         * build-aux/git-version-gen (dirty): Use literal rather than tying
23728         ourselves to ascii.
23729         Reported by Steve Goetze.
23730
23731 2010-04-25  Bruno Haible  <bruno@clisp.org>
23732
23733         netdb: Add support for GNULIB_POSIXCHECK.
23734         * lib/netdb.in.h: Include warn-on-use.h.
23735         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23736         functions are used when GNULIB_POSIXCHECK is defined and the
23737         getaddrinfo module is not in use.
23738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23739         freeaddrinfo, gai_strerror, getnameinfo are declared.
23740         * modules/netdb (Depends-on): Add warn-on-use.
23741         (Makefile.am): Include warn-on-use.h in netdb.h.
23742
23743 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23744
23745         build: avoid "make check" failure without .git/ directory
23746         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23747         there is no .git/ directory.
23748
23749 2010-04-25  Bruno Haible  <bruno@clisp.org>
23750
23751         ptsname: Fix misuse of ttyname_r.
23752         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23753         of errno.
23754
23755 2010-04-25  Bruno Haible  <bruno@clisp.org>
23756
23757         ttyname_r: Make it work on Solaris 10.
23758         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23759         if the system function has the POSIX declaration. Test whether the
23760         function fails if the buffer is less than 128 bytes large.
23761         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23762         system's ttyname_r function. Provide a reasonably large buffer.
23763         * modules/ttyname_r (Depends-on): Add extensions.
23764         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23765
23766 2010-04-25  Bruno Haible  <bruno@clisp.org>
23767
23768         Use the 'extensions' module for some more functions on Solaris.
23769         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23770         module.
23771         * doc/posix-functions/ctime_r.texi: Likewise.
23772         * doc/posix-functions/getgrgid_r.texi: Likewise.
23773         * doc/posix-functions/getgrnam_r.texi: Likewise.
23774         * doc/posix-functions/getpwnam_r.texi: Likewise.
23775         * doc/posix-functions/getpwuid_r.texi: Likewise.
23776         * doc/posix-functions/readdir_r.texi: Likewise.
23777         * doc/posix-functions/sigwait.texi: Likewise.
23778         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23779         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23780
23781 2010-04-25  Bruno Haible  <bruno@clisp.org>
23782
23783         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23784         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23785         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23786         * lib/ttyname_r.c: Include <limits.h>.
23787         (ttyname_r): Define using the system's ttyname_r function, if it exists
23788         and not on Solaris.
23789         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23790         set.
23791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23792         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23793         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23794         Reported by Simon Josefsson.
23795
23796 2010-04-25  Bruno Haible  <bruno@clisp.org>
23797
23798         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23799         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23800         * doc/posix-functions/ctime_r.texi: Likewise.
23801         * doc/posix-functions/getgrgid_r.texi: Likewise.
23802         * doc/posix-functions/getgrnam_r.texi: Likewise.
23803         * doc/posix-functions/getlogin_r.texi: Likewise.
23804         * doc/posix-functions/getpwnam_r.texi: Likewise.
23805         * doc/posix-functions/getpwuid_r.texi: Likewise.
23806         * doc/posix-functions/readdir_r.texi: Likewise.
23807         * doc/posix-functions/sigwait.texi: Likewise.
23808         * doc/posix-functions/ttyname_r.texi: Likewise.
23809         Reported by Simon Josefsson.
23810
23811 2010-04-25  Bruno Haible  <bruno@clisp.org>
23812
23813         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23814         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23815         also to --create-testdir.
23816         (func_acceptable): Don't consider the status of *-tests modules here.
23817         (func_modules_transitive_closure): Consider it here, before including a
23818         test module.
23819         (func_import, func_create_testdir): Set inc_all_direct_tests,
23820         inc_all_indirect_tests.
23821         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23822         --create-testdir and --create-megatestdir.
23823
23824 2010-04-25  Bruno Haible  <bruno@clisp.org>
23825
23826         gnulib-tool: Add --without-*-tests options.
23827         * gnulib-tool (func_usage): Document the --without-*-tests options.
23828         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23829         excl_unportable_tests): New variables.
23830         Fail if they are specified with --import or --update.
23831         (func_acceptable): Respect the excl_*_tests variables.
23832         (func_import): Set the excl_*_tests variables to empty.
23833
23834 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23835             Bruno Haible  <bruno@clisp.org>
23836
23837         Work around a MacOS X 10.4 bug with openpty.
23838         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23839         * tests/test-openpty.c (main): Close the master side explicitly.
23840
23841 2010-04-25  Bruno Haible  <bruno@clisp.org>
23842
23843         strnlen: Fix a C++ test error on MacOS X and Solaris.
23844         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23845         the function is not declared.
23846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23847         Simon Josefsson.
23848
23849 2010-04-24  Bruno Haible  <bruno@clisp.org>
23850
23851         Avoid a gcc warning.
23852         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23853         of correct type for %08lx directive.
23854         Reported by Eric Blake.
23855
23856 2010-04-24  Bruno Haible  <bruno@clisp.org>
23857
23858         vasnprintf: Correct errno value in case of out-of-memory.
23859         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23860         or sprintf. Use the errno value from SNPRINTF or sprintf.
23861         Reported by Ian Beckwith <ianb@erislabs.net>.
23862
23863 2010-04-24  Bruno Haible  <bruno@clisp.org>
23864
23865         ansi-c++-opt: Find correct compiler when cross-compiling.
23866         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23867         AC_CHECK_PROGS.
23868         Reported by Simon Josefsson.
23869
23870 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23871
23872         vc-list-files: Add support for subversion
23873         * build-aux/vc-list-files: Use "svn list" to generate the list of
23874         files controlled by subversion.
23875
23876 2010-04-23  Jim Meyering  <meyering@redhat.com>
23877
23878         vc-list-files tests: convert to use init.sh
23879         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23880         path_prepend_.
23881         Use Exit, not exit.
23882         Use skip_ rather than open coding it.
23883         Remove trap set-up and compare definitions.
23884         * tests/test-vc-list-files-git.sh: Likewise.
23885         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23886
23887 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23888
23889         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23890         backup files.
23891
23892 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23893
23894         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23895
23896 2010-04-20  Eric Blake  <eblake@redhat.com>
23897
23898         tests: be robust to ignored SIGPIPE
23899         * tests/test-select-in.sh: Consume all output.
23900         * tests/test-lseek.sh: Check correct exit status, while avoiding
23901         EPIPE.
23902
23903 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23904             Bruno Haible  <bruno@clisp.org>
23905
23906         visibility: Don't use -fvisibility if it leads to a warning.
23907         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23908         yes, don't pretend that visibility works if it leads to a warning.
23909         Reported by Mike Gran <spk121@yahoo.com>.
23910
23911 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23912
23913         * build-aux/bootstrap: Use "git -h" for testing for supported options
23914         instead of "git --help".  The short-form option only shows a summary,
23915         and doesn't layout the full man page.  Grep for the full option name
23916         in the summary, too.
23917
23918 2010-04-19  Bruno Haible  <bruno@clisp.org>
23919
23920         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23922         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23923         mention of RELOCATABLE_STRIP.
23924         Reported by Sylvain Beucler <beuc@beuc.net>.
23925
23926 2010-04-19  Bruno Haible  <bruno@clisp.org>
23927
23928         * lib/diffseq.h: Fix typo in comment.
23929         Reported by Eric Blake.
23930
23931 2010-04-19  Bruno Haible  <bruno@clisp.org>
23932
23933         ioctl: Move autoconf macro to a .m4 file.
23934         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23935         * modules/ioctl (Files): Add it.
23936         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23937         Reported by Ian Beckwith <ianb@erislabs.net>.
23938
23939 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23940             Bruno Haible  <bruno@clisp.org>
23941
23942         diffseq: Accommodate use-case with abstract arrays.
23943         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23944         is not defined.
23945         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23946         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23947
23948 2010-04-18  Bruno Haible  <bruno@clisp.org>
23949
23950         * doc/posix-headers/stdbool.texi: More precise wording.
23951
23952 2010-04-17  Jim Meyering  <meyering@redhat.com>
23953
23954         maint.mk: use gnu-style indentation in an embedded perl script
23955         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23956         Rename variable: s/two/last_two_bytes/
23957
23958 2010-04-16  Eric Blake  <eblake@redhat.com>
23959
23960         test-stdbool: skip test that fails with Solaris CC
23961         * tests/test-stdbool.c (f): Skip test that causes compilation
23962         error under buggy C++ compiler.
23963         * lib/stdbool.in.h: Document the limitation.
23964         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23965
23966         setenv: allow compilation with C++
23967         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23968         register keyword.
23969
23970         stdint: allow test to pass with C++
23971         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23972
23973         getopt: allow compilation with C++
23974         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23975         struct.
23976         * lib/getopt.c (_getopt_internal_r): Use correct type.
23977         Reported by Dagobert Michelson, via Joel E. Denny.
23978
23979 2010-04-16  Bruno Haible  <bruno@clisp.org>
23980
23981         Override netdb.h always.
23982         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23984         Reported by Ludovic Courtès <ludo@gnu.org>.
23985
23986 2010-04-15  Bruno Haible  <bruno@clisp.org>
23987
23988         openpty: Fix mistake from 2010-03-21.
23989         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23990         Reported by Simon Josefsson.
23991
23992 2010-04-15  Eric Blake  <eblake@redhat.com>
23993
23994         test-forkpty: fix expected signature
23995         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23996         Reported by Simon Josefsson.
23997
23998 2010-04-15  Jim Meyering  <meyering@redhat.com>
23999
24000         maint.mk: texinfo_suffix_re_: correct the default regexp
24001         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24002
24003         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24004         make it configurable via texinfo_suffix_re_.
24005
24006 2010-04-14  Eric Blake  <eblake@redhat.com>
24007
24008         strtok_r: relax license to LGPLv2+
24009         * modules/strtok_r (License): Relax license.
24010         Reported by Matthias Bolte.
24011
24012 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24013
24014         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24015         version 1.4.4 by default instead of requiring the libgcrypt
24016         version used during build.  This makes it possible to use the
24017         application with older but still binary compatible libgcrypt
24018         versions.
24019
24020 2010-04-13  Eric Blake  <eblake@redhat.com>
24021
24022         getopt-gnu: match recent glibc fixes and posix ruling
24023         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24024         '+' handling, when requesting extensions.
24025         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24026         'W;' handling.
24027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24028         * doc/posix-functions/getopt.texi (getopt): Document this.
24029         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24030         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24031         Likewise.
24032
24033         getopt: merge bug fixes from glibc
24034         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24035         diagnostics.  Honor '+:' correctly.  Reject ';'.
24036
24037         getopt-posix: detect MacOS bug
24038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24039         optind when missing a required argument.
24040         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24041         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24042         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24043         Likewise.
24044
24045         getopt-posix: avoid spurious failure on Solaris
24046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24047         an indicator that setting optind=1 is sufficient for reset.
24048
24049         getopt-posix: avoid spurious failure on FreeBSD
24050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24051         in POSIX mode, since the m4 test uses it.
24052
24053         gnulib-tool: silence warning on BSD sh
24054         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24055
24056 2010-04-13  Jim Meyering  <meyering@redhat.com>
24057
24058         doc: users.txt: GNU patch now uses gnulib
24059         * users.txt: Add patch.
24060
24061 2010-04-12  Jim Meyering  <meyering@redhat.com>
24062
24063         maint.mk: generate more concise timing data for syntax-check rules
24064         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24065         " done" from each line that reports a syntax-check test duration.
24066
24067 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24068
24069         git-version-gen: use "git update-index..." rather than "git status"
24070         * build-aux/git-version-gen: Use git update-index --refresh, not
24071         "git status".  With some versions of git, "git status" would fail
24072         to update the index and result in an unwarranted "-dirty" suffix.
24073
24074 2010-04-11  Jim Meyering  <meyering@redhat.com>
24075
24076         openat: correct formatting (no semantic change)
24077         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24078         Suggested by Bruno Haible.
24079
24080 2010-04-11  Bruno Haible  <bruno@clisp.org>
24081
24082         Stricter declaration checking in testdirs.
24083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24084         If for_tests is true, augment AM_CPPFLAGS to define
24085         GNULIB_STRICT_CHECKING.
24086         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24087         GNULIB_STRICT_CHECKING is defined, verify that the function is
24088         declared.
24089
24090 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24091             Bruno Haible  <bruno@clisp.org>
24092
24093         libunistring: Improve configure output.
24094         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24095         Don't say "consider installing GNU libunistring" when checking again
24096         with libiconv.
24097
24098 2010-04-11  Bruno Haible  <bruno@clisp.org>
24099
24100         libunistring: Correct value of $LTLIBUNISTRING.
24101         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24102         correct the value of $LTLIBUNISTRING.
24103
24104 2010-04-11  Bruno Haible  <bruno@clisp.org>
24105
24106         havelib: Add static libraries to LIBS in the right order.
24107         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24108         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24109
24110 2010-04-11  Bruno Haible  <bruno@clisp.org>
24111
24112         libunistring: Detect libunistring also when it depends on libiconv.
24113         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24114         the second AC_LIB_HAVE_LINKFLAGS invocation.
24115
24116 2010-04-11  James Youngman  <jay@gnu.org>
24117
24118         close-stream: declare local scalars to be "const"
24119         * lib/close-stream.c (close_stream): Make boolean variables const
24120         to document the fact that we set but do not change them.
24121
24122 2010-04-11  Bruno Haible  <bruno@clisp.org>
24123
24124         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24125
24126 2010-04-11  Jim Meyering  <meyering@redhat.com>
24127
24128         maint.mk: don't include dist-check.mk
24129         * top/maint.mk: Remove bogus include directive.
24130
24131         maint.mk: improve empty-line-at-EOF check
24132         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24133         solution, rather than tail+Perl-based one.  The latter would read
24134         a few kilobytes from the end of each file, and did not handle empty
24135         files properly.
24136
24137         maint.mk: print the elapsed time for each syntax-check rule
24138         * top/maint.mk (sc_m_rules_): Save start time in a file.
24139         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24140         (local-check): Interpose the .z rules
24141
24142 2010-04-11  Jim Meyering  <meyering@redhat.com>
24143
24144         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24145         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24146         empty file with one that ends in an empty line.
24147
24148 2010-04-10  Bruno Haible  <bruno@clisp.org>
24149
24150         mkdir: Make it work on mingw64.
24151         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24152         * lib/mkdir.c: Update comment.
24153         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24154
24155 2010-04-10  Bruno Haible  <bruno@clisp.org>
24156
24157         Don't override improved macro from newer autoconf.
24158         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24159         autoconf >= 2.62.
24160         Reported by Joel E. Denny <jdenny@clemson.edu>.
24161
24162 2010-04-10  Jim Meyering  <meyering@redhat.com>
24163
24164         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24165         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24166
24167         maint.mk: correct a diagnostic
24168         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24169         in diagnostic; now use $prohibit.
24170
24171 2010-04-10  Bruno Haible  <address@hidden>
24172
24173         fchownat: Fix a C++ test error on Solaris 8.
24174         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24175         the function does not exist.
24176
24177 2010-04-10  Bruno Haible  <bruno@clisp.org>
24178
24179         vasnprintf: Add more tests.
24180         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24181         (test_function): Test converting an invalid wide string.
24182
24183         vasnprintf: Correct handling of unconvertible wide string arguments.
24184         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24185         VASNPRINTF.
24186         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24187         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24188         smaller than the expected maximum need for the directive. Set errno to
24189         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24190         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24192         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24193         * modules/vasnprintf (Files): Add m4/printf.m4.
24194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24195
24196 2010-04-10  Bruno Haible  <bruno@clisp.org>
24197
24198         vasnprintf: Fix crash in %ls directive.
24199         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24200         string is passed as argument to %ls, with no precision and no width.
24201         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24202
24203 2010-04-10  Bruno Haible  <bruno@clisp.org>
24204
24205         vasnprintf: Fix multiple test failures on mingw.
24206         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24207         _snprintf, or snwprintf, not _snwprintf.
24208
24209 2010-04-10  Bruno Haible  <bruno@clisp.org>
24210
24211         write: Fix a C++ test error on mingw.
24212         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24213
24214 2010-04-10  Bruno Haible  <bruno@clisp.org>
24215
24216         vasnprintf test: Reduce code duplication.
24217         * tests/test-vasnprintf.c (test_function): New function, extracted from
24218         test_vasnprintf.
24219         (test_vasnprintf, test_asnprintf): Invoke it.
24220
24221 2010-04-10  Bruno Haible  <bruno@clisp.org>
24222
24223         strnlen: Fix warning in C++ mode on MacOS X.
24224         * lib/string.in.h (strnlen): Use the modern idiom.
24225         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24226         defining strnlen as a macro already in <config.h>.
24227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24228         REPLACE_STRNLEN.
24229         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24230         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24231
24232 2010-04-08  James Youngman  <jay@gnu.org>
24233
24234         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24235         the example.
24236
24237 2010-04-09  Jim Meyering  <meyering@redhat.com>
24238
24239         maint.mk: print better diagnostic when there is no $(_hv_file)
24240         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24241         announce that when $(_hv_file) (aka help-version) does not exist.
24242
24243         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24244         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24245         not try to interpret its random input bytes.  Jarno Rajahalme reported
24246         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24247         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24248         (mktempd_): Likewise, just in case.
24249
24250         ftruncate: add two years to projected module removal date: 2012
24251         * m4/ftruncate.m4: Adjust comments.
24252
24253         ftruncate: mark module as obsolete; even MinGW provides it, now
24254         * modules/ftruncate (Status): Obsolete.
24255         (Notice): Say that.
24256         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24257         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24258
24259 2010-04-08  Bruno Haible  <bruno@clisp.org>
24260
24261         Fix side effects from tests-related modules.
24262         * modules/dprintf-posix (Comment): New section.
24263         * modules/fprintf-posix (Comment): Likewise.
24264         * modules/obstack-printf-posix (Comment): Likewise.
24265         * modules/printf-posix (Comment): Likewise.
24266         * modules/snprintf-posix (Comment): Likewise.
24267         * modules/sprintf-posix (Comment): Likewise.
24268         * modules/vasnprintf-posix (Comment): Likewise.
24269         * modules/vasprintf-posix (Comment): Likewise.
24270         * modules/vdprintf-posix (Comment): Likewise.
24271         * modules/vfprintf-posix (Comment): Likewise.
24272         * modules/vprintf-posix (Comment): Likewise.
24273         * modules/vsnprintf-posix (Comment): Likewise.
24274         * modules/vsprintf-posix (Comment): Likewise.
24275         * modules/xprintf-posix (Comment): Likewise.
24276         * modules/xvasprintf-posix (Comment): Likewise.
24277         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24278         * modules/floorf-tests (Depends-on): Likewise.
24279         * modules/round-tests (Depends-on): Likewise.
24280         * modules/roundf-tests (Depends-on): Likewise.
24281         * modules/trunc-tests (Depends-on): Likewise.
24282         * modules/truncf-tests (Depends-on): Likewise.
24283         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24284         'fprintf-posix' module is not present.
24285         * tests/test-floorf2.c (check): Likewise.
24286         * tests/test-trunc2.c (check): Likewise.
24287         * tests/test-truncf2.c (check): Likewise.
24288         * tests/test-round2.c (equal): Likewise.
24289         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24290
24291 2010-04-07  Karl Berry  <karl@gnu.org>
24292
24293         * config/srclist.txt,
24294         * config/srclistvars.sh,
24295         * config/srclist-update: doc fixes.
24296
24297 2010-04-07  Jim Meyering  <meyering@redhat.com>
24298
24299         maint.mk: add a PATH crosschecking syntax-check rule
24300         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24301         Useful if you use a test like the one in help-version (coreutils,
24302         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24303         printed by prog --version.
24304
24305 2010-04-06  Bruno Haible  <bruno@clisp.org>
24306
24307         Fix link error on mingw.
24308         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24309         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24310
24311 2010-04-06  Bruno Haible  <bruno@clisp.org>
24312
24313         Assume rmdir exists.
24314         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24315
24316 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24317
24318         doc: update users.txt
24319         * users.txt: Add gcal.
24320
24321 2010-04-06  Jim Meyering  <meyering@redhat.com>
24322
24323         init.sh: simply unset TMPDIR rather than risking env -i
24324         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24325         although it probably works fine on all Unix-based systems, some
24326         systems (Cygwin?) cannot tolerate a totally cleared environment.
24327         Suggestion from Eric Blake.
24328
24329 2010-04-06  Jim Meyering  <meyering@redhat.com>
24330
24331         init.sh: portability fix: use env's POSIX-specified -i option not -u
24332         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24333         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24334
24335 2010-04-05  Bruno Haible  <bruno@clisp.org>
24336
24337         btowc: Work around Cygwin 1.7.2 bug.
24338         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24339         does not map NUL to 0.
24340         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24341
24342 2010-04-05  Bruno Haible  <bruno@clisp.org>
24343
24344         Make the multithread modules work on Cygwin 1.7.2.
24345         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24346         imported symbols can be declared weak, so that it returns "no" on
24347         Cygwin 1.7.2.
24348
24349 2010-04-05  Bruno Haible  <bruno@clisp.org>
24350
24351         Use the module 'strncat'.
24352         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24353
24354         Tests for module 'strncat'.
24355         * modules/strncat-tests: New file.
24356         * tests/test-strncat.c: New file.
24357
24358         New module 'strncat'.
24359         * lib/string.in.h (strncat): New declaration.
24360         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24361         * m4/strncat.m4: New file, based on m4/memchr.m4.
24362         * modules/strncat: New file.
24363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24364         is declared.
24365         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24366         REPLACE_STRNCAT.
24367         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24368         REPLACE_STRNCAT.
24369         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24370         module.
24371         * tests/test-string-c++.cc: Check signature of strncat.
24372
24373 2010-04-05  Jim Meyering  <meyering@redhat.com>
24374
24375         xstrtoumax-tests: convert to use init.sh
24376         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24377         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24378         Use Exit, not exit.
24379         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24380
24381         xstrtoimax-tests: convert to use init.sh
24382         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24383         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24384         Use Exit, not exit.
24385         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24386
24387 2010-04-05  Bruno Haible  <bruno@clisp.org>
24388
24389         sys_socket: Avoid #define replacements in C++ mode.
24390         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24391         warning to the function if possible, rather than #defining the symbol
24392         to a dysfunctional alias.
24393
24394 2010-04-05  Bruno Haible  <bruno@clisp.org>
24395
24396         fseeko: Fix C++ test error on mingw.
24397         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24398         gl_FUNC_FSEEKO.
24399         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24400         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24402         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24403
24404 2010-04-05  Bruno Haible  <bruno@clisp.org>
24405
24406         duplocale: Improve test output.
24407         * tests/test-duplocale.c (main): Print reason for skipped test.
24408
24409 2010-04-05  Bruno Haible  <bruno@clisp.org>
24410
24411         Assume rmdir exists.
24412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24413         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24414
24415 2010-04-05  Bruno Haible  <bruno@clisp.org>
24416
24417         Fix link error on Solaris 8 with cc.
24418         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24419
24420 2010-04-05  Bruno Haible  <bruno@clisp.org>
24421
24422         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24423         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24424
24425 2010-04-05  Bruno Haible  <bruno@clisp.org>
24426
24427         vasprintf: Update documentation.
24428         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24429
24430 2010-04-05  Bruno Haible  <bruno@clisp.org>
24431
24432         ptsname: Improve test.
24433         * tests/test-ptsname.c (main): Also try the various master names of BSD
24434         systems.
24435
24436 2010-04-05  Bruno Haible  <bruno@clisp.org>
24437
24438         memchr: Avoid a possible C++ test error.
24439         * lib/string.in.h (memchr): Provide declaration if function is missing.
24440         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24441         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24443         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24444
24445 2010-04-05  Bruno Haible  <bruno@clisp.org>
24446
24447         strtok_r: Improve idiom.
24448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24449         AC_LIBOBJ is used.
24450
24451 2010-04-05  Bruno Haible  <bruno@clisp.org>
24452
24453         strdup: Improve idiom.
24454         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24455         AC_LIBOBJ is used.
24456         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24457         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24458         when AC_LIBOBJ is used.
24459
24460 2010-04-05  Bruno Haible  <bruno@clisp.org>
24461
24462         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24463         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24464         don't set REPLACE_MBSINIT to 1.
24465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24466         don't set REPLACE_MBRTOWC to 1.
24467         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24468         exist, don't set REPLACE_MBSRTOWCS to 1.
24469         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24470         exist, don't set REPLACE_MBSNRTOWCS to 1.
24471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24472         don't set REPLACE_WCRTOMB to 1.
24473         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24474         exist, don't set REPLACE_WCSRTOMBS to 1.
24475         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24476         exist, don't set REPLACE_WCSNRTOMBS to 1.
24477
24478 2010-04-05  Bruno Haible  <bruno@clisp.org>
24479
24480         ldexpl: Improve idiom.
24481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24482         make sure to set HAVE_DECL_LDEXPL to 0.
24483
24484 2010-04-05  Jim Meyering  <meyering@redhat.com>
24485
24486         xstrtol-tests: convert to use init.sh
24487         * modules/xstrtol-tests (Files): Add tests/init.sh.
24488         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24489         Use Exit, not exit.
24490         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24491
24492         atexit-tests: convert to use init.sh
24493         * modules/atexit-tests (Files): Add tests/init.sh.
24494         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24495         Use Exit, not exit.
24496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24497
24498         init.sh: fix typo
24499         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24500
24501         init.sh: make it easier for a test script to write to the tty, ...
24502         when using automake's parallel-tests mode.
24503         * tests/init.sh (stderr_fileno_): Define overridable variable.
24504         (warn_): New function, to use it.
24505         (fail_, skip_, framework_failure_): Use warn_.
24506
24507 2010-04-04  Bruno Haible  <bruno@clisp.org>
24508
24509         btowc: Avoid warning.
24510         * lib/btowc.c: Include <stdlib.h>.
24511         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24512
24513 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24514             Bruno Haible  <bruno@clisp.org>
24515
24516         wchar: Port to NetBSD 1.5.
24517         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24518         * lib/wctype.in.h (WEOF): Likewise.
24519
24520 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24521             Bruno Haible  <bruno@clisp.org>
24522
24523         Port extended stdio to NetBSD 1.5.
24524         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24525         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24526         older.
24527
24528 2010-04-04  Bruno Haible  <bruno@clisp.org>
24529
24530         string: Remove unused substitution.
24531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24532         HAVE_DECL_STRERROR.
24533         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24534
24535 2010-04-04  Bruno Haible  <bruno@clisp.org>
24536
24537         strtod: Avoid a possible C++ test error.
24538         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24539         set REPLACE_STRTOD.
24540
24541 2010-04-04  Bruno Haible  <bruno@clisp.org>
24542
24543         strerror: Update documentation.
24544         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24545
24546 2010-04-04  Bruno Haible  <bruno@clisp.org>
24547
24548         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24549         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24550         _GL_CXXALIAS_SYS_CAST.
24551
24552 2010-04-04  Bruno Haible  <bruno@clisp.org>
24553
24554         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24555         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24556         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24557         REPLACE_FREXPL to 1.
24558         * doc/posix-functions/frexpl.texi: Update documentation.
24559
24560 2010-04-04  Bruno Haible  <bruno@clisp.org>
24561
24562         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24563         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24564
24565 2010-04-04  Bruno Haible  <bruno@clisp.org>
24566
24567         Implement nanosleep for native Windows.
24568         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24569
24570 2010-04-04  Bruno Haible  <bruno@clisp.org>
24571
24572         math: Fix some C++ test errors on Solaris 8.
24573         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24574
24575 2010-04-04  Bruno Haible  <bruno@clisp.org>
24576
24577         math: Fix some C++ test errors on Cygwin.
24578         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24579         truncl): Provide declaration if the system does not have it.
24580         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24581         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24582         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24583         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24584         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24585         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24586         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24587         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24588         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24589         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24590         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24591         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24592         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24593         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24594         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24595         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24597         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24598         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24599         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24600         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24601         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24602
24603 2010-04-04  Bruno Haible  <bruno@clisp.org>
24604
24605         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24606         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24607         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24608         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24610         * m4/isinf.m4 (gl_ISINF): Likewise.
24611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24612
24613 2010-04-04  Bruno Haible  <bruno@clisp.org>
24614
24615         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24616         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24617
24618 2010-04-04  Bruno Haible  <bruno@clisp.org>
24619
24620         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24621         * modules/tmpfile (configure.ac): Update.
24622
24623         tmpfile: Fix C++ test error on mingw.
24624         * lib/stdio.in.h (tmpfile): New declaration.
24625         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24626         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24627         * modules/tmpfile (Depends-on): Add stdio.
24628         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24629         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24630         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24631         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24632         REPLACE_TMPFILE.
24633         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24634
24635 2010-04-04  Bruno Haible  <bruno@clisp.org>
24636
24637         ioctl: Fix C++ test error on mingw.
24638         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24639         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24640         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24641
24642 2010-04-03  Bruno Haible  <bruno@clisp.org>
24643
24644         wcwidth: Fix C++ test error on mingw.
24645         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24647         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24648
24649 2010-04-03  Bruno Haible  <bruno@clisp.org>
24650
24651         nanosleep: Fix C++ test error on mingw.
24652         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24653         * lib/time.in.h (nanosleep): Use modern idiom.
24654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24655         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24656         REPLACE_NANOSLEEP to 1.
24657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24658         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24659
24660 2010-04-03  Bruno Haible  <bruno@clisp.org>
24661
24662         strptime: Fix C++ test error on mingw.
24663         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24664         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24665         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24666         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24667         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24668         not REPLACE_STRPTIME.
24669         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24670         REPLACE_STRPTIME.
24671
24672 2010-04-03  Bruno Haible  <bruno@clisp.org>
24673
24674         timegm: Fix C++ test error on mingw.
24675         * lib/time.in.h (timegm): Use modern idiom.
24676         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24677         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24679         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24680
24681 2010-04-03  Bruno Haible  <bruno@clisp.org>
24682
24683         timegm: Assume declaration if function exists.
24684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24685         if it exists. Don't clobber ac_cv_func_timegm.
24686
24687 2010-04-03  Bruno Haible  <bruno@clisp.org>
24688
24689         time_r: Fix C++ test error on mingw.
24690         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24691         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24692         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24693         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24694         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24695
24696 2010-04-03  Bruno Haible  <bruno@clisp.org>
24697
24698         time_r: Minor updates.
24699         * modules/time_r (Description): Mention the provided functions.
24700         * lib/time_r.c: Don't include <string.h>.
24701         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24702         * doc/posix-functions/localtime_r.texi: Likewise.
24703
24704 2010-04-03  Bruno Haible  <bruno@clisp.org>
24705
24706         time: Fix regression introduced on 2010-03-08.
24707         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24708         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24709
24710 2010-04-03  Jim Meyering  <meyering@redhat.com>
24711
24712         maint.mk: don't silently disable project-specific syntax-check rules
24713         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24714         that they need to convert their project-specific syntax-check rules
24715         to use the new _sc_search_regexp.
24716
24717 2010-04-03  Bruno Haible  <bruno@clisp.org>
24718
24719         fchdir: Fix regression introduced on 2010-03-08.
24720         * lib/unistd.in.h (fchdir): Fix declaration.
24721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24723         REPLACE_FCHDIR.
24724         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24725         REPLACE_FCHDIR.
24726
24727 2010-04-03  Bruno Haible  <bruno@clisp.org>
24728
24729         getpagesize: Fix C++ test error on mingw.
24730         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24731         system does not declare the function.
24732         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24733         declared.
24734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24735         HAVE_DECL_GETPAGESIZE.
24736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24737
24738 2010-04-03  Bruno Haible  <bruno@clisp.org>
24739
24740         stdio: Make C++ tests work on mingw.
24741         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24742         does not declare the function.
24743
24744 2010-04-03  Bruno Haible  <bruno@clisp.org>
24745
24746         ftello: Fix C++ test error on mingw.
24747         * lib/stdio.in.h (ftello): Use modern idiom.
24748         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24749         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24750         is missing and that it needs to be replaced.
24751         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24753         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24754
24755 2010-04-03  Bruno Haible  <bruno@clisp.org>
24756
24757         fseeko: Fix C++ test error on mingw.
24758         * lib/stdio.in.h (fseeko): Use modern idiom.
24759         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24761         is missing and that it needs to be replaced.
24762         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24764         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24765
24766 2010-04-03  Bruno Haible  <bruno@clisp.org>
24767
24768         mkstemp: Fix C++ test error on mingw.
24769         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24771         function is missing and that it needs to be replaced.
24772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24773         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24774
24775 2010-04-03  Bruno Haible  <bruno@clisp.org>
24776
24777         stpncpy: Fix C++ test error on mingw.
24778         * lib/string.in.h (stpncpy): Use modern idiom.
24779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24780         function is missing and that it needs to be replaced.
24781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24782         REPLACE_STPNCPY.
24783         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24784
24785 2010-04-03  Bruno Haible  <bruno@clisp.org>
24786
24787         sys_stat: Fix C++ test error on mingw.
24788         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24789         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24790
24791 2010-04-03  Bruno Haible  <bruno@clisp.org>
24792
24793         pty: Update doc.
24794         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24795
24796 2010-04-03  Bruno Haible  <bruno@clisp.org>
24797
24798         unistd: Fix C++ test error on mingw.
24799         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24800
24801 2010-04-03  Bruno Haible  <bruno@clisp.org>
24802
24803         Update doc regarding mingw.
24804         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24805         * doc/glibc-functions/login_tty.texi: Likewise.
24806         * doc/glibc-functions/forkpty.texi: Likewise.
24807
24808 2010-04-03  Bruno Haible  <bruno@clisp.org>
24809
24810         stdlib: Avoid compilation failure of c-strtold on mingw.
24811         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24812
24813 2010-04-03  Bruno Haible  <bruno@clisp.org>
24814
24815         locale: Make C++ tests work on Cygwin and mingw.
24816         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24817         cannot provide the function.
24818         Reported by Simon Josefsson.
24819
24820 2010-04-03  Bruno Haible  <bruno@clisp.org>
24821
24822         localename: Port to MacOS X 10.6.
24823         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24824         memory layout of the locales in MacOS X 10.6 as well.
24825         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24826
24827 2010-04-02  Bruno Haible  <bruno@clisp.org>
24828
24829         gnulib-tool: Ensure that long-running tests are executed last.
24830         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24831         running tests after the one for the other tests.
24832
24833 2010-04-02  Bruno Haible  <bruno@clisp.org>
24834
24835         gnulib-tool: Ensure the tests in the main directory are executed first.
24836         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24837         start with the current directory.
24838
24839 2010-04-02  Bruno Haible  <bruno@clisp.org>
24840
24841         Tests for module 'havelib', moved here from GNU gettext.
24842         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24843         modifications.
24844         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24845         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24846         with modifications.
24847         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24848         modifications.
24849         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24850         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24851         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24852         with modifications.
24853         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24854         with modifications.
24855         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24856         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24857         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24858         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24859         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24860         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24861         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24862         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24863         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24864         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24865         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24866         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24867         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24868         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24869         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24870         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24871         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24872         with modifications.
24873         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24874         with modifications.
24875         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24876         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24877         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24878         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24879         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24880         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24881         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24882         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24883         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24884         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24885         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24886         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24887         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24888         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24889         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24890         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24891         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24892         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24893         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24894         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24895         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24896         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24897         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24898         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24899         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24900         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24901         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24902         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24903         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24904         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24905         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24906         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24907         * tests/havelib/rpathx/rpathx.c: New file, from
24908         gettext/autoconf-lib-link.
24909         * tests/havelib/rpathx/Makefile.am: New file, from
24910         gettext/autoconf-lib-link.
24911         * tests/havelib/rpathx/configure.ac: New file, from
24912         gettext/autoconf-lib-link with modifications.
24913         * tests/havelib/rpathy/rpathy.c: New file, from
24914         gettext/autoconf-lib-link.
24915         * tests/havelib/rpathy/Makefile.am: New file, from
24916         gettext/autoconf-lib-link.
24917         * tests/havelib/rpathy/configure.ac: New file, from
24918         gettext/autoconf-lib-link with modifications.
24919         * tests/havelib/rpathz/rpathz.c: New file, from
24920         gettext/autoconf-lib-link.
24921         * tests/havelib/rpathz/Makefile.am: New file, from
24922         gettext/autoconf-lib-link.
24923         * tests/havelib/rpathz/configure.ac: New file, from
24924         gettext/autoconf-lib-link with modifications.
24925         * tests/havelib/rpathlx/usex.c: New file, from
24926         gettext/autoconf-lib-link.
24927         * tests/havelib/rpathlx/Makefile.am: New file, from
24928         gettext/autoconf-lib-link.
24929         * tests/havelib/rpathlx/configure.ac: New file, from
24930         gettext/autoconf-lib-link with modifications.
24931         * tests/havelib/rpathly/usey.c: New file, from
24932         gettext/autoconf-lib-link.
24933         * tests/havelib/rpathly/Makefile.am: New file, from
24934         gettext/autoconf-lib-link.
24935         * tests/havelib/rpathly/configure.ac: New file, from
24936         gettext/autoconf-lib-link with modifications.
24937         * tests/havelib/rpathlz/usez.c: New file, from
24938         gettext/autoconf-lib-link.
24939         * tests/havelib/rpathlz/Makefile.am: New file, from
24940         gettext/autoconf-lib-link.
24941         * tests/havelib/rpathlz/configure.ac: New file, from
24942         gettext/autoconf-lib-link with modifications.
24943         * tests/havelib/rpathlyx/usey.c: New file, from
24944         gettext/autoconf-lib-link.
24945         * tests/havelib/rpathlyx/Makefile.am: New file, from
24946         gettext/autoconf-lib-link.
24947         * tests/havelib/rpathlyx/configure.ac: New file, from
24948         gettext/autoconf-lib-link with modifications.
24949         * tests/havelib/rpathlzyx/usez.c: New file, from
24950         gettext/autoconf-lib-link.
24951         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24952         gettext/autoconf-lib-link.
24953         * tests/havelib/rpathlzyx/configure.ac: New file, from
24954         gettext/autoconf-lib-link with modifications.
24955         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24956         with modifications.
24957
24958 2010-04-02  Bruno Haible  <bruno@clisp.org>
24959
24960         gnulib-tool: Create distributed built sources also for the tests.
24961         * gnulib-tool (func_create_testdir): Also generate distributed built
24962         sources in the tests directory.
24963
24964 2010-04-02  Bruno Haible  <bruno@clisp.org>
24965
24966         gnulib-tool: Obey user's environment variables.
24967         * gnulib-tool (func_create_testdir): When creating built sources,
24968         respect the environment variables for autoconf, automake, etc. given by
24969         the user.
24970
24971 2010-04-02  Bruno Haible  <bruno@clisp.org>
24972
24973         gnulib-tool: Provide the value of --m4-base to modules.
24974         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24975         of gl_m4_base.
24976
24977 2010-04-02  Eric Blake  <eblake@redhat.com>
24978
24979         maint.mk: fix some fallout
24980         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24981         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24982
24983 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24984
24985         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24986         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24987         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24988         (sc_cast_of_x_alloc_return_value): Likewise.
24989         (sc_cast_of_alloca_return_value): Likewise.
24990         (sc_space_tab): Likewise.
24991         (sc_prohibit_atoi_atof): Likewise.
24992         (sc_prohibit_magic_number_exit): Likewise.
24993         (sc_error_exit_success): Likewise.
24994         (sc_file_system): Likewise.
24995         (sc_prohibit_have_config_h): Likewise.
24996         (sc_require_config_h): Likewise.
24997         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24998         (sc_obsolete_symbols): Likewise.
24999         (sc_changelog): Likewise.
25000         (sc_program_name): Likewise.
25001         (sc_the_the): Likewise.
25002         (sc_trailing_blank): Likewise.
25003         (sc_two_space_separator_in_usage): Likewise.
25004         (sc_useless_cpp_parens): Likewise.
25005         (sc_GPL_version): Likewise.
25006         (sc_GFDL_version): Likewise.
25007         (sc_texinfo_acronym): Likewise.
25008         (sc_prohibit_cvs_keyword): Likewise.
25009         (sc_prohibit_stat_st_blocks): Likewise.
25010         (sc_prohibit_S_IS_definition): Likewise.
25011         (sc_redundant_const): Likewise.
25012         (sc_makefile_TAB_only_indentation): Likewise.
25013         (sc_m4_quote_check): Likewise.
25014         (sc_makefile_path_separator_check): Likewise.
25015         (sc_copyright_check): Likewise.
25016         (sc_Wundef_boolean): Likewise.
25017         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25018
25019         maint.mk: match 0 or more whitespace-before-function-call '('
25020         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25021         that have zero or two-and-more spaces between the function name
25022         and the open parenthesis.
25023         (sc_error_message_warn_fatal): Likewise.
25024         (sc_error_message_uppercase): Likewise.
25025         (sc_error_message_period): Likewise.
25026
25027 2010-03-31  Eric Blake  <eblake@redhat.com>
25028
25029         maint.mk: check for [ as well as test
25030         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25031         Based on a libvirt report by Matthias Bolte.
25032
25033         gnumakefile: don't squelch _version output
25034         * top/GNUmakefile (_version): Create one-shot dependency rather
25035         than using $(shell) when version must be regenerated.
25036         (_autoreconf): Run verbosely, by default.
25037
25038         sys_time: avoid compiler warnings
25039         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25040         unconditional, fixing regression from 2010-03-29.
25041         Reported by Simon Josefsson.
25042
25043 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25044
25045         maint.mk: s/_header_without_use/_sc_header_without_use/
25046         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25047         (sc_prohibit_assert_without_use): Use the new name.
25048         (sc_prohibit_close_stream_without_use): Likewise.
25049         (sc_prohibit_getopt_without_use): Likewise.
25050         (sc_prohibit_quotearg_without_use): Likewise.
25051         (sc_prohibit_quote_without_use): Likewise.
25052         (sc_prohibit_long_options_without_use): Likewise.
25053         (sc_prohibit_inttostr_without_use): Likewise.
25054         (sc_prohibit_ignore_value_without_use): Likewise.
25055         (sc_prohibit_error_without_use): Likewise.
25056         (sc_prohibit_xalloc_without_use): Likewise.
25057         (sc_prohibit_hash_without_use): Likewise.
25058         (sc_prohibit_hash_pjw_without_use): Likewise.
25059         (sc_prohibit_safe_read_without_use): Likewise.
25060         (sc_prohibit_argmatch_without_use): Likewise.
25061         (sc_prohibit_canonicalize_without_use): Likewise.
25062         (sc_prohibit_root_dev_ino_without_use): Likewise.
25063         (sc_prohibit_openat_without_use): Likewise.
25064         (sc_prohibit_c_ctype_without_use): Likewise.
25065         (sc_prohibit_signal_without_use): Likewise.
25066         (sc_prohibit_intprops_without_use): Likewise.
25067
25068 2010-03-30  Eric Blake  <eblake@redhat.com>
25069
25070         maint: improve module indicators
25071         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25072         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25073         columns, and avoid extra macro expansion.
25074
25075         fdopendir: work around FreeBSD bug
25076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25078         * modules/dirent (Makefile.am): Substitute it.
25079         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25080         declaration.
25081         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25082         fix.
25083         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25084
25085 2010-03-29  Bruno Haible  <bruno@clisp.org>
25086
25087         Emit #pragma system_header after the inclusion guard, not before.
25088         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25089         guard that spans the entire file, not before. This enables an
25090         optimization in GCC's preprocessor.
25091         * lib/ctype.in.h: Likewise.
25092         * lib/dirent.in.h: Likewise.
25093         * lib/errno.in.h: Likewise.
25094         * lib/float.in.h: Likewise.
25095         * lib/getopt.in.h: Likewise.
25096         * lib/iconv.in.h: Likewise.
25097         * lib/langinfo.in.h: Likewise.
25098         * lib/locale.in.h: Likewise.
25099         * lib/math.in.h: Likewise.
25100         * lib/netdb.in.h: Likewise.
25101         * lib/netinet_in.in.h: Likewise.
25102         * lib/pty.in.h: Likewise.
25103         * lib/sched.in.h: Likewise.
25104         * lib/se-selinux.in.h: Likewise.
25105         * lib/search.in.h: Likewise.
25106         * lib/spawn.in.h: Likewise.
25107         * lib/stdarg.in.h: Likewise.
25108         * lib/stdint.in.h: Likewise.
25109         * lib/string.in.h: Likewise.
25110         * lib/strings.in.h: Likewise.
25111         * lib/sys_file.in.h: Likewise.
25112         * lib/sys_ioctl.in.h: Likewise.
25113         * lib/sys_time.in.h: Likewise.
25114         * lib/sys_times.in.h: Likewise.
25115         * lib/sys_utsname.in.h: Likewise.
25116         * lib/sys_wait.in.h: Likewise.
25117         * lib/sysexits.in.h: Likewise.
25118         * lib/wctype.in.h: Likewise.
25119
25120 2010-03-28  James Youngman  <jay@gnu.org>
25121
25122         save-cwd: don't leak a file descriptor when the caller execs.
25123         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25124         saved file descriptor.
25125         * modules/save-cwd (Depends-on): Depend on cloexec.
25126
25127 2010-03-29  Bruno Haible  <bruno@clisp.org>
25128
25129         Remove vestiges of fts-lgpl module.
25130         * lib/fts_.h: Assume GNULIB_FTS is 1.
25131         * lib/fts.c: Likewise.
25132         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25133
25134 2010-03-28  Bruno Haible  <bruno@clisp.org>
25135
25136         Fix definition of tests witness macro.
25137         * gnulib-tool (func_import): Fix definition of witness macro.
25138
25139 2010-03-28  Bruno Haible  <bruno@clisp.org>
25140
25141         Fix ioctl's protoype on glibc systems.
25142         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25143         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25144         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25145         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25146         signature. If not, arrange to replace the ioctl function.
25147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25148         REPLACE_IOCTL.
25149         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25150         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25151         Reported by Ludovic Courtès <ludo@gnu.org>.
25152
25153 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25154
25155         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25156         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25157         made it so grep -r --include=GLOB* ... did not work.
25158
25159 2010-03-26  Jim Meyering  <meyering@redhat.com>
25160             Eric Blake  <eblake@redhat.com>
25161
25162         maint.mk: prohibit use of test's -o and -a operators
25163         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25164
25165 2010-03-28  Bruno Haible  <bruno@clisp.org>
25166
25167         Remove unused GNULIB_XYZ macro definitions.
25168         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25169         invocation.
25170
25171 2010-03-28  Bruno Haible  <bruno@clisp.org>
25172
25173         Mark privileged tests modules.
25174         * modules/idpriv-drop-tests (Status): New section.
25175         * modules/idpriv-droptemp-tests (Status): New section.
25176
25177 2010-03-28  Bruno Haible  <bruno@clisp.org>
25178
25179         Split C++ tests into separate tests modules.
25180         * modules/dirent-c++-tests: New file, extracted from
25181         modules/dirent-tests.
25182         * modules/dirent-tests: Depend on it.
25183         * modules/fcntl-h-c++-tests: New file, extracted from
25184         modules/fcntl-h-tests.
25185         * modules/fcntl-h-tests: Depend on it.
25186         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25187         * modules/glob-tests: Depend on it.
25188         * modules/iconv-h-c++-tests: New file, extracted from
25189         modules/iconv-h-tests.
25190         * modules/iconv-h-tests: Depend on it.
25191         * modules/langinfo-c++-tests: New file, extracted from
25192         modules/langinfo-tests.
25193         * modules/langinfo-tests: Depend on it.
25194         * modules/locale-c++-tests: New file, extracted from
25195         modules/locale-tests.
25196         * modules/locale-tests: Depend on it.
25197         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25198         * modules/math-tests: Depend on it.
25199         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25200         * modules/pty-tests: Depend on it.
25201         * modules/search-c++-tests: New file, extracted from
25202         modules/search-tests.
25203         * modules/search-tests: Depend on it.
25204         * modules/signal-c++-tests: New file, extracted from
25205         modules/signal-tests.
25206         * modules/signal-tests: Depend on it.
25207         * modules/spawn-c++-tests: New file, extracted from
25208         modules/spawn-tests.
25209         * modules/spawn-tests: Depend on it.
25210         * modules/stdio-c++-tests: New file, extracted from
25211         modules/stdio-tests.
25212         * modules/stdio-tests: Depend on it.
25213         * modules/stdlib-c++-tests: New file, extracted from
25214         modules/stdlib-tests.
25215         * modules/stdlib-tests: Depend on it.
25216         * modules/string-c++-tests: New file, extracted from
25217         modules/string-tests.
25218         * modules/string-tests: Depend on it.
25219         * modules/sys_ioctl-c++-tests: New file, extracted from
25220         modules/sys_ioctl-tests.
25221         * modules/sys_ioctl-tests: Depend on it.
25222         * modules/sys_select-c++-tests: New file, extracted from
25223         modules/sys_select-tests.
25224         * modules/sys_select-tests: Depend on it.
25225         * modules/sys_socket-c++-tests: New file, extracted from
25226         modules/sys_socket-tests.
25227         * modules/sys_socket-tests: Depend on it.
25228         * modules/sys_stat-c++-tests: New file, extracted from
25229         modules/sys_stat-tests.
25230         * modules/sys_stat-tests: Depend on it.
25231         * modules/sys_time-c++-tests: New file, extracted from
25232         modules/sys_time-tests.
25233         * modules/sys_time-tests: Depend on it.
25234         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25235         * modules/time-tests: Depend on it.
25236         * modules/unistd-c++-tests: New file, extracted from
25237         modules/unistd-tests.
25238         * modules/unistd-tests: Depend on it.
25239         * modules/wchar-c++-tests: New file, extracted from
25240         modules/wchar-tests.
25241         * modules/wchar-tests: Depend on it.
25242         * modules/wctype-c++-tests: New file, extracted from
25243         modules/wctype-tests.
25244         * modules/wctype-tests: Depend on it.
25245         Reported by Simon Josefsson.
25246
25247 2010-03-28  Bruno Haible  <bruno@clisp.org>
25248
25249         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25250         * gnulib-tool (func_exists_module): New function, extracted from
25251         func_verify_module.
25252         (func_verify_module): Use it.
25253         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25254         'foo' only if 'foo' exists.
25255         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25256         module.
25257
25258 2010-03-28  Bruno Haible  <bruno@clisp.org>
25259
25260         gnulib-tool: Add support for special categories of tests.
25261         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25262         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25263         (func_usage): Document them.
25264         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25265         inc_unportable_tests, inc_all_tests): New variables.
25266         (func_acceptable): Consider these variables.
25267         (func_modules_transitive_closure): Make it work when the 'Status' field
25268         consists of multiple words.
25269         (func_import): Store and restore the values of inc_cxx_tests,
25270         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25271         inc_all_tests in gnulib-comp.m4.
25272         (func_create_testdir): Set inc_all_tests to true.
25273         * doc/gnulib.texi (Extra tests modules): New section.
25274         Suggested by Jim Meyering.
25275
25276 2010-03-28  Bruno Haible  <bruno@clisp.org>
25277
25278         ansi-c++-opt: Allow turning off the C++ build by default.
25279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25280         gl_CXX_CHOICE_DEFAULT_NO is defined.
25281         Requested by Eric Blake.
25282
25283 2010-03-28  Bruno Haible  <bruno@clisp.org>
25284
25285         unistd: Avoid #define replacements in C++ mode.
25286         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25287         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25288         setsockopt, shutdown, select): In C++, attach a warning to the function
25289         if possible, rather than #defining the symbol to a dysfunctional alias.
25290         Reported by John W. Eaton <jwe@gnu.org>.
25291
25292 2010-03-28  Bruno Haible  <bruno@clisp.org>
25293
25294         Fix link errors on mingw.
25295         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25296         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25297         $(LIBSOCKET).
25298         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25299         $(LIBSOCKET).
25300
25301 2010-03-28  Bruno Haible  <bruno@clisp.org>
25302             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25303
25304         lib-ignore: Determine different options for different compilers.
25305         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25306         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25307         Add comments.
25308         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25309         * NEWS: Mention the change.
25310
25311 2010-03-27  Bruno Haible  <bruno@clisp.org>
25312
25313         Remove unused GNULIB_XYZ macro definitions.
25314         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25315         * modules/fseek (configure.ac): Likewise.
25316         * modules/ioctl (configure.ac): Likewise.
25317         * modules/open (configure.ac): Likewise.
25318         * modules/stdlib-safer (configure.ac): Likewise.
25319
25320 2010-03-27  Bruno Haible  <bruno@clisp.org>
25321
25322         Add a remark about certain modules.
25323         * modules/malloc (Comment): New section.
25324         * modules/realloc (Comment): Likewise.
25325         * modules/sigpipe (Comment): Likewise.
25326
25327 2010-03-27  Bruno Haible  <bruno@clisp.org>
25328
25329         Resolve conflict between the two kinds of module indicators.
25330         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25331         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25332         * modules/canonicalize (configure.ac): Invoke
25333         gl_MODULE_INDICATOR_FOR_TESTS.
25334         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25335         GNULIB_XYZ.
25336         * tests/test-dirent-c++.cc: Likewise.
25337         * tests/test-dirent-safer.c: Likewise.
25338         * tests/test-dup2.c: Likewise.
25339         * tests/test-fchdir.c: Likewise.
25340         * tests/test-fcntl-h-c++.cc: Likewise.
25341         * tests/test-getopt.c: Likewise.
25342         * tests/test-getopt.h: Likewise.
25343         * tests/test-langinfo-c++.cc: Likewise.
25344         * tests/test-locale-c++.cc: Likewise.
25345         * tests/test-math-c++.cc: Likewise.
25346         * tests/test-pty-c++.cc: Likewise.
25347         * tests/test-search-c++.cc: Likewise.
25348         * tests/test-signal-c++.cc: Likewise.
25349         * tests/test-spawn-c++.cc: Likewise.
25350         * tests/test-stdio-c++.cc: Likewise.
25351         * tests/test-stdlib-c++.cc: Likewise.
25352         * tests/test-string-c++.cc: Likewise.
25353         * tests/test-sys_ioctl-c++.cc: Likewise.
25354         * tests/test-sys_select-c++.cc: Likewise.
25355         * tests/test-sys_socket-c++.cc: Likewise.
25356         * tests/test-sys_stat-c++.cc: Likewise.
25357         * tests/test-sys_time-c++.cc: Likewise.
25358         * tests/test-time-c++.cc: Likewise.
25359         * tests/test-unistd-c++.cc: Likewise.
25360         * tests/test-wchar-c++.cc: Likewise.
25361         * tests/uninorm/test-u8-nfc.c: Likewise.
25362         * tests/uninorm/test-u8-nfd.c: Likewise.
25363         * tests/uninorm/test-u8-nfkc.c: Likewise.
25364         * tests/uninorm/test-u8-nfkd.c: Likewise.
25365         * tests/uninorm/test-u16-nfc.c: Likewise.
25366         * tests/uninorm/test-u16-nfd.c: Likewise.
25367         * tests/uninorm/test-u16-nfkc.c: Likewise.
25368         * tests/uninorm/test-u16-nfkd.c: Likewise.
25369         * tests/uninorm/test-u32-nfc.c: Likewise.
25370         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25371         * tests/uninorm/test-u32-nfd.c: Likewise.
25372         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25373         * tests/uninorm/test-u32-nfkc.c: Likewise.
25374         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25375         * tests/uninorm/test-u32-nfkd.c: Likewise.
25376         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25377         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25378
25379 2010-03-27  Bruno Haible  <bruno@clisp.org>
25380
25381         Distinguish two kinds of module indicators.
25382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25383         gl_MODULE_INDICATOR.
25384         (gl_MODULE_INDICATOR): New macro.
25385         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25386         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25388         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25390         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25391         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25392         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25393         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25394         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25396         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25399         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25401         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25402         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25404         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25406         * modules/cloexec (configure.ac): Likewise.
25407         * modules/getopt-gnu (configure.ac): Likewise.
25408         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25409         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25410         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25411         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25412
25413 2010-03-27  Bruno Haible  <bruno@clisp.org>
25414
25415         New module description field 'Comment'.
25416         * gnulib-tool: New option --extract-comment.
25417         (func_usage): Document it.
25418         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25419         (func_get_comment): New function.
25420         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25421
25422 2010-03-27  Bruno Haible  <bruno@clisp.org>
25423
25424         Addendum to 2010-02-07 commit.
25425         * gnulib-tool (func_usage): Document --extract-applicability option.
25426
25427 2010-03-27  Bruno Haible  <bruno@clisp.org>
25428
25429         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25430         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25431         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25432         rather than link errors.
25433
25434 2010-03-27  Bruno Haible  <bruno@clisp.org>
25435
25436         Avoid side effects from tests-related modules on the compilation of lib.
25437         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25438         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25439         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25440         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25441         macro.
25442         (func_import): Define a witness macro. Assign it a value that depends
25443         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25444         tests-related modules.
25445         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25446         Reported by Jim Meyering.
25447
25448 2010-03-27  Bruno Haible  <bruno@clisp.org>
25449
25450         Factorize common .m4 code.
25451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25452         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25453         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25454         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25455         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25456         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25457         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25459         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25460         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25461         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25463         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25464         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25465         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25466         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25467         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25468         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25470         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25471         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25473         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25476         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25477         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25479         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25480         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25481         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25482         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25483
25484 2010-03-27  Bruno Haible  <bruno@clisp.org>
25485
25486         Fix a compilation error on Cygwin with g++ >= 4.3.
25487         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25488         if it is undefined or if we alias it to chmod.
25489         (lstat): Don't warn about the use of this function if it is undefined
25490         or if we alias it to stat.
25491         Reported by Simon Josefsson.
25492
25493 2010-03-27  Bruno Haible  <bruno@clisp.org>
25494
25495         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25496         * modules/getlogin (configure.ac): Update.
25497
25498         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25499         * modules/getlogin_r (configure.ac): Update.
25500
25501         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25503         * modules/inet_ntop (configure.ac): Update.
25504
25505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25506         * modules/inet_pton (configure.ac): Update.
25507
25508         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25509         * modules/mbslen (configure.ac): Update.
25510
25511         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25512         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25513         * modules/forkpty (configure.ac): Update.
25514         * modules/openpty (configure.ac): Update.
25515
25516 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25517
25518         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25519         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25520
25521 2010-03-25  Eric Blake  <eblake@redhat.com>
25522
25523         maint: use pragma consistently across replacement headers
25524         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25525         * lib/dirent.in.h (system_header): Likewise.
25526         * lib/errno.in.h (system_header): Likewise.
25527         * lib/float.in.h (system_header): Likewise.
25528         * lib/getopt.in.h (system_header): Likewise.
25529         * lib/iconv.in.h (system_header): Likewise.
25530         * lib/inttypes.in.h (system_header): Likewise.
25531         * lib/langinfo.in.h (system_header): Likewise.
25532         * lib/locale.in.h (system_header): Likewise.
25533         * lib/math.in.h (system_header): Likewise.
25534         * lib/netdb.in.h (system_header): Likewise.
25535         * lib/netinet_in.in.h (system_header): Likewise.
25536         * lib/pty.in.h (system_header): Likewise.
25537         * lib/sched.in.h (system_header): Likewise.
25538         * lib/se-selinux.in.h (system_header): Likewise.
25539         * lib/search.in.h (system_header): Likewise.
25540         * lib/spawn.in.h (system_header): Likewise.
25541         * lib/stdarg.in.h (system_header): Likewise.
25542         * lib/stdint.in.h (system_header): Likewise.
25543         * lib/string.in.h (system_header): Likewise.
25544         * lib/strings.in.h (system_header): Likewise.
25545         * lib/sys_file.in.h (system_header): Likewise.
25546         * lib/sys_ioctl.in.h (system_header): Likewise.
25547         * lib/sys_socket.in.h (system_header): Likewise.
25548         * lib/sys_times.in.h (system_header): Likewise.
25549         * lib/sys_utsname.in.h (system_header): Likewise.
25550         * lib/sys_wait.in.h (system_header): Likewise.
25551         * lib/sysexits.in.h (system_header): Likewise.
25552         * lib/unistd.in.h (system_header): Likewise.
25553         * lib/wctype.in.h (system_header): Likewise.
25554
25555         arpa/inet: fix mingw compilation warning
25556         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25557         Reported by Matthew Bolte.
25558
25559 2010-03-25  Bruno Haible  <bruno@clisp.org>
25560
25561         Avoid collision between gnulib wrapper and libintl wrapper.
25562         * lib/printf.c (printf): Don't define if a printf wrapper is already
25563         defined in intl/printf.c.
25564         Reported by Michel Boaventura <michel@michelboaventura.com>.
25565
25566 2010-03-25  Bruno Haible  <bruno@clisp.org>
25567
25568         Use ANSI C.
25569         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25570
25571 2010-03-25  Bruno Haible  <bruno@clisp.org>
25572
25573         Minor formatting changes.
25574         * lib/acosl.c: Insert space before function argument list.
25575         * lib/argz.c: Likewise.
25576         * lib/asinl.c: Likewise.
25577         * lib/expl.c: Likewise.
25578         * lib/gen-uni-tables.c: Likewise.
25579         * lib/gettext.h: Likewise.
25580         * lib/glthread/lock.h: Likewise.
25581         * lib/tanl.c: Likewise.
25582         * lib/uniname/uniname.c: Likewise.
25583         * tests/test-idpriv-drop.c: Likewise.
25584         * tests/test-idpriv-droptemp.c: Likewise.
25585         * tests/test-lock.c: Likewise.
25586         * tests/test-tls.c: Likewise.
25587         * lib/argp-help.c: Insert space before function-like macro argument
25588         list.
25589         * lib/memcmp.c: Likewise.
25590         * tests/test-base64.c: Likewise.
25591         * lib/localename.c: Insert space before sizeof's argument list.
25592         * lib/safe-alloc.h: Likewise.
25593         * lib/file-set.h: Insert space before macro argument list.
25594         * tests/test-argp.c: Likewise.
25595         * lib/argp-namefrob.h: Insert space before function parameter list.
25596         * lib/getaddrinfo.c: Likewise.
25597         * lib/netdb.in.h: Likewise.
25598         * lib/parse-duration.h: Likewise.
25599         * lib/parse-duration.c: Likewise.
25600         * lib/poll.c: Likewise.
25601         * lib/select.c: Likewise.
25602         * lib/trim.h: Likewise.
25603         * tests/test-usleep.c: Likewise.
25604         * lib/ldexpl.c: Insert space before function parameter list and before
25605         function argument list.
25606         * lib/logl.c: Likewise.
25607         * lib/sqrtl.c: Likewise.
25608         * lib/trim.c: Likewise.
25609         * lib/cosl.c: Use GNU style indentation. Insert space before function
25610         argument list.
25611         * lib/sinl.c: Likewise.
25612         * lib/tsearch.c: Insert space after 'for'.
25613         Reported by Jim Meyering.
25614
25615 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25616
25617         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25618         config header before grepping, as it's not present before
25619         autoreconf/configure are run.  Reported by Simon Josefsson.
25620
25621 2010-03-23  Bruno Haible  <bruno@clisp.org>
25622
25623         pt_chown: Make it work with automake < 1.11.
25624         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25625         Reported by Simon Josefsson.
25626
25627 2010-03-23  Bruno Haible  <bruno@clisp.org>
25628
25629         pt_chown: Don't depend on GPLed modules.
25630         * lib/pt_chown.c: Don't include idpriv.h.
25631         (main): Don't drop privileges.
25632         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25633         Reported by Simon Josefsson.
25634
25635 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25636
25637         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25638         suggestions from karl@freefriends.org (Karl Berry).
25639
25640 2010-03-22  Eric Blake  <eblake@redhat.com>
25641
25642         gethostname: further tweaks
25643         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25644         are overriding gethostname.
25645         Suggested by Bruno Haible.
25646
25647 2010-03-21  Bruno Haible  <bruno@clisp.org>
25648
25649         Fix comments.
25650         * lib/forkpty.c (rpl_forkpty): Fix comment.
25651         * lib/openpty.c (rpl_openpty): Likewise.
25652         Reported by Eric Blake.
25653
25654 2010-03-22  Eric Blake  <eblake@redhat.com>
25655
25656         gethostname: fix build on mingw
25657         * lib/unistd.in.h (includes): Work around fact that mingw
25658         <winsock2.h> re-includes <unistd.h>, by avoiding any
25659         redeclarations if we are being included by <winsock2.h>.
25660         Reported by Matthias Bolte.
25661
25662 2010-03-21  Bruno Haible  <bruno@clisp.org>
25663
25664         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25665         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25666         modifications.
25667         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25668         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25669         provide the replacement.
25670         * modules/forkpty (Depends-on): Add openpty, login_tty.
25671         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25672         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25673         * doc/glibc-functions/forkpty.texi: More supported platforms.
25674         * config/srclist.txt: Add forkpty.c (commented).
25675
25676 2010-03-21  Bruno Haible  <bruno@clisp.org>
25677
25678         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25679         (Makefile.am): Verify that PTY_LIB is defined.
25680
25681         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25682
25683 2010-03-21  Bruno Haible  <bruno@clisp.org>
25684
25685         Tests for module 'login_tty'.
25686         * modules/login_tty-tests: New file.
25687         * tests/test-login_tty.c: New file.
25688
25689         New module 'login_tty'.
25690         * lib/login_tty.c: New file.
25691         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25692         * modules/login_tty: New file.
25693         * doc/glibc-functions/login_tty.texi: Mention the new module.
25694
25695 2010-03-21  Bruno Haible  <bruno@clisp.org>
25696
25697         login_tty: Documentation.
25698         * doc/glibc-functions/login_tty.texi: New file.
25699         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25700
25701 2010-03-21  Bruno Haible  <bruno@clisp.org>
25702
25703         pty: Consistent macro naming.
25704         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25705         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25706         * modules/pty (configure.ac): Update.
25707
25708 2010-03-21  Bruno Haible  <bruno@clisp.org>
25709
25710         Tests for openpty: Make stricter.
25711         * tests/test-openpty.c (main): Add test of canonical processing and
25712         erase.
25713         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25714
25715         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25716         * lib/openpty.c (openpty): New replacement function.
25717         * lib/pty.in.h: Include <termios.h>.
25718         (openpty): Update declaration. Add comments.
25719         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25720         is not declared, arrange to provide the replacement. Check for _getpty
25721         and posix_openpt.
25722         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25723         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25724         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25725         * modules/pty-tests (test_pty_c___LDADD): New variable.
25726         * doc/glibc-functions/openpty.texi: More supported platforms.
25727
25728 2010-03-21  Bruno Haible  <bruno@clisp.org>
25729
25730         setenv: Tweaks.
25731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25732         the test program.
25733         * doc/posix-functions/setenv.texi: Update platforms list.
25734
25735 2010-03-21  Bruno Haible  <bruno@clisp.org>
25736
25737         New module 'unlockpt'.
25738         * lib/unlockpt.c: New file, from glibc with modifications.
25739         * m4/unlockpt.m4: New file.
25740         * modules/unlockpt: New file.
25741         * lib/stdlib.in.h (unlockpt): New declaration.
25742         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25743         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25744         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25745         HAVE_UNLOCKPT.
25746         * doc/posix-functions/unlockpt.texi: Mention the new module.
25747         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25748         * config/srclist.txt: Add unlockpt.c (commented).
25749
25750 2010-03-21  Jim Meyering  <meyering@redhat.com>
25751
25752         maint.mk: prohibit inclusion of "intprops.h" without use
25753         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25754
25755 2010-03-21  Bruno Haible  <bruno@clisp.org>
25756
25757         New module 'grantpt'.
25758         * lib/grantpt.c: New file, from glibc with modifications.
25759         * m4/grantpt.m4: New file.
25760         * modules/grantpt: New file.
25761         * lib/stdlib.in.h (grantpt): New declaration.
25762         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25763         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25764         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25765         HAVE_GRANTPT.
25766         * doc/posix-functions/grantpt.texi: Mention the new module.
25767         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25768         * config/srclist.txt: Add grantpt.c (commented).
25769
25770 2010-03-21  Bruno Haible  <bruno@clisp.org>
25771
25772         New module 'pt_chown'.
25773         * lib/pt_chown.c: New file, from glibc with modifications.
25774         * lib/pty-private.h: New file, from glibc with modifications.
25775         * modules/pt_chown: New file.
25776         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25777
25778 2010-03-21  Bruno Haible  <bruno@clisp.org>
25779
25780         Tests for module 'ptsname'.
25781         * modules/ptsname-tests: New file.
25782         * tests/test-ptsname.c: New file.
25783
25784         New module 'ptsname'.
25785         * lib/ptsname.c: New file, from glibc with modifications.
25786         * m4/ptsname.m4: New file.
25787         * modules/ptsname: New file.
25788         * lib/stdlib.in.h (ptsname): New declaration.
25789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25790         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25791         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25792         HAVE_PTSNAME.
25793         * doc/posix-functions/ptsname.texi: Mention the new module.
25794         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25795         * config/srclist.txt: Add ptsname.c (commented).
25796
25797 2010-03-21  Bruno Haible  <bruno@clisp.org>
25798
25799         Tests for module 'ttyname_r'.
25800         * modules/ttyname_r-tests: New file.
25801         * tests/test-ttyname_r.c: New file.
25802
25803         New module 'ttyname_r'.
25804         * lib/ttyname_r.c: New file.
25805         * m4/ttyname_r.m4: New file.
25806         * modules/ttyname_r: New file.
25807         * lib/unistd.in.h (ttyname_r): New declaration.
25808         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25809         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25810         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25811         HAVE_TTYNAME_R.
25812         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25813         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25814
25815 2010-03-20  Bruno Haible  <bruno@clisp.org>
25816
25817         signal: Undefine macro definitions in C++ mode.
25818         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25819         sigfillset): Undefine macro definitions from the system header in C++
25820         mode.
25821         Reported by John W. Eaton <jwe@gnu.org>.
25822
25823 2010-03-20  Bruno Haible  <bruno@clisp.org>
25824
25825         Ensure no #include statements inside extern "C" { ... }.
25826         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25827         contain #include statements.
25828         * lib/time.in.h: Likewise.
25829
25830 2010-03-20  Bruno Haible  <bruno@clisp.org>
25831
25832         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25833         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25834         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25835         Reported by John W. Eaton <jwe@gnu.org>.
25836
25837 2010-03-20  Bruno Haible  <bruno@clisp.org>
25838
25839         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25840         Reported by Jim Meyering.
25841
25842 2010-03-20  Bruno Haible  <bruno@clisp.org>
25843
25844         pipe: Set errno upon failure.
25845         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25846         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25847         errno value in error message.
25848
25849 2010-03-20  Bruno Haible  <bruno@clisp.org>
25850             Jim Meyering  <meyering@redhat.com>
25851
25852         lchown: Avoid "unused variable" warning.
25853         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25854
25855 2010-03-20  Bruno Haible  <bruno@clisp.org>
25856
25857         Work around unlink() bug on MacOS X 10.5.6.
25858         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25859         attempting to unlink a parent directory.
25860         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25861         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25862         activate for the replacement function.
25863         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25864
25865 2010-03-20  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix link errors on Solaris 8.
25868         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25869         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25870
25871 2010-03-19  Jim Meyering  <meyering@redhat.com>
25872
25873         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25874         The _LIBC implementation of build_range_exp correctly honors the
25875         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25876         However, the non-_LIBC implementation would ignore that syntax-bit
25877         flag and return REG_ERANGE unconditionally.
25878         This change makes it honor that flag.
25879         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25880         Make two pointer parameters "const".
25881         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25882         (parse_bracket_exp): Update caller.
25883
25884         regex.m4: correct the reversed range endpoint ([b-a]) test
25885         * m4/regex.m4: When requiring that [b-a] evoke failure,
25886         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25887         test pass once again for x86-based systems.
25888
25889 2010-03-19  Bruno Haible  <bruno@clisp.org>
25890
25891         scandir: Fix link error on Solaris 8.
25892         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25893         macros.
25894
25895 2010-03-19  Bruno Haible  <bruno@clisp.org>
25896
25897         getusershell: Fix documentation.
25898         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25899         module.
25900         * doc/glibc-functions/setusershell.texi: Likewise.
25901
25902         getusershell: Provide declaration, missing on Solaris 9.
25903         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25904         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25905         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25906         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25908         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25910         HAVE_GETUSERSHELL.
25911         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25912
25913 2010-03-19  Bruno Haible  <bruno@clisp.org>
25914
25915         wctype: Provide iswblank function.
25916         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25917         exists and is fine.
25918         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25919         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25920         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25921         * doc/posix-functions/iswblank.texi: Update.
25922
25923 2010-03-19  Bruno Haible  <bruno@clisp.org>
25924
25925         Tests of module 'pty' in C++ mode.
25926         * modules/pty-tests: New file.
25927         * tests/test-pty-c++.cc: New file.
25928         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25929
25930 2010-03-19  Eric Blake  <eblake@redhat.com>
25931
25932         logb: fix documentation
25933         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25934         1.5 declaration bug.
25935
25936         forkpty, openpty: prefer glibc's const-safe prototype
25937         * lib/forkpty.c (rpl_forkpty): New file.
25938         * lib/openpty.c (rpl_openpty): Likewise.
25939         * modules/forkpty (Files): Distribute it.
25940         * modules/openpty (Files): Likewise.
25941         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25942         check...
25943         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25944         replacement for for non-const BSD signature.
25945         * modules/pty (Makefile.am): Substitute witnesses.
25946         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25947         * tests/test-forkpty.c: Update signature check.
25948         * tests/test-openpty.c: Likewise.
25949         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25950         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25951
25952         forkpty, openpty: split functions into new modules
25953         * modules/pty (Makefile.am): Substitute new witnesses.
25954         (Libraries): Move library detection...
25955         * modules/forkpty: ...into new module.
25956         * modules/openpty: Another new module.
25957         * modules/pty-tests: Rename and split...
25958         * modules/forkpty-tests: ...to this...
25959         * modules/openpty-tests: ...and this.
25960         * tests/test-pty.c: Rename and split...
25961         * tests/test-forkpty.c: ...to this...
25962         * tests/test-openpty.c: ...and this.
25963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25964         (gl_PTY): Split library searching...
25965         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25966         (gl_FORKPTY, gl_OPENPTY): New macros.
25967         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25968         * NEWS: Mention the split.
25969         * MODULES.html.sh (Misc): Document the modules.
25970         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25971         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25972
25973         pty: improve replacement header
25974         * lib/pty.in.h: New file.
25975         * modules/pty (Files): Ship it.
25976         (Makefile.am): Always build replacement.
25977         * m4/pty.m4: Rename...
25978         * m4/pty_h.m4: ...to this.
25979         (gl_PTY): Modernize setting of witness macros; update check of
25980         forkpty to take proper advantage of cache.
25981         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25982
25983         getopt: avoid compiler warning
25984         * lib/getopt.c (attribute_hidden): Remove unused macro.
25985
25986 2010-03-18  Bruno Haible  <bruno@clisp.org>
25987
25988         Fix link errors on Solaris 8.
25989         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25990         * modules/search-tests (test_search_c___LDADD): Likewise.
25991         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25992         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25993         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25994         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25995         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25996         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25997         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25998
25999 2010-03-18  Bruno Haible  <bruno@clisp.org>
26000
26001         Fix bug introduced on 2010-03-14.
26002         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26003         (gl_SPAWN_H): Require it.
26004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26005         Reported by Simon Josefsson.
26006
26007 2010-03-18  Bruno Haible  <bruno@clisp.org>
26008
26009         Fix typo introduced on 2009-12-31.
26010         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26011         posix_spawn_file_actions_adddup2.
26012
26013 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26014         and Eric Blake  <eblake@redhat.com>
26015
26016         test-vc-list-files-git: make more robust
26017         * tests/test-vc-list-files-git.sh: Unset problematic environment
26018         variables.  Chain commands together.
26019
26020 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26021
26022         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26023         `AC_CHECK_DECL' invocation.
26024
26025 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26026
26027         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26028         appears before executable statements. Suggested by Petr Sumbera
26029         <Petr.Sumbera@Sun.COM>.
26030
26031 2010-03-14  Bruno Haible  <bruno@clisp.org>
26032
26033         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26034         portability problems. Instead use a simpler test.
26035         (main): Check that invalid arguments are rejected only on Linux.
26036
26037 2010-03-14  Bruno Haible  <bruno@clisp.org>
26038
26039         Fix bug introduced on 2009-12-31.
26040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26041         gl_PREREQ_SYS_H_WINSOCK2 always.
26042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26043         SYS_SOCKET_H variable.
26044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26045         Update comments.
26046         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26047         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26048         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26049         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26051
26052 2010-03-14  Bruno Haible  <bruno@clisp.org>
26053
26054         Fix values returned by sinl, cosl.
26055         * lib/trigl.h: Add specification comments.
26056         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26057         that combines the values from the precomputed table with the values of
26058         the Chebyshev polynomials.
26059
26060 2010-03-14  Bruno Haible  <bruno@clisp.org>
26061
26062         Fix compilation error when modules 'posix_spawn[p]' are not used.
26063         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26065
26066 2010-03-14  Bruno Haible  <bruno@clisp.org>
26067
26068         Fix compilation error on mingw when module 'time_r' is not used.
26069         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26070         is 1.
26071         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26072         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26073         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26075
26076 2010-03-14  Bruno Haible  <bruno@clisp.org>
26077
26078         Fix compilation error with Sun C.
26079         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26080         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26081         instead of GCC specific ULONG_LONG_MAX.
26082         * lib/xstrtoll.c: Likewise.
26083         * lib/xstrtoull.c: Likewise.
26084
26085 2010-03-13  Bruno Haible  <bruno@clisp.org>
26086
26087         Allow the user to disable C++ code and tests.
26088         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26089         (gl_PROG_ANSI_CXX): Require it.
26090
26091 2010-03-13  Bruno Haible  <bruno@clisp.org>
26092
26093         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26094         cases.
26095
26096 2010-03-13  Bruno Haible  <bruno@clisp.org>
26097
26098         Test that gnulib does not break the standard C++ headers.
26099         * tests/test-locale-c++2.cc: New file.
26100         * modules/locale-tests (Files): Add it.
26101         (Makefile.am): Compile it for test-locale-c++.
26102         * tests/test-math-c++2.cc: New file.
26103         * modules/math-tests (Files): Add it.
26104         (Makefile.am): Compile it for test-math-c++.
26105         * tests/test-signal-c++2.cc: New file.
26106         * modules/signal-tests (Files): Add it.
26107         (Makefile.am): Compile it for test-signal-c++.
26108         * tests/test-stdio-c++2.cc: New file.
26109         * modules/stdio-tests (Files): Add it.
26110         (Makefile.am): Compile it for test-stdio-c++.
26111         * tests/test-stdlib-c++2.cc: New file.
26112         * modules/stdlib-tests (Files): Add it.
26113         (Makefile.am): Compile it for test-stdlib-c++.
26114         * tests/test-string-c++2.cc: New file.
26115         * modules/string-tests (Files): Add it.
26116         (Makefile.am): Compile it for test-string-c++.
26117         * tests/test-time-c++2.cc: New file.
26118         * modules/time-tests (Files): Add it.
26119         (Makefile.am): Compile it for test-time-c++.
26120         Reported by John W. Eaton <jwe@gnu.org>.
26121
26122 2010-03-13  Bruno Haible  <bruno@clisp.org>
26123
26124         * gnulib-tool (func_usage): Clarify which options are available for
26125         --create-testdir and --create-megatestdir.
26126
26127 2010-03-13  Bruno Haible  <bruno@clisp.org>
26128
26129         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26130         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26131         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26132         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26133         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26134         when appropriate.
26135         Reported by Jim Meyering.
26136
26137 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26138
26139         * gnulib-tool (func_import): Explain origin of code.
26140
26141 2010-03-12  Bruno Haible  <bruno@clisp.org>
26142
26143         Fix problem with automake's definition of CXXLINK.
26144         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26145         Reported by Simon Josefsson and Ludovic Courtès.
26146
26147 2010-03-12  Bruno Haible  <bruno@clisp.org>
26148
26149         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26150         stable releases.
26151
26152 2010-03-11  Bruno Haible  <bruno@clisp.org>
26153
26154         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26155         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26156         whether the system provides one variant or multiple variants of the
26157         function.
26158         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26159         C++ compilers.
26160         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26161         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26162         Reported by Jim Meyering.
26163
26164 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26165
26166         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26167
26168 2010-03-08  Bruno Haible  <bruno@clisp.org>
26169
26170         gnulib-tool: Add support for --libtool in --create-testdir.
26171         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26172         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26173
26174 2010-03-08  Eric Blake  <eblake@redhat.com>
26175
26176         gnulib-tool.texi: mention possibility of git submodule
26177         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26178         submodules.
26179         * doc/.gitignore: Ignore another generated file.
26180
26181 2010-03-08  Karl Berry  <karl@gnu.org>
26182
26183         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26184         of committing gnulib files while skipping others.
26185
26186 2010-03-07  Bruno Haible  <bruno@clisp.org>
26187
26188         Tests of module 'wctype' in C++ mode.
26189         * tests/test-wctype-c++.cc: New file.
26190         * modules/wctype-tests (Files): Add it and tests/signature.h.
26191         (Depends-on): Add ansi-c++-opt.
26192         (Makefile.am): Arrange to compile and run test-wctype-c++.
26193
26194         Tests of module 'wchar' in C++ mode.
26195         * tests/test-wchar-c++.cc: New file.
26196         * modules/wchar-tests (Files): Add it and tests/signature.h.
26197         (Depends-on): Add ansi-c++-opt.
26198         (Makefile.am): Arrange to compile and run test-wchar-c++.
26199         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26200         gl_MODULE_INDICATOR.
26201
26202         Tests of module 'unistd' in C++ mode.
26203         * tests/test-unistd-c++.cc: New file.
26204         * modules/unistd-tests (Files): Add it and tests/signature.h.
26205         (Depends-on): Add ansi-c++-opt.
26206         (Makefile.am): Arrange to compile and run test-unistd-c++.
26207         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26208         gl_MODULE_INDICATOR.
26209
26210         Tests of module 'time' in C++ mode.
26211         * tests/test-time-c++.cc: New file.
26212         * modules/time-tests (Files): Add it and tests/signature.h.
26213         (Depends-on): Add ansi-c++-opt.
26214         (Makefile.am): Arrange to compile and run test-time-c++.
26215         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26216
26217         Tests of module 'sys_time' in C++ mode.
26218         * tests/test-sys_time-c++.cc: New file.
26219         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26220         (Depends-on): Add ansi-c++-opt.
26221         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26222         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26223         gl_MODULE_INDICATOR.
26224
26225         Tests of module 'sys_stat' in C++ mode.
26226         * tests/test-sys_stat-c++.cc: New file.
26227         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26228         (Depends-on): Add ansi-c++-opt.
26229         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26230         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26231         gl_MODULE_INDICATOR.
26232
26233         Tests of module 'sys_socket' in C++ mode.
26234         * tests/test-sys_socket-c++.cc: New file.
26235         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26236         (Depends-on): Add ansi-c++-opt.
26237         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26238         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26239         gl_MODULE_INDICATOR.
26240
26241         Tests of module 'sys_select' in C++ mode.
26242         * tests/test-sys_select-c++.cc: New file.
26243         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26244         (Depends-on): Add ansi-c++-opt.
26245         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26246         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26247         gl_MODULE_INDICATOR.
26248
26249         Tests of module 'sys_ioctl' in C++ mode.
26250         * tests/test-sys_ioctl-c++.cc: New file.
26251         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26252         (Depends-on): Add ansi-c++-opt.
26253         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26255         gl_MODULE_INDICATOR.
26256
26257         Tests of module 'string' in C++ mode.
26258         * tests/test-string-c++.cc: New file.
26259         * modules/string-tests (Files): Add it and tests/signature.h.
26260         (Depends-on): Add ansi-c++-opt.
26261         (Makefile.am): Arrange to compile and run test-string-c++.
26262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26263         gl_MODULE_INDICATOR.
26264
26265         Tests of module 'stdlib' in C++ mode.
26266         * tests/test-stdlib-c++.cc: New file.
26267         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26268         (Depends-on): Add ansi-c++-opt.
26269         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26270         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26271         gl_MODULE_INDICATOR.
26272
26273         Tests of module 'stdio' in C++ mode.
26274         * tests/test-stdio-c++.cc: New file.
26275         * modules/stdio-tests (Files): Add it and tests/signature.h.
26276         (Depends-on): Add ansi-c++-opt.
26277         (Makefile.am): Arrange to compile and run test-stdio-c++.
26278         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26279         gl_MODULE_INDICATOR.
26280
26281         Tests of module 'spawn' in C++ mode.
26282         * tests/test-spawn-c++.cc: New file.
26283         * modules/spawn-tests (Files): Add it and tests/signature.h.
26284         (Depends-on): Add ansi-c++-opt.
26285         (Makefile.am): Arrange to compile and run test-spawn-c++.
26286         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26287         gl_MODULE_INDICATOR.
26288
26289         Tests of module 'signal' in C++ mode.
26290         * tests/test-signal-c++.cc: New file.
26291         * modules/signal-tests (Files): Add it and tests/signature.h.
26292         (Depends-on): Add ansi-c++-opt.
26293         (Makefile.am): Arrange to compile and run test-signal-c++.
26294         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26295         gl_MODULE_INDICATOR.
26296
26297         Tests of module 'search' in C++ mode.
26298         * tests/test-search-c++.cc: New file.
26299         * modules/search-tests (Files): Add it and tests/signature.h.
26300         (Depends-on): Add ansi-c++-opt.
26301         (Makefile.am): Arrange to compile and run test-search-c++.
26302         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26303         gl_MODULE_INDICATOR.
26304
26305         Tests of module 'math' in C++ mode.
26306         * tests/test-math-c++.cc: New file.
26307         * modules/math-tests (Files): Add it and tests/signature.h.
26308         (Depends-on): Add ansi-c++-opt.
26309         (Makefile.am): Arrange to compile and run test-math-c++.
26310         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26311
26312         Tests of module 'locale' in C++ mode.
26313         * tests/test-locale-c++.cc: New file.
26314         * modules/locale-tests (Files): Add it and tests/signature.h.
26315         (Depends-on): Add ansi-c++-opt.
26316         (Makefile.am): Arrange to compile and run test-locale-c++.
26317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26318         gl_MODULE_INDICATOR.
26319
26320         Tests of module 'langinfo' in C++ mode.
26321         * tests/test-langinfo-c++.cc: New file.
26322         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26323         (Depends-on): Add ansi-c++-opt.
26324         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26325         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26326         gl_MODULE_INDICATOR.
26327
26328         Tests of module 'iconv-h' in C++ mode.
26329         * tests/test-iconv-h-c++.cc: New file.
26330         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26331         (Depends-on): Add ansi-c++-opt.
26332         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26333
26334         Tests of module 'glob' in C++ mode.
26335         * tests/test-glob-c++.cc: New file.
26336         * modules/glob-tests (Files): Add it.
26337         (Depends-on): Add ansi-c++-opt.
26338         (Makefile.am): Arrange to compile and run test-glob-c++.
26339
26340         Tests of module 'fcntl-h' in C++ mode.
26341         * tests/test-fcntl-h-c++.cc: New file.
26342         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26343         (Depends-on): Add ansi-c++-opt.
26344         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26345         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26346         gl_MODULE_INDICATOR.
26347
26348         Tests of module 'dirent' in C++ mode.
26349         * tests/test-dirent-c++.cc: New file.
26350         * modules/dirent-tests (Files): Add it and tests/signature.h.
26351         (Depends-on): Add ansi-c++-opt.
26352         (Makefile.am): Arrange to compile and run test-dirent-c++.
26353         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26354         gl_MODULE_INDICATOR.
26355
26356         New module 'ansi-c++-opt'.
26357         * modules/ansi-c++-opt: New file.
26358         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26359
26360         Document C++ namespace mode.
26361         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26362
26363         wctype: Avoid #define replacements in C++ mode.
26364         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26365         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26366         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26367         In C++, define a namespaced alias symbol.
26368         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26369         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26370         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26371         rule.
26372
26373         wchar: Avoid #define replacements in C++ mode.
26374         * lib/wchar.in.h: Include c++defs.h.
26375         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26376         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26377         symbol.
26378         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26379         * modules/wchar (Depends-on): Add c++defs.
26380         (Makefile.am): Update wchar.h rule.
26381
26382         unistd: Avoid #define replacements in C++ mode.
26383         * lib/unistd.in.h: Include c++defs.h.
26384         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26385         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26386         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26387         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26388         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26389         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26390         symbol.
26391         (environ): Update.
26392         * modules/unistd (Depends-on): Add c++defs.
26393         (Makefile.am): Update unistd.h rule.
26394
26395         time: Avoid #define replacements in C++ mode.
26396         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26397         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26398         define a namespaced alias symbol.
26399         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26400         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26401         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26402         * modules/time (Depends-on): Add c++defs, warn-on-use.
26403         (Makefile.am): Update time.h rule.
26404         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26405         * modules/nanosleep (configure.ac): Likewise.
26406         * modules/strptime (configure.ac): Likewise.
26407         * modules/timegm (configure.ac): Likewise.
26408
26409         sys_time: Avoid #define replacements in C++ mode.
26410         * lib/sys_time.in.h: Include c++defs.h.
26411         (gettimeofday): In C++, define a namespaced alias symbol.
26412         * modules/sys_time (Depends-on): Add c++defs.
26413         (Makefile.am): Update sys/time.h rule.
26414
26415         sys_stat: Avoid #define replacements in C++ mode.
26416         * lib/sys_stat.in.h: Include c++defs.h.
26417         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26418         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26419         namespaced alias symbol.
26420         In C++, define a namespaced alias symbol.
26421         * modules/sys_stat (Depends-on): Add c++defs.
26422         (Makefile.am): Update sys/stat.h rule.
26423
26424         sys_socket: Avoid #define replacements in C++ mode.
26425         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26426         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26427         definitions also when the system has a <sys/socket.h>.
26428         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26429         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26430         In C++, define a namespaced alias symbol.
26431         * modules/sys_socket (Depends-on): Add c++defs.
26432         (Makefile.am): Update sys/socket.h rule.
26433
26434         sys_select: Avoid #define replacements in C++ mode.
26435         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26436         definitions also when the system has a <sys/select.h>.
26437         (select): In C++, define a namespaced alias symbol.
26438         * modules/sys_select (Depends-on): Add c++defs.
26439         (Makefile.am): Update sys/select.h rule.
26440
26441         sys_ioctl: Avoid #define replacements in C++ mode.
26442         * lib/sys_ioctl.in.h: Include c++defs.h.
26443         (ioctl): In C++, define a namespaced alias symbol.
26444         * modules/sys_ioctl (Depends-on): Add c++defs.
26445         (Makefile.am): Update sys/ioctl.h rule.
26446
26447         string: Avoid #define replacements in C++ mode.
26448         * lib/string.in.h: Include c++defs.h.
26449         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26450         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26451         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26452         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26453         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26454         * modules/string (Depends-on): Add c++defs.
26455         (Makefile.am): Update string.h rule.
26456
26457         stdlib: Avoid #define replacements in C++ mode.
26458         * lib/stdlib.in.h: Include c++defs.h.
26459         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26460         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26461         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26462         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26463         symbol.
26464         * modules/stdlib (Depends-on): Add c++defs.
26465         (Makefile.am): Update stdlib.h rule.
26466
26467         stdio: Avoid #define replacements in C++ mode.
26468         * lib/stdio.in.h: Include c++defs.h.
26469         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26470         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26471         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26472         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26473         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26474         namespaced alias symbol.
26475         * modules/stdio (Depends-on): Add c++defs.
26476         (Makefile.am): Update stdio.h rule.
26477
26478         spawn: Avoid #define replacements in C++ mode.
26479         * lib/spawn.in.h: Include c++defs.h.
26480         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26481         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26482         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26483         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26484         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26485         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26486         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26487         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26488         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26489         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26490         In C++, define a namespaced alias symbol.
26491         * modules/spawn (Depends-on): Add c++defs.
26492         (Makefile.am): Update spawn.h rule.
26493
26494         signal: Avoid #define replacements in C++ mode.
26495         * lib/signal.in.h: Include c++defs.h.
26496         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26497         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26498         namespaced alias symbol.
26499         * modules/signal (Depends-on): Add c++defs.
26500         (Makefile.am): Update signal.h rule.
26501
26502         search: Avoid #define replacements in C++ mode.
26503         * lib/search.in.h: Include c++defs.h.
26504         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26505         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26506         symbol.
26507         * modules/search (Depends-on): Add c++defs.
26508         (Makefile.am): Update search.h rule.
26509
26510         math: Avoid #define replacements in C++ mode.
26511         * lib/math.in.h: Include c++defs.h.
26512         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26513         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26514         trunc, truncl): In C++, define a namespaced alias symbol.
26515         * modules/math (Depends-on): Add c++defs.
26516         (Makefile.am): Update math.h rule.
26517
26518         locale: Avoid #define replacements in C++ mode.
26519         * lib/locale.in.h: Include c++defs.h.
26520         (duplocale): In C++, define a namespaced alias symbol.
26521         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26523         * modules/locale (Depends-on): Add c++defs.
26524         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26525
26526         langinfo: Avoid #define replacements in C++ mode.
26527         * lib/langinfo.in.h: Include c++defs.h.
26528         (nl_langinfo): In C++, define a namespaced alias symbol.
26529         * modules/langinfo (Depends-on): Add c++defs.
26530         (Makefile.am): Update langinfo.h rule.
26531
26532         iconv-h: Avoid #define replacements in C++ mode.
26533         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26534         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26535         symbol.
26536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26537         whenever iconv is present.
26538         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26539         (Makefile.am): Update iconv.h rule.
26540
26541         glob: Avoid #define replacements in C++ mode.
26542         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26543         (_gl_glob_errfunc_fn): New type.
26544         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26545         symbol.
26546         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26547         (Makefile.am): Update glob.h rule.
26548
26549         fcntl-h: Avoid #define replacements in C++ mode.
26550         * lib/fcntl.in.h: Include c++defs.h.
26551         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26552         * modules/fcntl-h (Depends-on): Add c++defs.
26553         (Makefile.am): Update fcntl.h rule.
26554
26555         dirent: Avoid #define replacements in C++ mode.
26556         * lib/dirent.in.h: Include c++defs.h.
26557         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26558         namespaced alias symbol.
26559         (dirfd): Update declaration.
26560         * modules/dirent (Depends-on): Add c++defs.
26561         (Makefile.am): Update dirent.h rule.
26562
26563         ctype: Make it usable in C++ code.
26564         * lib/ctype.in.h: Include c++defs.h.
26565         (isblank): Declare as extern "C".
26566         * modules/ctype (Depends-on): Add c++defs.
26567         (Makefile.am): Update ctype.h rule.
26568
26569         New module 'c++defs'.
26570         * modules/c++defs: New file.
26571         * build-aux/c++defs.h: New file.
26572         Reported by John W. Eaton <jwe@gnu.org>.
26573
26574 2010-03-07  Bruno Haible  <bruno@clisp.org>
26575
26576         logb: Provide missing declaration for Cygwin.
26577         * lib/math.in.h (logb): New declaration.
26578         * m4/logb.m4: New file.
26579         * modules/logb (Files): Add m4/logb.m4.
26580         (Depends-on): Add math.
26581         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26582         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26584         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26585         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26586
26587 2010-03-07  Bruno Haible  <bruno@clisp.org>
26588
26589         Fix test-cond link error.
26590         * tests/test-cond.c: Include <stdio.h>.
26591
26592 2010-03-07  Bruno Haible  <bruno@clisp.org>
26593
26594         Fix test-dirent-safer link error.
26595         * modules/dirent-safer-tests (Makefile.am): Define
26596         test_dirent_safer_LDADD.
26597
26598 2010-03-07  Bruno Haible  <bruno@clisp.org>
26599
26600         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26601         among default module list.
26602
26603 2010-03-07  Bruno Haible  <bruno@clisp.org>
26604
26605         Fix link error on platforms with GNU libiconv.
26606         * modules/unistr/u8-strcoll-tests (Makefile): Define
26607         test_u8_strcoll_LDADD.
26608         * modules/unistr/u16-strcoll-tests (Makefile): Define
26609         test_u16_strcoll_LDADD.
26610         * modules/unistr/u32-strcoll-tests (Makefile): Define
26611         test_u32_strcoll_LDADD.
26612
26613 2010-03-07  Bruno Haible  <bruno@clisp.org>
26614
26615         Use POSIX declarations for socket functions.
26616         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26617         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26618         rpl_sendto): Change declaration to match POSIX.
26619         * lib/connect.c (rpl_connect): Likewise.
26620         * lib/accept.c (rpl_accept): Likewise.
26621         * lib/bind.c (rpl_bind): Likewise.
26622         * lib/getpeername.c (rpl_getpeername): Likewise.
26623         * lib/getsockname.c (rpl_getsockname): Likewise.
26624         * lib/recv.c (rpl_recv): Likewise.
26625         * lib/send.c (rpl_send): Likewise.
26626         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26627         * lib/sendto.c (rpl_sendto): Likewise.
26628
26629 2010-03-06  Bruno Haible  <bruno@clisp.org>
26630
26631         Clarify access, euidaccess, faccessat.
26632         * doc/posix-functions/faccessat.texi: Mention security problem under
26633         "Other problems", not "Portability problems".
26634         * doc/posix-functions/access.texi: Likewise. Mention a related security
26635         problem.
26636         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26637         * lib/euidaccess.c: Add comments about platforms.
26638         * lib/unistd.in.h (access, euidaccess): Add warnings.
26639
26640 2010-03-07  Bruno Haible  <bruno@clisp.org>
26641
26642         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26643         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26644         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26645         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26646         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26647         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26648         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26649         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26650         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26652         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26653         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26654         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26655         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26656         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26657         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26658         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26659         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26660         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26661         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26662         Likewise.
26663         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26664         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26665         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26666         Likewise.
26667         * tests/test-spawn.c (main): Make it work when
26668         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26669
26670 2010-03-07  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix incorrect Makefile.am generation in German locale.
26673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26674         Execute sed command with character range in C locale.
26675
26676 2010-03-06  Bruno Haible  <bruno@clisp.org>
26677
26678         Tests for module 'iconv-h'.
26679         * modules/iconv-h-tests: New file.
26680         * tests/test-iconv-h.c: New file.
26681
26682         New module 'iconv-h'.
26683         * modules/iconv-h: New file.
26684         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26685         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26686         (configure.ac): Remove gl_ICONV_H.
26687         (Makefile.am): Remove rule for iconv.h.
26688
26689 2010-03-06  Bruno Haible  <bruno@clisp.org>
26690
26691         More consistent naming of *.m4 files.
26692         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26693         * modules/wctype (Files): Update.
26694
26695         More consistent naming of *.m4 files.
26696         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26697         * modules/wchar (Files): Update.
26698
26699 2010-03-06  Jim Meyering  <meyering@redhat.com>
26700
26701         euidaccess: relax license to LGPLv2+
26702         * modules/euidaccess (License): Relax to LGPLv2+.
26703
26704 2010-03-06  Bruno Haible  <bruno@clisp.org>
26705
26706         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26707         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26708         (Makefile.am): Augment lib_SOURCES instead.
26709
26710 2010-03-04  Jim Meyering  <meyering@redhat.com>
26711
26712         utime: remove obsolete module
26713         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26714         unnecessary for years, and has been marked as obsolete for 10 months.
26715         * modules/utime: Remove file.
26716         * lib/utime.c: Remove file.
26717         * m4/utime.m4: Remove file.
26718         * m4/utimes-null.m4: Remove file.
26719         * doc/posix-functions/utime.texi (utime): Remove reference to
26720         the module.  Move the sole "fixed by gnulib" item into the
26721         "problems not fixed by Gnulib" list.
26722         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26723
26724 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26725
26726         * modules/exit (License): Relax license to LGPLv2+.
26727         (Status): Mark as obsolete.
26728         * NEWS: Mention deprecated 'exit' module.
26729         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26730         of now obsolete 'exit'.
26731
26732 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26733
26734         fts-lgpl: remove unused module
26735         * modules/fts-lgpl: Remove.
26736         * MODULES.html.sh (func_all_modules): Adjust.
26737         * check-module (find_included_lib_files): Adjust.
26738         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26739
26740 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26741
26742         copy-acl: enhance Solaris ACL error handling
26743         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26744         * lib/set-mode-acl.c (qset_acl): Likewise.
26745
26746 2010-03-02  Bruno Haible  <bruno@clisp.org>
26747
26748         spawn: Don't override the system defined values on FreeBSD 8.
26749         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26750         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26751         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26752         if HAVE_POSIX_SPAWN is 1.
26753         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26754
26755 2010-03-01  Bruno Haible  <bruno@clisp.org>
26756
26757         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26758         regarding Automake.
26759
26760 2010-02-25  Bruno Haible  <bruno@clisp.org>
26761
26762         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26763         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26764         setting, not afterwards.
26765         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26766
26767 2010-02-24  Eric Blake  <eblake@redhat.com>
26768
26769         bootstrap, git-version-gen: use timestamp
26770         * build-aux/git-version-gen (scriptversion): Force UTC.
26771         * build-aux/bootstrap (scriptversion): New variable.
26772
26773         bootstrap: allow older git
26774         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26775         older than 1.6.4.  Requested by the libvirt project.
26776
26777 2010-02-23  Eric Blake  <eblake@redhat.com>
26778
26779         warn-on-use: work with old autoconf
26780         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26781         AS_VAR semantics of autoconf 2.60.
26782         Reported by Bruno Haible.
26783
26784         bootstrap: improve some comments
26785         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26786         clarification comments.
26787
26788         gettimeofday: provide correct function
26789         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26790         when replacement is declared, otherwise provide gettimeofday.
26791         Reported by Michael Goffioul.
26792
26793 2010-02-23  Jim Meyering  <meyering@redhat.com>
26794
26795         lib-ignore: relax license to "unlimited", not LGPLv2+
26796         * modules/lib-ignore (License): Relax to "unlimited".
26797
26798 2010-02-23  Jim Meyering  <meyering@redhat.com>
26799
26800         lib-ignore: relax license to LGPLv2+
26801         * modules/lib-ignore (License): Relax to LGPLv2+.
26802
26803 2010-02-22  Eric Blake  <eblake@redhat.com>
26804
26805         lseek: avoid bash 3.2 broken pipe bug
26806         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26807         warning from bash 3.2.
26808         Reported by Ben Pfaff, with analysis from Bruno Haible.
26809
26810         bootstrap: support non-FSF copyright holder
26811         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26812         bootstrap.conf override of COPYRIGHT_HOLDER.
26813         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26814
26815         bootstrap: interoperate with gettext 0.14.1
26816         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26817
26818         bootstrap: allow for alternate submodule location
26819         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26820         hardcoding submodule location.
26821         (gnulib_mk): Allow direct use of Makefile.am.
26822
26823         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26824         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26825         rather than reconfiguring where the submodule points.
26826
26827         gettimeofday: restore support for platforms that lack function
26828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26829         replacement if function is missing.
26830         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26831         * modules/sys_time (Makefile.am): Substitute it.
26832         * lib/sys_time.in.h (gettimeofday): Check it.
26833         Reported by Michael Goffioul.
26834
26835 2010-02-21  Bruno Haible  <bruno@clisp.org>
26836
26837         * lib/stdio.in.h (obstack_printf): Fix typo.
26838
26839 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26840
26841         vc-list-files: use bzr ls's -R option
26842         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26843         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26844
26845 2010-02-21  Jim Meyering  <meyering@redhat.com>
26846
26847         init.sh: fix EXEEXT shims to work also for names like test-prog
26848         * tests/init.sh: Re-exec a better shell, when needed.
26849         If the current shell lacks support for posix $(...), an init.sh-using
26850         test will now try to find a shell that supports that.  If EXEEXT is
26851         nonempty, we also require support for hyphen-in-alias-name and shell
26852         substitutions like ${var#glob}.  Failure to find such a shell results
26853         in a skipped test.
26854
26855 2010-02-21  Bruno Haible  <bruno@clisp.org>
26856
26857         Really work around around "broken pipe" error message from bash 3.2.
26858         * gnulib-tool (func_reset_sigpipe): Remove function.
26859         (echo): In bash 3.2, define to a function that uses printf.
26860         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26861
26862 2010-02-20  Bruno Haible  <bruno@clisp.org>
26863
26864         Restore support for automake 1.9.6 with autoconf 2.61.
26865         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26866         Reported by James Youngman <jay@gnu.org>.
26867
26868 2010-02-20  Bruno Haible  <bruno@clisp.org>
26869
26870         Improve *printf warning condition.
26871         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26872         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26873         and the function is overridden due to SIGPIPE emulation.
26874
26875 2010-02-20  Bruno Haible  <bruno@clisp.org>
26876
26877         * lib/stdio.in.h: Tweak comments.
26878
26879 2010-02-19  Bruno Haible  <bruno@clisp.org>
26880
26881         Make it easier to find modules. New gnulib-tool option '--find'.
26882         * gnulib-tool: New option --find.
26883         (func_usage): Document it.
26884         (func_sanitize_modulelist): New function, extracted from
26885         func_all_modules.
26886         (func_all_modules): Invoke it.
26887         * doc/gnulib-tool.texi (Which modules?): New node.
26888
26889 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26890
26891         * lib/sys_select.in.h: Provide select replacement even if
26892         sys/select.h exists on a system, for Interix.
26893
26894 2010-02-18  Jim Meyering  <meyering@redhat.com>
26895
26896         init.sh: don't use $(...) just yet
26897         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26898         to accommodate e.g., Solaris' /bin/sh.
26899
26900 2010-02-17  Bruno Haible  <bruno@clisp.org>
26901
26902         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26903         Reported by Ludovic Courtès <ludo@gnu.org>.
26904
26905 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26906
26907         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26908         linking with -lintl.
26909
26910 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26911
26912         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26913         if not provided by the system's netdb.h.  Reported by
26914         ludo@gnu.org (Ludovic Courtès).
26915
26916 2010-02-15  Jim Meyering  <meyering@redhat.com>
26917
26918         init.sh: improve portability and efficiency
26919         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26920         "dummy" in a for loop.
26921         Use '!', not '^' to select the complement of a character set used
26922         in a "case" statement.
26923         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26924         Suggestions from Eric Blake.
26925
26926         init.sh: automatically accommodate programs with the .exe suffix
26927         Automatically arrange for an invocation of "prog" to execute the
26928         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26929         may use the simpler "prog", yet still work when built on a system
26930         that requires specifying the added suffix.
26931         Do this by constructing a function named "prog" that invokes
26932         "prog.exe" for each .exe file in selected directories.
26933         * tests/init.sh (find_exe_basenames_): New function.
26934         (create_exe_shim_functions_): New function.
26935         (path_prepend_): Use it.
26936
26937         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26938         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26939         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26940
26941 2010-02-14  Jim Meyering  <meyering@redhat.com>
26942
26943         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26944         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26945         (sc_prohibit_hash_pjw_without_use): New rule.
26946
26947         maint.mk: allow the default upload destination dir to be overridden
26948         * top/maint.mk (upload_dest_dir_): Define with a default that
26949         preserves the status quo.
26950         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26951         Reported by Peter Simons.
26952
26953         maint.mk: prohibit inclusion of "hash.h" without_use
26954         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26955
26956 2010-02-10  Jim Meyering  <meyering@redhat.com>
26957
26958         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26959         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26960
26961 2010-02-09  Eric Blake  <ebb9@byu.net>
26962         and Bruno Haible  <bruno@clisp.org>
26963
26964         obstack-printf-posix: ensure declaration
26965         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26966         extracted from gl_FUNC_OBSTACK_PRINTF.
26967         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26969         Likewise.
26970         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26971         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26972         0.
26973
26974 2010-02-08  Bruno Haible  <bruno@clisp.org>
26975
26976         gnulib-tool: Fix typo in 2010-02-07 commit.
26977         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26978         Reported by Eric Blake.
26979
26980 2010-02-07  Bruno Haible  <bruno@clisp.org>
26981
26982         gnulib-tool: Fix up caching patches.
26983         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26984         option --no-cache. Use associative arrays when supported by the shell.
26985         (sed_comments): New variable.
26986         (modcache): Renamed from do_cache.
26987         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26988         abbreviate unnecessarily.
26989         (have_associative): New variable.
26990         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26991         way also for ksh and zsh.
26992         (func_init_sed_convert_to_cache_statements): New function, extracted
26993         from func_cache_lookup_module. Add support for associative arrays.
26994         Don't set the c_MODULE_cached variable here. Ignore all lines before
26995         the first field header. Remove only the final newline, not all trailing
26996         newlines. Support empty fields correctly. Limit the use of 'eval' to
26997         assignments.
26998         (func_get_description, func_get_status, func_get_notice,
26999         func_get_applicability, func_get_filelist, func_get_dependencies,
27000         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27001         func_get_automake_snippet, func_get_include_directive,
27002         func_get_link_directive, func_get_license, func_get_maintainer):
27003         Update documentation. List the unoptimized code first. Add support for
27004         associative arrays. Limit the use of 'eval' to assignments.
27005         (func_get_applicability): Undo stylistic pessimisations.
27006         (func_get_automake_snippet, func_get_include_directive): Reduce code
27007         duplication.
27008         (func_modules_transitive_closure, func_modules_add_dummy,
27009         func_modules_notice, func_modules_to_filelist, func_add_file,
27010         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27011         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27012         func_create_testdir, func_create_megatestdir): Update documentation.
27013
27014 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27015
27016         * gnulib-tool (func_cache_lookup_module): Store the module name
27017         belonging to the cache variable; error out if two different
27018         module names map to the same cache variable name.
27019
27020 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27021
27022         gnulib-tool: Make caching optional.
27023         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27024         Update matching short versions of --no-changelog.
27025         (func_usage): Update.
27026         (sed_extract_cache_prog): Renamed from ...
27027         (sed_extract_prog): ... this; revert to old extraction script.
27028         (func_get_description, func_get_status)
27029         (func_get_notice, func_get_applicability, func_get_filelist)
27030         (func_get_dependencies, func_get_autoconf_early_snippet)
27031         (func_get_autoconf_snippet, func_get_automake_snippet)
27032         (func_get_include_directive, func_get_link_directive)
27033         (func_get_license, func_get_maintainer): If $do_cache is false,
27034         use old, non-caching extraction scripts.
27035         Suggestion by Bruno Haible.
27036
27037 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27038
27039         gnulib-tool: cache module metainformation.
27040         * gnulib-tool (sed_extract_prog): Match newline before each
27041         header, and rewrite header to a shell variable suffix.
27042         (func_cache_var, func_cache_lookup_module): New functions,
27043         to turn a module name into a cache variable prefix, and to
27044         look up and cache module metainformation.
27045         (func_get_description, func_get_status)
27046         (func_get_notice, func_get_applicability, func_get_filelist)
27047         (func_get_dependencies, func_get_autoconf_early_snippet)
27048         (func_get_autoconf_snippet, func_get_automake_snippet)
27049         (func_get_include_directive, func_get_link_directive)
27050         (func_get_license, func_get_maintainer): Use
27051         func_cache_lookup_module.
27052
27053 2010-02-07  Bruno Haible  <bruno@clisp.org>
27054
27055         fnctl: Fix missing dependency.
27056         * modules/fcntl (Depends-on): Add getdtablesize.
27057         Reported by John W. Eaton <jwe@gnu.org>.
27058
27059 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27060
27061         Argp: fix recognition of short alias options.
27062
27063         * lib/argp-parse.c (convert_options): Fix improper use of
27064         `|' between character values.
27065         * tests/test-argp.c (group1_option): New alias option
27066         --read (-r).
27067         (group1_parser): Special handling for 'r'.
27068         (test15): New test case.
27069         (test_fun): Add test15.
27070         * tests/test-argp-2.sh: Update expected --help and --usage
27071         outputs.
27072
27073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27074
27075         * tests/test-argp.c: Fix indentation.
27076
27077 2010-02-04  Eric Blake  <ebb9@byu.net>
27078
27079         gettimeofday: expose type of second argument
27080         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27081         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27082         * tests/test-gettimeofday.c: Use it to silence warning.
27083         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27084         the issue.
27085
27086 2010-02-03  Jim Meyering  <meyering@redhat.com>
27087
27088         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27089         * lib/regcomp.c (TYPE_SIGNED): Define.
27090         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27091
27092         regcomp.c: avoid a new -Wshadow warning
27093         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27094
27095 2010-02-01  Jim Meyering  <meyering@redhat.com>
27096
27097         removing useless parentheses in cpp #define directives
27098         For motivation, see commit c0221df4, "define STREQ(a,b)
27099         consistently, removing useless parentheses"
27100         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27101         * lib/mountlist.c (MNT_IGNORE): Likewise.
27102         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27103
27104 2010-02-01  Eric Blake  <ebb9@byu.net>
27105
27106         sys_time: use link-warning
27107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27108         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27109         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27110         * modules/sys_time (Depends-on): Add warn-on-use.
27111         (Makefile.am): Always build replacement.
27112         (configure.ac): Update substitutions.
27113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27114         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27115         bother with SYS_TIME_H.
27116         * modules/gettimeofday (configure.ac): Declare indicator.
27117         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27118         in use.
27119
27120         closein-tests: silence compiler warning
27121         * tests/test-closein.c (main): Ignore fread result.
27122         * modules/closein-tests (Depends-on): Add ignore-value.
27123
27124         tests: silence warning about system return
27125         * tests/test-areadlink-with-size.c (main): Ignore system result.
27126         * tests/test-areadlink.c (main): Likewise.
27127         * tests/test-areadlinkat-with-size.c (main): Likewise.
27128         * tests/test-areadlinkat.c (main): Likewise.
27129         * tests/test-canonicalize-lgpl.c (main): Likewise.
27130         * tests/test-canonicalize.c (main): Likewise.
27131         * tests/test-chown.c (main): Likewise.
27132         * tests/test-fchownat.c (main): Likewise.
27133         * tests/test-fdutimensat.c (main): Likewise.
27134         * tests/test-fstatat.c (main): Likewise.
27135         * tests/test-futimens.c (main): Likewise.
27136         * tests/test-lchown.c (main): Likewise.
27137         * tests/test-link.c (main): Likewise.
27138         * tests/test-linkat.c (main): Likewise.
27139         * tests/test-lstat.c (main): Likewise.
27140         * tests/test-mkdir.c (main): Likewise.
27141         * tests/test-mkdirat.c (main): Likewise.
27142         * tests/test-mkfifo.c (main): Likewise.
27143         * tests/test-mkfifoat.c (main): Likewise.
27144         * tests/test-mknod.c (main): Likewise.
27145         * tests/test-readlink.c (main): Likewise.
27146         * tests/test-remove.c (main): Likewise.
27147         * tests/test-rename.c (main): Likewise.
27148         * tests/test-renameat.c (main): Likewise.
27149         * tests/test-rmdir.c (main): Likewise.
27150         * tests/test-symlink.c (main): Likewise.
27151         * tests/test-symlinkat.c (main): Likewise.
27152         * tests/test-unlink.c (main): Likewise.
27153         * tests/test-unlinkat.c (main): Likewise.
27154         * tests/test-utimens.c (main): Likewise.
27155         * tests/test-utimensat.c (main): Likewise.
27156         * modules/areadlink-tests (Depends-on): Add ignore-value.
27157         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27158         * modules/areadlinkat-tests (Depends-on): Likewise.
27159         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27160         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27161         * modules/canonicalize-tests (Depends-on): Likewise.
27162         * modules/chown-tests (Depends-on): Likewise.
27163         * modules/fdutimensat-tests (Depends-on): Likewise.
27164         * modules/futimens-tests (Depends-on): Likewise.
27165         * modules/lchown-tests (Depends-on): Likewise.
27166         * modules/link-tests (Depends-on): Likewise.
27167         * modules/linkat-tests (Depends-on): Likewise.
27168         * modules/lstat-tests (Depends-on): Likewise.
27169         * modules/mkdir-tests (Depends-on): Likewise.
27170         * modules/mkfifo-tests (Depends-on): Likewise.
27171         * modules/mkfifoat-tests (Depends-on): Likewise.
27172         * modules/mknod-tests (Depends-on): Likewise.
27173         * modules/openat-tests (Depends-on): Likewise.
27174         * modules/readlink-tests (Depends-on): Likewise.
27175         * modules/remove-tests (Depends-on): Likewise.
27176         * modules/rename-tests (Depends-on): Likewise.
27177         * modules/renameat-tests (Depends-on): Likewise.
27178         * modules/rmdir-tests (Depends-on): Likewise.
27179         * modules/symlink-tests (Depends-on): Likewise.
27180         * modules/symlinkat-tests (Depends-on): Likewise.
27181         * modules/unlink-tests (Depends-on): Likewise.
27182         * modules/utimens-tests (Depends-on): Likewise.
27183         * modules/utimensat-tests (Depends-on): Likewise.
27184
27185 2010-01-31  Bruno Haible  <bruno@clisp.org>
27186
27187         Perform the same test for many <math.h> functions.
27188         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27189         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27190         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27191         of gl_MATHFUNC.
27192         * modules/acos (configure.ac): Likewise.
27193         * modules/asin (configure.ac): Likewise.
27194         * modules/atan (configure.ac): Likewise.
27195         * modules/atan2 (configure.ac): Likewise.
27196         * modules/cbrt (configure.ac): Likewise.
27197         * modules/copysign (configure.ac): Likewise.
27198         * modules/cos (configure.ac): Likewise.
27199         * modules/cosh (configure.ac): Likewise.
27200         * modules/erf (configure.ac): Likewise.
27201         * modules/erfc (configure.ac): Likewise.
27202         * modules/exp (configure.ac): Likewise.
27203         * modules/fmod (configure.ac): Likewise.
27204         * modules/hypot (configure.ac): Likewise.
27205         * modules/j0 (configure.ac): Likewise.
27206         * modules/j1 (configure.ac): Likewise.
27207         * modules/jn (configure.ac): Likewise.
27208         * modules/lgamma (configure.ac): Likewise.
27209         * modules/log (configure.ac): Likewise.
27210         * modules/log10 (configure.ac): Likewise.
27211         * modules/log1p (configure.ac): Likewise.
27212         * modules/pow (configure.ac): Likewise.
27213         * modules/remainder (configure.ac): Likewise.
27214         * modules/sin (configure.ac): Likewise.
27215         * modules/sinh (configure.ac): Likewise.
27216         * modules/tan (configure.ac): Likewise.
27217         * modules/tanh (configure.ac): Likewise.
27218         * modules/y0 (configure.ac): Likewise.
27219         * modules/y1 (configure.ac): Likewise.
27220         * modules/yn (configure.ac): Likewise.
27221         Suggested by Paolo Bonzini.
27222
27223 2010-01-31  Bruno Haible  <bruno@clisp.org>
27224
27225         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27226
27227 2010-01-31  Bruno Haible  <bruno@clisp.org>
27228
27229         Work around getdelim() bug on FreeBSD 8.0.
27230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27231         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27232         not work.
27233         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27234         is 1.
27235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27236         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27237         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27238         a non-zero size.
27239         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27240
27241 2010-01-31  Bruno Haible  <bruno@clisp.org>
27242
27243         Work around getline() bug on FreeBSD 8.0.
27244         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27245         and a non-zero size.
27246         * tests/test-getline.c (main): Likewise.
27247         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27248         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27249
27250 2010-01-28  Eric Blake  <ebb9@byu.net>
27251
27252         regex: fix build failure
27253         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27254         platforms.
27255
27256 2010-01-28  Jim Meyering  <meyering@redhat.com>
27257
27258         regex: do not ignore memory allocation failure
27259         * lib/regex_internal.c (create_cd_newstate): Detect
27260         re_node_set_init_copy failure.   Extracted from glibc commit
27261         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27262
27263         regex: sync more white-space changes from libc
27264         * lib/regex_internal.c: White-space only changes.
27265         * lib/regexec.c: Likewise.
27266
27267         regex: add many uses of __attribute_warn_unused_result__
27268         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27269         * lib/regexec.c: Likewise.
27270         Extracted from a messy glibc commit.
27271
27272         regcomp.c: spelling and merge-artifact from glibc
27273         * lib/regcomp.c: Merge remainder of glibc's
27274         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27275
27276         regcomp.c: sync white-space changes from glibc
27277         * lib/regcomp.c: Merge to accommodate white space
27278         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27279
27280         regcomp.c: do not ignore internal return values
27281         * lib/regcomp.c: Do not ignore internal return values.
27282         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27283         but without its white-space changes and spelling fixes.
27284
27285         regex_internal.h: define __attribute_warn_unused_result__
27286         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27287
27288         maint: add a syntax-check rule to check for vulnerable Makefile.in
27289         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27290
27291 2010-01-27  Jim Meyering  <meyering@redhat.com>
27292
27293         ncftpput-ftp: clean up spaces
27294         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27295         Remove trailing blanks.
27296
27297 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27298
27299         * build-aux/git-version-gen: Fix copyright statement.
27300         * build-aux/gnupload: Likewise.
27301         * tests/test-arcfour.c: Likewise.
27302         * tests/test-arctwo.c: Likewise.
27303         * tests/test-count-one-bits.c: Likewise.
27304         * tests/test-crc.c: Likewise.
27305         * tests/test-des.c: Likewise.
27306         * tests/test-gc-arcfour.c: Likewise.
27307         * tests/test-gc-arctwo.c: Likewise.
27308         * tests/test-gc-des.c: Likewise.
27309         * tests/test-gc-hmac-md5.c: Likewise.
27310         * tests/test-gc-hmac-sha1.c: Likewise.
27311         * tests/test-gc-md2.c: Likewise.
27312         * tests/test-gc-md4.c: Likewise.
27313         * tests/test-gc-md5.c: Likewise.
27314         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27315         * tests/test-gc-rijndael.c: Likewise.
27316         * tests/test-gc-sha1.c: Likewise.
27317         * tests/test-gc.c: Likewise.
27318         * tests/test-gethostname.c: Likewise.
27319         * tests/test-gettimeofday.c: Likewise.
27320         * tests/test-hash.c: Likewise.
27321         * tests/test-hmac-md5.c: Likewise.
27322         * tests/test-hmac-sha1.c: Likewise.
27323         * tests/test-md2.c: Likewise.
27324         * tests/test-md4.c: Likewise.
27325         * tests/test-md5.c: Likewise.
27326         * tests/test-memchr.c: Likewise.
27327         * tests/test-memchr2.c: Likewise.
27328         * tests/test-memcmp.c: Likewise.
27329         * tests/test-memmem.c: Likewise.
27330         * tests/test-memrchr.c: Likewise.
27331         * tests/test-rawmemchr.c: Likewise.
27332         * tests/test-read-file.c: Likewise.
27333         * tests/test-rijndael.c: Likewise.
27334         * tests/test-sockets.c: Likewise.
27335         * tests/test-strchrnul.c: Likewise.
27336         * tests/test-strstr.c: Likewise.
27337         * tests/test-strtod.c: Likewise.
27338         * build-aux/ncftpput-ftp: Likewise.
27339
27340 2010-01-26  Eric Blake  <ebb9@byu.net>
27341
27342         ignore-value: update recommended header name
27343         * modules/ignore-value (Include): Only use <> for headers that
27344         exist in glibc.
27345
27346 2010-01-26  Jim Meyering  <meyering@redhat.com>
27347
27348         test-userspec.c: avoid compiler warnings
27349         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27350         and "initialization discards qualifiers..." warnings.
27351         Put the first "uid" in its own scope, and make char* members "const".
27352
27353 2010-01-25  Bruno Haible  <bruno@clisp.org>
27354
27355         gnulib-tool: Make warning diagnostics consistent.
27356         * gnulib-tool (func_warning): New function.
27357         Use it everywhere where gnulib-tool produces output to stderr and it is
27358         not a fatal error.
27359
27360 2010-01-25  Bruno Haible  <bruno@clisp.org>
27361
27362         Fix test dependencies.
27363         * modules/xstrtol-tests (Depends-on): Add inttypes.
27364         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27365
27366 2010-01-25 Pádraig Brady <P@draigBrady.com>
27367
27368         syntax-check: detect incorrect boolean macro values in config.h
27369         * modules/maintainer-makefile (configure.ac): Parameterize the location
27370         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27371         The logic is from Eric Blake and the location indicated by Jim Meyering.
27372         Note the more natural CONFIG_HEADER name is prohibited by automake
27373         for backwards compatibility reasons.
27374         * top/maint.mk (sc_Wundef_boolean): New rule.
27375
27376 2010-01-25  Jim Meyering  <meyering@redhat.com>
27377
27378         bootstrap: detect MacOS 10.6's shasum, too
27379         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27380         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27381
27382 2010-01-23  Jim Meyering  <meyering@redhat.com>
27383
27384         xstrtoll: new module
27385         * modules/xstrtoll: New file.
27386         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27387         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27388         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27389         ./configure fails if you use this module and lack "long long".
27390         * modules/xstrtoll-tests: New module.
27391         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27392         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27393         new init.sh-based test framework.
27394
27395 2010-01-24  Bruno Haible  <bruno@clisp.org>
27396
27397         Tests for module 'yn'.
27398         * modules/yn-tests: New file.
27399         * tests/test-yn.c: New file.
27400
27401         Tests for module 'y1'.
27402         * modules/y1-tests: New file.
27403         * tests/test-y1.c: New file.
27404
27405         Tests for module 'y0'.
27406         * modules/y0-tests: New file.
27407         * tests/test-y0.c: New file.
27408
27409         Tests for module 'tanh'.
27410         * modules/tanh-tests: New file.
27411         * tests/test-tanh.c: New file.
27412
27413         Tests for module 'tan'.
27414         * modules/tan-tests: New file.
27415         * tests/test-tan.c: New file.
27416
27417         Tests for module 'sqrt'.
27418         * modules/sqrt-tests: New file.
27419         * tests/test-sqrt.c: New file.
27420
27421         Tests for module 'sinh'.
27422         * modules/sinh-tests: New file.
27423         * tests/test-sinh.c: New file.
27424
27425         Tests for module 'sin'.
27426         * modules/sin-tests: New file.
27427         * tests/test-sin.c: New file.
27428
27429         Tests for module 'rint'.
27430         * modules/rint-tests: New file.
27431         * tests/test-rint.c: New file.
27432
27433         Tests for module 'remainder'.
27434         * modules/remainder-tests: New file.
27435         * tests/test-remainder.c: New file.
27436
27437         Tests for module 'pow'.
27438         * modules/pow-tests: New file.
27439         * tests/test-pow.c: New file.
27440
27441         Tests for module 'nextafter'.
27442         * modules/nextafter-tests: New file.
27443         * tests/test-nextafter.c: New file.
27444
27445         Tests for module 'modf'.
27446         * modules/modf-tests: New file.
27447         * tests/test-modf.c: New file.
27448
27449         Tests for module 'logb'.
27450         * modules/logb-tests: New file.
27451         * tests/test-logb.c: New file.
27452
27453         Tests for module 'log1p'.
27454         * modules/log1p-tests: New file.
27455         * tests/test-log1p.c: New file.
27456
27457         Tests for module 'log10'.
27458         * modules/log10-tests: New file.
27459         * tests/test-log10.c: New file.
27460
27461         Tests for module 'log'.
27462         * modules/log-tests: New file.
27463         * tests/test-log.c: New file.
27464
27465         Tests for module 'lgamma'.
27466         * modules/lgamma-tests: New file.
27467         * tests/test-lgamma.c: New file.
27468
27469         Tests for module 'ldexp'.
27470         * modules/ldexp-tests: New file.
27471         * tests/test-ldexp.c: New file.
27472
27473         Tests for module 'jn'.
27474         * modules/jn-tests: New file.
27475         * tests/test-jn.c: New file.
27476
27477         Tests for module 'j1'.
27478         * modules/j1-tests: New file.
27479         * tests/test-j1.c: New file.
27480
27481         Tests for module 'j0'.
27482         * modules/j0-tests: New file.
27483         * tests/test-j0.c: New file.
27484
27485         Tests for module 'hypot'.
27486         * modules/hypot-tests: New file.
27487         * tests/test-hypot.c: New file.
27488
27489         Tests for module 'fmod'.
27490         * modules/fmod-tests: New file.
27491         * tests/test-fmod.c: New file.
27492
27493         Tests for module 'fabs'.
27494         * modules/fabs-tests: New file.
27495         * tests/test-fabs.c: New file.
27496
27497         Tests for module 'exp'.
27498         * modules/exp-tests: New file.
27499         * tests/test-exp.c: New file.
27500
27501         Tests for module 'erfc'.
27502         * modules/erfc-tests: New file.
27503         * tests/test-erfc.c: New file.
27504
27505         Tests for module 'erf'.
27506         * modules/erf-tests: New file.
27507         * tests/test-erf.c: New file.
27508
27509         Tests for module 'cosh'.
27510         * modules/cosh-tests: New file.
27511         * tests/test-cosh.c: New file.
27512
27513         Tests for module 'cos'.
27514         * modules/cos-tests: New file.
27515         * tests/test-cos.c: New file.
27516
27517         Tests for module 'copysign'.
27518         * modules/copysign-tests: New file.
27519         * tests/test-copysign.c: New file.
27520
27521         Tests for module 'cbrt'.
27522         * modules/cbrt-tests: New file.
27523         * tests/test-cbrt.c: New file.
27524
27525         Tests for module 'atan2'.
27526         * modules/atan2-tests: New file.
27527         * tests/test-atan2.c: New file.
27528
27529         Tests for module 'atan'.
27530         * modules/atan-tests: New file.
27531         * tests/test-atan.c: New file.
27532
27533         Tests for module 'asin'.
27534         * modules/asin-tests: New file.
27535         * tests/test-asin.c: New file.
27536
27537         Tests for module 'acos'.
27538         * modules/acos-tests: New file.
27539         * tests/test-acos.c: New file.
27540
27541 2010-01-24  Bruno Haible  <bruno@clisp.org>
27542
27543         Fix tests for common <math.h> functions.
27544         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27545         code snippet that references the function pointer, rather than merely
27546         calling the function. Substitute the FUNC_LIBM variable.
27547         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27548         * modules/acos (configure.ac): Likewise.
27549         * modules/asin (configure.ac): Likewise.
27550         * modules/atan (configure.ac): Likewise.
27551         * modules/atan2 (configure.ac): Likewise.
27552         * modules/cbrt (configure.ac): Likewise.
27553         * modules/copysign (configure.ac): Likewise.
27554         * modules/cos (configure.ac): Likewise.
27555         * modules/cosh (configure.ac): Likewise.
27556         * modules/erf (configure.ac): Likewise.
27557         * modules/erfc (configure.ac): Likewise.
27558         * modules/exp (configure.ac): Likewise.
27559         * modules/fabs (configure.ac): Likewise.
27560         * modules/fmod (configure.ac): Likewise.
27561         * modules/hypot (configure.ac): Likewise.
27562         * modules/j0 (configure.ac): Likewise.
27563         * modules/j1 (configure.ac): Likewise.
27564         * modules/jn (configure.ac): Likewise.
27565         * modules/ldexp (configure.ac): Likewise.
27566         * modules/lgamma (configure.ac): Likewise.
27567         * modules/log (configure.ac): Likewise.
27568         * modules/log10 (configure.ac): Likewise.
27569         * modules/log1p (configure.ac): Likewise.
27570         * modules/logb (configure.ac): Likewise.
27571         * modules/modf (configure.ac): Likewise.
27572         * modules/nextafter (configure.ac): Likewise.
27573         * modules/pow (configure.ac): Likewise.
27574         * modules/remainder (configure.ac): Likewise.
27575         * modules/rint (configure.ac): Likewise.
27576         * modules/sin (configure.ac): Likewise.
27577         * modules/sinh (configure.ac): Likewise.
27578         * modules/tan (configure.ac): Likewise.
27579         * modules/tanh (configure.ac): Likewise.
27580         * modules/y0 (configure.ac): Likewise.
27581         * modules/y1 (configure.ac): Likewise.
27582         * modules/yn (configure.ac): Likewise.
27583
27584 2010-01-24  Bruno Haible  <bruno@clisp.org>
27585
27586         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27587         * tests/test-acosl.c (x): New variable.
27588         (main): Store argument in x and fetch it from x.
27589         * tests/test-asinl.c (x): New variable.
27590         (main): Store argument in x and fetch it from x.
27591         * tests/test-atanl.c (x): New variable.
27592         (main): Store argument in x and fetch it from x.
27593         * tests/test-cosl.c (x): New variable.
27594         (main): Store argument in x and fetch it from x.
27595         * tests/test-expl.c (x): New variable.
27596         (main): Store argument in x and fetch it from x.
27597         * tests/test-logl.c (x): New variable.
27598         (main): Store argument in x and fetch it from x.
27599         * tests/test-sinl.c (x): New variable.
27600         (main): Store argument in x and fetch it from x.
27601         * tests/test-sqrtl.c (x): New variable.
27602         (main): Store argument in x and fetch it from x.
27603         * tests/test-tanl.c (x): New variable.
27604         (main): Store argument in x and fetch it from x.
27605
27606 2010-01-24  Bruno Haible  <bruno@clisp.org>
27607
27608         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27609         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27610         assignments to the initial TESTS_ENVIRONMENT.
27611         * doc/gnulib.texi (Unit test modules): Document it.
27612         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27613         TESTS_ENVIRONMENT.
27614         * modules/btowc-tests (Makefile.am): Likewise.
27615         * modules/c-stack-tests (Makefile.am): Likewise.
27616         * modules/c-strcase-tests (Makefile.am): Likewise.
27617         * modules/copy-file-tests (Makefile.am): Likewise.
27618         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27619         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27620         * modules/mbrtowc-tests (Makefile.am): Likewise.
27621         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27622         * modules/mbscasestr-tests (Makefile.am): Likewise.
27623         * modules/mbschr-tests (Makefile.am): Likewise.
27624         * modules/mbscspn-tests (Makefile.am): Likewise.
27625         * modules/mbsinit-tests (Makefile.am): Likewise.
27626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27627         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27628         * modules/mbspbrk-tests (Makefile.am): Likewise.
27629         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27630         * modules/mbsrchr-tests (Makefile.am): Likewise.
27631         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27632         * modules/mbsspn-tests (Makefile.am): Likewise.
27633         * modules/mbsstr-tests (Makefile.am): Likewise.
27634         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27635         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27636         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27637         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27638         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27639         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27640         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27641         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27642         * modules/wcrtomb-tests (Makefile.am): Likewise.
27643         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27644         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27645         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27646         assignments from TESTS_ENVIRONMENT.
27647         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27648         augmentation.
27649         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27650         * modules/atexit-tests (Makefile.am): Likewise.
27651         * modules/binary-io-tests (Makefile.am): Likewise.
27652         * modules/closein-tests (Makefile.am): Likewise.
27653         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27654         * modules/exclude-tests (Makefile.am): Likewise.
27655         * modules/fflush-tests (Makefile.am): Likewise.
27656         * modules/fpending-tests (Makefile.am): Likewise.
27657         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27658         * modules/freadahead-tests (Makefile.am): Likewise.
27659         * modules/freadptr-tests (Makefile.am): Likewise.
27660         * modules/freadseek-tests (Makefile.am): Likewise.
27661         * modules/fseek-tests (Makefile.am): Likewise.
27662         * modules/fseeko-tests (Makefile.am): Likewise.
27663         * modules/ftell-tests (Makefile.am): Likewise.
27664         * modules/ftello-tests (Makefile.am): Likewise.
27665         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27666         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27667         * modules/lseek-tests (Makefile.am): Likewise.
27668         * modules/parse-duration-tests (Makefile.am): Likewise.
27669         * modules/perror-tests (Makefile.am): Likewise.
27670         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27671         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27672         * modules/pipe-tests (Makefile.am): Likewise.
27673         * modules/pread-tests (Makefile.am): Likewise.
27674         * modules/printf-posix-tests (Makefile.am): Likewise.
27675         * modules/select-tests (Makefile.am): Likewise.
27676         * modules/sigpipe-tests (Makefile.am): Likewise.
27677         * modules/tsearch-tests (Makefile.am): Likewise.
27678         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27679         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27680         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27681         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27682         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27683         * modules/version-etc-tests (Makefile.am): Likewise.
27684         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27685         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27686         * modules/xalloc-die-tests (Makefile.am): Likewise.
27687         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27688         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27689         * modules/xstrtol-tests (Makefile.am): Likewise.
27690         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27691         * modules/yesno-tests (Makefile.am): Likewise.
27692         Suggested by Jim Meyering.
27693
27694 2010-01-24  Bruno Haible  <bruno@clisp.org>
27695
27696         More documentation.
27697         * doc/gnulib.texi (Writing modules): New chapter.
27698         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27699         the new chapter.
27700
27701 2010-01-24  Jim Meyering  <meyering@redhat.com>
27702
27703         maint.mk: do not prepend "./" after filtering
27704         * top/maint.mk (_prepend_srcdir_prefix): New variable
27705         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27706         "./" when $(srcdir) is ".".
27707
27708         define STREQ(a,b) consistently, removing useless parentheses
27709         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27710         since the only risk is that "a" or "b" contains an unparenthesized
27711         comma, but if either did that, STREQ would have 3 or more arguments.
27712         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27713         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27714         * lib/hash-triple.c (STREQ): Likewise.
27715         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27716         * lib/getugroups.c (STREQ): Likewise.
27717
27718 2010-01-23  Jim Meyering  <meyering@redhat.com>
27719
27720         maint.mk: fix syntax-check in a non-srcdir build directory
27721         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27722         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27723
27724 2010-01-22  Jim Meyering  <meyering@redhat.com>
27725
27726         userspec: add unit tests
27727         * tests/test-userspec.c: New file.
27728         * modules/userspec-tests: Likewise.
27729
27730 2010-01-21  Jim Meyering  <meyering@redhat.com>
27731
27732         maint.mk: handle source file names containing "." robustly
27733         * top/maint.mk (_dot_escaped_srcdir): Define.
27734         (VC_LIST): Use it in LHS of sed substitution.
27735
27736 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27737
27738         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27739         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27740         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27741         from a non-srcdir build.
27742
27743 2010-01-20  Eric Blake  <ebb9@byu.net>
27744
27745         warn-on-use: use instead of link-warning
27746         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27747         * modules/unistd (Depends-on, Makefile.am): Likewise.
27748         * modules/arpa_inet (Depends-on): Replace link-warning with
27749         warn-on-use.
27750         (Makefile.am): Update rules accordingly.
27751         * modules/ctype (Depends-on, Makefile.am): Likewise.
27752         * modules/dirent (Depends-on, Makefile.am): Likewise.
27753         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27754         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27755         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27756         * modules/locale (Depends-on, Makefile.am): Likewise.
27757         * modules/math (Depends-on, Makefile.am): Likewise.
27758         * modules/search (Depends-on, Makefile.am): Likewise.
27759         * modules/signal (Depends-on, Makefile.am): Likewise.
27760         * modules/spawn (Depends-on, Makefile.am): Likewise.
27761         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27762         * modules/string (Depends-on, Makefile.am): Likewise.
27763         * modules/strings (Depends-on, Makefile.am): Likewise.
27764         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27765         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27766         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27767         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27768         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27769         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27770         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27771         * modules/wchar (Depends-on, Makefile.am): Likewise.
27772         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27773         should be poisoned.
27774         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27775         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27776         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27777         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27778         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27779         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27780         * m4/math_h.m4 (gl_MATH_H): Likewise.
27781         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27782         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27784         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27785         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27786         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27787         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27788         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27793         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27795         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27796         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27797         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27798         GL_LINK_WARNING.
27799         * lib/ctype.in.h: Likewise.
27800         * lib/dirent.in.h: Likewise.
27801         * lib/fcntl.in.h: Likewise.
27802         * lib/inttypes.in.h: Likewise.
27803         * lib/langinfo.in.h: Likewise.
27804         * lib/locale.in.h: Likewise.
27805         * lib/math.in.h: Likewise.
27806         * lib/search.in.h: Likewise.
27807         * lib/signal.in.h: Likewise.
27808         * lib/spawn.in.h: Likewise.
27809         * lib/stdio.in.h: Likewise.
27810         * lib/stdlib.in.h: Likewise.
27811         * lib/string.in.h: Likewise.
27812         * lib/strings.in.h: Likewise.
27813         * lib/sys_file.in.h: Likewise.
27814         * lib/sys_ioctl.in.h: Likewise.
27815         * lib/sys_select.in.h: Likewise.
27816         * lib/sys_socket.in.h: Likewise.
27817         * lib/sys_stat.in.h: Likewise.
27818         * lib/sys_times.in.h: Likewise.
27819         * lib/sys_utsname.in.h: Likewise.
27820         * lib/unistd.in.h: Likewise.
27821         * lib/wchar.in.h: Likewise.
27822
27823 2010-01-20  Bruno Haible  <bruno@clisp.org>
27824
27825         Avoid duplicate -lm.
27826         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27827         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27829         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27830         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27831         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27832         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27833         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27834         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27835         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27836         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27837         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27838         Reported by Paolo Bonzini.
27839
27840 2010-01-19  Bruno Haible  <bruno@clisp.org>
27841
27842         langinfo, nl_langinfo: Relicense under LGPLv2+.
27843         * modules/langinfo (License): Change to LGPLv2+.
27844         * modules/nl_langinfo (License): Likewise.
27845         Patch by David Lutterkort <lutter@redhat.com>.
27846
27847 2010-01-19  Bruno Haible  <bruno@clisp.org>
27848
27849         Avoid compilation error with cc on OSF/1 5.1.
27850         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27851         statement, not before.
27852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27853
27854 2010-01-18  Bruno Haible  <bruno@clisp.org>
27855
27856         Avoid a link error due to the __printf__ symbol.
27857         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27858         and 2.6.x.
27859         (__format__, __printf__): Remove definitions.
27860         * lib/argp-fmtstream.h: Likewise.
27861         * lib/argp.h: Likewise.
27862         * lib/error.h: Likewise.
27863         * lib/vasnprintf.h: Likewise.
27864         * lib/xprintf.h: Likewise.
27865         * lib/xvasprintf.h: Likewise.
27866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27867
27868 2010-01-18  Bruno Haible  <bruno@clisp.org>
27869
27870         Tests for module 'tanl'.
27871         * modules/tanl-tests: New file.
27872         * tests/test-tanl.c: New file.
27873
27874         Tests for module 'sqrtl'.
27875         * modules/sqrtl-tests: New file.
27876         * tests/test-sqrtl.c: New file.
27877
27878         Tests for module 'sinl'.
27879         * modules/sinl-tests: New file.
27880         * tests/test-sinl.c: New file.
27881
27882         Tests for module 'logl'.
27883         * modules/logl-tests: New file.
27884         * tests/test-logl.c: New file.
27885
27886         Tests for module 'expl'.
27887         * modules/expl-tests: New file.
27888         * tests/test-expl.c: New file.
27889
27890         Tests for module 'cosl'.
27891         * modules/cosl-tests: New file.
27892         * tests/test-cosl.c: New file.
27893
27894         Tests for module 'atanl'.
27895         * modules/atanl-tests: New file.
27896         * tests/test-atanl.c: New file.
27897
27898         Tests for module 'asinl'.
27899         * modules/asinl-tests: New file.
27900         * tests/test-asinl.c: New file.
27901
27902         Tests for module 'acosl'.
27903         * modules/acosl-tests: New file.
27904         * tests/test-acosl.c: New file.
27905
27906         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27907         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27908         tanl): Use the standard gnulib idiom.
27909         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27910         * lib/sinl.c: Likewise.
27911         * lib/tanl.c: Don't include trigl.c.
27912         (kernel_tanl): Make static.
27913         * lib/sincosl.c: Include trigl.h first.
27914         * lib/trigl.c: Likewise.
27915         * m4/acosl.m4: New file.
27916         * m4/asinl.m4: New file.
27917         * m4/atanl.m4: New file.
27918         * m4/cosl.m4: New file.
27919         * m4/expl.m4: New file.
27920         * m4/logl.m4: New file.
27921         * m4/sinl.m4: New file.
27922         * m4/sqrtl.m4: New file.
27923         * m4/tanl.m4: New file.
27924         * m4/mathl.m4: Remove file.
27925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27926         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27927         Don't initialize GNULIB_MATHL.
27928         * modules/acosl: New file.
27929         * modules/asinl: New file.
27930         * modules/atanl: New file.
27931         * modules/cosl: New file.
27932         * modules/expl: New file.
27933         * modules/logl: New file.
27934         * modules/sinl: New file.
27935         * modules/sqrtl: New file.
27936         * modules/tanl: New file.
27937         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27938         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27939         substitute GNULIB_MATHL.
27940         * modules/mathl: Rewritten.
27941         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27942         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27943         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27944         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27945         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27946         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27947         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27948         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27949         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27950
27951 2010-01-18  Bruno Haible  <bruno@clisp.org>
27952
27953         sqrt: Make gl_FUNC_SQRT requirable.
27954         * m4/sqrt.m4: New file.
27955         * modules/sqrt (Files): Add it.
27956         (configure.ac): Invoke gl_FUNC_SQRT.
27957
27958 2010-01-18  Bruno Haible  <bruno@clisp.org>
27959
27960         New modules for common <math.h> functions.
27961         * m4/mathfunc.m4: New file.
27962         * modules/acos: New file.
27963         * modules/asin: New file.
27964         * modules/atan: New file.
27965         * modules/atan2: New file.
27966         * modules/cbrt: New file.
27967         * modules/copysign: New file.
27968         * modules/cos: New file.
27969         * modules/cosh: New file.
27970         * modules/erf: New file.
27971         * modules/erfc: New file.
27972         * modules/exp: New file.
27973         * modules/fabs: New file.
27974         * modules/fmod: New file.
27975         * modules/hypot: New file.
27976         * modules/j0: New file.
27977         * modules/j1: New file.
27978         * modules/jn: New file.
27979         * modules/ldexp: New file.
27980         * modules/lgamma: New file.
27981         * modules/log: New file.
27982         * modules/log10: New file.
27983         * modules/log1p: New file.
27984         * modules/logb: New file.
27985         * modules/modf: New file.
27986         * modules/nextafter: New file.
27987         * modules/pow: New file.
27988         * modules/remainder: New file.
27989         * modules/rint: New file.
27990         * modules/sin: New file.
27991         * modules/sinh: New file.
27992         * modules/sqrt: New file.
27993         * modules/tan: New file.
27994         * modules/tanh: New file.
27995         * modules/y0: New file.
27996         * modules/y1: New file.
27997         * modules/yn: New file.
27998         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27999         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28000         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28001         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28002         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28003         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28004         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28005         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28006         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28007         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28008         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28009         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28010         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28011         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28012         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28013         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28014         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28015         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28016         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28017         * doc/posix-functions/log.texi: Mention the 'log' module.
28018         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28019         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28020         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28021         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28022         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28023         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28024         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28025         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28026         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28027         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28028         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28029         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28030         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28031         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28032         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28033         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28034
28035 2010-01-18  Jim Meyering  <meyering@redhat.com>
28036
28037         ignore-value: relax license to LGPLv2+
28038         * modules/ignore-value (License): Relax to LGPLv2+.
28039
28040         getdate: don't leak when TZ contains two or more '"'s
28041         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28042         double quote in TZ after the first one.
28043
28044         readtokens: do not leak internal token_lengths buffer
28045         * lib/readtokens.c (readtokens): Free the local, lengths,
28046         when the supplied "token_lengths" parameter is NULL.
28047
28048 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28049
28050         Fix a couple of missing LIBTHREAD link failures on AIX.
28051         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28052         $(LIBTHREAD).
28053         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28054
28055         Link test-poll against INET_PTON_LIB.
28056         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28057         for inet_pton on Solaris 10.
28058
28059 2010-01-17  Bruno Haible  <bruno@clisp.org>
28060
28061         unistdio/*-sprintf: Fix typo in module description.
28062         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28063         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28064         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28065         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28066         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28067         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28068         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28070
28071 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28072
28073         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28074         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28075         variables in shell case patterns, for AIX and HP-UX ksh.
28076
28077         Split large sed scripts, for HP-UX sed.
28078         * modules/stdio: Split sed scripts around 50 sed commands,
28079         to avoid HP-UX limit of 99 commands, in the near future.
28080         * modules/string: Likewise.
28081         * modules/unistd: Likewise.
28082
28083         gnulib-tool: avoid writing in the current directory.
28084         * gnulib-tool (func_emit_lib_Makefile_am)
28085         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28086         not in the current directory, so concurrent gnulib-tool
28087         instances do not interfere.
28088
28089 2010-01-16  Jim Meyering  <meyering@redhat.com>
28090
28091         doc: update users.txt
28092         * users.txt: Add grep.
28093         (diffutils, gzip): Update URLs.
28094
28095 2010-01-12  Bruno Haible  <bruno@clisp.org>
28096
28097         posix_spawn: Avoid test failure on Cygwin.
28098         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28099         characters.
28100         Reported by Simon Josefsson.
28101
28102 2010-01-12  Bruno Haible  <bruno@clisp.org>
28103
28104         * tests/test-cond.c (main): When skipping the test, show the reason.
28105
28106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28107
28108         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28109
28110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28111
28112         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28113         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28114
28115 2010-01-12  Eric Blake  <ebb9@byu.net>
28116
28117         build: guarantee AS_VAR_IF
28118         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28119         (gl_AS_VAR_IF): Move...
28120         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28121         Reported by Simon Josefsson.
28122
28123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28124
28125         * lib/stdio.in.h: Fix typo.
28126
28127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28128
28129         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28130         libgpg-error.
28131
28132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28133
28134         * tests/test-xalloc-die.sh: Use $EXEEXT.
28135
28136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28137             Bruno Haible  <bruno@clisp.org>
28138
28139         getlogin, getlogin_r: Avoid test failure.
28140         * tests/test-getlogin.c: Include <stdio.h>.
28141         (main): Skip the test when the function fails because stdin is not a
28142         tty.
28143         * tests/test-getlogin_r.c: Include <stdio.h>.
28144         (main): Skip the test when the function fails because stdin is not a
28145         tty.
28146
28147 2010-01-11  Eric Blake  <ebb9@byu.net>
28148
28149         tests: avoid more large file warnings
28150         * tests/test-fflush.c: Avoid warning about ftell use.
28151         * tests/test-fseek.c: Avoid warning about fseek use.
28152
28153 2010-01-10  Bruno Haible  <bruno@clisp.org>
28154
28155         nproc: Work better on Linux when /proc and /sys are not mounted.
28156         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28157         as lower bound when, on glibc/Linux systems,
28158         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28159         Suggested by Pádraig Brady <P@draigbrady.com>.
28160         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28161
28162         nproc: Refactor.
28163         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28164         extracted from num_processors.
28165         (num_processors): Call it.
28166
28167 2010-01-11  Jim Meyering  <meyering@redhat.com>
28168
28169         utimecmp: avoid new warning from upcoming gcc-4.5.0
28170         * lib/utimecmp.c (BILLION): Define using #define rather than an
28171         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28172
28173 2010-01-11  Eric Blake  <ebb9@byu.net>
28174
28175         math: add portability warnings for classification macros
28176         * modules/math (Depends-on): Add warn-on-use.
28177         (Makefile.am): Provide new substitutions.
28178         * m4/math_h.m4 (gl_MATH_H): Require inline.
28179         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28180         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28181         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28182         implement warnings.
28183
28184         unistd: warn on use of environ without module
28185         * modules/unistd (Depends-on): Add warn-on-use.
28186         (Makefile.am): Provide new substitutions.
28187         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28188         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28189
28190         stdio: warn on suspicious uses
28191         * modules/stdio (Depends-on): Add warn-on-use.
28192         (Makefile.am): Provide new substitutions.
28193         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28194         fseeko.
28195         * lib/stdio.in.h (gets): Always warn on use.
28196         (fseek, ftell): Adjust when warnings are issued, and honor
28197         _GL_NO_LARGE_FILES as a way to silence the warning.
28198         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28199         any warning about large file offsets.
28200         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28201         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28202         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28203         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28204         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28205         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28206         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28207         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28208
28209         warn-on-use: new module
28210         * modules/warn-on-use: New file.
28211         * build-aux/warn-on-use.h: Likewise.
28212         * m4/warn-on-use.m4: Likewise.
28213         * MODULES.html.sh (Support for building): Mention it.
28214
28215 2010-01-10  Bruno Haible  <bruno@clisp.org>
28216
28217         Tests for module 'unistr/u32-strdup'.
28218         * modules/unistr/u32-strdup-tests: New file.
28219         * tests/unistr/test-u32-strdup.c: New file.
28220
28221         Tests for module 'unistr/u16-strdup'.
28222         * modules/unistr/u16-strdup-tests: New file.
28223         * tests/unistr/test-u16-strdup.c: New file.
28224
28225         Tests for module 'unistr/u8-strdup'.
28226         * modules/unistr/u8-strdup-tests: New file.
28227         * tests/unistr/test-u8-strdup.c: New file.
28228         * tests/unistr/test-strdup.h: New file.
28229
28230         Tests for module 'unistr/u32-strncmp'.
28231         * modules/unistr/u32-strncmp-tests: New file.
28232         * tests/unistr/test-u32-strncmp.c: New file.
28233
28234         Tests for module 'unistr/u16-strncmp'.
28235         * modules/unistr/u16-strncmp-tests: New file.
28236         * tests/unistr/test-u16-strncmp.c: New file.
28237
28238         Tests for module 'unistr/u8-strncmp'.
28239         * modules/unistr/u8-strncmp-tests: New file.
28240         * tests/unistr/test-u8-strncmp.c: New file.
28241         * tests/unistr/test-strncmp.h: New file.
28242
28243         Tests for module 'unistr/u32-strcoll'.
28244         * modules/unistr/u32-strcoll-tests: New file.
28245         * tests/unistr/test-u32-strcoll.c: New file.
28246
28247         Tests for module 'unistr/u16-strcoll'.
28248         * modules/unistr/u16-strcoll-tests: New file.
28249         * tests/unistr/test-u16-strcoll.c: New file.
28250
28251         Tests for module 'unistr/u8-strcoll'.
28252         * modules/unistr/u8-strcoll-tests: New file.
28253         * tests/unistr/test-u8-strcoll.c: New file.
28254
28255         Tests for module 'unistr/u32-strcmp'.
28256         * modules/unistr/u32-strcmp-tests: New file.
28257         * tests/unistr/test-u32-strcmp.c: New file.
28258         * tests/unistr/test-u32-strcmp.h: New file.
28259
28260         Tests for module 'unistr/u16-strcmp'.
28261         * modules/unistr/u16-strcmp-tests: New file.
28262         * tests/unistr/test-u16-strcmp.c: New file.
28263         * tests/unistr/test-u16-strcmp.h: New file.
28264
28265         Tests for module 'unistr/u8-strcmp'.
28266         * modules/unistr/u8-strcmp-tests: New file.
28267         * tests/unistr/test-u8-strcmp.c: New file.
28268         * tests/unistr/test-u8-strcmp.h: New file.
28269         * tests/unistr/test-strcmp.h: New file.
28270
28271         Tests for module 'unistr/u32-strncat'.
28272         * modules/unistr/u32-strncat-tests: New file.
28273         * tests/unistr/test-u32-strncat.c: New file.
28274
28275         Tests for module 'unistr/u16-strncat'.
28276         * modules/unistr/u16-strncat-tests: New file.
28277         * tests/unistr/test-u16-strncat.c: New file.
28278
28279         Tests for module 'unistr/u8-strncat'.
28280         * modules/unistr/u8-strncat-tests: New file.
28281         * tests/unistr/test-u8-strncat.c: New file.
28282         * tests/unistr/test-strncat.h: New file.
28283
28284         Tests for module 'unistr/u32-strcat'.
28285         * modules/unistr/u32-strcat-tests: New file.
28286         * tests/unistr/test-u32-strcat.c: New file.
28287
28288         Tests for module 'unistr/u16-strcat'.
28289         * modules/unistr/u16-strcat-tests: New file.
28290         * tests/unistr/test-u16-strcat.c: New file.
28291
28292         Tests for module 'unistr/u8-strcat'.
28293         * modules/unistr/u8-strcat-tests: New file.
28294         * tests/unistr/test-u8-strcat.c: New file.
28295         * tests/unistr/test-strcat.h: New file.
28296
28297         Tests for module 'unistr/u32-stpncpy'.
28298         * modules/unistr/u32-stpncpy-tests: New file.
28299         * tests/unistr/test-u32-stpncpy.c: New file.
28300
28301         Tests for module 'unistr/u16-stpncpy'.
28302         * modules/unistr/u16-stpncpy-tests: New file.
28303         * tests/unistr/test-u16-stpncpy.c: New file.
28304
28305         Tests for module 'unistr/u8-stpncpy'.
28306         * modules/unistr/u8-stpncpy-tests: New file.
28307         * tests/unistr/test-u8-stpncpy.c: New file.
28308         * tests/unistr/test-stpncpy.h: New file.
28309
28310         Tests for module 'unistr/u32-strncpy'.
28311         * modules/unistr/u32-strncpy-tests: New file.
28312         * tests/unistr/test-u32-strncpy.c: New file.
28313
28314         Tests for module 'unistr/u16-strncpy'.
28315         * modules/unistr/u16-strncpy-tests: New file.
28316         * tests/unistr/test-u16-strncpy.c: New file.
28317
28318         Tests for module 'unistr/u8-strncpy'.
28319         * modules/unistr/u8-strncpy-tests: New file.
28320         * tests/unistr/test-u8-strncpy.c: New file.
28321         * tests/unistr/test-strncpy.h: New file.
28322
28323         Tests for module 'unistr/u32-stpcpy'.
28324         * modules/unistr/u32-stpcpy-tests: New file.
28325         * tests/unistr/test-u32-stpcpy.c: New file.
28326
28327         Tests for module 'unistr/u16-stpcpy'.
28328         * modules/unistr/u16-stpcpy-tests: New file.
28329         * tests/unistr/test-u16-stpcpy.c: New file.
28330
28331         Tests for module 'unistr/u8-stpcpy'.
28332         * modules/unistr/u8-stpcpy-tests: New file.
28333         * tests/unistr/test-u8-stpcpy.c: New file.
28334         * tests/unistr/test-stpcpy.h: New file.
28335
28336         Tests for module 'unistr/u32-strcpy'.
28337         * modules/unistr/u32-strcpy-tests: New file.
28338         * tests/unistr/test-u32-strcpy.c: New file.
28339
28340         Tests for module 'unistr/u16-strcpy'.
28341         * modules/unistr/u16-strcpy-tests: New file.
28342         * tests/unistr/test-u16-strcpy.c: New file.
28343
28344         Tests for module 'unistr/u8-strcpy'.
28345         * modules/unistr/u8-strcpy-tests: New file.
28346         * tests/unistr/test-u8-strcpy.c: New file.
28347         * tests/unistr/test-strcpy.h: New file.
28348
28349         Tests for module 'unistr/u32-strnlen'.
28350         * modules/unistr/u32-strnlen-tests: New file.
28351         * tests/unistr/test-u32-strnlen.c: New file.
28352
28353         Tests for module 'unistr/u16-strnlen'.
28354         * modules/unistr/u16-strnlen-tests: New file.
28355         * tests/unistr/test-u16-strnlen.c: New file.
28356
28357         Tests for module 'unistr/u8-strnlen'.
28358         * modules/unistr/u8-strnlen-tests: New file.
28359         * tests/unistr/test-u8-strnlen.c: New file.
28360         * tests/unistr/test-strnlen.h: New file.
28361
28362         Tests for module 'unistr/u32-strlen'.
28363         * modules/unistr/u32-strlen-tests: New file.
28364         * tests/unistr/test-u32-strlen.c: New file.
28365
28366         Tests for module 'unistr/u16-strlen'.
28367         * modules/unistr/u16-strlen-tests: New file.
28368         * tests/unistr/test-u16-strlen.c: New file.
28369
28370         Tests for module 'unistr/u8-strlen'.
28371         * modules/unistr/u8-strlen-tests: New file.
28372         * tests/unistr/test-u8-strlen.c: New file.
28373
28374         Tests for module 'unistr/u32-prev'.
28375         * modules/unistr/u32-prev-tests: New file.
28376         * tests/unistr/test-u32-prev.c: New file.
28377
28378         Tests for module 'unistr/u16-prev'.
28379         * modules/unistr/u16-prev-tests: New file.
28380         * tests/unistr/test-u16-prev.c: New file.
28381
28382         Tests for module 'unistr/u8-prev'.
28383         * modules/unistr/u8-prev-tests: New file.
28384         * tests/unistr/test-u8-prev.c: New file.
28385
28386         Tests for module 'unistr/u32-next'.
28387         * modules/unistr/u32-next-tests: New file.
28388         * tests/unistr/test-u32-next.c: New file.
28389
28390         Tests for module 'unistr/u16-next'.
28391         * modules/unistr/u16-next-tests: New file.
28392         * tests/unistr/test-u16-next.c: New file.
28393
28394         Tests for module 'unistr/u8-next'.
28395         * modules/unistr/u8-next-tests: New file.
28396         * tests/unistr/test-u8-next.c: New file.
28397
28398         Tests for module 'unistr/u32-strmbtouc'.
28399         * modules/unistr/u32-strmbtouc-tests: New file.
28400         * tests/unistr/test-u32-strmbtouc.c: New file.
28401
28402         Tests for module 'unistr/u16-strmbtouc'.
28403         * modules/unistr/u16-strmbtouc-tests: New file.
28404         * tests/unistr/test-u16-strmbtouc.c: New file.
28405
28406         Tests for module 'unistr/u8-strmbtouc'.
28407         * modules/unistr/u8-strmbtouc-tests: New file.
28408         * tests/unistr/test-u8-strmbtouc.c: New file.
28409
28410         Tests for module 'unistr/u32-strmblen'.
28411         * modules/unistr/u32-strmblen-tests: New file.
28412         * tests/unistr/test-u32-strmblen.c: New file.
28413
28414         Tests for module 'unistr/u16-strmblen'.
28415         * modules/unistr/u16-strmblen-tests: New file.
28416         * tests/unistr/test-u16-strmblen.c: New file.
28417
28418         Tests for module 'unistr/u8-strmblen'.
28419         * modules/unistr/u8-strmblen-tests: New file.
28420         * tests/unistr/test-u8-strmblen.c: New file.
28421
28422         Tests for module 'unistr/u32-cpy-alloc'.
28423         * modules/unistr/u32-cpy-alloc-tests: New file.
28424         * tests/unistr/test-u32-cpy-alloc.c: New file.
28425
28426         Tests for module 'unistr/u16-cpy-alloc'.
28427         * modules/unistr/u16-cpy-alloc-tests: New file.
28428         * tests/unistr/test-u16-cpy-alloc.c: New file.
28429
28430         Tests for module 'unistr/u8-cpy-alloc'.
28431         * modules/unistr/u8-cpy-alloc-tests: New file.
28432         * tests/unistr/test-u8-cpy-alloc.c: New file.
28433         * tests/unistr/test-cpy-alloc.h: New file.
28434
28435         Tests for module 'unistr/u32-mbsnlen'.
28436         * modules/unistr/u32-mbsnlen-tests: New file.
28437         * tests/unistr/test-u32-mbsnlen.c: New file.
28438
28439         Tests for module 'unistr/u16-mbsnlen'.
28440         * modules/unistr/u16-mbsnlen-tests: New file.
28441         * tests/unistr/test-u16-mbsnlen.c: New file.
28442
28443         Tests for module 'unistr/u8-mbsnlen'.
28444         * modules/unistr/u8-mbsnlen-tests: New file.
28445         * tests/unistr/test-u8-mbsnlen.c: New file.
28446
28447         Tests for module 'unistr/u32-chr'.
28448         * modules/unistr/u32-chr-tests: New file.
28449         * tests/unistr/test-u32-chr.c: New file.
28450
28451         Tests for module 'unistr/u16-chr'.
28452         * modules/unistr/u16-chr-tests: New file.
28453         * tests/unistr/test-u16-chr.c: New file.
28454
28455         Tests for module 'unistr/u8-chr'.
28456         * modules/unistr/u8-chr-tests: New file.
28457         * tests/unistr/test-u8-chr.c: New file.
28458         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28459
28460         Tests for module 'unistr/u32-cmp2'.
28461         * modules/unistr/u32-cmp2-tests: New file.
28462         * tests/unistr/test-u32-cmp2.c: New file.
28463
28464         Tests for module 'unistr/u16-cmp2'.
28465         * modules/unistr/u16-cmp2-tests: New file.
28466         * tests/unistr/test-u16-cmp2.c: New file.
28467
28468         Tests for module 'unistr/u8-cmp2'.
28469         * modules/unistr/u8-cmp2-tests: New file.
28470         * tests/unistr/test-u8-cmp2.c: New file.
28471         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28472
28473         Tests for module 'unistr/u32-cmp'.
28474         * modules/unistr/u32-cmp-tests: New file.
28475         * tests/unistr/test-u32-cmp.c: New file.
28476
28477         Tests for module 'unistr/u16-cmp'.
28478         * modules/unistr/u16-cmp-tests: New file.
28479         * tests/unistr/test-u16-cmp.c: New file.
28480
28481         Tests for module 'unistr/u8-cmp'.
28482         * modules/unistr/u8-cmp-tests: New file.
28483         * tests/unistr/test-u8-cmp.c: New file.
28484         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28485
28486         Tests for module 'unistr/u32-set'.
28487         * modules/unistr/u32-set-tests: New file.
28488         * tests/unistr/test-u32-set.c: New file.
28489
28490         Tests for module 'unistr/u16-set'.
28491         * modules/unistr/u16-set-tests: New file.
28492         * tests/unistr/test-u16-set.c: New file.
28493
28494         Tests for module 'unistr/u8-set'.
28495         * modules/unistr/u8-set-tests: New file.
28496         * tests/unistr/test-u8-set.c: New file.
28497         * tests/unistr/test-set.h: New file.
28498
28499         Tests for module 'unistr/u32-move'.
28500         * modules/unistr/u32-move-tests: New file.
28501         * tests/unistr/test-u32-move.c: New file.
28502
28503         Tests for module 'unistr/u16-move'.
28504         * modules/unistr/u16-move-tests: New file.
28505         * tests/unistr/test-u16-move.c: New file.
28506
28507         Tests for module 'unistr/u8-move'.
28508         * modules/unistr/u8-move-tests: New file.
28509         * tests/unistr/test-u8-move.c: New file.
28510         * tests/unistr/test-move.h: New file.
28511
28512         Tests for module 'unistr/u32-cpy'.
28513         * modules/unistr/u32-cpy-tests: New file.
28514         * tests/unistr/test-u32-cpy.c: New file.
28515
28516         Tests for module 'unistr/u16-cpy'.
28517         * modules/unistr/u16-cpy-tests: New file.
28518         * tests/unistr/test-u16-cpy.c: New file.
28519
28520         Tests for module 'unistr/u8-cpy'.
28521         * modules/unistr/u8-cpy-tests: New file.
28522         * tests/unistr/test-u8-cpy.c: New file.
28523         * tests/unistr/test-cpy.h: New file.
28524
28525 2010-01-09  Bruno Haible  <bruno@clisp.org>
28526
28527         Tests for module 'unistr/u32-uctomb'.
28528         * modules/unistr/u32-uctomb-tests: New file.
28529         * tests/unistr/test-u32-uctomb.c: New file.
28530
28531         Tests for module 'unistr/u16-uctomb'.
28532         * modules/unistr/u16-uctomb-tests: New file.
28533         * tests/unistr/test-u16-uctomb.c: New file.
28534
28535         Tests for module 'unistr/u8-uctomb'.
28536         * modules/unistr/u8-uctomb-tests: New file.
28537         * tests/unistr/test-u8-uctomb.c: New file.
28538
28539         Tests for module 'unistr/u32-mbtoucr'.
28540         * modules/unistr/u32-mbtoucr-tests: New file.
28541         * tests/unistr/test-u32-mbtoucr.c: New file.
28542
28543         Tests for module 'unistr/u16-mbtoucr'.
28544         * modules/unistr/u16-mbtoucr-tests: New file.
28545         * tests/unistr/test-u16-mbtoucr.c: New file.
28546
28547         Tests for module 'unistr/u8-mbtoucr'.
28548         * modules/unistr/u8-mbtoucr-tests: New file.
28549         * tests/unistr/test-u8-mbtoucr.c: New file.
28550
28551         Tests for module 'unistr/u32-mbtouc'.
28552         * modules/unistr/u32-mbtouc-tests: New file.
28553         * tests/unistr/test-u32-mbtouc.c: New file.
28554
28555         Tests for module 'unistr/u16-mbtouc'.
28556         * modules/unistr/u16-mbtouc-tests: New file.
28557         * tests/unistr/test-u16-mbtouc.c: New file.
28558
28559         Tests for module 'unistr/u8-mbtouc'.
28560         * modules/unistr/u8-mbtouc-tests: New file.
28561         * tests/unistr/test-u8-mbtouc.c: New file.
28562
28563         Tests for module 'unistr/u32-mbtouc-unsafe'.
28564         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28565         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28566         * tests/unistr/test-u32-mbtouc.h: New file.
28567
28568         Tests for module 'unistr/u16-mbtouc-unsafe'.
28569         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28570         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28571         * tests/unistr/test-u16-mbtouc.h: New file.
28572
28573         Tests for module 'unistr/u8-mbtouc-unsafe'.
28574         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28575         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28576         * tests/unistr/test-u8-mbtouc.h: New file.
28577
28578         Tests for module 'unistr/u32-mblen'.
28579         * modules/unistr/u32-mblen-tests: New file.
28580         * tests/unistr/test-u32-mblen.c: New file.
28581
28582         Tests for module 'unistr/u16-mblen'.
28583         * modules/unistr/u16-mblen-tests: New file.
28584         * tests/unistr/test-u16-mblen.c: New file.
28585
28586         Tests for module 'unistr/u8-mblen'.
28587         * modules/unistr/u8-mblen-tests: New file.
28588         * tests/unistr/test-u8-mblen.c: New file.
28589
28590         Tests for module 'unistr/u32-to-u16'.
28591         * modules/unistr/u32-to-u16-tests: New file.
28592         * tests/unistr/test-u32-to-u16.c: New file.
28593
28594         Tests for module 'unistr/u32-to-u8'.
28595         * modules/unistr/u32-to-u8-tests: New file.
28596         * tests/unistr/test-u32-to-u8.c: New file.
28597
28598         Tests for module 'unistr/u16-to-u32'.
28599         * modules/unistr/u16-to-u32-tests: New file.
28600         * tests/unistr/test-u16-to-u32.c: New file.
28601
28602         Tests for module 'unistr/u16-to-u8'.
28603         * modules/unistr/u16-to-u8-tests: New file.
28604         * tests/unistr/test-u16-to-u8.c: New file.
28605
28606         Tests for module 'unistr/u8-to-u32'.
28607         * modules/unistr/u8-to-u32-tests: New file.
28608         * tests/unistr/test-u8-to-u32.c: New file.
28609
28610         Tests for module 'unistr/u8-to-u16'.
28611         * modules/unistr/u8-to-u16-tests: New file.
28612         * tests/unistr/test-u8-to-u16.c: New file.
28613
28614         Tests for module 'unistr/u32-check'.
28615         * modules/unistr/u32-check-tests: New file.
28616         * tests/unistr/test-u32-check.c: New file.
28617
28618         Tests for module 'unistr/u16-check'.
28619         * modules/unistr/u16-check-tests: New file.
28620         * tests/unistr/test-u16-check.c: New file.
28621
28622         Tests for module 'unistr/u8-check'.
28623         * modules/unistr/u8-check-tests: New file.
28624         * tests/unistr/test-u8-check.c: New file.
28625
28626         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28627         (category_equals): New function.
28628         (main): Add more tests.
28629         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28630
28631         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28632
28633 2010-01-10  Bruno Haible  <bruno@clisp.org>
28634
28635         unistr/u*-strcoll: Try harder to distinguish different strings.
28636         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28637         compare s1 and s2 to see if they are different.
28638
28639 2010-01-10  Bruno Haible  <bruno@clisp.org>
28640
28641         unistr/u*-stpncpy: Fix the return value.
28642         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28643         description of the return value consistent with stpncpy in glibc.
28644         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28645         written non-NUL unit.
28646
28647 2010-01-10  Bruno Haible  <bruno@clisp.org>
28648
28649         unistr/u*-next: Add missing dependencies.
28650         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28651         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28652         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28653
28654 2010-01-10  Bruno Haible  <bruno@clisp.org>
28655
28656         unistr/u8-mbsnlen: Fix return value for incomplete character.
28657         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28658         u8_mblen.
28659         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28660         Remove unistr/u8-mblen.
28661         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28662         u16_mblen.
28663         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28664         Remove unistr/u16-mblen.
28665
28666 2010-01-10  Bruno Haible  <bruno@clisp.org>
28667
28668         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28669         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28670         Reported by Brian Gough <bjg@gnu.org> and
28671         Chris Clayton <chris2553@googlemail.com> via
28672         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28673
28674 2010-01-09  Bruno Haible  <bruno@clisp.org>
28675
28676         unistr/u16-to-u32: Reject invalid input.
28677         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28678         u16_mbtouc.
28679         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28680         Remove unistr/u16-mbtouc.
28681
28682         unistr/u16-to-u8: Reject invalid input.
28683         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28684         u16_mbtouc.
28685         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28686         Remove unistr/u16-mbtouc.
28687
28688         unistr/u8-to-u32: Reject invalid input.
28689         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28690         u8_mbtouc.
28691         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28692         Remove unistr/u8-mbtouc.
28693
28694         unistr/u8-to-u16: Reject invalid input.
28695         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28696         u8_mbtouc.
28697         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28698         Remove unistr/u8-mbtouc.
28699
28700 2010-01-09  Bruno Haible  <bruno@clisp.org>
28701
28702         Tests for module 'getlogin'.
28703         * modules/getlogin-tests: New file.
28704         * tests/test-getlogin.c: New file.
28705
28706         New module 'getlogin'.
28707         * lib/unistd.in.h (getlogin): New declaration.
28708         * lib/getlogin.c: New file.
28709         * m4/getlogin.m4: New file.
28710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28711         HAVE_GETLOGIN.
28712         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28713         HAVE_GETLOGIN.
28714         * modules/getlogin: New file.
28715         * doc/posix-functions/getlogin.texi: Mention the new module.
28716         Reported by John W. Eaton <jwe@gnu.org>.
28717
28718 2010-01-09  Bruno Haible  <bruno@clisp.org>
28719
28720         getlogin_r: Support for native Windows.
28721         * lib/getlogin_r.c: Include <windows.h>
28722         (getlogin_r): Implement for native Windows.
28723         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28724         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28725         via John W. Eaton <jwe@gnu.org>.
28726
28727 2010-01-09  Bruno Haible  <bruno@clisp.org>
28728
28729         getlogin_r: Small fixes.
28730         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28731         succeeds.
28732         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28733         before testing whether getlogin_r is declared. No need to set
28734         HAVE_DECL_GETLOGIN_R to 1.
28735         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28736
28737 2010-01-09  Bruno Haible  <bruno@clisp.org>
28738
28739         * lib/unistd.in.h (getlogin_r): Add comment.
28740
28741 2010-01-09  Bruno Haible  <bruno@clisp.org>
28742
28743         Tests for module 'getlogin_r'.
28744         * modules/getlogin_r-tests: New file.
28745         * tests/test-getlogin_r.c: New file.
28746
28747 2010-01-09  Jim Meyering  <meyering@redhat.com>
28748
28749         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28750         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28751         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28752
28753 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28754
28755         * lib/dup2.c (rpl_dup2): Improve comment.
28756
28757 2010-01-08  Eric Blake  <ebb9@byu.net>
28758
28759         maint.mk: allow packages to add makefile @@ exceptions
28760         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28761         (sc_makefile_check): Rename...
28762         (sc_makefile_at_at_check): ...to this, and use hook.
28763
28764         dup2: work around mingw bug
28765         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28766         Reported by Simon Josefsson.
28767
28768 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28769
28770         glob: Fix C++ compilation.
28771         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28772         C++.
28773
28774 2010-01-07  Bruno Haible  <bruno@clisp.org>
28775
28776         Fix indentation of wctype.in.h, broken since 2007-01-06.
28777         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28778
28779 2010-01-07  Bruno Haible  <bruno@clisp.org>
28780
28781         mbslen: Avoid collision with system function.
28782         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28783         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28784         * m4/mbslen.m4: New file.
28785         * modules/mbslen (Files): Add it.
28786         (configure.ac): Invoke gl_MBSLEN.
28787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28788         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28790         via Ian Beckwith <ianb@erislabs.net>.
28791
28792 2010-01-07  Bruno Haible  <bruno@clisp.org>
28793
28794         dirent: Document the last fix.
28795         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28796
28797 2010-01-07  Bruno Haible  <bruno@clisp.org>
28798
28799         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28800         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28801         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28802         va_list are defined.
28803         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28804         Reported by Eric Blake.
28805
28806 2010-01-07  Bruno Haible  <bruno@clisp.org>
28807
28808         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28809         * modules/xlist (Depends-on): Add 'list',
28810         * modules/xoset (Depends-on): Add 'oset'.
28811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28812
28813 2010-01-07  Bruno Haible  <bruno@clisp.org>
28814
28815         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28816         * doc/posix-functions/strncasecmp.texi: Likewise.
28817
28818 2010-01-07  Bruno Haible  <bruno@clisp.org>
28819
28820         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28821
28822 2010-01-07  John W. Eaton  <jwe@octave.org>
28823
28824         wctype: allow C++ use
28825         * lib/wctype.in.h: Add extern "C" block for C++.
28826
28827 2010-01-06  Eric Blake  <ebb9@byu.net>
28828
28829         maint.mk: detect incorrect GFDL usage
28830         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28831
28832 2010-01-06  Jim Meyering  <meyering@redhat.com>
28833         and Eric Blake  <ebb9@byu.net>
28834
28835         maint.mk: ignore multi-line copyright in NEWS
28836         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28837
28838 2010-01-06  Eric Blake  <ebb9@byu.net>
28839
28840         select: add missing dependency
28841         * modules/select-tests (Depends-on): Move sockets dependency...
28842         * modules/select (Depends-on): ...here.
28843         Reported by Ian Beckwith.
28844
28845         doc: regenerate INSTALL
28846         * doc/INSTALL: Reflect recent autoconf update.
28847         * doc/INSTALL.ISO: Likewise.
28848         * doc/INSTALL.UTF-8: Likewise.
28849
28850         pread: fix compilation on glibc
28851         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28852         Reported by Ralf Wildenhues.
28853
28854         dirent: fix test failure
28855         * lib/dirent.in.h (includes): Guarantee ino_t.
28856         Reported by Ralf Wildenhues.
28857
28858 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28859
28860         linkat, renameat: avoid bad free
28861         * lib/at-func2.c (at_func2): Fix typo.
28862         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28863
28864 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28865
28866         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28867         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28868         to avoid failure of symlink test later.
28869
28870 2010-01-06  Eric Blake  <ebb9@byu.net>
28871
28872         stdio, unistd: guarantee ssize_t
28873         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28874         2008 are exposed when needed.
28875         * lib/stdio.in.h (includes): Likewise.
28876         Reported by Ralf Wildenhues.
28877
28878 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28879
28880         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28881         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28882         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28883
28884 2010-01-06  Jim Meyering  <meyering@redhat.com>
28885
28886         readtokens: this module *does* require xalloc.h
28887         It uses only functions that were omitted by the old syntax-check rule.
28888         * lib/readtokens.c: Include "xalloc.h" once again.
28889         * modules/readtokens (Depends-on): Add xalloc.
28890         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28891
28892 2010-01-05  Eric Blake  <ebb9@byu.net>
28893
28894         maint: support 'make announcement' from a VPATH build
28895         * top/maint.mk (announcement): Look for correct NEWS file.
28896
28897 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28898
28899         utimens (fdutimens): ignore a negative FD, per contract
28900         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28901         when we have a valid file descriptor.  Otherwise, using a brand
28902         new glibc (with just-patched futimens that now fails with EBADF)
28903         would cause this function to fail with ENOSYS.
28904         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28905         See also http://bugzilla.redhat.com/552320.
28906
28907 2010-01-05  Eric Blake  <ebb9@byu.net>
28908
28909         strcase: document what it provides
28910         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28911         gnulib module.
28912         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28913         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28914
28915 2010-01-05  Jim Meyering  <meyering@redhat.com>
28916
28917         maint: remove useless inclusions of "xalloc.h"
28918         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28919         * lib/readtokens.c: Likewise.
28920         * lib/same.c: Likewise.
28921         * modules/getloadavg (Depends-on): Remove xalloc.
28922         * modules/readtokens: Likewise.
28923         * modules/same: Likewise.
28924
28925         maint.mk: include 4 more function names in alloca.h-checking regexp
28926         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28927         regexp.  Before, we would give a false-positive (saying alloca.h
28928         is included unnecessarily) when the only uses involved omitted symbols.
28929
28930         xalloc.h: use consistent formatting
28931         * lib/xalloc.h: Move declarations to start in the first column.
28932
28933 2010-01-05  Eric Blake  <ebb9@byu.net>
28934
28935         mkdir: avoid xalloc
28936         * lib/mkdir.c (includes): Drop unused header.
28937         Reported by John W. Eaton.
28938
28939 2010-01-04  Jim Meyering  <meyering@redhat.com>
28940
28941         nl_langinfo: avoid configure-time syntax error
28942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28943         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28944         the empty string.  Don't let that provoke a shell syntax error.
28945
28946         regcomp, regexec, fnmatch: avoid array bounds read error
28947         * lib/regcomp.c (build_equiv_class): From glibc:
28948         Use only the low 24 bits of a findidx return value as an index
28949         into the weights array.  Patch by Ulrich Drepper:
28950         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28951         * lib/regexec.c (check_node_accept_bytes): Likewise.
28952         * lib/fnmatch_loop.c (FCT): Likewise.
28953
28954         regcomp: skip collseq lookup when there are no rules
28955         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28956         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28957
28958         regcomp: recognize ill-formed { } expressions
28959         * lib/regcomp.c (parse_dup_op): From glibc:
28960         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28961
28962         regcomp: fix typo in comment
28963         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28964         s/satisfy/satisfies/.
28965
28966         regcomp: sync from glibc: remove dead store
28967         * lib/regcomp.c (duplicate_node_closure): Remove useless
28968         search_duplicated_node call and dead store.
28969
28970         regcomp: sync from glibc; always use nl_langinfo
28971         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28972         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28973         * modules/regex (Depends-on): Add nl_langinfo.
28974
28975 2010-01-04  Eric Blake  <ebb9@byu.net>
28976
28977         fdopendir: fix configure test
28978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28979
28980 2010-01-01  Bruno Haible  <bruno@clisp.org>
28981
28982         wchar: Remove unused configure check.
28983         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28984
28985 2010-01-01  Eric Blake  <ebb9@byu.net>
28986
28987         headers: make check of system header explicit
28988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28989         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28990         ourselves.
28991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28995         internals.
28996         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28997         missing.
28998         Suggested by Bruno Haible.
28999
29000 2010-01-01  Jim Meyering  <meyering@redhat.com>
29001
29002         ChangeLog: tweak to eliminate unnecessary copyright line
29003         * ChangeLog: Remove a copyright line that was mistakenly updated
29004         by today's update-copyright run.  Reported by Eric Blake.
29005
29006         test-update-copyright: don't let envvar setting cause test failure
29007         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29008
29009 2010-01-01  Bruno Haible  <bruno@clisp.org>
29010
29011         localename: Avoid gcc warning.
29012         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29013         function if it is not used.
29014
29015 2010-01-01  Jim Meyering  <meyering@redhat.com>
29016
29017         update nearly all FSF copyright year lists to include 2010
29018         Use the same procedure as for 2009, outlined in
29019         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29020
29021         version-etc: set COPYRIGHT_YEAR to 2010
29022         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29023
29024 2009-12-31  Eric Blake  <ebb9@byu.net>
29025
29026         doc: correct availability of cygwin 1.5.x getopt
29027         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29028         variables.
29029         * doc/posix-functions/opterr.texi (opterr): Likewise.
29030         * doc/posix-functions/optind.texi (optind): Likewise.
29031         * doc/posix-functions/optopt.texi (optopt): Likewise.
29032         * doc/posix-functions/tzname.texi (tzname): Likewise.
29033
29034         openat: update maintainer
29035         * modules/openat (Maintainer): Add myself.
29036
29037         utimens: avoid shadowing warning
29038         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29039         buffers into one, to avoid shadowing, as well as avoiding a
29040         redundant stat.
29041         Reported by Jim Meyering.
29042
29043         test-dup2: avoid compiler warning
29044         * tests/test-dup2.c (is_inheritable): Only define if used.
29045
29046 2010-01-01  Bruno Haible  <bruno@clisp.org>
29047
29048         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29049         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29050         defined, use wctomb instead of wcrtomb.
29051
29052 2010-01-01  Bruno Haible  <bruno@clisp.org>
29053
29054         iconv: Reject native Solaris iconv.
29055         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29056         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29057
29058 2009-12-31  Bruno Haible  <bruno@clisp.org>
29059
29060         * tests/test-signal.c (main): Remove test of 'SIG'.
29061
29062 2009-12-31  Bruno Haible  <bruno@clisp.org>
29063
29064         spawn: Fix incomplete fix.
29065         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29066         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29067         warnings for GNULIB_POSIXCHECK again.
29068         Reported by Eric Blake.
29069
29070 2009-12-31  Bruno Haible  <bruno@clisp.org>
29071
29072         Avoid namespace pollution on glibc systems.
29073         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29074         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29075         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29076         glibc systems.
29077
29078 2009-12-31  Bruno Haible  <bruno@clisp.org>
29079
29080         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29081         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29082         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29083         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29084         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29085         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29086         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29087
29088 2009-12-31  Bruno Haible  <bruno@clisp.org>
29089
29090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29091         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29092         afterwards.
29093
29094 2009-12-31  Bruno Haible  <bruno@clisp.org>
29095
29096         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29097         SYS_UTSNAME_H.
29098
29099 2009-12-31  Bruno Haible  <bruno@clisp.org>
29100
29101         spawn: Fix misapplied patch.
29102         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29103         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29104         warnings for GNULIB_POSIXCHECK.
29105
29106 2009-12-31  Bruno Haible  <bruno@clisp.org>
29107
29108         times: Update after sys_times changed.
29109         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29110         * modules/times (Files): Add it.
29111         (configure.ac): Invoke gl_FUNC_TIMES.
29112
29113 2009-12-31  Bruno Haible  <bruno@clisp.org>
29114
29115         Use AC_C_INLINE where necessary.
29116         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29119         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29120         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29121         * m4/mbiter.m4 (gl_MBITER): Likewise.
29122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29125         * modules/u64 (configure.ac): Likewise.
29126
29127 2009-12-31  Bruno Haible  <bruno@clisp.org>
29128
29129         Use AC_C_INLINE instead of module 'inline' where possible.
29130         * modules/inline (Description): Clarify purpose.
29131         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29132         * modules/count-one-bits (Depends-on): Remove inline.
29133         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29134         * modules/openat (Depends-on): Remove inline.
29135         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29136         instead of depending on module 'inline'.
29137         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29138         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29139         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29140         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29141         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29142         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29143         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29144         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29145         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29146         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29147         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29148         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29149         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29150         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29151         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29152         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29153         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29154         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29155         Likewise.
29156         * modules/unictype/property-ascii-hex-digit (Depends-on,
29157         configure.ac): Likewise.
29158         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29159         configure.ac): Likewise.
29160         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29161         configure.ac): Likewise.
29162         * modules/unictype/property-bidi-block-separator (Depends-on,
29163         configure.ac): Likewise.
29164         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29165         configure.ac): Likewise.
29166         * modules/unictype/property-bidi-common-separator (Depends-on,
29167         configure.ac): Likewise.
29168         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29169         Likewise.
29170         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29171         configure.ac): Likewise.
29172         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29173         configure.ac): Likewise.
29174         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29175         configure.ac): Likewise.
29176         * modules/unictype/property-bidi-european-digit (Depends-on,
29177         configure.ac): Likewise.
29178         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29179         configure.ac): Likewise.
29180         * modules/unictype/property-bidi-left-to-right (Depends-on,
29181         configure.ac): Likewise.
29182         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29183         configure.ac): Likewise.
29184         * modules/unictype/property-bidi-other-neutral (Depends-on,
29185         configure.ac): Likewise.
29186         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29187         Likewise.
29188         * modules/unictype/property-bidi-segment-separator (Depends-on,
29189         configure.ac): Likewise.
29190         * modules/unictype/property-bidi-whitespace (Depends-on,
29191         configure.ac): Likewise.
29192         * modules/unictype/property-combining (Depends-on, configure.ac):
29193         Likewise.
29194         * modules/unictype/property-composite (Depends-on, configure.ac):
29195         Likewise.
29196         * modules/unictype/property-currency-symbol (Depends-on,
29197         configure.ac): Likewise.
29198         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29199         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29200         Likewise.
29201         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29202         configure.ac): Likewise.
29203         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29204         Likewise.
29205         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29206         Likewise.
29207         * modules/unictype/property-extender (Depends-on, configure.ac):
29208         Likewise.
29209         * modules/unictype/property-format-control (Depends-on, configure.ac):
29210         Likewise.
29211         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29212         Likewise.
29213         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29214         Likewise.
29215         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29216         Likewise.
29217         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29218         Likewise.
29219         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29220         Likewise.
29221         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29222         Likewise.
29223         * modules/unictype/property-id-start (Depends-on, configure.ac):
29224         Likewise.
29225         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29226         Likewise.
29227         * modules/unictype/property-ids-binary-operator (Depends-on,
29228         configure.ac): Likewise.
29229         * modules/unictype/property-ids-trinary-operator (Depends-on,
29230         configure.ac): Likewise.
29231         * modules/unictype/property-ignorable-control (Depends-on,
29232         configure.ac): Likewise.
29233         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29234         Likewise.
29235         * modules/unictype/property-join-control (Depends-on, configure.ac):
29236         Likewise.
29237         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29238         Likewise.
29239         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29240         Likewise.
29241         * modules/unictype/property-logical-order-exception (Depends-on,
29242         configure.ac): Likewise.
29243         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29244         Likewise.
29245         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29246         * modules/unictype/property-non-break (Depends-on, configure.ac):
29247         Likewise.
29248         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29249         Likewise.
29250         * modules/unictype/property-numeric (Depends-on, configure.ac):
29251         Likewise.
29252         * modules/unictype/property-other-alphabetic (Depends-on,
29253         configure.ac): Likewise.
29254         * modules/unictype/property-other-default-ignorable-code-point
29255         (Depends-on, configure.ac): Likewise.
29256         * modules/unictype/property-other-grapheme-extend (Depends-on,
29257         configure.ac): Likewise.
29258         * modules/unictype/property-other-id-continue (Depends-on,
29259         configure.ac): Likewise.
29260         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29261         Likewise.
29262         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29263         Likewise.
29264         * modules/unictype/property-other-math (Depends-on, configure.ac):
29265         Likewise.
29266         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29267         Likewise.
29268         * modules/unictype/property-paired-punctuation (Depends-on,
29269         configure.ac): Likewise.
29270         * modules/unictype/property-paragraph-separator (Depends-on,
29271         configure.ac): Likewise.
29272         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29273         Likewise.
29274         * modules/unictype/property-pattern-white-space (Depends-on,
29275         configure.ac): Likewise.
29276         * modules/unictype/property-private-use (Depends-on, configure.ac):
29277         Likewise.
29278         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29279         Likewise.
29280         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29281         Likewise.
29282         * modules/unictype/property-radical (Depends-on, configure.ac):
29283         Likewise.
29284         * modules/unictype/property-sentence-terminal (Depends-on,
29285         configure.ac): Likewise.
29286         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29287         Likewise.
29288         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29289         * modules/unictype/property-terminal-punctuation (Depends-on,
29290         configure.ac): Likewise.
29291         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29292         Likewise.
29293         * modules/unictype/property-unassigned-code-value (Depends-on,
29294         configure.ac): Likewise.
29295         * modules/unictype/property-unified-ideograph (Depends-on,
29296         configure.ac): Likewise.
29297         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29298         Likewise.
29299         * modules/unictype/property-variation-selector (Depends-on,
29300         configure.ac): Likewise.
29301         * modules/unictype/property-white-space (Depends-on, configure.ac):
29302         Likewise.
29303         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29304         Likewise.
29305         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29306         Likewise.
29307         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29308         Likewise.
29309         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29310         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29311         Likewise.
29312
29313 2009-12-31  Bruno Haible  <bruno@clisp.org>
29314
29315         Remove unnecessary AC_C_INLINE invocation.
29316         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29317         since 2009-08-21.
29318
29319 2009-12-31  Jim Meyering  <meyering@redhat.com>
29320
29321         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29322         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29323         With this change, we can all remove the gpg_key_ID = ... definition
29324         from our respective cfg.mk files.
29325
29326         maint.mk: create announcement template in ~/, not in /tmp
29327         * top/maint.mk (emit_upload_commands): Adjust.
29328         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29329         Remove temporary file, .ci-msg.
29330
29331 2009-12-31  Eric Blake  <ebb9@byu.net>
29332
29333         link-warning: always build headers with link warnings
29334         * modules/arpa_inet (Makefile.am): Always build replacement
29335         header.
29336         * modules/ctype (Makefile.am): Likewise.
29337         * modules/dirent (Makefile.am): Likewise.
29338         * modules/inttypes (Makefile.am): Likewise.
29339         * modules/langinfo (Makefile.am): Likewise.
29340         * modules/locale (Makefile.am): Likewise.
29341         * modules/spawn (Makefile.am): Likewise.
29342         * modules/sys_file (Makefile.am): Likewise.
29343         * modules/sys_ioctl (Makefile.am): Likewise.
29344         * modules/sys_select (Makefile.am): Likewise.
29345         * modules/sys_socket (Makefile.am): Likewise.
29346         * modules/sys_times (Makefile.am): Likewise.
29347         * modules/sys_utsname (Makefile.am): Likewise.
29348         * modules/sys_wait (Makefile.am): Likewise.
29349         * modules/wchar (Makefile.am): Likewise.
29350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29351         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29352         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29353         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29354         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29355         Likewise.
29356         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29357         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29358         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29359         Likewise.
29360         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29361         Likewise.
29362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29364         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29366         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29368         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29369         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29370         (gl_WCHAR_H_DEFAULTS): Likewise.
29371
29372 2009-12-31  Eric Blake  <ebb9@byu.net>
29373
29374         signal, spawn: use link warnings
29375         * lib/signal.in.h (sigset_t): Make unconditional.
29376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29377         (sigpending, sigprocmask, sigaction): Add link warnings.
29378         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29379         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29380         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29381         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29382         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29383         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29384         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29385         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29386         (posix_spawn_file_actions_destroy)
29387         (posix_spawn_file_actions_addopen)
29388         (posix_spawn_file_actions_addclose)
29389         (posix_spawn_file_actions_adddup2): Likewise.
29390         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29391         * tests/test-signal.c (main): Enhance test.
29392
29393         spawn: improve wrapper support
29394         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29395         (gl_SPAWN_H_DEFAULTS): New defaults.
29396         * modules/spawn (Makefile.am): Substitute them.
29397         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29398         Only declare if missing or broken.
29399
29400         sys_times, sys_utsname: use include_next
29401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29402         header.
29403         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29404         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29405         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29406         * modules/sys_times (Depends-on): Add include_next.
29407         (Makefile.am): Substitute additional values.
29408         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29409         * lib/sys_times.in.h (includes): Include native header, if
29410         available.
29411         * lib/sys_utsname.in.h (includes): Likewise.
29412         * tests/test-sys_times.c (main): Enhance test.
29413
29414         fdutimensat: revert prior patch
29415         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29416         utimens.h.
29417         Reported by Bruno Haible.
29418
29419 2009-12-30  Eric Blake  <ebb9@byu.net>
29420
29421         sys_wait: drop link-warning dependency
29422         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29423         link-warning efforts.
29424         * lib/sys_wait.in.h: Likewise.
29425
29426         fdutimensat: remove bogus dependency
29427         * modules/fdutimensat (Depends-on): Drop inline.
29428
29429         unistd: fix typo
29430         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29431
29432 2009-12-30  Bruno Haible  <bruno@clisp.org>
29433
29434         Fix compilation error with Solaris cc.
29435         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29436         * lib/unicase/u16-is-invariant.c: Likewise.
29437         * lib/unicase/u32-is-invariant.c: Likewise.
29438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29439
29440 2009-12-30  Bruno Haible  <bruno@clisp.org>
29441
29442         Fix test crash.
29443         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29444         locales.
29445         Reported by Simon Josefsson <simon@josefsson.org>.
29446
29447 2009-12-30  Bruno Haible  <bruno@clisp.org>
29448
29449         Fix compilation error on most platforms.
29450         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29451         Reported by Simon Josefsson <simon@josefsson.org>
29452         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29453
29454 2009-12-30  Eric Blake  <ebb9@byu.net>
29455
29456         futimens, utimensat: work around ntfs-3g bug
29457         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29458         a ctime bug is present, and expand workaround to cover ntfs-3g.
29459         * lib/utimens.c (fdutimens, lutimens): Likewise.
29460         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29461         (validate_timespec): Adjust return value.
29462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29464         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29465
29466 2009-12-29  Eric Blake  <ebb9@byu.net>
29467
29468         link-warning: make usage consistent
29469         * modules/ctype (Depends-on): Add link-warning.
29470         (Makefile.am): Update rules accordingly.
29471         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29472         * modules/locale (Depends-on, Makefile.am): Likewise.
29473         * modules/sys_file (Makefile.am): Likewise.
29474         * modules/getopt-posix (Makefile.am): Delete unused link warning
29475         efforts.
29476         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29477         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29478         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29479         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29480
29481         stdio: remove unused variables
29482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29483         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29484         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29485
29486         tests: test more substitute headers
29487         * modules/ctype-tests: New file.
29488         * modules/dirent-tests: Likewise.
29489         * modules/spawn-tests: Likewise.
29490         * modules/sys_file-tests: Likewise.
29491         * modules/sys_ioctl-tests: Likewise.
29492         * modules/sys_wait-tests: Likewise.
29493         * tests/test-ctype.c: Likewise.
29494         * tests/test-dirent.c: Likewise.
29495         * tests/test-spawn.c: Likewise.
29496         * tests/test-sys_file.c: Likewise.
29497         * tests/test-sys_ioctl.c: Likewise.
29498         * tests/test-sys_wait.c: Likewise.
29499         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29500         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29501         whether or not flock is in use.
29502
29503         tests: remove License section from module
29504         * modules/arpa_inet-tests: Remove unneeded section.
29505         * modules/byteswap-tests: Likewise.
29506         * modules/ceilf-tests: Likewise.
29507         * modules/ceill-tests: Likewise.
29508         * modules/crypto/des-tests: Likewise.
29509         * modules/crypto/gc-arcfour-tests: Likewise.
29510         * modules/crypto/gc-arctwo-tests: Likewise.
29511         * modules/crypto/gc-des-tests: Likewise.
29512         * modules/crypto/gc-hmac-md5-tests: Likewise.
29513         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29514         * modules/crypto/gc-md2-tests: Likewise.
29515         * modules/crypto/gc-md4-tests: Likewise.
29516         * modules/crypto/gc-md5-tests: Likewise.
29517         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29518         * modules/crypto/gc-rijndael-tests: Likewise.
29519         * modules/crypto/gc-sha1-tests: Likewise.
29520         * modules/crypto/gc-tests: Likewise.
29521         * modules/crypto/md2-tests: Likewise.
29522         * modules/crypto/md4-tests: Likewise.
29523         * modules/fcntl-h-tests: Likewise.
29524         * modules/floorf-tests: Likewise.
29525         * modules/floorl-tests: Likewise.
29526         * modules/frexp-nolibm-tests: Likewise.
29527         * modules/frexp-tests: Likewise.
29528         * modules/frexpl-nolibm-tests: Likewise.
29529         * modules/frexpl-tests: Likewise.
29530         * modules/getaddrinfo-tests: Likewise.
29531         * modules/inttypes-tests: Likewise.
29532         * modules/isfinite-tests: Likewise.
29533         * modules/isinf-tests: Likewise.
29534         * modules/ldexpl-tests: Likewise.
29535         * modules/locale-tests: Likewise.
29536         * modules/math-tests: Likewise.
29537         * modules/netdb-tests: Likewise.
29538         * modules/netinet_in-tests: Likewise.
29539         * modules/printf-frexp-tests: Likewise.
29540         * modules/printf-frexpl-tests: Likewise.
29541         * modules/priv-set-tests: Likewise.
29542         * modules/random_r-tests: Likewise.
29543         * modules/round-tests: Likewise.
29544         * modules/roundf-tests: Likewise.
29545         * modules/roundl-tests: Likewise.
29546         * modules/search-tests: Likewise.
29547         * modules/select-tests: Likewise.
29548         * modules/signal-tests: Likewise.
29549         * modules/stdbool-tests: Likewise.
29550         * modules/stddef-tests: Likewise.
29551         * modules/stdint-tests: Likewise.
29552         * modules/stdio-tests: Likewise.
29553         * modules/stdlib-tests: Likewise.
29554         * modules/string-tests: Likewise.
29555         * modules/strings-tests: Likewise.
29556         * modules/sys_select-tests: Likewise.
29557         * modules/sys_socket-tests: Likewise.
29558         * modules/sys_stat-tests: Likewise.
29559         * modules/sys_time-tests: Likewise.
29560         * modules/sys_utsname-tests: Likewise.
29561         * modules/sysexits-tests: Likewise.
29562         * modules/time-tests: Likewise.
29563         * modules/trunc-tests: Likewise.
29564         * modules/truncf-tests: Likewise.
29565         * modules/truncl-tests: Likewise.
29566         * modules/tsearch-tests: Likewise.
29567         * modules/unistd-tests: Likewise.
29568         * modules/wchar-tests: Likewise.
29569         * modules/wctype-tests: Likewise.
29570
29571         tests: fix license on several tests
29572         * tests/test-des.c: Update to GPLv3+.
29573         * tests/test-flock.c: Likewise.
29574         * tests/test-fsync.c: Likewise.
29575         * tests/test-futimens.h: Likewise.
29576         * tests/test-gc-arcfour.c: Likewise.
29577         * tests/test-gc-arctwo.c: Likewise.
29578         * tests/test-gc-des.c: Likewise.
29579         * tests/test-gc-hmac-md5.c: Likewise.
29580         * tests/test-gc-hmac-sha1.c: Likewise.
29581         * tests/test-gc-md2.c: Likewise.
29582         * tests/test-gc-md4.c: Likewise.
29583         * tests/test-gc-md5.c: Likewise.
29584         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29585         * tests/test-gc-rijndael.c: Likewise.
29586         * tests/test-gc-sha1.c: Likewise.
29587         * tests/test-gc.c: Likewise.
29588         * tests/test-getcwd.c: Likewise.
29589         * tests/test-link.c: Likewise.
29590         * tests/test-link.h: Likewise.
29591         * tests/test-lutimens.h: Likewise.
29592         * tests/test-md2.c: Likewise.
29593         * tests/test-md4.c: Likewise.
29594         * tests/test-mkdir.h: Likewise.
29595         * tests/test-rename.c: Likewise.
29596         * tests/test-rename.h: Likewise.
29597         * tests/test-safe-alloc.c: Likewise.
29598         * tests/test-utimens-common.h: Likewise.
29599         * tests/test-utimens.h: Likewise.
29600
29601         maint: sync license texts
29602         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29603         * doc/gpl-3.0.texi: Revert copyright year update.
29604         * doc/lgpl-3.0.texi: Likewise.
29605
29606 2009-12-29  Jim Meyering  <meyering@redhat.com>
29607
29608         update nearly all FSF copyright year lists to include 2009
29609         The files named by the following are exempted:
29610             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29611               test -f "$dst" && { echo "$dst"; continue; }
29612               test -d "$dst" || continue
29613               echo "$dst"/$(basename "$src")
29614             done > exempt
29615             git ls-files tests/unictype >> exempt
29616         In the remaining files, convert to all-interval notation if
29617         - there is already at least one year interval like 2000-2003
29618         - the file is maintained by me
29619         - the file is in lib/uni*/, where that style already prevails
29620         Otherwise, use update-copyright's default.
29621
29622 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29623         and Eric Blake  <ebb9@byu.net>
29624
29625         tests: don't require debug system() to pass
29626         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29627         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29628         * tests/test-unlink.h (test_unlink_func): Likewise.
29629         * tests/test-fstatat.c (main): ...into callers.
29630         * tests/test-lstat.c (main): Likewise.
29631         * tests/test-rmdir.c (main): Likewise.
29632         * tests/test-unlink.c (main): Likewise.
29633         * tests/test-unlinkat.c (main): Likewise.
29634         * tests/test-areadlink-with-size.c (main): Don't require a
29635         debug-only system call to pass, aiding cross-testing to mingw.
29636         * tests/test-areadlink.c (main): Likewise.
29637         * tests/test-areadlinkat-with-size.c (main): Likewise.
29638         * tests/test-areadlinkat.c (main): Likewise.
29639         * tests/test-canonicalize-lgpl.c (main): Likewise.
29640         * tests/test-canonicalize.c (main): Likewise.
29641         * tests/test-chown.c (main): Likewise.
29642         * tests/test-fchownat.c (main): Likewise.
29643         * tests/test-lchown.c (main): Likewise.
29644         * tests/test-fdutimensat.c (main): Likewise.
29645         * tests/test-futimens.c (main): Likewise.
29646         * tests/test-link.c (main): Likewise.
29647         * tests/test-linkat.c (main): Likewise.
29648         * tests/test-mkdir.c (main): Likewise.
29649         * tests/test-mkdirat.c (main): Likewise.
29650         * tests/test-mkfifo.c (main): Likewise.
29651         * tests/test-mkfifoat.c (main): Likewise.
29652         * tests/test-mknod.c (main): Likewise.
29653         * tests/test-readlink.c (main): Likewise.
29654         * tests/test-remove.c (main): Likewise.
29655         * tests/test-rename.c (main): Likewise.
29656         * tests/test-renameat.c (main): Likewise.
29657         * tests/test-symlink.c (main): Likewise.
29658         * tests/test-symlinkat.c (main): Likewise.
29659         * tests/test-utimens.c (main): Likewise.
29660         * tests/test-utimensat.c (main): Likewise.
29661
29662 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29663
29664         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29665         on $(UNUSED_PARAMETER_H) to avoid build failure.
29666
29667 2009-12-28  Jim Meyering  <meyering@redhat.com>
29668
29669         update-copyright: you may specify a max. line length other than 72
29670         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29671
29672         maint: use consistent FSF copyright line syntax
29673         * lib/posixtm.c: Add missing comma in FSF copyright line.
29674         * lib/posixtm.h: Likewise.
29675         * lib/getugroups.c: Add missing ", Inc.".
29676
29677         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29678         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29679         FSF copyright line.  Remove trailing blanks.
29680
29681 2009-12-28  Eric Blake  <ebb9@byu.net>
29682
29683         test-dup2: reduce dependencies
29684         * modules/cloexec (Configure.ac): Set witness.
29685         * modules/dup2-tests (Depends-on): Drop cloexec.
29686         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29687         not present.
29688         Suggested by Bruno Haible.
29689
29690 2009-12-26  Bruno Haible  <bruno@clisp.org>
29691
29692         Remove an unneeded dependency.
29693         * modules/fseterr (Depends-on): Remove dup2.
29694
29695 2009-12-26  Eric Blake  <ebb9@byu.net>
29696
29697         tests: use macros.h in more places
29698         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29699         (ASSERT_STREAM): Provide default of stderr.
29700         * tests/test-dirent-safer.c: Include macros.h, using alternate
29701         stream for assertions.
29702         * tests/test-dup-safer.c: Likewise.
29703         * tests/test-freopen-safer.c: Likewise.
29704         * tests/test-getopt.c: Likewise.
29705         * tests/test-openat-safer.c: Likewise.
29706         * tests/test-pipe.c: Likewise.
29707         * tests/test-popen-safer.c: Likewise.
29708         * modules/dirent-safer-tests (Files): Include macros.h.
29709         * modules/unistd-safer-tests (Files): Likewise.
29710         * modules/freopen-safer-tests (Files): Likewise.
29711         * modules/getopt-posix-tests (Files): Likewise.
29712         * modules/openat-safer-tests (Files): Likewise.
29713         * modules/pipe-tests (Files): Likewise.
29714
29715 2009-12-26  Bruno Haible  <bruno@clisp.org>
29716
29717         javacomp: Portability fix.
29718         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29719         that it also works on Solaris.
29720
29721 2009-12-26  Bruno Haible  <bruno@clisp.org>
29722
29723         localename: Fix storage allocation of gl_locale_name_thread's result.
29724         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29725         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29726         all platforms that have 'uselocale'.
29727         (gl_locale_name_thread_unsafe): New function, extracted from
29728         gl_locale_name_thread.
29729         (gl_locale_name_thread): Call struniq on all platforms that have
29730         'uselocale'.
29731         * tests/test-localename.c (test_locale_name_thread): Check that the
29732         resulting strings are permanently allocated.
29733         * modules/localename-tests (Depends-on): Add strdup.
29734
29735 2009-12-26  Bruno Haible  <bruno@clisp.org>
29736
29737         * tests/test-localename.c (categories): Fill in the strings.
29738
29739 2009-12-26  Jim Meyering  <meyering@redhat.com>
29740
29741         isdir: complete the removal of m4/isdir.m4
29742         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29743
29744         isdir: clean up, since at least grep still uses it
29745         * lib/isdir.c: Include "isdir.h".
29746         (S_ISDIR): Remove now-unneeded definition.
29747         * modules/isdir (Files): Add lib/isdir.h.
29748         * lib/isdir.h: New file, with declaration.
29749         * m4/isdir.m4: Remove file -- unneeded.
29750
29751 2009-12-25  Bruno Haible  <bruno@clisp.org>
29752
29753         selinux-h: Make generated .h files standalone.
29754         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29755         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29756         * lib/se-selinux.in.h: Likewise.
29757         * modules/selinux-h (Depends-on): Add unused-parameter.
29758         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29759         selinux/selinux.h and selinux/context.h.
29760         Suggested by Eric Blake.
29761
29762 2009-12-25  Bruno Haible  <bruno@clisp.org>
29763
29764         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29765         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29766         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29767         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29768         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29769
29770 2009-12-24  Bruno Haible  <bruno@clisp.org>
29771
29772         openat: Fix warning.
29773         * lib/openat-proc.c: Include <unistd.h>.
29774
29775 2009-12-24  Bruno Haible  <bruno@clisp.org>
29776
29777         New module 'unused-parameter'.
29778         * build-aux/unused-parameter.h: New file, extracted from earlier
29779         gnulib-common.m4.
29780         * modules/unused-parameter: New file.
29781         * lib/unistr.h: Include unused-parameter.h.
29782         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29783         _GL_UNUSED.
29784         * modules/unistr/base (Depends-on): Add unused-parameter.
29785
29786 2009-12-24  Bruno Haible  <bruno@clisp.org>
29787
29788         Add missing dependencies to 'extensions' module.
29789         * m4/extensions.m4: Add comment.
29790         * modules/accept4 (Depends-on): Add extensions.
29791         * modules/dup3 (Depends-on): Likewise.
29792         * modules/fcntl (Depends-on): Likewise.
29793         * modules/futimens (Depends-on): Likewise.
29794         * modules/mknod (Depends-on): Likewise.
29795         * modules/pipe2 (Depends-on): Likewise.
29796         * modules/stat-time (Depends-on): Likewise.
29797         * modules/strcasestr-simple (Depends-on): Likewise.
29798         * modules/strsignal (Depends-on): Likewise.
29799         * modules/utimensat (Depends-on): Likewise.
29800         * modules/localcharset (Depends-on): Likewise. Needed because of
29801         gl_FCNTL_O_FLAGS.
29802         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29803         AC_TYPE_MBSTATE_T.
29804         * modules/wcsnrtombs (Depends-on): Likewise.
29805         * modules/wcsrtombs (Depends-on): Likewise.
29806
29807 2009-12-24  Bruno Haible  <bruno@clisp.org>
29808
29809         binary-io: Avoid gcc warning due to SET_BINARY.
29810         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29811         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29812
29813 2009-12-24  Bruno Haible  <bruno@clisp.org>
29814
29815         Avoid future namespace pollution on glibc systems.
29816         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29817         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29818         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29819         glibc systems.
29820
29821 2009-12-24  Bruno Haible  <bruno@clisp.org>
29822
29823         Refactor common macros used in tests.
29824         * tests/macros.h: New file.
29825         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29826         and/or <stdlib.h>, if appropriate.
29827         (ASSERT, SIZEOF): Remove macros.
29828         * tests/test-areadlink-with-size.c: Likewise.
29829         * tests/test-areadlinkat.c: Likewise.
29830         * tests/test-areadlinkat-with-size.c: Likewise.
29831         * tests/test-argmatch.c: Likewise.
29832         * tests/test-argv-iter.c: Likewise.
29833         * tests/test-array-mergesort.c: Likewise.
29834         * tests/test-array_list.c: Likewise.
29835         * tests/test-array_oset.c: Likewise.
29836         * tests/test-avltree_list.c: Likewise.
29837         * tests/test-avltree_oset.c: Likewise.
29838         * tests/test-avltreehash_list.c: Likewise.
29839         * tests/test-base64.c: Likewise.
29840         * tests/test-binary-io.c: Likewise.
29841         * tests/test-bitrotate.c: Likewise.
29842         * tests/test-btowc.c: Likewise.
29843         * tests/test-byteswap.c: Likewise.
29844         * tests/test-c-ctype.c: Likewise.
29845         * tests/test-c-stack.c: Likewise.
29846         * tests/test-c-strcasecmp.c: Likewise.
29847         * tests/test-c-strcasestr.c: Likewise.
29848         * tests/test-c-strncasecmp.c: Likewise.
29849         * tests/test-c-strstr.c: Likewise.
29850         * tests/test-canonicalize-lgpl.c: Likewise.
29851         * tests/test-canonicalize.c: Likewise.
29852         * tests/test-carray_list.c: Likewise.
29853         * tests/test-ceilf1.c: Likewise.
29854         * tests/test-ceilf2.c: Likewise.
29855         * tests/test-ceill.c: Likewise.
29856         * tests/test-chown.c: Likewise.
29857         * tests/test-cloexec.c: Likewise.
29858         * tests/test-copy-acl.c: Likewise.
29859         * tests/test-copy-file.c: Likewise.
29860         * tests/test-count-one-bits.c: Likewise.
29861         * tests/test-dprintf-posix.c: Likewise.
29862         * tests/test-dup2.c: Likewise.
29863         * tests/test-dup3.c: Likewise.
29864         * tests/test-duplocale.c: Likewise.
29865         * tests/test-fbufmode.c: Likewise.
29866         * tests/test-fchdir.c: Likewise.
29867         * tests/test-fchownat.c: Likewise.
29868         * tests/test-fcntl-safer.c: Likewise.
29869         * tests/test-fcntl.c: Likewise.
29870         * tests/test-fdopendir.c: Likewise.
29871         * tests/test-fdutimensat.c: Likewise.
29872         * tests/test-fflush2.c: Likewise.
29873         * tests/test-file-has-acl.c: Likewise.
29874         * tests/test-filevercmp.c: Likewise.
29875         * tests/test-flock.c: Likewise.
29876         * tests/test-floorf1.c: Likewise.
29877         * tests/test-floorf2.c: Likewise.
29878         * tests/test-floorl.c: Likewise.
29879         * tests/test-fnmatch.c: Likewise.
29880         * tests/test-fopen.h: Likewise.
29881         * tests/test-fpending.c: Likewise.
29882         * tests/test-fprintf-posix.c: Likewise.
29883         * tests/test-fpurge.c: Likewise.
29884         * tests/test-freadable.c: Likewise.
29885         * tests/test-freadahead.c: Likewise.
29886         * tests/test-freading.c: Likewise.
29887         * tests/test-freadptr.c: Likewise.
29888         * tests/test-freadptr2.c: Likewise.
29889         * tests/test-freadseek.c: Likewise.
29890         * tests/test-freopen.c: Likewise.
29891         * tests/test-frexp.c: Likewise.
29892         * tests/test-frexpl.c: Likewise.
29893         * tests/test-fseek.c: Likewise.
29894         * tests/test-fseeko.c: Likewise.
29895         * tests/test-fstatat.c: Likewise.
29896         * tests/test-fstrcmp.c: Likewise.
29897         * tests/test-fsync.c: Likewise.
29898         * tests/test-ftell.c: Likewise.
29899         * tests/test-ftello.c: Likewise.
29900         * tests/test-func.c: Likewise.
29901         * tests/test-futimens.c: Likewise.
29902         * tests/test-fwritable.c: Likewise.
29903         * tests/test-fwriting.c: Likewise.
29904         * tests/test-getcwd.c: Likewise.
29905         * tests/test-getdate.c: Likewise.
29906         * tests/test-getdelim.c: Likewise.
29907         * tests/test-getdtablesize.c: Likewise.
29908         * tests/test-getgroups.c: Likewise.
29909         * tests/test-getline.c: Likewise.
29910         * tests/test-getndelim2.c: Likewise.
29911         * tests/test-glob.c: Likewise.
29912         * tests/test-hash.c: Likewise.
29913         * tests/test-i-ring.c: Likewise.
29914         * tests/test-iconv-utf.c: Likewise.
29915         * tests/test-iconv.c: Likewise.
29916         * tests/test-idpriv-drop.c: Likewise.
29917         * tests/test-idpriv-droptemp.c: Likewise.
29918         * tests/test-inet_ntop.c: Likewise.
29919         * tests/test-inet_pton.c: Likewise.
29920         * tests/test-isblank.c: Likewise.
29921         * tests/test-isfinite.c: Likewise.
29922         * tests/test-isinf.c: Likewise.
29923         * tests/test-isnan.c: Likewise.
29924         * tests/test-isnand.h: Likewise.
29925         * tests/test-isnanf.h: Likewise.
29926         * tests/test-isnanl.h: Likewise.
29927         * tests/test-lchown.c: Likewise.
29928         * tests/test-ldexpl.c: Likewise.
29929         * tests/test-link.c: Likewise.
29930         * tests/test-linkat.c: Likewise.
29931         * tests/test-linked_list.c: Likewise.
29932         * tests/test-linkedhash_list.c: Likewise.
29933         * tests/test-localename.c: Likewise.
29934         * tests/test-lseek.c: Likewise.
29935         * tests/test-lstat.c: Likewise.
29936         * tests/test-mbmemcasecmp.c: Likewise.
29937         * tests/test-mbmemcasecoll.c: Likewise.
29938         * tests/test-mbrtowc.c: Likewise.
29939         * tests/test-mbscasecmp.c: Likewise.
29940         * tests/test-mbscasestr1.c: Likewise.
29941         * tests/test-mbscasestr2.c: Likewise.
29942         * tests/test-mbscasestr3.c: Likewise.
29943         * tests/test-mbscasestr4.c: Likewise.
29944         * tests/test-mbschr.c: Likewise.
29945         * tests/test-mbscspn.c: Likewise.
29946         * tests/test-mbsinit.c: Likewise.
29947         * tests/test-mbsncasecmp.c: Likewise.
29948         * tests/test-mbsnrtowcs.c: Likewise.
29949         * tests/test-mbspbrk.c: Likewise.
29950         * tests/test-mbspcasecmp.c: Likewise.
29951         * tests/test-mbsrchr.c: Likewise.
29952         * tests/test-mbsrtowcs.c: Likewise.
29953         * tests/test-mbsspn.c: Likewise.
29954         * tests/test-mbsstr1.c: Likewise.
29955         * tests/test-mbsstr2.c: Likewise.
29956         * tests/test-mbsstr3.c: Likewise.
29957         * tests/test-memchr.c: Likewise.
29958         * tests/test-memchr2.c: Likewise.
29959         * tests/test-memcmp.c: Likewise.
29960         * tests/test-memmem.c: Likewise.
29961         * tests/test-memrchr.c: Likewise.
29962         * tests/test-mkdir.c: Likewise.
29963         * tests/test-mkdirat.c: Likewise.
29964         * tests/test-mkfifo.c: Likewise.
29965         * tests/test-mkfifoat.c: Likewise.
29966         * tests/test-mknod.c: Likewise.
29967         * tests/test-nanosleep.c: Likewise.
29968         * tests/test-nl_langinfo.c: Likewise.
29969         * tests/test-obstack-printf.c: Likewise.
29970         * tests/test-open.c: Likewise.
29971         * tests/test-openat.c: Likewise.
29972         * tests/test-pipe-filter-gi1.c: Likewise.
29973         * tests/test-pipe-filter-gi2-main.c: Likewise.
29974         * tests/test-pipe-filter-ii1.c: Likewise.
29975         * tests/test-pipe-filter-ii2-main.c: Likewise.
29976         * tests/test-pipe2.c: Likewise.
29977         * tests/test-popen.h: Likewise.
29978         * tests/test-posixtm.c: Likewise.
29979         * tests/test-pread.c: Likewise.
29980         * tests/test-printf-frexp.c: Likewise.
29981         * tests/test-printf-frexpl.c: Likewise.
29982         * tests/test-printf-posix.c: Likewise.
29983         * tests/test-priv-set.c: Likewise.
29984         * tests/test-quotearg.c: Likewise.
29985         * tests/test-random_r.c: Likewise.
29986         * tests/test-rawmemchr.c: Likewise.
29987         * tests/test-rbtree_list.c: Likewise.
29988         * tests/test-rbtree_oset.c: Likewise.
29989         * tests/test-rbtreehash_list.c: Likewise.
29990         * tests/test-readlink.c: Likewise.
29991         * tests/test-remove.c: Likewise.
29992         * tests/test-rename.c: Likewise.
29993         * tests/test-renameat.c: Likewise.
29994         * tests/test-rmdir.c: Likewise.
29995         * tests/test-round1.c: Likewise.
29996         * tests/test-roundf1.c: Likewise.
29997         * tests/test-roundl.c: Likewise.
29998         * tests/test-safe-alloc.c: Likewise.
29999         * tests/test-sameacls.c: Likewise.
30000         * tests/test-set-mode-acl.c: Likewise.
30001         * tests/test-setenv.c: Likewise.
30002         * tests/test-sigaction.c: Likewise.
30003         * tests/test-signbit.c: Likewise.
30004         * tests/test-sleep.c: Likewise.
30005         * tests/test-snprintf-posix.c: Likewise.
30006         * tests/test-snprintf.c: Likewise.
30007         * tests/test-sprintf-posix.c: Likewise.
30008         * tests/test-stat-time.c: Likewise.
30009         * tests/test-stat.c: Likewise.
30010         * tests/test-strcasestr.c: Likewise.
30011         * tests/test-strchrnul.c: Likewise.
30012         * tests/test-strerror.c: Likewise.
30013         * tests/test-striconv.c: Likewise.
30014         * tests/test-striconveh.c: Likewise.
30015         * tests/test-striconveha.c: Likewise.
30016         * tests/test-strsignal.c: Likewise.
30017         * tests/test-strstr.c: Likewise.
30018         * tests/test-strtod.c: Likewise.
30019         * tests/test-strverscmp.c: Likewise.
30020         * tests/test-symlink.c: Likewise.
30021         * tests/test-symlinkat.c: Likewise.
30022         * tests/test-trunc1.c: Likewise.
30023         * tests/test-trunc2.c: Likewise.
30024         * tests/test-truncf1.c: Likewise.
30025         * tests/test-truncf2.c: Likewise.
30026         * tests/test-truncl.c: Likewise.
30027         * tests/test-uname.c: Likewise.
30028         * tests/test-unlink.c: Likewise.
30029         * tests/test-unlinkat.c: Likewise.
30030         * tests/test-unsetenv.c: Likewise.
30031         * tests/test-usleep.c: Likewise.
30032         * tests/test-utimens.c: Likewise.
30033         * tests/test-utimensat.c: Likewise.
30034         * tests/test-vasnprintf-posix.c: Likewise.
30035         * tests/test-vasnprintf-posix2.c: Likewise.
30036         * tests/test-vasnprintf.c: Likewise.
30037         * tests/test-vasprintf-posix.c: Likewise.
30038         * tests/test-vasprintf.c: Likewise.
30039         * tests/test-vdprintf-posix.c: Likewise.
30040         * tests/test-vfprintf-posix.c: Likewise.
30041         * tests/test-vprintf-posix.c: Likewise.
30042         * tests/test-vsnprintf-posix.c: Likewise.
30043         * tests/test-vsnprintf.c: Likewise.
30044         * tests/test-vsprintf-posix.c: Likewise.
30045         * tests/test-wcrtomb.c: Likewise.
30046         * tests/test-wcsnrtombs.c: Likewise.
30047         * tests/test-wcsrtombs.c: Likewise.
30048         * tests/test-wctype.c: Likewise.
30049         * tests/test-wcwidth.c: Likewise.
30050         * tests/test-xfprintf-posix.c: Likewise.
30051         * tests/test-xmemdup0.c: Likewise.
30052         * tests/test-xprintf-posix.c: Likewise.
30053         * tests/test-xvasprintf.c: Likewise.
30054         * tests/unicase/test-locale-language.c: Likewise.
30055         * tests/unicase/test-mapping-part1.h: Likewise.
30056         * tests/unicase/test-predicate-part1.h: Likewise.
30057         * tests/unicase/test-u8-casecmp.c: Likewise.
30058         * tests/unicase/test-u8-casecoll.c: Likewise.
30059         * tests/unicase/test-u8-casefold.c: Likewise.
30060         * tests/unicase/test-u8-is-cased.c: Likewise.
30061         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30062         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30063         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30064         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30065         * tests/unicase/test-u8-tolower.c: Likewise.
30066         * tests/unicase/test-u8-totitle.c: Likewise.
30067         * tests/unicase/test-u8-toupper.c: Likewise.
30068         * tests/unicase/test-u16-casecmp.c: Likewise.
30069         * tests/unicase/test-u16-casecoll.c: Likewise.
30070         * tests/unicase/test-u16-casefold.c: Likewise.
30071         * tests/unicase/test-u16-is-cased.c: Likewise.
30072         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30073         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30074         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30075         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30076         * tests/unicase/test-u16-tolower.c: Likewise.
30077         * tests/unicase/test-u16-totitle.c: Likewise.
30078         * tests/unicase/test-u16-toupper.c: Likewise.
30079         * tests/unicase/test-u32-casecmp.c: Likewise.
30080         * tests/unicase/test-u32-casecoll.c: Likewise.
30081         * tests/unicase/test-u32-casefold.c: Likewise.
30082         * tests/unicase/test-u32-is-cased.c: Likewise.
30083         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30084         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30085         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30086         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30087         * tests/unicase/test-u32-tolower.c: Likewise.
30088         * tests/unicase/test-u32-totitle.c: Likewise.
30089         * tests/unicase/test-u32-toupper.c: Likewise.
30090         * tests/unicase/test-ulc-casecmp.c: Likewise.
30091         * tests/unicase/test-ulc-casecoll.c: Likewise.
30092         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30093         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30094         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30095         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30096         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30097         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30098         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30099         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30100         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30101         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30102         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30103         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30104         * tests/unictype/test-bidi_byname.c: Likewise.
30105         * tests/unictype/test-bidi_name.c: Likewise.
30106         * tests/unictype/test-bidi_of.c: Likewise.
30107         * tests/unictype/test-bidi_test.c: Likewise.
30108         * tests/unictype/test-block_list.c: Likewise.
30109         * tests/unictype/test-block_of.c: Likewise.
30110         * tests/unictype/test-block_test.c: Likewise.
30111         * tests/unictype/test-categ_and.c: Likewise.
30112         * tests/unictype/test-categ_and_not.c: Likewise.
30113         * tests/unictype/test-categ_byname.c: Likewise.
30114         * tests/unictype/test-categ_name.c: Likewise.
30115         * tests/unictype/test-categ_none.c: Likewise.
30116         * tests/unictype/test-categ_of.c: Likewise.
30117         * tests/unictype/test-categ_or.c: Likewise.
30118         * tests/unictype/test-categ_test_withtable.c: Likewise.
30119         * tests/unictype/test-combining.c: Likewise.
30120         * tests/unictype/test-decdigit.c: Likewise.
30121         * tests/unictype/test-digit.c: Likewise.
30122         * tests/unictype/test-mirror.c: Likewise.
30123         * tests/unictype/test-numeric.c: Likewise.
30124         * tests/unictype/test-pr_byname.c: Likewise.
30125         * tests/unictype/test-pr_test.c: Likewise.
30126         * tests/unictype/test-predicate-part1.h: Likewise.
30127         * tests/unictype/test-scripts.c: Likewise.
30128         * tests/unictype/test-sy_c_ident.c: Likewise.
30129         * tests/unictype/test-sy_java_ident.c: Likewise.
30130         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30131         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30132         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30133         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30134         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30135         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30136         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30137         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30138         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30139         * tests/uninorm/test-compat-decomposition.c: Likewise.
30140         * tests/uninorm/test-composition.c: Likewise.
30141         * tests/uninorm/test-decomposing-form.c: Likewise.
30142         * tests/uninorm/test-decomposition.c: Likewise.
30143         * tests/uninorm/test-u8-nfc.c: Likewise.
30144         * tests/uninorm/test-u8-nfd.c: Likewise.
30145         * tests/uninorm/test-u8-nfkc.c: Likewise.
30146         * tests/uninorm/test-u8-nfkd.c: Likewise.
30147         * tests/uninorm/test-u8-normcmp.c: Likewise.
30148         * tests/uninorm/test-u8-normcoll.c: Likewise.
30149         * tests/uninorm/test-u16-nfc.c: Likewise.
30150         * tests/uninorm/test-u16-nfd.c: Likewise.
30151         * tests/uninorm/test-u16-nfkc.c: Likewise.
30152         * tests/uninorm/test-u16-nfkd.c: Likewise.
30153         * tests/uninorm/test-u16-normcmp.c: Likewise.
30154         * tests/uninorm/test-u16-normcoll.c: Likewise.
30155         * tests/uninorm/test-u32-nfc.c: Likewise.
30156         * tests/uninorm/test-u32-nfd.c: Likewise.
30157         * tests/uninorm/test-u32-nfkc.c: Likewise.
30158         * tests/uninorm/test-u32-nfkd.c: Likewise.
30159         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30160         * tests/uninorm/test-u32-normcmp.c: Likewise.
30161         * tests/uninorm/test-u32-normcoll.c: Likewise.
30162         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30163         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30164         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30165         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30166         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30167         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30168         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30169         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30170         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30171         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30172         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30173         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30174         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30175         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30176         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30177         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30178         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30179         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30180         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30181         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30182         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30183         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30184         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30185         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30186         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30187         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30188         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30189         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30190         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30191         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30192         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30193         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30194         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30195         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30196         * tests/uniwidth/test-u8-width.c: Likewise.
30197         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30198         * tests/uniwidth/test-u16-width.c: Likewise.
30199         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30200         * tests/uniwidth/test-u32-width.c: Likewise.
30201         * tests/uniwidth/test-uc_width.c: Likewise.
30202         * tests/uniwidth/test-uc_width2.c: Likewise.
30203         * modules/acl-tests (Files): Add tests/macros.h.
30204         * modules/areadlink-tests (Files): Likewise.
30205         * modules/areadlink-with-size-tests (Files): Likewise.
30206         * modules/areadlinkat-tests (Files): Likewise.
30207         * modules/areadlinkat-with-size-tests (Files): Likewise.
30208         * modules/argmatch-tests (Files): Likewise.
30209         * modules/argv-iter-tests (Files): Likewise.
30210         * modules/array-list-tests (Files): Likewise.
30211         * modules/array-mergesort-tests (Files): Likewise.
30212         * modules/array-oset-tests (Files): Likewise.
30213         * modules/avltree-list-tests (Files): Likewise.
30214         * modules/avltree-oset-tests (Files): Likewise.
30215         * modules/avltreehash-list-tests (Files): Likewise.
30216         * modules/base64-tests (Files): Likewise.
30217         * modules/binary-io-tests (Files): Likewise.
30218         * modules/bitrotate-tests (Files): Likewise.
30219         * modules/btowc-tests (Files): Likewise.
30220         * modules/byteswap-tests (Files): Likewise.
30221         * modules/c-ctype-tests (Files): Likewise.
30222         * modules/c-stack-tests (Files): Likewise.
30223         * modules/c-strcase-tests (Files): Likewise.
30224         * modules/c-strcasestr-tests (Files): Likewise.
30225         * modules/c-strstr-tests (Files): Likewise.
30226         * modules/canonicalize-lgpl-tests (Files): Likewise.
30227         * modules/canonicalize-tests (Files): Likewise.
30228         * modules/carray-list-tests (Files): Likewise.
30229         * modules/ceilf-tests (Files): Likewise.
30230         * modules/ceill-tests (Files): Likewise.
30231         * modules/chown-tests (Files): Likewise.
30232         * modules/cloexec-tests (Files): Likewise.
30233         * modules/copy-file-tests (Files): Likewise.
30234         * modules/count-one-bits-tests (Files): Likewise.
30235         * modules/dprintf-posix-tests (Files): Likewise.
30236         * modules/dup2-tests (Files): Likewise.
30237         * modules/dup3-tests (Files): Likewise.
30238         * modules/duplocale-tests (Files): Likewise.
30239         * modules/fbufmode-tests (Files): Likewise.
30240         * modules/fchdir-tests (Files): Likewise.
30241         * modules/fcntl-safer-tests (Files): Likewise.
30242         * modules/fcntl-tests (Files): Likewise.
30243         * modules/fdopendir-tests (Files): Likewise.
30244         * modules/fdutimensat-tests (Files): Likewise.
30245         * modules/fflush-tests (Files): Likewise.
30246         * modules/filevercmp-tests (Files): Likewise.
30247         * modules/flock-tests (Files): Likewise.
30248         * modules/floorf-tests (Files): Likewise.
30249         * modules/floorl-tests (Files): Likewise.
30250         * modules/fnmatch-tests (Files): Likewise.
30251         * modules/fopen-safer-tests (Files): Likewise.
30252         * modules/fopen-tests (Files): Likewise.
30253         * modules/fpending-tests (Files): Likewise.
30254         * modules/fprintf-posix-tests (Files): Likewise.
30255         * modules/fpurge-tests (Files): Likewise.
30256         * modules/freadable-tests (Files): Likewise.
30257         * modules/freadahead-tests (Files): Likewise.
30258         * modules/freading-tests (Files): Likewise.
30259         * modules/freadptr-tests (Files): Likewise.
30260         * modules/freadseek-tests (Files): Likewise.
30261         * modules/freopen-tests (Files): Likewise.
30262         * modules/frexp-nolibm-tests (Files): Likewise.
30263         * modules/frexp-tests (Files): Likewise.
30264         * modules/frexpl-nolibm-tests (Files): Likewise.
30265         * modules/frexpl-tests (Files): Likewise.
30266         * modules/fseek-tests (Files): Likewise.
30267         * modules/fseeko-tests (Files): Likewise.
30268         * modules/fstrcmp-tests (Files): Likewise.
30269         * modules/fsync-tests (Files): Likewise.
30270         * modules/ftell-tests (Files): Likewise.
30271         * modules/ftello-tests (Files): Likewise.
30272         * modules/func-tests (Files): Likewise.
30273         * modules/futimens-tests (Files): Likewise.
30274         * modules/fwritable-tests (Files): Likewise.
30275         * modules/fwriting-tests (Files): Likewise.
30276         * modules/getcwd-tests (Files): Likewise.
30277         * modules/getdate-tests (Files): Likewise.
30278         * modules/getdelim-tests (Files): Likewise.
30279         * modules/getdtablesize-tests (Files): Likewise.
30280         * modules/getgroups-tests (Files): Likewise.
30281         * modules/getline-tests (Files): Likewise.
30282         * modules/getndelim2-tests (Files): Likewise.
30283         * modules/glob-tests (Files): Likewise.
30284         * modules/hash-tests (Files): Likewise.
30285         * modules/i-ring-tests (Files): Likewise.
30286         * modules/iconv-tests (Files): Likewise.
30287         * modules/iconv_open-utf-tests (Files): Likewise.
30288         * modules/idpriv-drop-tests (Files): Likewise.
30289         * modules/idpriv-droptemp-tests (Files): Likewise.
30290         * modules/inet_ntop-tests (Files): Likewise.
30291         * modules/inet_pton-tests (Files): Likewise.
30292         * modules/isblank-tests (Files): Likewise.
30293         * modules/isfinite-tests (Files): Likewise.
30294         * modules/isinf-tests (Files): Likewise.
30295         * modules/isnan-tests (Files): Likewise.
30296         * modules/isnand-nolibm-tests (Files): Likewise.
30297         * modules/isnand-tests (Files): Likewise.
30298         * modules/isnanf-nolibm-tests (Files): Likewise.
30299         * modules/isnanf-tests (Files): Likewise.
30300         * modules/isnanl-nolibm-tests (Files): Likewise.
30301         * modules/isnanl-tests (Files): Likewise.
30302         * modules/lchown-tests (Files): Likewise.
30303         * modules/ldexpl-tests (Files): Likewise.
30304         * modules/link-tests (Files): Likewise.
30305         * modules/linkat-tests (Files): Likewise.
30306         * modules/linked-list-tests (Files): Likewise.
30307         * modules/linkedhash-list-tests (Files): Likewise.
30308         * modules/localename-tests (Files): Likewise.
30309         * modules/lseek-tests (Files): Likewise.
30310         * modules/lstat-tests (Files): Likewise.
30311         * modules/mbmemcasecmp-tests (Files): Likewise.
30312         * modules/mbmemcasecoll-tests (Files): Likewise.
30313         * modules/mbrtowc-tests (Files): Likewise.
30314         * modules/mbscasecmp-tests (Files): Likewise.
30315         * modules/mbscasestr-tests (Files): Likewise.
30316         * modules/mbschr-tests (Files): Likewise.
30317         * modules/mbscspn-tests (Files): Likewise.
30318         * modules/mbsinit-tests (Files): Likewise.
30319         * modules/mbsncasecmp-tests (Files): Likewise.
30320         * modules/mbsnrtowcs-tests (Files): Likewise.
30321         * modules/mbspbrk-tests (Files): Likewise.
30322         * modules/mbspcasecmp-tests (Files): Likewise.
30323         * modules/mbsrchr-tests (Files): Likewise.
30324         * modules/mbsrtowcs-tests (Files): Likewise.
30325         * modules/mbsspn-tests (Files): Likewise.
30326         * modules/mbsstr-tests (Files): Likewise.
30327         * modules/memchr-tests (Files): Likewise.
30328         * modules/memchr2-tests (Files): Likewise.
30329         * modules/memcmp-tests (Files): Likewise.
30330         * modules/memmem-tests (Files): Likewise.
30331         * modules/memrchr-tests (Files): Likewise.
30332         * modules/mkdir-tests (Files): Likewise.
30333         * modules/mkfifo-tests (Files): Likewise.
30334         * modules/mkfifoat-tests (Files): Likewise.
30335         * modules/mknod-tests (Files): Likewise.
30336         * modules/nanosleep-tests (Files): Likewise.
30337         * modules/nl_langinfo-tests (Files): Likewise.
30338         * modules/obstack-printf-tests (Files): Likewise.
30339         * modules/open-tests (Files): Likewise.
30340         * modules/openat-tests (Files): Likewise.
30341         * modules/pipe-filter-gi-tests (Files): Likewise.
30342         * modules/pipe-filter-ii-tests (Files): Likewise.
30343         * modules/pipe2-tests (Files): Likewise.
30344         * modules/popen-safer-tests (Files): Likewise.
30345         * modules/popen-tests (Files): Likewise.
30346         * modules/posixtm-tests (Files): Likewise.
30347         * modules/pread-tests (Files): Likewise.
30348         * modules/printf-frexp-tests (Files): Likewise.
30349         * modules/printf-frexpl-tests (Files): Likewise.
30350         * modules/printf-posix-tests (Files): Likewise.
30351         * modules/priv-set-tests (Files): Likewise.
30352         * modules/quotearg-tests (Files): Likewise.
30353         * modules/random_r-tests (Files): Likewise.
30354         * modules/rawmemchr-tests (Files): Likewise.
30355         * modules/rbtree-list-tests (Files): Likewise.
30356         * modules/rbtree-oset-tests (Files): Likewise.
30357         * modules/rbtreehash-list-tests (Files): Likewise.
30358         * modules/readlink-tests (Files): Likewise.
30359         * modules/remove-tests (Files): Likewise.
30360         * modules/rename-tests (Files): Likewise.
30361         * modules/renameat-tests (Files): Likewise.
30362         * modules/rmdir-tests (Files): Likewise.
30363         * modules/round-tests (Files): Likewise.
30364         * modules/roundf-tests (Files): Likewise.
30365         * modules/roundl-tests (Files): Likewise.
30366         * modules/safe-alloc-tests (Files): Likewise.
30367         * modules/setenv-tests (Files): Likewise.
30368         * modules/sigaction-tests (Files): Likewise.
30369         * modules/signbit-tests (Files): Likewise.
30370         * modules/sleep-tests (Files): Likewise.
30371         * modules/snprintf-posix-tests (Files): Likewise.
30372         * modules/snprintf-tests (Files): Likewise.
30373         * modules/sprintf-posix-tests (Files): Likewise.
30374         * modules/stat-tests (Files): Likewise.
30375         * modules/stat-time-tests (Files): Likewise.
30376         * modules/strcasestr-tests (Files): Likewise.
30377         * modules/strchrnul-tests (Files): Likewise.
30378         * modules/strerror-tests (Files): Likewise.
30379         * modules/striconv-tests (Files): Likewise.
30380         * modules/striconveh-tests (Files): Likewise.
30381         * modules/striconveha-tests (Files): Likewise.
30382         * modules/strsignal-tests (Files): Likewise.
30383         * modules/strstr-tests (Files): Likewise.
30384         * modules/strtod-tests (Files): Likewise.
30385         * modules/strverscmp-tests (Files): Likewise.
30386         * modules/symlink-tests (Files): Likewise.
30387         * modules/symlinkat-tests (Files): Likewise.
30388         * modules/trunc-tests (Files): Likewise.
30389         * modules/truncf-tests (Files): Likewise.
30390         * modules/truncl-tests (Files): Likewise.
30391         * modules/uname-tests (Files): Likewise.
30392         * modules/unicase/cased-tests (Files): Likewise.
30393         * modules/unicase/ignorable-tests (Files): Likewise.
30394         * modules/unicase/locale-language-tests (Files): Likewise.
30395         * modules/unicase/tolower-tests (Files): Likewise.
30396         * modules/unicase/totitle-tests (Files): Likewise.
30397         * modules/unicase/toupper-tests (Files): Likewise.
30398         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30399         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30400         * modules/unicase/u8-casefold-tests (Files): Likewise.
30401         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30402         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30403         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30404         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30405         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30406         * modules/unicase/u8-tolower-tests (Files): Likewise.
30407         * modules/unicase/u8-totitle-tests (Files): Likewise.
30408         * modules/unicase/u8-toupper-tests (Files): Likewise.
30409         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30410         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30411         * modules/unicase/u16-casefold-tests (Files): Likewise.
30412         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30413         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30414         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30415         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30416         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30417         * modules/unicase/u16-tolower-tests (Files): Likewise.
30418         * modules/unicase/u16-totitle-tests (Files): Likewise.
30419         * modules/unicase/u16-toupper-tests (Files): Likewise.
30420         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30421         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30422         * modules/unicase/u32-casefold-tests (Files): Likewise.
30423         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30424         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30425         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30426         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30427         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30428         * modules/unicase/u32-tolower-tests (Files): Likewise.
30429         * modules/unicase/u32-totitle-tests (Files): Likewise.
30430         * modules/unicase/u32-toupper-tests (Files): Likewise.
30431         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30432         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30433         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30434         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30435         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30436         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30437         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30438         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30439         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30440         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30441         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30442         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30443         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30444         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30445         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30446         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30447         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30448         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30449         * modules/unictype/block-list-tests (Files): Likewise.
30450         * modules/unictype/block-of-tests (Files): Likewise.
30451         * modules/unictype/block-test-tests (Files): Likewise.
30452         * modules/unictype/category-C-tests (Files): Likewise.
30453         * modules/unictype/category-Cc-tests (Files): Likewise.
30454         * modules/unictype/category-Cf-tests (Files): Likewise.
30455         * modules/unictype/category-Cn-tests (Files): Likewise.
30456         * modules/unictype/category-Co-tests (Files): Likewise.
30457         * modules/unictype/category-Cs-tests (Files): Likewise.
30458         * modules/unictype/category-L-tests (Files): Likewise.
30459         * modules/unictype/category-Ll-tests (Files): Likewise.
30460         * modules/unictype/category-Lm-tests (Files): Likewise.
30461         * modules/unictype/category-Lo-tests (Files): Likewise.
30462         * modules/unictype/category-Lt-tests (Files): Likewise.
30463         * modules/unictype/category-Lu-tests (Files): Likewise.
30464         * modules/unictype/category-M-tests (Files): Likewise.
30465         * modules/unictype/category-Mc-tests (Files): Likewise.
30466         * modules/unictype/category-Me-tests (Files): Likewise.
30467         * modules/unictype/category-Mn-tests (Files): Likewise.
30468         * modules/unictype/category-N-tests (Files): Likewise.
30469         * modules/unictype/category-Nd-tests (Files): Likewise.
30470         * modules/unictype/category-Nl-tests (Files): Likewise.
30471         * modules/unictype/category-No-tests (Files): Likewise.
30472         * modules/unictype/category-P-tests (Files): Likewise.
30473         * modules/unictype/category-Pc-tests (Files): Likewise.
30474         * modules/unictype/category-Pd-tests (Files): Likewise.
30475         * modules/unictype/category-Pe-tests (Files): Likewise.
30476         * modules/unictype/category-Pf-tests (Files): Likewise.
30477         * modules/unictype/category-Pi-tests (Files): Likewise.
30478         * modules/unictype/category-Po-tests (Files): Likewise.
30479         * modules/unictype/category-Ps-tests (Files): Likewise.
30480         * modules/unictype/category-S-tests (Files): Likewise.
30481         * modules/unictype/category-Sc-tests (Files): Likewise.
30482         * modules/unictype/category-Sk-tests (Files): Likewise.
30483         * modules/unictype/category-Sm-tests (Files): Likewise.
30484         * modules/unictype/category-So-tests (Files): Likewise.
30485         * modules/unictype/category-Z-tests (Files): Likewise.
30486         * modules/unictype/category-Zl-tests (Files): Likewise.
30487         * modules/unictype/category-Zp-tests (Files): Likewise.
30488         * modules/unictype/category-Zs-tests (Files): Likewise.
30489         * modules/unictype/category-and-not-tests (Files): Likewise.
30490         * modules/unictype/category-and-tests (Files): Likewise.
30491         * modules/unictype/category-byname-tests (Files): Likewise.
30492         * modules/unictype/category-name-tests (Files): Likewise.
30493         * modules/unictype/category-none-tests (Files): Likewise.
30494         * modules/unictype/category-of-tests (Files): Likewise.
30495         * modules/unictype/category-or-tests (Files): Likewise.
30496         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30497         * modules/unictype/combining-class-tests (Files): Likewise.
30498         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30499         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30500         * modules/unictype/ctype-blank-tests (Files): Likewise.
30501         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30502         * modules/unictype/ctype-digit-tests (Files): Likewise.
30503         * modules/unictype/ctype-graph-tests (Files): Likewise.
30504         * modules/unictype/ctype-lower-tests (Files): Likewise.
30505         * modules/unictype/ctype-print-tests (Files): Likewise.
30506         * modules/unictype/ctype-punct-tests (Files): Likewise.
30507         * modules/unictype/ctype-space-tests (Files): Likewise.
30508         * modules/unictype/ctype-upper-tests (Files): Likewise.
30509         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30510         * modules/unictype/decimal-digit-tests (Files): Likewise.
30511         * modules/unictype/digit-tests (Files): Likewise.
30512         * modules/unictype/mirror-tests (Files): Likewise.
30513         * modules/unictype/numeric-tests (Files): Likewise.
30514         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30515         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30516         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30517         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30518         Likewise.
30519         * modules/unictype/property-bidi-block-separator-tests (Files):
30520         Likewise.
30521         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30522         Likewise.
30523         * modules/unictype/property-bidi-common-separator-tests (Files):
30524         Likewise.
30525         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30526         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30527         Likewise.
30528         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30529         Likewise.
30530         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30531         Likewise.
30532         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30533         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30534         Likewise.
30535         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30536         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30537         Likewise.
30538         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30539         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30540         * modules/unictype/property-bidi-segment-separator-tests (Files):
30541         Likewise.
30542         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30543         * modules/unictype/property-byname-tests (Files): Likewise.
30544         * modules/unictype/property-combining-tests (Files): Likewise.
30545         * modules/unictype/property-composite-tests (Files): Likewise.
30546         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30547         * modules/unictype/property-dash-tests (Files): Likewise.
30548         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30549         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30550         Likewise.
30551         * modules/unictype/property-deprecated-tests (Files): Likewise.
30552         * modules/unictype/property-diacritic-tests (Files): Likewise.
30553         * modules/unictype/property-extender-tests (Files): Likewise.
30554         * modules/unictype/property-format-control-tests (Files): Likewise.
30555         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30556         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30557         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30558         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30559         * modules/unictype/property-hyphen-tests (Files): Likewise.
30560         * modules/unictype/property-id-continue-tests (Files): Likewise.
30561         * modules/unictype/property-id-start-tests (Files): Likewise.
30562         * modules/unictype/property-ideographic-tests (Files): Likewise.
30563         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30564         * modules/unictype/property-ids-trinary-operator-tests (Files):
30565         Likewise.
30566         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30567         * modules/unictype/property-iso-control-tests (Files): Likewise.
30568         * modules/unictype/property-join-control-tests (Files): Likewise.
30569         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30570         * modules/unictype/property-line-separator-tests (Files): Likewise.
30571         * modules/unictype/property-logical-order-exception-tests (Files):
30572         Likewise.
30573         * modules/unictype/property-lowercase-tests (Files): Likewise.
30574         * modules/unictype/property-math-tests (Files): Likewise.
30575         * modules/unictype/property-non-break-tests (Files): Likewise.
30576         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30577         * modules/unictype/property-numeric-tests (Files): Likewise.
30578         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30579         * modules/unictype/property-other-default-ignorable-code-point-tests
30580         (Files): Likewise.
30581         * modules/unictype/property-other-grapheme-extend-tests (Files):
30582         Likewise.
30583         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30584         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30585         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30586         * modules/unictype/property-other-math-tests (Files): Likewise.
30587         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30588         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30589         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30590         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30591         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30592         * modules/unictype/property-private-use-tests (Files): Likewise.
30593         * modules/unictype/property-punctuation-tests (Files): Likewise.
30594         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30595         * modules/unictype/property-radical-tests (Files): Likewise.
30596         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30597         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30598         * modules/unictype/property-space-tests (Files): Likewise.
30599         * modules/unictype/property-terminal-punctuation-tests (Files):
30600         Likewise.
30601         * modules/unictype/property-test-tests (Files): Likewise.
30602         * modules/unictype/property-titlecase-tests (Files): Likewise.
30603         * modules/unictype/property-unassigned-code-value-tests (Files):
30604         Likewise.
30605         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30606         * modules/unictype/property-uppercase-tests (Files): Likewise.
30607         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30608         * modules/unictype/property-white-space-tests (Files): Likewise.
30609         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30610         * modules/unictype/property-xid-start-tests (Files): Likewise.
30611         * modules/unictype/property-zero-width-tests (Files): Likewise.
30612         * modules/unictype/scripts-tests (Files): Likewise.
30613         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30614         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30615         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30616         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30617         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30618         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30619         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30620         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30621         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30622         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30623         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30624         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30625         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30626         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30627         * modules/uninorm/composition-tests (Files): Likewise.
30628         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30629         * modules/uninorm/decomposition-tests (Files): Likewise.
30630         * modules/uninorm/filter-tests (Files): Likewise.
30631         * modules/uninorm/nfc-tests (Files): Likewise.
30632         * modules/uninorm/nfd-tests (Files): Likewise.
30633         * modules/uninorm/nfkc-tests (Files): Likewise.
30634         * modules/uninorm/nfkd-tests (Files): Likewise.
30635         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30636         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30637         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30638         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30639         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30640         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30641         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30642         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30643         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30644         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30645         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30646         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30647         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30648         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30649         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30650         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30651         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30652         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30653         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30654         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30655         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30656         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30657         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30658         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30659         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30660         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30661         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30662         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30663         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30664         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30665         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30666         * modules/uniwidth/u8-width-tests (Files): Likewise.
30667         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30668         * modules/uniwidth/u16-width-tests (Files): Likewise.
30669         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30670         * modules/uniwidth/u32-width-tests (Files): Likewise.
30671         * modules/uniwidth/width-tests (Files): Likewise.
30672         * modules/unlink-tests (Files): Likewise.
30673         * modules/unsetenv-tests (Files): Likewise.
30674         * modules/usleep-tests (Files): Likewise.
30675         * modules/utimens-tests (Files): Likewise.
30676         * modules/utimensat-tests (Files): Likewise.
30677         * modules/vasnprintf-posix-tests (Files): Likewise.
30678         * modules/vasnprintf-tests (Files): Likewise.
30679         * modules/vasprintf-posix-tests (Files): Likewise.
30680         * modules/vasprintf-tests (Files): Likewise.
30681         * modules/vdprintf-posix-tests (Files): Likewise.
30682         * modules/vfprintf-posix-tests (Files): Likewise.
30683         * modules/vprintf-posix-tests (Files): Likewise.
30684         * modules/vsnprintf-posix-tests (Files): Likewise.
30685         * modules/vsnprintf-tests (Files): Likewise.
30686         * modules/vsprintf-posix-tests (Files): Likewise.
30687         * modules/wcrtomb-tests (Files): Likewise.
30688         * modules/wcsnrtombs-tests (Files): Likewise.
30689         * modules/wcsrtombs-tests (Files): Likewise.
30690         * modules/wctype-tests (Files): Likewise.
30691         * modules/wcwidth-tests (Files): Likewise.
30692         * modules/xmemdup0-tests (Files): Likewise.
30693         * modules/xprintf-posix-tests (Files): Likewise.
30694         * modules/xvasprintf-tests (Files): Likewise.
30695
30696 2009-12-24  Eric Blake  <ebb9@byu.net>
30697
30698         test-nanosleep: fix typo
30699         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30700         patch.
30701         Reported by Bruno Haible.
30702
30703 2009-12-24  Bruno Haible  <bruno@clisp.org>
30704
30705         Reduce namespace pollution on glibc systems.
30706         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30707         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30708         systems.
30709         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30710         <getopt.h> on glibc systems.
30711         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30712         systems.
30713         * lib/fcntl.c: Include <unistd.h> here instead.
30714
30715 2009-12-24  Bruno Haible  <bruno@clisp.org>
30716
30717         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30718
30719 2009-12-24  Eric Blake  <ebb9@byu.net>
30720
30721         tests: add signature checks
30722         * tests/signature.h (SIGNATURE_CHECK): New file.
30723         * modules/atexit-tests (Files): Use it.
30724         * modules/btowc-tests (Files): Likewise.
30725         * modules/canonicalize-lgpl-tests (Files): Likewise.
30726         * modules/ceilf-tests (Files): Likewise.
30727         * modules/ceill-tests (Files): Likewise.
30728         * modules/chown-tests (Files): Likewise.
30729         * modules/dprintf-posix-tests (Files): Likewise.
30730         * modules/dup2-tests (Files): Likewise.
30731         * modules/dup3-tests (Files): Likewise.
30732         * modules/duplocale-tests (Files): Likewise.
30733         * modules/fchdir-tests (Files): Likewise.
30734         * modules/fcntl-tests (Files): Likewise.
30735         * modules/fdopendir-tests (Files): Likewise.
30736         * modules/fflush-tests (Files): Likewise.
30737         * modules/flock-tests (Files): Likewise.
30738         * modules/floorf-tests (Files): Likewise.
30739         * modules/floorl-tests (Files): Likewise.
30740         * modules/fnmatch-tests (Files): Likewise.
30741         * modules/fopen-tests (Files): Likewise.
30742         * modules/fprintf-posix-tests (Files): Likewise.
30743         * modules/freopen-tests (Files): Likewise.
30744         * modules/frexp-nolibm-tests (Files): Likewise.
30745         * modules/frexp-tests (Files): Likewise.
30746         * modules/frexpl-nolibm-tests (Files): Likewise.
30747         * modules/frexpl-tests (Files): Likewise.
30748         * modules/fseek-tests (Files): Likewise.
30749         * modules/fseeko-tests (Files): Likewise.
30750         * modules/fsync-tests (Files): Likewise.
30751         * modules/ftell-tests (Files): Likewise.
30752         * modules/ftello-tests (Files): Likewise.
30753         * modules/futimens-tests (Files): Likewise.
30754         * modules/getaddrinfo-tests (Files): Likewise.
30755         * modules/getcwd-tests (Files): Likewise.
30756         * modules/getdelim-tests (Files): Likewise.
30757         * modules/getdtablesize-tests (Files): Likewise.
30758         * modules/getgroups-tests (Files): Likewise.
30759         * modules/gethostname-tests (Files): Likewise.
30760         * modules/getline-tests (Files): Likewise.
30761         * modules/getopt-posix-tests (Files): Likewise.
30762         * modules/gettimeofday-tests (Files): Likewise.
30763         * modules/glob-tests (Files): Likewise.
30764         * modules/iconv-tests (Files): Likewise.
30765         * modules/inet_ntop-tests (Files): Likewise.
30766         * modules/inet_pton-tests (Files): Likewise.
30767         * modules/isblank-tests (Files): Likewise.
30768         * modules/lchown-tests (Files): Likewise.
30769         * modules/ldexpl-tests (Files): Likewise.
30770         * modules/link-tests (Files): Likewise.
30771         * modules/linkat-tests (Files): Likewise.
30772         * modules/lseek-tests (Files): Likewise.
30773         * modules/lstat-tests (Files): Likewise.
30774         * modules/mbrtowc-tests (Files): Likewise.
30775         * modules/mbsinit-tests (Files): Likewise.
30776         * modules/mbsnrtowcs-tests (Files): Likewise.
30777         * modules/mbsrtowcs-tests (Files): Likewise.
30778         * modules/memchr-tests (Files): Likewise.
30779         * modules/memcmp-tests (Files): Likewise.
30780         * modules/memmem-tests (Files): Likewise.
30781         * modules/memrchr-tests (Files): Likewise.
30782         * modules/mkdir-tests (Files): Likewise.
30783         * modules/mkfifo-tests (Files): Likewise.
30784         * modules/mkfifoat-tests (Files): Likewise.
30785         * modules/mknod-tests (Files): Likewise.
30786         * modules/nanosleep-tests (Files): Likewise.
30787         * modules/nl_langinfo-tests (Files): Likewise.
30788         * modules/obstack-printf-tests (Files): Likewise.
30789         * modules/open-tests (Files): Likewise.
30790         * modules/openat-tests (Files): Likewise.
30791         * modules/perror-tests (Files): Likewise.
30792         * modules/pipe2-tests (Files): Likewise.
30793         * modules/poll-tests (Files): Likewise.
30794         * modules/popen-tests (Files): Likewise.
30795         * modules/posix_spawn-tests (Files): Likewise.
30796         * modules/posix_spawnp-tests (Files): Likewise.
30797         * modules/pread-tests (Files): Likewise.
30798         * modules/printf-posix-tests (Files): Likewise.
30799         * modules/pty-tests (Files): Likewise.
30800         * modules/random_r-tests (Files): Likewise.
30801         * modules/rawmemchr-tests (Files): Likewise.
30802         * modules/readlink-tests (Files): Likewise.
30803         * modules/remove-tests (Files): Likewise.
30804         * modules/rename-tests (Files): Likewise.
30805         * modules/renameat-tests (Files): Likewise.
30806         * modules/rmdir-tests (Files): Likewise.
30807         * modules/round-tests (Files): Likewise.
30808         * modules/roundf-tests (Files): Likewise.
30809         * modules/roundl-tests (Files): Likewise.
30810         * modules/select-tests (Files): Likewise.
30811         * modules/setenv-tests (Files): Likewise.
30812         * modules/sigaction-tests (Files): Likewise.
30813         * modules/sleep-tests (Files): Likewise.
30814         * modules/snprintf-posix-tests (Files): Likewise.
30815         * modules/snprintf-tests (Files): Likewise.
30816         * modules/sprintf-posix-tests (Files): Likewise.
30817         * modules/stat-tests (Files): Likewise.
30818         * modules/strcasestr-tests (Files): Likewise.
30819         * modules/strchrnul-tests (Files): Likewise.
30820         * modules/strerror-tests (Files): Likewise.
30821         * modules/strsignal-tests (Files): Likewise.
30822         * modules/strstr-tests (Files): Likewise.
30823         * modules/strtod-tests (Files): Likewise.
30824         * modules/strverscmp-tests (Files): Likewise.
30825         * modules/symlink-tests (Files): Likewise.
30826         * modules/symlinkat-tests (Files): Likewise.
30827         * modules/times-tests (Files): Likewise.
30828         * modules/trunc-tests (Files): Likewise.
30829         * modules/truncf-tests (Files): Likewise.
30830         * modules/truncl-tests (Files): Likewise.
30831         * modules/tsearch-tests (Files): Likewise.
30832         * modules/uname-tests (Files): Likewise.
30833         * modules/unlink-tests (Files): Likewise.
30834         * modules/unsetenv-tests (Files): Likewise.
30835         * modules/usleep-tests (Files): Likewise.
30836         * modules/utimensat-tests (Files): Likewise.
30837         * modules/vasprintf-tests (Files): Likewise.
30838         * modules/vdprintf-posix-tests (Files): Likewise.
30839         * modules/vfprintf-posix-tests (Files): Likewise.
30840         * modules/vprintf-posix-tests (Files): Likewise.
30841         * modules/vsnprintf-posix-tests (Files): Likewise.
30842         * modules/vsnprintf-tests (Files): Likewise.
30843         * modules/vsprintf-posix-tests (Files): Likewise.
30844         * modules/wcrtomb-tests (Files): Likewise.
30845         * modules/wcsnrtombs-tests (Files): Likewise.
30846         * modules/wcsrtombs-tests (Files): Likewise.
30847         * modules/wcwidth-tests (Files): Likewise.
30848         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30849         * tests/test-isinf.c (isinf): Likewise.
30850         * tests/test-isnan.c (isnan): Likewise.
30851         * tests/test-signbit.c (signbit): Likewise.
30852         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30853         declaration, either as macro or with correct signature.
30854         (select): Ensure function under test is declared with correct
30855         signature in correct header.
30856         * tests/test-atexit.c (atexit): Likewise.
30857         * tests/test-btowc.c (btowc): Likewise.
30858         * tests/test-canonicalize-lgpl.c (realpath)
30859         (canonicalize_file_name): Likewise.
30860         * tests/test-ceilf1.c (ceilf): Likewise.
30861         * tests/test-ceill.c (ceill): Likewise.
30862         * tests/test-chown.c (chown): Likewise.
30863         * tests/test-dprintf-posix.c (dprintf): Likewise.
30864         * tests/test-dup2.c (dup2): Likewise.
30865         * tests/test-dup3.c (dup3): Likewise.
30866         * tests/test-duplocale.c (duplocale): Likewise.
30867         * tests/test-fchdir.c (fchdir): Likewise.
30868         * tests/test-fchownat.c (fchownat): Likewise.
30869         * tests/test-fcntl.c (fcntl): Likewise.
30870         * tests/test-fdopendir.c (fdopendir): Likewise.
30871         * tests/test-fflush.c (fflush): Likewise.
30872         * tests/test-flock.c (flock): Likewise.
30873         * tests/test-floorf1.c (floorf): Likewise.
30874         * tests/test-floorl.c (floorl): Likewise.
30875         * tests/test-fnmatch.c (fnmatch): Likewise.
30876         * tests/test-fopen.c (fopen): Likewise.
30877         * tests/test-fprintf-posix.c (fprintf): Likewise.
30878         * tests/test-freopen.c (freopen): Likewise.
30879         * tests/test-frexp.c (frexp): Likewise.
30880         * tests/test-frexpl.c (frexpl): Likewise.
30881         * tests/test-fseek.c (fseek): Likewise.
30882         * tests/test-fseeko.c (fseeko): Likewise.
30883         * tests/test-fstatat.c (fstatat): Likewise.
30884         * tests/test-fsync.c (fsync): Likewise.
30885         * tests/test-ftell.c (ftell): Likewise.
30886         * tests/test-ftello.c (ftello): Likewise.
30887         * tests/test-futimens.c (futimens): Likewise.
30888         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30889         (gai_strerror): Likewise.
30890         * tests/test-getcwd.c (getcwd): Likewise.
30891         * tests/test-getdelim.c (getdelim): Likewise.
30892         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30893         * tests/test-getgroups.c (getgroups): Likewise.
30894         * tests/test-gethostname.c (gethostname): Likewise.
30895         * tests/test-getline.c (getline): Likewise.
30896         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30897         Likewise.
30898         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30899         * tests/test-glob.c (glob, globfree): Likewise.
30900         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30901         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30902         * tests/test-inet_pton.c (inet_pton): Likewise.
30903         * tests/test-isblank.c (isblank): Likewise.
30904         * tests/test-lchown.c (lchown): Likewise.
30905         * tests/test-ldexpl.c (ldexpl): Likewise.
30906         * tests/test-link.c (link): Likewise.
30907         * tests/test-linkat.c (linkat): Likewise.
30908         * tests/test-lseek.c (lseek): Likewise.
30909         * tests/test-lstat.c (lstat): Likewise.
30910         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30911         * tests/test-mbsinit.c (mbsinit): Likewise.
30912         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30913         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30914         * tests/test-memchr.c (memchr): Likewise.
30915         * tests/test-memcmp.c (memcmp): Likewise.
30916         * tests/test-memmem.c (memmem): Likewise.
30917         * tests/test-memrchr.c (memrchr): Likewise.
30918         * tests/test-mkdir.c (mkdir): Likewise.
30919         * tests/test-mkdirat.c (mkdirat): Likewise.
30920         * tests/test-mkfifo.c (mkfifo): Likewise.
30921         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30922         * tests/test-mknod.c (mknod): Likewise.
30923         * tests/test-nanosleep.c (nanosleep): Likewise.
30924         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30925         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30926         Likewise.
30927         * tests/test-open.c (open): Likewise.
30928         * tests/test-openat.c (openat): Likewise.
30929         * tests/test-perror.c (perror): Likewise.
30930         * tests/test-pipe2.c (pipe2): Likewise.
30931         * tests/test-poll.c (poll): Likewise.
30932         * tests/test-popen.c (popen, pclose): Likewise.
30933         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30934         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30935         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30936         (posix_spawn_file_actions_destroy)
30937         (posix_spawn_file_actions_addclose)
30938         (posix_spawn_file_actions_addopen)
30939         (posix_spawn_file_actions_adddup2): Likewise.
30940         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30941         * tests/test-pread.c (pread): Likewise.
30942         * tests/test-printf-posix.c (printf): Likewise.
30943         * tests/test-pty.c (openpty, forkpty): Likewise.
30944         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30945         (random_r): Likewise.
30946         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30947         * tests/test-readlink.c (readlink): Likewise.
30948         * tests/test-remove.c (remove): Likewise.
30949         * tests/test-rename.c (rename): Likewise.
30950         * tests/test-renameat.c (renameat): Likewise.
30951         * tests/test-rmdir.c (rmdir): Likewise.
30952         * tests/test-round1.c (round): Likewise.
30953         * tests/test-roundf1.c (roundf): Likewise.
30954         * tests/test-roundl.c (roundl): Likewise.
30955         * tests/test-setenv.c (setenv): Likewise.
30956         * tests/test-sigaction.c (sigaction): Likewise.
30957         * tests/test-sleep.c (sleep): Likewise.
30958         * tests/test-snprintf.c (snprintf): Likewise.
30959         * tests/test-sprintf-posix.c (sprintf): Likewise.
30960         * tests/test-stat.c (stat): Likewise.
30961         * tests/test-stpncpy.c (stpncpy): Likewise.
30962         * tests/test-strcasestr.c (strcasestr): Likewise.
30963         * tests/test-strchrnul.c (strchrnul): Likewise.
30964         * tests/test-strerror.c (strerror): Likewise.
30965         * tests/test-strsignal.c (strsignal): Likewise.
30966         * tests/test-strstr.c (strstr): Likewise.
30967         * tests/test-strtod.c (strtod): Likewise.
30968         * tests/test-strverscmp.c (strverscmp): Likewise.
30969         * tests/test-symlink.c (symlink): Likewise.
30970         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30971         * tests/test-times.c (times): Likewise.
30972         * tests/test-trunc1.c (trunc): Likewise.
30973         * tests/test-truncf1.c (truncf): Likewise.
30974         * tests/test-truncl.c (truncl): Likewise.
30975         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30976         Likewise.
30977         * tests/test-uname.c (uname): Likewise.
30978         * tests/test-unlink.c (unlink): Likewise.
30979         * tests/test-unlinkat.c (unlinkat): Likewise.
30980         * tests/test-unsetenv.c (unsetenv): Likewise.
30981         * tests/test-usleep.c (usleep): Likewise.
30982         * tests/test-utimensat.c (utimensat): Likewise.
30983         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30984         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30985         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30986         * tests/test-vprintf-posix.c (vprintf): Likewise.
30987         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30988         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30989         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30990         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30991         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30992         * tests/test-wcwidth.c (wcwidth): Likewise.
30993
30994         build: pull in conditional headers during GNULIB_POSIXCHECK
30995         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30996         definitions from any conditionally-included headers.
30997         * lib/stdlib.in.h (includes): Likewise.
30998         * lib/unistd.in.h (includes): Likewise.
30999
31000 2009-12-24  Bruno Haible  <bruno@clisp.org>
31001
31002         * tests/test-argv-iter.c: Include header file being tested immediately
31003         after config.h.
31004         * tests/test-base64.c: Likewise.
31005         * tests/test-flock.c: Likewise.
31006         * tests/test-fsync.c: Likewise.
31007         * tests/test-getdate.c: Likewise.
31008         * tests/test-getndelim2.c: Likewise.
31009         * tests/test-isfinite.c: Likewise.
31010         * tests/test-isinf.c: Likewise.
31011         * tests/test-strerror.c: Likewise.
31012         * tests/test-strsignal.c: Likewise.
31013
31014 2009-12-23  Eric Blake  <ebb9@byu.net>
31015
31016         unistd: work around cygwin bug
31017         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31018         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31019         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31020
31021 2009-12-23  Bruno Haible  <bruno@clisp.org>
31022
31023         localename: More tests.
31024         * tests/test-localename.c (SIZEOF): New macro.
31025         (categories): New variable.
31026         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31027         test_locale_name_default): Add test w.r.t. thread locale.
31028         (test_locale_name_thread): New function.
31029         (main): Invoke it.
31030
31031         localename: Make aware of thread locale.
31032         * lib/localename.h (gl_locale_name_thread): New declaration.
31033         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31034         behaviour with respect to thread locale.
31035         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31036         <langinfo.h>, glthread/lock.h.
31037         (SIZE_BITS): New macro.
31038         (string_hash): New function.
31039         (struct hash_node): New type.
31040         (HASH_TABLE_SIZE): New macro.
31041         (struniq_hash_table, struniq_lock): New variables.
31042         (struniq): New function.
31043         (gl_locale_name_thread): New function.
31044         (gl_locale_name): Invoke it.
31045         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31046         * modules/localename (Depends-on): Add lock.
31047         Reported by Mike Gran <spk121@yahoo.com>.
31048
31049 2009-12-23  Eric Blake  <ebb9@byu.net>
31050
31051         va-args: new module
31052         * modules/va-args: New file.
31053         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31054         * MODULES.html.sh (Core language properties): Mention it.
31055
31056         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31057         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31058         named alias for __attribute__((__unused__)).
31059         * lib/chown.c: Update client.
31060         * lib/fchmodat.c: Likewise.
31061         * lib/fts.c: Likewise.
31062         * lib/getdate.y: Likewise.
31063         * lib/getgroups.c: Likewise.
31064         * lib/getopt.c: Likewise.
31065         * lib/getugroups.c: Likewise.
31066         * lib/mkdir.c: Likewise.
31067         * lib/mkfifo.c: Likewise.
31068         * lib/mkfifoat.c: Likewise.
31069         * lib/mknod.c: Likewise.
31070         * lib/mknodat.c: Likewise.
31071         * lib/readlink.c: Likewise.
31072         * lib/se-context.in.h: Likewise.
31073         * lib/se-selinux.in.h: Likewise.
31074         * lib/sockets.c: Likewise.
31075         * lib/symlink.c: Likewise.
31076         * lib/symlinkat.c: Likewise.
31077         * lib/unicodeio.c: Likewise.
31078         * lib/unistr.h: Likewise.
31079         * tests/test-areadlink.c: Likewise.
31080         * tests/test-areadlinkat.c: Likewise.
31081         * tests/test-filenamecat.c: Likewise.
31082         * tests/test-fseeko.c: Likewise.
31083         * tests/test-ftello.c: Likewise.
31084         * tests/test-getdate.c: Likewise.
31085         * tests/test-getgroups.c: Likewise.
31086         * tests/test-gethostname.c: Likewise.
31087         * tests/test-quotearg.c: Likewise.
31088         * tests/test-version-etc.c: Likewise.
31089         * tests/test-xalloc-die.c: Likewise.
31090         * tests/test-xfprintf-posix.c: Likewise.
31091         * tests/test-xprintf-posix.c: Likewise.
31092         * tests/test-xvasprintf.c: Likewise.
31093
31094         tests: avoid compiler warnings
31095         * tests/test-fcntl.c (main): Delete unused parameters.
31096         * tests/test-freopen-safer.c (main): Likewise.
31097         * tests/test-xalloc-die.c (main): Mark unused parameters.
31098         * tests/test-fseeko.c (main): Likewise.
31099         * tests/test-ftello.c (main): Likewise.
31100         * tests/test-nanosleep.c (main): Avoid declaration warning.
31101         * tests/test-sleep.c (main): Likewise.
31102         * tests/test-unsetenv.c (main): Silence warning about string
31103         literal.
31104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31105
31106 2009-12-23  Bruno Haible  <bruno@clisp.org>
31107
31108         * tests/test-localename.c (test_locale_name): New function, extracted
31109         from main. Also test mixed situations.
31110         (test_locale_name_posix, test_locale_name_environ,
31111         test_locale_name_default): New functions.
31112         (main): Invoke them all.
31113         * modules/localename-tests (configure.ac): Test for newlocale.
31114
31115 2009-12-23  Bruno Haible  <bruno@clisp.org>
31116
31117         unistd: Ensure getcwd gets declared before being overridden.
31118         * lib/unistd.in.h: Conditionally include <io.h>.
31119
31120 2009-12-22  Bruno Haible  <bruno@clisp.org>
31121
31122         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31123         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31124         (gl_WCHAR_H): Invoke it.
31125         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31126         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31127         Reported by Karl Berry <karl@freefriends.org>.
31128
31129 2009-12-22  Eric Blake  <ebb9@byu.net>
31130
31131         math, unistd: avoid redundant includes
31132         * lib/math.in.h (isnan): No need to re-include <math.h>.
31133         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31134
31135         getsubopt: work around cygwin bug
31136         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31137         avoid conflicting with system getsubopt.
31138         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31139         bug.
31140
31141         getopt: synchronize from glibc
31142         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31143         parameter order.  Adjust all callers.
31144         (_getopt_internal_r, main): Adjust quoting in error messages.
31145         Drop considerations for outdated POSIX 1003.2 error message.
31146         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31147         callers.
31148         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31149
31150         test-getopt: test stderr behavior
31151         * modules/getopt-posix-tests (Depends-on): Add dup2.
31152         * tests/test-getopt.c (ASSERT): Avoid stderr.
31153         (main): Move stderr to a temporary file.
31154         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31155         Instead, add parameter to inform caller if output occurred.
31156         (test_getopt): Adjust all existing tests to expect silence, and
31157         add new tests of leading ":".
31158         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31159         glibc shortcomings with leading "-:" or "+:" in optstring.
31160         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31161         Likewise.
31162         * doc/posix-functions/getopt.texi (getopt): Likewise.
31163
31164         test-getopt: enhance test
31165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31166         supports optind=0.
31167         * tests/test-getopt.c (OPTIND_MIN): Move...
31168         * tests/test-getopt.h (OPTIND_MIN): ...here.
31169         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31170         Require that optind=0 works, since modern BSD supports it in
31171         addition to optreset, and since coreutils expects it.
31172         (test_getopt_long_only): New test.
31173         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31174         glibc shortcomings with 'W;', and enforcement of optind=0.
31175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31176         Likewise.
31177
31178 2009-12-21  Bruno Haible  <bruno@clisp.org>
31179
31180         localename: Improvements for MacOS X and Cygwin.
31181         * lib/localename.h (gl_locale_name_environ): New declaration.
31182         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31183         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31184         (gl_locale_name_posix): Invoke it.
31185         (gl_locale_name_default): Add comments. Use Windows native API also on
31186         Cygwin.
31187
31188 2009-12-21  Bruno Haible  <bruno@clisp.org>
31189
31190         Update list of Win32 locale ids.
31191         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31192         (LANG_SAMI): Renamed from LANG_SAAMI.
31193         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31194         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31195         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31196         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31197         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31198         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31199         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31200         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31201         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31202         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31203         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31204         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31205         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31206         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31207         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31208         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31209         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31210         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31211         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31212         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31213         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31214         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31215         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31216         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31217         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31218         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31219         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31220         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31221         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31222         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31223         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31224         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31225         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31226         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31227         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31228         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31229         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31230         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31231         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31232         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31233         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31234         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31235         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31236         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31237         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31238         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31239         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31240         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31241         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31242         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31243         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31244         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31245         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31246         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31247         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31248         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31249         Add more languages and countries for Sami, Sorbian. Add more countries
31250         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31251         for Pashto. Change country for Syriac, Tswana.
31252
31253 2009-12-21  Eric Blake  <ebb9@byu.net>
31254
31255         test-utimens: avoid spurious failure
31256         * tests/test-chown.h (nap): Factor...
31257         * tests/nap.h: ...into new file.
31258         * tests/test-lchown.h (nap): Avoid duplication.
31259         * tests/test-utimens-common.h (nap): Use shared implementation,
31260         necessary on file systems with 1-second resolution.
31261         * modules/chown-tests (Files): Include new file.
31262         * modules/fdutimensat-tests (Files): Likewise.
31263         * modules/futimens-tests (Files): Likewise.
31264         * modules/lchown-tests (Files): Likewise.
31265         * modules/openat-tests (Files): Likewise.
31266         * modules/utimens-tests (Files): Likewise.
31267         * modules/utimensat-tests (Files): Likewise.
31268
31269 2009-12-19  Eric Blake  <ebb9@byu.net>
31270
31271         futimens, utimensat: work around Linux bug
31272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31273         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31274         * lib/utimensat.c (rpl_utimensat): Work around it.
31275         * lib/futimens.c (rpl_futimens): Adjust comment.
31276
31277         utimens: work around Linux ctime bug
31278         * lib/utimens.c (detect_ctime_bug): New helper function.
31279         (update_timespec): Differentiate between workaround needed for
31280         this bug vs. what is needed for systems that lack utimensat.
31281         (fdutimens, lutimens): Work around bug.
31282
31283         utimens: check for ctime update
31284         * tests/test-utimens-common.h (check_ctime): Define.
31285         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31286         * tests/test-futimens.h (test_futimens): Likewise.
31287         * tests/test-lutimens.h (test_lutimens): Likewise.
31288         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31290
31291 2009-12-19  Bruno Haible  <bruno@clisp.org>
31292
31293         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31294         * tests/test-dprintf-posix2.sh: New file.
31295         * tests/test-dprintf-posix2.c: New file.
31296         * modules/dprintf-posix-tests (Files): Add them.
31297         (configure.ac): Check for getrlimit and setrlimit.
31298         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31299
31300 2009-12-19  Bruno Haible  <bruno@clisp.org>
31301
31302         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31303         * tests/test-fprintf-posix3.sh: New file.
31304         * tests/test-fprintf-posix3.c: New file.
31305         * modules/fprintf-posix-tests (Files): Add them.
31306         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31307
31308 2009-12-19  Eric Blake  <ebb9@byu.net>
31309
31310         dirfd: fix prototype
31311         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31312         * lib/dirfd.c (dirfd): Likewise.
31313
31314         canonicalize: reduce memory usage
31315         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31316         allocation to size.
31317         Reported by Solar Designer <solar@openwall.com>.
31318
31319 2009-12-19  Bruno Haible  <bruno@clisp.org>
31320
31321         New module attribute 'Applicability'.
31322         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31323         * gnulib-tool: New option --extract-applicability.
31324         (func_usage): Document it.
31325         (sed_extract_prog): Recognize it.
31326         (func_get_applicability): New function.
31327         (func_import): Generalize handling of 'link-warning' module.
31328         * modules/link-warning (Applicability): New section.
31329         * modules/arg-nonnull (Applicability): New section.
31330         Repoted by Simon Josefsson <simon@josefsson.org>.
31331
31332 2009-12-19  Bruno Haible  <bruno@clisp.org>
31333
31334         fflush: tweak
31335         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31336         * lib/fseeko.c (rpl_fseeko): Likewise.
31337
31338 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31339
31340         * lib/gl_list.h: Fix typo in comment.
31341
31342 2009-12-16  Eric Blake  <ebb9@byu.net>
31343
31344         fcntl: use to simplify other modules
31345         * modules/cloexec (Depends-on): Add fcntl.
31346         * modules/fchdir (Depends-on): Likewise.
31347         * modules/fd-safer-flag (Depends-on): Likewise.
31348         * modules/unistd-safer (Depends-on): Likewise.
31349         * modules/dup3 (configure.ac): Set module indicator.
31350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31351         missing.
31352         * lib/fchdir.c (_gl_register_dup): Fix comment.
31353         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31354         * lib/dup-safer.c (dup_safer): Likewise.
31355         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31356         * lib/dup3.c (dup3): Likewise.
31357         * tests/test-fchdir.c (main): Enhance test.
31358         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31359
31360         fcntl: port portions of fcntl to mingw
31361         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31362         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31363         replacement for mingw.
31364         * modules/fcntl (Description): Update.
31365         (Depends-on): Add dup2.
31366         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31367         * modules/fcntl-h (Makefile.am): Substitute it.
31368         * lib/fcntl.in.h (fcntl): Update declaration.
31369         (F_DUPFD, F_GETFD): New macros, when needed.
31370         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31371         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31372         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31373         we now guarantee.
31374
31375         fcntl: work around cygwin bug in F_DUPFD
31376         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31377         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31378         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31379         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31380         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31381
31382         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31383         * modules/fcntl (Files): List new files.
31384         (configure.ac): Run a test.
31385         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31386         * lib/fcntl.c (rpl_fcntl): Likewise.
31387         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31388         (gl_FCNTL_H): Always replace fcntl.h.
31389         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31390         * lib/fcntl.in.h (fcntl): Declare replacement.
31391         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31392         needed, plus a witness.
31393         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31394         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31395         * tests/test-fcntl.c: New file.
31396         * modules/fcntl-tests: Likewise.
31397
31398         binary-io: avoid potential compilation warning
31399         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31400         directives.
31401
31402         fflush: avoid compilation error on NetBSD
31403         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31404         between off_t and fpos_t, since the latter is sometimes a struct.
31405         * lib/fseeko.c (rpl_fseeko): Likewise.
31406         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31407
31408 2009-12-15  Eric Blake  <ebb9@byu.net>
31409
31410         fcntl-h, stdio, sys_ioctl: fix declarations
31411         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31412         function must not take arguments.
31413         * lib/sys_ioctl.in.h (ioctl): Likewise.
31414         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31415         (open): Add a link warning.
31416
31417 2009-12-15  Jim Meyering  <meyering@redhat.com>
31418
31419         areadlink, areadlink-with-size: relax license to LGPLv2+
31420         * modules/areadlink (License): Relax to LGPLv2+.
31421         * modules/areadlink-with-size (License): Likewise.
31422
31423 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31424             Bruno Haible  <bruno@clisp.org>
31425
31426         *printf: Fix memory leak.
31427         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31428         * lib/vfprintf.c (vfprintf): Likewise.
31429         * lib/dprintf.c (dprintf): Likewise.
31430         * lib/vdprintf.c (vdprintf): Likewise.
31431
31432 2009-12-14  Eric Blake  <ebb9@byu.net>
31433
31434         accept4: adjust module dependencies
31435         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31436
31437         utimens: one more try at avoiding compiler warning
31438         * lib/utimens.c (lutimens): Lower scope of result.
31439
31440 2009-12-13  Bruno Haible  <bruno@clisp.org>
31441
31442         Move the malloc checking from module 'list' to new module 'xlist'.
31443         * modules/xlist: New file.
31444         * lib/gl_xlist.h: New file.
31445         * lib/gl_xlist.c: New file.
31446         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31447         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31448         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31449         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31450         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31451         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31452         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31453         gl_sortedlist_nx_add): New declarations.
31454         (struct gl_list_implementation): Rename and change methods accordingly.
31455         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31456         (gl_list_nx_create): Renamed from gl_list_create.
31457         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31458         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31459         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31460         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31461         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31462         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31463         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31464         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31465         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31466         gl_list_create_empty.
31467         (gl_list_nx_create): Renamed from gl_list_create.
31468         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31469         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31470         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31471         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31472         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31473         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31474         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31475         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31476         * lib/gl_array_list.c: Don't include xalloc.h.
31477         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31478         NULL upon out-of-memory.
31479         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31480         out-of-memory.
31481         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31482         Change return type to 'int'.
31483         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31484         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31485         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31486         upon out-of-memory.
31487         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31488         upon out-of-memory.
31489         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31490         upon out-of-memory.
31491         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31492         upon out-of-memory.
31493         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31494         out-of-memory.
31495         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31496         Update.
31497         (gl_array_list_implementation): Update.
31498         * lib/gl_carray_list.c: Don't include xalloc.h.
31499         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31500         Return NULL upon out-of-memory.
31501         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31502         out-of-memory.
31503         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31504         Change return type to 'int'.
31505         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31506         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31507         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31508         upon out-of-memory.
31509         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31510         upon out-of-memory.
31511         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31512         out-of-memory.
31513         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31514         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31515         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31516         Update.
31517         (gl_carray_list_implementation): Update.
31518         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31519         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31520         gl_linked_create_empty. Return NULL upon out-of-memory.
31521         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31522         out-of-memory.
31523         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31524         Change return type to 'int'. Return -1 upon out-of-memory.
31525         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31526         out-of-memory.
31527         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31528         upon out-of-memory.
31529         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31530         upon out-of-memory.
31531         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31532         NULL upon out-of-memory.
31533         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31534         upon out-of-memory.
31535         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31536         out-of-memory.
31537         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31538         Update.
31539         * lib/gl_linked_list.c: Don't include xalloc.h.
31540         (gl_linked_list_implementation): Update.
31541         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31542         (add_to_bucket): Change return type to 'int'.
31543         (gl_linkedhash_list_implementation): Update.
31544         * lib/gl_anytree_list1.h (free_subtree): New function.
31545         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31546         gl_tree_create_empty. Return NULL upon out-of-memory.
31547         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31548         Change return type to 'int'. Return -1 upon out-of-memory.
31549         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31550         out-of-memory.
31551         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31552         (gl_tree_remove_node): New function, moved here from
31553         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31554         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31555         Update.
31556         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31557         malloc, not xmalloc. Return NULL upon out-of-memory.
31558         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31559         out-of-memory.
31560         (gl_tree_remove_node_from_tree): New function, extracted from
31561         gl_tree_remove_node.
31562         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31563         upon out-of-memory.
31564         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31565         out-of-memory.
31566         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31567         upon out-of-memory.
31568         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31569         upon out-of-memory.
31570         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31571         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31572         not xmalloc. Return NULL upon out-of-memory.
31573         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31574         out-of-memory.
31575         (gl_tree_remove_node_from_tree): New function, extracted from
31576         gl_tree_remove_node.
31577         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31578         upon out-of-memory.
31579         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31580         out-of-memory.
31581         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31582         upon out-of-memory.
31583         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31584         upon out-of-memory.
31585         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31586         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31587         gl_anytree_list1.h before gl_anyavltree_list2.h.
31588         (gl_avltree_list_implementation): Update.
31589         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31590         gl_anytree_list1.h before gl_anyavltree_list2.h.
31591         (gl_rbtree_list_implementation): Update.
31592         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31593         Change return type to 'int'. Return -1 upon out-of-memory. Use
31594         __builtin_expect.
31595         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31596         (gl_avltreehash_list_implementation): Update.
31597         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31598         (gl_rbtreehash_list_implementation): Update.
31599         * modules/array-list (Depends-on): Remove xalloc.
31600         * modules/carray-list (Depends-on): Likewise.
31601         * modules/linked-list (Depends-on): Likewise.
31602         * modules/linkedhash-list (Depends-on): Likewise.
31603         * modules/avltree-list (Depends-on): Likewise.
31604         * modules/rbtree-list (Depends-on): Likewise.
31605         * modules/avltreehash-list (Depends-on): Likewise.
31606         * modules/rbtreehash-list (Depends-on): Likewise.
31607
31608         * modules/xsublist: New file.
31609         * lib/gl_xsublist.h: New file.
31610         * lib/gl_xsublist.c: New file.
31611         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31612         (gl_sublist_nx_create): New declaration.
31613         * lib/gl_sublist.c: Don't include xalloc.h.
31614         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31615         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31616         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31617         Change return type to 'int'. Return -1 upon out-of-memory.
31618         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31619         upon out-of-memory.
31620         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31621         NULL upon out-of-memory.
31622         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31623         upon out-of-memory.
31624         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31625         NULL upon out-of-memory.
31626         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31627         NULL upon out-of-memory.
31628         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31629         upon out-of-memory.
31630         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31631         (gl_sublist_list_implementation): Update.
31632         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31633         upon out-of-memory.
31634         * modules/sublist (Depends-on): Remove xalloc.
31635
31636         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31637         * tests/test-carray_list.c: Likewise.
31638         * tests/test-linked_list.c: Likewise.
31639         * tests/test-linkedhash_list.c: Likewise.
31640         * tests/test-avltree_list.c: Likewise.
31641         * tests/test-rbtree_list.c: Likewise.
31642         * tests/test-avltreehash_list.c: Likewise.
31643         * tests/test-rbtreehash_list.c: Likewise.
31644         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31645         * modules/carray-list-tests (Makefile.am): Likewise.
31646         * modules/linked-list-tests (Makefile.am): Likewise.
31647         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31648         * modules/avltree-list-tests (Makefile.am): Likewise.
31649         * modules/rbtree-list-tests (Makefile.am): Likewise.
31650         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31651         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31652
31653         * NEWS: Mention the changes.
31654
31655         * lib/clean-temp.c: Include gl_xlist.h.
31656         * modules/clean-temp (Depends-on): Add xlist.
31657
31658         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31659         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31660
31661         * tests/test-array_oset.c: Include gl_xlist.h.
31662         * modules/array-oset-tests (Depends-on): Add xlist.
31663
31664         Reported by José E. Marchesi <jemarch@gnu.org>.
31665
31666 2009-12-13  Bruno Haible  <bruno@clisp.org>
31667
31668         Move the malloc checking from module 'oset' to new module 'xoset'.
31669         * modules/xoset: New file.
31670         * lib/gl_xoset.h: New file.
31671         * lib/gl_xoset.c: New file.
31672         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31673         declarations.
31674         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31675         (struct gl_oset_implementation): Rename and change methods accordingly.
31676         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31677         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31678         'int'. Mark as __warn_unused_result__.
31679         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31680         gl_oset_create_empty.
31681         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31682         'int'.
31683         * lib/gl_array_oset.c: Don't include xalloc.h.
31684         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31685         malloc, not xmalloc.
31686         (grow): Change return type to 'int'. Don't call xalloc_die.
31687         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31688         to 'int'.
31689         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31690         'int'.
31691         (gl_array_oset_implementation): Update.
31692         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31693         gl_tree_create_empty.
31694         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31695         'int'.
31696         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31697         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31698         xmalloc.
31699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31700         not xmalloc.
31701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31702         xmalloc.
31703         (gl_avltree_oset_implementation): Update.
31704         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31705         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31706         xmalloc.
31707         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31708         not xmalloc.
31709         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31710         xmalloc.
31711         (gl_rbtree_oset_implementation): Update.
31712         * modules/array-oset (Depends-on): Remove xalloc.
31713         * modules/avltree-oset (Depends-on): Likewise.
31714         * modules/rbtree-oset (Depends-on): Likewise.
31715         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31716         * tests/test-avltree_oset.c: Likewise.
31717         * tests/test-rbtree_oset.c: Likewise.
31718         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31719         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31720         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31721         * NEWS: Mention the change.
31722
31723 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31724
31725         maint.mk: allow a project to override release-prep commands
31726         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31727         commands into a new rule.
31728         (release-prep): New rule.
31729         (release-prep-hook): New overridable variable.
31730
31731 2009-12-13  Bruno Haible  <bruno@clisp.org>
31732
31733         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31734
31735 2009-12-13  Jim Meyering  <meyering@redhat.com>
31736
31737         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31738         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31739
31740 2009-12-12  Bruno Haible  <bruno@clisp.org>
31741
31742         duplocale: Tweak.
31743         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31744
31745 2009-12-12  Karl Berry  <karl@gnu.org>
31746
31747         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31748
31749 2009-12-12  Bruno Haible  <bruno@clisp.org>
31750
31751         * m4/po.m4: Undo incorrect untabification.
31752
31753 2009-12-12  Bruno Haible  <bruno@clisp.org>
31754
31755         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31756         * modules/c-strtod (Depends-on): Add locale.
31757         * modules/c-strtold (Depends-on): Likewise.
31758
31759 2009-12-12  Bruno Haible  <bruno@clisp.org>
31760
31761         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31762
31763 2009-12-11  Eric Blake  <ebb9@byu.net>
31764
31765         setenv: relax requirement in light of POSIX ruling
31766         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31767         not NULL.
31768         * tests/test-setenv.c (main): Relax test.
31769         * tests/test-unsetenv.c (main): Likewise.
31770         * doc/posix-functions/setenv.texi (setenv): Document this.
31771         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31772
31773 2009-12-11  Bruno Haible  <bruno@clisp.org>
31774
31775         New module 'fd-safer-flag'.
31776         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31777         * lib/dup-safer.c (dup_safer_flag): Remove function.
31778         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31779         * lib/fd-safer.c (fd_safer_flag): Remove function.
31780         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31781         * modules/cloexec (configure.ac): Drop indicator macro.
31782         * modules/fd-safer-flag: New file.
31783         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31784         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31785         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31786
31787 2009-12-11  Bruno Haible  <bruno@clisp.org>
31788
31789         Tests for module 'nl_langinfo'.
31790         * modules/nl_langinfo-tests: New file.
31791         * tests/test-nl_langinfo.sh: New file.
31792         * tests/test-nl_langinfo.c: New file.
31793
31794         New module 'nl_langinfo'.
31795         * lib/nl_langinfo.c: New file.
31796         * m4/nl_langinfo.m4: New file.
31797         * modules/nl_langinfo: New file.
31798         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31799
31800 2009-12-11  Bruno Haible  <bruno@clisp.org>
31801
31802         Tests for module 'langinfo'.
31803         * modules/langinfo-tests: New file.
31804         * tests/test-langinfo.c: New file.
31805
31806         New module 'langinfo'.
31807         * lib/langinfo.in.h: New file.
31808         * m4/langinfo_h.m4: New file.
31809         * modules/langinfo: New file.
31810         * doc/posix-headers/langinfo.texi: Mention the new module.
31811
31812 2009-12-11  Bruno Haible  <bruno@clisp.org>
31813
31814         * lib/config.charset: Untabify.
31815
31816 2009-12-11  Bruno Haible  <bruno@clisp.org>
31817
31818         * modules/unistd-safer (configure.ac): Drop indicator macro.
31819
31820 2009-12-11  Bruno Haible  <bruno@clisp.org>
31821
31822         Move pipe2-safer code to its own file.
31823         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31824         * lib/pipe-safer.c (pipe2_safer): Remove function.
31825         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31826         (Makefile.am): Add it to lib_SOURCES.
31827
31828 2009-12-10  Bruno Haible  <bruno@clisp.org>
31829
31830         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31831
31832 2009-12-10  Bruno Haible  <bruno@clisp.org>
31833
31834         Declare which arguments expect non-NULL values, for GCC and clang.
31835         * build-aux/arg-nonnull.h: New file.
31836         * modules/arg-nonnull: New file.
31837         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31838         (inet_ntop, inet_pton): Use it.
31839         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31840         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31841         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31842         (open, openat): Use it.
31843         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31844         (fnmatch): Use it.
31845         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31846         (getopt, getopt_long, getopt_long_only): Use it.
31847         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31848         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31849         Use it.
31850         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31851         (iconv_open): Use it.
31852         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31853         (strtoimax, strtoumax): Use it.
31854         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31855         (duplocale): Use it.
31856         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31857         (frexp, frexpl): Use it.
31858         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31859         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31860         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31861         (tsearch, tfind, tdelete, twalk): Use it.
31862         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31863         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31864         sigpending): Use it.
31865         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31866         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31867         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31868         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31869         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31870         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31871         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31872         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31873         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31874         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31875         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31876         Use it.
31877         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31878         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31879         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31880         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31881         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31882         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31883         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31884         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31885         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31886         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31887         strtoull, unsetenv): Use it.
31888         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31889         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31890         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31891         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31892         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31893         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31894         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31895         (strcasecmp, strncasecmp): Use it.
31896         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31897         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31898         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31899         rpl_setsockopt): Use it.
31900         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31901         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31902         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31903         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31904         (gettimeofday): Use it.
31905         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31906         (times): Use it.
31907         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31908         (uname): Use it.
31909         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31910         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31911         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31912         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31913         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31914         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31915         unlinkat, write): Use it.
31916         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31917         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31918         * lib/argv-iter.h: Include arg-nonnull.h.
31919         (_ATTRIBUTE_NONNULL_): Remove macro.
31920         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31921         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31922         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31923         optimization.
31924         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31925         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31926         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31927         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31928         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31929         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31930         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31931         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31932         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31933         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31934         * modules/dirent (Depends-on): Add arg-nonnull.
31935         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31936         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31937         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31938         * modules/fnmatch (Depends-on): Add arg-nonnull.
31939         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31940         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31941         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31942         * modules/glob (Depends-on): Add arg-nonnull.
31943         (Makefile.am): Insert arg-nonnull.h into glob.h.
31944         * modules/iconv_open (Depends-on): Add arg-nonnull.
31945         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31946         * modules/inttypes (Depends-on): Add arg-nonnull.
31947         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31948         * modules/locale (Depends-on): Add arg-nonnull.
31949         (Makefile.am): Insert arg-nonnull.h into locale.h.
31950         * modules/math (Depends-on): Add arg-nonnull.
31951         (Makefile.am): Insert arg-nonnull.h into math.h.
31952         * modules/netdb (Depends-on): Add arg-nonnull.
31953         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31954         * modules/search (Depends-on): Add arg-nonnull.
31955         (Makefile.am): Insert arg-nonnull.h into search.h.
31956         * modules/signal (Depends-on): Add arg-nonnull.
31957         (Makefile.am): Insert arg-nonnull.h into signal.h.
31958         * modules/spawn (Depends-on): Add arg-nonnull.
31959         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31960         * modules/stdio (Depends-on): Add arg-nonnull.
31961         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31962         * modules/stdlib (Depends-on): Add arg-nonnull.
31963         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31964         * modules/string (Depends-on): Add arg-nonnull.
31965         (Makefile.am): Insert arg-nonnull.h into string.h.
31966         * modules/strings (Depends-on): Add arg-nonnull.
31967         (Makefile.am): Insert arg-nonnull.h into strings.h.
31968         * modules/sys_socket (Depends-on): Add arg-nonnull.
31969         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31970         * modules/sys_stat (Depends-on): Add arg-nonnull.
31971         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31972         * modules/sys_time (Depends-on): Add arg-nonnull.
31973         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31974         * modules/sys_times (Depends-on): Add arg-nonnull.
31975         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31976         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31977         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31978         * modules/time (Depends-on): Add arg-nonnull.
31979         (Makefile.am): Insert arg-nonnull.h into time.h.
31980         * modules/unistd (Depends-on): Add arg-nonnull.
31981         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31982         * modules/wchar (Depends-on): Add arg-nonnull.
31983         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31984         * modules/argv-iter (Depends-on): Add arg-nonnull.
31985         * tests/test-canonicalize.c (null_ptr): New function.
31986         (main): Use it.
31987         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31988         (main): Use it.
31989         * tests/test-memmem.c (null_ptr): New function.
31990         (main): Use it.
31991         Reported by Jim Meyering.
31992
31993 2009-12-10  Bruno Haible  <bruno@clisp.org>
31994
31995         Use spaces for indentation, not tabs.
31996         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31997         * m4/*.m4: Untabify.
31998         * build-aux/*.h: Untabify.
31999         * tests/**/*.[hc]: Untabify.
32000         * README: New section "Indent with spaces, not TABs", based on
32001         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32002         * NEWS: Mention the change.
32003
32004 2009-12-10  Bruno Haible  <bruno@clisp.org>
32005
32006         pty test: Fix link error.
32007         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32008         test_pty_LDADD.
32009
32010 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32011
32012         * modules/pty: New file.
32013         * modules/pty-tests: New file.
32014         * m4/pty.m4: New file.
32015         * tests/test-pty.c: New file.
32016         * doc/glibc-headers/pty.texi: Modified.
32017         * doc/glibc-functions/forkpty.texi: Modified.
32018         * doc/glibc-functions/openpty.texi: Modified.
32019
32020 2009-12-10  Bruno Haible  <bruno@clisp.org>
32021
32022         Avoid syntax error in C++ mode.
32023         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32024
32025 2009-12-10  Bruno Haible  <bruno@clisp.org>
32026
32027         Use sed with option -e.
32028         * gnulib-tool (func_version, func_emit_copyright_notice,
32029         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32030         option -e to sed.
32031         * modules/link-warning (Makefile.am): Likewise.
32032
32033 2009-12-10  Jim Meyering  <meyering@redhat.com>
32034
32035         mgetgroups: do not write bytes beyond end of malloc'd buffer
32036         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32037         username, we call getgroups with a one-element-shorter buffer,
32038         but still told it the length was original, max_n_groups.
32039
32040 2009-12-09  Eric Blake  <ebb9@byu.net>
32041
32042         cloexec: relax license
32043         * modules/cloexec (Maintainer): Add myself.
32044         (License): Use LGPL, not GPL.
32045
32046         link-warning: optimize generation
32047         * modules/link-warning (Makefile.am): Reduce process usage.
32048
32049 2009-12-09  Bruno Haible  <bruno@clisp.org>
32050
32051         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32052         workaround was added on 2009-11-17.
32053
32054 2009-12-09  Jim Meyering  <meyering@redhat.com>
32055             Bruno Haible  <bruno@clisp.org>
32056
32057         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32058         * modules/link-warning (Makefile.am): Make the comment-removing sed
32059         command more robust in the face of bootstrap-prepended comment lines.
32060
32061 2009-12-09  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32064         most one group.
32065
32066 2009-12-09  Simon Josefsson <simon@josefsson.org>
32067             Bruno Haible  <bruno@clisp.org>
32068
32069         * build-aux/link-warning.h: Add copyright notice.
32070         * modules/link-warning (Makefile.am): Generate link-warning.h from
32071         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32072         * NEWS: Mention change in link-warning module.
32073         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32074         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32075         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32076         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32077         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32078         * modules/math (Makefile.am): Add dependency to math.h.
32079         * modules/search (Makefile.am): Add dependency to search.h.
32080         * modules/signal (Makefile.am): Add dependency to signal.h.
32081         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32082         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32083         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32084         * modules/string (Makefile.am): Add dependency to string.h.
32085         * modules/strings (Makefile.am): Add dependency to strings.h.
32086         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32087         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32088         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32089         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32090         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32091         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32092         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32093         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32094         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32095
32096 2009-12-09  Bruno Haible  <bruno@clisp.org>
32097
32098         fchdir: Optimize away rpl_fstat when possible.
32099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32100         REPLACE_OPEN_DIRECTORY.
32101         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32102
32103 2009-12-09  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/fchdir.c: Update comment.
32106
32107 2009-12-09  Bruno Haible  <bruno@clisp.org>
32108
32109         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32110
32111 2009-12-08  Eric Blake  <ebb9@byu.net>
32112
32113         fchdir: avoid memory leak on re-registration.
32114         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32115
32116 2009-12-08  Jim Meyering  <meyering@redhat.com>
32117
32118         init.sh: avoid Solaris 10 /bin/sh portability problem
32119         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32120         sourced script:
32121           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32122           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32123           bar
32124         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32125         and two tests used that idiom.
32126         * tests/init.sh: Update suggested usage comments.
32127         (path_prepend_): New function, to be used in place
32128         of the --src-path=DIR option.
32129         (setup_): Move PATH-prepending code into path_prepend_.
32130         * tests/test-pread.sh: Adapt to new usage.
32131         * tests/test-xalloc-die.sh: Likewise.
32132
32133 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32134
32135         * doc/gnulib.texi (Glibc pty.h): Add.
32136         * doc/glibc-functions/forkpty.texi: Add.
32137         * doc/glibc-functions/openpty.texi: Add.
32138         Suggested by Bruno Haible.
32139
32140 2009-12-08  Eric Blake  <ebb9@byu.net>
32141
32142         fchdir: fix logic bugs
32143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32144         * tests/test-fchdir.c (main): Enhance test.
32145         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32146         is in use.
32147
32148         dup2: fix logic bugs
32149         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32150         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32151         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32152         exists.
32153         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32154
32155 2009-12-07  Eric Blake  <ebb9@byu.net>
32156
32157         unlink: fix m4 detection
32158         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32159
32160         unistd-safer: add unit test
32161         * modules/unistd-safer-tests: New file.
32162         * tests/test-dup-safer.c: Likewise.
32163         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32164         * tests/test-dup2.c (setmode): Likewise.
32165         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32166
32167         cloexec: preserve text vs. binary across dup_cloexec
32168         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32169         mode.
32170         * modules/dup2-tests (Depends-on): Add binary-io.
32171         * modules/cloexec-tests (Depends-on): Likewise.
32172         * tests/test-dup2.c (setmode, is_mode): New helpers.
32173         (main): Add tests that translation mode is preserved.
32174         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32175         Reported by Bruno Haible.
32176
32177         mgetgroups: reduce duplicate listings
32178         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32179         resulting array.
32180         * tests/test-chown.h (test_chown): Simplify client.
32181         * tests/test-lchown.h (test_lchown): Likewise.
32182
32183 2009-12-06  Bruno Haible  <bruno@clisp.org>
32184
32185         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32186         value.
32187
32188 2009-12-06  Bruno Haible  <bruno@clisp.org>
32189
32190         * lib/progname.c: Include stdio.h, stdlib.h.
32191         (set_program_name): Reject a NULL argument.
32192
32193 2009-12-05  Eric Blake  <ebb9@byu.net>
32194
32195         pipe2-safer: new module
32196         * modules/pipe2-safer: New file.
32197         * lib/unistd-safer.h (pipe2_safer): New prototype.
32198         * lib/unistd--.h (pipe2): New wrapper.
32199         * lib/pipe-safer.c (pipe2_safer): New function.
32200         * modules/pipe (Depends-on): Add pipe2-safer.
32201         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32202
32203         stdlib-safer: preserve cloexec flag for mkostemp[s]
32204         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32205         fd_safer_flag.
32206
32207         unistd-safer: allow preservation of cloexec status via flag
32208         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32209         prototypes.
32210         * lib/dup-safer.c (dup_safer_flag): New function.
32211         * lib/fd-safer.c (fd_safer_flag): Likewise.
32212         * modules/cloexec (configure.ac): Set witness.
32213
32214         test-dup2: enhance test
32215         * modules/dup2-tests (Depends-on): Add cloexec.
32216         * tests/test-dup2.c (main): Enhance test.
32217
32218         cloexec: add dup_cloexec
32219         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32220         header and comments.
32221         * lib/cloexec.c (set_cloexec_flag): Add comments.
32222         (dup_cloexec): New function, with mingw implementation borrowed
32223         from...
32224         * lib/w32spawn.h (dup_noinherit): ...here.
32225         * modules/execute (Depends-on): Add cloexec.
32226         * modules/pipe (Depends-on): Likewise.
32227         * modules/cloexec (Depends-on): Add dup2.
32228         * modules/cloexec-tests (Files): New file.
32229         * tests/test-cloexec.c: Likewise.
32230
32231         test-xalloc-die: fix test for mingw
32232         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32233         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32234         directory and .exe suffix off argv[0] output.
32235
32236         test-fseeko: fix test for mingw
32237         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32238         than undefining fseek, so test will pass on mingw.
32239
32240 2009-12-05  Bruno Haible  <bruno@clisp.org>
32241
32242         * lib/progname.h (set_program_name): Clarify specification.
32243         * lib/progname.c (set_program_name): Likewise.
32244         Reported by Jim Meyering.
32245
32246 2009-12-05  Jim Meyering  <meyering@redhat.com>
32247
32248         maint.mk: backslash-escape parens in default regexp
32249         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32250         backslash-escape the literal parentheses.
32251
32252         maint.mk: news-date-check: use grep -E
32253         * top/maint.mk (today): Define a Make variable, not a...
32254         (news-date-check): ...shell variable.
32255         (news-date-regexp): Use the Make variable.
32256         Use grep's -E option.  Change the failing diagnostic to mention
32257         the variable, $(news-date-regexp).
32258
32259 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32260
32261         maintainer-makefile: allow customization of NEWS entry format
32262         * top/maint.mk (news-date-regexp): New overridable variable.
32263         (news-date-check): Use it.
32264
32265 2009-12-04  Eric Blake  <ebb9@byu.net>
32266
32267         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32268         * lib/mgetgroups.h (xgetgroups): New prototype.
32269         * lib/mgetgroups.c (xgetgroups): New wrapper.
32270         (mgetgroups): Handle ENOSYS.
32271         * modules/mgetgroups (Depends-on): Add realloc.
32272         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32273
32274         mgetgroups: avoid argument promotion issues with -1
32275         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32276         for invalid gid_t.
32277         * tests/test-chown.h (getegid, test_chown): Likewise.
32278         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32279
32280 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32281
32282         exclude: Fix header file problems.
32283         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32284
32285 2009-12-01  Jim Meyering  <meyering@redhat.com>
32286
32287         fts: fts_open: do not let an empty string cause immediate failure
32288         This is required in support of GNU rm, for which the command
32289         "rm A '' B" must process and remove both A and B, in spite of
32290         the empty string argument.
32291         * lib/fts.c (fts_open): Do not let the presence of an empty string
32292         cause fts_open to fail immediately.  Most fts-using tools must be
32293         able to process all arguments, in order, and can be expected to
32294         diagnose such arguments themselves.
32295
32296 2009-11-30  Eric Blake  <ebb9@byu.net>
32297
32298         utimens: fix compilation error
32299         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32300         Declare variable at right scope.
32301
32302 2009-11-29  Jim Meyering  <meyering@redhat.com>
32303
32304         bootstrap: handle perl-5.11's changed --version output
32305         * build-aux/bootstrap (get_version): Handle perl separately,
32306         since perl-5.11's --version output is different.
32307
32308 2009-11-28  Jim Meyering  <meyering@redhat.com>
32309
32310         userspec: depend on the inttostr module, too
32311         * modules/userspec (Depends-on): Add inttostr.
32312
32313         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32314         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32315         number of MAXUID when it evaluates to (uid_t) -1.
32316         Likewise for group ID.  Reported by Matt McCutchen in
32317         <http://savannah.gnu.org/bugs/?28113>
32318
32319         userspec: reformat to use spaces, not TABs
32320         * lib/userspec.c: Expand TABs to spaces.
32321         Add Emacs' "indent-tabs-mode: nil" hint.
32322
32323 2009-11-27  Eric Blake  <ebb9@byu.net>
32324
32325         getopt-gnu: flush out another BSD bug
32326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32327         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32328         flush out BSD bug.
32329         * tests/test-getopt.h (test_getopt): End lists with NULL.
32330         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32331         (test_getopt_long_posix): Enhance test.
32332         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32333         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32334         getopt-gnu.
32335         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32336         Likewise.
32337
32338 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32339
32340         * modules/idpriv-droptemp-tests (Notice): Fix text.
32341
32342 2009-11-27  Jim Meyering  <meyering@redhat.com>
32343
32344         test-xalloc-die: avoid spurious failure due to libtool argv difference
32345         In a libtool-enabled project, this test would fail due to a difference
32346         in the emitted program name, e.g.,
32347         -test-xalloc-die: memory exhausted
32348         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32349         Use program to avoid that.
32350         * modules/xalloc-die-tests (Depends-on): Add progname.
32351         * tests/test-xalloc-die.c: Include progname.h".
32352         (program_name): Remove decl.
32353         (main): Call set_program_name.
32354         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32355
32356 2009-11-26  Richard Jones  <rjones@redhat.com>
32357
32358         w32sock: leave win32 error in place.
32359         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32360
32361 2009-11-26  Eric Blake  <ebb9@byu.net>
32362
32363         init.sh: suggest to use skip_ and fail_ functions in comments
32364         * tests/init.sh: Add a sentence.
32365
32366 2009-11-25  Bruno Haible  <bruno@clisp.org>
32367
32368         init.sh: add documentation in comments
32369         * tests/init.sh: Add some developer and user documentation.
32370
32371 2009-11-26  Jim Meyering  <meyering@redhat.com>
32372
32373         init.sh: accommodate even those who specify bogus srcdir manually
32374         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32375         configure-time tests to be sanitized, so that there is no need to
32376         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32377         (with no double quotes) suffices.  However, since tests may be
32378         invoked manually, and since you may explicitly set srcdir to the
32379         name of a directory containing spaces, do quote its uses here.
32380         * tests/test-pread.sh: Likewise.
32381         Suggested by Bruno Haible.
32382
32383         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32384         * tests/test-pread.sh: Write no data into the pipe, because
32385         test-pread actually reads none.  This avoids a diagnostic,
32386         "bash: echo: write error: Broken pipe", that arises in the unusual
32387         event something is ignoring SIGPIPE, and might be interpreted
32388         as some sort of failure.  Reported by Bruno Haible.
32389
32390 2009-11-25  Jim Meyering  <meyering@redhat.com>
32391
32392         test-pread: cover failure with ESPIPE and EINVAL
32393         * tests/test-pread.c (main): Test for failure, too.
32394         * tests/test-pread.sh: Invoke with stdin on a pipe.
32395         Suggested by Eric Blake.
32396
32397         pread: improvement and fix
32398         * modules/pread (Depends-on): Depend on lseek, for portability to
32399         e.g., mingw.  Suggested by Eric Blake.
32400         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32401
32402         unistd.in.h: correct declaration of pread
32403         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32404         Reported by Richard W.M. Jones.
32405
32406         test-pread.sh: distribute the test script
32407         * modules/pread-tests (Files): Include test-pread.sh.
32408
32409         test-pread.sh: clean up
32410         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32411         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32412         That is unnecessary, since it's always ".".
32413         Suggestion from Eric Blake.
32414
32415         test-pread.sh: make executable
32416         * tests/test-pread.sh: Set executable bit.
32417         Reported by Eric Blake.
32418
32419         correct typo in test-pread.sh
32420         * tests/test-pread.sh: Add #! line.
32421
32422         test pread
32423         * tests/test-pread.c: New file.
32424         * tests/test-pread.sh: Likewise.
32425         * modules/pread-tests: Likewise.
32426
32427         pread: new module
32428         * modules/pread: New file.
32429         * lib/unistd.in.h (pread): Define/declare.
32430         * lib/pread.c (pread): New file.
32431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32432         * modules/unistd (Makefile.am): Substitute witnesses.
32433         * doc/posix-functions/pread.texi (pread): Update.
32434         * MODULES.html.sh: Add pread.
32435
32436 2009-11-25  Jim Meyering  <meyering@redhat.com>
32437
32438         tests/init.sh: new file to be used via most *.sh tests
32439         * tests/init.sh: New file.
32440
32441 2009-11-25  Eric Blake  <ebb9@byu.net>
32442
32443         utimens: work around older Linux failure with symlinks
32444         * lib/utimens.c (lutimensat_works_really): New variable.
32445         (fdutimens, lutimens): Use it to manage kernels that support
32446         nanosecond times on files, but not on symlinks.
32447         Reported by OndÅ™ej Vašík.
32448
32449         utimes: fix configure grammar
32450         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32451
32452 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32453
32454         regex: Fix fastmap for multibyte character ranges.
32455         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32456         characters when a multibyte character range is included.
32457
32458 2009-11-22  Andy Wingo  <wingo@pobox.com>
32459
32460         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32461         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32462
32463 2009-11-24  Bruno Haible  <bruno@clisp.org>
32464
32465         doc: Most *_l functions exist in MacOS X 10.5.
32466         * doc/posix-functions/duplocale.texi: Update platforms list.
32467         * doc/posix-functions/freelocale.texi: Likewise.
32468         * doc/posix-functions/newlocale.texi: Likewise.
32469         * doc/posix-functions/uselocale.texi: Likewise.
32470         * doc/posix-functions/isalnum_l.texi: Likewise.
32471         * doc/posix-functions/isalpha_l.texi: Likewise.
32472         * doc/posix-functions/isblank_l.texi: Likewise.
32473         * doc/posix-functions/iscntrl_l.texi: Likewise.
32474         * doc/posix-functions/isdigit_l.texi: Likewise.
32475         * doc/posix-functions/isgraph_l.texi: Likewise.
32476         * doc/posix-functions/islower_l.texi: Likewise.
32477         * doc/posix-functions/isprint_l.texi: Likewise.
32478         * doc/posix-functions/ispunct_l.texi: Likewise.
32479         * doc/posix-functions/isspace_l.texi: Likewise.
32480         * doc/posix-functions/isupper_l.texi: Likewise.
32481         * doc/posix-functions/iswalnum_l.texi: Likewise.
32482         * doc/posix-functions/iswalpha_l.texi: Likewise.
32483         * doc/posix-functions/iswblank_l.texi: Likewise.
32484         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32485         * doc/posix-functions/iswctype_l.texi: Likewise.
32486         * doc/posix-functions/iswdigit_l.texi: Likewise.
32487         * doc/posix-functions/iswgraph_l.texi: Likewise.
32488         * doc/posix-functions/iswlower_l.texi: Likewise.
32489         * doc/posix-functions/iswprint_l.texi: Likewise.
32490         * doc/posix-functions/iswpunct_l.texi: Likewise.
32491         * doc/posix-functions/iswspace_l.texi: Likewise.
32492         * doc/posix-functions/iswupper_l.texi: Likewise.
32493         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32494         * doc/posix-functions/isxdigit_l.texi: Likewise.
32495         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32496         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32497         * doc/posix-functions/strcoll_l.texi: Likewise.
32498         * doc/posix-functions/strfmon_l.texi: Likewise.
32499         * doc/posix-functions/strftime_l.texi: Likewise.
32500         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32501         * doc/posix-functions/strxfrm_l.texi: Likewise.
32502         * doc/posix-functions/tolower_l.texi: Likewise.
32503         * doc/posix-functions/toupper_l.texi: Likewise.
32504         * doc/posix-functions/towctrans_l.texi: Likewise.
32505         * doc/posix-functions/towlower_l.texi: Likewise.
32506         * doc/posix-functions/towupper_l.texi: Likewise.
32507         * doc/posix-functions/wcscoll_l.texi: Likewise.
32508         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32509         * doc/posix-functions/wctrans_l.texi: Likewise.
32510         * doc/posix-functions/wctype_l.texi: Likewise.
32511         * doc/glibc-functions/strptime_l.texi: Likewise.
32512         * doc/glibc-functions/strtod_l.texi: Likewise.
32513         * doc/glibc-functions/strtof_l.texi: Likewise.
32514         * doc/glibc-functions/strtol_l.texi: Likewise.
32515         * doc/glibc-functions/strtold_l.texi: Likewise.
32516         * doc/glibc-functions/strtoll_l.texi: Likewise.
32517         * doc/glibc-functions/strtoul_l.texi: Likewise.
32518         * doc/glibc-functions/strtoull_l.texi: Likewise.
32519         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32520         * doc/glibc-functions/wcstod_l.texi: Likewise.
32521         * doc/glibc-functions/wcstof_l.texi: Likewise.
32522         * doc/glibc-functions/wcstol_l.texi: Likewise.
32523         * doc/glibc-functions/wcstold_l.texi: Likewise.
32524         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32525         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32526         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32527
32528 2009-11-24  Bruno Haible  <bruno@clisp.org>
32529
32530         duplocale: Fix logic bug.
32531         * lib/duplocale.c: Don't include <langinfo.h>.
32532         (_NL_LOCALE_NAME): Remove macro.
32533         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32534         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32535
32536 2009-11-23  Jim Meyering  <meyering@redhat.com>
32537
32538         test-update-copyright: don't hard-code /usr/bin/perl
32539         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32540         perl to print the current year.  Gilles Espinasse reported that
32541         the replaced use of perl was hard-coded as /usr/bin/perl.
32542
32543 2009-11-23  Bruno Haible  <bruno@clisp.org>
32544
32545         duplocale: Add support for glibc 2.3.x.
32546         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32547
32548 2009-11-22  Bruno Haible  <bruno@clisp.org>
32549
32550         vasnprintf: Tiny optimization.
32551         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32552         MacOS X.
32553
32554 2009-11-22  Bruno Haible  <bruno@clisp.org>
32555
32556         Tests for module 'duplocale'.
32557         * modules/duplocale-tests: New file.
32558         * tests/test-duplocale.c: New file.
32559
32560         New module 'duplocale'.
32561         * m4/duplocale.m4: New file.
32562         * lib/locale.in.h (duplocale): New declaration.
32563         * lib/duplocale.c: New file.
32564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32565         gl_LOCALE_H_DEFAULTS): New macros.
32566         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32567         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32568         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32569         REPLACE_DUPLOCALE.
32570         * modules/duplocale: New file.
32571         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32572
32573 2009-11-22  Bruno Haible  <bruno@clisp.org>
32574
32575         * modules/locale-tests (configure.ac): Test for newlocale function.
32576         * tests/test-locale.c: When the system has extended locale functions,
32577         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32578
32579         locale: Make locale_t available when possible.
32580         * lib/locale.in.h: Include <xlocale.h> when it exists.
32581         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32582         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32583         * modules/locale (Depends-on): Add extensions.
32584         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32585         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32586
32587 2009-11-22  Bruno Haible  <bruno@clisp.org>
32588
32589         Add comments.
32590         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32591         invocation.
32592         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32594         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32595
32596 2009-11-22  Bruno Haible  <bruno@clisp.org>
32597
32598         error: account for the possibility of freopen (stdout).
32599         * lib/error.c: Include <unistd.h>.
32600         (flush_stdout): New function, extracted from error and error_at_line.
32601         Determine stdout's fd dynamically.
32602         (error, error_at_line): Invoke flush_stdout.
32603         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32604         * modules/error (Depends-on): Add unistd.
32605
32606 2009-11-22  Bruno Haible  <bruno@clisp.org>
32607
32608         diffseq: Add comment.
32609         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32610
32611 2009-11-22  Jim Meyering  <meyering@redhat.com>
32612
32613         c-stack: avoid defining an unused static function
32614         * lib/c-stack.c (find_stack_direction): Do not define this function
32615         when it will not be used.
32616
32617         diffseq: avoid spurious gcc warnings
32618         * lib/diffseq.h (IF_LINT2): Define.
32619         (compareseq): Use it to initialize two members of "part".
32620         This avoids two used-uninitialized warnings.
32621
32622 2009-11-21  Jim Meyering  <meyering@redhat.com>
32623
32624         c-stack: avoid "ignoring return value of `write'" warning
32625         * lib/c-stack.c: Include "ignore-value.h".
32626         (die): Explicitly ignore each write return value.
32627         * modules/c-stack (Depends-on): Add ignore-value.
32628
32629 2009-11-21  Bruno Haible  <bruno@clisp.org>
32630
32631         diffseq: reduce scope of variable 'best'.
32632         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32633         variable, earlier used for two different purposes.
32634
32635 2009-11-21  Jim Meyering  <meyering@redhat.com>
32636
32637         diffseq: remove useless assignment to "best"
32638         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32639         assignment.  At that point "best" is already guaranteed to be zero.
32640
32641 2009-11-20  Eric Blake  <ebb9@byu.net>
32642
32643         build: mention ftp redirector in release announcements
32644         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32645         values that used to come from cfg.mk; mention FTP redirect URL.
32646         * build-aux/announce-gen: Mention the mirror list.
32647         Suggested by Karl Berry.
32648
32649         nanosleep: improve port to mingw
32650         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32652         LIB_NANOSLEEP, but only when needed.
32653         * modules/select (Link): Document LIBSOCKET.
32654         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32655         enough.
32656
32657         nanosleep: work around cygwin bug
32658         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32659         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32660         bug.
32661         (getnow): Delete, not needed.
32662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32663         LIB_CLOCK_GETTIME.
32664         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32665         clock-time, gettime.
32666         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32667         bug.
32668         * modules/nanosleep-tests: New test.
32669         * tests/test-nanosleep.c: New file.
32670
32671         sleep: work around cygwin bug
32672         * lib/sleep.c (rpl_sleep): Work around the bug.
32673         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32674         (gl_PREREQ_SLEEP): Delete unused macro.
32675         * modules/sleep (Depends-on): Add verify.
32676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32677         * modules/unistd (Makefile.am): Substitute witness.
32678         * lib/unistd.in.h (sleep): Update prototype.
32679         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32680         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32681         * modules/sleep-tests (Depends-on): Check for alarm.
32682
32683 2009-11-20  Jim Meyering  <meyering@redhat.com>
32684
32685         maint.mk: improve sc_prohibit_magic_number_exit
32686         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32687         so it does not match uses like System.exit(1).
32688         Add comments showing how to correct all offenders.
32689
32690 2009-11-19  Eric Blake  <ebb9@byu.net>
32691
32692         xalloc-die-tests: add missing library
32693         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32694
32695         test-xvasprintf: silence compiler warnings
32696         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32697         empty string from gcc.
32698
32699 2009-11-19  Jim Meyering  <meyering@redhat.com>
32700
32701         xfreopen: new module, from coreutils
32702         * modules/xfreopen: New module.
32703         * lib/xfreopen.c: New file.
32704         * lib/xfreopen.h: New file.
32705         * MODULES.html.sh (File stream based Input/Output"): Add it.
32706
32707 2009-11-19  Eric Blake  <ebb9@byu.net>
32708
32709         manywarnings: depend on warnings
32710         * modules/manywarnings (Depends-on): Add warnings.
32711
32712         build: avoid compiler warnings
32713         * lib/select.c (rpl_select): Delete unused variable.
32714         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32715
32716 2009-11-18  Eric Blake  <ebb9@byu.net>
32717
32718         tests: avoid false negative with --with-packager
32719         * tests/test-version-etc.sh: Discard packager information.
32720         * tests/test-argp-version-etc-1.sh: Likewise.
32721         Reported by Mike Frysinger.
32722
32723         utimens: fix regression on Solaris
32724         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32725         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32726         can only change fd timestamps via futimesat.  Instead, use an
32727         additional witness macro to avoid BSD bug.
32728         Reported by Jim Meyering.
32729
32730 2009-11-17  Eric Blake  <ebb9@byu.net>
32731
32732         usleep: use it to simplify tests
32733         * modules/stat-time-tests (Depends-on): Add usleep.
32734         (configure.ac): Drop usleep check.
32735         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32736         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32737         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32738         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32739         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32740         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32741         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32742         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32743         Likewise.
32744         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32745         * tests/test-lchown.h (nap): Likewise.
32746         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32747         * tests/test-stat-time.c (nap): Likewise.
32748         * tests/test-utimens-common.h (nap): Update comments.
32749
32750         usleep: new module
32751         * modules/usleep: New file.
32752         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32753         * lib/usleep.c (usleep): Likewise.
32754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32755         * modules/unistd (Makefile.am): Substitute witnesses.
32756         * lib/unistd.in.h (usleep): Add declaration.
32757         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32758         * MODULES.html.sh (Date and time): Likewise.
32759         * modules/usleep-tests (Depends-on): New test.
32760         * tests/test-usleep.c: New file.
32761
32762         chown: work around OpenBSD bug
32763         * lib/chown.c (rpl_chown): Work around the bug.
32764         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32765         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32766         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32767         * modules/chown (Depends-on): Add stdbool.
32768         * modules/lchown (Depends-on): Likewise.
32769         * doc/posix-functions/chown.texi (chown): Document the bug.
32770         * doc/posix-functions/lchown.texi (lchown): Likewise.
32771         * tests/test-lchown.h (test_chown): Relax test.
32772
32773         mkstemp: avoid conflict with C++ keyword template
32774         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32775         * lib/mkostemp.c (mkostemp): Likewise.
32776         * lib/mkostemps.c (mkostemps): Likewise.
32777         * lib/mkstemp.c (mkstemp): Likewise.
32778         * lib/mkstemps.c (mkstemps): Likewise.
32779
32780         xalloc-die-tests: optimize
32781         * tests/test-xalloc-die.sh: Reduce number of processes.
32782
32783 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32784
32785         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32786         patch from ludo@gnu.org (Ludovic Courtès).
32787
32788 2009-11-17  Jim Meyering  <meyering@redhat.com>
32789
32790         version-etc: use proper license string
32791         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32792         * modules/version-etc-fsf: Likewise.
32793
32794 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32795
32796         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32797         printed to stdout.  Deal with EOL differences.
32798
32799 2009-11-17  Eric Blake  <ebb9@byu.net>
32800
32801         unsetenv: work around Solaris bug
32802         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32803         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32804         Reported by Jim Meyering.
32805
32806         vasnprintf: avoid compiler warnings
32807         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32808         variables.
32809         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32810
32811 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32812
32813         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32814         settings since xalloc-die is no longer the self test,
32815         xalloc-die.sh is.
32816
32817 2009-11-17  Jim Meyering  <meyering@redhat.com>
32818
32819         test-xalloc-die.sh: make the code agree with the commit log
32820         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32821         at the end, just in case you happen to have a test-xalloc-die
32822         program in some other PATH directory.
32823
32824         test-xalloc-die.sh: fix a portability bug
32825         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32826         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32827         Otherwise, argv[0] (as often seen in diagnostics) would be too
32828         system-dependent, sometimes with, and sometimes without the leading "./".
32829
32830         version-etc-fsf: relax license to LGPLv3+
32831         * modules/version-etc-fsf (License): Relax license.
32832
32833 2009-11-16  Eric Blake  <ebb9@byu.net>
32834
32835         xalloc-die-tests: avoid printing null pointer
32836         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32837         shell script.
32838         * tests/test-xalloc-die.c (program_name): Declare.
32839         * tests/test-xalloc-die.sh (tmpfiles): New file.
32840
32841         setenv, unsetenv: work around various bugs
32842         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32843         (setenv) [HAVE_SETENV]: Work around bugs.
32844         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32846         for bugs.
32847         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32848         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32850         * modules/stdlib (Makefile.am): Update substitutions.
32851         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32852         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32853         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32854         * modules/setenv-tests: New test.
32855         * modules/unsetenv-tests: Likewise.
32856         * tests/test-setenv.c: New file.
32857         * tests/test-unsetenv.c: Likewise.
32858
32859 2009-11-16  Jim Meyering  <meyering@redhat.com>
32860
32861         version-etc: relax license to LGPLv3+
32862         * modules/version-etc (License): Relax license.
32863
32864         better AC_REQUIRE expanded-before-required-warning avoidance
32865         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32866         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32867         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32868         which is no longer needed.
32869
32870 2009-11-16  Eric Blake  <ebb9@byu.net>
32871
32872         test-freading: clean up temporary file
32873         * tests/test-freading.c (main): Remove file on success, and use
32874         ASSERT more liberally.
32875         Reported by Jim Meyering.
32876
32877 2009-11-16  Jim Meyering  <meyering@redhat.com>
32878
32879         avoid new AC_REQUIRE expanded-before-required warnings
32880         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32881         merely using it.
32882         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32883         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32884
32885 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32886
32887         * tests/test-xalloc-die.c: New file.
32888         * modules/xalloc-die-tests: New file.
32889         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32890         XFAIL_TESTS so it can be appended by modules.
32891
32892 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32893
32894         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32895         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32896
32897 2009-11-14  Eric Blake  <ebb9@byu.net>
32898
32899         fnmatch: avoid compiler warning
32900         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32901         to silence compiler warning about mismatch signedness in ?:.
32902         Reported by Robert Millan.
32903
32904         intprops: add double-inclusion guard
32905         * lib/intprops.h: Allow idempotent includes.
32906         Suggested by Bruce Korb.
32907
32908         openat: detect Solaris fchownat bug
32909         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32910         penalizing glibc chownat when only lchownat is broken.
32911         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32912         trailing slash bugs.
32913         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32914         * modules/openat-tests (Files): Include more files.
32915         (Depends-on): Add mgetgroups, sleep, stat-time.
32916         (configure.ac): Add additional checks.
32917         (Makefile.am): Build new test.
32918         * tests/test-fchownat.c: New file.
32919
32920         lchown: detect Solaris and FreeBSD bug
32921         * lib/lchown.c (rpl_lchown): Work around bug.
32922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32924         * modules/unistd (Makefile.am): Populate it.
32925         * lib/unistd.in.h (lchown): Update declaration.
32926         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32927         * modules/lchown-tests: New file.
32928         * tests/test-lchown.h (test_lchown): Likewise.
32929         * tests/test-lchown.c (main): Likewise.
32930
32931         chown: detect Solaris and FreeBSD bug
32932         * lib/chown.c (rpl_chown): Work around bug.
32933         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32934         (gl_PREREQ_CHOWN): Delete.
32935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32936         * modules/unistd (Makefile.am): Populate it.
32937         * lib/unistd.in.h (chown): Update declaration.
32938         * lib/lchown.c (chown): Update client.
32939         * modules/lchown (Depends-on): Add lstat.
32940         * doc/posix-functions/chown.texi (chown): Document the bug.
32941         * doc/posix-functions/getgroups.texi (getgroups): Document
32942         getgroups pitfall.
32943         * modules/chown-tests: New file.
32944         * tests/test-chown.h (test_chown): Likewise.
32945         * tests/test-chown.c (main): Likewise.
32946
32947 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32948
32949         gnulib-tool: correctly detect absence of m4 directories
32950         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32951
32952 2009-11-14  Jim Meyering  <meyering@redhat.com>
32953
32954         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32955         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32956
32957 2009-11-14  John W. Eaton  <jwe@gnu.org>
32958
32959         strftime.h: wrap funtion declaration in extern "C" block
32960         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32961
32962 2009-11-13  Eric Blake  <ebb9@byu.net>
32963
32964         getgroups: avoid compiler warning
32965         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32966
32967         getgroups: work around FreeBSD bug
32968         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32969         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32970         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32971         * tests/test-getgroups.c (main): Fix buffer overrun.
32972
32973         getgroups: avoid compilation failure
32974         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32975         * modules/getgroups (Depends-on): Add stdint.
32976
32977 2009-11-13  Jim Meyering  <meyering@redhat.com>
32978
32979         test-getgroups: avoid compilation failure
32980         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32981
32982 2009-11-13  Eric Blake  <ebb9@byu.net>
32983
32984         mgetgroups: new module, taken from coreutils
32985         * modules/mgetgroups: New file.
32986         * lib/mgetgroups.h: Likewise.
32987         * lib/mgetgroups.c (mgetgroups): Likewise.
32988         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32989         * MODULES.html.sh (Users and groups): Mention it.
32990
32991         getgroups: don't expose GETGROUPS_T to user
32992         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32993         an element at a time if GETGROUPS_T is wrong size.
32994         * lib/getugroups.h (getugroups): Change signature.
32995         * lib/unistd.in.h (getgroups): Likewise.
32996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32997         signature needs fixing.
32998         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32999         AC_TYPE_GETGROUPS.
33000         * modules/group-member (Depends-on): Add getgroups.
33001         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33002         (group_member): Rely on getgroups replacement.
33003         * lib/getugroups.c (getugroups): Use gid_t.
33004         * tests/test-getgroups.c (main): Likewise.
33005         * NEWS: Mention the signature change.
33006         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33007         problem with signature.
33008         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33009         GETGROUPS_T is still useful for setgroups.
33010
33011         getgroups, getugroups: provide stubs for mingw
33012         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33013         * lib/getugroups.c (getugroups): Likewise.
33014         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33015         function.  Modernize replacement scheme.
33016         (gl_PREREQ_GETGROUPS): Delete.
33017         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33018         * modules/getgroups (configure.ac): Declare witness.
33019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33020         * modules/unistd (Depends-on): Substitute witness.
33021         * lib/unistd.in.h (getgroups): Declare replacement.
33022
33023         getgroups: avoid calling exit
33024         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33025         drop xalloc.
33026         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33027         dependencies.
33028         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33029         exiting, in the rare case of malloc failure.
33030
33031         getgroups: fix logic error
33032         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33033         has more than 20 groups.
33034         * modules/getgroups-tests: New test.
33035         * tests/test-getgroups.c: New file.
33036
33037 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33038
33039         * tests/test-base64.c: Improve.
33040
33041 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33042
33043         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33044         Blake <ebb9@byu.net>.
33045
33046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33047
33048         * tests/test-xvasprintf.c: Add %s%s related checks.
33049
33050 2009-11-12  Eric Blake  <ebb9@byu.net>
33051
33052         version-etc: match standards.texi style
33053         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33054         and use <> only for URLs.
33055
33056 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33057
33058         fts: do not fail on a submount during traversal
33059         * lib/fts.c (fts_build): Read the stat info again after opening
33060         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33061         Original report at http://bugzilla.redhat.com/501848.
33062
33063 2009-11-12  Jim Meyering  <meyering@redhat.com>
33064
33065         bootstrap: sync from coreutils
33066         * build-aux/bootstrap (bootstrap_epilogue): New function.
33067         Use git_modules_config in one more place.  This make bootstrap's
33068         --gnulib-srcdir option more useful for testing.
33069
33070         bootstrap: generalize autoheader check
33071         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33072         AC_CONFIG_HEADERS.
33073
33074 2009-11-11  Eric Blake  <ebb9@byu.net>
33075
33076         mkfifoat: use new modules for Solaris and BSD bugs
33077         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33078         * lib/mkfifoat.c (mknodat): Split...
33079         * lib/mknodat.c (mknodat): ...into new file.
33080         * modules/mkfifoat (Files): Ship new file.
33081         (Depends-on): Add mkfifo, mknod.
33082         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33083         (Depends-on): Add symlink.
33084         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33085         redundant with test_mkfifo.h.
33086         (do_mkfifoat, do_mknodat): New helpers.
33087
33088         mknod: new module
33089         * modules/mknod: New file.
33090         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33091         * lib/mknod.c (mknod): Likewise.
33092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33093         defaults.
33094         * modules/sys_stat (Makefile.am): Substitute them.
33095         * lib/sys_stat.in.h (mknod): Declare replacement.
33096         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33097         Document it.
33098         * doc/posix-functions/mknod.texi (mknod): Likewise.
33099         * modules/mknod-tests: New test.
33100         * tests/test-mknod.c: Likewise.
33101
33102         mkfifo: new module
33103         * modules/mkfifo: New file.
33104         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33105         * lib/mkfifo.c (mkfifo): Likewise.
33106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33107         defaults.
33108         * modules/sys_stat (Makefile.am): Substitute them.
33109         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33111         Document it.
33112         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33113         * modules/mkfifo-tests: New test.
33114         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33115         from test-mkfifoat.c.
33116         * tests/test-mkfifo.c: New file.
33117
33118         readlink: detect FreeBSD bug
33119         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33120         slash on symlink.
33121         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33122         * tests/test-readlink.h (test_readlink): Enhance test.
33123
33124         symlink: detect FreeBSD bug
33125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33126         slash on symlink.
33127         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33128         * tests/test-symlink.h (test_symlink): Enhance test.
33129
33130 2009-11-10  Eric Blake  <ebb9@byu.net>
33131
33132         link: detect FreeBSD bug
33133         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33134         symlink.
33135         * doc/posix-functions/link.texi (link): Document the bug.
33136         * tests/test-link.h (test_link): Enhance test.
33137         * tests/test-linkat.c (main): Update caller.
33138
33139         unlink, remove: detect FreeBSD bug
33140         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33141         slash on symlink.
33142         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33143         * doc/posix-functions/remove.texi (remove): Likewise.
33144         * tests/test-unlink.h (test_unlink): Enhance test.
33145         * tests/test-remove.c (main): Likewise.
33146
33147 2009-11-09  Eric Blake  <ebb9@byu.net>
33148
33149         rename: detect FreeBSD bug
33150         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33151         slash on symlink.
33152         * modules/renameat-tests (Depends-on): Add filenamecat.
33153         * tests/test-rename.h (test_rename): Allow one more errno.
33154         * tests/test-renameat.c (main): Likewise.
33155         * doc/posix-functions/rename.texi (rename): Document the bug.
33156
33157         open: detect FreeBSD bug
33158         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33159         symlink.
33160         * doc/posix-functions/open.texi (open): Document the bug.
33161         * doc/posix-functions/utimes.texi (utimes): Likewise.
33162         * tests/test-open.h (test_open): Add parameters, and test symlink
33163         handling.
33164         * tests/test-open.c (main): Adjust caller.
33165         * tests/test-fcntl-safer.c (main): Likewise.
33166         * modules/open-tests (Depends-on): Add stdbool, symlink.
33167         * modules/fcntl-safer-tests (Depends-on): Likewise.
33168         * tests/test-openat.c (main): Add test-open tests.
33169
33170         stat: detect FreeBSD bug
33171         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33172         symlink.
33173         * doc/posix-functions/stat.texi (stat): Document the bug.
33174         * tests/test-stat.h (test_stat_func): Add argument.
33175         * tests/test-stat.c (main): Adjust caller.
33176         * tests/test-fstatat.c (main): Likewise.
33177         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33178         Reported by Jim Meyering.
33179
33180 2009-11-09  James Youngman  <jay@gnu.org>
33181
33182         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33183         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33184
33185 2009-11-08  Jim Meyering  <meyering@redhat.com>
33186
33187         utimens: remove invalid futimesat call
33188         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33189         It used the file descriptor of the target file as the DIR_FD
33190         parameter and NULL as the file name.  That caused failure with
33191         errno == EFAULT on FreeBSD-8.0-rc2
33192
33193 2009-11-07  Eric Blake  <ebb9@byu.net>
33194
33195         fflush, freadseek: use fseeko, not fseek
33196         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33197         (clear_ungetc_buffer): Avoid potential problems on large files.
33198         * lib/freadseek.c (freadseek): Likewise.
33199         * modules/freadseek (Depends-on): Add fseeko.
33200         * modules/fseek (configure.ac): Set a witness.
33201         * tests/test-fflush.c (main): Use fseeko.
33202         * tests/test-fpurge.c (fseek): Disable link warning.
33203         * tests/test-freadable.c (fseek): Likewise.
33204         * tests/test-freading.c (fseek): Likewise.
33205         * tests/test-fseeko.c (fseek): Likewise.
33206         * tests/test-ftell.c (fseek): Likewise.
33207         * tests/test-ftello.c (fseek): Likewise.
33208         * tests/test-fwritable.c (fseek): Likewise.
33209         * tests/test-fwriting.c (fseek): Likewise.
33210
33211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33212
33213         * modules/memchr (Depends-on): Drop getpagesize dependency.
33214
33215 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33216
33217         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33218         Reported by Ludovic Courtès.
33219         * build-aux/pmccabe2html: Improve example usage.
33220         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33221
33222 2009-11-06  Jim Meyering  <meyering@redhat.com>
33223
33224         do-release-commit-and-tag: New module.
33225         Automate the release-commit and tag process.
33226         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33227         * modules/do-release-commit-and-tag: New file.
33228         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33229
33230 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33231
33232         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33233         because test-select.c uses inet_pton.
33234
33235 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33236
33237         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33238         GETADDRINFO_LIB.  Bump serial number.
33239         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33240         Suggested by Eric Blake <ebb9@byu.net>.
33241
33242 2009-11-05  Eric Blake  <ebb9@byu.net>
33243
33244         strtod: detect darwin bug
33245         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33246         Reported by Leo Davis.
33247
33248         freopen-safer: new module
33249         * modules/freopen-safer: New module.
33250         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33251         * lib/freopen-safer.c (freopen_safer): New file.
33252         * lib/stdio-safer.h (freopen_safer): New declaration.
33253         * lib/stdio--.h (freopen): New override.
33254         * MODULES.html.sh (File stream based Input/Output): Mention it.
33255         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33256         freopen-safer module.
33257         * doc/posix-functions/stderr.texi (stderr): Likewise.
33258         * doc/posix-functions/stdin.texi (stdin): Likewise.
33259         * doc/posix-functions/stdout.texi (stdout): Likewise.
33260         * modules/freopen-safer-tests: New test.
33261         * tests/test-reopen-safer.c: New file.
33262
33263 2009-11-05  Jim Meyering  <meyering@redhat.com>
33264
33265         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33266         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33267
33268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33269
33270         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33271
33272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33273
33274         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33275
33276 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33277
33278         Fix link error.
33279         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33280         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33281
33282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33283
33284         * tests/test-func.c: Also test value of __func__.
33285
33286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33287
33288         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33289         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33290
33291 2009-11-05  Bruno Haible  <bruno@clisp.org>
33292
33293         Fix link error.
33294         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33295         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33296         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33297
33298 2009-11-05  Bruno Haible  <bruno@clisp.org>
33299
33300         Tests for module 'inet_pton'.
33301         * modules/inet_pton-tests: New file.
33302         * tests/test-inet_pton.c: New file.
33303
33304 2009-11-05  Bruno Haible  <bruno@clisp.org>
33305
33306         Tests for module 'inet_ntop'.
33307         * modules/inet_ntop-tests: New file.
33308         * tests/test-inet_ntop.c: New file.
33309
33310 2009-11-04  Eric Blake  <ebb9@byu.net>
33311
33312         stdlib-safer: wrap all mkstemp variants
33313         * modules/mkostemp (configure.ac): Set witness.
33314         * modules/mkostemps (configure.ac): Likewise.
33315         * modules/mkstemps (configure.ac): Likewise.
33316         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33317         (mkstemps_safer): Wrap more functions.
33318         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33319         wrapping.
33320         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33321         (mkstemps_safer): Implement the wrappers.
33322
33323         mkstemps, mkostemps: new modules
33324         * modules/mkostemps: New module.
33325         * modules/mkstemps: Likewise.
33326         * lib/mkostemps.c (mkostemps): New file.
33327         * lib/mkstemps.c (mkstemps): Likewise.
33328         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33329         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33331         * modules/stdlib (Makefile.am): Substitute them.
33332         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33333         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33334         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33335         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33336         * MODULES.html.sh (File system functions): Mention them.
33337
33338         tempname: resync from glibc
33339         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33340         same values for __GT_FILE as glibc.  Abort even when assertions
33341         are disabled.
33342         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33343         match its value otherwise.  Allow idempotent inclusion.
33344         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33345         * lib/mkostemp.c (mkostemp): Likewise.
33346         * lib/mkstemp.c (mkstemp): Likewise.
33347         * lib/tmpfile.c (tmpfile): Likewise.
33348         * NEWS: Document this.
33349
33350         utimens: fix use of futimens on older Linux
33351         * lib/utimens.c (fdutimens): Use updated, rather than original,
33352         timespec to avoid bug in older Linux kernel.
33353         Reported by Simon Josefsson.
33354
33355 2009-11-04  Bruno Haible  <bruno@clisp.org>
33356
33357         Make num_processors more flexible and consistent.
33358         * lib/nproc.h (enum nproc_query): New type.
33359         (num_processors): Add a 'query' argument.
33360         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33361         (num_processors): Add a 'query' argument. Test the value of the
33362         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33363         mingw, count the number of CPUs available for the current process.
33364         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33365         Check for sched_getaffinity and sched_getaffinity_np.
33366         * modules/nproc (Depends-on): Add c-ctype, extensions.
33367         * NEWS: Mention the change.
33368
33369 2009-11-03  Bruno Haible  <bruno@clisp.org>
33370
33371         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33372
33373 2009-11-03  Jim Meyering  <meyering@redhat.com>
33374
33375         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33376         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33377         if it is defined.
33378
33379 2009-11-02  Eric Blake  <ebb9@byu.net>
33380
33381         mktime, timegm: share common declaration
33382         * lib/mktime-internal.h: New file.
33383         * lib/mktime.c: Use it rather than open-coding a declaration.
33384         * lib/timegm.c: Likewise.
33385         * modules/mktime (Files): Ship it.
33386         * modules/timegm (Files): Likewise.
33387         Suggested by Bruno Haible.
33388
33389         test-update-copyright: update test to match script changes
33390         * tests/test-update-copyright.sh: Avoid hard-coding perl
33391         location.  Don't update *.bak created by earlier runs.
33392
33393 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33394             Simon Josefsson  <simon@josefsson.org>
33395             Bruno Haible  <bruno@clisp.org>
33396
33397         Fix link error on Solaris 8.
33398         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33399         also in libnsl. Define also INET_PTON_LIB.
33400         * modules/inet_pton (Link): New section.
33401
33402 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33403             Bruno Haible  <bruno@clisp.org>
33404
33405         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33406         * modules/inet_ntop (Link): New section.
33407         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33408
33409 2009-11-02  Eric Blake  <ebb9@byu.net>
33410
33411         maint: avoid compiler warnings in m4 macros
33412         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33414
33415 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33416
33417         * m4/pmccabe2html.m4: Remove file.
33418         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33419         function.  Change maintainer.
33420         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33421         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33422         Courtès).
33423
33424 2009-10-31  Eric Blake  <ebb9@byu.net>
33425
33426         fseeko: fix m4 regression
33427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33428         regression from 2009-10-27.
33429         Reported by Ralf Wildenhues.
33430
33431 2009-10-31  Jim Meyering  <meyering@redhat.com>
33432
33433         inttostr: aesthetics and improved (compile-time) safety
33434         Define inttype_is_signed rather than inttype_is_unsigned,
33435         since the sole use is via "#if inttype_is_signed".
33436         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33437         inttype_is_unsigned.
33438         * lib/offtostr.c (inttype_is_signed): Likewise.
33439         * lib/uinttostr.c (inttype_is_signed): Likewise.
33440         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33441         * lib/inttostr.c (inttostr): Use verify to cross-check the
33442         inttype_is_signed value and the signedness of the actual type.
33443         * modules/inttostr (Depends-on): Add verify.
33444
33445 2009-10-30  Eric Blake  <ebb9@byu.net>
33446
33447         build: avoid compiler warnings
33448         * lib/fchmodat.c (lchmod): Mark unused variables.
33449         * lib/getopt.c (_getopt_initialize): Likewise.
33450         * lib/mktime.c (__mktime_internal): Provide prototype.
33451         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33452         older gcc that do not understand #pragma GCC diagnostic.
33453         * lib/uinttostr.c (inttype_is_unsigned): Define.
33454         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33455
33456 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33457
33458         stat: fix compilation on AIX
33459         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33460         only see struct stat64.
33461
33462 2009-10-30  Eric Blake  <ebb9@byu.net>
33463
33464         exclude: make more robust
33465         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33466         rather than masking a coding bug.
33467         Suggested by Bruno Haible.
33468
33469 2009-10-30  Jim Meyering  <meyering@redhat.com>
33470
33471         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33472         Rather than putting #!/usr/bin/perl on the first line,
33473         start with a variant of what's recommended by "man perlrun" that
33474         invokes the first "perl" program from your shell's search path.
33475         * build-aux/gitlog-to-changelog: Replace #!... as above.
33476         Add a "Local Variables" perl mode setting.
33477         Prompted by a patch from Ludovic Courtès.
33478         Improved by Eric Blake.
33479         * build-aux/useless-if-before-free: Likewise.
33480         * build-aux/announce-gen: Likewise.
33481         * build-aux/update-copyright: Likewise.
33482
33483 2009-10-29  Eric Blake  <ebb9@byu.net>
33484
33485         filenamecat-lgpl: adjust clients
33486         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33487         filenamecat.
33488         * modules/renameat (Depends-on): Likewise.
33489
33490         filenamecat: split into filenamecat-lgpl
33491         * modules/filenamecat-lgpl: New module.
33492         * modules/filenamecat (Files): Move library-safe files into
33493         filenamecat-lgpl.
33494         (Depends-on): Add filenamecat-lgpl.
33495         (configure.ac): Declare witness.
33496         * lib/filenamecat.h (file_name_concat): Only declare when using
33497         GPL module.
33498         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33499         Move...
33500         * lib/filenamecat-lgpl.c: ...into new file.
33501         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33502         (gl_FILE_NAME_CONCAT): Use it.
33503         * MODULES.html.sh (File system functions): Mention new module.
33504
33505         argp: avoid memory leak
33506         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33507         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33508         base_name, since the latter malloc()s and can call exit().
33509         Leak introduced 2006-07-03.
33510
33511         dirname-lgpl: adjust clients that don't need full dirname
33512         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33513         * modules/filenamecat (Depends-on): Likewise.
33514         * modules/linkat (Depends-on): Likewise.
33515         * modules/mkancesdirs (Depends-on): Likewise.
33516         * modules/mkdir (Depends-on): Likewise.
33517         * modules/openat (Depends-on): Likewise.
33518         * modules/savewd (Depends-on): Likewise.
33519         * modules/rename (Depends-on): Likewise.
33520         (License): Relax license.
33521         * modules/mkdir-tests (Depends-on): Drop progname.
33522         (Makefile.am): Delete unneeded LDADD.
33523         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33524
33525         dirname: split into dirname-lgpl
33526         * modules/dirname-lgpl: New module.
33527         * modules/dirname (Files): Move library-safe files into
33528         dirname-lgpl.
33529         (Depends-on): Add dirname-lgpl.
33530         (configure.ac): Declare witness.
33531         * modules/double-slash-root (License): Relax license.
33532         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33533         module.
33534         * lib/dirname.c (dir_len, mdir_name): Move...
33535         * lib/dirname-lgpl.c: ...into new file.
33536         * lib/basename.c (last_component, base_len): Move...
33537         * lib/basename-lgpl.c: ...into new file.
33538         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33539         (gl_DIRNAME): Use it.
33540         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33541         Mention new module.
33542         * modules/dirname-tests (Depends-on): Add progname.
33543         * tests/test-dirname.c (program_name): Delete.
33544
33545         mkdir: make safe for libraries
33546         * modules/mkdir (Depends-on): Drop xalloc.
33547         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33548         exit.
33549
33550         tests: avoid some compiler warnings
33551         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33552         literals.
33553         * tests/test-memchr.c (main): Avoid type mismatch.
33554         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33555         * tests/test-base64.c (main): Likewise.
33556         * tests/test-getdelim.c (main): Likewise.
33557         * tests/test-gethostname.c (main): Likewise.
33558         * tests/test-getline.c (main): Likewise.
33559         * tests/test-netinet_in.c (main): Likewise.
33560         * tests/test-select.c (open_server_socket, main): Likewise.
33561         * tests/test-select-stdin.c (main): Likewise.
33562         * tests/test-sockets.c (main): Likewise.
33563         * tests/test-strsignal.c (main): Likewise.
33564         * tests/test-sys_select.c (main): Likewise.
33565         * tests/test-sys_socket.c (main): Likewise.
33566         * tests/test-u64.c (main): Likewise.
33567         * tests/test-xfprintf-posix.c (main): Likewise.
33568         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33569
33570         sockets: avoid compiler warning
33571         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33572
33573         maint: detect usage(1) and other suspicious exits
33574         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33575
33576 2009-10-29  Jim Meyering  <meyering@redhat.com>
33577
33578         timespec: long-to-int truncation could make timespec_cmp malfunction
33579         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33580         a multiple of 2^32 nanoseconds as no difference.
33581
33582 2009-10-28  Jim Meyering  <meyering@redhat.com>
33583
33584         fprintftime: wrap macro code argument in "do {...} while(0)"
33585         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33586         cpy macro must be a statement that can be followed by a semicolon.
33587         Now that the else clause contains a comment and is hence longer
33588         than one line, I require curly braces.  That in turn requires
33589         that we wrap this code block in the standard do...while(0).
33590
33591         fprintftime: remove stray semicolon from previous change
33592         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33593
33594         fprintftime: avoid a warning about ignored fwrite return value
33595         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33596         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33597         that is unsafe.
33598         * modules/fprintftime (Depends-on): Add ignore-value.
33599
33600         exclude: avoid an unwarranted warning
33601         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33602
33603 2009-10-27  Eric Blake  <ebb9@byu.net>
33604
33605         fseek: avoid compilation failure when fflush is replaced
33606         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33607         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33608         module is in use.
33609         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33610         module is not in use; since REPLACE_FSEEK worked otherwise.
33611         (GNULIB_FTELLO): Likewise for ftell.
33612         Reported by Ian Beckwith and others.
33613
33614 2009-10-27  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33617         Reported by Jim Meyering.
33618
33619 2009-10-27  Jim Meyering  <jim@meyering.net>
33620             Bruno Haible  <bruno@clisp.org>
33621
33622         Avoid warning despite dropping the return value of fwrite.
33623         * lib/unicodeio.c: Include ignore-value.h.
33624         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33625         * modules/unicodeio (Depends-on): Add ignore-value.
33626
33627 2009-10-26  Eric Blake  <ebb9@byu.net>
33628
33629         areadlinkat: fix fallback path
33630         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33631         pointer and zero.
33632
33633 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33634
33635         Use a better IO block size for modern systems
33636         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33637         * lib/md2.c: Likewise.
33638         * lib/md4.c: Likewise.
33639         * lib/md5.c: Likewise.
33640         * lib/sha1.c: Likewise.
33641         * lib/sha256.c: Likewise.
33642         * lib/sha512.c: Likewise.
33643
33644 2009-10-22  Eric Blake  <ebb9@byu.net>
33645
33646         tests: avoid several compiler warnings
33647         * tests/test-getcwd.c (main): Avoid buffer underflow.
33648         * tests/test-getdate.c (main): String literals are not safe with
33649         putenv, so use setenv.  Declare unused argument.
33650         * modules/getdate-tests (Depends-on): Add setenv.
33651         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33652         problems with string literals in char *.
33653         * tests/test-hash.c (main): Avoid shadowing declaration.
33654         (insert_new): Treat string literals as char const *.
33655         * tests/test-getopt.h (test_getopt): Likewise.
33656         (getopt_loop): Alter types to minimize casting elsewhere.
33657         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33658         (test_getopt_long_posix): Likewise.
33659         (do_getopt_long): Add wrapper to minimize casting.
33660         * tests/test-atexit.c (clear_temp_file): Use void.
33661         * tests/test-areadlink-with-size.c (main): Declare unused
33662         arguments.
33663         * tests/test-areadlink.c (main): Likewise.
33664         * tests/test-areadlinkat-with-size.c (main): Likewise.
33665         * tests/test-areadlinkat.c (main): Likewise.
33666         * tests/test-canonicalize-lgpl.c (main): Likewise.
33667         * tests/test-canonicalize.c (main): Likewise.
33668         * tests/test-dirent-safer.c (main): Likewise.
33669         * tests/test-dirname.c (main): Likewise.
33670         * tests/test-dup2.c (main): Likewise.
33671         * tests/test-fchdir.c (main): Likewise.
33672         * tests/test-fcntl-h.c (main): Likewise.
33673         * tests/test-fcntl-safer.c (main): Likewise.
33674         * tests/test-fdopendir.c (main): Likewise.
33675         * tests/test-fdutimensat.c (main): Likewise.
33676         * tests/test-fflush.c (main): Likewise.
33677         * tests/test-filenamecat.c (main): Likewise.
33678         * tests/test-filevercmp.c (main): Likewise.
33679         * tests/test-fopen-safer.c (main): Likewise.
33680         * tests/test-fopen.c (main): Likewise.
33681         * tests/test-fpending.c (main): Likewise.
33682         * tests/test-fpurge.c (main): Likewise.
33683         * tests/test-freading.c (main): Likewise.
33684         * tests/test-fstatat.c (main): Likewise.
33685         * tests/test-fsync.c (main): Likewise.
33686         * tests/test-futimens.c (main): Likewise.
33687         * tests/test-getndelim2.c (main): Likewise.
33688         * tests/test-gettimeofday.c (main): Likewise.
33689         * tests/test-getopt.c (main): Likewise.
33690         * tests/test-i-ring.c (main): Likewise.
33691         * tests/test-inttypes.c (main): Likewise.
33692         * tests/test-link.c (main): Likewise.
33693         * tests/test-lstat.c (main): Likewise.
33694         * tests/test-math.c (main): Likewise.
33695         * tests/test-md5.c (main): Likewise.
33696         * tests/test-memchr2.c (main): Likewise.
33697         * tests/test-memrchr.c (main): Likewise.
33698         * tests/test-mkdir.c (main): Likewise.
33699         * tests/test-mkdirat.c (main): Likewise.
33700         * tests/test-mkfifoat.c (main): Likewise.
33701         * tests/test-open.c (main): Likewise.
33702         * tests/test-openat-safer.c (main): Likewise.
33703         * tests/test-openat.c (main): Likewise.
33704         * tests/test-quotearg.c (main): Likewise.
33705         * tests/test-rawmemchr.c (main): Likewise.
33706         * tests/test-readlink.c (main): Likewise.
33707         * tests/test-remove.c (main): Likewise.
33708         * tests/test-rename.c (main): Likewise.
33709         * tests/test-renameat.c (main): Likewise.
33710         * tests/test-rmdir.c (main): Likewise.
33711         * tests/test-sha1.c (main): Likewise.
33712         * tests/test-signal.c (main): Likewise.
33713         * tests/test-sigaction.c (main): Likewise.
33714         * tests/test-stat.c (main): Likewise.
33715         * tests/test-stat-time.c (main): Likewise.
33716         * tests/test-stddef.c (main): Likewise.
33717         * tests/test-stdint.c (main): Likewise.
33718         * tests/test-stdio.c (main): Likewise.
33719         * tests/test-stdlib.c (main): Likewise.
33720         * tests/test-strchrnul.c (main): Likewise.
33721         * tests/test-strerror.c (main): Likewise.
33722         * tests/test-string.c (main): Likewise.
33723         * tests/test-strtod.c (main): Likewise.
33724         * tests/test-strverscmp.c (main): Likewise.
33725         * tests/test-symlink.c (main): Likewise.
33726         * tests/test-symlinkat.c (main): Likewise.
33727         * tests/test-sys_stat.c (main): Likewise.
33728         * tests/test-sys_time.c (main): Likewise.
33729         * tests/test-time.c (main): Likewise.
33730         * tests/test-unistd.c (main): Likewise.
33731         * tests/test-unlink.c (main): Likewise.
33732         * tests/test-unlinkat.c (main): Likewise.
33733         * tests/test-utimens.c (main): Likewise.
33734         * tests/test-utimensat.c (main): Likewise.
33735         * tests/test-version-etc.c (main): Likewise.
33736         * tests/test-wchar.c (main): Likewise.
33737         * tests/test-wctype.c (main): Likewise.
33738         * tests/test-xprintf-posix.c (main): Likewise.
33739         * tests/test-posixtm.c (main): Likewise.
33740         (STREQ): Delete unused macro.
33741         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33742         shadowed variables.
33743         * tests/test-memchr.c (main): Likewise.
33744
33745 2009-10-21  Eric Blake  <ebb9@byu.net>
33746
33747         areadlinkat: avoid failure on older glibc
33748         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33749         rather than mis-comparing 0 against FUNC_RESULT of char*.
33750
33751 2009-10-21  Bruno Haible  <bruno@clisp.org>
33752
33753         * modules/stpncpy (License): Relicense under LGPLv2+.
33754         Reported by David Lutterkort <lutter@redhat.com>.
33755
33756 2009-10-20  Eric Blake  <ebb9@byu.net>
33757
33758         utimensat: work around Solaris 9 bug
33759         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33760         has trailing slash bugs.
33761         * tests/test-lutimens.h (test_lutimens): Enhance test.
33762         * tests/test-utimens.h (test_utimens): Likewise.
33763         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33764         * doc/posix-functions/utimes.texi (utimes): Likewise.
33765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33766         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33767         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33768         * doc/posix-functions/futimens.texi (futimens): Likewise.
33769
33770         fdutimensat: new module
33771         * modules/fdutimensat: New file.
33772         * lib/fdutimensat.c (fdutimensat): Likewise.
33773         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33774         * MODULES.html.sh (File system functions): Mention module.
33775         * modules/fdutimensat-tests: New test.
33776         * tests/test-fdutimensat.c: Likewise.
33777
33778         doc: regenerate INSTALL
33779         * doc/INSTALL: Reflect recent autoconf update.
33780         * doc/INSTALL.ISO: Likewise.
33781         * doc/INSTALL.UTF-8: Likewise.
33782
33783 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33784
33785         acl: warn if ACL support is not detected
33786         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33787
33788 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33789
33790         * lib/nproc.h: Add extern "C" block for C++.
33791
33792 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33793             Bruno Haible  <bruno@clisp.org>
33794
33795         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33796         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33797         * doc/posix-functions/isalpha.texi: Likewise.
33798         * doc/posix-functions/isblank.texi: Likewise.
33799         * doc/posix-functions/iscntrl.texi: Likewise.
33800         * doc/posix-functions/isdigit.texi: Likewise.
33801         * doc/posix-functions/isgraph.texi: Likewise.
33802         * doc/posix-functions/islower.texi: Likewise.
33803         * doc/posix-functions/isprint.texi: Likewise.
33804         * doc/posix-functions/ispunct.texi: Likewise.
33805         * doc/posix-functions/isspace.texi: Likewise.
33806         * doc/posix-functions/isupper.texi: Likewise.
33807         * doc/posix-functions/isxdigit.texi: Likewise.
33808
33809 2009-10-18  Bruno Haible  <bruno@clisp.org>
33810
33811         Tests for module 'isblank'.
33812         * modules/isblank-tests: New file.
33813         * tests/test-isblank.c: New file.
33814
33815         New module 'isblank'.
33816         * lib/isblank.c: New file.
33817         * m4/isblank.m4: New file.
33818         * modules/isblank: New file.
33819         * doc/posix-functions/isblank.texi: Mention the new module.
33820
33821 2009-10-18  Bruno Haible  <bruno@clisp.org>
33822
33823         New module 'ctype'.
33824         * lib/ctype.in.h: New file.
33825         * m4/ctype.m4: New file.
33826         * modules/ctype: New file.
33827         * doc/posix-headers/ctype.texi: Mention the new module.
33828
33829 2009-10-18  Jim Meyering  <meyering@redhat.com>
33830
33831         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33832         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33833         right after its initialization, rather than farther down.
33834         Keeping these in close proximity makes it easier to ensure
33835         that each such variable is initialized.  E.g.,
33836
33837             LIB_CLOCK_GETTIME=
33838             AC_SUBST([LIB_CLOCK_GETTIME])
33839
33840         This change also increments these serial numbers.
33841         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33842         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33844
33845 2009-10-18  Bruno Haible  <bruno@clisp.org>
33846
33847         Don't let environment variables perturb build.
33848         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33849         (gl_PREREQ_GETHRXTIME): ... not here.
33850
33851 2009-10-18  Bruno Haible  <bruno@clisp.org>
33852
33853         Avoid symlink attack in localcharset module.
33854         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33855         (O_NOFOLLOW): Define fallback.
33856         (get_charset_aliases): Don't open the file if it is a symbolic link.
33857         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33858         gl_FCNTL_H.
33859         (gl_FCNTL_H): Require it.
33860         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33861         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33862         Reported by Fergal Glynn <fglynn@veracode.com>.
33863
33864 2009-10-18  Bruno Haible  <bruno@clisp.org>
33865
33866         Implement nproc for mingw.
33867         * lib/nproc.c: Include <windows.h>
33868         (num_processors): On native Windows platforms, try GetSystemInfo.
33869
33870 2009-10-18  Bruno Haible  <bruno@clisp.org>
33871
33872         Implement nproc for IRIX.
33873         * lib/nproc.c: Include <sys/sysmp.h>.
33874         (num_processors): On IRIX systems, try sysmp.
33875         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33876
33877 2009-10-18  Bruno Haible  <bruno@clisp.org>
33878
33879         Implement nproc for HP-UX.
33880         * lib/nproc.c: Include <sys/pstat.h>
33881         (num_processors): On HP-UX systems, try pstat_getdynamic.
33882         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33883         pstat_getdynamic.
33884
33885 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33886             Bruno Haible  <bruno@clisp.org>
33887
33888         Implement nproc for NetBSD, OpenBSD.
33889         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33890         (ARRAY_SIZE): New macro.
33891         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33892         * m4/nproc.m4: New file.
33893         * modules/nproc (Files): Add m4/nproc.m4.
33894         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33895         (Makefile.am): Instead, augment lib_SOURCES.
33896
33897 2009-10-18  Bruno Haible  <bruno@clisp.org>
33898
33899         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33900         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33901         sys/param.h.
33902
33903 2009-10-16  Eric Blake  <ebb9@byu.net>
33904
33905         utimensat: new module
33906         * modules/utimensat: New file.
33907         * lib/utimensat.c (utimensat): Likewise.
33908         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33909         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33910         so we can work around Linux bugs.
33911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33912         * modules/sys_stat (Makefile.am): Substitute them.
33913         * lib/sys_stat.in.h (utimensat): Declare it.
33914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33915         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33916         * modules/utimensat-tests: New test.
33917         * tests/test-utimensat.c: Likewise.
33918
33919         utimens: let lutimens work on non-symlinks
33920         * lib/utimens.c (lutimens): Fall back to utimens rather than
33921         failing with ENOSYS, when file is not a symlink.
33922         (utimens): Reduce redirection.
33923         * tests/test-lutimens.h (test_lutimens): Update test to cover
33924         non-symlinks.
33925         * tests/test-utimens.h (test_utimens): Update test to cover
33926         symlinks.
33927         * tests/test-utimens.c (main): Update caller.
33928
33929         utimens: cache whether utimensat syscall works
33930         * lib/utimens.c (utimensat_works_really): New cache variable.
33931         (fdutimens, lutimens): Use it to avoid failing syscall.
33932
33933         test-stat-time, test-utimens: improve portability
33934         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33935         ext4 on alpha, and for cygwin.
33936         * tests/test-utimens-common.h: New file.
33937         (nap): Factor delays into single function.
33938         * tests/test-lutimens.h (test_lutimens): Use new header.
33939         * tests/test-futimens.h (test_futimens): Likewise.
33940         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33941         timestamps to occur from same machine, as was done previously for
33942         test_utimens.
33943         * modules/utimens-tests (Files): Ship new file.
33944         * modules/futimens-tests (Files): Likewise.
33945         Reported in part by Jim Meyering.
33946
33947         sys_stat: sort replacement declarations
33948         * lib/sys_stat.in.h: Sort declarations.
33949         * lib/futimens.c (futimens): Fix typo.
33950
33951 2009-10-15  Jim Meyering  <meyering@redhat.com>
33952
33953         don't let environment settings perturb build
33954         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33955         could cause a configure-time and/or build-time malfunction.
33956         Typically, a configure-time function-in-library test is performed
33957         via code like this:
33958
33959           LIB_VAR=
33960           AC_SUBST([LIB_VAR])
33961           prefix_saved_LIBS=$LIBS
33962             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33963                        [test "$ac_cv_search_FUNC" = "none required" ||
33964                         LIB_VAR=$ac_cv_search_FUNC])
33965           LIBS=$prefix_saved_LIBS
33966
33967         However, in each of the files affected by this change, the LIB_VAR=
33968         initialization was omitted.  Thus, when set in the environment, its
33969         value would propagate into generated Makefiles when FUNC is not found
33970         in LIB_NAME.
33971         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33972         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33974
33975 2009-10-14  Eric Blake  <ebb9@byu.net>
33976
33977         fchdir: avoid infinite recursion in mingw
33978         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33979         recursing.
33980
33981         test-stat-time: port to mingw
33982         * tests/test-stat-time.c (force_unlink): Return a value.
33983         (test_ctime) [W32]: Fix compilation error.
33984         (nap): Don't call usleep with too large an argument.  Use
33985         force_unlink.
33986         * doc/pastposix-functions/usleep.texi (usleep): Document the
33987         portability issue.
33988
33989 2009-10-13  Jim Meyering  <meyering@redhat.com>
33990
33991         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33992         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33993         * modules/pipe-filter-ii: Likewise.
33994         * modules/sys_socket-tests: Likewise.
33995         * modules/tsearch-tests: Likewise.
33996         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33997         (check): Depend on it.
33998
33999 2009-10-12  Eric Blake  <ebb9@byu.net>
34000
34001         utimens-tests: port to NFS file systems
34002         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34003         comparisons to avoid spurious failures from timestamp drift
34004         between NFS machines.
34005
34006 2009-10-12  Eric Blake  <ebb9@byu.net>
34007
34008         stat-time-tests: minor cleanups
34009         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34010         * tests/test-stat-time.c (nap): Separate assignment from call.
34011         Suggested by Paolo Bonzini and Bruno Haible.
34012
34013         sys_stat: guarantee struct timespec
34014         * lib/sys_stat.in.h (includes): Always include <time.h>
34015         * modules/sys_stat (Depends-on): Add time.
34016         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34017         mode_t permission values.
34018         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34019         get at subsecond timestamps.
34020
34021 2009-10-10  Eric Blake  <ebb9@byu.net>
34022
34023         futimens: new module
34024         * modules/futimens: New file.
34025         * lib/futimens.c (futimens): Likewise.
34026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34027         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34028         we can work around Linux bugs.
34029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34030         * modules/sys_stat (Makefile.am): Substitute them.
34031         * lib/sys_stat.in.h (futimens): Declare it.
34032         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34033         * doc/posix-functions/futimens.texi (futimens): Likewise.
34034         * modules/futimens-tests: New test.
34035         * tests/test-futimens.c: Likewise.
34036
34037         utimens: introduce fdutimens
34038         * lib/utimens.h (fdutimens): New prototype.
34039         * lib/utimens.c (gl_futimens): Move guts...
34040         (fdutimens): ...to new interface.
34041         * tests/test-utimens.c (do_fdutimens): Use it.
34042
34043         utimens: add UTIME_NOW and UTIME_OMIT support
34044         * lib/utimens.c (validate_timespec, update_timespec): New helper
34045         functions.
34046         (gl_futimens, lutimens): Use them.
34047         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34048         stdbool, sys_stat.
34049         (Link): Mention resulting library dependency.
34050         * modules/utimecmp (Link): Likewise.
34051         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34052         (Makefile.am): Pick up library dependency.
34053         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34054         definition.
34055         * tests/test-sys_stat.c: Test the definitions.
34056         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34057         * NEWS: Document library dependency.
34058
34059         utimecmp: support symlink timestamps
34060         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34061         hashing when possible.  Use pathconf when available.
34062         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34063         * modules/utimecmp (Depends-on): Add lstat.
34064
34065         utimens: add lutimens interface
34066         * lib/utimens.c (lutimens): New function.
34067         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34068         * lib/utimens.h (lutimens): Declare new interface.
34069         * tests/test-utimens.c (main): Enhance test.
34070         * tests/test-lutimens.h (test_lutimens): New file.
34071         * modules/utimens-tests (Files): Distribute it.
34072         (Depends-on): Add symlink.
34073         (configure.ac): Check for usleep.
34074
34075         utimens: validate futimens usage
34076         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34077         fewer syscalls on failure later on.  Avoid compiler warning on
34078         mingw.
34079         * modules/utimens (Depends-on): Add dup2.
34080
34081         utimens: add test
34082         * modules/utimens-tests: New test.
34083         * tests/test-utimens.h: New file.
34084         * tests/test-futimens.h: Likewise.
34085         * tests/test-utimens.c: Likewise.
34086
34087         doc: mention timestamp portability issues
34088         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34089         instead.
34090         * doc/posix-functions/utime.texi (utime): Likewise.
34091         * doc/posix-functions/utimes.texi (utimes): Likewise.
34092         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34093         instead.
34094         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34095         module.
34096         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34097         Mention weakness with symlink timestamps.
34098         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34099         to utimensat/futimens instead.
34100         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34101
34102         test-dup2: enhance test
34103         * tests/test-dup2.c (main): Also check AT_FDCWD.
34104
34105         test-stat-time: avoid more spurious failures
34106         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34107         xfs; and avoid race if the two timestamps cross quantization edge.
34108
34109         relocatable: prefer 'file system' over 'filesystem'
34110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34111         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34112         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34113         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34114         * lib/relocatable.c (compute_curr_prefix): Likewise.
34115
34116 2009-10-10  Jim Meyering  <meyering@redhat.com>
34117
34118         stat-time-tests: check for the usleep function
34119         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34120
34121 2009-10-10  Bruno Haible  <bruno@clisp.org>
34122
34123         * modules/xnanosleep: Put the Link section after the Include section.
34124
34125 2009-10-09  Eric Blake  <ebb9@byu.net>
34126
34127         dup2: work around FreeBSD 6.1 bug
34128         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34129         * doc/posix-functions/dup2.texi (dup2): Document it.
34130         Reported by Nelson H. F. Beebe and Jim Meyering.
34131
34132         test-stat-time: port to buggy NFS clients
34133         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34134         (test_ctime): Also skip test if mtime and ctime are skewed.
34135
34136         maint: prefer 'file system' over 'filesystem'
34137         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34138         * doc/posix-functions/lstat.texi (lstat): Likewise.
34139         * lib/file-has-acl.c (file_has_acl): Likewise.
34140         * lib/fwriteerror.c [TEST]: Likewise.
34141         * tests/test-areadlink.h (test_areadlink): Likewise.
34142         * tests/test-areadlinkat-with-size.c (main): Likewise.
34143         * tests/test-areadlinkat.c (main): Likewise.
34144         * tests/test-canonicalize-lgpl.c (main): Likewise.
34145         * tests/test-canonicalize.c (main): Likewise.
34146         * tests/test-fstatat.c (main): Likewise.
34147         * tests/test-linkat.c (main): Likewise.
34148         * tests/test-lstat.h (test_lstat_func): Likewise.
34149         * tests/test-mkdir.h (test_mkdir): Likewise.
34150         * tests/test-readlink.h (test_readlink): Likewise.
34151         * tests/test-remove.c (main): Likewise.
34152         * tests/test-rename.h (test_rename): Likewise.
34153         * tests/test-renameat.c (main): Likewise.
34154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34155         * tests/test-symlink.h (test_symlink): Likewise.
34156         * tests/test-symlinkat.c (main): Likewise.
34157         * tests/test-unlink.h (test_unlink_func): Likewise.
34158         * tests/test-unlinkat.c (main): Likewise.
34159
34160         maint: make realtime library usage explicit
34161         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34162         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34163         * modules/settime (Link): Likewise.
34164         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34165
34166         test-stat-time: speed up execution
34167         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34168         warning on mingw.
34169         (nap): New helper function.
34170         (prepare_test): Use it to reduce sleep time.
34171         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34172         execution.
34173         * modules/stat-time-tests (configure.ac): Check for usleep.
34174
34175 2009-10-09  Jim Meyering  <meyering@redhat.com>
34176
34177         selinux-h: always use getfilecon wrappers
34178         * lib/getfilecon.c: New file.
34179         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34180         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34181         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34182         (fgetfilecon): Provide a stub.
34183         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34184         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34185         file unconditionally.
34186         When <selinux/selinux.h> is found, arrange to use wrappers.
34187         * modules/selinux-h (Files): Add getfilecon.c.
34188         (Makefile.am): Substitute include-next-related bits
34189         into the now-always-generated selinux/selinux.h file.
34190         * doc/glibc-functions/lgetfilecon.texi: New file.
34191         * doc/glibc-functions/fgetfilecon.texi: New file.
34192         * doc/glibc-functions/getfilecon.texi: New file.
34193         * doc/glibc-functions/getfilecon-desc.texi: New file.
34194         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34195         which to pull in the new files.
34196         * MODULES.html.sh (Misc): Add selinux-h.
34197
34198 2009-10-08  Jim Meyering  <meyering@redhat.com>
34199
34200         unistd: fix comment typo
34201         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34202
34203 2009-10-08  Eric Blake  <ebb9@byu.net>
34204
34205         areadlink: use SIZE_MAX consistently
34206         * modules/areadlink (Depends-on): Add stdint.
34207         * modules/areadlink-with-size (Depends-on): Likewise.
34208         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34209         gives NULL; drop sys/types, since unistd gives size_t; and add
34210         stdint for SIZE_MAX.
34211         (SIZE_MAX): Rely on headers.
34212         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34213         and add stdint.
34214         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34215         (SIZE_MAX): Likewise.
34216         (INITIAL_BUF_SIZE): Turn into enum.
34217         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34218
34219 2009-10-08  Jim Meyering  <meyering@redhat.com>
34220
34221         areadlinkat: avoid compilation failure
34222         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34223         Fix typo in comment.
34224
34225 2009-10-07  Eric Blake  <ebb9@byu.net>
34226
34227         areadlinkat-with-size: new module
34228         * modules/areadlinkat-with-size: New module.
34229         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34230         * lib/areadlink.h (areadlinkat): Declare it.
34231         * MODULES.html.sh (File system functions): Mention it.
34232         * modules/areadlinkat-with-size-tests: New test.
34233         * tests/test-areadlinkat-with-size.c: New file.
34234
34235         xreadlinkat: new module
34236         * modules/xreadlinkat: New module.
34237         * lib/xreadlinkat.c (xreadlinkat): New file.
34238         * lib/xreadlink.h (xreadlinkat): Declare it.
34239         * MODULES.html.sh (File system functions): Mention it.
34240
34241         areadlinkat: new module
34242         * lib/at-func.c (FUNC_FAIL): New define.
34243         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34244         * modules/areadlinkat: New module.
34245         * lib/linkat.c (areadlinkat): Move...
34246         * lib/areadlinkat.c (areadlinkat): ...to new file.
34247         * lib/areadlink.h (areadlinkat): Declare it.
34248         * modules/linkat (Depends-on): Add areadlinkat.
34249         * MODULES.html.sh (File system functions): Mention it.
34250         * modules/areadlinkat-tests: New test.
34251         * tests/test-areadlinkat.c: New file.
34252
34253         areadlink, areadlink-with-size: add tests
34254         * modules/areadlink-tests: New test.
34255         * modules/areadlink-with-size-tests: Likewise.
34256         * tests/test-areadlink.h: New file.
34257         * tests/test-areadlink.c: Likewise.
34258         * tests/test-areadlink-with-size.c: Likewise.
34259
34260         maint: minor cleanups
34261         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34262         _UNUSED_PARAMETER_ instead.
34263         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34264         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34265         * modules/linkat-tests (Files): Distribute test-link.h.
34266
34267         openat, utimens: whitespace cleanup
34268         * lib/openat.c: Prefer space throughout, rather than mix of 8
34269         spaces vs. tabs.
34270         * lib/at-func.c: Likewise.
34271         * lib/utimens.c: Likewise.
34272
34273         openat: avoid using wrong fd
34274         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34275         working directory chooses same fd.
34276         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34277
34278         mkdir, mkdirat: fix cygwin 1.5.x bug
34279         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34280         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34281         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34282         bug.
34283         (gl_PREREQ_MKDIR): Delete unused macro.
34284         * modules/mkdir (Files): Track file rename.
34285         (configure.ac): Update macro name.
34286         * modules/openat (Depends-on): Add mkdir.
34287         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34288
34289         mkdir, mkdirat: add tests
34290         * modules/mkdir-tests: New test.
34291         * tests/test-mkdir.h: New file.
34292         * tests/test-mkdir.c: Likewise.
34293         * tests/test-mkdirat.c: Likewise.
34294         * modules/openat-tests (Files): Add new files.
34295         (Makefile.am): Run new test.
34296
34297 2009-10-06  Eric Blake  <ebb9@byu.net>
34298
34299         doc: tweak *at function documentation
34300         * doc/posix-functions/faccessat.texi (faccessat): Mention
34301         known issue with replacement.
34302         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34303         * doc/posix-functions/linkat.texi (linkat): Likewise.
34304         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34305         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34307         * doc/posix-functions/renameat.texi (renameat): Likewise.
34308         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34309
34310         openat: fix GNU/Hurd bug in unlinkat
34311         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34312         broken.
34313         * doc/posix-functions/unlink.texi (unlink): Document this.
34314         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34315
34316         fdopendir: fix GNU/Hurd bug
34317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34318         allowing non-directory fds.
34319         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34321         * modules/dirent (Makefile.am): Substitute it.
34322         * lib/dirent.in.h (fdopendir): Declare replacement.
34323         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34324         * tests/test-fdopendir.c (main): Test something other than
34325         /dev/null, since on Hurd that behaves like a directory.
34326
34327         test-symlink: port to GNU/Hurd
34328         * tests/test-symlink.h (test_symlink): Relax expected errno.
34329
34330         doc: tweak more cygwin information
34331         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34332         now compatible with glibc.
34333         * doc/posix-functions/getopt.texi (getopt): Likewise.
34334
34335         getopt-gnu: add another test
34336         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34337         guarantee behavior relied on by m4.
34338         * tests/test-getopt.c (main): Use it.
34339         * modules/getopt-posix-tests (Depends-on): Add setenv.
34340         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34341
34342         getopt: fix compilation on darwin
34343         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34344         include.
34345         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34346         Reported by Ludovic Courtès.
34347
34348 2009-10-06  Bruno Haible  <bruno@clisp.org>
34349
34350         * modules/size_max (Description): Discourage its use.
34351         Reported by Simon Josefsson.
34352
34353 2009-10-06  Jim Meyering  <meyering@redhat.com>
34354
34355         linkat: avoid compilation failure
34356         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34357
34358 2009-10-05  Eric Blake  <ebb9@byu.net>
34359
34360         linkat: support Linux 2.6.17
34361         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34362         linkat on Linux, but allow cache variable override.
34363         * lib/linkat.c (rpl_linkat): Define override.
34364         * modules/linkat (Depends-on): Add symlinkat.
34365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34366         * modules/unistd (Makefile.am): Substitute it.
34367         * lib/unistd.in.h (linkat): Declare replacement.
34368         Reported by Pádraig Brady.
34369
34370         quotearg: port test to systems with C.UTF-8 locale
34371         * tests/test-quotearg.c (struct result_strings): Add another
34372         member, differentiating between C.ASCII and C.UTF-8 handling.
34373         (compare_strings): Add parameter.
34374         (main): Adjust all callers.
34375
34376         getopt: avoid clash with FreeBSD _getopt_internal
34377         * lib/getopt.in.h (_getopt_internal): Override the name.
34378         * lib/getopt_int.h (includes): Pick up any overrides.
34379         Reported by Reuben Thomas.
34380
34381         hash: allow C89 compilation
34382         * lib/hash.c (check_tuning): Move declaration before statement.
34383         Reported by Reuben Thomas.
34384
34385 2009-10-05  Karl Berry  <karl@gnu.org>
34386
34387         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34388
34389 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34390             Bruno Haible  <bruno@clisp.org>
34391
34392         * lib/uname.c (uname): Use a table-driven algorithm to compute
34393         Windows NT versions.
34394
34395 2009-10-04  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34398         program_invocation_short_name.
34399         * modules/progname (configure.ac): Test for presence of
34400         program_invocation_short_name.
34401         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34402
34403 2009-10-04  Bruno Haible  <bruno@clisp.org>
34404
34405         * lib/progname.c (set_program_name): Fix comment.
34406         Reported by Jim Meyering.
34407
34408 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34409             Bruno Haible  <bruno@clisp.org>
34410
34411         * lib/uname.c: Include <string.h>.
34412         (uname): Do only one call to GetVersionEx in the common case.
34413
34414 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34415             Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34418         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34419         (uname): Add support for Windows CE and various non-x86 CPU types.
34420
34421 2009-10-03  Bruno Haible  <bruno@clisp.org>
34422
34423         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34424         invocation to tests/configure.ac.
34425         Reported by Ian Beckwith <ianb@erislabs.net>.
34426
34427 2009-10-02  Eric Blake  <ebb9@byu.net>
34428
34429         fchdir: avoid compiler warning
34430         * lib/fchdir.c (canonicalize_file_name)
34431         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34432
34433         test-open: support mingw errno values
34434         * tests/test-open.h (test_open): Relax test.
34435         * tests/test-fopen.h (test_fopen): Likewise.
34436         * tests/test-openat-safer.c (main): Likewise.
34437
34438         open: fix opening directory on mingw
34439         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34440
34441         test-open: on GNU/Hurd, /dev/null is a directory
34442         * tests/test-fopen.h (main): Rename...
34443         (test_fopen): ...to this.  Use a guaranteed non-directory when
34444         confirming open behavior on trailing slash.
34445         * tests/test-openat-safer.c (main): Likewise.
34446         * tests/test-open.h (main): Likewise....
34447         (test_open): ...to this.
34448         * tests/test-fopen.c (main): Adjust caller.
34449         * tests/test-fopen-safer.c (main): Likewise.
34450         * tests/test-open.c (main): Likewise.
34451         * tests/test-fcntl-safer.c (main): Likewise.
34452         Reported by Samuel Thibault.
34453
34454         rename, fchdir: don't ignore chdir failure
34455         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34456         * lib/rename.c (rpl_rename) [W32]: Likewise.
34457         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34458         an empty destination directory if source cannot be renamed,
34459         although there is still possibility for failure.
34460         * doc/posix-functions/rename.texi (rename): Document the race.
34461         Reported by Jim Meyering.
34462
34463         maint: cleanup whitespace in recent commits
34464         * lib/rename.c (rpl_rename): Remove tabs.
34465         * tests/test-link.h (test_link): Likewise.
34466         * lib/fchdir.c (get_name): Likewise.
34467         Reported by Jim Meyering.
34468
34469 2009-10-02  Ben Pfaff  <blp@gnu.org>
34470
34471         relocatable-prog-wrapper: Add missing dependency on
34472         double-slash-root.
34473         * modules/relocatable-prog-wrapper: Add dependency.
34474         Reported by Ian Beckwith <ianb@erislabs.net>.
34475
34476 2009-10-02  Eric Blake  <ebb9@byu.net>
34477
34478         renameat: fix Solaris bugs
34479         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34480         needed fixing.
34481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34482         * modules/stdio (Makefile.am): Substitute it.
34483         * lib/stdio.in.h (renameat): Declare replacement.
34484         * lib/renameat.c (rpl_renameat): Implement fix.
34485
34486         renameat: new module
34487         * modules/renameat: New file.
34488         * lib/renameat.c (renameat): Likewise.
34489         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34491         * modules/stdio (Makefile.am): Substitute them.
34492         * lib/stdio.in.h (renameat): Declare it.
34493         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34494         * doc/posix-functions/renameat.texi (renameat): Likewise.
34495         * modules/renameat-tests: New test.
34496         * tests/test-renameat.c: Likewise.
34497
34498         rename: fix mingw bugs
34499         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34500         directory overwrite bugs.
34501
34502         rename: fix another cygwin 1.5 bug
34503         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34504         checks.
34505         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34506         unnecessary cygwin workarounds.  Also work around bug with moving
34507         full directory onto an empty one.
34508         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34509
34510         rename-dest-slash: merge into rename module
34511         * modules/rename-dest-slash (Status): Mark obsolete.
34512         (Depends-on): Add rename.
34513         (Files): Let rename do it all.
34514         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34515         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34516         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34517         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34518         * lib/rename.c (rpl_rename): Update comments.
34519
34520         rename: fix cygwin 1.5.x bugs
34521         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34522         * lib/rename.c (rpl_rename): Work around them.
34523         * modules/rename (Depends-on): Add same-inode.
34524
34525         rename: fix Solaris 10 bug
34526         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34527         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34528         was the only bug.
34529
34530         rename: fix Solaris 9 bug
34531         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34532         on non-directory.  Avoid calling exit.
34533         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34534         strdup.
34535         * modules/rename-tests (Depends-on): Drop lstat.
34536         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34537         (gl_PREREQ_RENAME): Delete unused macro.
34538
34539         rename-dest-slash: fix NetBSD bug
34540         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34541         links.
34542         * modules/rename-dest-slash (Depends-on): Add same-inode.
34543
34544         rename-tests: new test, exposes several platform bugs
34545         * modules/rename-tests: New file.
34546         * tests/test-rename.h: Likewise.
34547         * tests/test-rename.c: Likewise.
34548         * doc/posix-functions/rename.texi (rename): Improve documentation,
34549         including bugs that will eventually be fixed in gnulib.
34550
34551 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34552
34553         * lib/uname.c: Include <stdlib.h>
34554         (uname): Assume version info is available.
34555
34556 2009-10-02  Jim Meyering  <meyering@redhat.com>
34557
34558         gnu-web-doc-update: correct --help output
34559         * build-aux/gnu-web-doc-update: Make --help output relevant.
34560
34561         gnu-web-doc-update: add standard options
34562         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34563
34564         gnu-web-doc-update: New module.
34565         Use this script to automatically update the on-line web documentation
34566         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34567         * modules/gnu-web-doc-update: New file, from coreutils.
34568         * build-aux/gnu-web-doc-update: New script.
34569
34570 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34571
34572         link: LoadLibrary is not needed.
34573         * lib/link.c: Use GetModuleHandle.
34574
34575 2009-10-01  Eric Blake  <ebb9@byu.net>
34576
34577         getopt: bump serial number
34578         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34579         change.
34580
34581         tests: tighten link, rmdir, and remove tests
34582         * tests/test-link.h (includes): No need to use <config.h> here.
34583         Clean up if directory hard link was created, otherwise test for
34584         trailing '.'.
34585         * tests/test-linkat.c (main): Simplify.
34586         * tests/test-remove.c (main): Enhance test for trailing '.'.
34587         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34588
34589 2009-10-01  Jim Meyering  <meyering@redhat.com>
34590
34591         maint.mk: requiring "make major" was annoying, for a "minor" release.
34592         What is intended is "stable", to contrast with alpha and beta,
34593         so require "make stable", not "make major".
34594         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34595         (get_tool_versions): Likewise.
34596         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34597
34598 2009-09-30  Ben Pfaff  <blp@gnu.org>
34599
34600         Fix broken build of replacement for Windows tmpfile().
34601         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34602         flags argument added along with the 'mkostemp' module.
34603
34604 2009-09-28  Bruno Haible  <bruno@clisp.org>
34605
34606         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34607         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34608         to 'remove_elt'.
34609         (gl_list_remove): Update.
34610         * lib/gl_list.c (gl_list_remove): Update.
34611         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34612         to 'remove_elt'.
34613         (gl_oset_remove): Update.
34614         * lib/gl_list.c (gl_oset_remove): Update.
34615         Reported by Eric Blake.
34616
34617 2009-09-28  Eric Blake  <ebb9@byu.net>
34618
34619         doc: mention yet more cygwin 1.7 status
34620         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34621         cygwin.
34622         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34623         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34624
34625         argp: fix test failure
34626         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34627         that are not upper-case.  Pass correct range to tolower.
34628
34629 2009-09-27  Jim Meyering  <meyering@redhat.com>
34630
34631         test-yesno: work around sparc-dash here-document infelicity
34632         Without this change, the literal \177 byte in a here document
34633         would make dash 0.5.5.1-3 access uninitialized memory.
34634         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34635         Instead, use a marker, "@", and filter through tr to create the desired
34636         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34637
34638 2009-09-27  Bruno Haible  <bruno@clisp.org>
34639
34640         Disable untested support for new flavours of ACLs on AIX.
34641         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34642         progress.
34643         * lib/set-mode-acl.c (qset_acl): Likewise.
34644
34645 2008-12-07  Bruno Haible  <bruno@clisp.org>
34646
34647         Add support for new flavours of ACLs on AIX. (Untested.)
34648         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34649         (file_has_acl): Add support for newer AIX.
34650         * lib/set-mode-acl.c (qset_acl): Likewise.
34651         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34652         Rainer Tammer <tammer@tammer.net>.
34653
34654 2009-09-26  Eric Blake  <ebb9@byu.net>
34655
34656         argp: fix compilation of getopt
34657         * lib/getopt.in.h (includes): Use different guard than glibc.
34658         Reported by Sergey Poznyakoff.
34659
34660         doc: mention more cygwin 1.7 status
34661         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34662         bug.
34663         * doc/posix-functions/execl.texi (execl): Likewise.
34664         * doc/posix-functions/execle.texi (execle): Likewise.
34665         * doc/posix-functions/execlp.texi (execlp): Likewise.
34666         * doc/posix-functions/execv.texi (execv): Likewise.
34667         * doc/posix-functions/execve.texi (execve): Likewise.
34668         * doc/posix-functions/execvp.texi (execvp): Likewise.
34669         * doc/glibc-functions/canonicalize_file_name.texi
34670         (canonicalize_file_name): Cygwin 1.7 now provides this.
34671         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34672         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34673         on AT_SYMLINK_NOFOLLOW.
34674
34675 2009-09-24  Eric Blake  <ebb9@byu.net>
34676
34677         test-linkat: make test more robust
34678         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34679
34680         getopt: fix inclusion guards for cygwin
34681         * modules/getopt-posix (Depends-on): Add include-next.
34682         (Makefile.am): Substitute more items in replacement header.
34683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34684         <getopt.h>.
34685         * lib/getopt.in.h (includes): Use split inclusion guard, and
34686         prefer <getopt.h> over include <unistd.h> when one is present.
34687         (option): Also override name of 'struct option'.
34688
34689         same-inode: revert prior change; it is not yet ready
34690         * NEWS: Undo mention of this change.
34691         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34692         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34693         * lib/cycle-check.c (cycle_check): Likewise.
34694         * lib/same.c (same_name): Likewise.
34695         * lib/at-func2.c (at_func2): Likewise.
34696
34697 2009-09-23  Eric Blake  <ebb9@byu.net>
34698
34699         linkat: new module
34700         * modules/linkat: New file.
34701         * lib/at-func2.c (at_func2): Likewise.
34702         * lib/linkat.c (linkat): Likewise.
34703         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34704         * lib/openat-priv.h (at_func2): Add declaration.
34705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34706         * modules/unistd (Makefile.am): Substitute them.
34707         * lib/unistd.in.h (linkat): Declare it.
34708         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34709         * doc/posix-functions/linkat.texi (linkat): Likewise.
34710         * doc/posix-functions/link.texi (link): Tweak wording.
34711         * tests/test-link.c (main): Move guts...
34712         * tests/test-link.h (test_link): ...into new file.
34713         * modules/linkat-tests: New test.
34714         * tests/test-linkat.c: Likewise.
34715         * modules/link-tests (Files): Ship new file.
34716         (Depends-on): Add stdbool.
34717
34718         dirname: add library-safe mdir_name
34719         * lib/dirname.h (mdir_name): New prototype.
34720         * lib/dirname.c (dir_name): Move guts...
34721         (mdir_name): ...to new function that avoids xalloc_die.
34722
34723         fchdir: another mingw fix
34724         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34725         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34726         on mingw (where it has not yet been ported), and make it optional
34727         elsewhere.
34728         (_gl_register_fd): Use it.
34729
34730         same-inode: make SAME_INODE tri-state, to port to mingw
34731         * NEWS: Mention this change.
34732         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34733         st_ino always being 0.
34734         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34735         * lib/cycle-check.c (cycle_check): Likewise.
34736         * lib/same.c (same_name): Likewise.
34737
34738         lstat: avoid mingw compilation error
34739         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34741         lstat ourselves.
34742         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34743         was adequate.
34744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34745         the checks for lstat.
34746         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34747
34748         link: fix test failure on Solaris 9
34749         * lib/link.c (rpl_link): Don't assume link will catch bogus
34750         trailing slash on source.
34751
34752         test-symlinkat: enhance test
34753         * tests/test-readlink.c (main): Move guts...
34754         * tests/test-readlink.h (test_readlink): ...into new file.
34755         * tests/test-symlink.c (main): Move guts...
34756         * tests/test-symlink.h (test_symlink): ...into new file.
34757         * tests/test-symlinkat.c (main): Use new files for further
34758         coverage.
34759         (do_symlink, do_readlink): New helper functions.
34760         * modules/symlink-tests (Files): Ship new file.
34761         (Depends-on): Add stdbool.
34762         * modules/readlink-tests (Files): Ship new file.
34763         (Depends-on): Add stdbool.
34764         * modules/symlinkat-tests (Files): Use new files.
34765
34766 2009-09-23  Eric Blake  <ebb9@byu.net>
34767
34768         readlink: document portability issue with symlink length
34769         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34770         systems have bogus st_size on symlinks, and mention the
34771         areadlink-with-size module.
34772         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34773         * doc/posix-functions/readlink.texi (readlink): Mention the
34774         areadlink module, and ERANGE failure.
34775         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34776         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34777
34778         readlink: fix Solaris 9 bug with trailing slash
34779         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34780         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34781         * doc/posix-functions/readlink.texi (readlink): Document this.
34782         * modules/readlink-tests: New test.
34783         * tests/test-readlink.c: Likewise.
34784
34785         readlink: fix cygwin 1.5.x bug with return type
34786         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34787         * lib/unistd.in.h (readlink): Use ssize_t.
34788         * lib/readlink.c (readlink): Likewise.
34789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34790         * modules/unistd (Makefile.am): Substitute it.
34791         * lib/unistd.in.h (readlink): Declare replacement.
34792         * doc/posix-functions/readlink.texi (readlink): Document this.
34793
34794         symlink: use throughout gnulib
34795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34796         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34797         symlink is not used.
34798         * modules/symlinkat (Depends-on): Add symlink.
34799         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34800         * modules/canonicalize-tests (Depends-on): Likewise.
34801         * modules/lstat-tests (Depends-on): Likewise.
34802         * modules/openat-tests (Depends-on): Likewise.
34803         * modules/remove-tests (Depends-on): Likewise.
34804         * modules/rmdir-tests (Depends-on): Likewise.
34805         * modules/unlink-tests (Depends-on): Likewise.
34806         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34807         * tests/test-canonicalize.c (symlink): Likewise.
34808         * tests/test-fstatat.c (symlink): Likewise.
34809         * tests/test-lstat.c (symlink): Likewise.
34810         * tests/test-remove.c (symlink): Likewise.
34811         * tests/test-rmdir.c (symlink): Likewise.
34812         * tests/test-unlink.c (symlink): Likewise.
34813         * tests/test-unlinkat.c (symlink): Likewise.
34814
34815         symlink: new module, for Solaris 9 bug
34816         * modules/symlink: New file.
34817         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34818         * lib/symlink.c: Likewise.
34819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34820         * modules/unistd (Makefile.am): Substitute them.
34821         * lib/unistd.in.h (symlink): Declare replacement.
34822         * MODULES.html.sh (File system functions): Mention it.
34823         * doc/posix-functions/symlink.texi (symlink): Likewise.
34824         * modules/symlink-tests: New test.
34825         * tests/test-symlink.c: Likewise.
34826
34827 2009-09-23  Bruno Haible  <bruno@clisp.org>
34828
34829         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34830         when needed.
34831         Test case: gnulib-tool --import --with-tests atexit inttypes.
34832         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34833
34834 2009-09-23  Bruno Haible  <bruno@clisp.org>
34835
34836         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34837         subcommand, not in a subshell.
34838
34839 2009-09-22  Eric Blake  <ebb9@byu.net>
34840
34841         unistd: sort replacement declarations
34842         * lib/unistd.in.h: Sort declarations.
34843
34844         open, openat: minor optimization
34845         * lib/open.c (open): If open succeeded, len is non-zero.
34846         * lib/openat.c (rpl_openat): Likewise.
34847
34848         link-follow: ensure correct result
34849         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34850         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34851         distinguish between possible failures.
34852
34853 2009-09-21  Eric Blake  <ebb9@byu.net>
34854
34855         fts: avoid compiler warning
34856         * lib/fts.c (dirent_inode_sort_may_be_useful)
34857         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34858
34859 2009-09-19  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/progreloc.c (canonicalize_file_name): New declaration.
34862
34863 2009-09-19  Eric Blake  <ebb9@byu.net>
34864
34865         link: fix quoting
34866         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34867
34868         openat: fix openat bugs on Solaris 9
34869         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34870         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34871         * modules/openat (Depends-on): Add open.
34872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34873         * modules/fcntl-h (Makefile.am): Substitute it.
34874         * lib/fcntl.in.h (openat): Declare replacement.
34875         * doc/posix-functions/openat.texi (openat): Document this.
34876
34877         openat: move fstatat and unlinkat into correct files
34878         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34879         compiled.
34880         * lib/openat.c (fstatat, unlinkat): Move...
34881         * lib/fstatat.c (fstatat): ...into correct files.
34882         * lib/unlinkat.c (unlinkat): Likewise.
34883
34884         openat: fix unlinkat bugs on Solaris 9
34885         * lib/unlinkat.c (unlinkat): New file.
34886         * modules/openat (Depends-on): Add unlink.
34887         (Files): Distribute it.
34888         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34889         trailing slash behavior is broken.
34890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34891         * modules/unistd (Makefile.am): Substitute it.
34892         * lib/unistd.in.h (unlinkat): Declare replacement.
34893         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34894
34895         openat: fix fstatat bugs on Solaris 9
34896         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34897         stat.
34898         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34899
34900         test-unlinkat: enhance test, to expose Solaris 9 bug
34901         * tests/test-unlink.c (main): Factor guts...
34902         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34903         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34904         * tests/test-rmdir.c (main): Adjust caller.
34905         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34906         (unlinker): New helper function.
34907         (rmdirat): Enhance check.
34908         * modules/rmdir-tests (Depends-on): Add stdbool.
34909         * modules/unlink-tests (Depends-on): Likewise.
34910         (Files): Add test-unlink.h.
34911         * modules/openat-tests (Files): Likewise.
34912         (Depends-on): Add unlinkdir.
34913
34914         test-fstatat: new test, to expose Solaris 9 bugs
34915         * tests/test-stat.c (main): Factor guts...
34916         * tests/test-stat.h (test_stat_func): ...into new file.
34917         * tests/test-lstat.c (main): Factor guts...
34918         * tests/test-lstat.h (test_lstat_func): ...into new file.
34919         * tests/test-fstatat.c: New file.
34920         * modules/stat-tests (Files): Add test-stat.h.
34921         * modules/lstat-tests (Files): Add test-lstat.h.
34922         (Depends-on): Add stdbool.
34923         * modules/openat-tests (Depends-on): Add pathmax.
34924         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34925         (Makefile.am): Run new test.
34926
34927         remove: new module, for mingw and Solaris 9 bugs
34928         * modules/remove: New file.
34929         * lib/remove.c: Likewise.
34930         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34932         * modules/stdio (Makefile.am): Use them.
34933         * lib/stdio.in.h (remove): Declare replacement.
34934         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34935         * doc/posix-functions/remove.texi (remove): Likewise.
34936         * modules/remove-tests: New test.
34937         * tests/test-remove.c: Likewise.
34938
34939         unlink: new module, for Solaris 9 bug
34940         * modules/unlink: New file.
34941         * lib/unlink.c: Likewise.
34942         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34944         * modules/unistd (Makefile.am): Use them.
34945         * lib/unistd.in.h (stat): Declare replacement.
34946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34947         * doc/posix-functions/unlink.texi (unlink): Likewise.
34948         * modules/unlink-tests: New test.
34949         * tests/test-unlink.c: Likewise.
34950
34951         lstat: fix Solaris 9 bug
34952         * lib/lstat.c (lstat): Also check for trailing slash on
34953         non-symlink, non-directories.  Use stat module to simplify logic.
34954         * doc/posix-functions/lstat.texi (lstat): Document it.
34955         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34956         (configure.ac): Check for symlink.
34957         * tests/test-lstat.c (main): Add more tests.
34958
34959         stat: add as dependency to other modules
34960         * modules/chown (Depends-on): Add stat.
34961         * modules/euidaccess (Depends-on): Likewise.
34962         * modules/fchdir (Depends-on): Likewise.
34963         * modules/isdir (Depends-on): Likewise.
34964         * modules/link (Depends-on): Likewise.
34965         * modules/lstat (Depends-on): Likewise.
34966         * modules/mkdir-p (Depends-on): Likewise.
34967         * modules/modechange (Depends-on): Likewise.
34968         * modules/open (Depends-on): Likewise.
34969         * modules/readlink (Depends-on): Likewise.
34970         * modules/same (Depends-on): Likewise.
34971
34972         stat: fix Solaris 9 bug
34973         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34974         slash.
34975         * lib/stat.c (rpl_stat): Work around it.
34976         * doc/posix-functions/stat.texi (stat): Update documentation.
34977
34978         stat: new module, for mingw bug
34979         * modules/stat: New file.
34980         * lib/stat.c: Likewise.
34981         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34983         * modules/sys_stat (Makefile.am): Use them.
34984         * lib/sys_stat.in.h (stat): Declare replacement.
34985         * lib/openat.c (fstatat): Deal with lstat and stat being function
34986         macros.
34987         * modules/openat (Depends-on): Add inline.
34988         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34989         * doc/posix-functions/stat.texi (stat): Likewise.
34990         * modules/stat-tests: New test.
34991         * tests/test-stat.c: Likewise.
34992
34993 2009-09-19  Jim Meyering  <meyering@redhat.com>
34994
34995         syntax-check: detect unnecessary inclusion of canonicalize.h
34996         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34997
34998 2009-09-19  Eric Blake  <ebb9@byu.net>
34999
35000         canonicalize-lgpl: adjust clients to use correct header
35001         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35002         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35003         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35004         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35005         * lib/progreloc.c (includes): Likewise.
35006
35007 2009-09-19  Jim Meyering  <meyering@redhat.com>
35008
35009         test-posixtm.c: correct a comment
35010         * tests/test-posixtm.c: Correct first-line comment.
35011         Spotted by Eric Blake.
35012
35013 2009-09-16  Jim Meyering  <meyering@redhat.com>
35014
35015         posixtm-tests: make T const-correct; add a test case
35016         * tests/test-posixtm.c (T): Declare const.
35017         Add a test for -(2^31+1).
35018         Remove useless can-succeed-only-in-2002 test.
35019
35020         posixtm-tests: adjust the sole failing test
35021         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35022         expected output matches what mktime now produces.  Cross-checked via
35023         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35024
35025         posixtm: move #ifdef'd tests into a new module
35026         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35027         * tests/test-posixtm.c: ... this new file.
35028         * modules/posixtm-tests: New module.
35029
35030 2009-09-19  Eric Blake  <ebb9@byu.net>
35031
35032         openat: simplify use of at-func.c
35033         * lib/at-func.c (includes): Include prerequisites here, to
35034         simplify requirements on client files.
35035         * lib/openat-priv.h: Add double-inclusion guard.
35036         * lib/faccessat.c (includes): Simplify.
35037         * lib/fchmodat.c (includes): Likewise.
35038         * lib/fchownat.c (includes): Likewise.
35039         * lib/mkdirat.c (includes): Likewise.
35040         * lib/mkfifoat.c (includes): Likewise.
35041         * lib/symlinkat.c (includes): Likewise.
35042
35043         openat: allow return of fd 0
35044         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35045         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35046         unistd-safer.
35047         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35048         <fcntl.h>; this module does not leak fds.
35049         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35050         must be allowed to return 0, leaving openat_safer to add the
35051         safety.
35052         (openat_permissive): Avoid writing to just-opened fd 2 if
35053         restoring the current directory fails.
35054         * lib/openat-die.c (openat_restore_fail): Add comment.
35055         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35056         (save_cwd): Guarantee safe fd, but without use of open_safer.
35057         * tests/test-openat.c: New test.
35058         * modules/openat-tests (Files, Makefile.am): Distribute and build
35059         new file.
35060
35061         relocatable-prog-wrapper: fix build
35062         * modules/relocatable-prog-wrapper (Files): Update name of
35063         canonicalize m4 file, broken on 2009-09-17.
35064         Reported by emad hajjar <aleppos@hotmail.com>.
35065
35066 2009-09-19  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35069         * lib/safe-alloc.c: Likewise.
35070         Reported by Ian Beckwith <ianb@erislabs.net>.
35071
35072 2009-09-18  Bruno Haible  <bruno@clisp.org>
35073
35074         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35075         Reported by <erobles@sensacd.com.mx>.
35076
35077 2009-09-17  Eric Blake  <ebb9@byu.net>
35078
35079         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35080         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35081         slashes when checking if last component is missing.
35082         * tests/test-canonicalize.c (main): Test this.
35083
35084         canonicalize, canonicalize-lgpl: honor // if distinct from /
35085         * modules/canonicalize (Files): Add double-slash-root.m4.
35086         * modules/canonicalize-lgpl (Files): Likewise.
35087         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35088         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35089         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35090         fallback definition.
35091         (canonicalize_filename_mode): Use it to protect //.
35092         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35093         (__realpath): Likewise.
35094         * tests/test-canonicalize.c (main): Test this.
35095         * tests/test-canonicalize-lgpl.c (main): Likewise.
35096         * modules/canonicalize-tests (Depends-on): Add same-inode.
35097         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35098
35099         canonicalize-lgpl: fix glibc bug with trailing slash
35100         * m4/canonicalize-lgpl.m4: Move contents...
35101         * m4/canonicalize.m4: ...here.
35102         (gl_CANONICALIZE_LGPL): Factor realpath check...
35103         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35104         glibc 2.3.5 bug, fixed 2005-04-27.
35105         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35106         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35107         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35108         * modules/canonicalize-lgpl (Files): Manage file rename.
35109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35110         * modules/stdlib (Makefile.am): Substitute witness.
35111         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35112         is needed.
35113         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35114         replacement is required.
35115         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35116         * doc/glibc-functions/canonicalize_file_name.texi
35117         (canonicalize_file_name): Document this.
35118         * doc/posix-functions/realpath.texi (realpath): Likewise.
35119
35120         canonicalize-lgpl: reject non-directory with trailing slash
35121         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35122         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35123         catches failures in glibc 2.3.5.
35124         * tests/test-canonicalize.c (main): Likewise.
35125
35126         canonicalize-lgpl: use native realpath if it works
35127         * lib/canonicalize-lgpl.c (realpath): Guard with
35128         FUNC_REALPATH_WORKS.
35129         * lib/stdlib.in.h (realpath): Make declaration optional based on
35130         HAVE_REALPATH.
35131         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35132         native realpath works.
35133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35134         * modules/stdlib (Makefile.am): Substitute witness.
35135
35136         canonicalize, canonicalize-lgpl: use <stdlib.h>
35137         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35138         (Include): Mention <stdlib.h>.
35139         (configure.ac): Mention functions we provide.
35140         * modules/canonicalize (configure.ac): Likewise.
35141         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35142         realpath if canonicalize_file_name is missing.
35143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35144         * modules/stdlib (Makefile.am): Substitute witnesses.
35145         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35146         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35147         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35148         * NEWS: Document this.
35149         * doc/glibc-functions/canonicalize_file_name.texi
35150         (canonicalize_file_name): Likewise.
35151         * doc/posix-functions/realpath.texi (realpath): Likewise.
35152         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35153
35154         test-canonicalize: consolidate into single C program
35155         * tests/test-canonicalize.sh: Delete; move setup into...
35156         * tests/test-canonicalize.c (main): ...the program, making it
35157         easier to run in debugger.  Add some tests.
35158         * modules/canonicalize-tests (Files): Remove unused file.
35159         (Depends-on): Add progname.
35160         (configure.ac, Makefile.am): Simplify.
35161
35162         test-canonicalize-lgpl: consolidate into single C program
35163         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35164         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35165         easier to run in debugger.  Add some tests.
35166         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35167         (configure.ac, Makefile.am): Simplify.
35168
35169         canonicalize: avoid resolvepath
35170         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35171         unnecessary checks.
35172         * lib/canonicalize.c (includes): Simplify.
35173         (canonicalize_file_name): Drop resolvepath implementation.
35174         * modules/canonicalize (Depends-on): Drop filenamecat.
35175
35176         canonicalize: don't lose errno
35177         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35178         over calls to free.
35179
35180         canonicalize: simplify errno handling
35181         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35182         assignment.
35183
35184         canonicalize, canonicalize-lgpl: update module dependencies
35185         * modules/canonicalize (Depends-on): Add extensions, lstat,
35186         pathmax, stdlib.
35187         (Files): Drop pathmax.h.
35188         (configure.ac): Adjust macro name.
35189         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35190         lstat, stdlib, sys_stat.
35191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35192         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35193         extensions.
35194         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35195         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35196         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35197         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35198         declaration, if available.
35199         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35200         we can rely on the readlink module.
35201         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35202         (includes): Use <unistd.h> unconditionally.
35203
35204 2009-09-17  Eric Blake  <ebb9@byu.net>
35205
35206         maint: make Include sections of modules consistent
35207         * modules/alloca: Use only header name; no need to list #include.
35208         * modules/alloca-opt: Likewise.
35209         * modules/arpa_inet: Likewise.
35210         * modules/canon-host: Likewise.
35211         * modules/configmake: Likewise.
35212         * modules/dirent: Likewise.
35213         * modules/eealloc: Likewise.
35214         * modules/environ: Likewise.
35215         * modules/fchdir: Likewise.
35216         * modules/fcntl: Likewise.
35217         * modules/fcntl-h: Likewise.
35218         * modules/gethrxtime: Likewise.
35219         * modules/gettime: Likewise.
35220         * modules/ignore-value: Likewise.
35221         * modules/inet_ntop: Likewise.
35222         * modules/inet_pton: Likewise.
35223         * modules/inttypes: Likewise.
35224         * modules/isnand-nolibm: Likewise.
35225         * modules/isnanf-nolibm: Likewise.
35226         * modules/mbchar: Likewise.
35227         * modules/mbfile: Likewise.
35228         * modules/mbiter: Likewise.
35229         * modules/mbuiter: Likewise.
35230         * modules/netdb: Likewise.
35231         * modules/netinet_in: Likewise.
35232         * modules/nproc: Likewise.
35233         * modules/pagealign_alloc: Likewise.
35234         * modules/poll: Likewise.
35235         * modules/printf-frexp: Likewise.
35236         * modules/pthread: Likewise.
35237         * modules/putenv: Likewise.
35238         * modules/random_r: Likewise.
35239         * modules/relocatable-prog: Likewise.
35240         * modules/search: Likewise.
35241         * modules/select: Likewise.
35242         * modules/selinux-h: Likewise.
35243         * modules/settime: Likewise.
35244         * modules/signal: Likewise.
35245         * modules/size_max: Likewise.
35246         * modules/socklen: Likewise.
35247         * modules/ssize_t: Likewise.
35248         * modules/stdarg: Likewise.
35249         * modules/stdbool: Likewise.
35250         * modules/stddef: Likewise.
35251         * modules/stdint: Likewise.
35252         * modules/stdio: Likewise.
35253         * modules/stdlib: Likewise.
35254         * modules/string: Likewise.
35255         * modules/strings: Likewise.
35256         * modules/sys_file: Likewise.
35257         * modules/sys_ioctl: Likewise.
35258         * modules/sys_select: Likewise.
35259         * modules/sys_socket: Likewise.
35260         * modules/sys_stat: Likewise.
35261         * modules/sys_time: Likewise.
35262         * modules/sys_times: Likewise.
35263         * modules/sys_utsname: Likewise.
35264         * modules/sys_wait: Likewise.
35265         * modules/sysexits: Likewise.
35266         * modules/time: Likewise.
35267         * modules/times: Likewise.
35268         * modules/tmpfile: Likewise.
35269         * modules/trim: Likewise.
35270         * modules/unistd: Likewise.
35271         * modules/wchar: Likewise.
35272         * modules/wctype: Likewise.
35273
35274 2009-09-17  Bruno Haible  <bruno@clisp.org>
35275
35276         Make getdate.y compile on QNX and NetBSD 5 / i386.
35277         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35278         TIME_T_FITS_IN_LONG_INT.
35279         * lib/getdate.y (long_time_t): New type.
35280         (relative_time): Change type of 'seconds' field to long_time_t.
35281         (get_date): Update types of local variables. Check against overflow
35282         during conversion from long_time_t to time_t.
35283         Reported by Matt Kraai <kraai@ftbfs.org>
35284         and Hasso Tepper <hasso@netbsd.org>.
35285
35286 2009-09-17  Bruno Haible  <bruno@clisp.org>
35287
35288         * modules/COPYING: Update copyright years.
35289         * modules/README: Likeiwse.
35290         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35291         Reported by Ian Beckwith <ianb@erislabs.net>.
35292
35293 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35294
35295         * users.txt: Update references for gnuit package.
35296
35297 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35298
35299         * m4/getdelim.m4: Fix typo in copyright line.
35300
35301 2009-09-17  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/atoll.c: Use the standard header with GPL copyright.
35304         * lib/argz.in.h: Likewise.
35305         * lib/glob.c: Likewise.
35306         * lib/glob-libc.h: Likewise.
35307         * lib/random_r.c: Likewise.
35308         * lib/siglist.h: Likewise.
35309         * lib/strsignal.c: Likewise.
35310         Reported by Ian Beckwith <ianb@erislabs.net>.
35311
35312 2009-09-17  Eric Blake  <ebb9@byu.net>
35313
35314         rmdir: ensure correct dependency order
35315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35316
35317 2009-09-17  Bruno Haible  <bruno@clisp.org>
35318
35319         Disable assertion that fails on NetBSD 5 / i386.
35320         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35321         Reported by Sam Steingold <sds@gnu.org>
35322         and Hasso Tepper <hasso@netbsd.org>.
35323
35324 2009-09-16  Eric Blake  <ebb9@byu.net>
35325
35326         unlinkdir: port to mingw
35327         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35328         on which no one can unlink a directory.
35329
35330         stdlib: sort witness names
35331         * modules/stdlib (Makefile.am): Sort replacements.
35332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35333         * lib/stdlib.in.h: Likewise.
35334
35335         parse-duration-tests: avoid link failure
35336         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35337         LIBINTL.
35338         Reported by Tom G. Christensen.
35339
35340         openat-tests: ensure unlinkat behaves like rmdir
35341         * tests/test-rmdir.c (main): Factor guts...
35342         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35343         * modules/rmdir-tests (Files): Ship new file.
35344         * modules/openat-tests: New test.
35345         * tests/test-unlinkat.c: Likewise.
35346
35347         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35348         * modules/rmdir-errno (Status, Notice): Now obsolete.
35349
35350         rmdir: work around cygwin 1.5.x and mingw bugs
35351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35352         * lib/rmdir.c (rmdir): Work around it.
35353         * modules/rmdir (Status, Notice): No longer obsolete.
35354         (Files): Add dos.m4.
35355         (Depends-on): Add unistd.
35356         (configure.ac): Set witnesses.
35357         (License): Relax to LGPLv2+.
35358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35359         * modules/unistd (Makefile.am): Substitute witnesses.
35360         * lib/unistd.in.h (rmdir): Declare replacement.
35361         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35362         * modules/rmdir-tests: New tests.
35363         * tests/test-rmdir.c: Likewise.
35364
35365 2009-09-15  Eric Blake  <ebb9@byu.net>
35366
35367         fchdir: improve use of replacement functions
35368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35371         REPLACE_CLOSEDIR.
35372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35373         * modules/sys_stat (Makefile.am): Substitute correct witness.
35374         * modules/dirent (Makefile.am): Likewise.
35375         * modules/unistd (Makefile.am): Likewise.
35376         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35377         * lib/unistd.in.h (dup): Likewise.
35378         * lib/sys_stat.in.h (fstat): Likewise.
35379
35380         maint: ignore gnulib-tool temp files
35381         * .gitignore: Ignore files created during gnulib-tool --test.
35382
35383 2009-09-13  Jim Meyering  <meyering@redhat.com>
35384
35385         posixtm: don't reject a time that specify "60" as the number of seconds
35386         * lib/posixtm.c (posixtime): The code to reject invalid dates
35387         would also reject a time specified with the .60 suffix.
35388         But POSIX allows that, in order to accommodate leap seconds.
35389         So don't reject it.
35390         (main): Adjust tests accordingly.
35391         * modules/posixtm (Depends-on): Add stpcpy.
35392
35393 2009-09-11  Jim Meyering  <meyering@redhat.com>
35394
35395         announce-gen: include [$release_type] in emitted Subject:
35396         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35397         e.g., [stable] in the emitted Subject: line.
35398
35399 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35400
35401         Remove obsolete macros from several modules.
35402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35403         obsolete Autoconf macros with their modern counterparts.
35404         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35405         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35407         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35408         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35412         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35413         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35414         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35416         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35417         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35418         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35420         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35421         * m4/time_r.m4 (gl_TIME_R): Likewise.
35422         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35423         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35424         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35425
35426         Fix copyright header in build-aux scripts.
35427         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35428         recommendation.
35429         * build-aux/ncftpput-ftp: Likewise.
35430         * build-aux/update-copyright: Likewise.
35431
35432 2009-09-09  Eric Blake  <ebb9@byu.net>
35433
35434         test-link: allow Linux choice of errno
35435         * tests/test-link.c (main): Relax test for alternate error.
35436
35437         strndup: fix improper m4 caching
35438         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35439         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35440         (gl_PREREQ_STRNDUP): Delete.
35441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35442         * modules/string (Makefile.am): Substitute it.
35443         * lib/string.in.h (strndup): Modernize prototype.
35444
35445         getcwd: port to mingw
35446         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35447         different from the POSIX assumptions made throughout the getcwd
35448         module; fortunately, the mingw getcwd does not need replacement.
35449         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35450         * modules/getcwd-tests: New test.
35451         * tests/test-getcwd.c: Likewise.
35452
35453         link: fix platform bugs
35454         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35455         * lib/link.c (link): Work around them.  Fix related mingw bug.
35456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35457         * modules/unistd (Makefile.am): Substitute it.
35458         * lib/unistd.in.h (link): Declare replacement.
35459         * doc/posix-functions/link.texi (link): Document this.
35460         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35461
35462         test-link: consolidate into single C program, test more cases
35463         * tests/test-link.sh: Delete.
35464         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35465         at least Cygwin and Solaris.
35466         * modules/link-tests (Files): Remove unused file.
35467         (Depends-on): Add errno, sys_stat.
35468         (Makefile.am): Simplify.
35469
35470 2009-09-08  Bruno Haible  <bruno@clisp.org>
35471
35472         Work around towlower, towupper bug on mingw.
35473         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35474         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35475         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35476         * doc/posix-functions/towupper.texi: Likewise.
35477         Reported by Eric Blake.
35478
35479 2009-09-08  Jim Meyering  <meyering@redhat.com>
35480
35481         build: don't try to run autoheader if we don't use it
35482         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35483         is not used in configure.ac.
35484
35485 2009-09-08  Eric Blake  <ebb9@byu.net>
35486
35487         euidaccess: fix compilation error
35488         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35489
35490         rawmemchr: relax license
35491         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35492         okay.
35493         Reported by Jim Meyering.
35494
35495         mkfifoat: new module
35496         * modules/mkfifoat: New file.
35497         * lib/mkfifoat.c: Likewise.
35498         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35500         * modules/sys_stat (Makefile.am): Use them.
35501         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35502         * MODULES.html.sh (File system functions): Mention module.
35503         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35504         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35505         * modules/mkfifoat-tests: New test.
35506         * tests/test-mkfifoat.c: Likewise.
35507
35508         strchrnul: relax license
35509         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35510         okay.
35511         Reported by Jim Meyering.
35512
35513 2009-09-08  Eric Blake  <ebb9@byu.net>
35514
35515         fstatat: fix compilation on Solaris
35516         * lib/fstatat.c (includes): Add fcntl.h.
35517         Reported by Pádraig Brady.
35518
35519 2009-09-07  Eric Blake  <ebb9@byu.net>
35520
35521         rename: modernize replacement
35522         * modules/rename (Depends-on): Add stdio.
35523         (configure.ac): Declare witness.
35524         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35525         stdio take care of replacement.
35526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35527         * modules/stdio (Makefile.am): Substitute them.
35528         * lib/stdio.in.h (rename): Declare replacement.
35529         * lib/rename.c (includes): Allow cross-compilation to non-windows
35530         machines.
35531         * doc/posix-functions/rename.texi (rename): Improve
35532         documentation.
35533
35534         stdio: sort witness names
35535         * modules/stdio (Makefile.am): Sort replacements.
35536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35537         * lib/stdio.in.h: Likewise.
35538
35539         getcwd: minor cleanups
35540         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35541         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35542
35543         openat: provide more convenience names
35544         * modules/faccessat (configure.ac): Add C witness.
35545         * lib/unistd.in.h (readlinkat): Fix typo.
35546         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35547         convenience wrappers.
35548         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35549         wrappers in syntax checks.
35550
35551 2009-09-06  Eric Blake  <ebb9@byu.net>
35552
35553         doc: fix comments in recent patches
35554         * lib/faccessat.c: Mention correct function.
35555         * lib/fchmodat.c: Likewise.
35556         * lib/fchownat.c: Likewise.
35557         * lib/symlinkat.c: Likewise.
35558         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35559         constants.
35560
35561         faccessat, symlinkat: continue cleanup of previous patch
35562         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35563         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35564         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35566         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35567         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35568         set.
35569
35570 2009-09-06  Bruno Haible  <bruno@clisp.org>
35571
35572         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35573         (fstatat): Declare if GNULIB_FSTATAT is set.
35574         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35575         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35576         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35577         * modules/fcntl-h (Files): Remove m4/openat.m4.
35578         * modules/sys_stat (Files): Remove m4/openat.m4.
35579         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35580         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35581         * modules/unistd (Files): Remove m4/openat.m4.
35582         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35583         GNULIB_OPENAT.
35584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35585         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35587         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35588         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35589         gl_OPENAT_DEFAULTS.
35590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35591         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35592         Don't require gl_OPENAT_DEFAULTS.
35593         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35594         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35595         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35596         (gl_OPENAT_DEFAULTS): Remove macro.
35597
35598 2009-09-06  Bruno Haible  <bruno@clisp.org>
35599
35600         * modules/openat (configure.ac): Remove unneeded witness.
35601
35602 2009-09-06  Bruno Haible  <bruno@clisp.org>
35603
35604         Set errno to ENOSYS when a function is entirely unsupported.
35605         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35606         EOPNOTSUPP.
35607         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35608         * modules/chown (Depends-on): Remove errno.
35609
35610 2009-09-06  Bruno Haible  <bruno@clisp.org>
35611
35612         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35613
35614 2009-09-06  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35617
35618 2009-09-06  Ben Pfaff  <blp@gnu.org>
35619             Bruno Haible  <bruno@clisp.org>
35620
35621         Work around a glibc bug in strtok_r.
35622         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35623         Undefine if UNDEFINE_STRTOK_R is set.
35624         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35626         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35628         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35629         UNDEFINE_STRTOK_R.
35630         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35631
35632 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35633
35634         exclude: minor fix
35635         * lib/exclude.c: Include wctype.h
35636
35637 2009-09-06  Akim Demaille  <demaille@gostai.com>
35638
35639         bootstrap: improve error message
35640         * build-aux/bootstrap (find_tool): Upon failure, report the list
35641         of candidates.
35642         Honor the initial value of the envvar.
35643
35644 2009-09-05  Eric Blake  <ebb9@byu.net>
35645
35646         symlinkat: new module
35647         * modules/symlinkat: New file.
35648         * lib/symlinkat.c: Likewise.
35649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35651         * modules/unistd (Makefile.am): Use them.
35652         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35653         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35654         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35655         * MODULES.html.sh (File system functions): Mention module.
35656         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35657         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35658         * modules/symlinkat-tests: New test.
35659         * tests/test-symlinkat.c: Likewise.
35660
35661         test-openat-safer: add more checks
35662         * tests/test-openat-safer.c (main): Check more code paths.
35663
35664 2009-09-05  Jim Meyering  <meyering@redhat.com>
35665
35666         syntax-check: detect unnecessary inclusion of openat.h
35667         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35668
35669 2009-09-05  Bruno Haible  <bruno@clisp.org>
35670
35671         Support towlower, towupper.
35672         * doc/posix-functions/towlower.texi: Mention module wctype.
35673         * doc/posix-functions/towupper.texi: Likewise.
35674         * lib/wctype.in.h (towlower, towupper): New functions.
35675         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35676         (ASSERT): New macro.
35677         (e): New variable.
35678         (main): Test also towlower, towupper. Test WEOF argument.
35679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35680
35681 2009-09-05  Bruno Haible  <bruno@clisp.org>
35682
35683         Fix conversion behaviour when the input is invalid.
35684         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35685         mark occurring in first pass of indirect conversion.
35686         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35687         input.
35688         Found by clang's static analyzer.
35689
35690 2009-09-05  Bruno Haible  <bruno@clisp.org>
35691
35692         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35693         where direct conversion is possible.
35694
35695 2009-09-04  Eric Blake  <ebb9@byu.net>
35696
35697         openat: fail with ENOENT on empty name
35698         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35699         buffer.
35700
35701         link-follow: fix logic bug in prior patch
35702         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35703         reversed sense of yes and no in prior patch.  Avoid confusing
35704         compilation failure with desired semantics.
35705
35706         link-follow: accomodate mingw and cross-compilation
35707         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35708         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35709         cross-compilation results to -1, to make linkat easier to
35710         implement when cross-compiling.  Trivially support mingw.
35711         * modules/link-follow (configure.ac): Call new name.
35712         * NEWS: Mention this.
35713
35714 2009-09-03  Eric Blake  <ebb9@byu.net>
35715
35716         faccessat: compile replacement
35717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35718         needed.
35719
35720         fts: fix compilation error
35721         * lib/fts.c (includes): Re-add "openat.h", for
35722         openat_needs_fchdir.
35723
35724         faccessat: new module
35725         * modules/faccessat: New file.
35726         * lib/faccessat.c: Likewise.
35727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35729         * modules/unistd (Makefile.am): Use it.
35730         * lib/unistd.in.h (faccessat): Declare it.
35731         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35732         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35733         * MODULES.html.sh (File system functions): Mention it.
35734         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35735         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35736
35737         euidaccess: prefer POSIX over non-standard implementation
35738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35739         * lib/euidaccess.c (euidaccess): Use it if available.
35740
35741         openat: make template easier to use
35742         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35743         AT_FUNC_F2 to be undefined.
35744         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35745         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35746         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35747         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35748         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35749         Likewise.
35750         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35751         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35752         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35753         Likewise.
35754
35755         openat: declare in POSIX headers
35756         * NEWS: Mention this.
35757         * modules/openat (configure.ac): Declare witnesses.
35758         (Depends-on): Add fcntl-h, sys_stat, unistd.
35759         (Include): Mention correct headers.
35760         * modules/fcntl-h (Depends-on): Add link-warning.
35761         (Files): Add openat.m4.
35762         (Makefile.am): Substitute witnesses.
35763         * modules/sys_stat (Files, Makefile.am): Likewise.
35764         * modules/unistd (Files, Makefile.am): Likewise.
35765         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35766         (gl_OPENAT_DEFAULTS): New macro.
35767         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35770         (SYS_STAT_H): Remove unused variable.
35771         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35772         * lib/fcntl--.h (includes): Remove unneeded header.
35773         * lib/openat-safer.c (includes): Likewise.
35774         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35775         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35776         appropriate headers.
35777         (__OPENAT_PREFIX): Delete.
35778         * lib/fcntl.in.h (openat): Provide declaration.
35779         (AT_FDCWD): Fix Solaris bug.
35780         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35781         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35782         * lib/fchmodat.c (includes):  Adjust to find declaration.
35783         * lib/fchownat.c (includes): Likewise.
35784         * lib/mkdirat.c (includes): Likewise.
35785         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35786         still visible.
35787
35788 2009-09-02  Eric Blake  <ebb9@byu.net>
35789
35790         errno: use consistently
35791         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35792         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35793         * lib/canonicalize.c (ELOOP): Likewise.
35794         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35795         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35796         * lib/lchown.c (EOPNOTSUPP): Likewise.
35797         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35798         * lib/savewd.c (ESTALE): Likewise.
35799         * lib/settime.c (ENOSYS): Likewise.
35800         * lib/utimens.c (ENOSYS): Likewise.
35801         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35802         * lib/chdir-safer.c (ELOOP): Likewise.
35803         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35804         * modules/c-stack (Depends-on): Add errno.
35805         * modules/canonicalize (Depends-on): Likewise.
35806         * modules/chdir-safer (Depends-on): Likewise.
35807         * modules/fdopendir (Depends-on): Likewise.
35808         * modules/inet_ntop (Depends-on): Likewise.
35809         * modules/inet_pton (Depends-on): Likewise.
35810         * modules/lchown (Depends-on): Likewise.
35811         * modules/openat (Depends-on): Likewise.
35812         * modules/savewd (Depends-on): Likewise.
35813         * modules/settime (Depends-on): Likewise.
35814         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35815
35816         fts: avoid leaking fds
35817         * modules/fts (Depends-on): Add cloexec.
35818         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35819         flag.
35820
35821         fts: make directory fds more robust
35822         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35823         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35824
35825         backupfile, chdir-long, fts, savedir: make safer
35826         * lib/backupfile.c (includes): Use "dirent--.h", since
35827         numbered_backup can write to stderr during readdir.
35828         * lib/savedir.c (includes): Likewise.
35829         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35830         emulation can write to stderr on failure.
35831         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35832         * lib/getcwd.c: Document why opendir_safer is unused.
35833         * lib/glob.c: Likewise.
35834         * lib/scandir.c: Likewise.
35835         * lib/openat-proc.c: Likewise, for open_safer.
35836         * modules/backupfile (Depends-on): Add dirent-safer.
35837         * modules/savedir (Depends-on): Likewise.
35838         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35839         * modules/chdir-long (Depends-on): Add openat-safer.
35840
35841         openat-safer: new module
35842         * modules/openat-safer: New file.
35843         * lib/openat-safer.c: Likewise.
35844         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35845         * lib/fcntl-safer.h (openat_safer): Declare.
35846         * lib/fcntl--.h (openat): Override.
35847         * MODULES.html.sh (File descriptor based I/O): Mention it.
35848         * lib/openat.h: Add double-inclusion guards.
35849         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35850         "fcntl--.h", so we can implement openat.
35851         * modules/openat-safer-tests: New test.
35852         * tests/test-openat-safer.c: New file.
35853
35854         dirent-safer: new module
35855         * modules/dirent-safer: New file.
35856         * lib/dirent--.h: Likewise.
35857         * lib/dirent-safer.h: Likewise.
35858         * lib/opendir-safer.c: Likewise.
35859         * m4/dirent-safer.m4: Likewise.
35860         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35861         * modules/dirent-safer-tests: New test.
35862         * tests/test-dirent-safer.c: New file.
35863         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35864
35865         fdopendir: optimize on mingw
35866         * lib/unistd.in.h (_gl_directory_name): New prototype.
35867         * lib/fchdir.c (_gl_directory_name): Implement it.
35868         (fchdir): Use it to simplify implementation.
35869         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35870         fchdir, when available, to avoid calling [f]chdir().
35871
35872         fdopendir: split into its own module
35873         * lib/openat.c (fdopendir): Move...
35874         * lib/fdopendir.c: ...into new file.
35875         * modules/fdopendir: New module.
35876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35877         * modules/openat (Depends-on): Add fdopendir.
35878         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35879         fdopendir here.
35880         * modules/savedir (Depends-on): Only need fdopendir, not full
35881         openat.
35882         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35883         * lib/openat.h (fdopendir): Drop prototype.
35884         * lib/dirent.in.h (fdopendir): Provide prototype.
35885         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35886         * modules/dirent (Makefile.am): Substitute them.
35887         * MODULES.html.sh (File system functions): Mention it.
35888         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35889         * modules/fdopendir-tests: New file.
35890         * tests/test-fdopendir.c: Likewise.
35891
35892         fchdir: use more consistent macro convention
35893         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35894         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35895         REPLACE_FCHDIR, rather than relying on config.h macros.
35896         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35897         inside a single make-time REPLACE_FCHDIR block, rather than using
35898         the config.h FCHDIR_REPLACEMENT.
35899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35900         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35901         Manage fstat replacement.
35902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35903         REPLACE_FCHDIR.
35904         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35905         (Makefile.am): Substitute REPLACE_FCHDIR.
35906         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35907         FCHDIR_REPLACEMENT.
35908         * lib/dup-safer.c (dup_safer): Likewise.
35909         * lib/dup2.c (rpl_dup2): Likewise.
35910         * lib/dup3.c (rpl_dup3): Likewise.
35911         * lib/open.c (rpl_open): Likewise.
35912
35913         fchdir: simplify error handling, and support dup3
35914         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35915         stdbool, malloc-posix, realloc-posix.
35916         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35917         (ensure_dirs_slot): Return false on allocation failure.
35918         (rpl_dup2): Delete.
35919         (_gl_register_dup): New function.
35920         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35921         (_gl_register_fd): Close fd on allocation failure.
35922         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35923         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35924         prototype.
35925         (rpl_dup2_fchdir): Delete prototype.
35926         * lib/open.c (open): Update caller.
35927         * lib/dup2.c (dup2): Track fchdir metadata.
35928         * lib/dup3.c (dup3): Likewise.
35929         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35931
35932 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35933
35934         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35935         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35936         don't pass arguments to AC_OUTPUT.
35937
35938 2009-09-02  Bruno Haible  <bruno@clisp.org>
35939
35940         * modules/mkdtemp (License): Relicense under LGPLv2+.
35941         Reported by Paolo Bonzini.
35942
35943 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35944
35945         Replace uses of obsolete autoconf macros in Jim's modules.
35946         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35947         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35948         can evoke a warning from autoconf when run with -Wobsolete
35949         enabled.  They were declared obsolete for good reasons (see
35950         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35951         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35952         should not continue using the deprecated macros.
35953         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35954         obsolete Autoconf macros with modern counterparts.
35955         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35956         * m4/dos.m4 (gl_AC_DOS): Likewise.
35957         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35959         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35960         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35961         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35963         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35964         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35965         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35966         Likewise.
35967         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35969         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35970         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35971         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35972         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35973
35974 2009-09-01  Eric Blake  <ebb9@byu.net>
35975
35976         fchdir: fix off-by-one bug in previous patch
35977         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35978         (_gl_unregister_fd): Delete useless if.
35979
35980 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35981
35982         maint.mk: sort the list of syntax-check rules
35983         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35984         easier to get a sense of progress when the rules are run sequentially
35985         and take a long time.
35986
35987 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35988
35989         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35990         * modules/netinet_in: Likewise.
35991         * modules/sys_file: Likewise.
35992         * modules/sys_ioctl: Likewise.
35993         * modules/sys_select: Likewise.
35994         * modules/sys_socket: Likewise.
35995         * modules/sys_stat: Likewise.
35996         * modules/sys_time: Likewise.
35997         * modules/sys_times: Likewise.
35998         * modules/sys_utsname: Likewise.
35999         * modules/sys_wait: Likewise.
36000
36001 2009-09-01  Jim Meyering  <meyering@redhat.com>
36002
36003         fts: help ensure that return values are not ignored
36004         * lib/fts_.h (__GNUC_PREREQ): Define.
36005         (__attribute_warn_unused_result__): Define.
36006         (fts_children, fts_close, fts_open, fts_read): Declare with
36007         __attribute_warn_unused_result__.
36008
36009         fts: fts_close now fails also when closing a dir file descriptor fails
36010         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36011         and propagate to caller, along with errno.
36012
36013         announce-gen: correct formatting in --help output
36014         * build-aux/announce-gen (usage): Move the one-line description in
36015         --help output "up", to where it belongs, just after Usage:.
36016
36017 2009-08-31  Eric Blake  <ebb9@byu.net>
36018
36019         fchdir: port to mingw
36020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36021         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36022         opened, then use a substitute.
36023         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36024         replacement.
36025         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36026         (_gl_register_fd): No need to check stat if open already filters
36027         all directories.
36028         (fchdir): Fix error condition to match POSIX.
36029         * modules/fchdir (Depends-on): Add sys_stat.
36030         * doc/posix-functions/open.texi (open): Document the limitation.
36031         * modules/fchdir-tests: New file.
36032         * tests/test-fchdir.c: Likewise.
36033
36034         canonicalize: allow cross-testing from cygwin to mingw
36035         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36036         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36037         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36038         Likewise.
36039         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36040         target does not support symlinks.
36041         * tests/test-canonicalize-lgpl.sh: Likewise.
36042
36043         chown: avoid compilation warning on mingw
36044         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36045         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36046         mingw.
36047         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36048         * modules/chown (Depends-on): Add errno.
36049
36050 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36051
36052         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36053         command.
36054
36055 2009-08-31  Jim Meyering  <meyering@redhat.com>
36056
36057         canonicalize: remove useless initialization
36058         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36059         initialization of local, "end".
36060
36061 2009-08-30  Bruno Haible  <bruno@clisp.org>
36062
36063         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36064         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36065         ENOSYS.
36066
36067 2009-08-30  Bruno Haible  <bruno@clisp.org>
36068
36069         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36070         /usr/xpg4/bin/tr when it exists.
36071         * tests/test-pipe-filter-gi1.sh: Likewise.
36072
36073 2009-08-30  Bruno Haible  <bruno@clisp.org>
36074
36075         Work around deficient /usr/bin/id program on Solaris.
36076         * tests/test-file-has-acl.sh (ID): New variable.
36077         * tests/test-set-mode-acl.sh (ID): Likewise.
36078         * tests/test-copy-acl.sh (ID): Likewise.
36079         * tests/test-copy-file.sh (ID): Likewise.
36080
36081 2009-08-30  Bruno Haible  <bruno@clisp.org>
36082
36083         New module 'xstriconveh'.
36084         * lib/xstriconveh.h: New file.
36085         * lib/xstriconveh.c: New file.
36086         * modules/xstriconveh: New file.
36087
36088 2009-08-30  Bruno Haible  <bruno@clisp.org>
36089
36090         Make it easier to use mem_cd_iconveh.
36091         * lib/striconveh.h (iconveh_t): New type.
36092         (iconveh_open, iconveh_close): New declarations.
36093         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36094         with a single 'const iconveh_t *' argument.
36095         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36096         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36097         with a single 'const iconveh_t *' argument.
36098         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36099         * tests/test-striconveh.c (main): Update.
36100         * NEWS: Mention the change.
36101
36102 2009-08-30  Bruno Haible  <bruno@clisp.org>
36103
36104         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36105         problem.
36106
36107 2009-08-30  Bruno Haible  <bruno@clisp.org>
36108
36109         Work around iconv_open problem on Solaris.
36110         * lib/iconv_open-solaris.gperf: New file.
36111         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36112         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36113         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36114         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36115         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36116         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36117
36118 2009-08-29  Jim Meyering  <meyering@redhat.com>
36119
36120         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36121         * top/maint.mk (cvs-check): Remove target; it was just an alias
36122         to the better-named vc-diff-check.
36123         (maintainer-distcheck): Remove rule.  It was used only from
36124         the (alpha/beta/major) target, and all of its commands but one
36125         were coreutils-specific.
36126         (vc-dist): Remove rule.
36127         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36128         Run vc-diff-check, not vc-dist.
36129         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36130
36131 2009-08-27  Bruno Haible  <bruno@clisp.org>
36132
36133         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36134         of 0.
36135
36136 2009-08-27  Bruno Haible  <bruno@clisp.org>
36137
36138         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36139         compilers.
36140         * doc/func.texi: Document the SunPRO C bug.
36141
36142 2009-08-27  Bruno Haible  <bruno@clisp.org>
36143
36144         Fix link error on Solaris.
36145         * tests/test-parse-duration.c (xstrdup): Remove function.
36146
36147 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36148
36149         ignore-value: handle pointer types, too
36150         * lib/ignore-value.h (__attribute__): Remove definition.
36151         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36152         of a more concise and more-often effective "(void) i" statement.
36153         (ignore_ptr): New function to suppress warnings from functions that
36154         return pointers, and to make it explicit that one function doesn't
36155         handle all cases.
36156
36157 2009-08-25  Bruno Haible  <bruno@clisp.org>
36158
36159         dup2: work around a Linux bug.
36160         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36161         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36162         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36163         Reported by Simon Josefsson.
36164
36165 2009-08-25  Jim Meyering  <meyering@redhat.com>
36166
36167         libguestfs uses gnulib
36168         * users.txt: Add libguestfs.
36169
36170 2009-08-24  Eric Blake  <ebb9@byu.net>
36171
36172         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36173         * lib/pipe2.c (includes): Add binary-io.h.
36174         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36175
36176 2009-08-24  Bruno Haible  <bruno@clisp.org>
36177
36178         Tolerate declared but missing accept4 syscall.
36179         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36180         available.
36181         * lib/sys_socket.in.h (accept4): If the function is already present,
36182         override it.
36183         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36184         * modules/accept4 (Makefile.am): Compile accept4.c always.
36185         Reported by Paolo Bonzini and Eric Blake.
36186
36187 2009-08-23  Bruno Haible  <bruno@clisp.org>
36188
36189         New module 'accept4'.
36190         * lib/sys_socket.in.h (accept4): New declaration.
36191         * lib/accept4.c: New file.
36192         * m4/accept4.m4: New file.
36193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36194         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36195         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36196         HAVE_ACCEPT4.
36197         * modules/accept4: New file.
36198         * doc/glibc-functions/accept4.texi: Mention the new module.
36199
36200 2009-08-24  Jim Meyering  <meyering@redhat.com>
36201
36202         progname: also set global program_invocation_name, when possible
36203         Before this change, a libtool-enabled program that calls glibc's
36204         error function would report the program name as
36205         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36206         * modules/progname (configure.ac): Check for a declaration of
36207         program_invocation_name.
36208         * lib/progname.c:  Include <errno.h>.
36209         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36210         Set program_invocation_name.
36211
36212 2009-08-23  Bruno Haible  <bruno@clisp.org>
36213
36214         * lib/dup3.c: Include <string.h>.
36215
36216 2009-08-23  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36219         * lib/pipe2.c (pipe2): Likewise.
36220         Suggested by Eric Blake.
36221
36222 2009-08-23  Bruno Haible  <bruno@clisp.org>
36223
36224         Tolerate declared but missing dup3 syscall.
36225         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36226         * lib/unistd.in.h (dup3): If the function is already present,
36227         override it.
36228         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36229         * modules/dup3 (Makefile.am): Compile dup3.c always.
36230         Reported by Paolo Bonzini.
36231
36232 2009-08-23  Bruno Haible  <bruno@clisp.org>
36233
36234         Tolerate declared but missing pipe2 syscall.
36235         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36236         available.
36237         * lib/unistd.in.h (pipe2): If the function is already present,
36238         override it.
36239         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36240         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36241         Reported by Paolo Bonzini.
36242
36243 2009-08-23  Bruno Haible  <bruno@clisp.org>
36244
36245         * lib/pipe2.c (pipe2): Move #ifs inside function.
36246
36247 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36248
36249         quotearg: document limitations of quote_these_too
36250         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36251         those limitations are created.
36252         * lib/quotearg.h (set_char_quoting): Document that digits and
36253         letters that are special after backslash are not permitted.
36254         (quotearg_char): Cross-reference set_char_quoting documentation.
36255
36256 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36257
36258         quotearg: implement custom_quoting_style
36259         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36260         right_quote fields.
36261         (set_custom_quoting): New public function.
36262         (quotearg_buffer_restyled): Add left_quote and right_quote
36263         arguments, handle them very much like locale quoting, and update
36264         all uses.
36265         (quotearg_n_custom): New public function.
36266         (quotearg_n_custom_mem): New public function.
36267         (quotearg_custom): New public function.
36268         (quotearg_custom_mem): New public function.
36269         * lib/quotearg.h: Prototype and document new public functions.
36270         (enum quoting_style): For escape_quoting_style and
36271         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36272         ignored even though they're otherwise like c_quoting_style.
36273         Add custom_quoting_style member and document with comparison to
36274         clocale_quoting_style.
36275         * tests/test-quotearg.c (custom_quotes): New array.
36276         (custom_results): New array.
36277         (main): Extend to test custom quoting.
36278
36279 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36280
36281         quotearg: fix right quote escaping when it's in quote_these_too
36282         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36283         quote, be sure to prepend only one backslash.
36284         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36285         (main): Test it.
36286
36287 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36288
36289         quotearg-tests: test escaping of embedded locale quotes
36290         * tests/test-quotearg.c (struct result_strings): Add member for
36291         new input.
36292         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36293         (inputs): Add new input.
36294         (results_g): Add expected results.
36295         (flag_results): Likewise.
36296         (locale_results): Likewise.
36297         (compare_strings): Check those.
36298
36299 2009-08-23  Bruno Haible  <bruno@clisp.org>
36300
36301         Tests for module 'dup3'.
36302         * modules/dup3-tests: New file.
36303         * tests/test-dup3.c: New file.
36304
36305         New module 'dup3'.
36306         * lib/unistd.in.h (dup3): New declaration.
36307         * lib/dup3.c: New file.
36308         * m4/dup3.m4: New file.
36309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36310         HAVE_DUP3.
36311         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36312         * modules/dup3: New file.
36313         * doc/glibc-functions/dup3.texi: Mention the new module.
36314
36315 2009-08-23  Bruno Haible  <bruno@clisp.org>
36316
36317         Tweak the dup2 test.
36318         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36319         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36320         the test file is still empty. Fix argument order of lseek.
36321
36322 2009-08-23  Bruno Haible  <bruno@clisp.org>
36323
36324         Avoid test link errors when the modules getopt-gnu, gettext are used.
36325         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36327
36328 2009-08-23  Bruno Haible  <bruno@clisp.org>
36329
36330         Fix getdtablesize() on mingw.
36331         * lib/getdtablesize.c (getdtablesize): Implement differently.
36332         * lib/unistd.in.h (getdtablesize): Improve comment.
36333
36334 2009-08-23  Bruno Haible  <bruno@clisp.org>
36335
36336         New module 'mkostemp'.
36337         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36338         * lib/stdlib.in.h (mksotemp): New declaration.
36339         * lib/mkostemp.c: New file, from glibc with modifications.
36340         * lib/tempname.h (GT_FILE): Remove outdated comment.
36341         (gen_tempname): Add flags argument.
36342         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36343         (__GT_FILE): Map to 1.
36344         (small_open, large_open): Remove macros.
36345         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36346         * lib/mkstemp.c (mkstemp): Update.
36347         * lib/mkdtemp.c (mkdtemp): Likewise.
36348         * m4/mkostemp.m4: New file.
36349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36350         HAVE_MKOSTEMP.
36351         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36352         HAVE_MKOSTEMP.
36353         * modules/mkostemp: New file, based on modules/mkstemp.
36354         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36355         * NEWS: Mention the change.
36356
36357 2009-08-23  Bruno Haible  <bruno@clisp.org>
36358
36359         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36360         Reported by Eric Blake.
36361
36362 2009-08-23  Bruno Haible  <bruno@clisp.org>
36363
36364         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36365         Reported by Eric Blake.
36366
36367 2009-08-23  Bruno Haible  <bruno@clisp.org>
36368
36369         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36370         * modules/pipe2 (Depends-on): Likewise.
36371
36372 2009-08-23  Eric Blake  <ebb9@byu.net>
36373
36374         fcntl-h: add O_TTY_INIT support
36375         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36376         * tests/test-fcntl-h.c (o): Test it.
36377         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36378
36379         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36380         * modules/fcntl: Move <fcntl.h> header replacement...
36381         * modules/fcntl-h: ...to new name, so as not to collide with
36382         like-named function.
36383         * tests/test-fcntl.c: Rename...
36384         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36385         * modules/fcntl-tests: Rename...
36386         * modules/fcntl-h-tests: ...to this.  Update test file name.
36387         * modules/chdir-long (Depends-on): Update clients.
36388         * modules/chdir-safer (Depends-on): Likewise.
36389         * modules/fcntl-safer (Depends-on): Likewise.
36390         * modules/fts (Depends-on): Likewise.
36391         * modules/mkancesdirs (Depends-on): Likewise.
36392         * modules/mkdir-p (Depends-on): Likewise.
36393         * modules/open (Depends-on): Likewise.
36394         * modules/savewd (Depends-on): Likewise.
36395         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36396         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36397
36398 2009-08-22  Bruno Haible  <bruno@clisp.org>
36399
36400         * modules/binary-io (License): Relicense under LGPL.
36401         * modules/pipe2 (License): Likewise.
36402
36403 2009-08-22  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36406         return value.
36407         * lib/pipe-filter-gi.c (filter_init): Likewise.
36408         Reported by Eric Blake.
36409
36410 2009-08-22  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36413         * modules/pipe (Depends-on): Add pipe2.
36414
36415 2009-08-22  Bruno Haible  <bruno@clisp.org>
36416
36417         Tests for module 'pipe2'.
36418         * modules/pipe2-tests: New file.
36419         * tests/test-pipe2.c: New file.
36420
36421         New module 'pipe2'.
36422         * lib/unistd.in.h (pipe2): New declaration.
36423         * lib/pipe2.c: New file.
36424         * m4/pipe2.m4: New file.
36425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36426         HAVE_PIPE2.
36427         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36428         * modules/pipe2: New file.
36429         * doc/glibc-functions/pipe2.texi: Mention the new module.
36430
36431 2009-08-22  Bruno Haible  <bruno@clisp.org>
36432
36433         Reference some new glibc functions.
36434         * doc/glibc-functions/accept4.texi: New file.
36435         * doc/glibc-functions/dup3.texi: New file.
36436         * doc/glibc-functions/mkostemp.texi: New file.
36437         * doc/glibc-functions/pipe2.texi: New file.
36438         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36439         (Glibc sys/socket.h): Refer to accept4.
36440         (Glibc unistd.h): Refer to dup3, pipe2.
36441         Reported by Eric Blake.
36442
36443 2009-08-22  Jim Meyering  <meyering@redhat.com>
36444             Bruno Haible  <bruno@clisp.org>
36445
36446         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36447         This makes it so packages using automake-1.11's silent-rules option
36448         can print e.g., a single "GEN    configmake.h" line, rather than
36449         the 30+ statements that perform the job.  If you want to see the
36450         actual commands, you can still run "make V=1".
36451         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36452         so that make output is abbreviated when those variables are defined
36453         appropriately.
36454         * modules/argz: Likewise.
36455         * modules/arpa_inet: Likewise.
36456         * modules/byteswap: Likewise.
36457         * modules/configmake: Likewise.
36458         * modules/dirent: Likewise.
36459         * modules/errno: Likewise.
36460         * modules/fcntl: Likewise.
36461         * modules/float: Likewise.
36462         * modules/fnmatch: Likewise.
36463         * modules/getopt-posix: Likewise.
36464         * modules/glob: Likewise.
36465         * modules/iconv_open: Likewise.
36466         * modules/inttypes: Likewise.
36467         * modules/localcharset: Likewise.
36468         * modules/locale: Likewise.
36469         * modules/math: Likewise.
36470         * modules/netdb: Likewise.
36471         * modules/netinet_in: Likewise.
36472         * modules/poll: Likewise.
36473         * modules/posix_spawnp-tests: Likewise.
36474         * modules/sched: Likewise.
36475         * modules/search: Likewise.
36476         * modules/selinux-h: Likewise.
36477         * modules/signal: Likewise.
36478         * modules/spawn: Likewise.
36479         * modules/stdarg: Likewise.
36480         * modules/stdbool: Likewise.
36481         * modules/stddef: Likewise.
36482         * modules/stdint: Likewise.
36483         * modules/stdio: Likewise.
36484         * modules/stdlib: Likewise.
36485         * modules/string: Likewise.
36486         * modules/strings: Likewise.
36487         * modules/sys_file: Likewise.
36488         * modules/sys_ioctl: Likewise.
36489         * modules/sys_select: Likewise.
36490         * modules/sys_socket: Likewise.
36491         * modules/sys_stat: Likewise.
36492         * modules/sys_time: Likewise.
36493         * modules/sys_times: Likewise.
36494         * modules/sys_utsname: Likewise.
36495         * modules/sys_wait: Likewise.
36496         * modules/sysexits: Likewise.
36497         * modules/time: Likewise.
36498         * modules/unistd: Likewise.
36499         * modules/wchar: Likewise.
36500         * modules/wctype: Likewise.
36501
36502 2009-08-22  Jim Meyering  <meyering@redhat.com>
36503
36504         announce-gen: detect write failure
36505         * build-aux/announce-gen: Add Coda at end.
36506         Remove equivalent-but-more-verbose block at top.
36507
36508 2009-08-19  Akim Demaille  <demaille@gostai.com>
36509
36510         bootstrap: --help to stdout.
36511         * bootstrap (usage): Don't send --help to stderr.
36512         Use a here doc instead of a long string.
36513
36514 2009-08-21  Eric Blake  <ebb9@byu.net>
36515
36516         test-popen-safer: split from test-popen
36517         * tests/test-popen.c (main): Move...
36518         * tests/test-popen.h: ...into new file.
36519         * tests/test-popen-safer2.c: New file.
36520         * modules/popen-tests (Files): Add test-popen.h.
36521         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36522         Suggested by Bruno Haible.
36523
36524         test-fcntl-safer: split from test-open
36525         * tests/test-open.c (main): Move...
36526         * tests/test-open.h: ...into new file.
36527         * tests/test-fcntl-safer.c: New file.
36528         * modules/open-tests (Files): Add test-open.h.
36529         * modules/fcntl-safer-tests: New file.
36530         Suggested by Bruno Haible.
36531
36532         test-fopen-safer: split from test-fopen
36533         * tests/test-fopen.c (main): Move...
36534         * tests/test-fopen.h: ...into new file.
36535         * tests/test-fopen-safer.c: New file.
36536         * modules/fopen-tests (Files): Add test-fopen.h.
36537         * modules/fopen-safer-tests: New file.
36538         Suggested by Bruno Haible.
36539
36540 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36541
36542         popen-safer: test O_CLOEXEC at run-time.
36543         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36544
36545 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36546
36547         fcntl: move more flags to the header
36548         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36549         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36550         * lib/fcntl.in.h: Do both things here.
36551
36552 2009-08-21  Jim Meyering  <meyering@redhat.com>
36553
36554         consistently remove $@-t before redirecting to it
36555         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36556         * modules/alloca-opt: Likewise.
36557         * modules/byteswap: Likewise.
36558         * modules/fnmatch: Likewise.
36559         * modules/getopt-posix: Likewise.
36560         * modules/glob: Likewise.
36561         * modules/poll: Likewise.
36562         * modules/posix_spawnp-tests: Likewise.
36563         * modules/sys_socket: Likewise.
36564         * modules/sysexits: Likewise.
36565
36566 2009-08-21  Eric Blake  <ebb9@byu.net>
36567
36568         popen: simplify access to original popen
36569         * lib/popen.c (rpl_popen): No need to worry about popen being a
36570         macro.
36571         Reported by Bruno Haible.
36572
36573 2009-08-20  Eric Blake  <ebb9@byu.net>
36574
36575         build: avoid some compiler warnings
36576         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36577         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36578         type.
36579         (new_exclude_segment, excluded_file_pattern_p)
36580         (excluded_file_name_p): Reduce scope.
36581         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36582         old-style declaration.
36583
36584 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36585
36586         * tests/test-exclude1.sh: Handle Windows EOL.
36587         * tests/test-exclude2.sh: Likewise.
36588         * tests/test-exclude3.sh: Likewise.
36589         * tests/test-exclude4.sh: Likewise.
36590         * tests/test-exclude5.sh: Likewise.
36591         * tests/test-exclude6.sh: Likewise.
36592         * tests/test-exclude7.sh: Likewise.
36593
36594 2009-08-19  Akim Demaille  <demaille@gostai.com>
36595
36596         bootstrap: find sha1sum when named gsha1sum.
36597         * bootstrap (find_tool): New.
36598         ($SHA1SUM): New.
36599         Use it.
36600
36601 2009-08-20  Jim Meyering  <meyering@redhat.com>
36602
36603         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36604         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36605         expression that converts "." in a file name to "\." in the resulting
36606         regexp.  Start with a dummy statement, so that prior shell variable
36607         definitions are expanded portably.  Reported by Simon Josefsson.
36608
36609 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36610
36611         Fix polling for writeability of a screen buffer.
36612         * lib/poll.c: Distinguish input and screen buffers for the
36613         Win32 implementation.
36614         * lib/select.c: Likewise.
36615
36616 2009-08-19  Eric Blake  <ebb9@byu.net>
36617
36618         popen-safer: prevent popen from clobbering std descriptors
36619         * modules/popen-safer: New file.
36620         * lib/popen-safer.c: Likewise.
36621         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36622         * lib/stdio--.h (popen): Provide override.
36623         * lib/stdio-safer.h (popen_safer): Provide declaration.
36624         * tests/test-popen.c (includes): Partially test this.
36625         * modules/popen-safer-tests: New file, for more tests.
36626         * tests/test-popen-safer.c: Likewise.
36627         * MODULES.html.sh (file stream based Input/Output): Mention it.
36628
36629         tests: test some of the *-safer modules
36630         * modules/fopen-safer (Depends-on): Add fopen.
36631         * modules/fcntl-safer (Depends-on): Add fcntl.
36632         * modules/stdlib-safer (Depends-on): Add stdlib.
36633         (configure.ac): Set indicator.
36634         * modules/unistd-safer (configure.ac): Likewise.
36635         * modules/tmpfile-safer (configure.ac): Likewise.
36636         (Depends-on): Add tmpfile.
36637         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36638         active.
36639         * tests/test-fopen.c (includes): Test safer versions when they are
36640         in use.
36641         * tests/test-open.c (includes): Likewise.
36642
36643         popen: fix cygwin 1.5 bug when stdin closed
36644         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36645         * modules/popen: New file.
36646         * modules/popen-tests: Likewise.
36647         * tests/test-popen.c: Likewise.
36648         * m4/popen.m4: Likewise.
36649         * lib/popen.c: Likewise.
36650         * lib/stdio.in.h (popen): New declaration.
36651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36652         * modules/stdio (Makefile.am): Likewise.
36653         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36654
36655 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36656
36657         maint.mk: give full control over update-copyright exclusions
36658         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36659         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36660         (update-copyright): Don't force inclusion of top-level
36661         ChangeLog.  Don't force exclusion of all COPYING files, but make
36662         them the default exclusion instead.
36663
36664 2009-08-16  Bruno Haible  <bruno@clisp.org>
36665
36666         Fix test failures on Solaris 10.
36667         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36668         tests when Solaris iconv() is used.
36669         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36670         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36671         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36672         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36673         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36674
36675 2009-08-16  Bruno Haible  <bruno@clisp.org>
36676
36677         Fix test failures on Solaris 10.
36678         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36679         'tr' program and pass it as first argument.
36680         * tests/test-pipe-filter-gi1.sh: Likewise.
36681         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36682         program as first argument.
36683         * tests/test-pipe-filter-gi1.c (main): Likewise.
36684
36685 2009-08-16  Eric Blake  <ebb9@byu.net>
36686
36687         fpurge: fix previous commits
36688         * modules/fpurge (Makefile.am): Make replacement conditional,
36689         partially reverting 2007-04-29 change; missed in previous
36690         attempt.
36691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36692         is missing.
36693
36694 2009-08-16  Bruno Haible  <bruno@clisp.org>
36695
36696         Clarify fpurge's effect on the file position.
36697         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36698         * tests/test-fpurge.c (main): Make a second pass for checking the file
36699         position.
36700
36701 2009-08-16  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36704         declaration of fpurge is missing.
36705         * tests/test-fpurge.c (main): Check that the file has not more contents
36706         than expected. Close the file before removing it.
36707
36708 2009-08-15  Eric Blake  <ebb9@byu.net>
36709
36710         fpurge: don't wrap working cygwin implementation
36711         * lib/fpurge.c (fpurge): Fix comment typo.
36712         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36713         1.7 to avoid replacement.
36714         * tests/test-fpurge.c (main): Enhance test.
36715
36716 2009-08-15  Eric Blake  <ebb9@byu.net>
36717         and Jim Meyering  <meyering@redhat.com>
36718
36719         test-update-copyright: skip if perl is insufficient
36720         * tests/test-update-copyright.sh: Failure to run maintainer tool
36721         should not cause testsuite failure on cygwin 1.5.
36722
36723 2009-08-14  Eric Blake  <ebb9@byu.net>
36724
36725         doc: mention more functions added in cygwin 1.7.0
36726         * doc/posix-headers/limits.texi (limits.h): Update for recent
36727         cygwin additions.
36728         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36729         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36730         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36731         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36732         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36733
36734 2009-08-14  Eric Blake  <ebb9@byu.net>
36735
36736         maint.mk: simplify update-copyright rule
36737         * top/maint.mk (update-copyright-local): Delete, and document how
36738         to do it in cfg.mk instead.
36739         (update-copyright-exclude-regexp): Delete, and document how to do
36740         it in .x-update-copyright instead.
36741         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36742         exclude ChangeLog.
36743
36744 2009-08-14  Bruno Haible  <bruno@clisp.org>
36745
36746         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36747
36748 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36749
36750         maint.mk: support update-copyright-env
36751         * top/maint.mk (update-copyright-env): Define place-holder.
36752         (update-copyright): Expand $(update-copyright-env) before
36753         invoking update-copyright.
36754
36755 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36756
36757         update-copyright: implement forced reformatting
36758         * build-aux/update-copyright: Implement and document
36759         UPDATE_COPYRIGHT_FORCE.
36760         * tests/test-update-copyright.sh: Test it.
36761
36762 2009-08-14  Eric Blake  <ebb9@byu.net>
36763         and Bruno Haible  <bruno@clisp.org>
36764
36765         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36766         * tests/test-locale.c: Revert previous patch related to NULL.
36767         * tests/test-stdio.c: Likewise.
36768         * tests/test-stdlib.c: Likewise.
36769         * tests/test-string.c: Likewise.
36770         * tests/test-unistd.c: Likewise.
36771         * modules/time-tests (Depends-on): Add verify.
36772         * modules/wchar-tests (Depends-on): Likewise.
36773         * tests/test-time.c: Test for NULL compliance.
36774         * tests/test-wchar.c: Likewise.
36775         * modules/locale (Depends-on): Add stddef.
36776         * modules/stdio (Depends-on): Likewise.
36777         * modules/stdlib (Depends-on): Likewise.
36778         * modules/string (Depends-on): Likewise.
36779         * modules/time (Depends-on): Likewise.
36780         * modules/unistd (Depends-on): Likewise.
36781         * modules/wchar (Depends-on): Likewise.
36782         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36783         * lib/stdlib.in.h (includes): Likewise.
36784         * lib/string.in.h (includes): Likewise.
36785         * lib/time.in.h (includes): Likewise.
36786         * lib/unistd.in.h (includes): Likewise.
36787         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36788         replaced.
36789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36790         * m4/stddef_h.m4: New file.
36791         * modules/stddef: Likewise.
36792         * lib/stddef.in.h: Likewise.
36793         * modules/stddef-tests: Likewise.
36794         * tests/test-stddef.c: Likewise.
36795         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36796         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36797         * doc/posix-headers/locale.texi (locale.h): Likewise.
36798         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36799         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36800         * doc/posix-headers/string.texi (string.h): Likewise.
36801         * doc/posix-headers/time.texi (time.h): Likewise.
36802         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36803         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36804
36805 2009-08-14  Eric Blake  <ebb9@byu.net>
36806
36807         doc: improve git diff of texinfo files
36808         * .gitattributes: Add rule for *.texi files, with hint on how to
36809         use it.
36810         Copied from m4, and based on a report by Bruno Haible.
36811
36812 2009-08-14  Bruno Haible  <bruno@clisp.org>
36813
36814         Disable multithread support by default on Cygwin 1.5.x for real.
36815         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36816
36817 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36818
36819         update-copyright: much ado about intervals
36820         * build-aux/update-copyright: Implement and document
36821         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36822         of copyright year intervals.
36823         Also, document UPDATE_COPYRIGHT_YEAR.
36824         * tests/test-update-copyright.sh: Test it.
36825
36826         update-copyright: convert 2-digit to 4-digit years
36827         * build-aux/update-copyright: Implement and document.
36828         * tests/test-update-copyright.sh: Update.
36829
36830 2009-08-14  Jim Meyering  <meyering@redhat.com>
36831
36832         test-exclude: avoid coreutils "make check" failure
36833         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36834         just as in test-argmatch.c.
36835
36836 2009-08-13  Eric Blake  <ebb9@byu.net>
36837
36838         test-dup2: fix bad assumption
36839         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36840         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36841
36842         test-version-etc: fix CRLF portability issue
36843         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36844         recognize \r.
36845         * tests/test-argp-version-etc-1.sh: Likewise.
36846
36847         getopt: update client modules
36848         * modules/argp (Depends-on): Use getopt-gnu.
36849         * modules/git-merge-changelog (Depends-on): Likewise.
36850         * modules/long-options (Depends-on): Likewise.
36851         * modules/xstrtol (Depends-on): Likewise.
36852
36853 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36854
36855         * tests/test-version-etc.sh: Don't fail on different
36856         project/version.  Don't fail on CRLF differences.  Rewrite to use
36857         multiple -e instead of multiple sed forks, suggested by Eric Blake
36858         <ebb9@byu.net>.
36859         * tests/test-argp-version-etc-1.sh: Likewise.
36860
36861 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36862
36863         * tests/test-version-etc.sh: Don't fail on different
36864         project/version.
36865
36866 2009-08-12  Bruno Haible  <bruno@clisp.org>
36867
36868         Tests for modules 'getopt-posix', 'getopt-gnu'.
36869         * modules/getopt-posix-tests: New file.
36870         * tests/test-getopt.c: New file.
36871         * tests/test-getopt.h: New file.
36872         * tests/test-getopt_long.h: New file.
36873
36874         New modules 'getopt-posix', 'getopt-gnu'.
36875         * modules/getopt-gnu: New file, renamed from modules/getopt.
36876         * modules/getopt-posix: New file.
36877         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36878         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36879         (gl_GETOPT): Remove macro.
36880         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36881         Disable the test against BSD systems that declare optreset. Test
36882         against mingw bug. Test against lack of support of optional arguments
36883         on many platforms.
36884         * doc/glibc-headers/getopt.texi: Update module name and list of
36885         relevant platforms.
36886         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36887         'getopt-gnu' and more portability problems.
36888         * NEWS: Mention the changes.
36889
36890 2009-08-12  Bruno Haible  <bruno@clisp.org>
36891
36892         Ensure that optarg etc. get declared by <unistd.h>.
36893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36894         AC_USE_SYSTEM_EXTENSIONS.
36895         * modules/getopt (Depends-on): Add 'extensions'.
36896
36897 2009-08-12  Bruno Haible  <bruno@clisp.org>
36898
36899         Avoid test link errors.
36900         * modules/pipe-filter-ii-tests (Makefile.am): Define
36901         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36902         * modules/pipe-filter-gi-tests (Makefile.am): Define
36903         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36905
36906 2009-08-12  Bruno Haible  <bruno@clisp.org>
36907
36908         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36909         gl_GETOPT_SUBSTITUTE before.
36910         (gl_GETOPT): Use it.
36911         * m4/argp.m4 (gl_ARGP): Update.
36912         Reported by Sergey Poznyakoff.
36913
36914         * m4/getopt.m4: Reorder macros.
36915         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36916         (gl_GETOPT_SUBSTITUTE): Remove macro.
36917
36918 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36919
36920         Minor improvement in gitlog-to-changelog
36921
36922         * build-aux/gitlog-to-changelog: New option `--format' makes
36923         output format string configurable.
36924
36925 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36926
36927         Optimize exclude: use hash tables for non-wildcard patterns.
36928
36929         * lib/exclude.c: Include hash.h and mbuiter.h
36930         (struct exclude_pattern, exclude_segment): New data types.
36931         (struct exclude): Rewrite.
36932         (fnmatch_pattern_has_wildcards): New function.
36933         (new_exclude_segment, free_exclude_segment): New functions.
36934         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36935         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36936         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36937         * modules/exclude: Depend on hash and mbuiter.
36938
36939         * modules/exclude-tests: New file.
36940         * tests/test-exclude.c: New file.
36941         * tests/test-exclude1.sh: New file.
36942         * tests/test-exclude2.sh: New file.
36943         * tests/test-exclude3.sh: New file.
36944         * tests/test-exclude4.sh: New file.
36945         * tests/test-exclude5.sh: New file.
36946         * tests/test-exclude6.sh: New file.
36947         * tests/test-exclude7.sh: New file.
36948
36949 2009-08-12  Bruno Haible  <bruno@clisp.org>
36950
36951         Ensure that getopt() gets declared by <unistd.h>.
36952         * lib/unistd.in.h: Conditionally include getopt.h.
36953         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36954         Set GNULIB_UNISTD_H_GETOPT.
36955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36956         GNULIB_UNISTD_H_GETOPT.
36957         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36958
36959 2009-08-12  Bruno Haible  <bruno@clisp.org>
36960
36961         Clarify logic.
36962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36963         gl_replace_getopt instead of GETOPT_H.
36964
36965 2009-08-12  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/getopt.m4: Add comments.
36968
36969 2009-08-12  Bruno Haible  <bruno@clisp.org>
36970
36971         Disable multithread support by default on Cygwin 1.5.x.
36972         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36973         set gl_use_threads=no if not specified otherwise.
36974
36975 2009-08-11  Bruno Haible  <bruno@clisp.org>
36976
36977         Avoid compilation error on NetBSD 5.0.
36978         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36979         * tests/test-stdio.c: Likewise.
36980         * tests/test-stdlib.c: Likewise.
36981         * tests/test-string.c: Likewise.
36982         * tests/test-unistd.c: Likewise.
36983         Reported by Greg Troxel <gdt@ir.bbn.com>
36984         at <https://savannah.gnu.org/support/?106973>.
36985
36986 2009-08-11  Bruno Haible  <bruno@clisp.org>
36987
36988         * modules/dup2-tests (Depends-on): Remove close.
36989
36990         Undo 2009-07-19 commit.
36991         * modules/acl-tests (Depends-on): Remove close.
36992         * modules/binary-io-tests (Depends-on): Likewise.
36993         * modules/closein-tests (Depends-on): Likewise.
36994         * modules/flock-tests (Depends-on): Likewise.
36995         * modules/fsync-tests (Depends-on): Likewise.
36996         * modules/lseek-tests (Depends-on): Likewise.
36997         * modules/pipe-tests (Depends-on): Likewise.
36998         * modules/posix_spawn-tests (Depends-on): Likewise.
36999         * modules/posix_spawnp-tests (Depends-on): Likewise.
37000         * modules/stat-time-tests (Depends-on): Likewise.
37001         * modules/yesno-tests (Depends-on): Likewise.
37002
37003 2009-08-10  Bruno Haible  <bruno@clisp.org>
37004
37005         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37006
37007 2009-08-10  Bruno Haible  <bruno@clisp.org>
37008
37009         Fix a gcc warning.
37010         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37011
37012 2009-08-10  Bruno Haible  <bruno@clisp.org>
37013
37014         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37015         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37016         not only the first time.
37017         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37018         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37019         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37020         is 1, not only the the first time.
37021
37022 2009-08-10  Bruno Haible  <bruno@clisp.org>
37023
37024         Make it possible to use module 'gethostname' without module 'close'.
37025         * lib/unistd.in.h (close): Evoke a link error only if
37026         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37029         * modules/unistd (Makefile.am): Substitute
37030         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37031         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37035         * modules/sys_ioctl (Makefile.am): Substitute
37036         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37037         * modules/socket (configure.ac): On native Windows, set
37038         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37040         Reported by Sam Steingold <sds@gnu.org>.
37041
37042 2009-08-10  Bruno Haible  <bruno@clisp.org>
37043
37044         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37045         * modules/ioctl (configure.ac): Likewise.
37046
37047 2009-08-10  Bruno Haible  <bruno@clisp.org>
37048
37049         Avoid collision between gnulib wrapper and libintl wrapper.
37050         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37051         already defined in intl/printf.c.
37052         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37053         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37054
37055 2009-08-09  Bruno Haible  <bruno@clisp.org>
37056
37057         Make <sys/select.h> really self-contained, also on Solaris 10.
37058         * lib/sys_select.in.h: Include <string.h>.
37059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37060         Solaris 10 problem.
37061         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37062         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37063         Reported by Jim Meyering.
37064
37065 2009-08-09  Bruno Haible  <bruno@clisp.org>
37066
37067         Avoid warnings from 'aclocal' that are due to a use of macro name
37068         AM_XGETTEXT_OPTION that is not defined in automake.
37069         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37070         automake.
37071         * modules/error (configure.ac): Likewise.
37072         * modules/propername (configure.ac): Likewise.
37073         * modules/vasprintf (configure.ac): Likewise.
37074         * modules/verror (configure.ac): Likewise.
37075         * modules/xprintf (configure.ac): Likewise.
37076         * modules/xvasprintf (configure.ac): Likewise.
37077
37078 2009-08-08  Bruno Haible  <bruno@clisp.org>
37079
37080         Avoid compilation error in C++ mode.
37081         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37082         Reported by Sam Steingold <sds@gnu.org>.
37083
37084 2009-08-08  Bruno Haible  <bruno@clisp.org>
37085
37086         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37087         for the various Unix platforms.
37088         * doc/posix-headers/limits.texi: Update platforms list regarding
37089         HOST_NAME_MAX.
37090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37091
37092 2009-08-07  Jim Meyering  <meyering@redhat.com>
37093
37094         selinux-at: fix typo in a comment
37095         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37096         Spotted by Paolo Bonzini.
37097
37098         selinux-at: remove redundant m4 code, add documentation
37099         * modules/selinux-at (configure.ac): Remove redundant code.
37100         LIB_SELINUX is already set via the dependent module, selinux-h.
37101         (Include): Add quotes around selinux-at.h.
37102         * lib/selinux-at.h: Add documentation.
37103         Reported by Bruno Haible in
37104         http://marc.info/?l=gnulib-bug&m=124958988300749
37105
37106 2009-08-07  Bruno Haible  <bruno@clisp.org>
37107
37108         Avoid link error on MacOS X 10.3 and 10.4.
37109         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37110         on non-ELF systems.
37111         * lib/argp-pv.c (argp_program_version): Likewise.
37112         Reported by Simon Josefsson.
37113
37114 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37115
37116         * tests/test-version-etc.sh: Use $EXEEXT.
37117
37118 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37119
37120         update-copyright: update documentation to point to maint.mk
37121         * build-aux/update-copyright: Here.
37122
37123 2009-08-06  Jim Meyering  <meyering@redhat.com>
37124
37125         maint.mk: support update-copyright-local
37126         * top/maint.mk (update-copyright-local): Define place-holder.
37127         (update-copyright): Depend on $(update-copyright-local).
37128
37129 2009-08-06  Jim Meyering  <meyering@redhat.com>
37130
37131         selinux-at: new module
37132         Initially written for coreutils, this module will soon be
37133         used by findutils, too.
37134         * MODULES.html.sh [Misc]: Add selinux-at.
37135         * lib/selinux-at.h: New file, from coreutils.
37136         * lib/selinux-at.c: Likewise.
37137         * modules/selinux-at: Likewise.
37138         (License): Change from LGPL to GPL, since it depends
37139         on the GPL'd openat module.
37140
37141         doc: update README
37142         * README: Remove references to cogito.
37143         Remove cvs-repo-updating instructions from 2007.
37144         Don't imply that CVS is better if you have limited disk space.
37145
37146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37147
37148         update-copyright: support C-style comments
37149         * build-aux/update-copyright: Implement and document.
37150         * tests/test-update-copyright.sh: Test.
37151
37152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37153
37154         update-copyright: support omitted "(C)"
37155         * build-aux/update-copyright: Implement and document.  Also,
37156         allow variable whitespace before "(C)".
37157         * tests/test-update-copyright.sh: Test.
37158
37159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37160
37161         update-copyright: don't trip on non-FSF copyright statements
37162         * build-aux/update-copyright: Fix so that the first correctly
37163         formatted FSF copyright statement is recognized no matter what
37164         appears before it.  Update documentation.
37165         * tests/test-update-copyright.sh: Test that.
37166
37167 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37168
37169         update-copyright: clean up code a little
37170         * build-aux/update-copyright: Append "_re" to the name of any
37171         variable holding a regular expression.
37172         Replace "old" and "new" with "stmt" in variable names.
37173         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37174         handled correctly.
37175         Format code more consistently.
37176
37177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37178
37179         update-copyright-tests: improve portability
37180         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37181         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37182
37183 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37184
37185         update-copyright: support @copyright{} and &copy;
37186         * build-aux/update-copyright: Implement and document.
37187         * tests/test-update-copyright.sh: Test.
37188
37189 2009-08-04  Jim Meyering  <meyering@redhat.com>
37190
37191         update-copyright-tests: correctly test EOL=\r\n handling
37192         * tests/test-update-copyright.sh: Put \r at the end of some lines
37193         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37194
37195         maint.mk: make update-copyright exclusion list more configurable
37196         * top/maint.mk (update-copyright): Default to excluding COPYING,
37197         but allow an override, in case someone does want to update that file.
37198
37199         maint.mk: don't update copyright date in COPYING
37200         * top/maint.mk (update-copyright): Exclude COPYING.
37201
37202         maint.mk: add a copyright-updating rule
37203         * top/maint.mk (update-copyright): New rule.
37204         Derived from coreutils/Makefile.am.
37205
37206         update-copyright: rename some variables
37207         * build-aux/update-copyright: Rename a few variables for clarity.
37208         Tweak syntax.  List Joel E. Denny as coauthor.
37209
37210 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37211
37212         update-copyright: fix bug for 2-digit last year and add tests
37213         * build-aux/update-copyright: Fix bug.
37214         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37215         specified.
37216         * modules/update-copyright-tests: New
37217         * tests/test-update-copyright.sh: New.
37218
37219 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37220
37221         update-copyright: handle leading tabs in line prefix
37222         * build-aux/update-copyright: Count leading tabs as 8 spaces
37223         when computing margin.  This helps with the formatting of
37224         ChangeLogs, for example.
37225         Fix documentation a little.
37226
37227 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37228
37229         update-copyright: support EOL=\r\n
37230         * build-aux/update-copyright: Implement that.
37231
37232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37233
37234         update-copyright: automatically format copyright statements
37235         * build-aux/update-copyright: Implement that.
37236         Also, be a little more predictable and safer by always failing
37237         when the full copyright format is not perfectly recognized as an
37238         unbroken whole.  Discussed at
37239         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37240         Rewrite documentation.
37241
37242 2009-08-03  Bruno Haible  <bruno@clisp.org>
37243
37244         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37245
37246 2009-08-02  Bruno Haible  <bruno@clisp.org>
37247
37248         Tests for module 'uname'.
37249         * modules/uname-tests: New file.
37250         * tests/test-uname.c: New file.
37251
37252         New module 'uname'.
37253         * lib/uname.c: New file.
37254         * m4/uname.m4: New file.
37255         * modules/uname: New file.
37256         * doc/posix-functions/uname.texi: Mention the new module.
37257
37258 2009-08-02  Bruno Haible  <bruno@clisp.org>
37259
37260         Tests for module 'sys_utsname'.
37261         * modules/sys_utsname-tests: New file.
37262         * tests/test-sys_utsname.c: New file.
37263
37264         New module 'sys_utsname'.
37265         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37266         * m4/sys_utsname_h.m4: New file.
37267         * modules/sys_utsname: New file.
37268         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37269
37270 2009-08-02  Bruno Haible  <bruno@clisp.org>
37271
37272         Implicitly initialize the sockets library.
37273         * lib/gethostname.c: Include sockets.h.
37274         (rpl_gethostname): Invoke gl_sockets_startup.
37275         * lib/socket.c: Include sockets.h.
37276         (rpl_socket): Invoke gl_sockets_startup.
37277         * modules/gethostname (Depends-on): Add sockets.
37278         * modules/socket (Depends-on): Likewise.
37279         * tests/test-poll.c: Don't include sockets.h.
37280         (main): Don't invoke gl_sockets_startup.
37281         * tests/test-select.c: Don't include sockets.h.
37282         (main): Don't invoke gl_sockets_startup.
37283
37284 2009-08-02  Bruno Haible  <bruno@clisp.org>
37285
37286         Allow multiple calls to gl_sockets_startup.
37287         * lib/sockets.c (initialized_sockets_version): New variable.
37288         (gl_sockets_startup): Do nothing if already called for this or a higher
37289         version.
37290         (gl_sockets_cleanup): Reset initialized_sockets_version.
37291
37292 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37293
37294         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37295         different project/version.
37296
37297 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37298             Bruno Haible  <bruno@clisp.org>
37299
37300         Tests for module 'pipe-filter-gi'.
37301         * modules/pipe-filter-gi-tests: New file.
37302         * tests/test-pipe-filter-gi1.sh: New file.
37303         * tests/test-pipe-filter-gi1.c: New file.
37304         * tests/test-pipe-filter-gi2.sh: New file.
37305         * tests/test-pipe-filter-gi2-main.c: New file.
37306         * tests/test-pipe-filter-gi2-child.c: New file.
37307
37308         New module 'pipe-filter-gi'.
37309         * lib/pipe-filter-gi.c: New file.
37310         * modules/pipe-filter-gi: New file.
37311
37312 2009-08-02  Bruno Haible  <bruno@clisp.org>
37313             Paolo Bonzini  <bonzini@gnu.org>
37314
37315         Tests for module 'pipe-filter-ii'.
37316         * modules/pipe-filter-ii-tests: New file.
37317         * tests/test-pipe-filter-ii1.sh: New file.
37318         * tests/test-pipe-filter-ii1.c: New file.
37319         * tests/test-pipe-filter-ii2.sh: New file.
37320         * tests/test-pipe-filter-ii2-main.c: New file.
37321         * tests/test-pipe-filter-ii2-child.c: New file.
37322
37323         New module 'pipe-filter-ii'.
37324         * lib/pipe-filter.h: New file.
37325         * lib/pipe-filter-ii.c: New file.
37326         * lib/pipe-filter-aux.h: New file.
37327         * modules/pipe-filter-ii: New file.
37328
37329 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37330
37331         * lib/gc-libgcrypt.c: Change copyright to FSF.
37332         * lib/gc-gnulib.c: Likewise.
37333
37334 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37335
37336         * lib/gethostname.c: Include limits.h.
37337
37338 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37339             Bruno Haible  <bruno@clisp.org>
37340
37341         Ensure HOST_NAME_MAX as part of the gethostname module.
37342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37343         define also HOST_NAME_MAX.
37344         * tests/test-gethostname.c: Include <limits.h>.
37345         (main): Check also HOST_NAME_MAX.
37346         * doc/posix-headers/limits.texi: Document the mingw problem.
37347
37348 2009-08-02  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37351         Add comments.
37352
37353 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37354
37355         * lib/gethostname.c: Add Windows wrapper.
37356         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37357         * modules/gethostname: Depend on sys_socket & errno, for also
37358         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37359         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37360
37361 2009-07-31  Jim Meyering  <meyering@redhat.com>
37362
37363         getloadavg: fix symbol name in comment
37364         * lib/getloadavg.c: Correct a typo I introduced when adding
37365         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37366         Matt Kraai spotted the problem.
37367
37368 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37369
37370         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37371         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37372         code also if ! defined N_NAME_POINTER.
37373         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37374         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37375         but the n_name member is a 12-byte array.
37376
37377 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37378
37379         update-copyright: generalize comment handling
37380         * build-aux/update-copyright: Handle copyright statements
37381         within more comment styles.
37382         Document usage.
37383         Report any file with an external copyright holder or parse failure.
37384
37385 2009-07-29  Jim Meyering  <meyering@redhat.com>
37386
37387         mktime: correct setting of REPLACE_MKTIME
37388         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37389
37390         update-copyright: new module
37391         * modules/update-copyright: New file.
37392         * build-aux/update-copyright: New file.
37393         * MODULES.html.sh (maint+release support): Add update-copyright.
37394
37395 2009-07-27  Bruno Haible  <bruno@clisp.org>
37396
37397         Fix compilation error when <ctime> is used and mktime is replaced.
37398         * lib/time.in.h (mktime): New declaration.
37399         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37400         REPLACE_MKTIME instead of defining mktime in config.h.
37401         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37402         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37403         Reported by Ross McFarland <rwmcfa1@neces.com>.
37404
37405 2009-07-27  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37408         Reported by Matt Kraai <mkraai@beckman.com>.
37409
37410 2009-07-25  Jim Meyering  <meyering@redhat.com>
37411
37412         maint.mk: avoid warnings about missing files
37413         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37414         diagnostic when .prev-version does not exist.
37415         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37416         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37417         nonexistent cfg.mk.
37418         Suggestions from Simon Josefsson.
37419
37420 2009-07-25  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37423         defined as macros. Needed on QNX 6.4.1.
37424         Reported by Matt Kraai <mkraai@beckman.com>.
37425
37426 2009-07-23  Jim Meyering  <meyering@redhat.com>
37427
37428         maint.mk: invoke "make dist" with a working value of XZ_OPT
37429         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37430
37431 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37432
37433         Make fseeko.c compile on QNX.
37434         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37435
37436 2009-07-22  Peter Simons  <simons@cryp.to>
37437
37438         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37439         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37440         * lib/md4.h: Likewise.
37441         * lib/md5.h: Likewise.
37442         * lib/sha1.h: Likewise.
37443         * lib/sha256.h: Likewise.
37444         * lib/sha512.h: Likewise.
37445
37446         tests-sha1: don't assign literal string to 'char *' variable
37447         * tests/test-sha1.c (main): Declare locals with "const" to match
37448         attributes of the right hand side.
37449
37450 2009-07-21  Eric Blake  <ebb9@byu.net>
37451
37452         dup2: fix more mingw problems
37453         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37454         fd to itself.
37455         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37456         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37457         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37458         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37459         care of mingw bugs.
37460
37461 2009-07-21  Jim Meyering  <meyering@redhat.com>
37462
37463         vc-list-files: avoid failure when /bin/sh is dash
37464         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37465         On some Debian based systems, /bin/sh is a symlink to dash, and running
37466         this command would omit the "/" following each 'tests' prefix:
37467           dash -x build-aux/vc-list-files -C . tests
37468         That is because bash and dash work differently:
37469           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37470           bash ok
37471           dash odd
37472
37473 2009-07-21  Eric Blake  <ebb9@byu.net>
37474
37475         dup2-tests: test previous patch
37476         * modules/dup2-tests: New file.
37477         * tests/test-dup2.c: Likewise.
37478         * tests/test-open.c (main): Avoid unspecified behavior.
37479         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37480         test.
37481
37482         dup2: work around mingw and cygwin 1.5 bug
37483         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37485         * modules/unistd (Makefile.am): Substitute it.
37486         * lib/unistd.in.h (dup2): Declare the replacement.
37487         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37488         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37489         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37490         * modules/execute (Depends-on): Add dup2.
37491         * modules/fseterr (Depends-on): Likewise.
37492         * modules/pipe (Depends-on): Likewise.
37493         * modules/posix_spawn-internal (Depends-on): Likewise.
37494
37495 2009-07-21  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/.gitattributes: New file.
37498
37499 2009-07-20  Bruno Haible  <bruno@clisp.org>
37500
37501         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37502         (main): Use it.
37503
37504 2009-07-20  Eric Blake  <ebb9@byu.net>
37505
37506         test-pipe: make a bit more robust.
37507         * tests/test-pipe.c (myerr): Allow error messages regardless of
37508         what we do to stderr.
37509         (test_pipe): Rearrange to avoid deadlock.
37510         (child_main): Try a larger read, to ensure we avoided deadlock.
37511         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37512         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37513         if misused.
37514
37515 2009-07-19  Jim Meyering  <meyering@redhat.com>
37516
37517         fts: avoid false-positive cycle-detection
37518         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37519         for each new command line argument.
37520
37521 2009-07-19  Bruno Haible  <bruno@clisp.org>
37522
37523         Fix build error on mingw with the modules sys_select and unistd.
37524         * modules/acl-tests (Depends-on): Add close.
37525         * modules/binary-io-tests (Depends-on): Likewise.
37526         * modules/closein-tests (Depends-on): Likewise.
37527         * modules/flock-tests (Depends-on): Likewise.
37528         * modules/fsync-tests (Depends-on): Likewise.
37529         * modules/lseek-tests (Depends-on): Likewise.
37530         * modules/pipe-tests (Depends-on): Likewise.
37531         * modules/posix_spawn-tests (Depends-on): Likewise.
37532         * modules/posix_spawnp-tests (Depends-on): Likewise.
37533         * modules/stat-time-tests (Depends-on): Likewise.
37534         * modules/yesno-tests (Depends-on): Likewise.
37535
37536 2009-07-19  Bruno Haible  <bruno@clisp.org>
37537
37538         Unify conditionals.
37539         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37540         macros, not at the compiler macros.
37541         * lib/pipe.c: Likewise.
37542         * lib/execute.c: Likewise.
37543         * lib/spawni.c: Likewise.
37544
37545 2009-07-19  Bruno Haible  <bruno@clisp.org>
37546
37547         Fix handling of closed stdin/stdout/stderr on mingw.
37548         * lib/w32spawn.h: Include unistd.h.
37549         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37550         file descriptor with O_NOINHERIT flag.
37551         (fd_safer_noinherit): New function, based on fd-safer.c.
37552         (dup_safer_noinherit): New function, based on dup-safer.c.
37553         (undup_safer_noinherit): New function.
37554         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37555         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37556         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37557         instead of fd_safer.
37558         * tests/test-pipe.c: Include <windows.h>.
37559         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37560         result.
37561
37562         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37563         from main.
37564         (test_pipe): Pass an extra argument for disambiguation.
37565         (main): Invoke parent_main or child_main.
37566
37567         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37568         consistently.
37569
37570 2009-07-18  Eric Blake  <ebb9@byu.net>
37571
37572         test-pipe: fix mingw build
37573         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37574
37575 2009-07-18  Bruno Haible  <bruno@clisp.org>
37576
37577         * modules/pipe-tests (Makefile.am): Fix typo.
37578
37579 2009-07-18  Eric Blake  <ebb9@byu.net>
37580
37581         error: fix mingw build
37582         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37583         Reported by Bruno Haible.
37584
37585         error: avoid undefined use of stdout
37586         * lib/error.c (error, error_at_line): Check that fd 1 is open
37587         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37588         is handling faults and the close_stdout module wants to report the
37589         detection of closed stdout as an error.
37590
37591 2009-07-17  Eric Blake  <ebb9@byu.net>
37592
37593         pipe: be robust in face of closed fds
37594         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37595         should cause child to misbehave.
37596         * modules/pipe-tests: New module.
37597         * tests/test-pipe.c: New file.
37598         * tests/test-pipe.sh: New file.
37599         Reported by Akim Demaille.
37600
37601 2009-07-14  Bruno Haible  <bruno@clisp.org>
37602
37603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37604         Reported by anonymous kc.
37605
37606 2009-07-07  Jim Meyering  <meyering@redhat.com>
37607
37608         maint.mk: don't look for translatable strings in *.m4 or *.mk
37609         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37610         when searching for translatable strings.
37611
37612 2009-07-05  Jim Meyering  <meyering@redhat.com>
37613
37614         remove superfluous parentheses in STREQ definition
37615         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37616         * lib/getugroups.c (STREQ): Likewise.
37617         * lib/fnmatch.c (STREQ): Likewise.
37618         Spotted by Bruno Haible.
37619
37620 2009-07-04  Jim Meyering  <meyering@redhat.com>
37621
37622         argv-iter: new module
37623         * MODULES.html.sh: Add argv-iter.
37624         * lib/argv-iter.c, lib/argv-iter.h: New files.
37625         * modules/argv-iter: New file.
37626         * modules/argv-iter-tests: New file.
37627         * tests/test-argv-iter.c: Test it.
37628
37629 2009-07-04  Bruno Haible  <bruno@clisp.org>
37630
37631         Fix assertion.
37632         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37633         contains more exact copies of a given entry than file2, leave the extra
37634         copies unpaired rather than aborting.
37635         Reported by Eric Blake.
37636
37637 2009-07-02  Bruno Haible  <bruno@clisp.org>
37638
37639         Speedup git-merge-changelog for git cherry-pick.
37640         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37641         (entries_mapping_get): New function, extracted from compute_mapping.
37642         (entries_mapping_reverse_get): New function.
37643         (compute_mapping): Add a 'full' argument. Return the result in a
37644         'struct entries_mapping'.
37645         (main): Update. Access the mappings through entries_mapping_get.
37646         Reported by Eric Blake.
37647
37648 2009-07-02  Bruno Haible  <bruno@clisp.org>
37649
37650         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37651         best_i.
37652
37653 2009-07-02  Bruno Haible  <bruno@clisp.org>
37654
37655         Speed up approximate search for matching ChangeLog entries.
37656         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37657         argument. Call fstrcmp_bounded instead of fstrcmp.
37658         (compute_mapping, try_split_merged_entry, main): Update callers.
37659
37660 2009-07-02  Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37663
37664 2009-06-30  Bruno Haible  <bruno@clisp.org>
37665
37666         Reduce the number of uc_is_cased calls.
37667         * lib/unicase.h (casing_suffix_context_t): Add
37668         'first_char_except_ignorable' field.
37669         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37670         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37671         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37672         Update initializer.
37673         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37674         case-ignorable characters.
37675         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37676         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37677         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37678         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37679         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37680
37681 2009-06-30  Bruno Haible  <bruno@clisp.org>
37682
37683         Tests for module 'unicase/ignorable'.
37684         * modules/unicase/ignorable-tests: New file.
37685         * tests/unicase/test-ignorable.c: New file, generated by
37686         gen-uni-tables.
37687
37688         Tests for module 'unicase/cased'.
37689         * modules/unicase/cased-tests: New file.
37690         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37691         * tests/unicase/test-predicate-part1.h: New file, derived from
37692         tests/unictype/test-predicate-part1.h.
37693         * tests/unicase/test-predicate-part2.h: New file, same as
37694         tests/unictype/test-predicate-part2.h.
37695
37696         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37697         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37698         (output_casing_properties): New function.
37699         (main): Call it.
37700         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37701         * lib/unicase/cased.c: Include unictype/bitmap.h.
37702         (uc_is_cased): Define through a bitmap lookup.
37703         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37704         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37705         (uc_is_case_ignorable): Define through a bitmap lookup.
37706         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37707         lib/unictype/bitmap.h.
37708         (Depends-on): Add inline. Clean up.
37709         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37710         lib/unictype/bitmap.h.
37711         (Depends-on): Add inline. Clean up.
37712         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37713         recognition.
37714         * tests/unicase/test-u16-tolower.c (main): Likewise.
37715         * tests/unicase/test-u32-tolower.c (main): Likewise.
37716
37717 2009-06-30  Bruno Haible  <bruno@clisp.org>
37718
37719         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37720         * lib/unicase/u16-casemap.c: Likewise.
37721         * lib/unicase/u32-casemap.c: Likewise.
37722
37723 2009-06-29  Bruno Haible  <bruno@clisp.org>
37724
37725         Define u32_casefold as a wrapper around u32_ct_casefold.
37726         * lib/unicase/u32-casefold.c: Update.
37727         * modules/unicase/u32-casefold (Depends-on): Add
37728         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37729         unicase/empty-suffix-context. Clean up.
37730
37731         Define u16_casefold as a wrapper around u16_ct_casefold.
37732         * lib/unicase/u16-casefold.c: Update.
37733         * modules/unicase/u16-casefold (Depends-on): Add
37734         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37735         unicase/empty-suffix-context. Clean up.
37736
37737         Define u8_casefold as a wrapper around u8_ct_casefold.
37738         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37739         * lib/unicase/u8-casefold.c: Update.
37740         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37742
37743         Define u32_totitle as a wrapper around u32_ct_totitle.
37744         * lib/unicase/u32-totitle.c: Update.
37745         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37747
37748         Define u16_totitle as a wrapper around u16_ct_totitle.
37749         * lib/unicase/u16-totitle.c: Update.
37750         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37752
37753         Define u8_totitle as a wrapper around u8_ct_totitle.
37754         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37755         functions.
37756         (FUNC): Delegate to U_CT_TOTITLE.
37757         * lib/unicase/u8-totitle.c: Update.
37758         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37759         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37760
37761         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37762         invocation.
37763         * modules/unicase/u32-tolower (Depends-on): Add
37764         unicase/empty-prefix-context, unicase/empty-suffix-context.
37765
37766         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37767         invocation.
37768         * modules/unicase/u16-tolower (Depends-on): Add
37769         unicase/empty-prefix-context, unicase/empty-suffix-context.
37770
37771         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37772         * modules/unicase/u8-tolower (Depends-on): Add
37773         unicase/empty-prefix-context, unicase/empty-suffix-context.
37774
37775         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37776         invocation.
37777         * modules/unicase/u32-toupper (Depends-on): Add
37778         unicase/empty-prefix-context, unicase/empty-suffix-context.
37779
37780         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37781         invocation.
37782         * modules/unicase/u16-toupper (Depends-on): Add
37783         unicase/empty-prefix-context, unicase/empty-suffix-context.
37784
37785         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37786         * modules/unicase/u8-toupper (Depends-on): Add
37787         unicase/empty-prefix-context, unicase/empty-suffix-context.
37788
37789         New module 'unicase/u32-ct-casefold'.
37790         * lib/unicase/u32-ct-casefold.c: New file.
37791         * modules/unicase/u32-ct-casefold: New file.
37792
37793         New module 'unicase/u16-ct-casefold'.
37794         * lib/unicase/u16-ct-casefold.c: New file.
37795         * modules/unicase/u16-ct-casefold: New file.
37796
37797         New module 'unicase/u8-ct-casefold'.
37798         * lib/unicase/u8-ct-casefold.c: New file.
37799         * lib/unicase/u-ct-casefold.h: New file, derived from
37800         lib/unicase/u-casefold.h.
37801         * modules/unicase/u8-ct-casefold: New file.
37802
37803         New module 'unicase/u32-ct-totitle'.
37804         * lib/unicase/u32-ct-totitle.c: New file.
37805         * modules/unicase/u32-ct-totitle: New file.
37806
37807         New module 'unicase/u16-ct-totitle'.
37808         * lib/unicase/u16-ct-totitle.c: New file.
37809         * modules/unicase/u16-ct-totitle: New file.
37810
37811         New module 'unicase/u8-ct-totitle'.
37812         * lib/unicase/u8-ct-totitle.c: New file.
37813         * lib/unicase/u-ct-totitle.h: New file, derived from
37814         lib/unicase/u-totitle.h.
37815         * modules/unicase/u8-ct-totitle: New file.
37816
37817         New module 'unicase/u32-ct-tolower'.
37818         * lib/unicase/u32-ct-tolower.c: New file.
37819         * modules/unicase/u32-ct-tolower: New file.
37820
37821         New module 'unicase/u16-ct-tolower'.
37822         * lib/unicase/u16-ct-tolower.c: New file.
37823         * modules/unicase/u16-ct-tolower: New file.
37824
37825         New module 'unicase/u8-ct-tolower'.
37826         * lib/unicase/u8-ct-tolower.c: New file.
37827         * modules/unicase/u8-ct-tolower: New file.
37828
37829         New module 'unicase/u32-ct-toupper'.
37830         * lib/unicase/u32-ct-toupper.c: New file.
37831         * modules/unicase/u32-ct-toupper: New file.
37832
37833         New module 'unicase/u16-ct-toupper'.
37834         * lib/unicase/u16-ct-toupper.c: New file.
37835         * modules/unicase/u16-ct-toupper: New file.
37836
37837         New module 'unicase/u8-ct-toupper'.
37838         * lib/unicase/u8-ct-toupper.c: New file.
37839         * modules/unicase/u8-ct-toupper: New file.
37840
37841         Add context arguments to u*_casemap functions.
37842         * lib/unicase/unicasemap.h: Include unicase.h.
37843         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37844         suffix_context arguments.
37845         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37846         functions.
37847         (FUNC): Add prefix_context and suffix_context arguments. Use
37848         uc_is_cased and uc_is_case_ignorable.
37849         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37850         * lib/unicase/u16-casemap.c: Likewise.
37851         * lib/unicase/u32-casemap.c: Likewise.
37852         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37853         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37854         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37855         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37856         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37858
37859         New module 'unicase/u32-suffix-context'.
37860         * lib/unicase/u32-suffix-context.c: New file.
37861         * modules/unicase/u32-suffix-context: New file.
37862
37863         New module 'unicase/u16-suffix-context'.
37864         * lib/unicase/u16-suffix-context.c: New file.
37865         * modules/unicase/u16-suffix-context: New file.
37866
37867         New module 'unicase/u8-suffix-context'.
37868         * lib/unicase/u8-suffix-context.c: New file.
37869         * lib/unicase/u-suffix-context.h: New file.
37870         * modules/unicase/u8-suffix-context: New file.
37871
37872         New module 'unicase/empty-suffix-context'.
37873         * lib/unicase/empty-suffix-context.c: New file.
37874         * modules/unicase/empty-suffix-context: New file.
37875
37876         New module 'unicase/u32-prefix-context'.
37877         * lib/unicase/u32-prefix-context.c: New file.
37878         * modules/unicase/u32-prefix-context: New file.
37879
37880         New module 'unicase/u16-prefix-context'.
37881         * lib/unicase/u16-prefix-context.c: New file.
37882         * modules/unicase/u16-prefix-context: New file.
37883
37884         New module 'unicase/u8-prefix-context'.
37885         * lib/unicase/u8-prefix-context.c: New file.
37886         * lib/unicase/u-prefix-context.h: New file.
37887         * lib/unicase/context.h: New file.
37888         * modules/unicase/u8-prefix-context: New file.
37889
37890         New module 'unicase/empty-prefix-context'.
37891         * lib/unicase/empty-prefix-context.c: New file.
37892         * modules/unicase/empty-prefix-context: New file.
37893
37894         New module 'unicase/ignorable'.
37895         * lib/unicase/ignorable.c: New file.
37896         * modules/unicase/ignorable: New file.
37897
37898         New module 'unicase/cased'.
37899         * lib/unicase/caseprop.h: New file.
37900         * lib/unicase/cased.c: New file.
37901         * modules/unicase/cased: New file.
37902
37903         New functions for case mapping of substrings.
37904         * lib/unicase.h (casing_prefix_context_t): New type.
37905         (unicase_empty_prefix_context): New variable.
37906         (u8_casing_prefix_context, u16_casing_prefix_context,
37907         u32_casing_prefix_context, u8_casing_prefixes_context,
37908         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37909         declarations.
37910         (casing_suffix_context_t): New type.
37911         (unicase_empty_suffix_context): New variable.
37912         (u8_casing_suffix_context, u16_casing_suffix_context,
37913         u32_casing_suffix_context, u8_casing_suffixes_context,
37914         u16_casing_suffixes_context, u32_casing_suffixes_context,
37915         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37916         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37917         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37918         declarations.
37919
37920 2009-06-28  Jim Meyering  <meyering@redhat.com>
37921
37922         boostrap: indent only with spaces
37923         * build-aux/bootstrap: Indent only with spaces, never TABs.
37924
37925         bootstrap: split long lines
37926         * build-aux/bootstrap: Keep line length < 80.
37927
37928         bootstrap: sync from coreutils
37929         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37930         just as autoreconf does.  Verify a list of prerequisite
37931         package-name,version-number pairs if defined in bootstrap.conf.
37932         Refer to README-prereq, if prerequisites are not satisfied.
37933
37934 2009-06-27  Eric Blake  <ebb9@byu.net>
37935
37936         tests: add test for bogus NULL definition
37937         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37938         * tests/test-stdlib.c: Likewise.
37939         * tests/test-string.c: Likewise.
37940         * tests/test-locale.c: Likewise.
37941         * tests/test-unistd.c: Likewise.
37942         * modules/stdio-tests (Depends-on): Add verify.
37943         * modules/stdlib-tests (Depends-on): Likewise.
37944         * modules/string-tests (Depends-on): Likewise.
37945         * modules/locale-tests (Depends-on): Likewise.
37946         * modules/unistd-tests (Depends-on): Likewise.
37947
37948 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37949
37950         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37951         self-explaining comment.
37952         * m4/selinux-selinux-h: Update serial.
37953         (gl_LIBSELINUX): New macro, adding a warning for missing development
37954         packages to code extracted from...
37955         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37956         Add warning for missing development packages here, too.
37957
37958 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37959
37960         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37961
37962 2009-06-25  Eric Blake  <ebb9@byu.net>
37963
37964         version-etc: fix regression
37965         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37966         gcc.
37967         (version_etc): Use it, to catch bugs with trailing NULL.
37968         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37969         (version_etc_va): Fix logic bug.
37970         * modules/version-etc-tests: Add test.
37971         * tests/test-version-etc.c: New file.
37972         * tests/test-version-etc.sh: Likewise.
37973
37974 2009-06-25  Sam Steingold  <sds@gnu.org>
37975
37976         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37977         mbtowc declaration.
37978
37979 2009-06-25  Eric Blake  <ebb9@byu.net>
37980
37981         fpurge: migrate into <stdio.h>
37982         * lib/fpurge.h: Delete...
37983         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37984         * lib/fpurge.c (fpurge): Change declaring header.
37985         * modules/fpurge (Files): Drop deleted file.
37986         (Depends-on): Add stdio.
37987         (configure.ac): Set witness.
37988         * modules/stdio (Makefile.am): Support fpurge macros.
37989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37990         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37991         * lib/fflush.c: Update client.
37992         * tests/test-fpurge.c: Likewise.
37993         * NEWS: Mention the change.
37994
37995 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37996
37997         * lib/argp-version-etc.c (program_authors): Add const
37998         qualifier.
37999         * lib/version-etc.c: Fix typos in the comments.
38000         * modules/argp-version-etc: Depends on version-etc.
38001
38002 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38003
38004         argp-version-etc: new module.
38005
38006         * lib/argp-version-etc.c: New file.
38007         * lib/argp-version-etc.h: New file.
38008         * modules/argp-version-etc: New file.
38009         * modules/argp-version-etc-tests: New file.
38010         * tests/test-argp-version-etc.c: New test.
38011         * tests/test-argp-version-etc-1.sh: New test.
38012
38013 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38014
38015         Provide additional interfaces and documentation for version-etc
38016         module.
38017
38018         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38019         interfaces.
38020         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38021         prototypes.
38022
38023 2009-06-24  Bruno Haible  <bruno@clisp.org>
38024
38025         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38026         HAVE_LIB${NAME} macro.
38027         Reported by Sam Steingold <sds@gnu.org>.
38028
38029 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38030
38031         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38032         needed.
38033
38034 2009-06-21  Bruno Haible  <bruno@clisp.org>
38035
38036         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38037         work.
38038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38039         together with LIB${NAME}, LTLIB${NAME}.
38040         Reported by Sam Steingold <sds@gnu.org>.
38041
38042 2009-06-20  Jim Meyering  <meyering@redhat.com>
38043
38044         tests: make sc_require_test_exit_idiom more generic
38045         * top/maint.mk (Exit_witness_file): New overridable variable.
38046         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38047         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38048
38049 2009-06-19  Jim Meyering  <meyering@redhat.com>
38050
38051         hash: reverse order of src/dst parameters in an internal interface
38052         * lib/hash.c (transfer_entries): Reverse order of parameters to
38053         put DST before SRC.  Adjust callers.
38054
38055         tests: test-hash: avoid wholesale duplication
38056         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38057         Instead, use a loop and add a single conditional.
38058
38059         tests: test-hash: allow seed selection via a command line argument
38060         * tests/test-hash.c (get_seed): New function.
38061         (main): Use it.
38062
38063 2009-06-19  Eric Blake  <ebb9@byu.net>
38064
38065         hash: avoid memory leak on allocation failure
38066         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38067         failure.  Factor repeated algorithm...
38068         (transfer_entries): ...into new helper routine.
38069         (hash_delete): React to hash_rehash return value.
38070
38071         hash: reduce memory pressure in hash_rehash no-op case
38072         * lib/hash.c (next_prime): Avoid overflow.
38073         (hash_initialize): Factor bucket size computation...
38074         (compute_bucket_size): ...into new helper function.
38075         (hash_rehash): Use new function and open coding to reduce memory
38076         pressure, and avoid a memory leak in USE_OBSTACK code.
38077         Reported by Jim Meyering.
38078
38079 2009-06-18  Eric Blake  <ebb9@byu.net>
38080
38081         hash: make rotation more obvious
38082         * modules/hash (Depends-on): Add bitrotate and stdint.
38083         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38084         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38085         (SIZE_MAX): Rely on headers for definition.
38086         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38087         (raw_hasher): Use rotr_sz.
38088         Suggested by Jim Meyering.
38089
38090         hash: fix memory leak in last patch
38091         * lib/hash.c (hash_rehash): Avoid memory leak.
38092
38093         hash: avoid no-op rehashing
38094         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38095
38096         hash: provide default callback functions
38097         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38098         (hash_initialize): Use them as defaults.
38099         * tests/test-hash.c (main): Test this.
38100
38101         hash: minor optimization
38102         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38103         when possible.
38104         (hash_initialize): Document this promise.
38105         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38106         * tests/test-hash.c (hash_compare_strings): Test this.
38107
38108 2009-06-18  Bruno Haible  <bruno@clisp.org>
38109
38110         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38111         going to be replaced anyway.
38112
38113 2009-06-18  Bruno Haible  <bruno@clisp.org>
38114
38115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38116         in one place.
38117         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38118         be replaced anyway.
38119
38120 2009-06-18  Eric Blake  <ebb9@byu.net>
38121
38122         hash: check for resize before insertion
38123         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38124         threshold before insertion, so that a pathological hash_rehash
38125         that fills every bucket can still trigger another rehash.
38126
38127 2009-06-18  Jim Meyering  <meyering@redhat.com>
38128
38129         hash-tests: add a loop around the small tests
38130         * tests/test-hash.c (main): Repeat small tests with selected
38131         small initial table sizes.
38132
38133 2009-06-17  Eric Blake  <ebb9@byu.net>
38134
38135         hash: minor cleanups
38136         * lib/hash.h (hash_entry): Make opaque, by moving...
38137         * lib/hash.c (hash_entry): ...here.
38138         (hash_insert): Clarify restrictions on what can be inserted.
38139         (hash_get_next): Clarify when it is safe to remove an element
38140         during traversal.
38141         (check_tuning): Skip verification when tuning is known safe.
38142         (hash_initialize): Clarify restrictions on tuning.
38143
38144 2009-06-17  Jim Meyering  <jim@meyering.net>
38145         and Eric Blake  <ebb9@byu.net>
38146
38147         hash-tests: new module
38148         * modules/hash-tests: New file.
38149         * tests/test-hash.c: New file.
38150
38151 2009-06-17  Eric Blake  <ebb9@byu.net>
38152
38153         strstr-simple: document new module
38154         * MODULES.html.sh: Document new module.
38155
38156         strstr, strcasestr: replace on platforms with broken memchr
38157         * modules/strstr: Split into...
38158         * modules/strstr-simple: ...new module that does not care about
38159         performance, but does care about glibc bug.
38160         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38161         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38162         if platform memchr is broken, per Debian bug 521737.
38163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38164         memchr.
38165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38166         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38167         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38168         * modules/mountlist (Depends-on): Add strstr-simple.
38169         * modules/gen-uni-tables (Depends-on): Likewise.
38170         * modules/argz (Depends-on): Add strstr.
38171
38172 2009-06-17  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/posix_spawn-internal (Depends-on): Add errno.
38175
38176 2009-06-17  Bruno Haible  <bruno@clisp.org>
38177
38178         Define missing ESTALE on Interix 3.5.
38179         * lib/errno.in.h (ESTALE): Assign a value if missing.
38180         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38182         missing.
38183         * doc/posix-headers/errno.texi: Mention the Interix bug.
38184         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38185
38186 2009-06-15  Eric Blake  <ebb9@byu.net>
38187
38188         memchr, memchr2: add valgrind exception
38189         * lib/memchr.valgrind: New file.
38190         * lib/memchr2.valgrind: New file.
38191         * modules/memchr (Files): Distribute valgrind file.
38192         * modules/memchr2 (Files): Likewise.
38193
38194         docs: memchr is no longer obsolete
38195         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38196         * lib/string.in.h (memchr): Simplify logic.
38197
38198 2009-06-14  Jim Meyering  <meyering@redhat.com>
38199
38200         link-follow: fix the "checking..." message to not mention trailing slash
38201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38202         never considered trailing slashes.
38203
38204 2009-06-14  Bruno Haible  <bruno@clisp.org>
38205
38206         * m4/memchr.m4: Mention also the bug on IA-64.
38207         * doc/posix-functions/memchr.texi: Likewise.
38208
38209 2009-06-12  Eric Blake  <ebb9@byu.net>
38210
38211         memchr: detect broken x86_64 and alpha implementations
38212         * modules/memchr-tests (Depends-on): Move mmap detection...
38213         * modules/memchr (Depends-on): ...here.
38214         (configure.ac): Set indicator.
38215         * lib/string.in.h (memchr): Declare replacement.
38216         * modules/string (Makefile.am): Trigger replacement.
38217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38219         bugs.
38220         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38221         * modules/getpagesize (License): Relax license.
38222
38223 2009-06-11  Bruno Haible  <bruno@clisp.org>
38224
38225         * lib/idpriv.h: Add more references.
38226
38227 2009-06-08  Bruno Haible  <bruno@clisp.org>
38228
38229         Tests for module 'idpriv-droptemp'.
38230         * modules/idpriv-droptemp-tests: New file.
38231         * tests/test-idpriv-droptemp.sh: New file.
38232         * tests/test-idpriv-droptemp.su.sh: New file.
38233         * tests/test-idpriv-droptemp.c: New file.
38234
38235         New module 'idpriv-droptemp'.
38236         * lib/idpriv-droptemp.c: New file.
38237         * modules/idpriv-droptemp: New file.
38238
38239 2009-06-08  Bruno Haible  <bruno@clisp.org>
38240
38241         Tests for module 'idpriv-drop'.
38242         * modules/idpriv-drop-tests: New file.
38243         * tests/test-idpriv-drop.sh: New file.
38244         * tests/test-idpriv-drop.su.sh: New file.
38245         * tests/test-idpriv-drop.c: New file.
38246
38247         New module 'idpriv-drop'.
38248         * lib/idpriv.h: New file.
38249         * lib-idpriv-drop.c: New file.
38250         * m4/idpriv.m4: New file.
38251         * modules/idpriv-drop: New file.
38252
38253 2009-06-08  Bruno Haible  <bruno@clisp.org>
38254
38255         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38262
38263 2009-06-08  Eric Blake  <ebb9@byu.net>
38264
38265         test-strstr: use memory fence, when possible
38266         * tests/test-strstr.c (main): Use memory fence, in order to be
38267         more likely to trigger Debian bug 521737.
38268         * modules/strstr-tests (Files): Pull in additional files.
38269
38270         memchr: no longer obsolete, for wider field testing
38271         * modules/memchr (Status, Notice): Delete, this module is no
38272         longer obsolete.
38273         * modules/vasnprintf (Depends-on): Add memchr.
38274
38275 2009-06-07  Jim Meyering  <meyering@redhat.com>
38276
38277         hash: declare some functions with the warn_unused_result attribute
38278         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38279
38280 2009-06-07  Bruno Haible  <bruno@clisp.org>
38281
38282         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38283         Reported by Eric Blake.
38284
38285 2009-06-06  Eric Blake  <ebb9@byu.net>
38286
38287         test-alignof: fix typo with long double
38288         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38289         compiler error.
38290
38291 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38292
38293         Escape non-texinfo { and }s.
38294         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38295         markup error.
38296
38297 2009-06-04  Jim Meyering  <meyering@redhat.com>
38298
38299         gitlog-to-changelog: don't infloop on an empty commit log
38300         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38301         Reported by Boris Petersen <transacid@centerim.org>.
38302
38303 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38304
38305         version-etc: extend for packagers
38306         Add three new configure options, intended for packagers:
38307           --with-packager="packager name"
38308           --with-packager-version="packager-specific version"
38309           --with-packager-bug-reports="packager bug reporting"
38310         An example with coreutils:
38311           $ ./configure \
38312             --with-packager=Gentoo \
38313             --with-packager-bug-report=http://bugs.gentoo.org/ \
38314             --with-packager-version="patchset 1.6"
38315           $ ./src/ls --version | head -n2
38316           ls (GNU coreutils) 7.1-dirty
38317           Packaged by Gentoo (patchset 1.6)
38318         Note that the bug reporting info via --help doesn't show up because
38319         coreutils uses its own custom emit_bug_reporting_address() implementation
38320         in src/system.h.  If it didn't, it'd look like:
38321           $ ./src/ls --help | tail -n4
38322           Report bugs to <bug-coreutils@gnu.org>.
38323           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38324           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38325           General help using GNU software: <http://www.gnu.org/gethelp/>.
38326         * lib/version-etc.c: Print new information, if provided.
38327         * m4/version-etc.m4: New file.
38328         * modules/version-etc (Files): Add m4/version-etc.m4.
38329         (configure.ac): Add gl_VERSION_ETC.
38330
38331 2009-05-31  Bruno Haible  <bruno@clisp.org>
38332
38333         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38334         and 'int64_t'.
38335         * modules/alignof-tests (Dependencies): Add stdint.
38336         Reported by Eric Blake.
38337
38338 2009-05-31  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38341         restriction due to compiler bugs.
38342         Reported by Eric Blake.
38343
38344 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38345             Bruno Haible  <bruno@clisp.org>
38346
38347         Fix test-alignof failure.
38348         * lib/alignof.h (alignof_slot): New macro.
38349         (alignof_type): New macro, with the same semantics as the previous
38350         'alignof'.
38351         (alignof): Alias to alignof_slot.
38352         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38353         check that the results are usable as constant expressions.
38354
38355 2009-05-31  Bruno Haible  <bruno@clisp.org>
38356
38357         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38358         * tests/test-memchr.c (main): Check that memchr does not read past the
38359         first occurrence of the byte.
38360         * tests/test-strstr.c (main): Update comment.
38361         Suggested by Eric Blake.
38362
38363 2009-05-30  Bruno Haible  <bruno@clisp.org>
38364
38365         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38366         detail how to use dumpbin.
38367         Reported by David Byron <dbyron@dbyron.com>.
38368
38369 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38370
38371         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38372
38373 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38374
38375         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38376
38377 2009-05-28  Bruno Haible  <bruno@clisp.org>
38378
38379         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38380         build-aux/ files.
38381
38382 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38383
38384         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38385
38386 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38387
38388         * gnulib-tool (sed_transform_main_lib_file)
38389         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38390         regexps.
38391
38392 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38393
38394         * tests/test-strstr.c: Add another self-test.
38395         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38396         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38397
38398 2009-05-23  Bruno Haible  <bruno@clisp.org>
38399
38400         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38401         change.
38402
38403 2009-05-21  Bruno Haible  <bruno@clisp.org>
38404
38405         Simplify use of mode_t varargs.
38406         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38407         uses 'mode_t' or 'int'.
38408         * lib/openat.c (openat): Likewise.
38409         * lib/open-safer.c (open_safer): Likewise.
38410         * m4/mode_t.m4: New file.
38411         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38412         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38414         * modules/open (Files): Add m4/mode_t.m4.
38415         * modules/openat (Files): Likewise.
38416         * modules/fcntl-safer (Files): Likewise.
38417         Suggested by Eric Blake.
38418
38419 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38420
38421         * doc/glibc-functions/fallocate.texi: New file.
38422         * doc/gnulib.texi: Include it.
38423
38424 2009-05-21  Eric Blake  <ebb9@byu.net>
38425             Bruno Haible  <bruno@clisp.org>
38426
38427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38428         invocations.
38429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38430
38431 2009-05-21  Eric Blake  <ebb9@byu.net>
38432             Bruno Haible  <bruno@clisp.org>
38433
38434         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38435         include_next. Fix of 2008-11-20 commit.
38436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38437         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38438         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38439         NEXT_MATH_H.
38440         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38441         instead of NEXT_MATH_H.
38442
38443 2009-05-21  Bruno Haible  <bruno@clisp.org>
38444
38445         Avoid redefinition warnings for SIZE_MAX.
38446         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38447         Reported by Simon Josefsson.
38448
38449 2009-05-21  Bruno Haible  <bruno@clisp.org>
38450
38451         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38452         AC_CACHE_VAL.
38453
38454 2009-05-20  Bruno Haible  <bruno@clisp.org>
38455
38456         Make zeroptr.h work on mingw.
38457         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38458         mprotect.
38459         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38460         * modules/memchr2-tests (configure.ac): Likewise.
38461         * modules/memcmp-tests (configure.ac): Likewise.
38462         * modules/memmem-tests (configure.ac): Likewise.
38463         * modules/memrchr-tests (configure.ac): Likewise.
38464         Reported by Simon Josefsson.
38465
38466 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38467
38468         * tests/test-glob.c: Include string.h for strcmp prototype.
38469
38470 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38471
38472         * modules/getdelim (Depends-on): Add explicit stdint, although it
38473         was implicitly already pulled in via realloc-posix.
38474         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38475
38476 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38477
38478         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38479         G. Christensen" <tgc@jupiterrise.com>.
38480         * m4/sys_socket_h.m4: Check for sa_family_t.
38481         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38482         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38483         * tests/test-sys_socket.c: Check that sa_family_t works.
38484
38485 2009-05-18  Eric Blake  <ebb9@byu.net>
38486
38487         maint.mk: allow gnulib_dir in VPATH build
38488         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38489
38490 2009-05-15  Jim Meyering  <meyering@redhat.com>
38491
38492         maint.mk: Give gnulib_dir a default definition.
38493         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38494         Thus, most packages no longer need to specify this variable in cfg.mk
38495
38496 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38497
38498         rename.m4: fix typos that would make non-mingw cross-configure fail
38499         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38500
38501 2009-05-13  Eric Blake  <ebb9@byu.net>
38502
38503         mmap-anon: avoid out-of-order autoconf expansion
38504         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38505         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38506         * modules/memchr-tests (Depends-on): Add extensions.
38507         * modules/memchr2-tests (Depends-on): Add extensions.
38508         * modules/memcmp-tests (Depends-on): Add extensions.
38509         * modules/memmem-tests (Depends-on): Add extensions.
38510         * modules/memrchr-tests (Depends-on): Add extensions.
38511
38512 2009-05-13  Bruno Haible  <bruno@clisp.org>
38513
38514         Make some tests ISO C 99 compliant.
38515         * tests/zerosize-ptr.h: New file.
38516         * tests/test-memchr.c: Include zerosize-ptr.h.
38517         (main): Use a zero-size object pointer instead of NULL.
38518         * tests/test-memchr2.c: Include zerosize-ptr.h.
38519         (main): Use a zero-size object pointer instead of NULL.
38520         * tests/test-memcmp.c: Include zerosize-ptr.h.
38521         (main): Use a zero-size object pointer instead of NULL.
38522         * tests/test-memmem.c: Include zerosize-ptr.h.
38523         (main): Use a zero-size object pointer instead of NULL.
38524         * tests/test-memrchr.c: Include zerosize-ptr.h.
38525         (main): Use a zero-size object pointer instead of NULL.
38526         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38527         m4/mmap-anon.m4.
38528         (Depends-on): Add getpagesize.
38529         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38530         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38531         m4/mmap-anon.m4.
38532         (Depends-on): Add getpagesize.
38533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38534         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38535         m4/mmap-anon.m4.
38536         (Depends-on): Add getpagesize.
38537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38538         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38539         m4/mmap-anon.m4.
38540         (Depends-on): Add getpagesize.
38541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38542         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38543         m4/mmap-anon.m4.
38544         (Depends-on): Add getpagesize.
38545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38546
38547 2009-05-12  Bruno Haible  <bruno@clisp.org>
38548
38549         Tests for module 'alignof'.
38550         * modules/alignof-tests: New file.
38551         * tests/test-alignof.c: New file.
38552
38553 2009-05-12  Bruno Haible  <bruno@clisp.org>
38554
38555         Fix alignof macro.
38556         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38557         vendor compilers that are always correct.
38558
38559 2009-05-12  Bruno Haible  <bruno@clisp.org>
38560
38561         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38563         not whether its fully works.
38564
38565 2009-05-12  Bruno Haible  <bruno@clisp.org>
38566
38567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38568
38569 2009-05-12  Jim Meyering  <meyering@redhat.com>
38570
38571         * top/maint.mk: Adjust backslash alignment.
38572
38573 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38574
38575         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38576
38577 2009-05-11  Eric Blake  <ebb9@byu.net>
38578
38579         argp: avoid undefined behavior
38580         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38581         macros.
38582
38583 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38584
38585         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38586         user.name to prevent git commit from complaining.
38587
38588 2009-05-10  Bruno Haible  <bruno@clisp.org>
38589
38590         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38591         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38592         it rewrites every file name only once.
38593         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38594
38595 2009-05-08  Bruno Haible  <bruno@clisp.org>
38596
38597         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38598         instead of 'max'.
38599
38600 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38601
38602         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38603         sockaddr_storage test.
38604
38605 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38606
38607         * modules/sys_socket (Makefile.am): Substitute
38608         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38609         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38610         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38611         * tests/test-sys_socket.c: Check sockaddr_storage.
38612
38613 2009-05-08  Bruno Haible  <bruno@clisp.org>
38614
38615         New module 'alignof'.
38616         * lib/alignof.h: New file.
38617         * modules/alignof: New file.
38618
38619 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38620             Bruno Haible  <bruno@clisp.org>
38621
38622         Fix test-file-has-acl on FreeBSD.
38623         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38624         mask is implicitly added.
38625         * tests/test-file-has-acl.c: Include <signal.h>.
38626         (main): Terminate the test after 5 seconds.
38627         * modules/acl-tests (configure.ac): Check for alarm function.
38628
38629 2009-05-04  Bruno Haible  <bruno@clisp.org>
38630
38631         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38633         * modules/errno (configure.ac): Drop AC_REQUIRE.
38634         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38635         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38636
38637 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38638
38639         * modules/glob-tests: New module.
38640         * tests/test-glob.c: Add.
38641
38642 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38643
38644         * modules/fnmatch-tests: New module.
38645         * tests/test-fnmatch.c: Add.
38646
38647 2009-05-04  Eric Blake  <ebb9@byu.net>
38648
38649         maint: make the new no-submodule-changes rule VPATH-safe
38650         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38651
38652 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38653             Bruno Haible  <bruno@clisp.org>
38654
38655         acl: Fix infinite loop on FreeBSD.
38656         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38657         of return value from acl_get_entry.
38658         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38659         Likewise.
38660
38661 2009-05-03  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/acl-internal.h (acl_entries): Clarify return value.
38664         * lib/acl_entries.c (acl_entries): Likewise.
38665
38666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38667
38668         Bug fix in acl module.
38669         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38670
38671 2009-05-03  Bruno Haible  <bruno@clisp.org>
38672
38673         Create gperf-generated file in the source dir, not in the build dir.
38674         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38675         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38676         * modules/unicase/locale-language (unicase/locale-languages.h):
38677         Likewise.
38678         * modules/unicase/special-casing (unicase/special-casing-table.h):
38679         Likewise.
38680         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38681         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38682         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38683         Reported by Ralf Wildenhues.
38684
38685 2009-05-03  Bruno Haible  <bruno@clisp.org>
38686
38687         * modules/fnmatch (Description, configure.ac): Taken from
38688         fnmatch-posix.
38689         * modules/fnmatch-posix: Turn into a symbolic reference to the
38690         'fnmatch' module, and deprecate.
38691         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38692
38693 2009-05-03  Bruno Haible  <bruno@clisp.org>
38694
38695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38696         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38697         Reported by Ralf Wildenhues.
38698
38699 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38700
38701         * m4/fnmatch.m4: Fix fnmatch re-define.
38702
38703 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38704
38705         priv-set: new module and tests; adapt write-any-file
38706         * lib/priv-set.c: New file.
38707         * lib/priv-set.h: New file.
38708         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38709         * lib/write-any-file.c: Simplify by using priv-set module.
38710         * m4/priv-set.m4: New file.
38711         * modules/priv-set: New file.
38712         * modules/unlinkdir: Add dependency on priv-set module.
38713         * modules/write-any-file: Likewise.
38714
38715         Tests for module 'priv-set'.
38716         * modules/priv-set-tests: New file.
38717         * tests/test-priv-set.c: New file.
38718
38719 2009-05-03  Jim Meyering  <meyering@redhat.com>
38720             Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38723         use the converted UTF-8 variant of the name instead.
38724
38725 2009-05-03  Jim Meyering  <meyering@redhat.com>
38726
38727         tests: tighten some getdate tests
38728         * tests/test-getdate.c (main): Tighten tests: require equality,
38729         not just greater than.  Set TZ envvar to UTC0.
38730
38731 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38732
38733         getdate: correctly interpret "next monday" when run on a Monday
38734         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38735         that e.g., "next tues" (when run on a tuesday) results in a date
38736         that is one week in the future, and not today's date.
38737         I.e., add a week when the wday is the same as the current one.
38738         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38739         and earlier by Martin Bernreuther and Jan Minář.
38740         * tests/test-getdate.c (main): Check that "next DAY" is always in
38741         the future and that "last DAY" is always in the past.
38742
38743 2009-05-02  Jim Meyering  <meyering@redhat.com>
38744
38745         build: ensure that a release build fails when a submodule is unclean
38746         * top/maint.mk (no-submodule-changes): New rule.
38747         (alpha beta major): Depend on it.
38748
38749 2009-05-02  Bruno Haible  <bruno@clisp.org>
38750
38751         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38752         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38753         shell variable gl_fnmatch_required to detect which variant is
38754         requested.
38755         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38756         gl_FUNC_FNMATCH_POSIX.
38757         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38758         exclude fnmatch-posix.
38759
38760 2009-05-02  Bruno Haible  <bruno@clisp.org>
38761
38762         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38763         * modules/mbsrtowcs (License): Change to LGPLv2+.
38764         * modules/strnlen1 (License): Likewise.
38765         Reported by Simon Josefsson.
38766
38767 2009-05-02  Bruno Haible  <bruno@clisp.org>
38768
38769         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38770         "cross".
38771         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38772         gnulib-tool was called with option --source-base=lib.
38773
38774 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38775
38776         Use automake *-local hooks without commands, for extensibility.
38777         * modules/localcharset (Makefile.am): Rename install-exec-local
38778         rule to install-exec-localcharset, and make it a prerequisite of
38779         install-exec-local.  Likewise, rename the uninstall-local rule to
38780         uninstall-localcharset, and make it a prerequisite of the former.
38781
38782 2009-05-01  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38785         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38786         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38788         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38789         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38790         m4/locale-zh.m4, m4/codeset.m4.
38791
38792         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38793         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38794         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38795         m4/locale-zh.m4.
38796
38797         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38798         REPLACE_WCRTOMB if mbstate_t must be replaced.
38799         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38800         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38801
38802 2009-05-01  Bruno Haible  <bruno@clisp.org>
38803
38804         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38805         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38806         dngettext, dcngettext, textdomain, bindtextdomain,
38807         bind_textdomain_codeset): Undefine before redefining.
38808
38809 2009-04-30  Bruno Haible  <bruno@clisp.org>
38810
38811         Fix bug introduced on 2009-04-25.
38812         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38813         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38814         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38815         is defined.
38816         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38817         is defined.
38818         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38819         is defined.
38820         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38821
38822 2009-04-28  Bruno Haible  <bruno@clisp.org>
38823
38824         Comment tweaks.
38825         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38826         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38827         * lib/unicase.h (u*_casexfrm): Likewise.
38828         Reported by Paolo Bonzini.
38829
38830 2009-04-28  Bruno Haible  <bruno@clisp.org>
38831
38832         Fix a compilation error.
38833         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38834         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38835         Reported by Jim Meyering.
38836
38837 2009-04-27  Bruno Haible  <bruno@clisp.org>
38838
38839         New module 'libunistring'.
38840         * modules/libunistring: New file.
38841         * m4/libunistring.m4: New file.
38842         * MODULES.html.sh (Unicode string functions): Add it.
38843
38844 2009-04-27  Eric Blake  <ebb9@byu.net>
38845
38846         maint.mk: allow package-specific header to provide <config.h>
38847         * top/maint.mk (sc_require_config_h): New variable.
38848         (sc_require_config_h, sc_require_config_h_first): Use it.
38849
38850 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38851
38852         * top/maint.mk (sc_avoid_if_before_free): Except
38853         useless-if-before-free script.
38854
38855 2009-04-27  Eric Blake  <ebb9@byu.net>
38856
38857         maintainer-makefile: depend on all required helper scripts
38858         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38859         useless-if-before-free.
38860         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38861         version, rather than assuming gnulib checkout is available.
38862         Reported by Simen Josefsson.
38863
38864 2009-04-26  Bruno Haible  <bruno@clisp.org>
38865
38866         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38867         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38868         "../" or "..".
38869
38870 2009-04-26  Bruno Haible  <bruno@clisp.org>
38871
38872         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38873         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38874         AC_LIB_HAVE_LINKFLAGS.
38875
38876 2009-04-26  Bruno Haible  <bruno@clisp.org>
38877
38878         Simplify calling convention of u*_conv_from_encoding.
38879         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38880         u32_conv_from_encoding): Expect a resultbuf argument and return the
38881         result directly as a pointer.
38882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38883         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38884         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38885         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38886         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38887         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38888         Update.
38889         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38890         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38891         * lib/vasnprintf.c (VASNPRINTF): Update.
38892         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38893         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38894         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38895         * NEWS: Mention the change.
38896
38897 2009-04-26  Bruno Haible  <bruno@clisp.org>
38898
38899         Simplify calling convention of u*_conv_to_encoding.
38900         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38901         u32_conv_to_encoding): Expect a resultbuf argument and return the
38902         result directly as a pointer.
38903         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38904         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38905         freeing scaled_offsets if mem_iconveha failed.
38906         * lib/unicase/u-casexfrm.h (FUNC): Update.
38907         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38908         * lib/vasnprintf.c (VASNPRINTF): Update.
38909         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38910         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38911         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38912         * NEWS: Mention the change.
38913
38914 2009-04-26  Bruno Haible  <bruno@clisp.org>
38915
38916         Avoid test failures on AIX and OSF/1.
38917         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38918         malloc(0).
38919         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38920         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38921         Likewise.
38922         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38923         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38924         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38925         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38926         * doc/posix-functions/malloc.texi: Document the portability problem
38927         related to malloc(0).
38928
38929 2009-04-26  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38932         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38933         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38934
38935 2009-04-25  Bruno Haible  <bruno@clisp.org>
38936
38937         Avoid link error when creating a namespace clean library.
38938         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38939         as macro with arguments if already defined as an alias.
38940         * lib/signbitf.c (gl_signbitf): Don't undefine.
38941         * lib/signbitd.c (gl_signbitd): Don't undefine.
38942         * lib/signbitl.c (gl_signbitl): Don't undefine.
38943
38944 2009-04-25  Jim Meyering  <meyering@redhat.com>
38945
38946         vc-list-files: fix another quoting bug
38947         * build-aux/vc-list-files: Avoid sed backslash expansion
38948         of pathological directory names.
38949
38950 2009-04-25  Eric Blake  <ebb9@byu.net>
38951
38952         vc-list-files: fix shell quoting error
38953         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38954         timestamp.
38955
38956 2009-04-25  Jim Meyering  <meyering@redhat.com>
38957
38958         vc-list-files: restore lost functionality with subdir argument
38959         * build-aux/vc-list-files: When given a non-"." sub-directory
38960         argument, substitute the $dir/ prefix back onto each resulting name.
38961         Otherwise, coreutils' root_tests check would fail.
38962
38963 2009-04-24  Eric Blake  <ebb9@byu.net>
38964
38965         vc-list-files: ignore git symlinks
38966         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38967         than ls-files, to ignore git symlinks.
38968
38969         maint.mk: import improvements from m4
38970         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38971         (move_if_change): Delete unused macro.
38972         (news-date-check, vc-diff-check): Support VPATH builds.
38973         (announcement): Likewise.  Split --bootstrap-tools list...
38974         (boostrap-tools): ...into separate list, which can be overridden
38975         in cfg.mk.
38976         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38977         requiring dependency on useless-if-before-free module.
38978         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38979         Support VPATH builds.
38980
38981 2009-04-24  Jim Meyering  <meyering@redhat.com>
38982
38983         maint.mk: remove coreutils-specific rules and variables
38984         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38985         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38986         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38987
38988         maint.mk: remove obsolete rule
38989         * top/maint.mk (rel-check): Remove rule.
38990         (WGET, WGETFLAGS): Remove now-unused variables.
38991
38992 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38993
38994         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38995         consistency.
38996
38997         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38998         '$(PATH_SEPARATOR)' instead of ':'.
38999
39000 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39001
39002         * lib/getopt1.c (main): Use 'const' for static array.
39003
39004 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39005
39006         * top/maint.mk: Sync with coreutils.
39007         * NEWS: Explain incompatibilities.
39008
39009 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39010             Bruno Haible  <bruno@clisp.org>
39011
39012         Fix cross-compilation results.
39013         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39014         statement, as third argument of AC_TRY_RUN.
39015         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39016         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39017         Likewise.
39018         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39019         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39020         Likewise.
39021         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39023         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39024
39025 2009-04-20  Bruno Haible  <bruno@clisp.org>
39026
39027         Avoid test failure on mingw.
39028         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39029
39030 2009-04-20  Bruno Haible  <bruno@clisp.org>
39031
39032         Avoid compilation error on mingw.
39033         * modules/localename-tests (Depends-on): Add locale.
39034
39035 2009-04-19  Bruno Haible  <bruno@clisp.org>
39036
39037         Support for building a shared library on Windows platforms.
39038         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39039         (main): Test the presence of UNINORM_NFC here.
39040         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39041         (main): Test the presence of UNINORM_NFD here.
39042         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39043         (main): Test the presence of UNINORM_NFKC here.
39044         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39045         (main): Test the presence of UNINORM_NFKD here.
39046
39047 2009-04-19  Bruno Haible  <bruno@clisp.org>
39048
39049         Avoid a compiler warning.
39050         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39051         Change type of variable 'sequence'.
39052
39053 2009-04-19  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/configmake (Makefile.am): When the contents of configmake.h
39056         does not change, arrange to preserve its modification time.
39057
39058 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39059
39060         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39061         gettext domain.
39062
39063 2009-04-16  Jim Meyering  <meyering@redhat.com>
39064
39065         useless-if-before-free: improve conversion code
39066         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39067         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39068
39069 2009-04-14  Bruno Haible  <bruno@clisp.org>
39070
39071         * modules/fcntl (Depends-on): Add extensions.
39072         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39073
39074 2009-04-12  Ben Pfaff  <blp@gnu.org>
39075
39076         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39077         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39078
39079 2009-03-20  Ben Pfaff  <blp@gnu.org>
39080
39081         Make rename replace existing destinations on Windows.
39082         * m4/rename.m4: Add test for Mingw.
39083         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39084         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39085         * doc/posix-functions/rename.texi: Document.
39086
39087 2009-04-10  Bruno Haible  <bruno@clisp.org>
39088
39089         New include file "iconveh.h".
39090         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39091         * lib/striconveh.h: Include it.
39092         (enum iconv_ilseq_handler): Remove definition.
39093         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39094         striconveh.h.
39095         * lib/striconveha.c: Include striconveh.h.
39096         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39097         * modules/striconveh (Files): Add lib/iconveh.h.
39098         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39099         lib/striconveh.h.
39100
39101 2009-04-10  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/uniconv.h: Update comment.
39104
39105 2009-04-10  Bruno Haible  <bruno@clisp.org>
39106
39107         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39108         always.
39109         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39110         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39111         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39112         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39113         "unistring-notinline.h", so that the function gets defined always.
39114         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39115         * lib/unistr/u8-uctomb.c: Likewise.
39116         * lib/unistr/u16-mbtouc.c: Likewise.
39117         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39118         * lib/unistr/u16-uctomb.c: Likewise.
39119         * lib/unistr/u32-mbtouc.c: Likewise.
39120         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39121         * lib/unistr/u32-uctomb.c: Likewise.
39122
39123 2009-04-10  Bruno Haible  <bruno@clisp.org>
39124
39125         Mark 'utime' obsolete.
39126         * modules/utime (Status, Notice): New sections.
39127         Suggested by Jim Meyering.
39128
39129         Fix cross-compile guess for utime test.
39130         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39131         autoconf.
39132         * doc/posix-functions/utime.texi: Give more precisions.
39133         Reported by Jan <ipif@ymail.com>.
39134
39135 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39136
39137         filevercmp: correct today's change
39138         * lib/filevercmp.c: Also handle coreutils' test inputs.
39139         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39140
39141         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39142         for reporting it.
39143         * lib/filevercmp.c: Special handle for "", "." and "..".
39144         * tests/test-filevercmp.c: Enlarge the set suite.
39145
39146 2009-04-07  Jim Meyering  <meyering@redhat.com>
39147
39148         useless-if-before-free: show how to remove braced useless free, too
39149         * build-aux/useless-if-before-free: still only in a comment, though.
39150
39151 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39152
39153         maint.mk: import changes to syntax-check macros from coreutils
39154         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39155         Use them in the relevant macros.
39156
39157 2009-04-06  Bruno Haible  <bruno@clisp.org>
39158
39159         Fix unportable use of bit-fields.
39160         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39161         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39162         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39163
39164 2009-04-06  Bruno Haible  <bruno@clisp.org>
39165
39166         Avoid test failures on AIX and OSF/1.
39167         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39168         that malloc(0) = NULL.
39169         * tests/unicase/test-u8-tolower.c (check): Likewise.
39170         * tests/unicase/test-u8-totitle.c (check): Likewise.
39171         * tests/unicase/test-u8-toupper.c (check): Likewise.
39172         * tests/unicase/test-u16-casefold.c (check): Likewise.
39173         * tests/unicase/test-u16-tolower.c (check): Likewise.
39174         * tests/unicase/test-u16-totitle.c (check): Likewise.
39175         * tests/unicase/test-u16-toupper.c (check): Likewise.
39176         * tests/unicase/test-u32-casefold.c (check): Likewise.
39177         * tests/unicase/test-u32-tolower.c (check): Likewise.
39178         * tests/unicase/test-u32-totitle.c (check): Likewise.
39179         * tests/unicase/test-u32-toupper.c (check): Likewise.
39180         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39181         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39182         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39183         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39184         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39185         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39186         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39187         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39188         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39189         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39190         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39191         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39192
39193 2009-04-05  Bruno Haible  <bruno@clisp.org>
39194
39195         Work around an autoconf limitation.
39196         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39197         comment line if it would be longer than 3 KB.
39198
39199 2009-04-05  Bruno Haible  <bruno@clisp.org>
39200
39201         Avoid test failure with libiconv-1.13.
39202         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39203         of the expected test results.
39204
39205 2009-04-05  Bruno Haible  <bruno@clisp.org>
39206
39207         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39208         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39209         that it should be installed.
39210
39211 2009-04-05  Bruno Haible  <bruno@clisp.org>
39212
39213         * gnulib-tool: New option --copy-file.
39214         (func_usage): Document it.
39215         (func_dest_tmpfilename): Moved out of func_import.
39216         (func_add_file, func_update_file): New functions, extracted from
39217         func_import.
39218         (func_import): Update.
39219
39220 2009-04-05  Karl Berry  <karl@gnu.org>
39221
39222         * README: prominently mention gnulib-tool.
39223         Rearrange sections so getting the code is near the top.
39224
39225 2009-04-05  Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/unicase.h: Mention u*_cmp2.
39228         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39229         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39230         * lib/unicase/ulc-casecmp.c: Likewise.
39231         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39232         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39233         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39234         unistr/u8-cmp.
39235         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39236         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39237         unistr/u16-cmp.
39238         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39239         unistr/u32-cmp.
39240
39241         * lib/uninorm.h: Mention u*_cmp2.
39242         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39243         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39244         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39245         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39246         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39247         unistr/u8-cmp.
39248         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39249         unistr/u16-cmp.
39250         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39251         unistr/u32-cmp.
39252
39253         New module 'unistr/u32-cmp2'.
39254         * lib/unistr/u32-cmp2.c: New file.
39255         * modules/unistr/u32-cmp2: New file.
39256
39257         New module 'unistr/u16-cmp2'.
39258         * lib/unistr/u16-cmp2.c: New file.
39259         * modules/unistr/u16-cmp2: New file.
39260
39261         New module 'unistr/u8-cmp2'.
39262         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39263         * lib/unistr/u8-cmp2.c: New file.
39264         * lib/unistr/u-cmp2.h: New file.
39265         * modules/unistr/u8-cmp2: New file.
39266
39267 2009-04-05  Bruno Haible  <bruno@clisp.org>
39268
39269         * lib/unictype.h (uc_property_is_valid): New macro.
39270         * tests/unictype/test-pr_byname.c (main): Use it.
39271
39272         * lib/unistr.h: Doc fixes.
39273         * lib/uniconv.h: Doc fixes.
39274         * lib/unictype.h: Doc fixes.
39275
39276 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39277
39278         Port coreutils 7.2 to Solaris 8.
39279
39280         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39281         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39282         for Solaris 8.  This is a bit of a hack, as it means it's the
39283         caller's responsibility to add -lnsl if needed, but most likely it
39284         won't be needed since only getaddrinfo uses this and getaddrinfo
39285         isn't needed on Solaris 8.
39286
39287         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39288         problem to Solaris 8 encountered with coreutils 7.2, which
39289         resulted in a message "fnmatch.c:292: warning: passing argument 4
39290         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39291         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39292
39293 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39294
39295         * m4/ld-version-script.m4: Add FIXME comment.
39296
39297 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39298
39299         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39300         SOVERSION variable.
39301
39302 2009-04-02  Bruno Haible  <bruno@clisp.org>
39303
39304         * Makefile (info, html, dvi, pdf): Combine the rules.
39305         Suggested by Jim Meyering.
39306
39307 2009-04-01  Bruno Haible  <bruno@clisp.org>
39308
39309         * Makefile (info, html, dvi, pdf): New targets.
39310         Reported by Reuben Thomas <rrt@sc3d.org>.
39311
39312 2009-04-01  Bruno Haible  <bruno@clisp.org>
39313
39314         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39315         can be put into PATH.
39316         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39317
39318 2009-04-01  Bruno Haible  <bruno@clisp.org>
39319
39320         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39321
39322 2009-04-01  Bruno Haible  <bruno@clisp.org>
39323
39324         Rename module 'visibility'.
39325         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39326         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39327         * doc/gnulib.texi: Update.
39328         * MODULES.html.sh (Misc): Update.
39329         * NEWS: Mention the change.
39330
39331 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39332
39333         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39334         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39335         Eric Blake <ebb9@byu.net> for review.
39336         * MODULES.html.sh: Add lib-msvc-compat.
39337         * doc/gnulib.texi: Link to new section.
39338         * m4/ld-output-def.m4: New file.
39339         * doc/ld-output-def.texi: New file.
39340
39341 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39342
39343         Rename ld-version-script to lib-symbol-versions.  Suggested by
39344         Bruno Haible <bruno@clisp.org>.
39345         * modules/ld-version-script: Renamed to lib-symbol-versions.
39346         * doc/ld-version-script.texi: Fix module name.
39347         * MODULES.html.sh: Add lib-symbol-versions.
39348
39349 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39350
39351         * modules/u64-tests: New file.
39352         * tests/test-u64.c: New file.
39353
39354 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39355
39356         * MODULES.html.sh: Mention u64.
39357         * modules/u64: New module.
39358         * modules/crypto/sha512: Depend on u64 module instead of providing
39359         u64.h.
39360
39361 2009-03-27  Eric Blake  <ebb9@byu.net>
39362
39363         test-strerror: make debugging EAI_SYSTEM easier
39364         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39365         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39366         failure was EAI_SYSTEM.
39367
39368 2009-03-25  Bruno Haible  <bruno@clisp.org>
39369
39370         Fix a problem with --enable-relocatable on Solaris 7.
39371         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39372         since 2008-02-24.
39373
39374 2009-03-25  Eric Blake  <ebb9@byu.net>
39375
39376         test-sockets: avoid gcc warning
39377         * tests/test-sockets.c (main): Silence compiler warning.
39378
39379 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39380
39381         New modules nproc, pthread, contributed by Glen Lenker.
39382
39383         * MODULES.html.sh: Add pthread, nproc.
39384         * lib/nproc.c: New file.
39385         * lib/nproc.h: New file.
39386         * lib/pthread.in.h: New file.
39387         * m4/pthread.m4: New file.
39388         * modules/nproc: New file.
39389         * modules/pthread: New file.
39390
39391 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39392
39393         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39394         New variable.
39395
39396 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39397
39398         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39399         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39400         * tests/test-filevercmp.c: Add tests for backup suffixes.
39401
39402 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39403
39404         * modules/stdlib (Depends-on): Add stdint, needed when defining
39405         struct random_data on, for example, HP-UX 10.20.  Reported by
39406         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39407
39408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39409
39410         * lib/readline.c (readline): Call fflush on stdout after printing
39411         prompt.
39412
39413 2009-03-20  Bruno Haible  <bruno@clisp.org>
39414
39415         Remove dependency from 'close' module to -lws2_32 on native Windows.
39416         * lib/close-hook.h: New file.
39417         * lib/close-hook.c: New file.
39418         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39419         w32sock.h.
39420         (_gl_close_fd_maybe_socket): Remove function.
39421         (rpl_close): Invoke execute_all_close_hooks instead of
39422         _gl_close_fd_maybe_socket.
39423         * lib/sockets.c: Include close-hook.h, w32sock.h.
39424         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39425         (close_sockets_hook): New variable.
39426         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39427         (gl_sockets_cleanup): Unregister it.
39428         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39429         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39430         * modules/close-hook: New file.
39431         * modules/close (Files): Remove lib/w32sock.h.
39432         (Depends-on): Add close-hook.
39433         (Link): Remove section.
39434         * modules/sockets (Files): Add lib/w32sock.h.
39435         (Depends-on): Add close-hook.
39436         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39437         invocation.
39438         * NEWS: Mention that LIB_CLOSE is gone.
39439
39440 2009-03-23  Eric Blake  <ebb9@byu.net>
39441
39442         signal-tests: test previous patch
39443         * tests/test-signal.c: New file.
39444         * modules/signal-tests: Likewise.
39445
39446         signal.h: always support 'volatile sig_atomic_t'
39447         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39448         (gl_SIGNAL_H_DEFAULTS): Add a default.
39449         * modules/signal (Makefile.am): Substitute if needed.
39450         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39451         users can blindly add volatile.
39452         * doc/posix-headers/signal.texi (signal.h): Document it.
39453         Reported by Matthew Woehlke.
39454
39455 2009-03-23  Jim Meyering  <meyering@redhat.com>
39456
39457         pathmax: PATH_MAX: use pathconf only when available
39458         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39459         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39460         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39461         This avoids a link failure in a PSP cross-compilation environment
39462         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39463
39464         * lib/vasnprintf.c (divide): Fix typo in comment.
39465
39466 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39467
39468         * gnulib-tool (func_filter_filelist): Fix comment.
39469
39470 2009-03-20  Bruno Haible  <bruno@clisp.org>
39471
39472         Make sockets.h self-contained.
39473         * lib/sockets.c: Include sockets.h first.
39474         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39475
39476 2009-03-19  Eric Blake  <ebb9@byu.net>
39477
39478         doc: mention more functions added in cygwin 1.7.0
39479         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39480         addition.
39481         * doc/posix-functions/log2f.texi: Likewise.
39482
39483 2009-03-19  Jim Meyering  <meyering@redhat.com>
39484
39485         fsusage: avoid syntax error due to statement-before-declaration
39486         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39487         after all declarations.  Reported by Matthew Woehlke in
39488         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39489
39490 2009-03-18  Eric Blake  <ebb9@byu.net>
39491
39492         build-aux/compile: sync from automake
39493         * build-aux/compile: New file, from automake.
39494         * config/srclist.txt: Mention build-aux/compile.
39495
39496 2009-03-17  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/git-merge-changelog.c: Fix typo in comment.
39499         Reported by Reuben Thomas <rrt@sc3d.org>.
39500
39501 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39502
39503         * m4/regex.m4: update and improve help for
39504         --without-included-regex.
39505
39506 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39507
39508         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39509         failure on missing include files.
39510
39511 2009-03-17  Eric Blake  <ebb9@byu.net>
39512
39513         doc: mention more functions added in cygwin 1.7.0
39514         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39515         addition.
39516         * doc/posix-functions/fwscanf.texi: Likewise.
39517         * doc/posix-functions/swprintf.texi: Likewise.
39518         * doc/posix-functions/swscanf.texi: Likewise.
39519         * doc/posix-functions/vfwprintf.texi: Likewise.
39520         * doc/posix-functions/vfwscanf.texi: Likewise.
39521         * doc/posix-functions/vswprintf.texi: Likewise.
39522         * doc/posix-functions/vswscanf.texi: Likewise.
39523         * doc/posix-functions/vwprintf.texi: Likewise.
39524         * doc/posix-functions/vwscanf.texi: Likewise.
39525         * doc/posix-functions/wcscasecmp.texi: Likewise.
39526         * doc/posix-functions/wcsdup.texi: Likewise.
39527         * doc/posix-functions/wcsftime.texi: Likewise.
39528         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39529         * doc/posix-functions/wprintf.texi: Likewise.
39530         * doc/posix-functions/wscanf.texi: Likewise.
39531         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39532
39533 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39534
39535         maint.mk: really add $(AM_MAKEFLAGS)
39536         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39537         was inadvertently omitted in the last commit.
39538         Spotted by Bruno Haible.
39539
39540         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39541         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39542         $(AM_MAKEFLAGS)' rather than plain `make'.
39543
39544         gnulib-tool: execute $MAKE not make
39545         * gnulib-tool: Default $MAKE to 'make'.
39546         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39547         than make.  Initialize $MAKE in the do-autobuild script.
39548
39549         gnulib-tool: use $MAKE not make in generated files
39550         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39551         make, in generated files.  Initialize $MAKE in the do-autobuild
39552         script.
39553
39554         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39555
39556         GNUmakefile: disable parallelism only for multiple, recursive targets
39557         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39558         additions in the Makefile.
39559         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39560         by Automake.
39561         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39562         are listed on the command line and at least one of them is
39563         listed in $(ALL_RECURSIVE_TARGETS).
39564
39565 2009-03-14  Bruno Haible  <bruno@clisp.org>
39566
39567         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39568         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39569         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39570         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39571         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39572         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39573         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39574         unistr/u8-uctomb.
39575         * modules/unistr/u8-strchr (Depends-on): Likewise.
39576         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39577         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39578         unistr/u16-uctomb.
39579         * modules/unistr/u16-strchr (Depends-on): Likewise.
39580         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39581
39582 2009-03-12  Bruno Haible  <bruno@clisp.org>
39583
39584         Work around select() bug on Interix 3.5.
39585         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39586         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39587         * m4/select.m4: New file.
39588         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39589         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39590         * modules/select (Files): Add m4/select.m4.
39591         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39592         * modules/nanosleep (Depends-on): Add select.
39593         * modules/poll (Depends-on): Likewise.
39594         * doc/posix-functions/select.texi: Mention the Interix bug.
39595         Reported by Markus Duft <mduft@gentoo.org>.
39596
39597         * lib/select.c: Renamed from lib/winsock-select.c.
39598         * modules/select (Files): Add lib/select.c, remove
39599         lib/winsock-select.c.
39600         (configure.ac): Update.
39601
39602 2009-03-12  Jim Meyering  <meyering@redhat.com>
39603
39604         avoid gcc warnings about unused macro definitions
39605         * lib/readtokens.c (STREQ): Remove unused definition.
39606         * lib/xmalloc.c (SIZE_MAX): Likewise.
39607         * lib/openat-die.c (N_): Likewise.
39608         * lib/mountlist.c (SIZE_MAX): Remove definition.
39609         Instead, include <stdint.h>.
39610         * lib/readutmp.c: Likewise.
39611         * modules/readutmp (Depends-on): Add stdint.
39612         * modules/mountlist (Depends-on): Add stdint.
39613         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39614
39615 2009-03-10  Bruno Haible  <bruno@clisp.org>
39616
39617         Tests for module 'mbmemcasecoll'.
39618         * modules/mbmemcasecoll-tests: New file.
39619         * tests/test-mbmemcasecoll1.sh: New file.
39620         * tests/test-mbmemcasecoll2.sh: New file.
39621         * tests/test-mbmemcasecoll3.sh: New file.
39622         * tests/test-mbmemcasecoll.c: New file.
39623
39624         New module 'mbmemcasecoll'.
39625         * lib/mbmemcasecoll.h: New file.
39626         * lib/mbmemcasecoll.c: New file.
39627         * modules/mbmemcasecoll: New file.
39628
39629         * tests/test-mbmemcasecmp.h: New file, extracted from
39630         tests/test-mbmemcasecmp.c.
39631         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39632         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39633         (main): Update.
39634         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39635
39636 2009-03-09  Bruno Haible  <bruno@clisp.org>
39637
39638         Tests for module 'mbmemcasecmp'.
39639         * modules/mbmemcasecmp-tests: New file.
39640         * tests/test-mbmemcasecmp1.sh: New file.
39641         * tests/test-mbmemcasecmp2.sh: New file.
39642         * tests/test-mbmemcasecmp3.sh: New file.
39643         * tests/test-mbmemcasecmp.c: New file.
39644
39645         New module 'mbmemcasecmp'.
39646         * lib/mbmemcasecmp.h: New file.
39647         * lib/mbmemcasecmp.c: New file.
39648         * modules/mbmemcasecmp: New file.
39649
39650 2009-03-09  Bruno Haible  <bruno@clisp.org>
39651
39652         Tests for module 'unicase/ulc-casecoll'.
39653         * modules/unicase/ulc-casecoll-tests: New file.
39654         * tests/unicase/test-ulc-casecoll1.sh: New file.
39655         * tests/unicase/test-ulc-casecoll2.sh: New file.
39656         * tests/unicase/test-ulc-casecoll.c: New file.
39657
39658         New module 'unicase/ulc-casecoll'.
39659         * lib/unicase.h (ulc_casecoll): New declaration.
39660         * lib/unicase/ulc-casecoll.c: New file.
39661         * modules/unicase/ulc-casecoll: New file.
39662
39663         New module 'unicase/ulc-casexfrm'.
39664         * lib/unicase.h (ulc_casexfrm): New declaration.
39665         * lib/unicase/ulc-casexfrm.c: New file.
39666         * modules/unicase/ulc-casexfrm: New file.
39667
39668 2009-03-09  Bruno Haible  <bruno@clisp.org>
39669
39670         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39671         invocations.
39672
39673         * m4/mbscasecmp.m4: Remove file.
39674         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39675         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39676
39677         * m4/mbscasestr.m4: Remove file.
39678         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39679         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39680
39681         * m4/mbschr.m4: Remove file.
39682         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39683         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39684
39685         * m4/mbscspn.m4: Remove file.
39686         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39687         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39688
39689         * m4/mbslen.m4: Remove file.
39690         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39691         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39692
39693         * m4/mbsncasecmp.m4: Remove file.
39694         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39695         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39696
39697         * m4/mbsnlen.m4: Remove file.
39698         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39699         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39700
39701         * m4/mbspbrk.m4: Remove file.
39702         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39703         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39704
39705         * m4/mbspcasecmp.m4: Remove file.
39706         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39707         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39708
39709         * m4/mbsrchr.m4: Remove file.
39710         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39711         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39712
39713         * m4/mbssep.m4: Remove file.
39714         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39715         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39716
39717         * m4/mbsspn.m4: Remove file.
39718         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39719         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39720
39721         * m4/mbsstr.m4: Remove file.
39722         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39723         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39724
39725         * m4/mbstok_r.m4: Remove file.
39726         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39727         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39728
39729         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39730
39731         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39732         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39733
39734         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39735
39736 2009-03-08  Bruno Haible  <bruno@clisp.org>
39737
39738         Tests for module 'unicase/ulc-casecmp'.
39739         * modules/unicase/ulc-casecmp-tests: New file.
39740         * tests/unicase/test-ulc-casecmp1.sh: New file.
39741         * tests/unicase/test-ulc-casecmp2.sh: New file.
39742         * tests/unicase/test-ulc-casecmp.c: New file.
39743
39744         New module 'unicase/ulc-casecmp'.
39745         * lib/unicase.h (ulc_casecmp): New declaration.
39746         * lib/unicase/ulc-casecmp.c: New file.
39747         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39748         'const SRC_UNIT *'.
39749         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39750         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39751         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39752         * modules/unicase/ulc-casecmp: New file.
39753
39754         Tests for module 'unicase/u32-is-cased'.
39755         * modules/unicase/u32-is-cased-tests: New file.
39756         * tests/unicase/test-u32-is-cased.c: New file.
39757
39758         Tests for module 'unicase/u16-is-cased'.
39759         * modules/unicase/u16-is-cased-tests: New file.
39760         * tests/unicase/test-u16-is-cased.c: New file.
39761
39762         Tests for module 'unicase/u8-is-cased'.
39763         * modules/unicase/u8-is-cased-tests: New file.
39764         * tests/unicase/test-u8-is-cased.c: New file.
39765         * tests/unicase/test-is-cased.h: New file.
39766
39767         New module 'unicase/u32-is-cased'.
39768         * lib/unicase/u32-is-cased.c: New file.
39769         * modules/unicase/u32-is-cased: New file.
39770
39771         New module 'unicase/u16-is-cased'.
39772         * lib/unicase/u16-is-cased.c: New file.
39773         * modules/unicase/u16-is-cased: New file.
39774
39775         New module 'unicase/u8-is-cased'.
39776         * lib/unicase/u8-is-cased.c: New file.
39777         * lib/unicase/u-is-cased.h: New file.
39778         * modules/unicase/u8-is-cased: New file.
39779
39780         Tests for module 'unicase/u32-is-casefolded'.
39781         * modules/unicase/u32-is-casefolded-tests: New file.
39782         * tests/unicase/test-u32-is-casefolded.c: New file.
39783
39784         Tests for module 'unicase/u16-is-casefolded'.
39785         * modules/unicase/u16-is-casefolded-tests: New file.
39786         * tests/unicase/test-u16-is-casefolded.c: New file.
39787
39788         Tests for module 'unicase/u8-is-casefolded'.
39789         * modules/unicase/u8-is-casefolded-tests: New file.
39790         * tests/unicase/test-u8-is-casefolded.c: New file.
39791         * tests/unicase/test-is-casefolded.h: New file.
39792
39793         New module 'unicase/u32-is-casefolded'.
39794         * lib/unicase/u32-is-casefolded.c: New file.
39795         * modules/unicase/u32-is-casefolded: New file.
39796
39797         New module 'unicase/u16-is-casefolded'.
39798         * lib/unicase/u16-is-casefolded.c: New file.
39799         * modules/unicase/u16-is-casefolded: New file.
39800
39801         New module 'unicase/u8-is-casefolded'.
39802         * lib/unicase/u8-is-casefolded.c: New file.
39803         * modules/unicase/u8-is-casefolded: New file.
39804
39805         Tests for module 'unicase/u32-is-titlecase'.
39806         * modules/unicase/u32-is-titlecase-tests: New file.
39807         * tests/unicase/test-u32-is-titlecase.c: New file.
39808
39809         Tests for module 'unicase/u16-is-titlecase'.
39810         * modules/unicase/u16-is-titlecase-tests: New file.
39811         * tests/unicase/test-u16-is-titlecase.c: New file.
39812
39813         Tests for module 'unicase/u8-is-titlecase'.
39814         * modules/unicase/u8-is-titlecase-tests: New file.
39815         * tests/unicase/test-u8-is-titlecase.c: New file.
39816         * tests/unicase/test-is-titlecase.h: New file.
39817
39818         New module 'unicase/u32-is-titlecase'.
39819         * lib/unicase/u32-is-titlecase.c: New file.
39820         * modules/unicase/u32-is-titlecase: New file.
39821
39822         New module 'unicase/u16-is-titlecase'.
39823         * lib/unicase/u16-is-titlecase.c: New file.
39824         * modules/unicase/u16-is-titlecase: New file.
39825
39826         New module 'unicase/u8-is-titlecase'.
39827         * lib/unicase/u8-is-titlecase.c: New file.
39828         * modules/unicase/u8-is-titlecase: New file.
39829
39830         Tests for module 'unicase/u32-is-lowercase'.
39831         * modules/unicase/u32-is-lowercase-tests: New file.
39832         * tests/unicase/test-u32-is-lowercase.c: New file.
39833
39834         Tests for module 'unicase/u16-is-lowercase'.
39835         * modules/unicase/u16-is-lowercase-tests: New file.
39836         * tests/unicase/test-u16-is-lowercase.c: New file.
39837
39838         Tests for module 'unicase/u8-is-lowercase'.
39839         * modules/unicase/u8-is-lowercase-tests: New file.
39840         * tests/unicase/test-u8-is-lowercase.c: New file.
39841         * tests/unicase/test-is-lowercase.h: New file.
39842
39843         New module 'unicase/u32-is-lowercase'.
39844         * lib/unicase/u32-is-lowercase.c: New file.
39845         * modules/unicase/u32-is-lowercase: New file.
39846
39847         New module 'unicase/u16-is-lowercase'.
39848         * lib/unicase/u16-is-lowercase.c: New file.
39849         * modules/unicase/u16-is-lowercase: New file.
39850
39851         New module 'unicase/u8-is-lowercase'.
39852         * lib/unicase/u8-is-lowercase.c: New file.
39853         * modules/unicase/u8-is-lowercase: New file.
39854
39855         Tests for module 'unicase/u32-is-uppercase'.
39856         * modules/unicase/u32-is-uppercase-tests: New file.
39857         * tests/unicase/test-u32-is-uppercase.c: New file.
39858
39859         Tests for module 'unicase/u16-is-uppercase'.
39860         * modules/unicase/u16-is-uppercase-tests: New file.
39861         * tests/unicase/test-u16-is-uppercase.c: New file.
39862
39863         Tests for module 'unicase/u8-is-uppercase'.
39864         * modules/unicase/u8-is-uppercase-tests: New file.
39865         * tests/unicase/test-u8-is-uppercase.c: New file.
39866         * tests/unicase/test-is-uppercase.h: New file.
39867
39868         New module 'unicase/u32-is-uppercase'.
39869         * lib/unicase/u32-is-uppercase.c: New file.
39870         * modules/unicase/u32-is-uppercase: New file.
39871
39872         New module 'unicase/u16-is-uppercase'.
39873         * lib/unicase/u16-is-uppercase.c: New file.
39874         * modules/unicase/u16-is-uppercase: New file.
39875
39876         New module 'unicase/u8-is-uppercase'.
39877         * lib/unicase/u8-is-uppercase.c: New file.
39878         * modules/unicase/u8-is-uppercase: New file.
39879
39880         New module 'unicase/u32-is-invariant'.
39881         * lib/unicase/u32-is-invariant.c: New file.
39882         * modules/unicase/u32-is-invariant: New file.
39883
39884         New module 'unicase/u16-is-invariant'.
39885         * lib/unicase/u16-is-invariant.c: New file.
39886         * modules/unicase/u16-is-invariant: New file.
39887
39888         New module 'unicase/u8-is-invariant'.
39889         * lib/unicase/u8-is-invariant.c: New file.
39890         * lib/unicase/invariant.h: New file.
39891         * lib/unicase/u-is-invariant.h: New file.
39892         * modules/unicase/u8-is-invariant: New file.
39893
39894         Tests for module 'unicase/u32-casecoll'.
39895         * modules/unicase/u32-casecoll-tests: New file.
39896         * tests/unicase/test-u32-casecoll.c: New file.
39897
39898         Tests for module 'unicase/u16-casecoll'.
39899         * modules/unicase/u16-casecoll-tests: New file.
39900         * tests/unicase/test-u16-casecoll.c: New file.
39901
39902         Tests for module 'unicase/u8-casecoll'.
39903         * modules/unicase/u8-casecoll-tests: New file.
39904         * tests/unicase/test-u8-casecoll.c: New file.
39905
39906         New module 'unicase/u32-casecoll'.
39907         * lib/unicase/u32-casecoll.c: New file.
39908         * modules/unicase/u32-casecoll: New file.
39909
39910         New module 'unicase/u16-casecoll'.
39911         * lib/unicase/u16-casecoll.c: New file.
39912         * modules/unicase/u16-casecoll: New file.
39913
39914         New module 'unicase/u8-casecoll'.
39915         * lib/unicase/u8-casecoll.c: New file.
39916         * lib/unicase/u-casecoll.h: New file.
39917         * modules/unicase/u8-casecoll: New file.
39918
39919         New module 'unicase/u32-casexfrm'.
39920         * lib/unicase/u32-casexfrm.c: New file.
39921         * modules/unicase/u32-casexfrm: New file.
39922
39923         New module 'unicase/u16-casexfrm'.
39924         * lib/unicase/u16-casexfrm.c: New file.
39925         * modules/unicase/u16-casexfrm: New file.
39926
39927         New module 'unicase/u8-casexfrm'.
39928         * lib/unicase/u8-casexfrm.c: New file.
39929         * lib/unicase/u-casexfrm.h: New file.
39930         * modules/unicase/u8-casexfrm: New file.
39931
39932         Tests for module 'unicase/u32-casecmp'.
39933         * modules/unicase/u32-casecmp-tests: New file.
39934         * tests/unicase/test-u32-casecmp.c: New file.
39935
39936         Tests for module 'unicase/u16-casecmp'.
39937         * modules/unicase/u16-casecmp-tests: New file.
39938         * tests/unicase/test-u16-casecmp.c: New file.
39939
39940         Tests for module 'unicase/u8-casecmp'.
39941         * modules/unicase/u8-casecmp-tests: New file.
39942         * tests/unicase/test-u8-casecmp.c: New file.
39943         * tests/unicase/test-casecmp.h: New file.
39944
39945         New module 'unicase/u32-casecmp'.
39946         * lib/unicase/u32-casecmp.c: New file.
39947         * modules/unicase/u32-casecmp: New file.
39948
39949         New module 'unicase/u16-casecmp'.
39950         * lib/unicase/u16-casecmp.c: New file.
39951         * modules/unicase/u16-casecmp: New file.
39952
39953         New module 'unicase/u8-casecmp'.
39954         * lib/unicase/u8-casecmp.c: New file.
39955         * lib/unicase/u-casecmp.h: New file.
39956         * modules/unicase/u8-casecmp: New file.
39957
39958         Tests for module 'unicase/u32-casefold'.
39959         * modules/unicase/u32-casefold-tests: New file.
39960         * tests/unicase/test-u32-casefold.c: New file.
39961
39962         Tests for module 'unicase/u16-casefold'.
39963         * modules/unicase/u16-casefold-tests: New file.
39964         * tests/unicase/test-u16-casefold.c: New file.
39965
39966         Tests for module 'unicase/u8-casefold'.
39967         * modules/unicase/u8-casefold-tests: New file.
39968         * tests/unicase/test-u8-casefold.c: New file.
39969
39970         New module 'unicase/u32-casefold'.
39971         * lib/unicase/u32-casefold.c: New file.
39972         * modules/unicase/u32-casefold: New file.
39973
39974         New module 'unicase/u16-casefold'.
39975         * lib/unicase/u16-casefold.c: New file.
39976         * modules/unicase/u16-casefold: New file.
39977
39978         New module 'unicase/u8-casefold'.
39979         * lib/unicase/u8-casefold.c: New file.
39980         * lib/unicase/u-casefold.h: New file.
39981         * modules/unicase/u8-casefold: New file.
39982
39983         New module 'unicase/tocasefold'.
39984         * lib/unicase/casefold.h: New file.
39985         * lib/unicase/tocasefold.c: New file.
39986         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39987         * modules/unicase/tocasefold: New file.
39988
39989         Tests for module 'unicase/u32-totitle'.
39990         * modules/unicase/u32-totitle-tests: New file.
39991         * tests/unicase/test-u32-totitle.c: New file.
39992
39993         Tests for module 'unicase/u16-totitle'.
39994         * modules/unicase/u16-totitle-tests: New file.
39995         * tests/unicase/test-u16-totitle.c: New file.
39996
39997         Tests for module 'unicase/u8-totitle'.
39998         * modules/unicase/u8-totitle-tests: New file.
39999         * tests/unicase/test-u8-totitle.c: New file.
40000
40001         New module 'unicase/u32-totitle'.
40002         * lib/unicase/u32-totitle.c: New file.
40003         * modules/unicase/u32-totitle: New file.
40004
40005         New module 'unicase/u16-totitle'.
40006         * lib/unicase/u16-totitle.c: New file.
40007         * modules/unicase/u16-totitle: New file.
40008
40009         New module 'unicase/u8-totitle'.
40010         * lib/unicase/u8-totitle.c: New file.
40011         * lib/unicase/u-totitle.h: New file.
40012         * modules/unicase/u8-totitle: New file.
40013
40014         Tests for module 'unicase/u32-tolower'.
40015         * modules/unicase/u32-tolower-tests: New file.
40016         * tests/unicase/test-u32-tolower.c: New file.
40017
40018         Tests for module 'unicase/u16-tolower'.
40019         * modules/unicase/u16-tolower-tests: New file.
40020         * tests/unicase/test-u16-tolower.c: New file.
40021
40022         Tests for module 'unicase/u8-tolower'.
40023         * modules/unicase/u8-tolower-tests: New file.
40024         * tests/unicase/test-u8-tolower.c: New file.
40025
40026         New module 'unicase/u32-tolower'.
40027         * lib/unicase/u32-tolower.c: New file.
40028         * modules/unicase/u32-tolower: New file.
40029
40030         New module 'unicase/u16-tolower'.
40031         * lib/unicase/u16-tolower.c: New file.
40032         * modules/unicase/u16-tolower: New file.
40033
40034         New module 'unicase/u8-tolower'.
40035         * lib/unicase/u8-tolower.c: New file.
40036         * modules/unicase/u8-tolower: New file.
40037
40038         Tests for module 'unicase/u32-toupper'.
40039         * modules/unicase/u32-toupper-tests: New file.
40040         * tests/unicase/test-u32-toupper.c: New file.
40041
40042         Tests for module 'unicase/u16-toupper'.
40043         * modules/unicase/u16-toupper-tests: New file.
40044         * tests/unicase/test-u16-toupper.c: New file.
40045
40046         Tests for module 'unicase/u8-toupper'.
40047         * modules/unicase/u8-toupper-tests: New file.
40048         * tests/unicase/test-u8-toupper.c: New file.
40049
40050         New module 'unicase/u32-toupper'.
40051         * lib/unicase/u32-toupper.c: New file.
40052         * modules/unicase/u32-toupper: New file.
40053
40054         New module 'unicase/u16-toupper'.
40055         * lib/unicase/u16-toupper.c: New file.
40056         * modules/unicase/u16-toupper: New file.
40057
40058         New module 'unicase/u8-toupper'.
40059         * lib/unicase/u8-toupper.c: New file.
40060         * modules/unicase/u8-toupper: New file.
40061
40062         New module 'unicase/u32-casemap'.
40063         * lib/unicase/u32-casemap.c: New file.
40064         * modules/unicase/u32-casemap: New file.
40065
40066         New module 'unicase/u16-casemap'.
40067         * lib/unicase/u16-casemap.c: New file.
40068         * modules/unicase/u16-casemap: New file.
40069
40070         New module 'unicase/u8-casemap'.
40071         * lib/unicase/unicasemap.h: New file.
40072         * lib/unicase/u8-casemap.c: New file.
40073         * lib/unicase/u-casemap.h: New file.
40074         * modules/unicase/u8-casemap: New file.
40075
40076         New module 'unicase/special-casing'.
40077         * lib/unicase/special-casing.h: New file.
40078         * lib/unicase/special-casing.c: New file.
40079         * lib/unicase/special-casing-table.gperf: New file, generated by
40080         gen-uni-tables.c.
40081         * modules/unicase/special-casing: New file.
40082
40083         Tests for module 'unicase/locale-language'.
40084         * modules/unicase/locale-language-tests: New file.
40085         * tests/unicase/test-locale-language.sh: New file.
40086         * tests/unicase/test-locale-language.c: New file.
40087
40088         New module 'unicase/locale-language'.
40089         * lib/unicase/locale-language.c: New file.
40090         * lib/unicase/locale-languages.gperf: New file.
40091         * modules/unicase/locale-language: New file.
40092
40093         Generate more tables for case conversion and case folding.
40094         * lib/gen-uni-tables.c (SCC_*): New enum items.
40095         (struct special_casing_rule): New type.
40096         (casing_rules, num_casing_rules, allocated_casing_rules): New
40097         variables.
40098         (add_casing_rule, fill_casing_rules): New functions.
40099         (struct casefold_rule): New type.
40100         (casefolding_rules, num_casefolding_rules,
40101         allocated_casefolding_rules): New variables.
40102         (fill_casefolding_rules): New function.
40103         (unicode_casefold): New variable.
40104         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40105         sort_casing_rules, output_casing_rules): New functions.
40106         (main): Accept to more arguments: SpecialCasing.txt and
40107         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40108         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40109         Output mapping for casefolding.
40110
40111         * lib/unicase.h: Include stdbool.h, uninorm.h.
40112         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40113         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40114         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40115         arguments.
40116         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40117         resultp arguments.
40118         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40119         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40120         resultp arguments.
40121         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40122         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40123         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40124         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40125         declarations.
40126         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40127
40128 2009-03-08  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40131         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40132         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40133         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40134
40135 2009-03-07  Bruno Haible  <bruno@clisp.org>
40136
40137         Adjust u*_normcmp, u*_normcoll API.
40138         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40139         u16_normcoll, u32_normcoll): Change failure conventions.
40140         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40141         errno and return -1.
40142         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40143
40144 2009-03-07  Bruno Haible  <bruno@clisp.org>
40145
40146         Tests for module 'uninorm/u32-normcoll'.
40147         * modules/uninorm/u32-normcoll-tests: New file.
40148         * tests/uninorm/test-u32-normcoll.c: New file.
40149
40150         Tests for module 'uninorm/u16-normcoll'.
40151         * modules/uninorm/u16-normcoll-tests: New file.
40152         * tests/uninorm/test-u16-normcoll.c: New file.
40153
40154         Tests for module 'uninorm/u8-normcoll'.
40155         * modules/uninorm/u8-normcoll-tests: New file.
40156         * tests/uninorm/test-u8-normcoll.c: New file.
40157
40158 2009-03-07  Bruno Haible  <bruno@clisp.org>
40159
40160         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40161         tests/uninorm/test-u32-normcmp.c.
40162         * tests/uninorm/test-u32-normcmp.c: Include it.
40163         (test_nonascii): New function, extracted from main. Add some more
40164         tests.
40165         (main): Invoke test_ascii and test_nonascii.
40166         * modules/uninorm/u32-normcmp-tests (Files): Add
40167         tests/uninorm/test-u32-normcmp.h.
40168         (Depends-on): Remove uninorm/u32-normcmp.
40169
40170         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40171         tests/uninorm/test-u16-normcmp.c.
40172         * tests/uninorm/test-u16-normcmp.c: Include it.
40173         (test_nonascii): New function, extracted from main. Add some more
40174         tests.
40175         (main): Invoke test_ascii and test_nonascii.
40176         * modules/uninorm/u16-normcmp-tests (Files): Add
40177         tests/uninorm/test-u16-normcmp.h.
40178         (Depends-on): Remove uninorm/u16-normcmp.
40179
40180         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40181         tests/uninorm/test-u8-normcmp.c.
40182         * tests/uninorm/test-u8-normcmp.c: Include it.
40183         (test_nonascii): New function, extracted from main. Add some more
40184         tests.
40185         (main): Invoke test_ascii and test_nonascii.
40186         * modules/uninorm/u8-normcmp-tests (Files): Add
40187         tests/uninorm/test-u8-normcmp.h.
40188         (Depends-on): Remove uninorm/u8-normcmp.
40189
40190 2009-03-07  Bruno Haible  <bruno@clisp.org>
40191
40192         New module 'uninorm/u32-normcoll'.
40193         * lib/uninorm/u32-normcoll.c: New file.
40194         * modules/uninorm/u32-normcoll: New file.
40195
40196         New module 'uninorm/u16-normcoll'.
40197         * lib/uninorm/u16-normcoll.c: New file.
40198         * modules/uninorm/u16-normcoll: New file.
40199
40200         New module 'uninorm/u8-normcoll'.
40201         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40202         declarations.
40203         * lib/uninorm/u8-normcoll.c: New file.
40204         * lib/uninorm/u-normcoll.h: New file.
40205         * modules/uninorm/u8-normcoll: New file.
40206
40207         New module 'uninorm/u32-normxfrm'.
40208         * lib/uninorm/u32-normxfrm.c: New file.
40209         * modules/uninorm/u32-normxfrm: New file.
40210
40211         New module 'uninorm/u16-normxfrm'.
40212         * lib/uninorm/u16-normxfrm.c: New file.
40213         * modules/uninorm/u16-normxfrm: New file.
40214
40215         New module 'uninorm/u8-normxfrm'.
40216         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40217         declarations.
40218         * lib/uninorm/u8-normxfrm.c: New file.
40219         * lib/uninorm/u-normxfrm.h: New file.
40220         * modules/uninorm/u8-normxfrm: New file.
40221
40222 2009-03-07  Bruno Haible  <bruno@clisp.org>
40223
40224         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40225         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40226         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40227
40228 2009-03-07  Bruno Haible  <bruno@clisp.org>
40229
40230         New module 'memxfrm'.
40231         * lib/memxfrm.h: New file.
40232         * lib/memxfrm.c: New file.
40233         * modules/memxfrm: New file.
40234
40235 2009-03-07  Bruno Haible  <bruno@clisp.org>
40236
40237         New module 'memcmp2'.
40238         * lib/memcmp2.h: New file.
40239         * lib/memcmp2.c: New file.
40240         * modules/memcmp2: New file.
40241
40242 2009-03-07  Bruno Haible  <bruno@clisp.org>
40243
40244         Tests for module 'uninorm/decomposing-form'.
40245         * modules/uninorm/decomposing-form-tests: New file.
40246         * tests/uninorm/test-decomposing-form.c: New file.
40247
40248         New module 'uninorm/decomposing-form'.
40249         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40250         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40251         Add 'decomposing_variant' field.
40252         * lib/uninorm/decomposing-form.c: New file.
40253         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40254         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40255         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40256         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40257         * modules/uninorm/decomposing-form: New file.
40258         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40259         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40260
40261 2009-03-07  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40264         strings.
40265
40266 2009-03-06  Bruno Haible  <bruno@clisp.org>
40267
40268         Tests for module 'uninorm/u32-normcmp'.
40269         * tests/uninorm/test-u32-normcmp.c: New file.
40270         * modules/uninorm/u32-normcmp-tests: New file.
40271
40272         Tests for module 'uninorm/u16-normcmp'.
40273         * tests/uninorm/test-u16-normcmp.c: New file.
40274         * modules/uninorm/u16-normcmp-tests: New file.
40275
40276         Tests for module 'uninorm/u8-normcmp'.
40277         * tests/uninorm/test-u8-normcmp.c: New file.
40278         * modules/uninorm/u8-normcmp-tests: New file.
40279
40280         New module 'uninorm/u32-normcmp'.
40281         * lib/uninorm/u32-normcmp.c: New file.
40282         * modules/uninorm/u32-normcmp: New file.
40283
40284         New module 'uninorm/u16-normcmp'.
40285         * lib/uninorm/u16-normcmp.c: New file.
40286         * modules/uninorm/u16-normcmp: New file.
40287
40288         New module 'uninorm/u8-normcmp'.
40289         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40290         declarations.
40291         * lib/uninorm/u8-normcmp.c: New file.
40292         * lib/uninorm/u-normcmp.h: New file.
40293         * modules/uninorm/u8-normcmp: New file.
40294
40295 2009-03-06  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40298         Reported by Eric Blake.
40299
40300 2009-03-06  Eric Blake  <ebb9@byu.net>
40301             Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40304         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40305         condition.
40306         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40307         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40308         condition.
40309         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40310
40311 2009-03-06  Eric Blake  <ebb9@byu.net>
40312
40313         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40314         to avoid compiler warnings.
40315         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40316
40317 2009-03-05  Bruno Haible  <bruno@clisp.org>
40318
40319         * tests/test-ftell.c (main): Disable test beyond end of file on
40320         FreeMiNT.
40321         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40322
40323 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40324
40325         * lib/filevercmp.c: Move hidden files up in ordering.
40326         * tests/test-filevercmp.c: Add tests for hidden files.
40327
40328 2009-03-04  Bruno Haible  <bruno@clisp.org>
40329
40330         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40331         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40332         AM_CFLAGS.
40333         Reported by Simon Josefsson.
40334
40335 2009-03-03  Bruno Haible  <bruno@clisp.org>
40336
40337         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40338         Reported by Simon Josefsson.
40339
40340         * doc/ld-version-script.texi: Update node reference.
40341
40342 2009-03-03  Bruno Haible  <bruno@clisp.org>
40343
40344         * modules/visibility (License): Change to 'unlimited'.
40345         Suggested by Simon Josefsson.
40346
40347 2009-03-03  Jim Meyering  <meyering@redhat.com>
40348
40349         unlinkdir: cannot_unlink_dir may modify process state
40350         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40351         it's neither thread-safe nor appropriate for use in a library.
40352
40353 2009-03-03  Eric Blake  <ebb9@byu.net>
40354
40355         test-closein: silence test under Darwin
40356         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40357         care if it dies from EPIPE or EBADF.
40358
40359 2009-03-03  Bruno Haible  <bruno@clisp.org>
40360
40361         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40362         earlier.
40363         * doc/visibility.texi: Fix @node and @section.
40364
40365 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40366
40367         * doc/gnulib.texi: Link to sections for ld version script and
40368         visibility.
40369         * doc/visibility.texi: Add @node and @section.
40370         * modules/ld-version-script: New module.
40371         * m4/ld-version-script.m4: New file.
40372         * doc/ld-version-script.texi: New file.
40373
40374 2009-03-02  David Lutterkort  <lutter@redhat.com>
40375
40376         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40378
40379 2009-03-02  Bruno Haible  <bruno@clisp.org>
40380
40381         * doc/visibility.texi: Mention libtool's -export-symbols option.
40382
40383 2009-03-02  Jim Meyering  <meyering@redhat.com>
40384
40385         announce-gen: new option: --no-print-checksums
40386         * build-aux/announce-gen (usage): Describe it.
40387         (print_checksums): Print a newline here, not in the [*] footnote.
40388         (main): Honor it.
40389
40390 2009-03-01  Bruno Haible  <bruno@clisp.org>
40391
40392         Use socklen_t in the native Windows replacements prototypes.
40393         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40394         instead of 'int'.
40395         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40396         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40397         * modules/getsockopt (Depends-on): Add socklen.
40398         * modules/setsockopt (Depends-on): Add socklen.
40399
40400 2009-03-01  Bruno Haible  <bruno@clisp.org>
40401
40402         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40403         least 4.2.
40404
40405 2009-03-01  Eric Blake  <ebb9@byu.net>
40406             Bruno Haible  <bruno@clisp.org>
40407
40408         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40409         error messages.
40410         * lib/wait-process.c (wait_subprocess): Omit error message about
40411         deadly signal sent to the child of termsigp != NULL.
40412
40413 2009-03-01  Eric Blake  <ebb9@byu.net>
40414
40415         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40416
40417 2009-03-01  Bruno Haible  <bruno@clisp.org>
40418
40419         Avoid a gcc warning.
40420         * tests/test-sched.c (b): Make global.
40421         Reported by Eric Blake.
40422
40423 2009-01-19  Martin Lambers  <marlam@marlam.de>
40424
40425         Provide POSIX semantics for socket timeout options on W32.
40426         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40427         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40428         * modules/setsockopt: Depend on sys_time module for struct timeval.
40429         * modules/getsockopt: Depend on sys_time module for struct timeval.
40430
40431 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40432
40433         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40434         __USE_GNU, for consistency with netdb.in.h.
40435         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40436
40437 2009-03-01  Bruno Haible  <bruno@clisp.org>
40438
40439         More support for FreeMiNT.
40440         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40441         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40442
40443 2009-03-01  Bruno Haible  <bruno@clisp.org>
40444
40445         More support for FreeMiNT.
40446         * lib/fpurge.c (fpurge): Correct last commit.
40447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40448
40449 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40450
40451         Fix unportable awk script in vc-list-files.
40452         * build-aux/vc-list-files: In the replacement awk script, use
40453         substr with a second argument of 1, not zero.
40454         Report by Simon Josefsson.
40455
40456 2009-02-28  Bruno Haible  <bruno@clisp.org>
40457
40458         More support for FreeMiNT.
40459         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40460         to FreeMiNT today.
40461         * lib/fwriting.c (fwriting): Likewise.
40462         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40463
40464 2009-02-28  Bruno Haible  <bruno@clisp.org>
40465
40466         * tests/test-freadseek.c (main): Disable test beyond end of file on
40467         FreeMiNT.
40468         * tests/test-ftello.c (main): Likewise.
40469         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40470
40471 2009-02-28  Bruno Haible  <bruno@clisp.org>
40472
40473         Add tentative support for FreeMiNT.
40474         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40475         * lib/fpurge.c (fpurge): Likewise.
40476         * lib/freadable.c (freadable): Likewise.
40477         * lib/freading.c (freading): Likewise.
40478         * lib/freadptr.c (freadptr): Likewise.
40479         * lib/freadseek.c (freadptrinc): Likewise.
40480         * lib/fseeko.c (rpl_fseeko): Likewise.
40481         * lib/fseterr.c (fseterr): Likewise.
40482         * lib/fwritable.c (fwritable): Likewise.
40483         * lib/fwriting.c (fwriting): Likewise.
40484         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40485         Hourihane.
40486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40487
40488 2009-02-28  Bruno Haible  <bruno@clisp.org>
40489
40490         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40491         SIGCHLD.
40492         Reported by Jim Meyering.
40493
40494 2009-02-28  Bruno Haible  <bruno@clisp.org>
40495
40496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40497         Mention the results of these tests on various platforms.
40498         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40499         order.
40500         * doc/posix-functions/printf.texi: Likewise.
40501         * doc/posix-functions/snprintf.texi: Likewise.
40502         * doc/posix-functions/sprintf.texi: Likewise.
40503         * doc/posix-functions/vfprintf.texi: Likewise.
40504         * doc/posix-functions/vprintf.texi: Likewise.
40505         * doc/posix-functions/vsnprintf.texi: Likewise.
40506         * doc/posix-functions/vsprintf.texi: Likewise.
40507         * doc/glibc-functions/obstack_printf.texi: Likewise.
40508         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40509
40510 2009-02-28  Bruno Haible  <bruno@clisp.org>
40511
40512         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40513         Reported by Loïc Minier <lool@dooz.org>.
40514
40515 2009-02-27  Bruno Haible  <bruno@clisp.org>
40516
40517         * gnulib-tool (func_import): Make the sed expression used to create the
40518         sed script for updating the .gitignore file POSIX compliant.
40519         Reported by Eric Blake.
40520
40521 2009-02-27  Bruno Haible  <bruno@clisp.org>
40522
40523         * gnulib-tool (sed): Don't alias as "sed --posix".
40524         Reported by Eric Blake.
40525
40526 2009-02-27  Bruno Haible  <bruno@clisp.org>
40527
40528         Avoid test link errors.
40529         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40530         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40531         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40532         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40534
40535 2009-02-27  Bruno Haible  <bruno@clisp.org>
40536
40537         Avoid spurious "(cached)" in configure output.
40538         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40539         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40540         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40541         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40542         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40543         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40544         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40545         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40546         Reported by Eric Blake.
40547
40548 2009-02-27  Eric Blake  <ebb9@byu.net>
40549
40550         printf: fix regression in previous patch
40551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40552
40553 2009-02-27  Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40556         value.
40557         * lib/stdint.in.h: Likewise.
40558         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40559
40560 2009-02-27  Eric Blake  <ebb9@byu.net>
40561
40562         doc: mention more functions added in cygwin 1.7.0
40563         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40564         addition.
40565         * doc/posix-functions/open_wmemstream.texi: Likewise.
40566         * doc/posix-functions/wcsnlen.texi: Likewise.
40567         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40568         * doc/posix-functions/wcstod.texi: Likewise.
40569         * doc/posix-functions/wcstof.texi: Likewise.
40570         * doc/posix-functions/wcstoimax.texi: Likewise.
40571         * doc/posix-functions/wcstok.texi: Likewise.
40572         * doc/posix-functions/wcstoumax.texi: Likewise.
40573
40574         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40576         * doc/posix-functions/fprintf.texi: Update.
40577         * doc/posix-functions/printf.texi: Update.
40578         * doc/posix-functions/snprintf.texi: Update.
40579         * doc/posix-functions/sprintf.texi: Update.
40580         * doc/posix-functions/vfprintf.texi: Update.
40581         * doc/posix-functions/vprintf.texi: Update.
40582         * doc/posix-functions/vsnprintf.texi: Update.
40583         * doc/posix-functions/vsprintf.texi: Update.
40584         * doc/glibc-functions/obstack_printf.texi: Update.
40585         * doc/glibc-functions/obstack_vprintf.texi: Update.
40586
40587 2009-02-26  Eric Blake  <ebb9@byu.net>
40588
40589         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40590         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40591         compilation bug by using runtime conversion.
40592         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40593         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40594         * modules/ceill-tests (Files): Use nan.h.
40595         * modules/floorl-tests (Files): Likewise.
40596         * modules/frexpl-tests (Files): Likewise.
40597         * modules/isnanl-tests (Files): Likewise.
40598         * modules/ldexpl-tests (Files): Likewise.
40599         * modules/roundl-tests (Files): Likewise.
40600         * modules/truncl-tests (Files): Likewise.
40601         * tests/test-ceill.c (main): Use a working NaN.
40602         * tests/test-floorl.c (main): Likewise.
40603         * tests/test-frexpl.c (main): Likewise.
40604         * tests/test-isnan.c (test_long_double): Likewise.
40605         * tests/test-isnanl.h (main): Likewise.
40606         * tests/test-ldexpl.h (main): Likewise.
40607         * tests/test-roundl.h (main): Likewise.
40608         * tests/test-truncl.h (main): Likewise.
40609         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40610
40611 2009-02-26  Eric Blake  <ebb9@byu.net>
40612             Bruno Haible  <bruno@clisp.org>
40613
40614         Work around a *printf bug with %ls on Solaris.
40615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40616         precision is specified, sprintf stops converting the wide string
40617         argument when the number of bytes that have been produced by this
40618         conversion equals or exceeds the precision.
40619         * doc/posix-functions/fprintf.texi: Update.
40620         * doc/posix-functions/printf.texi: Update.
40621         * doc/posix-functions/snprintf.texi: Update.
40622         * doc/posix-functions/sprintf.texi: Update.
40623         * doc/posix-functions/vfprintf.texi: Update.
40624         * doc/posix-functions/vprintf.texi: Update.
40625         * doc/posix-functions/vsnprintf.texi: Update.
40626         * doc/posix-functions/vsprintf.texi: Update.
40627         * doc/glibc-functions/obstack_printf.texi: Update.
40628         * doc/glibc-functions/obstack_vprintf.texi: Update.
40629
40630 2009-02-26  Eric Blake  <ebb9@byu.net>
40631
40632         stdlib: favor compiler check of random.h
40633         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40634         to avoid an ObjC random.h installed by Swarm.
40635
40636 2009-02-26  Bruno Haible  <bruno@clisp.org>
40637
40638         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40639         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40640         Reported by Gary V. Vaughan <gary@gnu.org>.
40641
40642 2009-02-26  Bruno Haible  <bruno@clisp.org>
40643
40644         Fix *printf behaviour regarding the %ls directive.
40645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40646         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40647         NEED_PRINTF_DIRECTIVE_LS.
40648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40649         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40651         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40652         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40653         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40654         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40659         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40663         * doc/posix-functions/fprintf.texi: Update.
40664         * doc/posix-functions/printf.texi: Update.
40665         * doc/posix-functions/snprintf.texi: Update.
40666         * doc/posix-functions/sprintf.texi: Update.
40667         * doc/posix-functions/vfprintf.texi: Update.
40668         * doc/posix-functions/vprintf.texi: Update.
40669         * doc/posix-functions/vsnprintf.texi: Update.
40670         * doc/posix-functions/vsprintf.texi: Update.
40671         * doc/glibc-functions/obstack_printf.texi: Update.
40672         * doc/glibc-functions/obstack_vprintf.texi: Update.
40673         Reported by Eric Blake.
40674
40675 2009-02-25  Bruno Haible  <bruno@clisp.org>
40676
40677         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40678         with known value.
40679         Reported by Gary V. Vaughan <gary@gnu.org>.
40680
40681 2009-02-25  Bruno Haible  <bruno@clisp.org>
40682
40683         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40684         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40685         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40686         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40687         Reported by Gary V. Vaughan <gary@gnu.org>.
40688
40689 2009-02-25  Bruno Haible  <bruno@clisp.org>
40690
40691         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40692         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40693         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40694         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40695         Reported by Gary V. Vaughan <gary@gnu.org>.
40696
40697 2009-02-25  Eric Blake  <ebb9@byu.net>
40698
40699         tests: skip fseek/ftell tests if ungetc is broken
40700         * m4/ungetc.m4: New file.
40701         * modules/fseek-tests: Split test, so ungetc dependency is
40702         separate from rest of test.
40703         * modules/fseeko-tests: Likewise.
40704         * modules/ftell-tests: Likewise.
40705         * modules/ftello-tests: Likewise.
40706         * tests/test-fseek.c (main): Isolate ungetc dependency.
40707         * tests/test-fseeko.c (main): Likewise.
40708         * tests/test-ftell.c (main): Likewise.
40709         * tests/test-ftello.c (main): Likewise.
40710         * tests/test-fseek2.sh: New file.
40711         * tests/test-fseeko2.sh: Likewise.
40712         * tests/test-ftell2.sh: Likewise.
40713         * tests/test-ftello2.sh: Likewise.
40714
40715 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40716
40717         test-getaddrinfo: fix usage of skip return code 77
40718         * tests/test-gettaddrinfo.c: Return skip code 77 only
40719         for first occurance of skip (4x77 is not 77)
40720
40721 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40722
40723         strtod: avoid C99 decl-after-statement
40724         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40725
40726 2009-02-24  Eric Blake  <ebb9@byu.net>
40727
40728         strtod: detect HP-UX 11.31 bug
40729         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40730         Reported by Gary V. Vaughan.
40731
40732 2009-02-23  Bruno Haible  <bruno@clisp.org>
40733
40734         Fix invalid read past end of memory block.
40735         * lib/vasnprintf.c (DCHAR_SET): Define.
40736         (local_wcslen): Define only when needed.
40737         (local_strnlen, local_wcsnlen): New functions.
40738         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40739         directives that involve a conversion ourselves.
40740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40741         wcsnlen, mbrtowc, wcrtomb.
40742         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40743         * tests/test-vasprintf-posix.c (test_function): Likewise.
40744         * tests/test-snprintf-posix.h (test_function): Likewise.
40745         * tests/test-sprintf-posix.h (test_function): Likewise.
40746         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40747
40748 2009-02-22  Bruno Haible  <bruno@clisp.org>
40749
40750         Implement new clarified decomposition of Hangul syllables.
40751         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40752         of type LTV, return only a pairwise decomposition.
40753         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40754         Likewise.
40755         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40756         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40757         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40758
40759 2009-02-22  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40762         zero-length results and shrink excess allocated memory.
40763         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40764         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40765         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40766         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40767         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40768         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40769         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40770         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40771         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40772         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40773         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40774         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40775
40776 2009-02-21  Bruno Haible  <bruno@clisp.org>
40777
40778         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40779         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40780         spaces after a period. Put a space between a macro name and its
40781         argument list. Trivial rewordings.
40782         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40783         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40784         (main): Return 0 explicitly.
40785
40786 2009-02-21  Bruno Haible  <bruno@clisp.org>
40787
40788         Tests for module 'uninorm/filter'.
40789         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40790         * modules/uninorm/filter-tests: New file.
40791
40792         New module 'uninorm/filter'.
40793         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40794         uninorm_filter_flush, uninorm_filter_free): New declarations.
40795         * lib/uninorm/uninorm-filter.c: New file.
40796         * modules/uninorm/filter: New file.
40797
40798 2009-02-21  Bruno Haible  <bruno@clisp.org>
40799
40800         Tests for module 'uninorm/nfkc'.
40801         * tests/uninorm/test-nfkc.c: New file.
40802         * tests/uninorm/test-u8-nfkc.c: New file.
40803         * tests/uninorm/test-u16-nfkc.c: New file.
40804         * tests/uninorm/test-u32-nfkc.c: New file.
40805         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40806         * tests/uninorm/test-u32-nfkc-big.c: New file.
40807         * modules/uninorm/nfkc-tests: New file.
40808
40809         New module 'uninorm/nfkc'.
40810         * lib/uninorm/nfkc.c: New file.
40811         * modules/uninorm/nfkc: New file.
40812
40813         Tests for module 'uninorm/nfkd'.
40814         * tests/uninorm/test-nfkd.c: New file.
40815         * tests/uninorm/test-u8-nfkd.c: New file.
40816         * tests/uninorm/test-u16-nfkd.c: New file.
40817         * tests/uninorm/test-u32-nfkd.c: New file.
40818         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40819         * tests/uninorm/test-u32-nfkd-big.c: New file.
40820         * modules/uninorm/nfkd-tests: New file.
40821
40822         New module 'uninorm/nfkd'.
40823         * lib/uninorm/nfkd.c: New file.
40824         * modules/uninorm/nfkd: New file.
40825
40826         Tests for module 'uninorm/nfc'.
40827         * tests/uninorm/test-nfc.c: New file.
40828         * tests/uninorm/test-u8-nfc.c: New file.
40829         * tests/uninorm/test-u16-nfc.c: New file.
40830         * tests/uninorm/test-u32-nfc.c: New file.
40831         * tests/uninorm/test-u32-nfc-big.sh: New file.
40832         * tests/uninorm/test-u32-nfc-big.c: New file.
40833         * modules/uninorm/nfc-tests: New file.
40834
40835         New module 'uninorm/nfc'.
40836         * lib/uninorm/nfc.c: New file.
40837         * modules/uninorm/nfc: New file.
40838
40839         Tests for module 'uninorm/nfd'.
40840         * tests/uninorm/test-nfd.c: New file.
40841         * tests/uninorm/test-u8-nfd.c: New file.
40842         * tests/uninorm/test-u16-nfd.c: New file.
40843         * tests/uninorm/test-u32-nfd.c: New file.
40844         * tests/uninorm/test-u32-nfd-big.sh: New file.
40845         * tests/uninorm/test-u32-nfd-big.c: New file.
40846         * tests/uninorm/test-u32-normalize-big.h: New file.
40847         * tests/uninorm/test-u32-normalize-big.c: New file.
40848         * tests/uninorm/NormalizationTest.txt: New file, created from
40849         Unicode 5.1.0 NormalizationTest.txt.
40850         * modules/uninorm/nfd-tests: New file.
40851
40852         New module 'uninorm/nfd'.
40853         * lib/uninorm/nfd.c: New file.
40854         * modules/uninorm/nfd: New file.
40855
40856         New module 'uninorm/u32-normalize'.
40857         * lib/uninorm/u32-normalize.c: New file.
40858         * modules/uninorm/u32-normalize: New file.
40859
40860         New module 'uninorm/u16-normalize'.
40861         * lib/uninorm/u16-normalize.c: New file.
40862         * modules/uninorm/u16-normalize: New file.
40863
40864         New module 'uninorm/u8-normalize'.
40865         * lib/uninorm/u8-normalize.c: New file.
40866         * lib/uninorm/normalize-internal.h: New file.
40867         * lib/uninorm/u-normalize-internal.h: New file.
40868         * modules/uninorm/u8-normalize: New file.
40869
40870         New module 'uninorm/decompose-internal'.
40871         * lib/uninorm/decompose-internal.c: New file.
40872         * modules/uninorm/decompose-internal: New file.
40873
40874         Tests for module 'uninorm/composition'.
40875         * tests/uninorm/test-composition.c: New file.
40876         * modules/uninorm/composition-tests: New file.
40877
40878         New module 'uninorm/composition'.
40879         * lib/uninorm/composition.c: New file.
40880         * lib/uninorm/composition-table.gperf: New file, generated by
40881         gen-uni-tables.
40882         * modules/uninorm/composition: New file.
40883
40884         Tests for module 'uninorm/compat-decomposition'.
40885         * tests/uninorm/test-compat-decomposition.c: New file.
40886         * modules/uninorm/compat-decomposition-tests: New file.
40887
40888         New module 'uninorm/compat-decomposition'.
40889         * lib/uninorm/decompose-internal.h: New file.
40890         * lib/uninorm/compat-decomposition.c: New file.
40891         * modules/uninorm/compat-decomposition: New file.
40892
40893         Tests for module 'uninorm/canonical-decomposition'.
40894         * tests/uninorm/test-canonical-decomposition.c: New file.
40895         * modules/uninorm/canonical-decomposition-tests: New file.
40896
40897         New module 'uninorm/canonical-decomposition'.
40898         * lib/uninorm/canonical-decomposition.c: New file.
40899         * modules/uninorm/canonical-decomposition: New file.
40900
40901         Tests for module 'uninorm/decomposition'.
40902         * tests/uninorm/test-decomposition.c: New file.
40903         * modules/uninorm/decomposition-tests: New file.
40904
40905         New module 'uninorm/decomposition'.
40906         * lib/uninorm/decomposition.c: New file.
40907         * modules/uninorm/decomposition: New file.
40908
40909         New module 'uninorm/decomposition-table'.
40910         * lib/uninorm/decomposition-table.h: New file.
40911         * lib/uninorm/decomposition-table.c: New file.
40912         * lib/uninorm/decomposition-table1.h: New file, generated by
40913         gen-uni-tables.
40914         * lib/uninorm/decomposition-table2.h: New file, generated by
40915         gen-uni-tables.
40916         * modules/uninorm/decomposition-table: New file.
40917
40918         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40919         (UC_DECOMP_*): New enumeration items.
40920         (get_decomposition): New function.
40921         (struct decomp_table): New type.
40922         (output_decomposition, output_decomposition_tables): New functions.
40923         (unicode_composition_exclusions): New variable.
40924         (fill_composition_exclusions, debug_output_composition_tables): New
40925         functions.
40926         (main): Accept one more argument. Invoke fill_composition_exclusions.
40927         Output decomposition and composition tables.
40928
40929         New module 'uninorm/base'.
40930         * lib/uninorm.h: New file.
40931         * lib/unictype.h: Update comment.
40932         * modules/uninorm/base: New file.
40933
40934 2009-02-21  David Lutterkort  <lutter@redhat.com>
40935
40936         Tests for module 'safe-alloc'.
40937         * tests/test-safe-alloc.c: New file.
40938         * modules/safe-alloc-tests: New file.
40939
40940         New module 'safe-alloc'.
40941         * lib/safe-alloc.h: New file.
40942         * lib/safe-alloc.c: New file.
40943         * m4/safe-alloc.m4: New file.
40944         * modules/safe-alloc: New file.
40945         * doc/safe-alloc.texi: New file.
40946         * doc/gnulib.texi: Include it.
40947         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40948         safe-alloc.
40949
40950 2009-02-18  Bruno Haible  <bruno@clisp.org>
40951
40952         Fix link error on non-glibc systems.
40953         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40954         variable.
40955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40956
40957 2009-02-18  Jim Meyering  <meyering@redhat.com>
40958
40959         fts: avoid used-uninitialized error due to recent change
40960         * lib/fts.c (fts_read): Guard uses of the new member,
40961         parent->fts_n_dirs_remaining, since it's not relevant for
40962         the parent of a directory specified on the command-line.
40963
40964 2009-02-17  James Youngman  <jay@gnu.org>
40965             Bruno Haible  <bruno@clisp.org>
40966
40967         * m4/include_next.m4: Reformulate comment.
40968
40969 2009-02-16  Jim Meyering  <meyering@redhat.com>
40970
40971         fts: add #if guards so that the fts_lgpl module still builds
40972         * lib/fts.c: Guard just-added hash-table-using parts with
40973         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40974         Reported by Simon Josefsson.
40975
40976 2009-02-15  Bruno Haible  <bruno@clisp.org>
40977
40978         * modules/array-mergesort-tests: New file.
40979         * tests/test-array-mergesort.c: New file.
40980
40981         New module 'array-mergesort'.
40982         * modules/array-mergesort: New file.
40983         * lib/array-mergesort.h: New file.
40984
40985 2009-02-15  Bruno Haible  <bruno@clisp.org>
40986
40987         Fix 2009-02-07 commit.
40988         * lib/gen-uni-tables.c (output_predicate, output_category,
40989         output_combclass, output_bidi_category, output_decimal_digit,
40990         output_digit, output_numeric, output_mirror, output_scripts,
40991         output_ident_category, output_simple_mapping): Fix format directives.
40992         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40993
40994 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40995
40996         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40997         fixes are available from IBM.
40998
40999 2009-02-13  Jim Meyering  <meyering@redhat.com>
41000
41001         fts: arrange not to stat non-directories in more cases
41002         This makes GNU find (when it doesn't need to stat each file)
41003         *much* more efficient at traversing reiserfs file systems.
41004         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41005         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41006         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41007         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41008         (leaf_optimization_applies): New function.
41009         (LCO_hash, LCO_compare): New helper functions.
41010         (link_count_optimize_ok): New function.
41011         (fts_stat): Initialize new member (if dir).
41012         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41013         we've just stat'ed a directory.  Skip the stat call when possible.
41014         ---
41015         Note this AFS-related exchange:
41016         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41017         and note find's pioctl call in find/fstype.c.
41018         But that is necessary only if you want to enable the
41019         optimization for AFS, and for now, I don't.
41020
41021         fts: move a function definition "up" (no semantic change)
41022         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41023         "up" to precede upcoming use of a related function.
41024
41025 2009-02-11  Jim Meyering  <meyering@redhat.com>
41026
41027         fts: correct internal computation of nlinks (optimization-related)
41028         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41029         whether the current entry is a directory, so don't test it.
41030
41031 2009-02-10  Bruno Haible  <bruno@clisp.org>
41032
41033         Tests for module 'uniwbrk/ulc-wordbreaks'.
41034         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41035         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41036         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41037
41038         Tests for module 'uniwbrk/u32-wordbreaks'.
41039         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41040         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41041
41042         Tests for module 'uniwbrk/u16-wordbreaks'.
41043         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41044         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41045
41046         Tests for module 'uniwbrk/u8-wordbreaks'.
41047         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41048         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41049
41050 2009-02-10  Bruno Haible  <bruno@clisp.org>
41051
41052         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41053         property.
41054         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41055         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41056         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41057
41058 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41059
41060         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41061         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41062
41063 2009-02-10  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41066         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41067         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41068         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41069         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41070         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41071
41072 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41073
41074         * lib/sockets.h (gl_fd_to_handle): New function.
41075
41076         * tests/test-sockets.c: Call gl_fd_to_handle.
41077
41078 2009-02-09  Bruno Haible  <bruno@clisp.org>
41079
41080         * doc/havelib.texi: Document the conventions on bi-arch systems.
41081
41082 2009-02-08  Bruno Haible  <bruno@clisp.org>
41083
41084         Document the AC_LIB_LINKFLAGS macro.
41085         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41086         * doc/gnulib.texi: Include it.
41087
41088 2009-02-08  Bruno Haible  <bruno@clisp.org>
41089
41090         Fix wrong order of sections, compared to TOC.
41091         * doc/gnulib.texi: Include relocatable-maint.texi after the
41092         "Regular expressions" node, not before.
41093
41094 2009-02-08  Bruno Haible  <bruno@clisp.org>
41095
41096         Tests for module 'unicase/totitle'.
41097         * modules/unicase/totitle-tests: New file.
41098
41099         Tests for module 'unicase/tolower'.
41100         * modules/unicase/tolower-tests: New file.
41101
41102         Tests for module 'unicase/toupper'.
41103         * modules/unicase/toupper-tests: New file.
41104         * tests/unicase/test-mapping-part1.h: New file.
41105         * tests/unicase/test-mapping-part2.h: New file.
41106
41107         New module 'unicase/totitle'.
41108         * modules/unicase/totitle: New file.
41109         * lib/unicase/totitle.c: New file.
41110
41111         New module 'unicase/tolower'.
41112         * modules/unicase/tolower: New file.
41113         * lib/unicase/tolower.c: New file.
41114
41115         New module 'unicase/toupper'.
41116         * modules/unicase/toupper: New file.
41117         * lib/unicase/toupper.c: New file.
41118         * lib/unicase/simple-mapping.h: New file.
41119
41120         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41121         (mapping_table): New structure.
41122         (output_simple_mapping): New function.
41123         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41124         * modules/gen-uni-tables (Description): Update.
41125         * lib/unicase/toupper.h: New file, automatically generated by
41126         gen-uni-tables.
41127         * lib/unicase/tolower.h: New file, automatically generated by
41128         gen-uni-tables.
41129         * lib/unicase/totitle.h: New file, automatically generated by
41130         gen-uni-tables.
41131         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41132         gen-uni-tables.
41133         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41134         gen-uni-tables.
41135         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41136         gen-uni-tables.
41137
41138         New module 'unicase/base'.
41139         * modules/unicase/base: New file.
41140         * lib/unicase.h: New file.
41141
41142 2009-02-08  Bruno Haible  <bruno@clisp.org>
41143
41144         New module 'uniwbrk/ulc-wordbreaks'.
41145         * modules/uniwbrk/ulc-wordbreaks: New file.
41146         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41147
41148         New module 'uniwbrk/u32-wordbreaks'.
41149         * modules/uniwbrk/u32-wordbreaks: New file.
41150         * lib/uniwbrk/u32-wordbreaks.c: New file.
41151
41152         New module 'uniwbrk/u16-wordbreaks'.
41153         * modules/uniwbrk/u16-wordbreaks: New file.
41154         * lib/uniwbrk/u16-wordbreaks.c: New file.
41155
41156         New module 'uniwbrk/u8-wordbreaks'.
41157         * modules/uniwbrk/u8-wordbreaks: New file.
41158         * lib/uniwbrk/u8-wordbreaks.c: New file.
41159         * lib/uniwbrk/u-wordbreaks.h: New file.
41160
41161         New module 'uniwbrk/table'.
41162         * modules/uniwbrk/table: New file.
41163         * lib/uniwbrk/wbrktable.h: New file.
41164         * lib/uniwbrk/wbrktable.c: New file.
41165
41166         New module 'uniwbrk/wordbreak-property'.
41167         * modules/uniwbrk/wordbreak-property: New file.
41168         * lib/uniwbrk/wordbreak-property.c: New file.
41169
41170         * lib/gen-uni-tables.c (WBP_*): New enum items.
41171         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41172         (unicode_org_wbp): New variable.
41173         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41174         New functions.
41175         (wbp_table): New structure.
41176         (output_wbp, output_wbrk_tables): New functions.
41177         (main): Accept additional argument. Invoke fill_org_wbp,
41178         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41179         output_wbrk_tables.
41180         * modules/gen-uni-tables (Description): Update.
41181         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41182         gen-uni-tables.
41183
41184         New module 'uniwbrk/base'.
41185         * modules/uniwbrk/base: New file.
41186         * lib/uniwbrk.h: New file.
41187
41188 2009-02-08  Bruno Haible  <bruno@clisp.org>
41189
41190         Update to Unicode 5.1.0.
41191         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41192         U+2185..U+2188.
41193         (is_property_default_ignorable_code_point): Don't include characters
41194         of category Cc or Cs and not-a-characters.
41195         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41196         U+0D79, U+109E, U+109F, U+A60C.
41197         * lib/unictype/bidi_of.h: Regenerated.
41198         * lib/unictype/blocks.h: Regenerated.
41199         * lib/unictype/categ_C.h: Regenerated.
41200         * lib/unictype/categ_Cf.h: Regenerated.
41201         * lib/unictype/categ_Cn.h: Regenerated.
41202         * lib/unictype/categ_L.h: Regenerated.
41203         * lib/unictype/categ_Ll.h: Regenerated.
41204         * lib/unictype/categ_Lm.h: Regenerated.
41205         * lib/unictype/categ_Lo.h: Regenerated.
41206         * lib/unictype/categ_Lu.h: Regenerated.
41207         * lib/unictype/categ_M.h: Regenerated.
41208         * lib/unictype/categ_Mc.h: Regenerated.
41209         * lib/unictype/categ_Me.h: Regenerated.
41210         * lib/unictype/categ_Mn.h: Regenerated.
41211         * lib/unictype/categ_N.h: Regenerated.
41212         * lib/unictype/categ_Nd.h: Regenerated.
41213         * lib/unictype/categ_Nl.h: Regenerated.
41214         * lib/unictype/categ_No.h: Regenerated.
41215         * lib/unictype/categ_P.h: Regenerated.
41216         * lib/unictype/categ_Pd.h: Regenerated.
41217         * lib/unictype/categ_Pe.h: Regenerated.
41218         * lib/unictype/categ_Pf.h: Regenerated.
41219         * lib/unictype/categ_Pi.h: Regenerated.
41220         * lib/unictype/categ_Po.h: Regenerated.
41221         * lib/unictype/categ_Ps.h: Regenerated.
41222         * lib/unictype/categ_S.h: Regenerated.
41223         * lib/unictype/categ_Sk.h: Regenerated.
41224         * lib/unictype/categ_Sm.h: Regenerated.
41225         * lib/unictype/categ_So.h: Regenerated.
41226         * lib/unictype/categ_of.h: Regenerated.
41227         * lib/unictype/combining.h: Regenerated.
41228         * lib/unictype/ctype_alnum.h: Regenerated.
41229         * lib/unictype/ctype_alpha.h: Regenerated.
41230         * lib/unictype/ctype_graph.h: Regenerated.
41231         * lib/unictype/ctype_lower.h: Regenerated.
41232         * lib/unictype/ctype_print.h: Regenerated.
41233         * lib/unictype/ctype_punct.h: Regenerated.
41234         * lib/unictype/ctype_upper.h: Regenerated.
41235         * lib/unictype/decdigit.h: Regenerated.
41236         * lib/unictype/digit.h: Regenerated.
41237         * lib/unictype/mirror.h: Regenerated.
41238         * lib/unictype/numeric.h: Regenerated.
41239         * lib/unictype/pr_alphabetic.h: Regenerated.
41240         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41241         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41242         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41243         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41244         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41245         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41246         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41247         * lib/unictype/pr_combining.h: Regenerated.
41248         * lib/unictype/pr_dash.h: Regenerated.
41249         * lib/unictype/pr_decimal_digit.h: Regenerated.
41250         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41251         * lib/unictype/pr_deprecated.h: Regenerated.
41252         * lib/unictype/pr_diacritic.h: Regenerated.
41253         * lib/unictype/pr_extender.h: Regenerated.
41254         * lib/unictype/pr_format_control.h: Regenerated.
41255         * lib/unictype/pr_grapheme_base.h: Regenerated.
41256         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41257         * lib/unictype/pr_grapheme_link.h: Regenerated.
41258         * lib/unictype/pr_id_continue.h: Regenerated.
41259         * lib/unictype/pr_id_start.h: Regenerated.
41260         * lib/unictype/pr_ideographic.h: Regenerated.
41261         * lib/unictype/pr_ignorable_control.h: Regenerated.
41262         * lib/unictype/pr_lowercase.h: Regenerated.
41263         * lib/unictype/pr_math.h: Regenerated.
41264         * lib/unictype/pr_numeric.h: Regenerated.
41265         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41266         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41267         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41268         * lib/unictype/pr_other_id_continue.h: Regenerated.
41269         * lib/unictype/pr_other_lowercase.h: Regenerated.
41270         * lib/unictype/pr_other_math.h: Regenerated.
41271         * lib/unictype/pr_punctuation.h: Regenerated.
41272         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41273         * lib/unictype/pr_soft_dotted.h: Regenerated.
41274         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41275         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41276         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41277         * lib/unictype/pr_uppercase.h: Regenerated.
41278         * lib/unictype/pr_xid_continue.h: Regenerated.
41279         * lib/unictype/pr_xid_start.h: Regenerated.
41280         * lib/unictype/pr_zero_width.h: Regenerated.
41281         * lib/unictype/scripts.h: Regenerated.
41282         * lib/unictype/scripts_byname.gperf: Regenerated.
41283         * lib/unictype/sy_java_ident.h: Regenerated.
41284         * lib/unilbrk/lbrkprop1.h: Regenerated.
41285         * lib/unilbrk/lbrkprop2.h: Regenerated.
41286         * tests/unictype/test-categ_C.c: Regenerated.
41287         * tests/unictype/test-categ_Cf.c: Regenerated.
41288         * tests/unictype/test-categ_Cn.c: Regenerated.
41289         * tests/unictype/test-categ_L.c: Regenerated.
41290         * tests/unictype/test-categ_Ll.c: Regenerated.
41291         * tests/unictype/test-categ_Lm.c: Regenerated.
41292         * tests/unictype/test-categ_Lo.c: Regenerated.
41293         * tests/unictype/test-categ_Lu.c: Regenerated.
41294         * tests/unictype/test-categ_M.c: Regenerated.
41295         * tests/unictype/test-categ_Mc.c: Regenerated.
41296         * tests/unictype/test-categ_Me.c: Regenerated.
41297         * tests/unictype/test-categ_Mn.c: Regenerated.
41298         * tests/unictype/test-categ_N.c: Regenerated.
41299         * tests/unictype/test-categ_Nd.c: Regenerated.
41300         * tests/unictype/test-categ_Nl.c: Regenerated.
41301         * tests/unictype/test-categ_No.c: Regenerated.
41302         * tests/unictype/test-categ_P.c: Regenerated.
41303         * tests/unictype/test-categ_Pd.c: Regenerated.
41304         * tests/unictype/test-categ_Pe.c: Regenerated.
41305         * tests/unictype/test-categ_Pf.c: Regenerated.
41306         * tests/unictype/test-categ_Pi.c: Regenerated.
41307         * tests/unictype/test-categ_Po.c: Regenerated.
41308         * tests/unictype/test-categ_Ps.c: Regenerated.
41309         * tests/unictype/test-categ_S.c: Regenerated.
41310         * tests/unictype/test-categ_Sk.c: Regenerated.
41311         * tests/unictype/test-categ_Sm.c: Regenerated.
41312         * tests/unictype/test-categ_So.c: Regenerated.
41313         * tests/unictype/test-ctype_alnum.c: Regenerated.
41314         * tests/unictype/test-ctype_alpha.c: Regenerated.
41315         * tests/unictype/test-ctype_graph.c: Regenerated.
41316         * tests/unictype/test-ctype_lower.c: Regenerated.
41317         * tests/unictype/test-ctype_print.c: Regenerated.
41318         * tests/unictype/test-ctype_punct.c: Regenerated.
41319         * tests/unictype/test-ctype_upper.c: Regenerated.
41320         * tests/unictype/test-decdigit.h: Regenerated.
41321         * tests/unictype/test-digit.h: Regenerated.
41322         * tests/unictype/test-numeric.h: Regenerated.
41323         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41324         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41325         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41326         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41328         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41329         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41330         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41331         * tests/unictype/test-pr_combining.c: Regenerated.
41332         * tests/unictype/test-pr_dash.c: Regenerated.
41333         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41334         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41335         * tests/unictype/test-pr_deprecated.c: Regenerated.
41336         * tests/unictype/test-pr_diacritic.c: Regenerated.
41337         * tests/unictype/test-pr_extender.c: Regenerated.
41338         * tests/unictype/test-pr_format_control.c: Regenerated.
41339         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41340         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41341         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41342         * tests/unictype/test-pr_id_continue.c: Regenerated.
41343         * tests/unictype/test-pr_id_start.c: Regenerated.
41344         * tests/unictype/test-pr_ideographic.c: Regenerated.
41345         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41346         * tests/unictype/test-pr_lowercase.c: Regenerated.
41347         * tests/unictype/test-pr_math.c: Regenerated.
41348         * tests/unictype/test-pr_numeric.c: Regenerated.
41349         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41350         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41351         Regenerated.
41352         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41353         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41354         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41355         * tests/unictype/test-pr_other_math.c: Regenerated.
41356         * tests/unictype/test-pr_punctuation.c: Regenerated.
41357         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41358         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41359         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41360         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41361         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41362         * tests/unictype/test-pr_uppercase.c: Regenerated.
41363         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41364         * tests/unictype/test-pr_xid_start.c: Regenerated.
41365         * tests/unictype/test-pr_zero_width.c: Regenerated.
41366
41367         Update to Unicode 5.1.0.
41368         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41369         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41370         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41371         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41372         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41373         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41374         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41375         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41376         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41377         (nonspacing_table_ind): Update.
41378         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41379
41380         Update to Unicode 5.1.0.
41381         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41382         code transform.
41383         * lib/uniname/uniname.c (unicode_character_name,
41384         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41385         * lib/uniname/uninames.h: Regenerated.
41386         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41387
41388 2009-02-07  Bruno Haible  <bruno@clisp.org>
41389
41390         Merge gen-ctype and gen-lbrk into a single program.
41391         * lib/gen-uni-tables.c: New file, incorporating
41392         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41393         Add directory prefixes to the names of the generated files.
41394         * lib/unictype/gen-ctype.c: Remove file.
41395         * lib/unilbrk/gen-lbrk.c: Remove file.
41396         * modules/gen-uni-tables: New file.
41397         * modules/unictype/gen-ctype: Remove file.
41398         * modules/unilbrk/gen-lbrk: Remove file.
41399
41400 2009-02-07  Bruno Haible  <bruno@clisp.org>
41401
41402         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41403
41404         New module 'unistr/u32-strcoll'.
41405         * modules/unistr/u32-strcoll: New file.
41406         * lib/unistr/u32-strcoll.c: New file.
41407
41408         New module 'unistr/u16-strcoll'.
41409         * modules/unistr/u16-strcoll: New file.
41410         * lib/unistr/u16-strcoll.c: New file.
41411
41412         New module 'unistr/u8-strcoll'.
41413         * modules/unistr/u8-strcoll: New file.
41414         * lib/unistr/u8-strcoll.c: New file.
41415         * lib/unistr/u-strcoll.h: New file.
41416
41417 2009-02-07  Bruno Haible  <bruno@clisp.org>
41418
41419         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41420         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41421         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41422         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41423         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41424         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41425
41426 2009-02-07  Bruno Haible  <bruno@clisp.org>
41427
41428         Make 64-bit clean.
41429         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41430         output_combclass, output_bidi_category, output_decimal_digit,
41431         output_digit, output_numeric, output_mirror, output_scripts,
41432         output_ident_category): Use proper width specifier in format strings.
41433
41434 2009-02-07  Bruno Haible  <bruno@clisp.org>
41435
41436         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41437         failure behaviour.
41438
41439 2009-02-07  Jim Meyering  <meyering@redhat.com>
41440
41441         regex: avoid compilation failure with upcoming gcc-4.4
41442         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41443         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41444         "... error: integer overflow in preprocessor expression".
41445
41446 2009-02-05  Ben Pfaff  <blp@gnu.org>
41447
41448         Fix link errors on Windows when close module is used.
41449         * modules/close: Add $(LIB_CLOSE) to Link section.
41450         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41451         $(LIB_CLOSE) on Windows.
41452
41453 2009-02-05  Jim Meyering  <meyering@redhat.com>
41454
41455         still avoid unused-parameter warnings, but do it cleanly
41456         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41457         (get_fs_usage): Cast to void instead.
41458         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41459         (dev_from_mount_options, read_file_system_list): Cast to void.
41460         Prompted by Bruno Haible.
41461
41462 2009-02-04  Jim Meyering  <meyering@redhat.com>
41463
41464         fsusage.c: correct copyright year
41465         * lib/fsusage.c: Reflect year in which the change is pushed into
41466
41467         avoid misc. warnings
41468         * lib/fsusage.c (UNUSED_PARAM): Define.
41469         (get_fs_usage): Mark parameter "disk" as unused.
41470         * lib/getugroups.c (getgrent): Use "void" in prototype.
41471         * lib/mountlist.c: Mark unused parameters.
41472         (read_file_system_list): Declare a local with "const".
41473         * lib/nanosleep.c (getnow): Declare static.
41474         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41475
41476         dirfd: set errno upon failure
41477         * lib/dirfd.c: Include <errno.h>.
41478         Set errno to ENOTSUP when returning -1.
41479         * modules/dirfd (Depends-on): Add errno.
41480         Suggested by John Kodis <kodis@comcast.net>.
41481
41482 2009-02-01  Bruno Haible  <bruno@clisp.org>
41483
41484         Don't assume sizeof (long) >= sizeof (void *).
41485         * lib/memcmp.c: Include stdint.h.
41486         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41487         srcp2 to 'const byte *'.
41488         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41489         types to uintptr_t.
41490         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41491         * modules/memcmp (Depends-on): Add stdint.
41492         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41493
41494 2009-01-30  Eric Blake  <ebb9@byu.net>
41495
41496         fix more require-before-expand issues
41497         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41498         expand, AC_PROG_AWK.
41499         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41500
41501 2009-01-28  Eric Blake  <ebb9@byu.net>
41502
41503         version-etc: use consistent URL formatting
41504         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41505         Improve formatting.  Use fputs for string without %.
41506
41507 2009-01-28  Jim Meyering  <meyering@redhat.com>
41508
41509         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41510         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41511         "underquoted definition of NAME" from autoconf-2.59.
41512
41513 2009-01-28  Bruno Haible  <bruno@clisp.org>
41514
41515         * doc/gnulib.texi: Add "Obsolete modules" to index.
41516
41517 2009-01-28  Jim Meyering  <meyering@redhat.com>
41518
41519         useless-if-before-free: recognize more variants
41520         * build-aux/useless-if-before-free: Also recognize e.g.,
41521         if (NULL != p) free (p);
41522
41523 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41524
41525         test-getaddrinfo: skip (don't fail) this test when there's no network
41526         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41527         on the presumption that it means you lack network access.
41528
41529 2009-01-26  Jim Meyering  <meyering@redhat.com>
41530
41531         fflush: avoid warnings on modern systems
41532         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41533         pos and result, into scopes where they're used.
41534
41535 2009-01-26  Eric Blake  <ebb9@byu.net>
41536
41537         Silence warning reintroduced by recent extensions patch.
41538         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41539         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41540         autoconf.
41541
41542         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41543         * m4/00gnulib.m4: New file.
41544         * gnulib-tool (func_get_filelist): Always use it.
41545         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41546         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41547
41548 2009-01-25  Bruno Haible  <bruno@clisp.org>
41549
41550         Make test-quotearg work on MacOS X and AIX.
41551         * tests/test-quotearg.sh: New file.
41552         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41553         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41554         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41555         include <libintl.h>.
41556         (fake_locale): Remove variable.
41557         (gettext, dgettext, dcgettext): Remove functions.
41558         (main): Instead of setting a fake locale, set a real locale. Call
41559         textdomain and bindtextdomain.
41560         * modules/quotearg-tests (Files): Add the new files.
41561         (Depends-on): Add gettext, setenv, unsetenv.
41562         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41563         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41564         Augment TESTS_ENVIRONMENT.
41565
41566 2009-01-25  Bruno Haible  <bruno@clisp.org>
41567
41568         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41569         fr_FR.ISO8859-1 locale on MacOS X.
41570         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41571         ja_JP.eucJP locale on MacOS X.
41572         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41573         zh_CN.GB18030 locale on MacOS X.
41574
41575 2009-01-25  Bruno Haible  <bruno@clisp.org>
41576
41577         Avoid link errors on MacOS X 10.3.
41578         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41579         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41580
41581 2009-01-25  Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41584         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41585         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41586         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41587         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41588         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41589         posix_spawnattr_init, posix_spawnattr_setsigmask,
41590         posix_spawnattr_setflags, posix_spawnattr_destroy.
41591
41592         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41593         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41594         * modules/execute (Files): Remove m4/posix_spawn.m4.
41595         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41596         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41597         posix_spawnattr_init, posix_spawnattr_setsigmask,
41598         posix_spawnattr_setflags, posix_spawnattr_destroy.
41599
41600 2009-01-25  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/glthread/threadlib.c: Include <stdlib.h>.
41603
41604 2009-01-25  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/glthread/threadlib.c (dummy): New declaration.
41607
41608 2009-01-25  Bruno Haible  <bruno@clisp.org>
41609
41610         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41611         multibyte characters also for the GB18030 encoding. Don't crash when
41612         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41613
41614 2009-01-25  Bruno Haible  <bruno@clisp.org>
41615
41616         Avoid redefining 'struct random_data' on OSF/1 5.1.
41617         * lib/stdlib.in.h: Include <random.h> if it exists.
41618         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41619         HAVE_RANDOM_H. Include <random.h> when testing whether
41620         'struct random_data' exists.
41621         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41622
41623 2009-01-25  Bruno Haible  <bruno@clisp.org>
41624
41625         Don't install charset.alias on MacOS X >= 10.3.
41626         * lib/localcharset.c (DARWIN7): New macro.
41627         (get_charset_aliases): Hardcode the result for Darwin7.
41628         * modules/localcharset (install-exec-local): Don't install
41629         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41630
41631 2009-01-25  Bruno Haible  <bruno@clisp.org>
41632
41633         Don't install charset.alias on mingw and Cygwin.
41634         * modules/localcharset (install-exec-local): Don't install
41635         charset.alias on mingw and Cygwin, if the file does not yet exist.
41636         The result for these platforms is hardcoded in localcharset.c.
41637
41638 2009-01-25  Bruno Haible  <bruno@clisp.org>
41639
41640         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41642         before requiring AC_USE_SYSTEM_EXTENSIONS.
41643
41644 2009-01-25  Jim Meyering  <meyering@redhat.com>
41645
41646         c-strtod: avoid warnings
41647         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41648         "assignment discards qualifiers from pointer target type" warnings.
41649
41650 2009-01-24  Bruno Haible  <bruno@clisp.org>
41651
41652         Add support for non-UTF-8 locales on MacOS X.
41653         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41654         canonical encodings. For Darwin 7 and newer, don't map traditional
41655         encodings to UTF-8.
41656         Reported by Vincent Lefevre <vincent@vinc17.org>
41657         at <http://savannah.gnu.org/bugs/?25235>.
41658
41659 2009-01-24  Bruno Haible  <bruno@clisp.org>
41660
41661         * doc/gnulib.texi (Obsolete modules): New section.
41662         Reported by Mike Frysinger <vapier@gentoo.org>.
41663
41664 2009-01-24  Bruno Haible  <bruno@clisp.org>
41665
41666         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41667         (%.dvi): New rule.
41668
41669 2009-01-24  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41672         Reported by Eric Blake.
41673
41674 2009-01-24  Bruno Haible  <bruno@clisp.org>
41675
41676         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41677         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41678         Reported by Gary V. Vaughan <gary@gnu.org>.
41679
41680 2009-01-24  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41683
41684 2009-01-23  Bruno Haible  <bruno@clisp.org>
41685
41686         Make c-strtod, c-strtold usable in libraries.
41687         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41688         (C_STRTOD): Call strdup instead of xstrdup.
41689         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41690         * modules/c-strtold (Depends-on): Likewise.
41691         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41692         * NEWS: Mention the change.
41693         Reported by Michael Gold <mgold@ncf.ca>.
41694
41695 2009-01-23  Jim Meyering  <meyering@redhat.com>
41696
41697         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41698         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41699         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41700
41701 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41702
41703         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41704         GNU CoreUtils.
41705         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41706         * modules/version-etc (Description): Update.
41707
41708 2009-01-22  Bruno Haible  <bruno@clisp.org>
41709
41710         Cache the C locale object.
41711         * lib/c-strtod.c (c_locale_cache): New variable.
41712         (c_locale): New function.
41713         (C_STRTOD): Use it, and don't call freelocale.
41714         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41715         Suggested by Paolo Bonzini.
41716
41717 2009-01-21  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41720         conditions other than overflow.
41721
41722 2009-01-21  Bruno Haible  <bruno@clisp.org>
41723
41724         * lib/c-strtod.c: Include errno.h.
41725         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41726         value from STRTOD_L and STRTOD.
41727
41728 2009-01-21  Bruno Haible  <bruno@clisp.org>
41729         and Jim Meyering  <meyering@redhat.com>
41730
41731         nanosleep: skip configure test (fail it) for apple universal builds
41732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41733         universal builds, assume that nanosleep does not work.
41734         * modules/nanosleep (Depends-on): Add multiarch.
41735
41736         mktime: skip configure test (fail it) for apple universal builds
41737         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41738         universal builds, assume that mktime does not work.
41739         * modules/mktime (Depends-on): Add multiarch.
41740
41741 2009-01-21  Eric Blake  <ebb9@byu.net>
41742
41743         multiarch: avoid expand-before-require warning
41744         * modules/multiarch (configure.ac): Require, rather than expand,
41745         gl_MULTIARCH.
41746         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41747         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41748         enforce that all clients require it.  Partial reversion of
41749         2008-12-29 patch.
41750
41751         error: avoid expand-before-require warning
41752         * modules/errno (configure.ac): Require, rather than expand,
41753         gl_HEADER_ERRNO_H.
41754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41755         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41756         enforce that all clients require it.
41757
41758         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41759         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41760         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41761         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41762
41763 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41764
41765         Revert:
41766         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41767
41768         regex: do not depend on obsolete modules.
41769         * modules/regex: Remove memcmp and memmove.
41770
41771 2009-01-20  Bruno Haible  <bruno@clisp.org>
41772
41773         Make the 'link' module link on Windows NT 4.
41774         * lib/link.c (_WIN32_WINNT): Don't define.
41775         (CreateHardLinkFuncType): New type.
41776         (CreateHardLinkFunc, initialized): New variables.
41777         (initialize): New function.
41778         (link): Invoke CreateHardLink indirectly through the function pointer.
41779
41780 2009-01-20  Bruno Haible  <bruno@clisp.org>
41781
41782         Fix compilation failure on mingw.
41783         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41784
41785 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41786
41787         * doc/c-strtod.texi: Mention a couple of restrictions.
41788
41789 2009-01-20  Jim Meyering  <meyering@redhat.com>
41790
41791         gettimeofday: move more declarations out of functions
41792         * lib/gettimeofday.c: Move extern declarations of tzset and
41793         gmtime out of containing functions.  Prompted by Bruno Haible.
41794
41795 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41796
41797         regex: do not depend on obsolete modules.
41798         * modules/regex: Remove memcmp and memmove.
41799
41800 2009-01-19  Bruno Haible  <bruno@clisp.org>
41801
41802         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41803         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41804         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41805         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41806         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41807
41808 2009-01-19  Bruno Haible  <bruno@clisp.org>
41809
41810         * tests/test-link.c: Include <errno.h>.
41811         (main): Exit with code 77 when a hard link cannot be created due to
41812         the file system.
41813         * tests/test-link.sh: Skip test when a hard link cannot be created due
41814         to the file system.
41815         Suggested by Eric Blake.
41816
41817 2009-01-19  Martin Lambers  <marlam@marlam.de>
41818
41819         * modules/link-tests: New file.
41820         * tests/test-link.sh: New file.
41821         * tests/test-link.c: New file.
41822
41823 2009-01-19  Eric Blake  <ebb9@byu.net>
41824
41825         doc: mention another function added in cygwin 1.7.0
41826         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41827         Another new function in cygwin 1.7.
41828
41829 2009-01-19  Bruno Haible  <bruno@clisp.org>
41830
41831         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41832         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41833         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41834         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41836         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41838         * m4/md4.m4 (gl_MD4): Likewise.
41839         * m4/md5.m4 (gl_MD5): Likewise.
41840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41841         * m4/sha1.m4 (gl_SHA1): Likewise.
41842         * m4/sha256.m4 (gl_SHA256): Likewise.
41843         * m4/sha512.m4 (gl_SHA512): Likewise.
41844
41845 2009-01-19  Bruno Haible  <bruno@clisp.org>
41846
41847         * modules/uniname/uniname-tests (Depends-on): Add progname.
41848         * tests/uniname/test-uninames.c: Include progname.h.
41849         (main): Call set_program_name.
41850
41851         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41852         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41853         (main): Call set_program_name.
41854
41855         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41856         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41857         (main): Call set_program_name.
41858
41859         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41860         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41861         (main): Call set_program_name.
41862
41863         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41864         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41865         (main): Call set_program_name.
41866
41867         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41868         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41869         (main): Call set_program_name.
41870
41871         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41872         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41873         (main): Call set_program_name.
41874
41875         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41876         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41877         (main): Call set_program_name.
41878
41879         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41880         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41881         (main): Call set_program_name.
41882
41883 2009-01-19  Eric Blake  <ebb9@byu.net>
41884
41885         test-unistd: test previous patch
41886         * tests/test-unistd.c: Test *_FILENO macros.
41887
41888         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41889         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41890         Guarantee a definition.
41891         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41892         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41893         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41894         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41895         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41896         Likewise.
41897         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41898         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41899         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41900         Likewise.
41901         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41902         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41903         (STDERR_FILENO): Likewise.
41904         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41905         (STDERR_FILENO): Likewise.
41906         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41907         (STDERR_FILENO): Likewise.
41908         Reported by Elbert Pol.
41909
41910 2009-01-19  Eric Blake  <ebb9@byu.net>
41911
41912         doc: mention more functions added in cygwin 1.7.0
41913         * doc/posix-functions/abort.texi (abort): Update wording related
41914         to cygwin.
41915         * doc/posix-functions/daylight.texi (daylight): Likewise.
41916         * doc/posix-functions/optarg.texi (optarg): Likewise.
41917         * doc/posix-functions/optarg.texi (opterr): Likewise.
41918         * doc/posix-functions/optarg.texi (optind): Likewise.
41919         * doc/posix-functions/optarg.texi (optopt): Likewise.
41920         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41921         worked in 1.5.x, and was withdrawn in 1.7.
41922         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41923         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41924         cygwin versions.
41925         * doc/posix-functions/perror.texi (perror): Likewise.
41926         * doc/posix-functions/printf.texi (printf): Likewise.
41927         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41928         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41929         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41931         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41932         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41933         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41934         Likewise.
41935         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41936         Likewise.
41937         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41938         this function.
41939         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41940         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41941         Likewise.
41942         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41943         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41944         * doc/posix-functions/confstr.texi (confstr): Likewise.
41945         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41946         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41947         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41948         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41949         * doc/posix-functions/fputws.texi (fputws): Likewise.
41950         * doc/posix-functions/fwide.texi (fwide): Likewise.
41951         * doc/posix-functions/getwc.texi (getwc): Likewise.
41952         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41953         * doc/posix-functions/putwc.texi (putwc): Likewise.
41954         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41955         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41956         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41957         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41958         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41959         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41960         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41961         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41962         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41963         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41964         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41965
41966 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41967
41968         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41969         * lib/ioctl.c: Include <sys/ioctl.h>.
41970
41971 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41972
41973         * modules/getdate-tests (Depends-on): Add progname.
41974         * tests/test-getdate.c: Use progname module, to avoid link errors
41975         on non-glibc systems.
41976
41977 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41978
41979         * modules/filenamecat-tests (Depends-on): Add progname.
41980         * modules/fstrcmp-tests (Depends-on): Likewise.
41981
41982         * tests/test-filenamecat.c: Use progname module, to avoid link
41983         errors on non-glibc systems.
41984         * tests/test-fstrcmp.c: Likewise.
41985
41986 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41987
41988         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41989         * lib/gettimeofday.c: Move extern declaration out of function.
41990
41991 2009-01-18  Bruno Haible  <bruno@clisp.org>
41992
41993         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41994         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41995         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41996
41997 2009-01-18  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/strftime.c (MEMPCPY): Remove unused macro.
42000         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42001
42002 2009-01-18  Martin Lambers  <marlam@marlam.de>
42003
42004         New module 'link'.
42005         * lib/unistd.in.h (link): New declaration.
42006         * lib/link.c: New file.
42007         * m4/link.m4: New file.
42008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42009         HAVE_LINK.
42010         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42011         * modules/link: New file.
42012         * doc/posix-functions/link.texi: Mention the new module.
42013
42014 2009-01-18  Bruno Haible  <bruno@clisp.org>
42015
42016         * tests/test-avltree_list.c (main): Call set_program_name.
42017         * tests/test-avltree_oset.c (main): Likewise.
42018         * tests/test-obstack-printf.c: Include progname.h.
42019         (main): Call set_program_name.
42020         * tests/test-quotearg.c: Include progname.h.
42021         (main): Call set_program_name.
42022         * tests/test-xmemdup0.c: Include progname.h.
42023         (main): Call set_program_name.
42024
42025 2009-01-18  Bruno Haible  <bruno@clisp.org>
42026
42027         New module 'alphasort'.
42028         * lib/dirent.in.h (alphasort): New declaration.
42029         * lib/alphasort.c: New file, from glibc with modifications.
42030         * m4/alphasort.m4: New file.
42031         * modules/alphasort: New file.
42032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42033         HAVE_ALPHASORT.
42034         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42035         HAVE_ALPHASORT.
42036         * doc/posix-functions/alphasort.texi: Mention the new module and the
42037         portability problems.
42038
42039 2009-01-18  Bruno Haible  <bruno@clisp.org>
42040
42041         New module 'scandir'.
42042         * lib/dirent.in.h (scandir): New declaration.
42043         * lib/scandir.c: New file, from glibc with modifications.
42044         * m4/scandir.m4: New file.
42045         * modules/scandir: New file.
42046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42047         HAVE_SCANDIR.
42048         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42049         HAVE_SCANDIR.
42050         * doc/posix-functions/scandir.texi: Mention the new module and the
42051         portability problems.
42052
42053 2009-01-17  Bruno Haible  <bruno@clisp.org>
42054
42055         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42056         Update documentation.
42057         (func_remove_suffix): Escape all dots in the suffix. Update
42058         documentation.
42059         (func_filter_filelist): Update documentation.
42060         Reported by Ralf Wildenhues.
42061
42062 2009-01-17  Bruno Haible  <bruno@clisp.org>
42063
42064         * modules/dprintf-posix-tests: New file.
42065         * tests/test-dprintf-posix.sh: New file.
42066         * tests/test-dprintf-posix.c: New file.
42067
42068         New modules 'dprintf', 'dprintf-posix'.
42069         * lib/stdio.in.h (dprintf): New declaration.
42070         * lib/dprintf.c: New file.
42071         * m4/dprintf.m4: New file.
42072         * m4/dprintf-posix.m4: New file.
42073         * modules/dprintf: New file.
42074         * modules/dprintf-posix: New file.
42075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42076         HAVE_DPRINTF, REPLACE_DPRINTF.
42077         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42078         HAVE_DPRINTF, REPLACE_DPRINTF.
42079         * doc/posix-functions/dprintf.texi: Mention the new modules.
42080
42081 2009-01-17  Bruno Haible  <bruno@clisp.org>
42082
42083         * modules/vdprintf-posix-tests: New file.
42084         * tests/test-vdprintf-posix.sh: New file.
42085         * tests/test-vdprintf-posix.c: New file.
42086
42087         New modules 'vdprintf', 'vdprintf-posix'.
42088         * lib/stdio.in.h (vdprintf): New declaration.
42089         * lib/vdprintf.c: New file.
42090         * m4/vdprintf.m4: New file.
42091         * m4/vdprintf-posix.m4: New file.
42092         * modules/vdprintf: New file.
42093         * modules/vdprintf-posix: New file.
42094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42095         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42096         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42097         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42098         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42099
42100 2009-01-17  Bruno Haible  <bruno@clisp.org>
42101
42102         Fix replacement of fopen on mingw.
42103         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42104         mingw.
42105
42106 2009-01-17  Bruno Haible  <bruno@clisp.org>
42107
42108         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42109         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42110
42111 2009-01-17  Bruno Haible  <bruno@clisp.org>
42112
42113         Avoid test-fflush2.sh failure on mingw.
42114         * tests/test-fflush2.c: Include binary-io.h.
42115         (main): Put standard input into binary mode.
42116         * modules/fflush-tests (Depends-on): Add binary-io.
42117
42118 2009-01-17  Bruno Haible  <bruno@clisp.org>
42119
42120         * lib/wchar.in.h: In another particular situation, include only the
42121         system's <wchar.h> file.
42122         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42123         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42124         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42125
42126 2009-01-17  Bruno Haible  <bruno@clisp.org>
42127
42128         Support for stripping executables in --enable-relocatable.
42129         * build-aux/install-reloc: Expect one more argument, or an environment
42130         variable RELOC_STRIP_PROG. If set, strip the destination program and
42131         its wrapper.
42132         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42133         RELOC_STRIP_PROG.
42134         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42135         to set RELOCATABLE_STRIP.
42136         * NEWS: Mention the new Makefile requirement.
42137
42138 2009-01-17  Bruno Haible  <bruno@clisp.org>
42139
42140         * build-aux/install-reloc: Remove debugging information left over by
42141         C compiler on MacOS X.
42142
42143 2009-01-17  Bruno Haible  <bruno@clisp.org>
42144
42145         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42146         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42147         _NSGetExecutablePath.
42148
42149 2009-01-16  Jim Meyering  <meyering@redhat.com>
42150
42151         strerror: avoid warnings about discarding "const"
42152         * lib/strerror.c (rpl_strerror): Instead of returning a const
42153         string from each and every "case", use a variable, and add a single
42154         cast after the switch.
42155
42156 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42157
42158         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42159
42160 2009-01-16  Bruno Haible  <bruno@clisp.org>
42161
42162         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42163         array initializer syntax that also works in C++ mode.
42164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42165
42166 2009-01-16  Jim Meyering  <meyering@redhat.com>
42167
42168         poll: suppress a warning
42169         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42170         to ignore "...unsigned expression < 0 is always false" warnings.
42171
42172 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42173
42174         poll: remove declarations of unused variables
42175         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42176         sockbuf and optlen.
42177
42178 2009-01-15  Bruno Haible  <bruno@clisp.org>
42179
42180         Make fflush-after-ungetc POSIX compliant on BSD systems.
42181         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42182         (clear_ungetc_buffer): Implement also for other systems.
42183         (rpl_fflush): On glibc systems, invoke
42184         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42185         clear_ungetc_buffer after fetching the stream's position, not before.
42186
42187 2009-01-15  Bruno Haible  <bruno@clisp.org>
42188
42189         Make fflush-after-ungetc POSIX compliant on glibc systems.
42190         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42191         after ungetc.
42192         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42193         (rpl_fflush): On glibc systems, simply call the system's fflush
42194         function after clearing the ungetc buffer.
42195         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42196         Instead, lseek only to the end of file, then use the system's fseeko
42197         for the rest. On glibc systems, reset the EOF indicator bit.
42198
42199 2009-01-15  Jim Meyering  <meyering@redhat.com>
42200
42201         openmp.m4: revert quote-adding change, for portability to older autoconf
42202         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42203         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42204         Simon Josefsson noticed the problem when using autoconf-2.61.
42205
42206 2009-01-15  Bruno Haible  <bruno@clisp.org>
42207
42208         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42209         * tests/test-fflush2.c (ASSERT): Always fail.
42210         (main): Add two tests for fflush() after ungetc(), taking into account
42211         the Austin Group's clarification.
42212         Suggested by Eric Blake.
42213
42214 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42215
42216         mktime.m4: remove K&R-style function prototypes
42217         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42218         for the Sun C++ compiler.
42219
42220 2009-01-14  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42223         while including <wchar.h>.
42224         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42225         the system's <wchar.h> file.
42226         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42227
42228 2009-01-14  Bruno Haible  <bruno@clisp.org>
42229
42230         * m4/csharp.m4: Don't mention gettext on the serial number line.
42231         * m4/csharpexec.m4: Likewise.
42232         * m4/eaccess.m4: Likewise.
42233         * m4/javaexec.m4: Likewise.
42234         * m4/sig_atomic_t.m4: Likewise.
42235         * m4/tmpdir.m4: Likewise.
42236         * m4/intldir.m4: Bump gettext version.
42237         * m4/lib-ld.m4: Likewise.
42238
42239 2009-01-14  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/progname.c (set_program_name): Add more comments.
42242         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42243
42244 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42245
42246         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42247         were sys/stat.h does not define it.
42248
42249 2009-01-14  Jim Meyering  <meyering@redhat.com>
42250
42251         many *.m4 files: improve m4 quoting
42252         99% of this change was performed by running the following commands:
42253         git ls-files | grep '\.m4$' | xargs perl -pi \
42254           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42255           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42256           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42257           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42258         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42259         The remainder were to add Copyright dates, increment serial numbers,
42260         undo some changes in comments, exclude m4/intl.m4, and add quotes
42261         around the "1" in ",1" where the unusual spacing prohibited the
42262         above regexps from doing the job.  For more details, see
42263         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42264         * m4/acl.m4: Modified.
42265         * m4/afs.m4: Likewise.
42266         * m4/alloca.m4: Likewise.
42267         * m4/argp.m4: Likewise.
42268         * m4/argz.m4: Likewise.
42269         * m4/atexit.m4: Likewise.
42270         * m4/bison-i18n.m4: Likewise.
42271         * m4/bison.m4: Likewise.
42272         * m4/byteswap.m4: Likewise.
42273         * m4/c-stack.m4: Likewise.
42274         * m4/c-strtod.m4: Likewise.
42275         * m4/calloc.m4: Likewise.
42276         * m4/canonicalize-lgpl.m4: Likewise.
42277         * m4/chown.m4: Likewise.
42278         * m4/clock_time.m4: Likewise.
42279         * m4/codeset.m4: Likewise.
42280         * m4/copy-file.m4: Likewise.
42281         * m4/csharp.m4: Likewise.
42282         * m4/csharpcomp.m4: Likewise.
42283         * m4/csharpexec.m4: Likewise.
42284         * m4/d-ino.m4: Likewise.
42285         * m4/d-type.m4: Likewise.
42286         * m4/dirfd.m4: Likewise.
42287         * m4/double-slash-root.m4: Likewise.
42288         * m4/eaccess.m4: Likewise.
42289         * m4/eealloc.m4: Likewise.
42290         * m4/environ.m4: Likewise.
42291         * m4/errno_h.m4: Likewise.
42292         * m4/euidaccess.m4: Likewise.
42293         * m4/execute.m4: Likewise.
42294         * m4/fatal-signal.m4: Likewise.
42295         * m4/fchdir.m4: Likewise.
42296         * m4/fcntl_h.m4: Likewise.
42297         * m4/fileblocks.m4: Likewise.
42298         * m4/filenamecat.m4: Likewise.
42299         * m4/findprog.m4: Likewise.
42300         * m4/flexmember.m4: Likewise.
42301         * m4/fnmatch.m4: Likewise.
42302         * m4/fopen.m4: Likewise.
42303         * m4/fpending.m4: Likewise.
42304         * m4/fprintf-posix.m4: Likewise.
42305         * m4/free.m4: Likewise.
42306         * m4/frexp.m4: Likewise.
42307         * m4/frexpl.m4: Likewise.
42308         * m4/fsusage.m4: Likewise.
42309         * m4/ftruncate.m4: Likewise.
42310         * m4/gc-camellia.m4: Likewise.
42311         * m4/gc-random.m4: Likewise.
42312         * m4/gc.m4: Likewise.
42313         * m4/getaddrinfo.m4: Likewise.
42314         * m4/getcwd-abort-bug.m4: Likewise.
42315         * m4/getcwd-path-max.m4: Likewise.
42316         * m4/getdate.m4: Likewise.
42317         * m4/getdomainname.m4: Likewise.
42318         * m4/getgroups.m4: Likewise.
42319         * m4/gethostname.m4: Likewise.
42320         * m4/gethrxtime.m4: Likewise.
42321         * m4/getline.m4: Likewise.
42322         * m4/getloadavg.m4: Likewise.
42323         * m4/getndelim2.m4: Likewise.
42324         * m4/getpass.m4: Likewise.
42325         * m4/gettext.m4: Likewise.
42326         * m4/gettime.m4: Likewise.
42327         * m4/gettimeofday.m4: Likewise.
42328         * m4/gnulib-common.m4: Likewise.
42329         * m4/group-member.m4: Likewise.
42330         * m4/host-os.m4: Likewise.
42331         * m4/iconv.m4: Likewise.
42332         * m4/iconv_open.m4: Likewise.
42333         * m4/inet_ntop.m4: Likewise.
42334         * m4/inet_pton.m4: Likewise.
42335         * m4/inline.m4: Likewise.
42336         * m4/intldir.m4: Likewise.
42337         * m4/intlmacosx.m4: Likewise.
42338         * m4/intmax.m4: Likewise.
42339         * m4/intmax_t.m4: Likewise.
42340         * m4/inttypes.m4: Likewise.
42341         * m4/inttypes_h.m4: Likewise.
42342         * m4/inttypes-pri.m4: Likewise.
42343         * m4/isapipe.m4: Likewise.
42344         * m4/isnand.m4: Likewise.
42345         * m4/isnanf.m4: Likewise.
42346         * m4/isnanl.m4: Likewise.
42347         * m4/javacomp.m4: Likewise.
42348         * m4/javaexec.m4: Likewise.
42349         * m4/jm-winsz1.m4: Likewise.
42350         * m4/jm-winsz2.m4: Likewise.
42351         * m4/lchown.m4: Likewise.
42352         * m4/lcmessage.m4: Likewise.
42353         * m4/ldexpl.m4: Likewise.
42354         * m4/lib-ld.m4: Likewise.
42355         * m4/lib-link.m4: Likewise.
42356         * m4/libsigsegv.m4: Likewise.
42357         * m4/link-follow.m4: Likewise.
42358         * m4/localcharset.m4: Likewise.
42359         * m4/locale-fr.m4: Likewise.
42360         * m4/locale-ja.m4: Likewise.
42361         * m4/locale-tr.m4: Likewise.
42362         * m4/locale-zh.m4: Likewise.
42363         * m4/lock.m4: Likewise.
42364         * m4/longlong.m4: Likewise.
42365         * m4/ls-mntd-fs.m4: Likewise.
42366         * m4/lstat.m4: Likewise.
42367         * m4/malloc.m4: Likewise.
42368         * m4/mathl.m4: Likewise.
42369         * m4/mbrtowc.m4: Likewise.
42370         * m4/mbstate_t.m4: Likewise.
42371         * m4/mbswidth.m4: Likewise.
42372         * m4/memchr.m4: Likewise.
42373         * m4/memcmp.m4: Likewise.
42374         * m4/memcpy.m4: Likewise.
42375         * m4/memmem.m4: Likewise.
42376         * m4/memmove.m4: Likewise.
42377         * m4/mempcpy.m4: Likewise.
42378         * m4/memrchr.m4: Likewise.
42379         * m4/memset.m4: Likewise.
42380         * m4/minmax.m4: Likewise.
42381         * m4/mkdir-slash.m4: Likewise.
42382         * m4/mkdtemp.m4: Likewise.
42383         * m4/mktime.m4: Likewise.
42384         * m4/mmap-anon.m4: Likewise.
42385         * m4/mountlist.m4: Likewise.
42386         * m4/nanosleep.m4: Likewise.
42387         * m4/nls.m4: Likewise.
42388         * m4/nocrash.m4: Likewise.
42389         * m4/open.m4: Likewise.
42390         * m4/openat.m4: Likewise.
42391         * m4/openmp.m4: Likewise.
42392         * m4/pathmax.m4: Likewise.
42393         * m4/perl.m4: Likewise.
42394         * m4/physmem.m4: Likewise.
42395         * m4/pipe.m4: Likewise.
42396         * m4/po.m4: Likewise.
42397         * m4/poll.m4: Likewise.
42398         * m4/posixtm.m4: Likewise.
42399         * m4/posixver.m4: Likewise.
42400         * m4/printf-frexp.m4: Likewise.
42401         * m4/printf-frexpl.m4: Likewise.
42402         * m4/printf-posix.m4: Likewise.
42403         * m4/printf-posix-rpl.m4: Likewise.
42404         * m4/printf.m4: Likewise.
42405         * m4/progtest.m4: Likewise.
42406         * m4/putenv.m4: Likewise.
42407         * m4/readline.m4: Likewise.
42408         * m4/readlink.m4: Likewise.
42409         * m4/readutmp.m4: Likewise.
42410         * m4/realloc.m4: Likewise.
42411         * m4/regex.m4: Likewise.
42412         * m4/relocatable.m4: Likewise.
42413         * m4/relocatable-lib.m4: Likewise.
42414         * m4/rename-dest-slash.m4: Likewise.
42415         * m4/rename.m4: Likewise.
42416         * m4/rmdir-errno.m4: Likewise.
42417         * m4/rmdir.m4: Likewise.
42418         * m4/roundf.m4: Likewise.
42419         * m4/roundl.m4: Likewise.
42420         * m4/rpmatch.m4: Likewise.
42421         * m4/save-cwd.m4: Likewise.
42422         * m4/selinux-selinux-h.m4: Likewise.
42423         * m4/setenv.m4: Likewise.
42424         * m4/settime.m4: Likewise.
42425         * m4/sig2str.m4: Likewise.
42426         * m4/sig_atomic_t.m4: Likewise.
42427         * m4/signalblocking.m4: Likewise.
42428         * m4/signbit.m4: Likewise.
42429         * m4/sigpipe.m4: Likewise.
42430         * m4/sockets.m4: Likewise.
42431         * m4/sockpfaf.m4: Likewise.
42432         * m4/st_dm_mode.m4: Likewise.
42433         * m4/stat-time.m4: Likewise.
42434         * m4/stdbool.m4: Likewise.
42435         * m4/stdint.m4: Likewise.
42436         * m4/stdint_h.m4: Likewise.
42437         * m4/stpcpy.m4: Likewise.
42438         * m4/stpncpy.m4: Likewise.
42439         * m4/strcase.m4: Likewise.
42440         * m4/strchrnul.m4: Likewise.
42441         * m4/strcspn.m4: Likewise.
42442         * m4/strdup.m4: Likewise.
42443         * m4/strftime.m4: Likewise.
42444         * m4/strndup.m4: Likewise.
42445         * m4/strnlen.m4: Likewise.
42446         * m4/strpbrk.m4: Likewise.
42447         * m4/strptime.m4: Likewise.
42448         * m4/strsep.m4: Likewise.
42449         * m4/strtod.m4: Likewise.
42450         * m4/strtoimax.m4: Likewise.
42451         * m4/strtok_r.m4: Likewise.
42452         * m4/strtol.m4: Likewise.
42453         * m4/strtoll.m4: Likewise.
42454         * m4/strtoul.m4: Likewise.
42455         * m4/strtoull.m4: Likewise.
42456         * m4/strtoumax.m4: Likewise.
42457         * m4/strverscmp.m4: Likewise.
42458         * m4/threadlib.m4: Likewise.
42459         * m4/timegm.m4: Likewise.
42460         * m4/tm_gmtoff.m4: Likewise.
42461         * m4/tmpdir.m4: Likewise.
42462         * m4/tmpfile.m4: Likewise.
42463         * m4/tzset.m4: Likewise.
42464         * m4/uintmax_t.m4: Likewise.
42465         * m4/unlinkdir.m4: Likewise.
42466         * m4/unlocked-io.m4: Likewise.
42467         * m4/uptime.m4: Likewise.
42468         * m4/userspec.m4: Likewise.
42469         * m4/utimbuf.m4: Likewise.
42470         * m4/utime.m4: Likewise.
42471         * m4/utimes-null.m4: Likewise.
42472         * m4/utimes.m4: Likewise.
42473         * m4/vararrays.m4: Likewise.
42474         * m4/vasnprintf.m4: Likewise.
42475         * m4/vfprintf-posix.m4: Likewise.
42476         * m4/vprintf-posix.m4: Likewise.
42477         * m4/wait-process.m4: Likewise.
42478         * m4/wchar_t.m4: Likewise.
42479         * m4/wint_t.m4: Likewise.
42480         * m4/write-any-file.m4: Likewise.
42481         * m4/yield.m4: Likewise.
42482
42483 2009-01-13  Bruno Haible  <bruno@clisp.org>
42484
42485         Avoid test-copy-file.sh failures when ACL support insufficient.
42486         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42487         TESTS_ENVIRONMENT.
42488         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42489         Reported by Jim Meyering.
42490
42491 2009-01-13  Bruno Haible  <bruno@clisp.org>
42492
42493         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42494         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42495         * modules/unistdio/u8-printf-parse (Files): Likewise.
42496         * modules/unistdio/u32-printf-parse (Files): Likewise.
42497         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42498
42499 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42500
42501         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42502         and m4/inttypes_h.m4 too.
42503
42504 2009-01-12  Eric Blake  <ebb9@byu.net>
42505
42506         tests: IRIX 6.2 cc can't compile -0.0 into .data
42507         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42508         rather than at compile-time.
42509         * tests/test-floorl.c (minus_zero): Likewise.
42510         * tests/test-frexpl.c (minus_zero): Likewise.
42511         * tests/test-isnan.c (minus_zerol): Likewise.
42512         * tests/test-isnanl.h (minus_zero): Likewise.
42513         * tests/test-ldexpl.c (minus_zero): Likewise.
42514         * tests/test-roundl.c (minus_zero): Likewise.
42515         * tests/test-signbit.c (minus_zerol): Likewise.
42516         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42517         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42518         * tests/test-truncl.c (minus_zero): Likewise.
42519         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42520         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42521         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42522
42523 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42524
42525         regex: fix glibc bug 9697
42526         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42527         handling.
42528
42529 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42530
42531         regex: fix glibc bug 697
42532         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42533         being NULL also if there are no backreferences.
42534
42535 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42536
42537         regex: merge glibc changes
42538         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42539         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42540         re_string_skip_chars, re_string_reconstruct): Likewise.
42541         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42542
42543 2009-01-07  Jim Meyering  <meyering@redhat.com>
42544
42545         poll: filter through cppi
42546         * lib/poll.c: Indent cpp directives to reflect nesting.
42547
42548 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42549
42550         poll: don't return uninitialized
42551         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42552
42553 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42554
42555         avoid compile failure on AIX 6.1
42556         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42557         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42558
42559 2009-01-04  Jim Meyering  <meyering@redhat.com>
42560
42561         remove duplicate inclusion of <stdio.h>
42562         * tests/test-fprintf-posix.c: Likewise.
42563         * tests/test-printf-posix.c: Likewise.
42564         * tests/test-snprintf-posix.c: Likewise.
42565         * tests/test-sprintf-posix.c: Likewise.
42566         * tests/test-vasprintf-posix.c: Likewise.
42567         * tests/test-vfprintf-posix.c: Likewise.
42568         * tests/test-vprintf-posix.c: Likewise.
42569         * tests/test-vsnprintf-posix.c: Likewise.
42570         * tests/test-vsprintf-posix.c: Likewise.
42571
42572 2009-01-03  Jim Meyering  <meyering@redhat.com>
42573
42574         gnulib-tool: fix sed-based filtering
42575         * gnulib-tool (func_filter_filelist): Remove extra backslash
42576         in sed_fff_filter definition.
42577
42578 2009-01-02  Jim Meyering  <meyering@redhat.com>
42579
42580         strftime: avoid compilation failure on Solaris 2.6
42581         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42582         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42583         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42584         be available.  Reported by Tom G. Christensen.  Details in
42585         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42586
42587 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42588             Bruno Haible  <bruno@clisp.org>
42589
42590         Speed up gnulib-tool by doing more string processing through shell
42591         built-ins.
42592         * gnulib-tool (fast_func_append): New variable.
42593         (func_remove_prefix, func_remove_suffix): New functions.
42594         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42595         (func_filter_filelist): New function.
42596         (func_get_dependencies): Use func_remove_suffix instead of sed.
42597         (func_get_automake_snippet): Use func_filter_filelist instead of a
42598         subshell and sed invocation.
42599
42600 2009-01-01  Bruno Haible  <bruno@clisp.org>
42601
42602         Fix a security bug.
42603         * gnulib-tool (func_import, import, update): Don't allow the characters
42604         '"', '$', '`', '\' in macro arguments that become part of commands that
42605         are evaluated.
42606
42607 2009-01-01  Bruno Haible  <bruno@clisp.org>
42608
42609         * gnulib-tool (func_reset_sigpipe): Add more comments.
42610
42611 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42612
42613         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42614         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42615         already know the answer.
42616
42617 2009-01-01  Jim Meyering  <meyering@redhat.com>
42618
42619         * lib/version-etc.c (version_etc_va): Update copyright year.
42620
42621 2008-12-30  Bruno Haible  <bruno@clisp.org>
42622
42623         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42624         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42625         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42626
42627 2008-12-29  Eric Blake  <ebb9@byu.net>
42628
42629         multiarch: avoid autoconf AC_REQUIRE bug
42630         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42631         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42632         2.63 and older.
42633         Reported by Bruno Haible, and analyzed in
42634         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42635
42636 2008-12-29  Bruno Haible  <bruno@clisp.org>
42637
42638         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42639         files in subdirectories correctly.
42640         Reported by Ralf Wildenhues.
42641
42642 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42643
42644         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42645         rather than 'join FILE -', for Solaris join.
42646
42647 2008-12-29  Bruno Haible  <bruno@clisp.org>
42648
42649         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42650         quoting.
42651         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42652         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42653         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42654         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42655         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42656         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42657         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42658         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42659         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42660         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42661         * m4/nls.m4 (AM_NLS): Likewise.
42662         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42663         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42664         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42665         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42666         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42668         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42669         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42670         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42672         * m4/xsize.m4 (gl_XSIZE): Likewise.
42673         Suggested by Jim Meyering.
42674
42675 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42676
42677         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42678         * lib/parse-duration.c: use a switch instead of cascading if's.
42679
42680 2008-12-29  Eric Blake  <ebb9@byu.net>
42681
42682         wchar.h: supply WEOF on Irix 5.3
42683         * lib/wchar.in.h (wint_t): Also supply WEOF.
42684         * lib/wctype.in.h (wint_t): Likewise.
42685         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42686         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42687         Reported by Tom G. Christensen.
42688
42689 2008-12-26  Bruno Haible  <bruno@clisp.org>
42690
42691         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42692         i486, i586, i686.
42693
42694 2008-12-26  Bruno Haible  <bruno@clisp.org>
42695
42696         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42697
42698 2008-12-26  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42701         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42702         not __STDC_CONSTANT_MACROS.
42703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42704
42705 2008-12-25  Bruno Haible  <bruno@clisp.org>
42706
42707         Add support for universal builds to vasnprintf.
42708         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42709         universal builds, guess no.
42710         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42711         * modules/vasprintf-posix (Depends-on): Likewise.
42712         * modules/fprintf-posix (Depends-on): Likewise.
42713         * modules/vfprintf-posix (Depends-on): Likewise.
42714         * modules/snprintf-posix (Depends-on): Likewise.
42715         * modules/vsnprintf-posix (Depends-on): Likewise.
42716         * modules/sprintf-posix (Depends-on): Likewise.
42717         * modules/vsprintf-posix (Depends-on): Likewise.
42718         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42719         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42721         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42722         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42723         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42724         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42725
42726         Add support for universal builds to <inttypes.h>.
42727         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42728         _SCNu64_PREFIX): In Apple
42729         universal builds, define directly, using _LP64.
42730         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42731         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42732         * modules/inttypes (Depends-on): Add multiarch.
42733         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42734
42735         Add support for universal builds to <stdint.h>.
42736         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42737         universal builds, define directly, using _LP64.
42738         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42739         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42740         and size_t.
42741         * modules/stdint (Depends-on): Add multiarch.
42742         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42743
42744         New module 'multiarch'.
42745         * modules/multiarch: New file.
42746         * m4/multiarch.m4: New file.
42747
42748 2008-12-25  Bruno Haible  <bruno@clisp.org>
42749
42750         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42751
42752 2008-12-25  Bruno Haible  <bruno@clisp.org>
42753
42754         * modules/btowc (License): Relicense under LGPLv2+.
42755         * modules/mbsinit (License): Likewise.
42756         * modules/mbrtowc (License): Likewise.
42757         * modules/wcrtomb (License): Likewise.
42758         * modules/streq (License): Likewise.
42759         Reported by David Lutterkort <lutter@redhat.com>.
42760
42761 2008-12-23  Bruno Haible  <bruno@clisp.org>
42762
42763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42764
42765 2008-12-23  Bruno Haible  <bruno@clisp.org>
42766
42767         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42769         GETADDRINFO_LIB, not in LIBS.
42770         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42771         * modules/canon-host (Link): Likewise.
42772         * NEWS: Mention the change.
42773         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42774         GETADDRINFO_LIB.
42775
42776 2008-12-22  Bruno Haible  <bruno@clisp.org>
42777
42778         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42779         * doc/posix-functions/iswalpha_l.texi: Likewise.
42780         * doc/posix-functions/iswblank_l.texi: Likewise.
42781         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42782         * doc/posix-functions/iswctype_l.texi: Likewise.
42783         * doc/posix-functions/iswdigit_l.texi: Likewise.
42784         * doc/posix-functions/iswgraph_l.texi: Likewise.
42785         * doc/posix-functions/iswlower_l.texi: Likewise.
42786         * doc/posix-functions/iswprint_l.texi: Likewise.
42787         * doc/posix-functions/iswpunct_l.texi: Likewise.
42788         * doc/posix-functions/iswspace_l.texi: Likewise.
42789         * doc/posix-functions/iswupper_l.texi: Likewise.
42790         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42791         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42792         * doc/posix-functions/open_wmemstream.texi: Likewise.
42793         * doc/posix-functions/swscanf.texi: Likewise.
42794         * doc/posix-functions/towctrans_l.texi: Likewise.
42795         * doc/posix-functions/towlower.texi: Likewise.
42796         * doc/posix-functions/towlower_l.texi: Likewise.
42797         * doc/posix-functions/towupper.texi: Likewise.
42798         * doc/posix-functions/towupper_l.texi: Likewise.
42799         * doc/posix-functions/vfwprintf.texi: Likewise.
42800         * doc/posix-functions/vfwscanf.texi: Likewise.
42801         * doc/posix-functions/vswscanf.texi: Likewise.
42802         * doc/posix-functions/vwprintf.texi: Likewise.
42803         * doc/posix-functions/vwscanf.texi: Likewise.
42804         * doc/posix-functions/wcpcpy.texi: Likewise.
42805         * doc/posix-functions/wcpncpy.texi: Likewise.
42806         * doc/posix-functions/wcscasecmp.texi: Likewise.
42807         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42808         * doc/posix-functions/wcscoll_l.texi: Likewise.
42809         * doc/posix-functions/wcsdup.texi: Likewise.
42810         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42811         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42812         * doc/posix-functions/wcsnlen.texi: Likewise.
42813         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42814         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42815         * doc/posix-functions/wctrans_l.texi: Likewise.
42816         * doc/posix-functions/wctype_l.texi: Likewise.
42817         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42818         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42819         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42820         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42821         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42822         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42823         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42824         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42825         * doc/glibc-functions/wcschrnul.texi: Likewise.
42826         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42827         * doc/glibc-functions/wcstod_l.texi: Likewise.
42828         * doc/glibc-functions/wcstof_l.texi: Likewise.
42829         * doc/glibc-functions/wcstol_l.texi: Likewise.
42830         * doc/glibc-functions/wcstold_l.texi: Likewise.
42831         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42832         * doc/glibc-functions/wcstoq.texi: Likewise.
42833         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42834         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42835         * doc/glibc-functions/wcstouq.texi: Likewise.
42836         * doc/glibc-functions/wmempcpy.texi: Likewise.
42837
42838 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42839             Eric Blake  <ebb9@byu.net>
42840             Paolo Bonzini  <bonzini@gnu.org>
42841             Bruno Haible  <bruno@clisp.org>
42842
42843         Make c-stack work on Haiku.
42844         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42845         (c_stack_action): Use SA_ONSTACK flag.
42846
42847 2008-12-22  Bruno Haible  <bruno@clisp.org>
42848
42849         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42850
42851 2008-12-22  Bruno Haible  <bruno@clisp.org>
42852
42853         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42854         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42855         being overridden.
42856         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42857         New macros.
42858         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42860         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42861         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42862
42863 2008-12-22  Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42866         from test code.
42867
42868 2008-12-22  Eric Blake  <ebb9@byu.net>
42869
42870         Avoid gcc warnings on cygwin.
42871         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42872         Avoid unused variable.
42873         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42874         Likewise.
42875
42876 2008-12-22  Bruno Haible  <bruno@clisp.org>
42877
42878         Remove HAVE_MBRTOWC conditionals.
42879         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42880         (mbscasecmp): Assume mbrtowc function.
42881         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42882         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42883         * lib/mbschr.c: Include mbuiter.h unconditionally.
42884         (mbschr): Assume mbrtowc function.
42885         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42886         (mbscspn): Assume mbrtowc function.
42887         * lib/mbslen.c: Include mbuiter.h unconditionally.
42888         (mbslen): Assume mbrtowc function.
42889         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42890         (mbsncasecmp): Assume mbrtowc function.
42891         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42892         (mbsnlen): Assume mbrtowc function.
42893         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42894         (mbspbrk): Assume mbrtowc function.
42895         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42896         (mbspcasecmp): Assume mbrtowc function.
42897         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42898         (mbsrchr): Assume mbrtowc function.
42899         * lib/mbssep.c: Include mbuiter.h unconditionally.
42900         (mbssep): Assume mbrtowc function.
42901         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42902         (mbsspn): Assume mbrtowc function.
42903         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42904         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42905         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42906         (mbstok_r): Assume mbrtowc function.
42907         * lib/propername.c: Include mbuiter.h unconditionally.
42908         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42909         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42910         (trim2): Assume mbrtowc function.
42911         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42912         (mbsnwidth): Assume mbrtowc function.
42913         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42914         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42915         fallback definitions.
42916         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42917
42918 2008-12-22  Bruno Haible  <bruno@clisp.org>
42919
42920         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42921
42922 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42923
42924         * modules/regex: Request emulations for the mb*/wc* functions we need.
42925         * m4/regex.m4: Don't look for those functions here.
42926         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42927
42928 2008-12-22  Bruno Haible  <bruno@clisp.org>
42929
42930         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42931
42932 2008-12-21  Bruno Haible  <bruno@clisp.org>
42933
42934         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42935         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42936         (Include): Remove conditionalization.
42937         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42938         (Include): Remove conditionalization.
42939         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42940         (Include): Remove conditionalization.
42941         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42942         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42943         * NEWS: Mention the change.
42944         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42945         via Sergey Poznyakoff <gray@gnu.org.ua>.
42946
42947 2008-12-21  Bruno Haible  <bruno@clisp.org>
42948
42949         * MODULES.html.sh (Extended multibyte and wide character utilities
42950         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42951         wcrtomb, wcsrtombs.
42952         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42953         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42954         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42955         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42956
42957 2008-12-21  Bruno Haible  <bruno@clisp.org>
42958
42959         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42960
42961 2008-12-21  Bruno Haible  <bruno@clisp.org>
42962
42963         * modules/wcsnrtombs-tests: New file.
42964         * tests/test-wcsnrtombs1.sh: New file.
42965         * tests/test-wcsnrtombs2.sh: New file.
42966         * tests/test-wcsnrtombs3.sh: New file.
42967         * tests/test-wcsnrtombs4.sh: New file.
42968         * tests/test-wcsnrtombs.c: New file.
42969
42970         New module 'wcsnrtombs'.
42971         * lib/wchar.in.h (wcsnrtombs): New declaration.
42972         * lib/wcsnrtombs.c: New file.
42973         * lib/wcsrtombs-state.c: New file.
42974         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42975         (internal_state): Remove variable.
42976         * m4/wcsnrtombs.m4: New file.
42977         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42978         compilation units.
42979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42980         HAVE_WCSNRTOMBS.
42981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42982         HAVE_WCSNRTOMBS.
42983         * modules/wcsnrtombs: New file.
42984         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42985         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42986
42987 2008-12-21  Bruno Haible  <bruno@clisp.org>
42988
42989         * modules/wcsrtombs-tests: New file.
42990         * tests/test-wcsrtombs1.sh: New file.
42991         * tests/test-wcsrtombs2.sh: New file.
42992         * tests/test-wcsrtombs3.sh: New file.
42993         * tests/test-wcsrtombs4.sh: New file.
42994         * tests/test-wcsrtombs.c: New file.
42995
42996         New module 'wcsrtombs'.
42997         * lib/wchar.in.h (wcsrtombs): New declaration.
42998         * lib/wcsrtombs.c: New file.
42999         * m4/wcsrtombs.m4: New file.
43000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43001         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43003         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43004         * modules/wcsrtombs: New file.
43005         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43006         bugs.
43007
43008 2008-12-21  Bruno Haible  <bruno@clisp.org>
43009
43010         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43011         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43013         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43014         if not correct.
43015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43016         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43017         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43018         m4/locale-zh.m4, m4/codeset.m4.
43019         * doc/posix-functions/wcrtomb.texi: Document the bug.
43020
43021 2008-12-21  Bruno Haible  <bruno@clisp.org>
43022
43023         Work around a btowc() bug on IRIX 6.5.
43024         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43025         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43026         REPLACE_WTOBC if not.
43027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43028         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43029         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43030
43031 2008-12-21  Bruno Haible  <bruno@clisp.org>
43032
43033         * modules/wcrtomb-tests: New file.
43034         * tests/test-wcrtomb.sh: New file.
43035         * tests/test-wcrtomb.c: New file.
43036
43037         New module 'wcrtomb'.
43038         * lib/wchar.in.h (wcrtomb): New declaration.
43039         * lib/wcrtomb.c: New file.
43040         * m4/wcrtomb.m4: New file.
43041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43042         HAVE_WCRTOMB.
43043         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43044         HAVE_WCRTOMB.
43045         * modules/wcrtomb: New file.
43046         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43047
43048 2008-12-21  Bruno Haible  <bruno@clisp.org>
43049
43050         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43051         * modules/mbsrtowcs (Files): Likewise.
43052         * modules/wctob (Files): Likewise.
43053         * modules/c-strcase-tests (Files): Likewise.
43054         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43055         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43056         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43057         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43058         * modules/vasnprintf-posix-tests (Files): Likewise.
43059
43060 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43061
43062         gitlog-to-changelog: pass all command-line arguments to git-log
43063         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43064         it is sometimes convenient to filter the commits in various ways.
43065         gitlog-to-changelog only allows --since to specify a start date,
43066         but git-log itself supports many other filtering mechanisms.
43067         At the moment, I want to filter by branch name.  Rather than
43068         adding a --branch option to gitlog-to-changelog, it seems more
43069         flexible to simply pass all options directly to git-log and let
43070         git do the work.  Notice that this effectively makes --since a
43071         redundant option for gitlog-to-changelog, but removing it would
43072         require current usage to change since calls would then require
43073         an additional '--'.
43074
43075 2008-12-21  Bruno Haible  <bruno@clisp.org>
43076
43077         * modules/mbsnrtowcs-tests: New file.
43078         * tests/test-mbsnrtowcs1.sh: New file.
43079         * tests/test-mbsnrtowcs2.sh: New file.
43080         * tests/test-mbsnrtowcs3.sh: New file.
43081         * tests/test-mbsnrtowcs4.sh: New file.
43082         * tests/test-mbsnrtowcs.c: New file.
43083
43084         New module 'mbsnrtowcs'.
43085         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43086         * lib/mbsnrtowcs.c: New file.
43087         * lib/mbsrtowcs-state.c: New file.
43088         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43089         (internal_state): Remove variable.
43090         * m4/mbsnrtowcs.m4: New file.
43091         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43092         compilation units.
43093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43094         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43095         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43096         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43097         * modules/mbsnrtowcs: New file.
43098         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43099         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43100         portability problem.
43101
43102 2008-12-21  Bruno Haible  <bruno@clisp.org>
43103
43104         Work around mbsrtowcs bug.
43105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43106         (gl_FUNC_MBSRTOWCS): Invoke it.
43107         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43108         m4/locale-zh.m4.
43109         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43110
43111 2008-12-21  Bruno Haible  <bruno@clisp.org>
43112
43113         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43114
43115 2008-12-21  Bruno Haible  <bruno@clisp.org>
43116
43117         Update doc for AIX.
43118         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43119         16-bit wchar_t type.
43120         * doc/posix-functions/btowc.texi: Likewise.
43121         * doc/posix-functions/fgetwc.texi: Likewise.
43122         * doc/posix-functions/fgetws.texi: Likewise.
43123         * doc/posix-functions/fputwc.texi: Likewise.
43124         * doc/posix-functions/fputws.texi: Likewise.
43125         * doc/posix-functions/fwide.texi: Likewise.
43126         * doc/posix-functions/fwprintf.texi: Likewise.
43127         * doc/posix-functions/fwscanf.texi: Likewise.
43128         * doc/posix-functions/getwchar.texi: Likewise.
43129         * doc/posix-functions/getwc.texi: Likewise.
43130         * doc/posix-functions/iswalnum.texi: Likewise.
43131         * doc/posix-functions/iswalpha.texi: Likewise.
43132         * doc/posix-functions/iswblank.texi: Likewise.
43133         * doc/posix-functions/iswcntrl.texi: Likewise.
43134         * doc/posix-functions/iswctype.texi: Likewise.
43135         * doc/posix-functions/iswdigit.texi: Likewise.
43136         * doc/posix-functions/iswgraph.texi: Likewise.
43137         * doc/posix-functions/iswlower.texi: Likewise.
43138         * doc/posix-functions/iswprint.texi: Likewise.
43139         * doc/posix-functions/iswpunct.texi: Likewise.
43140         * doc/posix-functions/iswspace.texi: Likewise.
43141         * doc/posix-functions/iswupper.texi: Likewise.
43142         * doc/posix-functions/iswxdigit.texi: Likewise.
43143         * doc/posix-functions/mbrtowc.texi: Likewise.
43144         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43145         * doc/posix-functions/mbstowcs.texi: Likewise.
43146         * doc/posix-functions/mbtowc.texi: Likewise.
43147         * doc/posix-functions/putwchar.texi: Likewise.
43148         * doc/posix-functions/putwc.texi: Likewise.
43149         * doc/posix-functions/swprintf.texi: Likewise.
43150         * doc/posix-functions/tolower.texi: Likewise.
43151         * doc/posix-functions/toupper.texi: Likewise.
43152         * doc/posix-functions/towctrans.texi: Likewise.
43153         * doc/posix-functions/ungetwc.texi: Likewise.
43154         * doc/posix-functions/vswprintf.texi: Likewise.
43155         * doc/posix-functions/wcrtomb.texi: Likewise.
43156         * doc/posix-functions/wcscat.texi: Likewise.
43157         * doc/posix-functions/wcschr.texi: Likewise.
43158         * doc/posix-functions/wcscmp.texi: Likewise.
43159         * doc/posix-functions/wcscoll.texi: Likewise.
43160         * doc/posix-functions/wcscpy.texi: Likewise.
43161         * doc/posix-functions/wcscspn.texi: Likewise.
43162         * doc/posix-functions/wcsftime.texi: Likewise.
43163         * doc/posix-functions/wcslen.texi: Likewise.
43164         * doc/posix-functions/wcsncat.texi: Likewise.
43165         * doc/posix-functions/wcsncmp.texi: Likewise.
43166         * doc/posix-functions/wcsncpy.texi: Likewise.
43167         * doc/posix-functions/wcspbrk.texi: Likewise.
43168         * doc/posix-functions/wcsrchr.texi: Likewise.
43169         * doc/posix-functions/wcsrtombs.texi: Likewise.
43170         * doc/posix-functions/wcsspn.texi: Likewise.
43171         * doc/posix-functions/wcsstr.texi: Likewise.
43172         * doc/posix-functions/wcstod.texi: Likewise.
43173         * doc/posix-functions/wcstof.texi: Likewise.
43174         * doc/posix-functions/wcstoimax.texi: Likewise.
43175         * doc/posix-functions/wcstok.texi: Likewise.
43176         * doc/posix-functions/wcstold.texi: Likewise.
43177         * doc/posix-functions/wcstoll.texi: Likewise.
43178         * doc/posix-functions/wcstol.texi: Likewise.
43179         * doc/posix-functions/wcstombs.texi: Likewise.
43180         * doc/posix-functions/wcstoull.texi: Likewise.
43181         * doc/posix-functions/wcstoul.texi: Likewise.
43182         * doc/posix-functions/wcstoumax.texi: Likewise.
43183         * doc/posix-functions/wcswidth.texi: Likewise.
43184         * doc/posix-functions/wcsxfrm.texi: Likewise.
43185         * doc/posix-functions/wctob.texi: Likewise.
43186         * doc/posix-functions/wctomb.texi: Likewise.
43187         * doc/posix-functions/wctrans.texi: Likewise.
43188         * doc/posix-functions/wctype.texi: Likewise.
43189         * doc/posix-functions/wcwidth.texi: Likewise.
43190         * doc/posix-functions/wmemchr.texi: Likewise.
43191         * doc/posix-functions/wmemcmp.texi: Likewise.
43192         * doc/posix-functions/wmemcpy.texi: Likewise.
43193         * doc/posix-functions/wmemmove.texi: Likewise.
43194         * doc/posix-functions/wmemset.texi: Likewise.
43195         * doc/posix-functions/wprintf.texi: Likewise.
43196         * doc/posix-functions/wscanf.texi: Likewise.
43197
43198 2008-12-21  Bruno Haible  <bruno@clisp.org>
43199
43200         Update doc for HP-UX 11.11.
43201         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43202         in HP-UX version 11.00, not in all versions of HP-UX 11.
43203         * doc/posix-functions/fwide.texi: Likewise.
43204         * doc/posix-functions/fwprintf.texi: Likewise.
43205         * doc/posix-functions/fwscanf.texi: Likewise.
43206         * doc/posix-functions/inet_ntop.texi: Likewise.
43207         * doc/posix-functions/inet_pton.texi: Likewise.
43208         * doc/posix-functions/mbrlen.texi: Likewise.
43209         * doc/posix-functions/mbrtowc.texi: Likewise.
43210         * doc/posix-functions/mbsinit.texi: Likewise.
43211         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43212         * doc/posix-functions/swprintf.texi: Likewise.
43213         * doc/posix-functions/swscanf.texi: Likewise.
43214         * doc/posix-functions/towctrans.texi: Likewise.
43215         * doc/posix-functions/vfwprintf.texi: Likewise.
43216         * doc/posix-functions/vswprintf.texi: Likewise.
43217         * doc/posix-functions/vwprintf.texi: Likewise.
43218         * doc/posix-functions/wcrtomb.texi: Likewise.
43219         * doc/posix-functions/wcsrtombs.texi: Likewise.
43220         * doc/posix-functions/wcsstr.texi: Likewise.
43221         * doc/posix-functions/wctob.texi: Likewise.
43222         * doc/posix-functions/wctrans.texi: Likewise.
43223         * doc/posix-functions/wmemchr.texi: Likewise.
43224         * doc/posix-functions/wmemcmp.texi: Likewise.
43225         * doc/posix-functions/wmemcpy.texi: Likewise.
43226         * doc/posix-functions/wmemmove.texi: Likewise.
43227         * doc/posix-functions/wmemset.texi: Likewise.
43228         * doc/posix-functions/wprintf.texi: Likewise.
43229         * doc/posix-functions/wscanf.texi: Likewise.
43230
43231 2008-12-21  Bruno Haible  <bruno@clisp.org>
43232
43233         Work around a portability problem.
43234         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43235         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43236
43237 2008-12-20  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43241         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43243         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43244
43245         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43246         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43247         set.
43248         (GNULIB_defined_mbstate_t): New macro.
43249         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43250         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43251         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43252         reuses the system's mbrtowc function but works around the bugs.
43253         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43254         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43255         macros.
43256         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43257         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43258         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43260         REPLACE_MBSINIT if mbsinit needs to be overridden.
43261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43262         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43263         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43264         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43265         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43266         m4/locale-zh.m4.
43267         (Depends): Add mbsinit.
43268         * modules/mbsinit (Depends): Add mbrtowc.
43269         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43270
43271 2008-12-20  Bruno Haible  <bruno@clisp.org>
43272
43273         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43274         so that there are no conversion errors on AIX.
43275         * tests/test-mbsrtowcs.c (main): LIkewise.
43276
43277 2008-12-20  Bruno Haible  <bruno@clisp.org>
43278
43279         Work around wctob bug on Solaris <= 9.
43280         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43281         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43283         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43284         * modules/wctob (Files): Add m4/locale-fr.m4.
43285         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43286
43287 2008-12-20  Bruno Haible  <bruno@clisp.org>
43288
43289         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43290         /dev/null.
43291         * tests/test-select-in.sh: Likewise.
43292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43293
43294 2008-12-20  Bruno Haible  <bruno@clisp.org>
43295
43296         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43297         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43298         Cygwin 1.5.x.
43299
43300 2008-12-20  Bruno Haible  <bruno@clisp.org>
43301
43302         Ensure mbstate_t is defined on HP-UX 11.11.
43303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43304         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43305         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43306         AC_USE_SYSTEM_EXTENSIONS.
43307         * modules/fnmatch (Depends-on): Add extensions.
43308         * modules/mbrlen (Depends-on): Likewise.
43309         * modules/mbrtowc (Depends-on): Likewise.
43310         * modules/mbsinit (Depends-on): Likewise.
43311         * modules/mbsrtowcs (Depends-on): Likewise.
43312         * modules/mbswidth (Depends-on): Likewise.
43313         * modules/quotearg (Depends-on): Likewise.
43314         * modules/strftime (Depends-on): Likewise.
43315
43316 2008-12-20  Bruno Haible  <bruno@clisp.org>
43317
43318         Ensure wctob is declared on IRIX 6.5.
43319         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43320         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43321         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43323         of HAVE_WCTOB.
43324         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43325         HAVE_WCTOB.
43326         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43327
43328 2008-12-19  Bruno Haible  <bruno@clisp.org>
43329
43330         * modules/mbsrtowcs-tests: New file.
43331         * tests/test-mbsrtowcs1.sh: New file.
43332         * tests/test-mbsrtowcs2.sh: New file.
43333         * tests/test-mbsrtowcs3.sh: New file.
43334         * tests/test-mbsrtowcs4.sh: New file.
43335         * tests/test-mbsrtowcs.c: New file.
43336
43337         New module 'mbsrtowcs'.
43338         * lib/wchar.in.h (mbsrtowcs): New declaration.
43339         * lib/mbsrtowcs.c: New file.
43340         * m4/mbsrtowcs.m4: New file.
43341         * modules/mbsrtowcs: New file.
43342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43343         HAVE_MBSRTOWCS.
43344         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43345         HAVE_MBSRTOWCS.
43346         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43347
43348 2008-12-19  Bruno Haible  <bruno@clisp.org>
43349
43350         New module 'mbrlen'.
43351         * lib/wchar.in.h (mbrlen): New declaration.
43352         * lib/mbrlen.c: New file.
43353         * m4/mbrlen.m4: New file.
43354         * modules/mbrlen: New file.
43355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43356         HAVE_MBRLEN.
43357         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43358         HAVE_MBRLEN.
43359         * doc/posix-functions/mbrlen.texi: Document the new module.
43360
43361 2008-12-19  Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43364         * modules/mbrtowc (Depends-on): Add verify.
43365         Suggested by Paul Eggert.
43366
43367 2008-12-18  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/mbsinit-tests: New file.
43370         * tests/test-mbsinit.sh: New file.
43371         * tests/test-mbsinit.c: New file.
43372
43373 2008-12-18  Bruno Haible  <bruno@clisp.org>
43374
43375         * modules/mbrtowc-tests: New file.
43376         * tests/test-mbrtowc1.sh: New file.
43377         * tests/test-mbrtowc2.sh: New file.
43378         * tests/test-mbrtowc3.sh: New file.
43379         * tests/test-mbrtowc4.sh: New file.
43380         * tests/test-mbrtowc.c: New file.
43381
43382         New module 'mbrtowc'.
43383         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43384         mbsinit and mbrtowc.
43385         (mbrtowc): New declaration.
43386         * lib/mbrtowc.c: New file.
43387         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43388         * modules/mbrtowc: New file.
43389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43390         HAVE_MBRTOWC.
43391         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43392         HAVE_MBRTOWC.
43393         * doc/posix-functions/mbrtowc.texi: Document the new module.
43394
43395 2008-12-18  Bruno Haible  <bruno@clisp.org>
43396
43397         New module 'wctob'.
43398         * lib/wchar.in.h (wctob): New declaration.
43399         * lib/wctob.c: New file.
43400         * m4/wctob.m4: New file.
43401         * modules/wctob: New file.
43402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43403         HAVE_WCTOB.
43404         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43405         * doc/posix-functions/wctob.texi: Document the new module.
43406
43407 2008-12-18  Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43410         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43411
43412 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43413
43414         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43415         G. Christensen" <tgc@jupiterrise.com>.
43416
43417         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43418         G. Christensen" <tgc@jupiterrise.com>.
43419
43420         * lib/flock.c: Need to include string.h.  Reported by "Tom
43421         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43422         <ebb9@byu.net>.
43423
43424 2008-12-18  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/locale-ja.m4: New file, from GNU gettext.
43427
43428 2008-12-17  Bruno Haible  <bruno@clisp.org>
43429
43430         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43431         Suggested by Eric Blake.
43432
43433 2008-12-17  Bruno Haible  <bruno@clisp.org>
43434
43435         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43436
43437 2008-12-17  Bruno Haible  <bruno@clisp.org>
43438
43439         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43440         * modules/mbsinit (Depends-on): Add verify.
43441         Suggested by Paul Eggert.
43442
43443 2008-12-17  Bruno Haible  <bruno@clisp.org>
43444
43445         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43446         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43447         gl_FUNC_MBRTOWC.
43448         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43449         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43450         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43451         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43452         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43453         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43454         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43455         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43456         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43457         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43458         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43459         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43460         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43461         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43462         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43463         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43464         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43465         * modules/trim (configure.ac): Likewise.
43466
43467 2008-12-17  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/btowc-tests: New file.
43470         * tests/test-btowc1.sh: New file.
43471         * tests/test-btowc2.sh: New file.
43472         * tests/test-btowc.c: New file.
43473
43474         New module 'btowc'.
43475         * lib/wchar.in.h (btowc): New declaration.
43476         * lib/btowc.c: New file.
43477         * m4/btowc.m4: New file.
43478         * modules/btowc: New file.
43479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43480         HAVE_BTOWC.
43481         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43482         * doc/posix-functions/btowc.texi: Document the new module.
43483
43484 2008-12-17  Bruno Haible  <bruno@clisp.org>
43485
43486         New module 'mbsinit'.
43487         * lib/wchar.in.h (mbsinit): New declaration.
43488         * lib/mbsinit.c: New file.
43489         * m4/mbsinit.m4: New file.
43490         * modules/mbsinit: New file.
43491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43492         HAVE_MBSINIT.
43493         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43494         HAVE_MBSINIT.
43495         * doc/posix-functions/mbsinit.texi: Document the new module.
43496
43497 2008-12-16  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/unistd.in.h: Add comment.
43500         * tests/test-environ.c: Don't include <stdlib.h>.
43501
43502 2008-12-16  Bruno Haible  <bruno@clisp.org>
43503
43504         * lib/parse-duration.h (parse_duration): Document return value
43505         convention.
43506         * lib/parse-duration.c: Include specification header first. Add
43507         comments.
43508         (_): Remove macro.
43509         (parse_year_month_day, parse_hour_minute_second): Move side effects
43510         outside of strchr call.
43511         (parse_non_iso8601): Move side effects outside of isspace call.
43512         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43513         call.
43514
43515 2008-12-16  Bruno Haible  <bruno@clisp.org>
43516
43517         * tests/test-parse-duration.sh: Produce no output when the test
43518         succeeds.
43519
43520 2008-12-16  Bruno Haible  <bruno@clisp.org>
43521
43522         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43523         expressions.
43524
43525 2008-12-15  Bruno Haible  <bruno@clisp.org>
43526
43527         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43528         * doc/glibc-functions/flistxattr.texi: Likewise.
43529         * doc/glibc-functions/fopencookie.texi: Likewise.
43530         * doc/glibc-functions/fremovexattr.texi: Likewise.
43531         * doc/glibc-functions/fsetxattr.texi: Likewise.
43532         * doc/glibc-functions/getxattr.texi: Likewise.
43533         * doc/glibc-functions/lgetxattr.texi: Likewise.
43534         * doc/glibc-functions/listxattr.texi: Likewise.
43535         * doc/glibc-functions/llistxattr.texi: Likewise.
43536         * doc/glibc-functions/lremovexattr.texi: Likewise.
43537         * doc/glibc-functions/lsetxattr.texi: Likewise.
43538         * doc/glibc-functions/removexattr.texi: Likewise.
43539         * doc/glibc-functions/setxattr.texi: Likewise.
43540         * doc/posix-functions/open_memstream.texi: Likewise.
43541
43542 2008-12-15  Eric Blake  <ebb9@byu.net>
43543
43544         Update doc for cygwin 1.7.
43545         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43546         functions.
43547         * doc/posix-functions/fchmodat.texi: Likewise.
43548         * doc/posix-functions/fchownat.texi: Likewise.
43549         * doc/posix-functions/fdopendir.texi: Likewise.
43550         * doc/posix-functions/fmemopen.texi: Likewise.
43551         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43552         * doc/posix-functions/fstatat.texi: Likewise.
43553         * doc/posix-functions/futimens.texi: Likewise.
43554         * doc/posix-functions/gai_strerror.texi: Likewise.
43555         * doc/posix-functions/getaddrinfo.texi: Likewise.
43556         * doc/posix-functions/getnameinfo.texi: Likewise.
43557         * doc/posix-functions/if_freenameindex.texi: Likewise.
43558         * doc/posix-functions/if_indextoname.texi: Likewise.
43559         * doc/posix-functions/if_nameindex.texi: Likewise.
43560         * doc/posix-functions/if_nametoindex.texi: Likewise.
43561         * doc/posix-functions/insque.texi: Likewise.
43562         * doc/posix-functions/linkat.texi: Likewise.
43563         * doc/posix-functions/llrint.texi: Likewise.
43564         * doc/posix-functions/llrintf.texi: Likewise.
43565         * doc/posix-functions/llrintl.texi: Likewise.
43566         * doc/posix-functions/lockf.texi: Likewise.
43567         * doc/posix-functions/lrintl.texi: Likewise.
43568         * doc/posix-functions/mkdirat.texi: Likewise.
43569         * doc/posix-functions/mkfifoat.texi: Likewise.
43570         * doc/posix-functions/mknodat.texi: Likewise.
43571         * doc/posix-functions/mq_close.texi: Likewise.
43572         * doc/posix-functions/mq_getattr.texi: Likewise.
43573         * doc/posix-functions/mq_notify.texi: Likewise.
43574         * doc/posix-functions/mq_open.texi: Likewise.
43575         * doc/posix-functions/mq_receive.texi: Likewise.
43576         * doc/posix-functions/mq_send.texi: Likewise.
43577         * doc/posix-functions/mq_setattr.texi: Likewise.
43578         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43579         * doc/posix-functions/mq_timedsend.texi: Likewise.
43580         * doc/posix-functions/mq_unlink.texi: Likewise.
43581         * doc/posix-functions/open_memstream.texi: Likewise.
43582         * doc/posix-functions/openat.texi: Likewise.
43583         * doc/posix-functions/posix_fadvise.texi: Likewise.
43584         * doc/posix-functions/posix_fallocate.texi: Likewise.
43585         * doc/posix-functions/posix_madvise.texi: Likewise.
43586         * doc/posix-functions/posix_memalign.texi: Likewise.
43587         * doc/posix-functions/posix_openpt.texi: Likewise.
43588         * doc/posix-functions/readlinkat.texi: Likewise.
43589         * doc/posix-functions/remque.texi: Likewise.
43590         * doc/posix-functions/renameat.texi: Likewise.
43591         * doc/posix-functions/rintl.texi: Likewise.
43592         * doc/posix-functions/sem_unlink.texi: Likewise.
43593         * doc/posix-functions/shm_open.texi: Likewise.
43594         * doc/posix-functions/shm_unlink.texi: Likewise.
43595         * doc/posix-functions/signgam.texi: Likewise.
43596         * doc/posix-functions/sigset.texi: Likewise.
43597         * doc/posix-functions/stpcpy.texi: Likewise.
43598         * doc/posix-functions/stpncpy.texi: Likewise.
43599         * doc/posix-functions/strerror.texi: Likewise.
43600         * doc/posix-functions/strtod.texi: Likewise.
43601         * doc/posix-functions/symlinkat.texi: Likewise.
43602         * doc/posix-functions/unlinkat.texi: Likewise.
43603         * doc/posix-functions/utimensat.texi: Likewise.
43604         * doc/glibc-functions/bindresvport.texi: Likewise.
43605         * doc/glibc-functions/dn_expand.texi: Likewise.
43606         * doc/glibc-functions/exp10.texi: Likewise.
43607         * doc/glibc-functions/exp10f.texi: Likewise.
43608         * doc/glibc-functions/fgetxattr.texi: Likewise.
43609         * doc/glibc-functions/flistxattr.texi: Likewise.
43610         * doc/glibc-functions/fopencookie.texi: Likewise.
43611         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43612         * doc/glibc-functions/fremovexattr.texi: Likewise.
43613         * doc/glibc-functions/fsetxattr.texi: Likewise.
43614         * doc/glibc-functions/getifaddrs.texi: Likewise.
43615         * doc/glibc-functions/getxattr.texi: Likewise.
43616         * doc/glibc-functions/lgetxattr.texi: Likewise.
43617         * doc/glibc-functions/listxattr.texi: Likewise.
43618         * doc/glibc-functions/llistxattr.texi: Likewise.
43619         * doc/glibc-functions/lremovexattr.texi: Likewise.
43620         * doc/glibc-functions/lsetxattr.texi: Likewise.
43621         * doc/glibc-functions/pow10.texi: Likewise.
43622         * doc/glibc-functions/pow10f.texi: Likewise.
43623         * doc/glibc-functions/rcmd_af.texi: Likewise.
43624         * doc/glibc-functions/removexattr.texi: Likewise.
43625         * doc/glibc-functions/res_init.texi: Likewise.
43626         * doc/glibc-functions/res_mkquery.texi: Likewise.
43627         * doc/glibc-functions/res_query.texi: Likewise.
43628         * doc/glibc-functions/res_querydomain.texi: Likewise.
43629         * doc/glibc-functions/res_send.texi: Likewise.
43630         * doc/glibc-functions/rresvport_af.texi: Likewise.
43631         * doc/glibc-functions/setxattr.texi: Likewise.
43632         * doc/glibc-functions/strcasestr.texi: Likewise.
43633
43634 2008-12-15  Bruno Haible  <bruno@clisp.org>
43635
43636         Fix compilation error on OSF/1 4.0.
43637         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43638         <sys/time.h>, simply delegate to the system header.
43639         Reported by Daniel Richard G. <oss@teragram.com>.
43640
43641 2008-12-15  Bruno Haible  <bruno@clisp.org>
43642
43643         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43644         * doc/posix-functions/fchmodat.texi: Likewise.
43645         * doc/posix-functions/fchownat.texi: Likewise.
43646         * doc/posix-functions/fdopendir.texi: Likewise.
43647         * doc/posix-functions/fstatat.texi: Likewise.
43648         * doc/posix-functions/mkdirat.texi: Likewise.
43649         * doc/posix-functions/unlinkat.texi: Likewise.
43650
43651 2008-12-14  Bruno Haible  <bruno@clisp.org>
43652
43653         Update doc for POSIX:2008.
43654         * doc/posix-functions/faccessat.texi: New file.
43655         * doc/posix-functions/fchmodat.texi: New file.
43656         * doc/posix-functions/fchownat.texi: New file.
43657         * doc/posix-functions/fdopendir.texi: New file.
43658         * doc/posix-functions/fstatat.texi: New file.
43659         * doc/posix-functions/futimens.texi: New file.
43660         * doc/posix-functions/linkat.texi: New file.
43661         * doc/posix-functions/mkdirat.texi: New file.
43662         * doc/posix-functions/mkfifoat.texi: New file.
43663         * doc/posix-functions/mknodat.texi: New file.
43664         * doc/posix-functions/open_wmemstream.texi: New file.
43665         * doc/posix-functions/openat.texi: New file.
43666         * doc/posix-functions/psiginfo.texi: New file.
43667         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43668         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43669         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43670         * doc/posix-functions/readlinkat.texi: New file.
43671         * doc/posix-functions/renameat.texi: New file.
43672         * doc/posix-functions/strerror_l.texi: New file.
43673         * doc/posix-functions/symlinkat.texi: New file.
43674         * doc/posix-functions/unlinkat.texi: New file.
43675         * doc/posix-functions/utimensat.texi: New file.
43676         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43677
43678 2008-12-14  Bruno Haible  <bruno@clisp.org>
43679
43680         Update doc for POSIX:2008.
43681         * doc/posix-functions/alphasort.texi: Renamed from
43682         doc/glibc-functions/alphasort.texi.
43683         * doc/posix-functions/dirfd.texi: Renamed from
43684         doc/glibc-functions/dirfd.texi.
43685         * doc/posix-functions/dprintf.texi: Renamed from
43686         doc/glibc-functions/dprintf.texi.
43687         * doc/posix-functions/duplocale.texi: Renamed from
43688         doc/glibc-functions/duplocale.texi.
43689         * doc/posix-functions/fexecve.texi: Renamed from
43690         doc/glibc-functions/fexecve.texi.
43691         * doc/posix-functions/fmemopen.texi: Renamed from
43692         doc/glibc-functions/fmemopen.texi.
43693         * doc/posix-functions/freelocale.texi: Renamed from
43694         doc/glibc-functions/freelocale.texi.
43695         * doc/posix-functions/getdate_err.texi: Renamed from
43696         doc/glibc-functions/getdate_err.texi.
43697         * doc/posix-functions/isalnum_l.texi: Renamed from
43698         doc/glibc-functions/isalnum_l.texi.
43699         * doc/posix-functions/isalpha_l.texi: Renamed from
43700         doc/glibc-functions/isalpha_l.texi.
43701         * doc/posix-functions/isblank_l.texi: Renamed from
43702         doc/glibc-functions/isblank_l.texi.
43703         * doc/posix-functions/iscntrl_l.texi: Renamed from
43704         doc/glibc-functions/iscntrl_l.texi.
43705         * doc/posix-functions/isdigit_l.texi: Renamed from
43706         doc/glibc-functions/isdigit_l.texi.
43707         * doc/posix-functions/isgraph_l.texi: Renamed from
43708         doc/glibc-functions/isgraph_l.texi.
43709         * doc/posix-functions/islower_l.texi: Renamed from
43710         doc/glibc-functions/islower_l.texi.
43711         * doc/posix-functions/isprint_l.texi: Renamed from
43712         doc/glibc-functions/isprint_l.texi.
43713         * doc/posix-functions/ispunct_l.texi: Renamed from
43714         doc/glibc-functions/ispunct_l.texi.
43715         * doc/posix-functions/isspace_l.texi: Renamed from
43716         doc/glibc-functions/isspace_l.texi.
43717         * doc/posix-functions/isupper_l.texi: Renamed from
43718         doc/glibc-functions/isupper_l.texi.
43719         * doc/posix-functions/iswalnum_l.texi: Renamed from
43720         doc/glibc-functions/iswalnum_l.texi.
43721         * doc/posix-functions/iswalpha_l.texi: Renamed from
43722         doc/glibc-functions/iswalpha_l.texi.
43723         * doc/posix-functions/iswblank_l.texi: Renamed from
43724         doc/glibc-functions/iswblank_l.texi.
43725         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43726         doc/glibc-functions/iswcntrl_l.texi.
43727         * doc/posix-functions/iswctype_l.texi: Renamed from
43728         doc/glibc-functions/iswctype_l.texi.
43729         * doc/posix-functions/iswdigit_l.texi: Renamed from
43730         doc/glibc-functions/iswdigit_l.texi.
43731         * doc/posix-functions/iswgraph_l.texi: Renamed from
43732         doc/glibc-functions/iswgraph_l.texi.
43733         * doc/posix-functions/iswlower_l.texi: Renamed from
43734         doc/glibc-functions/iswlower_l.texi.
43735         * doc/posix-functions/iswprint_l.texi: Renamed from
43736         doc/glibc-functions/iswprint_l.texi.
43737         * doc/posix-functions/iswpunct_l.texi: Renamed from
43738         doc/glibc-functions/iswpunct_l.texi.
43739         * doc/posix-functions/iswspace_l.texi: Renamed from
43740         doc/glibc-functions/iswspace_l.texi.
43741         * doc/posix-functions/iswupper_l.texi: Renamed from
43742         doc/glibc-functions/iswupper_l.texi.
43743         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43744         doc/glibc-functions/iswxdigit_l.texi.
43745         * doc/posix-functions/isxdigit_l.texi: Renamed from
43746         doc/glibc-functions/isxdigit_l.texi.
43747         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43748         doc/glibc-functions/mbsnrtowcs.texi.
43749         * doc/posix-functions/mkdtemp.texi: Renamed from
43750         doc/glibc-functions/mkdtemp.texi.
43751         * doc/posix-functions/newlocale.texi: Renamed from
43752         doc/glibc-functions/newlocale.texi.
43753         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43754         doc/glibc-functions/nl_langinfo_l.texi.
43755         * doc/posix-functions/open_memstream.texi: Renamed from
43756         doc/glibc-functions/open_memstream.texi.
43757         * doc/posix-functions/opterr.texi: Renamed from
43758         doc/glibc-functions/opterr.texi.
43759         * doc/posix-functions/optind.texi: Renamed from
43760         doc/glibc-functions/optind.texi.
43761         * doc/posix-functions/optopt.texi: Renamed from
43762         doc/glibc-functions/optopt.texi.
43763         * doc/posix-functions/psignal.texi: Renamed from
43764         doc/glibc-functions/psignal.texi.
43765         * doc/posix-functions/scandir.texi: Renamed from
43766         doc/glibc-functions/scandir.texi.
43767         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43768         doc/glibc-functions/sched_get_priority_min.texi.
43769         * doc/posix-functions/signgam.texi: Renamed from
43770         doc/glibc-functions/signgam.texi.
43771         * doc/posix-functions/stpcpy.texi: Renamed from
43772         doc/glibc-functions/stpcpy.texi.
43773         * doc/posix-functions/stpncpy.texi: Renamed from
43774         doc/glibc-functions/stpncpy.texi.
43775         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43776         doc/glibc-functions/strcasecmp_l.texi.
43777         * doc/posix-functions/strcoll_l.texi: Renamed from
43778         doc/glibc-functions/strcoll_l.texi.
43779         * doc/posix-functions/strfmon_l.texi: Renamed from
43780         doc/glibc-functions/strfmon_l.texi.
43781         * doc/posix-functions/strftime_l.texi: Renamed from
43782         doc/glibc-functions/strftime_l.texi.
43783         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43784         doc/glibc-functions/strncasecmp_l.texi.
43785         * doc/posix-functions/strndup.texi: Renamed from
43786         doc/glibc-functions/strndup.texi.
43787         * doc/posix-functions/strnlen.texi: Renamed from
43788         doc/glibc-functions/strnlen.texi.
43789         * doc/posix-functions/strsignal.texi: Renamed from
43790         doc/glibc-functions/strsignal.texi.
43791         * doc/posix-functions/strxfrm_l.texi: Renamed from
43792         doc/glibc-functions/strxfrm_l.texi.
43793         * doc/posix-functions/timer_gettime.texi: Renamed from
43794         doc/glibc-functions/timer_gettime.texi.
43795         * doc/posix-functions/tolower_l.texi: Renamed from
43796         doc/glibc-functions/tolower_l.texi.
43797         * doc/posix-functions/toupper_l.texi: Renamed from
43798         doc/glibc-functions/toupper_l.texi.
43799         * doc/posix-functions/towctrans_l.texi: Renamed from
43800         doc/glibc-functions/towctrans_l.texi.
43801         * doc/posix-functions/towlower_l.texi: Renamed from
43802         doc/glibc-functions/towlower_l.texi.
43803         * doc/posix-functions/towupper_l.texi: Renamed from
43804         doc/glibc-functions/towupper_l.texi.
43805         * doc/posix-functions/uselocale.texi: Renamed from
43806         doc/glibc-functions/uselocale.texi.
43807         * doc/posix-functions/vdprintf.texi: Renamed from
43808         doc/glibc-functions/vdprintf.texi.
43809         * doc/posix-functions/wcpcpy.texi:
43810         Renamed from doc/glibc-functions/wcpcpy.texi.
43811         * doc/posix-functions/wcpncpy.texi: Renamed from
43812         doc/glibc-functions/wcpncpy.texi.
43813         * doc/posix-functions/wcscasecmp.texi: Renamed from
43814         doc/glibc-functions/wcscasecmp.texi.
43815         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43816         doc/glibc-functions/wcscasecmp_l.texi.
43817         * doc/posix-functions/wcscoll_l.texi: Renamed from
43818         doc/glibc-functions/wcscoll_l.texi.
43819         * doc/posix-functions/wcsdup.texi: Renamed from
43820         doc/glibc-functions/wcsdup.texi.
43821         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43822         doc/glibc-functions/wcsncasecmp.texi.
43823         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43824         doc/glibc-functions/wcsncasecmp_l.texi.
43825         * doc/posix-functions/wcsnlen.texi: Renamed from
43826         doc/glibc-functions/wcsnlen.texi.
43827         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43828         doc/glibc-functions/wcsnrtombs.texi.
43829         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43830         doc/glibc-functions/wcsxfrm_l.texi.
43831         * doc/posix-functions/wctrans_l.texi: Renamed from
43832         doc/glibc-functions/wctrans_l.texi.
43833         * doc/posix-functions/wctype_l.texi: Renamed from
43834         doc/glibc-functions/wctype_l.texi.
43835         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43836         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43837         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43838         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43839         these subsections.
43840         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43841         Remove sections.
43842
43843 2008-12-14  Bruno Haible  <bruno@clisp.org>
43844
43845         Update doc for POSIX:2008.
43846         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43847
43848 2008-12-14  Bruno Haible  <bruno@clisp.org>
43849
43850         Update doc for POSIX:2008.
43851         * doc/pastposix-functions/bcmp.texi: Renamed from
43852         doc/posix-functions/bcmp.texi.
43853         * doc/pastposix-functions/bcopy.texi: Renamed from
43854         doc/posix-functions/bcopy.texi.
43855         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43856         doc/posix-functions/bsd_signal.texi.
43857         * doc/pastposix-functions/bzero.texi: Renamed from
43858         doc/posix-functions/bzero.texi.
43859         * doc/pastposix-functions/ecvt.texi: Renamed from
43860         doc/posix-functions/ecvt.texi.
43861         * doc/pastposix-functions/fcvt.texi: Renamed from
43862         doc/posix-functions/fcvt.texi.
43863         * doc/pastposix-functions/ftime.texi: Renamed from
43864         doc/posix-functions/ftime.texi.
43865         * doc/pastposix-functions/gcvt.texi: Renamed from
43866         doc/posix-functions/gcvt.texi.
43867         * doc/pastposix-functions/getcontext.texi: Renamed from
43868         doc/posix-functions/getcontext.texi.
43869         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43870         doc/posix-functions/gethostbyaddr.texi.
43871         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43872         doc/posix-functions/gethostbyname.texi.
43873         * doc/pastposix-functions/getwd.texi: Renamed from
43874         doc/posix-functions/getwd.texi.
43875         * doc/pastposix-functions/h_errno.texi: Renamed from
43876         doc/posix-functions/h_errno.texi.
43877         * doc/pastposix-functions/index.texi: Renamed from
43878         doc/posix-functions/index.texi.
43879         * doc/pastposix-functions/makecontext.texi: Renamed from
43880         doc/posix-functions/makecontext.texi.
43881         * doc/pastposix-functions/mktemp.texi: Renamed from
43882         doc/posix-functions/mktemp.texi.
43883         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43884         doc/posix-functions/pthread_attr_getstackaddr.texi.
43885         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43886         doc/posix-functions/pthread_attr_setstackaddr.texi.
43887         * doc/pastposix-functions/rindex.texi: Renamed from
43888         doc/posix-functions/rindex.texi.
43889         * doc/pastposix-functions/scalb.texi: Renamed from
43890         doc/posix-functions/scalb.texi.
43891         * doc/pastposix-functions/setcontext.texi: Renamed from
43892         doc/posix-functions/setcontext.texi.
43893         * doc/pastposix-functions/swapcontext.texi: Renamed from
43894         doc/posix-functions/swapcontext.texi.
43895         * doc/pastposix-functions/ualarm.texi: Renamed from
43896         doc/posix-functions/ualarm.texi.
43897         * doc/pastposix-functions/usleep.texi: Renamed from
43898         doc/posix-functions/usleep.texi.
43899         * doc/pastposix-functions/vfork.texi: Renamed from
43900         doc/posix-functions/vfork.texi.
43901         * doc/pastposix-functions/wcswcs.texi: Renamed from
43902         doc/posix-functions/wcswcs.texi.
43903         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43904         (Function Substitutes): Update.
43905
43906 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43907
43908         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43909         m4/strerror.m4.
43910
43911 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43912             Bruno Haible  <bruno@clisp.org>
43913
43914         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43915
43916 2008-12-13  Bruno Haible  <bruno@clisp.org>
43917
43918         * modules/strtoull (Depends-on): Remove unistd.
43919
43920 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43921
43922         * modules/strtoull (Depends-on): Add stdlib.
43923
43924 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43925
43926         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43927
43928 2008-12-10  Jim Meyering  <meyering@redhat.com>
43929
43930         gl_ASSERT: don't say assertions are disabled when they're not
43931         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43932         "checking whether to enable assertions... no", when they are in
43933         fact enabled.  This is solely a bug in the output of configure.
43934         In spite of saying "no", NDEBUG was not defined in that case.
43935         Also, as noted by Eric Blake, leave assertions enabled upon
43936         --enable-assert=INVALID.
43937
43938 2008-12-10  Bruno Haible  <bruno@clisp.org>
43939
43940         Change MODULES.html to refer to POSIX:2008 where possible.
43941         * MODULES.html.sh (POSIX2008_URL): New variable.
43942         (posix_headers): Remove sys/timeb, ucontext.
43943         (posix2001_headers): New variable.
43944         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43945         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43946         index, makecontext, mktemp, pthread_attr_getstackaddr,
43947         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43948         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43949         (posix2001_functions): New variable.
43950         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43951         otherwise.
43952
43953 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43954
43955         add missing include to parse-duration.c
43956         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43957         * modules/parse-duration (Depends-on): Add xalloc.
43958
43959         fix sed script reading maint.mk
43960         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43961         (syntax-check-rules): Use it.
43962
43963 2008-12-09  Bruno Haible  <bruno@clisp.org>
43964
43965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43966         MacOS X 10.4/PowerPC.
43967         Reported by Simon Josefsson.
43968
43969 2008-12-08  Jim Meyering  <meyering@redhat.com>
43970
43971         work around mingw's lack of some S_IF definitions
43972         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43973         Reported by Simon Josefsson.
43974
43975 2008-12-08  Bruno Haible  <bruno@clisp.org>
43976
43977         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43978         applied to variables. Needed on MacOS X 10.4/PowerPC.
43979         Reported by Simon Josefsson.
43980
43981 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43982         and Eric Blake  <ebb9@byu.net>
43983
43984         assert: honor --enable-assert
43985         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43986         order to honor --enable-assert, rather than treating it as a
43987         synonym for --disable-assert.
43988
43989 2008-12-08  Jim Meyering  <meyering@redhat.com>
43990
43991         * lib/posixtm.c: Remove now-useless declaration of mktime.
43992
43993         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43994
43995 2008-12-07  Bruno Haible  <bruno@clisp.org>
43996
43997         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43998         test_once): Mark functions as static.
43999         * tests/test-tls.c (test_tls): Likewise.
44000
44001 2008-12-07  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44004         iconv_register_autodetect.
44005
44006 2008-12-07  Jim Meyering  <meyering@redhat.com>
44007
44008         posixtm.c: avoid a warning
44009         * lib/posixtm.c (posixtime): Don't initialize tm0.
44010         It's no longer needed to placate gcc4's -Wuninitialized,
44011         and the attempt to placate would elicit a new warning.
44012
44013         unicodeio.c: mark unused parameters
44014         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44015         (fallback_failure_callback): Likewise.
44016
44017 2008-12-07  Bruno Haible  <bruno@clisp.org>
44018
44019         * gnulib-tool (func_create_testdir): When building the tests
44020         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44021         Reported by Simon Josefsson.
44022
44023 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44024
44025         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44026
44027 2008-12-06  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44030         Suggested by Eric Blake.
44031
44032 2008-12-06  Bruno Haible  <bruno@clisp.org>
44033
44034         Fix a c-stack test failure on MacOS X.
44035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44036         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44037         handler for SIGBUS as well.
44038         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44039         install a signal handler for SIGBUS as well.
44040         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44041
44042 2008-12-06  Bruno Haible  <bruno@clisp.org>
44043
44044         Advocacy documentation.
44045         * doc/gnulib-intro.texi (Benefits): New section.
44046         * doc/gnulib.texi: Update.
44047
44048 2008-12-06  Bruno Haible  <bruno@clisp.org>
44049
44050         Document the 'manywarnings' module.
44051         * doc/manywarnings.texi: New file.
44052         * doc/gnulib.texi: Include it.
44053
44054 2008-12-05  Eric Blake  <ebb9@byu.net>
44055
44056         tests: silence some gcc warnings
44057         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44058         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44059         type mismatches.
44060
44061 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44062             Bruno Haible  <bruno@clisp.org>
44063
44064         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44065
44066 2008-11-29  Jim Meyering  <meyering@redhat.com>
44067
44068         unicodeio.c: mark unused parameters
44069         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44070         (fallback_failure_callback): Likewise.
44071
44072         fts: fix a thinko
44073         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44074         (set_stat_type): Return S_IF*-valued "type" directly.
44075         Prompted by James Youngman's spotting a related bug.
44076         Confirmed by further testing through find.
44077
44078         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44079         * lib/fts.c (D_TYPE): Define.
44080         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44081         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44082         (s_ifmt_shift_bits): New function.
44083         (set_stat_type): New function.
44084         (fts_build): When not calling fts_stat, call set_stat_type
44085         to propagate dirent.d_type info to fts_read caller.
44086         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44087         fts_statp->st_mode type information may be valid.
44088
44089 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44090
44091         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44092         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44093         <sds@gnu.org>.
44094
44095 2008-11-20  Bruno Haible  <bruno@clisp.org>
44096
44097         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44098         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44099         INCLUDE_NEXT.
44100         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44101         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44102         * modules/math (Makefile.am): Substitute
44103         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44104         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44105
44106 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44107             Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/stdint.in.h: Define all type macros so that their expansion is
44110         a single typedef'ed token. Fixes a compilation failure in Boost which
44111         does "using ::int8_t;".
44112
44113 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44114
44115         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44116         gl_MANYWARN_ALL_GCC.
44117         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44118         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44119         * modules/manywarnings: New file.
44120         * MODULES.html.sh: Mention manywarnings module.
44121
44122 2008-11-18  Bruno Haible  <bruno@clisp.org>
44123
44124         * doc/gnulib-tool.texi (Unit tests): New section.
44125
44126 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44127
44128         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44129         paths like 'lib/po/foo.po'.
44130
44131 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44132
44133         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44134         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44135
44136 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44137
44138         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44139         parameter works.
44140
44141 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44142
44143         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44144
44145 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44146
44147         * modules/parse-duration-tests: New file.
44148         * tests/test-parse-duration.sh: New file.
44149         * tests/test-parse-duration.c: New file.
44150
44151         New module 'parse-duration'.
44152         * lib/parse-duration.h: New file.
44153         * lib/parse-duration.c: New file.
44154         * modules/parse-duration: New file.
44155
44156 2008-11-17  Bruno Haible  <bruno@clisp.org>
44157
44158         * tests/test-select-out.sh: Comment out the first pipe test.
44159         Reported by Simon Josefsson.
44160
44161 2008-11-17  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44165         gl_HOSTENT.
44166
44167 2008-11-17  Bruno Haible  <bruno@clisp.org>
44168
44169         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44170         -lnetwork and -lnet. Needed for Haiku and BeOS.
44171
44172 2008-11-16  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44175
44176 2008-11-16  Bruno Haible  <bruno@clisp.org>
44177
44178         Avoid test failure on Haiku.
44179         * tests/test-fsync.c: Include <errno.h>.
44180         (main): Don't require that fsync (0) fails.
44181
44182 2008-11-15  Bruno Haible  <bruno@clisp.org>
44183
44184         New module 'hostent'.
44185         * modules/hostent: New file.
44186         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44187
44188 2008-11-15  Bruno Haible  <bruno@clisp.org>
44189
44190         New module 'servent'.
44191         * modules/servent: New file.
44192         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44193
44194 2008-11-15  Bruno Haible  <bruno@clisp.org>
44195
44196         Avoid generating same test program with two different rules.
44197         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44198         test-frexp to test-frexp-nolibm.
44199         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44200         test-frexpl to test-frexpl-nolibm.
44201
44202 2008-11-15  Bruno Haible  <bruno@clisp.org>
44203
44204         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44205         $(FREXPL_LIBM).
44206
44207 2008-11-15  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/netdb.in.h: Activate the definitions also when the system's
44210         <netdb.h> has 'struct addrinfo'.
44211         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44212         EAI_OVERFLOW or AI_NUMERICSERV.
44213         * doc/posix-headers/netdb.texi: Document the problem.
44214
44215 2008-11-15  Bruno Haible  <bruno@clisp.org>
44216
44217         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44218
44219         Make the 'sched' module work on platforms where <sched.h> exists but
44220         is incomplete (such as Haiku).
44221         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44222         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44223         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44224         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44225         HAVE_STRUCT_SCHED_PARAM.
44226         * modules/sched (Depends-on): Add include_next.
44227         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44228         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44229         * doc/posix-headers/sched.texi: Document the issue.
44230
44231 2008-11-13  Jim Meyering  <meyering@redhat.com>
44232
44233         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44234         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44235         test would fail due to the difference in the Report bugs to ...
44236         line.  The expected address is empty, "<>", while the actual
44237         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44238
44239 2008-11-12  Bruno Haible  <bruno@clisp.org>
44240
44241         lstat: don't compile lstat.c on systems lacking lstat
44242         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44243         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44244         Reported by Daniel P. Berrange via Jim Meyering.
44245
44246 2008-11-12  Jim Meyering  <meyering@redhat.com>
44247
44248         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44249
44250 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44251
44252         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44253         instead.
44254
44255 2008-11-12  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/unicodeio.c: Include unistr.h.
44258         (utf8_wctomb): Remove function.
44259         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44260
44261 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44262
44263         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44264         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44265         <bruno@clisp.org>.
44266         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44267
44268 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44269
44270         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44271         * doc/gnulib.texi: Add section for warnings.
44272
44273 2008-11-11  Bruno Haible  <bruno@clisp.org>
44274
44275         * lib/sockets.h: Add a comment.
44276
44277 2008-11-11  Karl Berry  <karl@gnu.org>
44278
44279         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44280
44281 2008-11-11  Eric Blake  <ebb9@byu.net>
44282
44283         fdl.texi: avoid git symlinks
44284         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44285
44286 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44287
44288         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44289
44290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44291
44292         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44293         (gl_WARN_ADD): Substitute $2 if literal.
44294
44295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44296
44297         * m4/warning.m4: Remove.
44298
44299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44300
44301         * m4/warnings.m4: Almost complete rewrite. :-)
44302
44303 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44304
44305         * modules/warnings: New module.
44306         * m4/warnings.m4: New file.
44307         * MODULES.html.sh: Mention warnings module.
44308         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44309         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44310
44311 2008-11-10  Eric Blake  <ebb9@byu.net>
44312
44313         fdl.texi: make a symlink to the latest version
44314         * doc/standards.texi: Revert today's earlier change.
44315         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44316         * doc/fdl.texi: ...and replace this with a symlink to the newer
44317         fdl-1.3.texi.
44318
44319 2008-11-10  Bruno Haible  <bruno@clisp.org>
44320
44321         * tests/test-select-fd.c (main): Accept the result file name as fourth
44322         argument.
44323         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44324         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44325
44326 2008-11-10  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44329         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44330         as autoconf-substituted macros.
44331         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44333         gl_NETDB_H_DEFAULTS. Set these variables.
44334         * modules/netdb (Makefile.am): Substitute these variables.
44335
44336 2008-11-10  Eric Blake  <ebb9@byu.net>
44337
44338         standards.texi: include correct file for FDL 1.3
44339         * doc/standards.texi (GNU Free Documentation License): Change
44340         include file to pull in FDL 1.3, not 1.2.
44341
44342         fdl.texi: revert accidental change to license
44343         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44344
44345 2008-11-10  Bruno Haible  <bruno@clisp.org>
44346
44347         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44348         cross-compiling guesses also when the native compile gives no result.
44349
44350 2008-11-10  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/spawni.c (__spawni): Force variable into the stack.
44353
44354 2008-11-10  Bruno Haible  <bruno@clisp.org>
44355
44356         Add support for Haiku.
44357         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44358         glibc and BeOS, but also on Haiku.
44359         * lib/fpurge.c (fpurge): Likewise.
44360         * lib/freadable.c (freadable): Likewise.
44361         * lib/freadahead.c (freadahead): Likewise.
44362         * lib/freading.c (freading): Likewise.
44363         * lib/freadptr.c (freadptr): Likewise.
44364         * lib/freadseek.c (freadptrinc): Likewise.
44365         * lib/fseeko.c (rpl_fseeko): Likewise.
44366         * lib/fseterr.c (fseterr): Likewise.
44367         * lib/fwritable.c (fwritable): Likewise.
44368         * lib/fwriting.c (fwriting): Likewise.
44369         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44370
44371 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44372
44373         * lib/config.charset: Treat Haiku like BeOS.
44374
44375 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44376
44377         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44378         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44379
44380 2008-11-08  Bruno Haible  <bruno@clisp.org>
44381
44382         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44383         AC_CACHE_CHECK.
44384
44385 2008-11-08  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44388
44389 2008-11-08  Bruno Haible  <bruno@clisp.org>
44390
44391         * tests/test-select-fd.c: New file.
44392         * tests/test-select-in.sh: New file.
44393         * tests/test-select-out.sh: New file.
44394         * tests/test-select-stdin.c: New file.
44395         * modules/select-tests (Files): Add the new files.
44396         (Depends-on): Add gettimeofday.
44397         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44398         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44399         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44400
44401 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44402             Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44405
44406 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44407
44408         * build-aux/pmccabe2html: Added support for C++ source files.
44409
44410 2008-11-05  Ben Pfaff  <blp@gnu.org>
44411
44412         Fix lib/close.c build on Windows.
44413         * modules/close (Files): Add lib/w32sock.h.
44414
44415 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44416
44417         Accept Bison's NEWS format.
44418         * build-aux/announce-gen (print_news_deltas): Tweak
44419         $re_prefix.
44420
44421 2008-11-04  Bruno Haible  <bruno@clisp.org>
44422
44423         * modules/random_r (Maintainer): Add glibc.
44424
44425 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44426
44427         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44428         by karl@freefriends.org (Karl Berry).
44429         * doc/alloca.texi: Likewise.
44430         * doc/c-ctype.texi: Likewise.
44431         * doc/c-strcase.texi: Likewise.
44432         * doc/c-strcaseeq.texi: Likewise.
44433         * doc/c-strcasestr.texi: Likewise.
44434         * doc/c-strstr.texi: Likewise.
44435         * doc/c-strtod.texi: Likewise.
44436         * doc/c-strtold.texi: Likewise.
44437         * doc/ctime.texi: Likewise.
44438         * doc/error.texi: Likewise.
44439         * doc/fdl.texi: Likewise.
44440         * doc/gcd.texi: Likewise.
44441         * doc/getdate.texi: Likewise.
44442         * doc/gnulib-intro.texi: Likewise.
44443         * doc/gnulib-tool.texi: Likewise.
44444         * doc/gnulib.texi: Likewise.
44445         * doc/inet_ntoa.texi: Likewise.
44446         * doc/maintain.texi: Likewise.
44447         * doc/make-stds.texi: Likewise.
44448         * doc/quote.texi: Likewise.
44449         * doc/regexprops-generic.texi: Likewise.
44450         * doc/standards.texi: Likewise.
44451         * doc/verify.texi: Likewise.
44452         * doc/visibility.texi: Likewise.
44453         * doc/gnulib.texi (GNU Free Documentation License): Include
44454         fdl-1.3.texi instead of fdl.texi.
44455
44456 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44457
44458         * doc/fdl-1.3.texi: New file, from
44459         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44460         * modules/fdl-1.3: Add.
44461         * MODULES.html.sh: Add fdl-1.3.
44462
44463 2008-11-03  Bruno Haible  <bruno@clisp.org>
44464
44465         Make determination of absolute name of header file work with AIX xlc.
44466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44467         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44468         preprocessing.
44469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44470         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44471
44472 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44473
44474         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44475         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44476         <ludo@gnu.org>.
44477
44478 2008-11-02  Bruno Haible  <bruno@clisp.org>
44479
44480         Mark 'strpbrk' obsolete.
44481         * modules/strpbrk (Status, Notice): New sections.
44482         * modules/strtok_r (Depends-on): Add strpbrk.
44483
44484 2008-11-02  Bruno Haible  <bruno@clisp.org>
44485
44486         Mark 'strdup' obsolete.
44487         * modules/strdup (Status, Notice): New sections.
44488         * modules/findprog (Depends-on): Add strdup.
44489         * modules/getaddrinfo (Depends-on): Likewise.
44490         * modules/localename (Depends-on): Likewise.
44491         * modules/relocatable-lib (Depends-on): Likewise.
44492         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44493         * modules/relocatable-prog (Depends-on): Likewise.
44494         * modules/trim (Depends-on): Likewise.
44495         * modules/unictype/gen-ctype (Depends-on): Likewise.
44496         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44497
44498 2008-11-02  Bruno Haible  <bruno@clisp.org>
44499
44500         Mark 'strcspn' obsolete.
44501         * modules/strcspn (Status, Notice): New sections.
44502
44503 2008-11-02  Bruno Haible  <bruno@clisp.org>
44504
44505         Mark 'rmdir' obsolete.
44506         * modules/rmdir (Status, Notice): New sections.
44507         * modules/clean-temp (Depends-on): Add rmdir.
44508         * modules/openat (Depends-on): Likewise.
44509
44510 2008-11-02  Bruno Haible  <bruno@clisp.org>
44511
44512         Mark 'raise' obsolete.
44513         * modules/raise (Status, Notice): New sections.
44514         (Include): Specify <signal.h>.
44515         * modules/stdio (Depends-on): Add raise.
44516         * modules/write (Depends-on): Likewise.
44517
44518 2008-11-02  Bruno Haible  <bruno@clisp.org>
44519
44520         Mark 'memset' obsolete.
44521         * modules/memset (Status, Notice): New sections.
44522
44523 2008-11-02  Bruno Haible  <bruno@clisp.org>
44524
44525         Mark 'memmove' obsolete.
44526         * modules/memmove (Status, Notice): New sections.
44527         * modules/argp (Depends-on): Add memmove.
44528         * modules/argz (Depends-on): Likewise.
44529         * modules/canonicalize (Depends-on): Likewise.
44530         * modules/canonicalize-lgpl (Depends-on): Likewise.
44531         * modules/fts (Depends-on): Likewise.
44532         * modules/getcwd (Depends-on): Likewise.
44533         * modules/human (Depends-on): Likewise.
44534         * modules/regex (Depends-on): Likewise.
44535         * modules/striconveh (Depends-on): Likewise.
44536         * modules/trim (Depends-on): Likewise.
44537         * modules/unistr/u8-move (Depends-on): Likewise.
44538         * modules/unistr/u16-move (Depends-on): Likewise.
44539         * modules/unistr/u32-move (Depends-on): Likewise.
44540
44541 2008-11-02  Bruno Haible  <bruno@clisp.org>
44542
44543         Mark 'memcpy' obsolete.
44544         * modules/memcpy (Status, Notice): New sections.
44545
44546 2008-11-02  Bruno Haible  <bruno@clisp.org>
44547
44548         Mark 'memcmp' obsolete.
44549         * modules/memcmp (Status, Notice): New sections.
44550         * modules/argmatch (Depends-on): Add memchr.
44551         * modules/backupfile (Depends-on): Likewise.
44552         * modules/c-strcasestr (Depends-on): Likewise.
44553         * modules/crypto/des (Depends-on): Likewise.
44554         * modules/csharpcomp (Depends-on): Likewise.
44555         * modules/fnmatch (Depends-on): Likewise.
44556         * modules/git-merge-changelog (Depends-on): Likewise.
44557         * modules/isnand (Depends-on): Likewise.
44558         * modules/isnand-nolibm (Depends-on): Likewise.
44559         * modules/isnanf (Depends-on): Likewise.
44560         * modules/isnanf-nolibm (Depends-on): Likewise.
44561         * modules/isnanl (Depends-on): Likewise.
44562         * modules/isnanl-nolibm (Depends-on): Likewise.
44563         * modules/mbchar (Depends-on): Likewise.
44564         * modules/memcoll (Depends-on): Likewise.
44565         * modules/quotearg (Depends-on): Likewise.
44566         * modules/regex (Depends-on): Likewise.
44567         * modules/relocatable-prog (Depends-on): Likewise.
44568         * modules/same (Depends-on): Likewise.
44569         * modules/signbit (Depends-on): Likewise.
44570         * modules/strcasestr-simple (Depends-on): Likewise.
44571         * modules/unictype/gen-ctype (Depends-on): Likewise.
44572         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44573         * modules/uniname/uniname (Depends-on): Likewise.
44574         * modules/unistr/u8-cmp (Depends-on): Likewise.
44575
44576 2008-11-02  Bruno Haible  <bruno@clisp.org>
44577
44578         Mark 'memchr' obsolete.
44579         * modules/memchr (Status, Notice): New sections.
44580         * modules/argp (Depends-on): Add memchr.
44581         * modules/base64 (Depends-on): Likewise.
44582         * modules/c-strcasestr (Depends-on): Likewise.
44583         * modules/chdir-long (Depends-on): Likewise.
44584         * modules/fnmatch (Depends-on): Likewise.
44585         * modules/getsubopt (Depends-on): Likewise.
44586         * modules/git-merge-changelog (Depends-on): Likewise.
44587         * modules/glob (Depends-on): Likewise.
44588         * modules/strcasestr-simple (Depends-on): Likewise.
44589         * modules/strnlen (Depends-on): Likewise.
44590
44591 2008-11-02  Bruno Haible  <bruno@clisp.org>
44592
44593         Mark 'atexit' obsolete.
44594         * modules/atexit (Status, Notice): New sections.
44595         * modules/chdir-long (Depends-on): Add atexit.
44596         * modules/wait-process (Depends-on): Likewise.
44597
44598 2008-11-02  Bruno Haible  <bruno@clisp.org>
44599
44600         * gnulib-tool: New option --with-obsolete.
44601         (func_usage): Document it.
44602         (func_modules_transitive_closure): Drop obsolete dependencies if
44603         incobsolete is not true.
44604         (func_import): Read and save the incobsolete variable to the cache.
44605
44606 2008-11-02  Bruno Haible  <bruno@clisp.org>
44607
44608         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44609         * gnulib-tool: New option --extract-status.
44610         (func_usage): Document it.
44611         (sed_extract_prog): Recognize it.
44612         (func_get_status): New function.
44613
44614 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44615
44616         * modules/sockets (License): Change from LGPL to LGPLv2+.
44617
44618 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44619
44620         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44621
44622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44623
44624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44625         Mention times and sys_times.
44626         * modules/sys_times, modules/sys_times-tests: New modules.
44627         * modules/times, modules/times-tests: Likewise
44628         * m4/sys_times_h.m4: New file.
44629         * lib/sys_times.in.h: Likewise
44630         * lib/times.c: Likewise.
44631         * tests/test-sys_times.c: Likewise.
44632         * tests/test-times.c: Likewise.
44633         * doc/posix-headers/sys_times.texi: Update.
44634         * doc/posix-functions/times.texi: Update.
44635
44636 2008-10-28  Jim Meyering  <meyering@redhat.com>
44637
44638         * modules/tempname (Depends-on): Add lstat.
44639
44640         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44641
44642 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44643
44644         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44645         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44646         using idiom used elsewhere in gnulib.
44647
44648 2008-10-27  Jim Meyering  <meyering@redhat.com>
44649
44650         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44651
44652 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44653
44654         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44655         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44656         programs.
44657         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44658
44659 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44660
44661         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44662
44663 2008-10-27  Bruno Haible  <bruno@clisp.org>
44664
44665         * tests/test-lstat.c: Include <stdio.h>.
44666
44667 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44668
44669         * modules/lstat-tests: New module.
44670         * tests/test-lstat.c: New file.
44671
44672 2008-10-26  Jim Meyering  <meyering@redhat.com>
44673
44674         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44675
44676 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44677             Bruno Haible  <bruno@clisp.org>
44678
44679         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44680         * modules/configmake (Include): Add a note that the include must come
44681         after all system headers.
44682         * lib/javaversion.c: Include configmake.h after all other includes.
44683
44684 2008-10-26  Bruno Haible  <bruno@clisp.org>
44685
44686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44687         HAVE_STRUCT_RANDOM_DATA to 1.
44688         (gl_STDLIB_H): Simplify.
44689
44690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44691
44692         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44693         substitute HAVE_STRUCT_RANDOM_DATA.
44694         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44695         random_data.
44696         * modules/stdlib (Makefile.am): Substitute
44697         HAVE_STRUCT_RANDOM_DATA.
44698
44699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44700
44701         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44702         * doc/gnulib-intro.texi (Copyright): Likewise.
44703
44704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44705
44706         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44707         findings.
44708
44709 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44710             Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/unistd.in.h: Include <winsock2.h>.
44713         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44714         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44715         Provide dummy declarations.
44716         (gethostname): Override.
44717         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44719         gl_PREREQ_SYS_H_WINSOCK2.
44720         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44721         * doc/posix-functions/gethostname.texi: More details.
44722
44723 2008-10-25  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44726         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44727         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44728
44729         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44730         here ...
44731         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44732         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44733         gl_UNISTD_H_DEFAULTS.
44734
44735 2008-10-25  Eric Blake  <ebb9@byu.net>
44736
44737         signbit: avoid spurious compiler failure
44738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44739         declarations inside function.
44740
44741 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44742             Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44745         * modules/random_r (Depends-on): Add stdint.
44746
44747 2008-10-24  Bruno Haible  <bruno@clisp.org>
44748
44749         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44750         Eggert.
44751         * modules/strerror (License): Likewise.
44752
44753 2008-10-24  Jim Meyering  <meyering@redhat.com>
44754
44755         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44756         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44757
44758 2008-10-24  Eric Blake  <ebb9@byu.net>
44759
44760         getgroups: fix compilation when getgroups is available
44761         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44762         but with <config.h> override of getgroups disabled.
44763
44764 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44765
44766         * doc/gnulib.texi (Header files): Add note about C++ problems.
44767         Explained by Bruno Haible <bruno@clisp.org>.
44768
44769 2008-10-23  Bruno Haible  <bruno@clisp.org>
44770
44771         Define a dummy SA_NODEFER macro on Interix.
44772         * lib/signal.in.h (SA_NODEFER): Define fallback.
44773         Reported by Aleksey Cheusov <cheusov@tut.by> via
44774         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44775
44776 2008-10-23  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/freadahead (License): Change to LGPLv2+.
44779         Suggested by Simon Josefsson.
44780
44781 2008-10-23  Jim Meyering  <meyering@redhat.com>
44782
44783         random_r: new module
44784         * modules/random_r: New file.
44785         * m4/random_r.m4: New file.
44786         * lib/random_r.c: New file, from glibc.
44787         * modules/random_r-tests: New file.
44788         * tests/test-random_r.c: New file.
44789         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44790          Declare.
44791         (RAND_MAX): Define.
44792         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44793         * modules/stdlib: Substitute them, too.
44794         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44795         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44796         * doc/glibc-functions/random_r.texi: Likewise.
44797         * doc/glibc-functions/setstate_r.texi: Likewise.
44798         * doc/glibc-functions/srandom_r.texi: Likewise.
44799         * config/srclist.txt: Mention it.
44800
44801 2008-10-23  David Lutterkort  <lutter@redhat.com>
44802
44803         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44804         link requirement
44805
44806 2008-10-23  Jim Meyering  <meyering@redhat.com>
44807
44808         selinux-h: mark parameters of stub functions as intentionally unused
44809         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44810         * lib/se-context.in.h: Likewise.
44811
44812 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44813
44814         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44815
44816 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44817
44818         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44819
44820 2008-10-22  Eric Blake  <ebb9@byu.net>
44821
44822         glthread/thread: avoid compiler warning
44823         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44824         Add unreachable abort to silence compiler.
44825
44826 2008-10-22  Eric Blake  <ebb9@byu.net>
44827
44828         netdb: also supply struct addrinfo for cygwin 1.5.x
44829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44830         older cygwin.
44831         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44832         cygwin.
44833         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44834
44835 2008-10-22  Bruno Haible  <bruno@clisp.org>
44836
44837         * users.txt: Update entry about pspp.
44838
44839 2008-10-21  Bruno Haible  <bruno@clisp.org>
44840
44841         Simplification.
44842         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44843         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44844
44845         Simplification.
44846         * lib/ioctl.c (ioctl): Don't undefine.
44847         * lib/socket.c (socket): Don't undefine.
44848
44849         Remove unused module indicator macros.
44850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44851         GNULIB_$1 as a C macro.
44852
44853         * doc/posix-functions/close.texi: Undo last change.
44854         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44855         Windows platforms.
44856
44857 2008-10-21  Bruno Haible  <bruno@clisp.org>
44858
44859         Add gethostname() declaration to <unistd.h>.
44860         * lib/unistd.in.h (gethostname): New declaration.
44861         * lib/gethostname.c: Include <unistd.h>.
44862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44863         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44865         and HAVE_GETHOSTNAME.
44866         * modules/gethostname (Depends-on): Add unistd.
44867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44868         (Include): Specify <unistd.h>.
44869         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44870         HAVE_GETHOSTNAME.
44871         * tests/test-gethostname.c: Include <unistd.h> first.
44872
44873 2008-10-21  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44876         * modules/select-tests (Depends-on): Likewise.
44877         Reported by Simon Josefsson.
44878
44879 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44880
44881         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44882         * lib/accept.c: New file, based on winsock.c.
44883         * lib/bind.c: New file, based on winsock.c.
44884         * lib/connect.c: New file, based on winsock.c.
44885         * lib/getpeername.c: New file, based on winsock.c.
44886         * lib/getsockname.c: New file, based on winsock.c.
44887         * lib/getsockopt.c: New file, based on winsock.c.
44888         * lib/ioctl.c: New file, based on winsock.c.
44889         * lib/listen.c: New file, based on winsock.c.
44890         * lib/recv.c: New file, based on winsock.c.
44891         * lib/recvfrom.c: New file, based on winsock.c.
44892         * lib/send.c: New file, based on winsock.c.
44893         * lib/sendto.c: New file, based on winsock.c.
44894         * lib/setsockopt.c: New file, based on winsock.c.
44895         * lib/shutdown.c: New file, based on winsock.c.
44896         * lib/socket.c: New file, based on winsock.c.
44897         * lib/w32sock.h: New file, based on winsock.c.
44898         * lib/winsock.c: Remove file.
44899         * modules/accept: Likewise.
44900         * modules/bind: Likewise.
44901         * modules/connect: Likewise.
44902         * modules/getpeername: Likewise.
44903         * modules/getsockname: Likewise.
44904         * modules/getsockopt: Likewise.
44905         * modules/ioctl: Likewise.
44906         * modules/listen: Likewise.
44907         * modules/recv: Likewise.
44908         * modules/recvfrom: Likewise.
44909         * modules/send: Likewise.
44910         * modules/sendto: Likewise.
44911         * modules/setsockopt: Likewise.
44912         * modules/shutdown: Likewise.
44913         * modules/socket: Use socket.c instead of winsock.c.
44914         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44915         * doc/posix-functions/accept.texi: Doc fix.
44916         * doc/posix-functions/bind.texi: Doc fix.
44917         * doc/posix-functions/close.texi: Doc fix.
44918         * doc/posix-functions/connect.texi: Doc fix.
44919         * doc/posix-functions/getpeername.texi: Doc fix.
44920         * doc/posix-functions/getsockname.texi: Doc fix.
44921         * doc/posix-functions/getsockopt.texi: Doc fix.
44922         * doc/posix-functions/ioctl.texi: Doc fix.
44923         * doc/posix-functions/listen.texi: Doc fix.
44924         * doc/posix-functions/recv.texi: Doc fix.
44925         * doc/posix-functions/recvfrom.texi: Doc fix.
44926         * doc/posix-functions/send.texi: Doc fix.
44927         * doc/posix-functions/sendto.texi: Doc fix.
44928         * doc/posix-functions/setsockopt.texi: Doc fix.
44929         * doc/posix-functions/shutdown.texi: Doc fix.
44930         * doc/posix-functions/socket.texi: Doc fix.
44931
44932 2008-10-20  Bruno Haible  <bruno@clisp.org>
44933
44934         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44935         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44936         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44937         as an alias for SIGABRT.
44938         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44939         (sigaction): Map it to SIGABRT.
44940         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44941
44942 2008-10-20  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/fts.c: Don't include lstat.h.
44945         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44946
44947         Move the lstat() declaration to <sys/stat.h>.
44948         * lib/lstat.h: Remove file.
44949         * lib/sys_stat.in.h: Add special invocation convention.
44950         (lstat): New declaration.
44951         * lib/lstat.c (orig_lstat): New function.
44952         (rpl_lstat): Use orig_lstat instead of lstat.
44953         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44954         AC_C_INLINE. Set REPLACE_LSTAT.
44955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44956         and REPLACE_LSTAT.
44957         * modules/lstat (Files): Remove lib/lstat.h.
44958         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44959         (Include): Specify <sys/stat.h> instead of lstat.h.
44960         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44961         REPLACE_LSTAT.
44962         * NEWS: Mention the change.
44963
44964 2008-10-20  Bruno Haible  <bruno@clisp.org>
44965
44966         * modules/posix_spawn-tests: New file.
44967         * tests/test-posix_spawn3.c: New file.
44968
44969 2008-10-20  Bruno Haible  <bruno@clisp.org>
44970
44971         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44972         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44973         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44974         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44975         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44976
44977 2008-10-20  Bruno Haible  <bruno@clisp.org>
44978
44979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44980         of posix_spawn on AIX 5.3.
44981
44982 2008-10-20  Bruno Haible  <bruno@clisp.org>
44983
44984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44985
44986 2008-10-20  Bruno Haible  <bruno@clisp.org>
44987
44988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44989         of AC_LANG_PROGRAM.
44990
44991 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44992
44993         * lib/netdb.in.h: Don't define GNU specific constants until they
44994         are supported or needed.  Reported by Bruno Haible
44995         <bruno@clisp.org>.
44996
44997 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44998
44999         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45000
45001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45002
45003         * lib/getaddrinfo.h: Remove file.
45004         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45005         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45006         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45007         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45008         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45009         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45010         * tests/test-getaddrinfo.c: Likewise.
45011         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45012         * NEWS: Mention change.
45013
45014 2008-10-19  Bruno Haible  <bruno@clisp.org>
45015
45016         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45017
45018 2008-10-19  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/wait-process.c: Include simply <sys/wait.h>.
45021         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45022         WIFSTOPPED): Remove fallback definitions.
45023         * modules/wait-process (Depends-on): Add sys_wait.
45024
45025         New module 'sys_wait'.
45026         * modules/sys_wait: New file.
45027         * lib/sys_wait.in.h: New file, partially copied from
45028         lib/wait-process.c.
45029         * m4/sys_wait_h.m4: New file.
45030         * doc/posix-headers/sys_wait.texi: Mention the new module.
45031
45032 2008-10-19  Bruno Haible  <bruno@clisp.org>
45033
45034         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45035
45036 2008-10-19  Bruno Haible  <bruno@clisp.org>
45037
45038         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45039         * lib/wait-process.c (WAIT_T): Remove type.
45040         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45041         (wait_subprocess): Update.
45042
45043 2008-10-19  Bruno Haible  <bruno@clisp.org>
45044
45045         New module 'atoll'.
45046         * modules/atoll: New file.
45047         * lib/stdlib.in.h (atoll): New declaration.
45048         * lib/atoll.c: New file, from glibc with modifications.
45049         * m4/atoll.m4: New file.
45050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45051         HAVE_ATOLL.
45052         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45053         * doc/posix-functions/atoll.texi: Mention the new module.
45054
45055 2008-10-19  Bruno Haible  <bruno@clisp.org>
45056
45057         Add strtoull() declaration to <stdlib.h>.
45058         * lib/stdlib.in.h (strtoull): New declaration.
45059         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45060         Set HAVE_STRTOULL.
45061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45062         HAVE_STRTOULL.
45063         * modules/strtoull (Depends-on): Add stdlib.
45064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45065         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45066         HAVE_STRTOULL.
45067
45068 2008-10-19  Bruno Haible  <bruno@clisp.org>
45069
45070         Add strtoll() declaration to <stdlib.h>.
45071         * lib/stdlib.in.h (strtoll): New declaration.
45072         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45073         Set HAVE_STRTOLL.
45074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45075         HAVE_STRTOLL.
45076         * modules/strtoll (Depends-on): Add stdlib.
45077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45078         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45079
45080 2008-10-19  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/bcopy (Depends-on): Add strings.
45083         (Include): Specify <strings.h>.
45084
45085 2008-10-19  Bruno Haible  <bruno@clisp.org>
45086
45087         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45088
45089 2008-10-19  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45092         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45093         mingw.
45094
45095 2008-10-19  Bruno Haible  <bruno@clisp.org>
45096
45097         * lib/atanl.c: Don't include isnanl.h.
45098         * lib/cosl.c: Likewise.
45099         * lib/ldexpl.c: Likewise.
45100         * lib/logl.c: Likewise.
45101         * lib/sinl.c: Likewise.
45102         * lib/sqrtl.c: Likewise.
45103         * lib/tanl.c: Likewise.
45104
45105         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45106         * lib/isnanf.h: Remove file.
45107         * lib/isnand.h: Remove file.
45108         * lib/isnanl.h: Remove file.
45109         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45110         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45111         macros.
45112         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45113         HAVE_ISNANF, don't define it as a C macro.
45114         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45115         HAVE_ISNAND, don't define it as a C macro.
45116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45117         HAVE_ISNANL, don't define it as a C macro.
45118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45119         HAVE_ISNAN[FDL].
45120         * modules/isnanf (Files): Remove lib/isnanf.h.
45121         (Depends-on): Add math.
45122         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45123         (Include): Specify <math.h> instead of isnanf.h.
45124         * modules/isnand (Files): Remove lib/isnand.h.
45125         (Depends-on): Add math.
45126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45127         (Include): Specify <math.h> instead of isnand.h.
45128         * modules/isnanl (Files): Remove lib/isnanl.h.
45129         (Depends-on): Add math.
45130         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45131         (Include): Specify <math.h> instead of isnanl.h.
45132         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45133         HAVE_ISNAN[FDL].
45134         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45135         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45136         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45137         * NEWS: Mention the change.
45138
45139 2008-10-18  Bruno Haible  <bruno@clisp.org>
45140
45141         Add getusershell(), setusershell(), endusershell() declarations to
45142         <unistd.h>.
45143         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45144         declarations.
45145         * lib/getusershell.c: Include unistd.h.
45146         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45147         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45148         HAVE_GETUSERSHELL.
45149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45150         and HAVE_GETUSERSHELL.
45151         * modules/getusershell (Depends-on): Add unistd, extensions.
45152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45153         (Include): Specify <unistd.h>.
45154         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45155         HAVE_GETUSERSHELL.
45156
45157 2008-10-18  Bruno Haible  <bruno@clisp.org>
45158
45159         Add a getloadavg() declaration to <stdlib.h>.
45160         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45161         getloadavg declaration.
45162         (getloadavg): New declaration.
45163         * lib/getloadavg.c: Include <stdlib.h> first.
45164         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45165         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45166         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45168         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45169         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45170         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45171         (Include): Specify <stdlib.h>.
45172         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45173         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45174
45175 2008-10-18  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/dirchownmod.c: Don't include lchmod.h.
45178
45179         Move the lchmod() declaration to <sys/stat.h>.
45180         * lib/lchmod.h: Remove file.
45181         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45182         (lchmod): New declaration, moved here from lib/lchown.h.
45183         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45184         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45186         and HAVE_LCHMOD.
45187         * modules/lchmod (Files): Remove lib/lchmod.h.
45188         (Depends-on): Add sys_stat, extensions.
45189         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45190         (Include): Specify <sys/stat.h> instead of lchmod.h.
45191         * modules/sys_stat (Depends-on): Add link-warning.
45192         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45193         definition of GL_LINK_WARNING.
45194         * NEWS: Mention the change.
45195
45196 2008-10-18  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/fchdir.c: Don't include dirfd.h.
45199         * lib/fts.c: Likewise.
45200         * lib/getcwd.c: Likewise.
45201         * lib/glob.c: Likewise.
45202
45203         Move the dirfd() declaration to <dirent.h>.
45204         * lib/dirfd.h: Remove file.
45205         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45206         (dirfd): New declaration.
45207         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45209         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45210         HAVE_DECL_DIRFD.
45211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45212         HAVE_DECL_DIRFD.
45213         * modules/dirfd (Files): Remove lib/dirfd.h.
45214         (Depends-on): Add dirent, extensions.
45215         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45216         (Include): Specify <dirent.h> instead of dirfd.h.
45217         * modules/dirent (Depends-on): Add link-warning.
45218         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45219         definition of GL_LINK_WARNING.
45220         * NEWS: Mention the change.
45221
45222 2008-10-18  Bruno Haible  <bruno@clisp.org>
45223
45224         Move the euidaccess() declaration to <unistd.h>.
45225         * lib/euidaccess.h: Remove file.
45226         * lib/unistd.in.h (euidaccess): New declaration.
45227         * lib/euidaccess.c: Don't include euidaccess.h.
45228         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45229         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45231         and HAVE_EUIDACCESS.
45232         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45233         (Depends-on): Add unistd.
45234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45235         (Include): Specify <unistd.h> instead of euidaccess.h.
45236         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45237         HAVE_EUIDACCESS.
45238         * NEWS: Mention the change.
45239
45240 2008-10-18  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45243
45244         Move the getdomainname() declaration to <unistd.h>.
45245         * lib/getdomainname.h: Remove file.
45246         * lib/unistd.in.h (getdomainname): New declaration.
45247         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45248         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45249         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45250         HAVE_GETDOMAINNAME.
45251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45252         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45253         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45254         (Depends-on): Add unistd, extensions.
45255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45256         (Includes): Specify <unistd.h> instead of getdomainname.h.
45257         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45258         HAVE_GETDOMAINNAME.
45259         * NEWS: Mention the change.
45260
45261 2008-10-18  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/dirent: New file.
45264         * m4/dirent_h.m4: New file.
45265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45266         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45267         * modules/fchdir (Files): Remove lib/dirent.in.h.
45268         (Depends-on): Add dirent.
45269         (Makefile.am): Move rules to modules/dirent.
45270         * doc/posix-headers/dirent.texi: Mention the new module.
45271
45272 2008-10-18  Bruno Haible  <bruno@clisp.org>
45273
45274         Avoid -Wunused-parameter warnings in public gnulib header files.
45275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45276         macro.
45277         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45278
45279 2008-10-18  Bruno Haible  <bruno@clisp.org>
45280
45281         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45282         * doc/glibc-functions/error.texi: Mention the module 'error'.
45283         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45284         * doc/glibc-functions/getdomainname.texi: Mention the module
45285         'getdomainname'.
45286         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45287         * doc/glibc-functions/getpagesize.texi: Mention the module
45288         'getpagesize'.
45289         * doc/glibc-functions/getusershell.texi: Mention the module
45290         'getusershell'.
45291         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45292         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45293         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45294         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45295         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45296         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45297         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45298         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45299         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45300         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45301         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45302         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45303         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45304         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45305
45306 2008-10-17  Bruno Haible  <bruno@clisp.org>
45307
45308         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45309         HP-UX and IRIX, use -0.0L.
45310         * tests/test-ceill.c (minus_zero): Likewise.
45311         * tests/test-floorl.c (minus_zero): Likewise.
45312         * tests/test-frexpl.c (minus_zero): Likewise.
45313         * tests/test-isnan.c (minus_zerol): Likewise.
45314         * tests/test-isnanl.h (minus_zero): Likewise.
45315         * tests/test-ldexpl.c (minus_zero): Likewise.
45316         * tests/test-roundl.c (minus_zero): Likewise.
45317         * tests/test-signbit.c (minus_zerol): Likewise.
45318         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45319         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45320         * tests/test-truncl.c (minus_zero): Likewise.
45321         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45322         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45323         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45324         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45325
45326 2008-10-17  Bruno Haible  <bruno@clisp.org>
45327
45328         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45329         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45330         that it gets activated only for gcc >= 3.0.
45331         * lib/dirent.in.h: Likewise.
45332         * lib/errno.in.h: Likewise.
45333         * lib/fcntl.in.h: Likewise.
45334         * lib/float.in.h: Likewise.
45335         * lib/iconv.in.h: Likewise.
45336         * lib/inttypes.in.h: Likewise.
45337         * lib/locale.in.h: Likewise.
45338         * lib/math.in.h: Likewise.
45339         * lib/netdb.in.h: Likewise.
45340         * lib/netinet_in.in.h: Likewise.
45341         * lib/search.in.h: Likewise.
45342         * lib/signal.in.h: Likewise.
45343         * lib/spawn.in.h: Likewise.
45344         * lib/stdarg.in.h: Likewise.
45345         * lib/stdint.in.h: Likewise.
45346         * lib/stdio.in.h: Likewise.
45347         * lib/stdlib.in.h: Likewise.
45348         * lib/string.in.h: Likewise.
45349         * lib/strings.in.h: Likewise.
45350         * lib/sys_file.in.h: Likewise.
45351         * lib/sys_ioctl.in.h: Likewise.
45352         * lib/sys_select.in.h: Likewise.
45353         * lib/sys_socket.in.h: Likewise.
45354         * lib/sys_stat.in.h: Likewise.
45355         * lib/sys_time.in.h: Likewise.
45356         * lib/sysexits.in.h: Likewise.
45357         * lib/time.in.h: Likewise.
45358         * lib/unistd.in.h: Likewise.
45359         * lib/wchar.in.h: Likewise.
45360         * lib/wctype.in.h: Likewise.
45361         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45362
45363 2008-10-17  Jim Meyering  <meyering@redhat.com>
45364
45365         ignore-value: don't depend on inline module
45366         * modules/ignore-value (Depends-on): Remove 'inline'.
45367         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45368         Suggestion from Bruno Haible.
45369
45370 2008-10-17  Bruno Haible  <bruno@clisp.org>
45371
45372         New implementation of condition variables for Win32.
45373         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45374         (gl_linked_waitqueue_t): New type.
45375         (gl_cond_t): Use it.
45376         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45377         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45378         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45379         (glthread_cond_init_func, glthread_cond_wait_func,
45380         glthread_cond_timedwait_func, glthread_cond_signal_func,
45381         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45382         Reimplemented on the basis of gl_linked_waitqueue_t.
45383         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45384         gl_waitqueue_t.
45385         (gl_rwlock_t): Update.
45386         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45387
45388 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45389
45390         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45391         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45392
45393 2008-10-17  Jim Meyering  <meyering@redhat.com>
45394
45395         ignore-value: new module
45396         * modules/ignore-value: New file.
45397         * lib/ignore-value.h: New file.
45398         * MODULES.html.sh (Compiler warning management): New section,
45399         just for this module.  More to come.
45400
45401 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45404         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45405         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45406
45407 2008-10-16  Jim Meyering  <meyering@redhat.com>
45408
45409         openat-die.c: avoid 'no previous prototype' warning
45410         * lib/openat-die.c: Include "openat.h".
45411         Reported by Reuben Thomas <rrt@sc3d.org>.
45412
45413 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45414
45415         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45416         * lib/netdb.in.h: Fix typo.
45417         Reported by Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/netdb.in.h: Include sys/socket.h for platforms without
45420         netdb.h, to get structures like hostent on MinGW.
45421         * modules/netdb (Depends-on): Add sys_socket.
45422
45423 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45424
45425         * modules/netdb, modules/netdb-tests: New file.
45426         * m4/netdb_h.m4: New file.
45427         * lib/netdb.in.h: Add, currently just an empty file pending
45428         definitions.
45429         * tests/test-netdb.c: New file.
45430         * doc/posix-headers/netdb.texi: Mention that we replace it if
45431         needed.
45432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45433         netdb.
45434
45435 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45436
45437         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45438         with code.
45439
45440 2008-10-13  Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/glthread/cond.c (glthread_cond_wait_func,
45443         glthread_cond_timedwait_func): Add a comment.
45444
45445 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45446
45447         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45448         * tests/test-select.c: Likewise,
45449
45450 2008-10-13  Bruno Haible  <bruno@clisp.org>
45451
45452         * lib/glthread/cond.c (glthread_cond_wait_func,
45453         glthread_cond_timedwait_func): Fix variable name.
45454         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45455
45456 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45457
45458         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45460         struct sockaddr.sa_len.
45461         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45462
45463 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45464
45465         * build-aux/pmccabe2html: Add css and css_url parameters.
45466
45467 2008-10-12  Bruno Haible  <bruno@clisp.org>
45468
45469         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45470         calling aclx_get.
45471         Reported by Rainer Tammer <tammer@tammer.net>.
45472
45473 2008-10-12  Bruno Haible  <bruno@clisp.org>
45474
45475         Use msvcrt aware primitives for creation/termination of Win32 threads.
45476         * lib/glthread/thread.c: Include <process.h>.
45477         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45478         (wrapper_func): Update signature.
45479         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45480
45481 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45482             Bruno Haible  <bruno@clisp.org>
45483
45484         Provide a Win32 implementation of the 'cond' module.
45485         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45486         * lib/glthread/cond.c (glthread_cond_init_func,
45487         glthread_cond_wait_func, glthread_cond_timedwait_func,
45488         glthread_cond_signal_func, glthread_cond_broadcast_func,
45489         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45490         * modules/cond (Dependencies): Add gettimeofday.
45491
45492 2008-10-11  Bruno Haible  <bruno@clisp.org>
45493
45494         Make sleep work on older versions of mingw.
45495         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45496         only whether it exists.
45497         * doc/posix-functions/sleep.texi: Mention the problem with older
45498         versions of mingw.
45499
45500 2008-10-11  Bruno Haible  <bruno@clisp.org>
45501
45502         New module 'shutdown'.
45503         * modules/shutdown: New file.
45504         * lib/sys_socket.in.h (shutdown): New declaration.
45505         * lib/winsock.c (shutdown): New function.
45506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45507         GNULIB_SHUTDOWN.
45508         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45509         * doc/posix-functions/shutdown.texi: Document the new module.
45510
45511 2008-10-11  Jim Meyering  <meyering@redhat.com>
45512
45513         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45514
45515 2008-10-11  Bruno Haible  <bruno@clisp.org>
45516
45517         New module 'fclose'.
45518         * modules/fclose: New file.
45519         * lib/stdio.in.h (fclose): New declaration.
45520         * lib/fclose.c: New file.
45521         * m4/fclose.m4: New file.
45522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45523         REPLACE_FCLOSE.
45524         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45525         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45526         REPLACE_FCLOSE.
45527         * modules/close (Depends-on): fclose.
45528         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45529
45530 2008-10-11  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45533         set errno and don't call _close.
45534
45535 2008-10-10  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45538         ACL, not afterwards. Fixes test failure on Cygwin.
45539
45540 2008-10-09  Ben Pfaff  <blp@gnu.org>
45541
45542         * build-aux/announce-gen: Fix gnulib version related part of usage
45543         message.  Die with a useful error message if no tarballs are
45544         found.
45545
45546 2008-10-10  Jim Meyering  <meyering@redhat.com>
45547
45548         bootstrap: use git's --depth=N option only if it's supported
45549         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45550         recognize the --depth option.  Reported by Pádraig Brady.
45551
45552 2008-10-09  Bruno Haible  <bruno@clisp.org>
45553
45554         New module 'ioctl'.
45555         * modules/ioctl: New file.
45556         * lib/sys_socket.in.h (ioctl): Remove declaration.
45557         * lib/winsock.c: Include <sys/ioctl.h>.
45558         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45559         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45560         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45561         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45562         * doc/posix-functions/ioctl.texi: Mention the new module.
45563
45564 2008-10-09  Bruno Haible  <bruno@clisp.org>
45565
45566         New module 'sys_ioctl'.
45567         * lib/sys_ioctl.in.h: New file.
45568         * m4/sys_ioctl_h.m4: New file.
45569         * modules/sys_ioctl: New file.
45570         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45571
45572 2008-10-09  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45575         * lib/winsock.c: Include <stdarg.h>.
45576         (rpl_ioctl): Change to second argument 'int' and then varargs.
45577
45578 2008-10-09  Bruno Haible  <bruno@clisp.org>
45579
45580         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45581         when the sys_socket module is present and the system has <winsock2.h>.
45582
45583 2008-10-09  Bruno Haible  <bruno@clisp.org>
45584
45585         * doc/posix-functions/close.texi: Mention module 'close' instead of
45586         module 'sys_socket'.
45587
45588 2008-10-09  Bruno Haible  <bruno@clisp.org>
45589
45590         * doc/glibc-headers/sys_ioctl.texi: New file.
45591         * doc/gnulib.texi: Include it.
45592
45593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45594             Bruno Haible  <bruno@clisp.org>
45595
45596         Combine the two replacements of 'close'.
45597         * lib/sys_socket.in.h (close): Define to a reminder to include
45598         <unistd.h>.
45599         (_gl_close_fd_maybe_socket): New declaration.
45600         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45601         * lib/winsock.c (close): Remove undefinition.
45602         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45603         needed for the gnulib module 'close'.
45604         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45605         define to an error symbol or to a warning, if suitable.
45606         * lib/close.c: Include <sys/socket.h>.
45607         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45608         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45609         UNISTD_H_HAVE_WINSOCK2_H.
45610         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45612         UNISTD_H_HAVE_WINSOCK2_H.
45613         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45614         (configure.ac): Set a module indicator.
45615         (Makefile.am): Substitute GNULIB_CLOSE.
45616         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45617         * modules/poll-tests (Depends-on): Add close.
45618         * modules/select-tests (Depends-on): Likewise.
45619
45620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45621             Bruno Haible  <bruno@clisp.org>
45622
45623         New module 'close'.
45624         * modules/close: New file.
45625         * lib/unistd.in.h (close): Move declaration out of the
45626         FCHDIR_REPLACEMENT scope.
45627         (_gl_unregister_fd): New declaration.
45628         * lib/close.c: New file.
45629         * lib/fchdir.c (rpl_close): Remove function.
45630         * m4/close.m4: New file.
45631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45632         close.
45633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45634         REPLACE_CLOSE.
45635         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45636         REPLACE_CLOSE.
45637         * modules/fchdir (Depends-on): Add close.
45638
45639 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45640             Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/fcntl.in.h (open): Simplify conditionals.
45643         (_gl_register_fd): New declaration.
45644         * lib/fchdir.c (rpl_open): Remove function.
45645         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45646         also.
45647         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45649         open.
45650
45651 2008-10-09  Jim Meyering  <meyering@redhat.com>
45652
45653         GNUmakefile: use the more name-space-friendly "_version"
45654         * top/GNUmakefile (_dummy): Update.
45655         (_version): Rename from "version".
45656
45657 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45658             Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45661         rpl_close.
45662         (_gl_register_fd): New function, extracted from rpl_open.
45663         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45664         (rpl_open, rpl_opendir): Use _gl_register_fd.
45665
45666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45667
45668         Fix organization of 'open' replacement.
45669         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45670         (gl_FUNC_OPEN): Use it.
45671         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45672
45673 2008-10-08  Bruno Haible  <bruno@clisp.org>
45674
45675         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45676
45677 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45678
45679         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45680         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45681         listen).
45682
45683 2008-10-08  Eric Blake  <ebb9@byu.net>
45684
45685         GNUmakefile: add 'make version' target
45686         * top/GNUmakefile (_curr-ver): Split version update rules...
45687         (version): ...into a target.
45688
45689 2008-10-07  Bruno Haible  <bruno@clisp.org>
45690
45691         Use a more portable replacement expression for -0.0L.
45692         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45693         instead of -0.0L. Fix m4 quotation.
45694
45695         * tests/test-signbit.c: Include <float.h>.
45696         (minus_zero): New variable.
45697         (test_signbitl): Use minus_zero instead of -zero.
45698         * modules/signbit-tests (Depends-on): Add float.
45699
45700         * tests/test-ceill.c: Include <float.h>.
45701         (zero): Remove variable.
45702         (minus_zero): New variable.
45703         (main): Use minus_zero instead of -zero.
45704         * modules/ceill-tests (Depends-on): Add float.
45705
45706         * tests/test-floorl.c: Include <float.h>.
45707         (zero): Remove variable.
45708         (minus_zero): New variable.
45709         (main): Use minus_zero instead of -zero.
45710         * modules/floorl-tests (Depends-on): Add float.
45711
45712         * tests/test-roundl.c: Include <float.h>.
45713         (zero): Remove variable.
45714         (minus_zero): New variable.
45715         (main): Use minus_zero instead of -zero.
45716         * modules/roundl-tests (Depends-on): Add float.
45717
45718         * tests/test-truncl.c: Include <float.h>.
45719         (zero): Remove variable.
45720         (minus_zero): New variable.
45721         (main): Use minus_zero instead of -zero.
45722         * modules/truncl-tests (Depends-on): Add float.
45723
45724         * tests/test-frexpl.c (zero): Remove variable.
45725         (minus_zero): New variable.
45726         (main): Use minus_zero instead of -zero.
45727         * modules/frexpl-tests (Depends-on): Add float.
45728
45729         * tests/test-isnan.c (zerol): Remove variable.
45730         (minus_zerol): New variable.
45731         (test_long_double): Use minus_zerol instead of -zerol.
45732         * modules/isnan-tests (Depends-on): Add float.
45733
45734         * tests/test-isnanl.h (zero): Remove variable.
45735         (minus_zero): New variable.
45736         (main): Use minus_zero instead of -zero.
45737         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45738         * modules/isnanl-tests (Depends-on): Add float.
45739
45740         * tests/test-ldexpl.c (zero): Remove variable.
45741         (minus_zero): New variable.
45742         (main): Use minus_zero instead of -zero.
45743         * modules/ldexpl-tests (Depends-on): Add float.
45744
45745         * tests/test-snprintf-posix.h (zerol): Remove variable.
45746         (minus_zerol): New variable.
45747         (test_function): Use minus_zerol instead of -zerol.
45748         * modules/snprintf-posix-tests (Depends-on): Add float.
45749         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45750
45751         * tests/test-sprintf-posix.h (zerol): Remove variable.
45752         (minus_zerol): New variable.
45753         (test_function): Use minus_zerol instead of -zerol.
45754         * modules/sprintf-posix-tests (Depends-on): Add float.
45755         * modules/vsprintf-posix-tests (Depends-on): Add float.
45756
45757         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45758         (minus_zerol): New variable.
45759         (test_function): Use minus_zerol instead of -zerol.
45760         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45761
45762         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45763         (minus_zerol): New variable.
45764         (test_function): Use minus_zerol instead of -zerol.
45765         * modules/vasprintf-posix-tests (Depends-on): Add float.
45766
45767 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45768
45769         * MODULES.html.sh (Support for building documentation): Mention
45770         pmccabe2html.  Sort entries.
45771
45772         Add pmccabe2html module, from gnupdf.
45773         * build-aux/pmccabe.css: New file.
45774         * build-aux/pmccabe2html: New file.
45775         * m4/pmccabe2html.m4: New file.
45776         * modules/pmccabe2html: New file.
45777
45778 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45779
45780         flock: new module
45781         * MODULES.html.sh: Add to list of modules.
45782         * lib/flock.c: flock implementation for Windows and Unix systems
45783         which have fcntl.
45784         * doc/glibc-functions/flock.texi: Update documentation.
45785         * lib/sys_file.in.h: <sys/file.h> header file.
45786         * m4/flock.m4: M4 macros.
45787         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45788         * modules/flock: flock module.
45789         * modules/flock-tests: flock tests module.
45790         * modules/sys_file: sys/file.h module.
45791         * tests/test-flock.c: test suite for flock.
45792
45793 2008-10-06  Jim Meyering  <meyering@redhat.com>
45794
45795         bootstrap: check for LT_INIT more portably still ;-)
45796         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45797         Spotted by Bruno Haible.
45798
45799 2008-10-06  Eric Blake  <ebb9@byu.net>
45800
45801         test-signbit: avoid tripping Irix cc bug on -0.0L
45802         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45803         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45804         entire testsuite consistent and avoids an Irix 6.2 bug.
45805
45806 2008-10-05  Bruno Haible  <bruno@clisp.org>
45807             Jim Meyering  <jim@meyering.net>
45808
45809         Add an option for ignoring EPIPE during close_stdout.
45810         * lib/closeout.h: Include <stdbool.h>.
45811         (close_stdout_set_ignore_EPIPE): New declaration.
45812         * lib/closeout.c: Include <stdbool.h>.
45813         (ignore_EPIPE): New variable.
45814         (close_stdout_set_ignore_EPIPE): New function.
45815         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45816         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45817         failure.
45818         * modules/closeout (Depends-on): Add stdbool.
45819
45820 2008-10-05  Bruno Haible  <bruno@clisp.org>
45821
45822         * modules/accept: New file.
45823         * modules/bind: New file.
45824         * modules/connect: New file.
45825         * modules/getpeername: New file.
45826         * modules/getsockname: New file.
45827         * modules/getsockopt: New file.
45828         * modules/listen: New file.
45829         * modules/recv: New file.
45830         * modules/recvfrom: New file.
45831         * modules/send: New file.
45832         * modules/sendto: New file.
45833         * modules/setsockopt: New file.
45834         * modules/socket: New file.
45835         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45836         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45837         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45838         the particular module is requested. Add a link warning when the
45839         particular module is not requested.
45840         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45841         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45842         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45843         the particular module is requested.
45844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45845         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45846         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45847         * modules/sys_socket (Depends-on): Add link-warning.
45848         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45849         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45850         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45851         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45852         GL_LINK_WARNING.
45853         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45854         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45855         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45856         * doc/posix-functions/getpeername.texi: Mention the new module
45857         'getpeername'.
45858         * doc/posix-functions/getsockname.texi: Mention the new module
45859         'getsockname'.
45860         * doc/posix-functions/getsockopt.texi: Mention the new module
45861         'getsockopt'.
45862         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45863         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45864         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45865         * doc/posix-functions/send.texi: Mention the new module 'send'.
45866         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45867         * doc/posix-functions/setsockopt.texi: Mention the new module
45868         'setsockopt'.
45869         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45870         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45871         listen, connect, accept.
45872         * modules/select-tests (Depends-on): Likewise.
45873
45874 2008-10-05  Bruno Haible  <bruno@clisp.org>
45875
45876         * lib/winsock.c (strerror): Remove unused #undef.
45877         (rpl_close): Remove unused local variable.
45878
45879         * modules/sys_socket (Depends-on); Add errno.
45880
45881 2008-10-05  Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45884         (select): Add a link warning when the 'select' module is not used.
45885         * modules/sys_select (Depends-on): Add link-warning.
45886         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45887         Suggested by Paolo Bonzini.
45888
45889 2008-10-05  Jim Meyering  <meyering@redhat.com>
45890
45891         bootstrap: check for LT_INIT more portably
45892         * build-aux/bootstrap: Avoid using grep -E, since it's not
45893         portable enough.  Suggestion from Bruno Haible.
45894
45895 2008-10-05  Bruno Haible  <bruno@clisp.org>
45896
45897         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45898         as being fixed by gnulib.
45899
45900 2008-10-05  Bruno Haible  <bruno@clisp.org>
45901
45902         * modules/select-tests: New file, mostly copied from
45903         modules/sys_select-tests.
45904         * tests/test-select.c: New file, mostly copied from
45905         tests/test-sys_select.c.
45906         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45907         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45908         (Makefile.am): Remove test_sys_select_LDADD.
45909
45910         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45911         to an undefined symbol, for an error message.
45912         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45913         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45914         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45915         winsock-select.c here.
45916         * modules/sys_select (Files): Remove lib/winsock-select.c.
45917         (Depends-on): Remove alloca.
45918         (Makefile.am): Substitute GNULIB_SELECT.
45919         * modules/select: New file.
45920         * doc/posix-functions/select.texi: Update.
45921
45922 2008-10-05  Bruno Haible  <bruno@clisp.org>
45923
45924         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45925         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45926         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45927         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45928         getdtablesize.
45929         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45930         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45931
45932 2008-10-05  Bruno Haible  <bruno@clisp.org>
45933
45934         * modules/getdtablesize-tests: New file.
45935         * tests/test-getdtablesize.c: New file.
45936
45937         New module 'getdtablesize'.
45938         * lib/unistd.in.h (getdtablesize): New declaration.
45939         * lib/getdtablesize.c: New file.
45940         * m4/getdtablesize.m4: New file.
45941         * modules/getdtablesize: New file.
45942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45943         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45944         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45945         HAVE_GETDTABLESIZE.
45946         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45947
45948 2008-10-05  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/sched (Makefile.am): Fix typo.
45951         Reported by Simon Josefsson.
45952
45953 2008-10-05  Jim Meyering  <meyering@redhat.com>
45954
45955         bootstrap: check for LT_INIT, too
45956         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45957         are deprecated.  Suggestion from Ralf Wildenhues.
45958
45959 2008-10-05  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45962         overriding them by ours.
45963         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45964
45965 2008-10-05  Jim Meyering  <meyering@redhat.com>
45966
45967         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45968         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45969         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45970
45971 2008-10-04  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/dup2 (License): Change to LGPLv2+.
45974         * modules/sleep (License): Likewise.
45975         * modules/perror (License): Likewise.
45976         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45977         Blake.
45978         * modules/signal (License): Likewise.
45979         * modules/sigprocmask (License): Likewise.
45980         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45981         Meyering.
45982
45983 2008-10-04  Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45986         Reported by Rainer Tammer <tammer@tammer.net>.
45987
45988 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45989             Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45992         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45993         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45994
45995 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45996
45997         filevercmp: new module
45998         * lib/filevercmp.h: New function filevercmp comparing version strings.
45999         * lib/filevercmp.c: Implementation of filevercmp function.
46000         * modules/filevercmp: Module metadata.
46001         * tests/test-filevercmp.c: Unit test for new module.
46002         * modules/filevercmp-tests: Unit test metadata.
46003         * MODULES.html.sh: Add filevercmp module.
46004
46005 2008-10-03  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/c-ctype.h: Add comment.
46008         Reported by Jim Meyering.
46009
46010 2008-10-02  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46013
46014 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46015
46016         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46017         name of bootstrap.conf accordingly.
46018
46019 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46020
46021         * build-aux/bootstrap: Install git-merge-changelog configuration
46022         items into .gitconfig if needed.
46023
46024 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46025
46026         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46027         git repository, and initialize/update it accordingly.
46028
46029 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46030
46031         * modules/fsync-tests: New file.
46032         * tests/test-fsync.c: New file.
46033
46034         New module 'fsync'.
46035         * lib/fsync.c: New file.
46036         * m4/fsync.m4: New file.
46037         * modules/fsync: New file.
46038         * lib/unistd.in.h (fsync): New declaration.
46039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46040         GNULIB_FSYNC and HAVE_FSYNC.
46041         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46042         * MODULES.html.sh (posix_functions): Add fsync.
46043         * doc/posix-functions/fsync.texi: Mention the new module.
46044
46045 2008-10-02  Jim Meyering  <meyering@redhat.com>
46046
46047         fts.c: sync with similar code from coreutils' remove.c
46048         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46049         Guard also with "#if defined __linux__", since for now at least,
46050         this code is Linux-kernel-specific.
46051
46052 2008-10-02  Jim Meyering  <meyering@redhat.com>
46053
46054         fts: bug fixes
46055         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46056         Include <sys/vfs.h>, not <sys/statfs.h>.
46057
46058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46059         Include <sys/vfs.h>, not <sys/statfs.h>.
46060
46061 2008-10-01  Bruno Haible  <bruno@clisp.org>
46062
46063         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46065         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46066         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46067         * doc/posix-functions/posix_spawnp.texi: Likewise.
46068         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46069         whether posix_spawn actually works.
46070         * m4/pipe.m4 (gl_PIPE): Likewise.
46071         * modules/execute (Files): Add m4/posix_spawn.m4.
46072         * modules/pipe (Files): Add m4/posix_spawn.m4.
46073         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46074
46075 2008-10-01  Jim Meyering  <meyering@redhat.com>
46076
46077         remove trailing spaces
46078         * NEWS: Likewise.
46079         * lib/poll.c (poll): Likewise.
46080         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46081         * lib/winsock.c (rpl_close): Likewise.
46082         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46083         * modules/yield: Likewise.
46084         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46085         * tests/test-sys_select.c (connect_to_socket): Likewise.
46086
46087         fts.c: adjust a new interface to be more generally useful
46088         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46089         (fts_build): Adjust caller.
46090
46091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46092
46093         * modules/cond-tests: New file.
46094         * tests/test-cond.c: New file.
46095
46096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46097             Bruno Haible  <bruno@clisp.org>
46098
46099         * modules/cond (Dependencies): Add errno, time.
46100         * lib/glthread/cond.h: Include <time.h>.
46101         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46102         across platforms.
46103
46104 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46105             Bruno Haible  <bruno@clisp.org>
46106
46107         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46108
46109 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46110             Bruno Haible  <bruno@clisp.org>
46111
46112         * modules/tls-tests (Depends-on): Add thread, yield.
46113         (configure.ac): Remove all checks.
46114         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46115         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46116         gl_thread_self): Remove definitions. Include glthread/thread.h and
46117         glthread/yield.h instead.
46118         (test_tls): Pass an additional NULL argument to gl_thread_join.
46119
46120 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46121             Bruno Haible  <bruno@clisp.org>
46122
46123         * modules/lock-tests (Depends-on): Add thread, yield.
46124         (configure.ac): Remove all checks.
46125         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46126         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46127         gl_thread_self): Remove definitions. Include glthread/thread.h and
46128         glthread/yield.h instead.
46129         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46130         additional NULL argument to gl_thread_join.
46131
46132 2008-09-30  Bruno Haible  <bruno@clisp.org>
46133
46134         Fix the Win32 implementation of the 'thread' module.
46135         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46136         pointer type.
46137         (gl_thread_self): Invoke gl_thread_self_func.
46138         (gl_thread_self_func): New declaration.
46139         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46140         (do_init_self_key, init_self_key): New functions.
46141         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46142         Remove some fields.
46143         (running_threads, running_lock): Remove variables.
46144         (get_current_thread_handle): New function.
46145         (gl_thread_self_func, wrapper_func, glthread_create_func,
46146         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46147         simplified.
46148
46149 2008-09-30  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46152         files.
46153
46154 2008-09-30  Jim Meyering  <meyering@redhat.com>
46155
46156         fts.m4: correct the test for statfs.f_type
46157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46158         when checking for statfs.f_type.
46159
46160 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46161
46162         tests: avoid some compiler warnings
46163         * tests/test-memchr.c (main): Pass NULL indirectly.
46164         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46165
46166 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46167
46168         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46169         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46170         exactly specified dayshifts.
46171         (dayshift): New rule.
46172         (rel): Add dayshift.
46173         (relative_time_table) [tomorrow, yesterday, today, now]:
46174         Use tDAY_SHIFT in place of tDAY_UNIT.
46175         * tests/test-getdate.c: Add tests for now-disallowed countable
46176         dayshifts, e.g., "4 yesterday ago".
46177
46178 2008-09-29  Bruno Haible  <bruno@clisp.org>
46179
46180         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46181         * tests/test-posix_spawn1.in.sh: Renamed from
46182         tests/test-posix_spawn.in.sh.
46183         * tests/test-posix_spawn2.c: New file.
46184         * tests/test-posix_spawn2.in.sh: New file.
46185         * modules/posix_spawnp-tests (Files): Update.
46186         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46187
46188 2008-09-29  Bruno Haible  <bruno@clisp.org>
46189
46190         Propagate effects of putenv/setenv/unsetenv to child processes.
46191         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46192         * lib/pipe.c (create_pipe): Likewise.
46193
46194 2008-09-29  Bruno Haible  <bruno@clisp.org>
46195
46196         Enable use of shell scripts as executables in mingw.
46197         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46198         run the program as a shell script.
46199         * lib/pipe.c (create_pipe): Likewise.
46200         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46201         resulting array.
46202
46203 2008-09-29  Eric Blake  <ebb9@byu.net>
46204
46205         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46206
46207 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46208
46209         * doc/posix-functions/accept.texi: Update mingw problems.
46210         * doc/posix-functions/bind.texi: Update mingw problems.
46211         * doc/posix-functions/close.texi: Update mingw problems.
46212         * doc/posix-functions/connect.texi: Update mingw problems.
46213         * doc/posix-functions/getpeername.texi: Update mingw problems.
46214         * doc/posix-functions/getsockname.texi: Update mingw problems.
46215         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46216         * doc/posix-functions/ioctl.texi: Update mingw problems.
46217         * doc/posix-functions/listen.texi: Update mingw problems.
46218         * doc/posix-functions/recv.texi: Update mingw problems.
46219         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46220         * doc/posix-functions/select.texi: Update mingw problems.
46221         * doc/posix-functions/send.texi: Update mingw problems.
46222         * doc/posix-functions/sendto.texi: Update mingw problems.
46223         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46224         * doc/posix-functions/socket.texi: Update mingw problems.
46225
46226 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46227             Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/sys_select.in.h: Include sys/time.h.
46230         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46231         * modules/sys_select: Depend on sys_time.
46232         * tests/test-sys_select.c: Test that sys/select.h defines struct
46233         timeval fully.
46234
46235 2008-09-29  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46238         * lib/sys_select.in.h: Likewise.
46239
46240 2008-09-29  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46243
46244 2008-09-29  Bruno Haible  <bruno@clisp.org>
46245
46246         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46247         Set LIBSOCKET instead of augmenting LIBS.
46248         * modules/sockets (Link): New section.
46249         * modules/sockets-tests (test_sockets_LDADD): New variable.
46250         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46251         * modules/poll-tests (test_poll_LDADD): New variable.
46252         * NEWS: Document the change.
46253
46254 2008-09-29  Bruno Haible  <bruno@clisp.org>
46255
46256         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46257         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46258         ARPA_INET_H directly.
46259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46260
46261 2008-09-28  Bruno Haible  <bruno@clisp.org>
46262
46263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46264         from gl_HEADER_SYS_SOCKET.
46265         (gl_HEADER_SYS_SOCKET): Invoke it.
46266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46267
46268 2008-09-28  Bruno Haible  <bruno@clisp.org>
46269
46270         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46271         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46272         Needed on OSF/1 4.0.
46273
46274 2008-09-28  Bruno Haible  <bruno@clisp.org>
46275
46276         Override open more carefully.
46277         * lib/open.c (orig_open): New function.
46278         (rpl_open): Use orig_open instead of open.
46279         * lib/fcntl.in.h: Add special invocation convention.
46280         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46281         (gl_FUNC_OPEN): Invoke it.
46282
46283         Override freopen more carefully.
46284         * lib/freopen.c (orig_freopen): New function.
46285         (rpl_freopen): Use orig_freopen instead of freopen.
46286         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46287         (gl_FUNC_FREOPEN): Invoke it.
46288
46289         Override fopen more carefully.
46290         * lib/fopen.c (orig_fopen): New function.
46291         (rpl_fopen): Use orig_fopen instead of fopen.
46292         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46293         (gl_FUNC_FOPEN): Invoke it.
46294         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46295
46296 2008-09-28  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46299         SIGPIPE.
46300
46301 2008-09-28  Bruno Haible  <bruno@clisp.org>
46302
46303         * tests/test-sigaction.c (handler, main): Disable the check whether
46304         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46305         glibc systems with LinuxThreads.
46306
46307 2008-09-28  Bruno Haible  <bruno@clisp.org>
46308
46309         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46310
46311         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46312         with AIX xlc.
46313         * lib/fcntl.in.h (open): Likewise.
46314         Reported by Rainer Tammer <tammer@tammer.net>.
46315
46316 2008-09-28  Bruno Haible  <bruno@clisp.org>
46317
46318         * modules/posix_spawnp-tests: New file.
46319         * tests/test-posix_spawn.c: New file.
46320         * tests/test-posix_spawn.in.sh: New file.
46321
46322         New module 'posix_spawnp'.
46323         * modules/posix_spawnp: New file.
46324         * lib/spawnp.c: New file, from GNU libc with modifications.
46325         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46326
46327         New module 'posix_spawn'.
46328         * modules/posix_spawn: New file.
46329         * lib/spawn.c: New file, from GNU libc with modifications.
46330         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46331
46332         New module 'posix_spawnattr_destroy'.
46333         * modules/posix_spawnattr_destroy: New file.
46334         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46335         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46336         module.
46337
46338         New module 'posix_spawnattr_setsigmask'.
46339         * modules/posix_spawnattr_setsigmask: New file.
46340         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46341         modifications.
46342         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46343         new module.
46344
46345         New module 'posix_spawnattr_getsigmask'.
46346         * modules/posix_spawnattr_getsigmask: New file.
46347         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46348         modifications.
46349         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46350         new module.
46351
46352         New module 'posix_spawnattr_setsigdefault'.
46353         * modules/posix_spawnattr_setsigdefault: New file.
46354         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46355         modifications.
46356         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46357         new module.
46358
46359         New module 'posix_spawnattr_getsigdefault'.
46360         * modules/posix_spawnattr_getsigdefault: New file.
46361         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46362         modifications.
46363         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46364         new module.
46365
46366         New module 'posix_spawnattr_setschedpolicy'.
46367         * modules/posix_spawnattr_setschedpolicy: New file.
46368         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46369         modifications.
46370         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46371         new module.
46372
46373         New module 'posix_spawnattr_getschedpolicy'.
46374         * modules/posix_spawnattr_getschedpolicy: New file.
46375         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46376         modifications.
46377         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46378         new module.
46379
46380         New module 'posix_spawnattr_setschedparam'.
46381         * modules/posix_spawnattr_setschedparam: New file.
46382         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46383         modifications.
46384         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46385         new module.
46386
46387         New module 'posix_spawnattr_getschedparam'.
46388         * modules/posix_spawnattr_getschedparam: New file.
46389         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46390         modifications.
46391         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46392         new module.
46393
46394         New module 'posix_spawnattr_setpgroup'.
46395         * modules/posix_spawnattr_setpgroup: New file.
46396         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46397         modifications.
46398         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46399         module.
46400
46401         New module 'posix_spawnattr_getpgroup'.
46402         * modules/posix_spawnattr_getpgroup: New file.
46403         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46404         modifications.
46405         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46406         module.
46407
46408         New module 'posix_spawnattr_setflags'.
46409         * modules/posix_spawnattr_setflags: New file.
46410         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46411         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46412         module.
46413
46414         New module 'posix_spawnattr_getflags'.
46415         * modules/posix_spawnattr_getflags: New file.
46416         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46417         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46418         module.
46419
46420         New module 'posix_spawnattr_init'.
46421         * modules/posix_spawnattr_init: New file.
46422         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46423         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46424         module.
46425
46426         New module 'posix_spawn_file_actions_destroy'.
46427         * modules/posix_spawn_file_actions_destroy: New file.
46428         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46429         modifications.
46430         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46431         the new module.
46432
46433         New module 'posix_spawn_file_actions_addopen'.
46434         * modules/posix_spawn_file_actions_addopen: New file.
46435         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46436         modifications.
46437         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46438         the new module.
46439
46440         New module 'posix_spawn_file_actions_adddup2'.
46441         * modules/posix_spawn_file_actions_adddup2: New file.
46442         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46443         modifications.
46444         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46445         the new module.
46446
46447         New module 'posix_spawn_file_actions_addclose'.
46448         * modules/posix_spawn_file_actions_addclose: New file.
46449         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46450         modifications.
46451         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46452         the new module.
46453
46454         New module 'posix_spawn_file_actions_init'.
46455         * modules/posix_spawn_file_actions_init: New file.
46456         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46457         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46458         new module.
46459
46460         New module 'posix_spawn-internal'.
46461         * modules/posix_spawn-internal: New file.
46462         * lib/spawn_int.h: New file, from GNU libc with modifications.
46463         * lib/spawni.c: New file, from GNU libc with modifications.
46464         * m4/posix_spawn.m4: New file.
46465
46466         New module 'spawn'.
46467         * modules/spawn: New file.
46468         * lib/spawn.in.h: New file, from GNU libc with modifications.
46469         * m4/spawn_h.m4: New file.
46470         * doc/posix-headers/spawn.texi: Mention the new module.
46471
46472 2008-09-28  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/sched-tests: New file.
46475         * tests/test-sched.c: New file.
46476
46477         New module 'sched'.
46478         * modules/sched: New file.
46479         * lib/sched.in.h: New file.
46480         * m4/sched_h.m4: New file.
46481         * doc/posix-headers/sched.texi: Mention the new module.
46482
46483 2008-09-27  Eric Blake  <ebb9@byu.net>
46484
46485         Fix previous patch, and tweak references to $0.
46486         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46487         (func_version, func_gnulib_dir): Don't call this program
46488         gnulib-tool.
46489         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46490         with using $0 in function.
46491         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46492         (func_fatal_error): Reuse the name the user invoked us with.
46493
46494 2008-09-27  Bruno Haible  <bruno@clisp.org>
46495
46496         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46497         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46498         (gl_ICONV_H): Not here.
46499         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46500         instead of assigning ICONV_H directly.
46501
46502         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46504         WCHAR_H directly.
46505
46506 2008-09-27  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46509         * modules/arpa_inet (Depends-on): Add link-warning.
46510         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46511         * modules/unistd (Makefile.am): Likewise.
46512
46513 2008-09-26  Bruno Haible  <bruno@clisp.org>
46514
46515         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46516         variables.
46517         (func_version): Essentially copied from gnulib-tool.
46518         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46519         func_readlink): Copied from gnulib-tool.
46520
46521 2008-09-26  Bruno Haible  <bruno@clisp.org>
46522
46523         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46524         invoking git-version-gen.
46525
46526 2008-09-26  Bruno Haible  <bruno@clisp.org>
46527
46528         * posix-modules: Update to directory names changed on 2008-01-19.
46529         Remove commas in output before splitting into words. No more need to
46530         avoid 'ftruncate' since 2007-02-19.
46531
46532 2008-09-26  Bruno Haible  <bruno@clisp.org>
46533
46534         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46535
46536 2008-09-26  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46539         * modules/fwriteerror (Depends-on): Add errno.
46540
46541 2008-09-26  Bruno Haible  <bruno@clisp.org>
46542
46543         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46544         * tests/test-vc-list-files-cvs.sh: Likewise.
46545
46546 2008-09-26  Bruno Haible  <bruno@clisp.org>
46547
46548         * doc/posix-headers/sys_resource.texi: Reorder items.
46549
46550 2008-09-26  Jim Meyering  <meyering@redhat.com>
46551
46552         fts: tweak inode comparison function
46553         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46554         inode numbers, as documented.
46555
46556         fts: sort dirent entries on inode number before traversing
46557         This avoids a quadratic, seek-related performance penalty when
46558         operating on a directory containing many entries (measurable at 10k;
46559         3.5 hours at 2 million entries with a cold cache) on certain types
46560         of file systems, including ext3 and ext4, but not tmpfs.
46561         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46562         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46563         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46564         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46565         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46566         (fts_build): Set the stat.st_ino member from D_INO.
46567         If it is likely to be useful, sort dirent entries on inode number.
46568
46569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46570         and the struct statfs.f_type member.
46571         * modules/fts (Depends-on): Add d-ino.
46572
46573 2008-09-26  Bruno Haible  <bruno@clisp.org>
46574
46575         * modules/sigpipe-die (Depends-on): Add sigpipe.
46576
46577         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46578         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46579         and GNULIB_STDIO_H_SIGPIPE are set.
46580         * lib/stdio-write.c: New file.
46581         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46582         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46583         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46584         REPLACE_STDIO_WRITE_FUNCS.
46585         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46588         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46589         * modules/stdio (Files): Add lib/stdio-write.c.
46590         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46593         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46594         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46595         REPLACE_FPRINTF_POSIX.
46596         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46597         REPLACE_PRINTF_POSIX.
46598         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46599         REPLACE_VFPRINTF_POSIX.
46600         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46601         REPLACE_VPRINTF_POSIX.
46602         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46603         SIGPIPE issue.
46604         * doc/posix-functions/fputc.texi: Likewise.
46605         * doc/posix-functions/fputs.texi: Likewise.
46606         * doc/posix-functions/fwrite.texi: Likewise.
46607         * doc/posix-functions/printf.texi: Likewise.
46608         * doc/posix-functions/putc.texi: Likewise.
46609         * doc/posix-functions/putchar.texi: Likewise.
46610         * doc/posix-functions/puts.texi: Likewise.
46611         * doc/posix-functions/vfprintf.texi: Likewise.
46612         * doc/posix-functions/vprintf.texi: Likewise.
46613
46614         * modules/safe-write (Depends-on): Add write.
46615
46616         * modules/sigpipe-tests: New file.
46617         * tests/test-sigpipe.c: New file.
46618         * tests/test-sigpipe.sh: New file.
46619
46620         * modules/write: New file.
46621         * lib/unistd.in.h: Include <sys/types.h>.
46622         (write): New declaration.
46623         * lib/write.c: New file.
46624         * m4/write.m4: New file.
46625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46626         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46627         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46628         GNULIB_WRITE, REPLACE_WRITE.
46629         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46630         and the SIGPIPE issue.
46631
46632         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46633         (raise): New declaration.
46634         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46635         (ext_signal): New function.
46636         (rpl_raise): New function.
46637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46638         GNULIB_SIGNAL_H_SIGPIPE.
46639         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46640         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46641
46642         * modules/sigpipe: New file.
46643         * m4/sigpipe.m4: New file.
46644
46645 2008-09-25  Derek Price  <derek@ximbiot.com>
46646             Bruno Haible  <bruno@clisp.org>
46647
46648         * gnulib-tool (func_import): Report all license incompatibilities, not
46649         just the first one.
46650
46651 2008-09-25  Bruno Haible  <bruno@clisp.org>
46652
46653         * gnulib-tool (func_import): When computing the edits, consider not
46654         only the Makefile.ams that exist but also those that will be generated.
46655
46656 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46657
46658         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46659         fixes gnulib-tool --test warning about duplicate dependency.
46660
46661 2008-09-25  Bruno Haible  <bruno@clisp.org>
46662
46663         * gnulib-tool: Don't ask the user to perform edits in the generated
46664         Makefile.ams.
46665         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46666         apply to the Makefile.am being generated.
46667         (func_emit_tests_Makefile_am): Execute edits that apply to the
46668         Makefile.am being generated.
46669         (func_import): Setup list of Makefile.am edits before emitting the
46670         Makefile.ams, not at the end.
46671         (func_create_testdir): Update.
46672         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46673
46674 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46675
46676         * gnulib-tool (func_import): Store the --tests-base option in the
46677         comment in gnulib-cache.m4.
46678
46679 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46680
46681         * NEWS: Document increased portability that sys_select now provides.
46682
46683         * lib/sys_select.in.h: Install select wrapper.
46684         * lib/sys_socket.in.h: Use more descriptive name when there is no
46685         select wrapper.
46686         * lib/winsock-select.c: New.
46687         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46688         Require gl_HEADER_SYS_SOCKET.
46689         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46690         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46691         * tests/test-sys_select.c: Add functional tests.
46692
46693 2008-09-24  Eric Blake  <ebb9@byu.net>
46694
46695         open, fopen: close fd leak in last patch
46696         * lib/open.c (rpl_open): Close fd before returning error.
46697         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46698         * doc/posix-functions/open.texi (open): Document that Irix also
46699         has the bug.
46700         * doc/posix-functions/fopen.texi (fopen): Likewise.
46701         Reported by Paolo Bonzini.
46702
46703 2008-09-24  Bruno Haible  <bruno@clisp.org>
46704
46705         Ensure that a filename ending in a slash cannot be used to access a
46706         non-directory.
46707         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46708         to check whether it's really a directory.
46709         * lib/fopen.c: Include fcntl.h, unistd.h.
46710         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46711         and fdopen().
46712         * modules/fopen (Depends-on): Add unistd.
46713         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46714         * tests/test-fopen.c (main): Likewise.
46715         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46716         * doc/posix-functions/fopen.texi: Likewise.
46717         Reported by Eric Blake.
46718
46719 2008-09-23  Eric Blake  <ebb9@byu.net>
46720
46721         c-stack: avoid compiler optimizations when provoking overflow
46722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46723         recursion harder to optimize, to ensure a stack overflow occurs.
46724         * tests/test-c-stack.c (recurse): Likewise.
46725         Borrowed from libsigsegv.
46726
46727         c-stack: work around Irix sigaltstack bug
46728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46729         whether sigaltstack uses wrong end of stack_t (copied in part from
46730         libsigsegv).
46731         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46732         Irix bug, without requiring an over-allocation.
46733         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46734         bug.
46735
46736         fopen: document mingw bug on directories
46737         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46738         not allowing a stream visiting a directory, even though reading
46739         from such a stream is not portable.
46740
46741 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46742
46743         * lib/poll.c: Rewrite.
46744         * modules/poll: Depend on alloca.
46745
46746 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46747
46748         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46749         instead define prototypes for a full set of wrappers.  Ensure
46750         that Cygwin does not use the compatibility code, which is only
46751         for MinGW.
46752         * lib/winsock.c: New.
46753         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46754         * modules/sys_socket: Add lib/winsock.c.
46755
46756         * modules/poll-tests: Add errno and perror.
46757         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46758
46759 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46760
46761         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46762
46763 2008-09-23  Bruno Haible  <bruno@clisp.org>
46764
46765         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46766         * doc/glibc-functions/*: Likewise.
46767
46768 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46769
46770         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46771         success.
46772
46773 2008-09-22  Eric Blake  <ebb9@byu.net>
46774             Bruno Haible  <bruno@clisp.org>
46775
46776         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46777         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46778         supply %A but mishandle pseudo-NaN.
46779         Reported by Simon Josefsson.
46780
46781 2008-09-21  Bruno Haible  <bruno@clisp.org>
46782
46783         * tests/test-lock.c (main): Tweak skip message.
46784         * tests/test-tls.c (main): Likewise.
46785
46786 2008-09-21  Bruno Haible  <bruno@clisp.org>
46787
46788         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46789         whether 'struct sigaction' has sa_sigaction here...
46790         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46791         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46792
46793 2008-09-21  Bruno Haible  <bruno@clisp.org>
46794
46795         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46796         section.
46797         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46798         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46799         the new section.
46800         (Support for obsolete systems lacking POSIX:2001): New section.
46801         (String handling <string.h>): Move strdup to the new section.
46802         Suggested by Simon Josefsson and Paolo Bonzini.
46803
46804 2008-09-21  Bruno Haible  <bruno@clisp.org>
46805
46806         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46807         exponents in %e and %g results on 'long double'. Needed for mingw's
46808         improved *printf functions.
46809         * tests/test-vasprintf-posix.c (test_function): Likewise.
46810         * tests/test-snprintf-posix.h (test_function): Likewise.
46811         * tests/test-sprintf-posix.h (test_function): Likewise.
46812         Reported by Eric Blake.
46813
46814 2008-09-21  Bruno Haible  <bruno@clisp.org>
46815
46816         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46817         * tests/test-sprintf-posix.h (test_function): Likewise.
46818
46819 2008-09-21  Bruno Haible  <bruno@clisp.org>
46820
46821         * modules/getpass (Depends-on): Add strdup-posix.
46822
46823         New module 'strdup-posix'.
46824         * modules/strdup-posix: New file.
46825         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46826         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46828         REPLACE_STRDUP.
46829         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46830         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46832         strdup-posix.
46833
46834         * modules/strdup (Depends-on): Remove malloc-posix.
46835
46836 2008-09-20  Bruno Haible  <bruno@clisp.org>
46837
46838         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46839         Wildenhues.
46840
46841 2008-09-20  Bruno Haible  <bruno@clisp.org>
46842
46843         Ensure that wint_t gets defined on IRIX 5.3.
46844         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46845         * lib/wctype.in.h (wint_t): Likewise.
46846         (__wctype_wint_t): Remove type.
46847         (isw*): Use wint_t instead of __wctype_wint_t.
46848         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46849         * modules/wchar (Files): Add m4/wint_t.m4.
46850         (Makefile.am): Substitute HAVE_WINT_T.
46851         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46852         * tests/test-wctype.c: Check that wint_t is defined.
46853         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46854         * doc/posix-headers/wctype.texi: Likewise.
46855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46856
46857 2008-09-18  Bruno Haible  <bruno@clisp.org>
46858
46859         * gnulib-tool (func_exit): Update comment.
46860
46861 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46862
46863         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46864         assumes strdup exists and does not depend on strdup to return
46865         ENOMEM on out of memory conditions.
46866
46867 2008-09-18  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46870         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46871         digits for the exponent.
46872
46873 2008-09-18  Jim Meyering  <meyering@redhat.com>
46874             Bruno Haible  <bruno@clisp.org>
46875
46876         * lib/vasnprintf.c (decimal_point_char): Define also if
46877         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46878
46879 2008-09-16  Bruno Haible  <bruno@clisp.org>
46880         and Eric Blake  <ebb9@byu.net>
46881
46882         vasnprintf: support Irix 5.3
46883         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46884         that mishandle long double infinity.
46885         Reported by Tom G. Christensen.
46886
46887 2008-09-16  Bruno Haible  <bruno@clisp.org>
46888
46889         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46890         Solaris 9.
46891         * doc/glibc-functions/alphasort.texi: Likewise.
46892         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46893
46894 2008-09-16  Jim Meyering  <meyering@redhat.com>
46895
46896         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46897         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46898         a umask modification leak out of a subshell.  Otherwise, the
46899         opensolaris /bin/sh would be accepted and thus cause unwarranted
46900         failures in the coreutils test suite.
46901
46902 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46903
46904         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46905         to succeed.
46906
46907 2008-09-16  Jim Meyering  <meyering@redhat.com>
46908
46909         avoid spurious test failure when library is built without ACL support
46910         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46911         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46912         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46913         * tests/test-copy-acl.sh: Likewise.
46914
46915 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46916
46917         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46918         based on character occurrence counts.
46919
46920 2008-09-15  Eric Blake  <ebb9@byu.net>
46921
46922         tests: avoid some compiler warnings
46923         * tests/test-memchr.c (main): Pass NULL indirectly.
46924         * tests/test-closein.c (main): Avoid unused variable.
46925
46926 2008-09-15  Bruno Haible  <bruno@clisp.org>
46927
46928         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46929         are missing on OpenBSD 4.0 individually.
46930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46931
46932 2008-09-15  Bruno Haible  <bruno@clisp.org>
46933
46934         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46935         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46936         * doc/posix-functions/perror.texi: Likewise.
46937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46938         is missing.
46939         Reported by Eric Blake.
46940
46941         * lib/errno.in.h: Use replacement values >= 2000.
46942         Reported by Eric Blake.
46943
46944 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46945
46946         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46947         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46948         limit.
46949         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46950         compareseq was aborted.
46951
46952 2008-09-14  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46955         yvec_edit_count.
46956         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46957         (fstrcmp_bounded): Simplify result computation accordingly.
46958
46959 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46960
46961         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46962         (fstrcmp): Define in terms of fstrcmp_bounded.
46963         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46964         lower_bound argument.
46965         Return quickly if the result is certainly < lower_bound.
46966         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46967
46968 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46969
46970         * lib/diffseq.h (EARLY_ABORT): New macro.
46971         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46972         evaluates to true.
46973
46974 2008-09-14  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/perror-tests: New file.
46977         * tests/test-perror.sh: New file.
46978         * tests/test-perror.c: New file.
46979
46980         New module 'perror'.
46981         * lib/stdio.in.h (perror): New declaration.
46982         * lib/perror.c: New file.
46983         * m4/perror.m4: New file.
46984         * modules/perror: New file.
46985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46986         * doc/posix-functions/perror.texi: Mention the perror module.
46987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46988         REPLACE_PERROR.
46989         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46990         REPLACE_PERROR.
46991
46992 2008-09-14  Bruno Haible  <bruno@clisp.org>
46993
46994         * modules/stdio (Makefile.am): Reorder to match the order in
46995         lib/stdio.in.h.
46996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46997
46998 2008-09-13  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47001
47002 2008-09-13  Bruno Haible  <bruno@clisp.org>
47003
47004         Extend strerror to cover the added errno values.
47005         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47006         (rpl_strerror): Provide error messages for the added errno values and
47007         for the WSA* values.
47008         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47009         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47010         strerror.
47011         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47012         * modules/strerror (Depends-on): Add errno.
47013         * doc/posix-functions/strerror.texi: Document the change.
47014         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47015         and EOVERFLOW.
47016
47017 2008-09-13  Bruno Haible  <bruno@clisp.org>
47018
47019         * modules/EOVERFLOW: Remove file.
47020         * m4/eoverflow.m4: Remove file.
47021         * modules/EOVERFLOW-tests: Remove file.
47022         * tests/test-EOVERFLOW.c: Remove file.
47023         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47024         * modules/ftell (Depends-on): Likewise.
47025         * modules/getdelim (Depends-on): Likewise.
47026         * modules/getugroups (Depends-on): Likewise.
47027         * modules/poll (Depends-on): Likewise.
47028         * modules/snprintf (Depends-on): Likewise.
47029         * modules/sprintf-posix (Depends-on): Likewise.
47030         * modules/vasnprintf (Depends-on): Likewise.
47031         * modules/vasprintf (Depends-on): Likewise.
47032         * modules/vfprintf-posix (Depends-on): Likewise.
47033         * modules/vsnprintf (Depends-on): Likewise.
47034         * modules/vsprintf-posix (Depends-on): Likewise.
47035         * modules/xvasprintf (Depends-on): Likewise.
47036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47037         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47038         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47039         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47041         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47042         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47043         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47045         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47046         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47047         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47048         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47049         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47050         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47051         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47053         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47054         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47055         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47056         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47057         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47058         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47059         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47060         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47062         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47063         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47064         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47065         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47066         * MODULES.html.sh: Remove EOVERFLOW.
47067         * NEWS: Mention the change.
47068
47069 2008-09-13  Bruno Haible  <bruno@clisp.org>
47070
47071         * modules/errno-tests: New file.
47072         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47073
47074         * lib/errno.in.h: New file.
47075         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47076         * modules/errno: New file.
47077         * doc/posix-headers/errno.texi: Update documentation.
47078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47079
47080 2008-09-13  Bruno Haible  <bruno@clisp.org>
47081
47082         * tests/test-poll.c: Use #if for native Windows, rather than testing
47083         __MSVCRT__.
47084
47085 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47086             Bruno Haible  <bruno@clisp.org>
47087
47088         * lib/glob.c: Don't include <pwd.h> on native Windows.
47089         (WINDOWS32): New macro.
47090         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47091
47092 2008-09-13  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47095         (ETIMEDOUT): Remove macro.
47096         (glthread_cond_timedwait_multithreaded): New declaration.
47097         (glthread_cond_timedwait): Use it.
47098         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47099         (glthread_cond_timedwait_multithreaded): New function.
47100
47101 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47102
47103         * modules/poll-tests: Do not check for io.h.
47104         * tests/test-poll.c: Check for __MSVCRT__ instead.
47105
47106 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47107
47108         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47109         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47110         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47111
47112 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47113
47114         * modules/poll-tests: New.
47115         * tests/test-poll.c: New.
47116
47117 2008-09-12  Eric Blake  <ebb9@byu.net>
47118
47119         frexp: test for NetBSD failure on -0.0
47120         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47121         not all, bugs from NetBSD 3.0 have been fixed.
47122         * doc/posix-functions/frexp.texi (frexp): Document bug.
47123         Reported by Thomas Klausner.
47124
47125         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47126         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47127         literal -0.0.
47128         Reported by Jonathan C. Patschke <jp@centtech.com>.
47129
47130 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47131
47132         * lib/glthread/cond.h: Use dummy implementation also if
47133         USE_WIN32_THREADS.
47134
47135 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47136
47137         * modules/fnmatch-posix (License): Change to LGPLv2+.
47138         * modules/fnmatch-gnu (License): Likewise.
47139
47140 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47141
47142         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47143
47144 2008-09-11  Jim Meyering  <meyering@redhat.com>
47145
47146         * users.txt: Add gtk-vnc.
47147
47148 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47149
47150         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47151         rotate amounts.
47152
47153         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47154         required for 16-bit and 8-bit rotates.
47155         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47156         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47157         UINT8_MAX instead of hard-coded constants.
47158         Suggested by Paul Eggert.
47159
47160 2008-09-07  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/test-striconveh.c (main): Check behaviour when converting from
47163         UTF-7.
47164
47165         Make striconveh work better with stateful encodings.
47166         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47167         that iconv does not increment the inptr when returning -1/EINVAL.
47168
47169 2008-09-07  Bruno Haible  <bruno@clisp.org>
47170
47171         * build-aux/config.rpath: Update according to libtool-2.2.6.
47172         * build-aux/config.libpath: Likewise.
47173
47174 2008-09-06  Bruno Haible  <bruno@clisp.org>
47175
47176         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47177         * lib/freadptr.c (freadptr): Likewise.
47178         * lib/freadseek.c (freadptrinc): Likewise.
47179         Reported by Simon Josefsson.
47180
47181 2008-09-06  Bruno Haible  <bruno@clisp.org>
47182
47183         * modules/freadptr (License): Change to LGPLv2+.
47184         * modules/freadseek (License): Likewise.
47185         Suggested by Eric Blake.
47186
47187         * modules/memchr2 (License): Change to LGPLv2+.
47188         Approved by Eric Blake.
47189
47190 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47191             Bruno Haible  <bruno@clisp.org>
47192
47193         Make gnulib-tool work with native 'sed' on AIX.
47194         * gnulib-tool (sed_noop): New variable.
47195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47196         func_add_or_update, func_create_testdir): Use it to initialize sed
47197         script variables.
47198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47199
47200 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47201             Bruno Haible  <bruno@clisp.org>
47202
47203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47204         also works after #include directives.
47205
47206 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47207
47208         getdate.y: reject an out-of-range timezone value
47209         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47210         the range [-24...+24].  When specified with only one or two digits,
47211         * tests/test-getdate.c: Tests for the fix.
47212         * doc/getdate.texi: Document this change.
47213
47214 2008-09-03  Bruno Haible  <bruno@clisp.org>
47215
47216         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47217
47218 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47219
47220         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47221         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47222         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47223         Blake <ebb9@byu.net>.
47224
47225         * tests/test-bitrotate.c: Add more test vectors.
47226
47227 2008-09-02  Eric Blake  <ebb9@byu.net>
47228
47229         vasnprintf-posix: handle large precision via %.*d
47230         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47231         when handling it ourselves.
47232         * tests/test-vasnprintf-posix.c (test_function): Add test.
47233         * tests/test-snprintf-posix.h (test_function): Likewise.
47234         * tests/test-sprintf-posix.h (test_function): Likewise.
47235         * tests/test-vasprintf-posix.c (test_function): Likewise.
47236         Reported by Alain Guibert.
47237
47238 2008-09-01  Eric Blake  <ebb9@byu.net>
47239
47240         c-stack: make configure-time check more robust
47241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47242         successful sigaction call.
47243         Reported by Tom G. Christensen.
47244
47245 2008-09-01  Bruno Haible  <bruno@clisp.org>
47246
47247         New module 'findprog-lgpl'.
47248         * modules/findprog-lgpl: New file.
47249         * lib/findprog-lgpl.c: New file.
47250         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47251         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47252         to decide whether to use strdup or xstrdup, concatenated_filename or
47253         xconcatenated_filename.
47254
47255 2008-09-01  Bruno Haible  <bruno@clisp.org>
47256
47257         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47258         'xconcat-filename' (GPL).
47259         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47260         (License): Change to LGPLv2+.
47261         * modules/xconcat-filename: New file.
47262         * lib/concat-filename.h (concatenated_filename): Change specification.
47263         (xconcatenated_filename): New declaration.
47264         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47265         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47266         memory situations.
47267         * lib/xconcat-filename.c: New file.
47268         * NEWS: Mention the change.
47269         * lib/findprog.c: Include concat-filename.h, not filename.h.
47270         (find_in_path): Use xconcatenated_filename instead of
47271         concatenated_filename.
47272         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47273         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47274         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47275         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47276         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47277         instead of concatenated_filename.
47278         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47279         (execute_java_class): Use xconcatenated_filename instead of
47280         concatenated_filename.
47281         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47282         * modules/javacomp (Depends-on): Likewise.
47283         * modules/javaexec (Depends-on): Likewise.
47284
47285 2008-09-01  Bruno Haible  <bruno@clisp.org>
47286
47287         Split module 'filename' into 'filename' and 'concat-filename'.
47288         * modules/filename: Keep only lib/filename.h.
47289         (License): Change to LGPLv2+.
47290         * modules/concat-filename: New file, extracted from modules/filename.
47291         * lib/filename.h (concatenated_filename): Remove declaration.
47292         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47293         * lib/concat-filename.c: Include concat-filename.h.
47294         * NEWS: Mention the change.
47295
47296 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47297
47298         * lib/bitrotate.h (rotl8, rotr8): Add.
47299
47300         * modules/bitrotate (configure.ac): Need
47301         AC_REQUIRE([AC_C_INLINE]).
47302         (Description): Mention stdint.h.  Reported by Bruno Haible
47303         <bruno@clisp.org>.
47304
47305         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47306         Paolo Bonzini <bonzini@gnu.org>.
47307
47308 2008-08-31  Bruno Haible  <bruno@clisp.org>
47309
47310         Assume Solaris specific bi-arch conventions on Solaris systems.
47311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47312         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47314         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47315         like acl_libdirstem.
47316         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47317         acl_libdirstem.
47318         * NEWS: Mention the change.
47319         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47320
47321 2008-08-31  Jim Meyering  <meyering@redhat.com>
47322
47323         * lib/strftime.h: Add comments describing the two added arguments.
47324
47325         remove duplicate #include directives
47326         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47327         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47328
47329 2008-08-31  Bruno Haible  <bruno@clisp.org>
47330
47331         New module 'sigpipe-die'.
47332         * modules/sigpipe-die: New file.
47333         * lib/sigpipe-die.h: New file.
47334         * lib/sigpipe-die.c: New file.
47335         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47336
47337 2008-08-31  Bruno Haible  <bruno@clisp.org>
47338
47339         Don't override previously installed signal handlers.
47340         * lib/fatal-signal.c (saved_sigactions): New variable.
47341         (uninstall_handlers): Reset the signal to the saved handler, not
47342         to SIG_DFL (except when ignored).
47343         (install_handlers): Save the previous handlers.
47344
47345 2008-08-30  Bruno Haible  <bruno@clisp.org>
47346
47347         * gnulib-tool (func_reset_sigpipe): New function.
47348         (func_get_automake_snippet, func_modules_transitive_closure,
47349         func_import): Invoke it before a join command that reads from stdin,
47350         to avoid "echo: write error: Broken pipe" error messages on stderr.
47351         Reported by Sam Steingold <sds@gnu.org>.
47352
47353 2008-08-30  Bruno Haible  <bruno@clisp.org>
47354
47355         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47356         Code copied from m4/open.m4.
47357         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47358         access and the filename ends in a slash. Code copied from lib/open.c.
47359         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47360         * tests/test-fopen.c (main): Check against bug with trailing slash.
47361
47362 2008-08-29  Bruno Haible  <bruno@clisp.org>
47363
47364         Avoid some "gcc -pedantic" warnings.
47365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47366         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47367         * lib/dirent.in.h: Likewise.
47368         * lib/fcntl.in.h: Likewise.
47369         * lib/float.in.h: Likewise.
47370         * lib/iconv.in.h: Likewise.
47371         * lib/inttypes.in.h: Likewise.
47372         * lib/locale.in.h: Likewise.
47373         * lib/math.in.h: Likewise.
47374         * lib/netinet_in.in.h: Likewise.
47375         * lib/search.in.h: Likewise.
47376         * lib/signal.in.h: Likewise.
47377         * lib/stdarg.in.h: Likewise.
47378         * lib/stdint.in.h: Likewise.
47379         * lib/stdio.in.h: Likewise.
47380         * lib/stdlib.in.h: Likewise.
47381         * lib/string.in.h: Likewise.
47382         * lib/strings.in.h: Likewise.
47383         * lib/sys_select.in.h: Likewise.
47384         * lib/sys_socket.in.h: Likewise.
47385         * lib/sys_stat.in.h: Likewise.
47386         * lib/sys_time.in.h: Likewise.
47387         * lib/sysexits.in.h: Likewise.
47388         * lib/time.in.h: Likewise.
47389         * lib/unistd.in.h: Likewise.
47390         * lib/wchar.in.h: Likewise.
47391         * lib/wctype.in.h: Likewise.
47392         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47393         * modules/fchdir (Makefile.am): Likewise.
47394         * modules/fcntl (Makefile.am): Likewise.
47395         * modules/float (Makefile.am): Likewise.
47396         * modules/iconv_open (Makefile.am): Likewise.
47397         * modules/inttypes (Makefile.am): Likewise.
47398         * modules/locale (Makefile.am): Likewise.
47399         * modules/math (Makefile.am): Likewise.
47400         * modules/netinet_in (Makefile.am): Likewise.
47401         * modules/search (Makefile.am): Likewise.
47402         * modules/signal (Makefile.am): Likewise.
47403         * modules/stdarg (Makefile.am): Likewise.
47404         * modules/stdint (Makefile.am): Likewise.
47405         * modules/stdio (Makefile.am): Likewise.
47406         * modules/stdlib (Makefile.am): Likewise.
47407         * modules/string (Makefile.am): Likewise.
47408         * modules/strings (Makefile.am): Likewise.
47409         * modules/sys_select (Makefile.am): Likewise.
47410         * modules/sys_socket (Makefile.am): Likewise.
47411         * modules/sys_stat (Makefile.am): Likewise.
47412         * modules/sys_time (Makefile.am): Likewise.
47413         * modules/sysexits (Makefile.am): Likewise.
47414         * modules/time (Makefile.am): Likewise.
47415         * modules/unistd (Makefile.am): Likewise.
47416         * modules/wchar (Makefile.am): Likewise.
47417         * modules/wctype (Makefile.am): Likewise.
47418         Reported by Reuben Thomas <rrt@sc3d.org>.
47419
47420 2008-08-29  Bruno Haible  <bruno@clisp.org>
47421
47422         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47423         any more.
47424
47425 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47426
47427         * MODULES.html.sh (Misc): Add bitrotate.
47428
47429         * modules/bitrotate: New file.
47430
47431         * lib/bitrotate.h: New file.
47432
47433         * modules/bitrotate-tests: New file.
47434
47435         * tests/test-bitrotate.c: New file.
47436
47437         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47438         on the bitrotate module.
47439
47440         * lib/arctwo.c: Use new bitrotate module.
47441
47442 2008-08-29  Jim Meyering  <meyering@redhat.com>
47443
47444         bootstrap: merge changes from coreutils
47445         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47446         of copied files.  Remove a kludge, now that this is fixed.
47447         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47448         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47449         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47450
47451 2008-08-29  Bruno Haible  <bruno@clisp.org>
47452
47453         * MODULES.html.sh: Remove --cvs-urls option.
47454
47455 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47456
47457         maint.mk: adjust to file name change
47458         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47459
47460 2008-08-28  Jim Meyering  <meyering@redhat.com>
47461
47462         * modules/getndelim2 (License): Relicense to LGPLv2+.
47463         Approved by Richard Stallman for the version of 1995, and by
47464         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47465
47466 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47467
47468         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47469         dummy if one is not available.  Do not touch them if
47470         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47471         (getc_maybe_unlocked): New.
47472         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47473
47474 2008-08-26  Eric Blake  <ebb9@byu.net>
47475
47476         doc/INSTALL: resync from autoconf
47477         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47478         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47479         moving...
47480         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47481         * INSTALL: Regenerate.
47482         * INSTALL.ISO: New file.
47483         * INSTALL.UTF-8: Likewise.
47484
47485 2008-08-26  Jim Meyering  <meyering@redhat.com>
47486
47487         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47488         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47489         these definitions conditional, so that they may be overridden, too.
47490
47491 2008-08-26  Bruno Haible  <bruno@clisp.org>
47492
47493         Generate INSTALL file variants with prettier quotes.
47494         * doc/Makefile (INSTALL_PRELUDE): New macro.
47495         (INSTALL): Use it.
47496         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47497
47498 2008-08-26  Bruno Haible  <bruno@clisp.org>
47499
47500         Run makeinfo in an English locale.
47501         * doc/Makefile (MAKEINFO): New variable.
47502
47503 2008-08-26  Bruno Haible  <bruno@clisp.org>
47504
47505         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47506         Suggested by Eric Blake.
47507
47508 2008-08-25  Bruno Haible  <bruno@clisp.org>
47509
47510         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47511
47512 2008-08-25  Eric Blake  <ebb9@byu.net>
47513
47514         c-stack: test that stack overflow can be caught
47515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47516         that platform allows handling stack overflow; at least OS/2 EMX
47517         has sigaltstack, but crashes before transferring control to
47518         handler on stack overflow.
47519         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47520         check for HAVE_STACK_OVERFLOW_HANDLING.
47521         Reported by Elbert Pol.
47522
47523 2008-08-25  Bruno Haible  <bruno@clisp.org>
47524
47525         * doc/posix-functions/strftime.texi: Fix description of strftime
47526         module.
47527
47528 2008-08-24  Bruno Haible  <bruno@clisp.org>
47529
47530         * tests/uniwidth/test-uc_width2.c: New file.
47531         * tests/uniwidth/test-uc_width2.sh: New file.
47532         * modules/uniwidth/width-tests (Files): Add the new files.
47533         (TESTS): Add uniwidth/test-uc_width2.sh.
47534         (TESTS_ENVIRONMENT): New variable.
47535         (check_PROGRAMS): Add test-uc_width2.
47536         (test_uc_width2_SOURCES): New variable.
47537
47538         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47539         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47540         not 0x00AB.
47541         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47542
47543 2008-08-22  Eric Blake  <ebb9@byu.net>
47544
47545         test-lock, test-tls: mention why a test is skipped
47546         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47547         skipped.
47548         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47549
47550         count-one-bits: relax license
47551         * modules/count-one-bits (License): Relicense to LGPLv2+.
47552         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47553
47554 2008-08-22  Andreas Schwab  <schwab@suse.de>
47555
47556         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47557         Remove spurious space in assignment.
47558
47559 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47560
47561         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47562         Paul Eggert <eggert@CS.UCLA.EDU>.
47563
47564 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47565
47566         * modules/gettext: Add m4/threadlib.m4.
47567
47568 2008-08-19  Eric Blake  <ebb9@byu.net>
47569
47570         test-c-stack: fix compilation failure on FreeBSD 5.0
47571         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47572         headers before <sys/resource.h>.
47573         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47574         the bug.
47575         Reported by Nelson H. F. Beebe.
47576
47577         strverscmp: migrate from "strverscmp.h" to <string.h>
47578         * modules/string (Makefile.am): Add new hooks.
47579         * modules/strverscmp (Files): Remove strverscmp.h.
47580         (Depends-on): Add string.
47581         (configure.ac): Add indicator.
47582         (Include): Mention new header.
47583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47584         defaults.
47585         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47586         results.
47587         * lib/strverscmp.h: Delete.
47588         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47589         * tests/test-strverscmp.c (includes): Adjust client.
47590         * lib/check-version.c (includes): Likewise.
47591         * NEWS: Document the change.
47592
47593         strverscmp: add unit test
47594         * modules/strverscmp-tests: New file.
47595         * tests/test-strverscmp.c: Likewise.
47596
47597 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47598
47599         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47600         regarding Windows crypto stuff, from Mono.
47601
47602 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47603
47604         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47605         if present, for intel RND.  Return error on failures.
47606
47607 2008-08-18  Ben Pfaff  <blp@gnu.org>
47608
47609         gitlog-to-changelog: give better diagnostic for failed pipe-open
47610         * build-aux/gitlog-to-changelog: Improve error message: suggest
47611         that the version of Git may be too old.
47612
47613 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47614
47615         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47616         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47617
47618 2008-08-18  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47621         pthread_in_use().
47622
47623 2008-08-18  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/glthread/threadlib.c: Include <pthread.h>.
47626
47627 2008-08-18  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47630         glthread_recursive_lock_* macros.
47631         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47632         Fix syntax error.
47633
47634 2008-08-18  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/glthread/thread.c: Avoid forcing a context switch right after
47637         thread creation.
47638
47639 2008-08-17  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47642         * lib/glthread/thread.h: Provide Win32 specific implementation.
47643         * modules/thread (Files): Add lib/glthread/thread.c.
47644         (Depends-on): Add lock.
47645         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47646
47647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47648
47649         New module 'yield'.
47650         * modules/yield: New file.
47651         * lib/glthread/yield.h: New file.
47652         * m4/yield.m4: New file.
47653         * MODULES.html.sh (Multithreading): Add yield.
47654
47655 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47656
47657         New module 'thread'.
47658         * modules/thread: New file.
47659         * lib/glthread/thread.h: New file.
47660         * m4/thread.m4: New file.
47661         * MODULES.html.sh (Multithreading): Add thread.
47662
47663 2008-08-17  Bruno Haible  <bruno@clisp.org>
47664
47665         * lib/glthread/lock.h: Include <stdlib.h> always.
47666         * lib/glthread/tls.h: Likewise.
47667         * lib/glthread/cond.h: Likewise.
47668
47669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47670
47671         New module 'cond'.
47672         * modules/cond: New file.
47673         * lib/glthread/cond.h: New file.
47674         * lib/glthread/cond.c: New file.
47675         * m4/cond.m4: New file.
47676         * MODULES.html.sh (Multithreading): Add cond.
47677
47678 2008-08-16  Eric Blake  <ebb9@byu.net>
47679
47680         c-stack: fix regression on Irix 5.3 from 2008-06-21
47681         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47682         sa_sigaction...
47683         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47684         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47686         * modules/signal (Makefile.am): Use the value.
47687         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47688         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47689         * doc/posix-headers/signal.texi (signal.h): Document this
47690         portability issue.
47691         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47692         Reported by Tom G. Christensen.
47693
47694 2008-08-17  Bruno Haible  <bruno@clisp.org>
47695
47696         New module 'threadlib'.
47697         * modules/threadlib: New file.
47698         * lib/glthread/threadlib.c: New file, extracted from
47699         lib/glthread/lock.c.
47700         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47701         functions.
47702         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47703         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47704         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47705         macros.
47706         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47707         (gl_DISABLE_THREADS): Remove macro.
47708         * modules/lock (Files): Remove build-aux/config.rpath.
47709         (Depends-on): Remove havelib. Add threadlib.
47710         (configure.ac-early): Remove section.
47711         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47712         * modules/tls (Depends-on): Remove lock. Add threadlib.
47713         (Link): New section, copied from threadlib.
47714         * MODULES.html.sh (Multithreading): Add threadlib.
47715
47716 2008-08-14  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47719         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47720         glthread_rwlock_unlock, glthread_rwlock_destroy,
47721         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47722         glthread_recursive_lock_destroy): Define as macros always.
47723         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47724         glthread_lock_lock.
47725         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47726         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47727         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47728         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47729         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47730         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47731         (glthread_recursive_lock_lock_func): Renamed from
47732         glthread_recursive_lock_lock.
47733         (glthread_recursive_lock_unlock_func): Renamed from
47734         glthread_recursive_lock_unlock.
47735         (glthread_recursive_lock_destroy_func): Renamed from
47736         glthread_recursive_lock_destroy.
47737
47738 2008-08-14  Bruno Haible  <bruno@clisp.org>
47739
47740         * lib/glthread/lock.h: Renamed from lib/lock.h.
47741         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47742         * lib/glthread/tls.h: Renamed from lib/tls.h.
47743         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47744         * lib/fstrcmp.c: Update includes.
47745         * lib/strsignal.c: Update includes.
47746         * modules/lock (Files, Makefile.am): Update.
47747         (Include): Change to "glthread/lock.h".
47748         * modules/tls (Files, Makefile.am): Update.
47749         (Include): Change to "glthread/tls.h".
47750         * tests/test-lock.c: Update includes.
47751         * tests/test-tls.c: Update includes.
47752         * NEWS: Mention the renamed header files.
47753
47754 2008-08-11  Jim Meyering  <meyering@redhat.com>
47755
47756         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47757
47758 2008-08-11  Eric Blake  <ebb9@byu.net>
47759
47760         test-c-stack: avoid C99-ism
47761         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47762         before statement.
47763         Reported by Alain Guibert.
47764
47765 2008-08-10  Jim Meyering  <meyering@redhat.com>
47766
47767         ensure that return value of uinttostr et al are not ignored
47768         * lib/inttostr.h (__GNUC_PREREQ): Define.
47769         (__attribute_warn_unused_result__): Define.
47770         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47771
47772 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47773
47774         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47775         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47776
47777 2008-08-07  Jim Meyering  <meyering@redhat.com>
47778
47779         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47780
47781         * modules/mkstemp (License): Relicense under LGPLv2+.
47782         * modules/tempname (License): Likewise.
47783
47784 2008-08-06  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/poll.c (poll): Further micro-optimization.
47787
47788 2008-08-06  Jim Meyering  <meyering@redhat.com>
47789
47790         inet_pton.c: use locale-independent tolower
47791         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47792         (inet_pton6): Use c_tolower rather than tolower.
47793         * modules/inet_pton (Depends-on): Add c-ctype.
47794
47795 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47796
47797         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47798         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47799
47800 2008-08-06  Jim Meyering  <meyering@redhat.com>
47801
47802         * modules/inet_pton (License): Relicense under LGPLv2+.
47803
47804 2008-08-03  Bruno Haible  <bruno@clisp.org>
47805
47806         Additional non-aborting API for lock and tls.
47807         * lib/lock.h: Include <errno.h>.
47808         (glthread_lock_init): New macro/function.
47809         (gl_lock_init): Define as wrapper around glthread_lock_init.
47810         (glthread_lock_lock): New macro/function.
47811         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47812         (glthread_lock_unlock): New macro/function.
47813         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47814         (glthread_lock_destroy): New macro/function.
47815         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47816         (glthread_rwlock_init): New macro/function.
47817         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47818         (glthread_rwlock_rdlock): New macro/function.
47819         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47820         (glthread_rwlock_wrlock): New macro/function.
47821         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47822         (glthread_rwlock_unlock): New macro/function.
47823         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47824         (glthread_rwlock_destroy): New macro/function.
47825         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47826         (glthread_recursive_lock_init): New macro/function.
47827         (gl_recursive_lock_init): Define as wrapper around
47828         glthread_recursive_lock_init.
47829         (glthread_recursive_lock_lock): New macro/function.
47830         (gl_recursive_lock_lock): Define as wrapper around
47831         glthread_recursive_lock_lock.
47832         (glthread_recursive_lock_unlock): New macro/function.
47833         (gl_recursive_lock_unlock): Define as wrapper around
47834         glthread_recursive_lock_unlock.
47835         (glthread_recursive_lock_destroy): New macro/function.
47836         (gl_recursive_lock_destroy): Define as wrapper around
47837         glthread_recursive_lock_destroy.
47838         (glthread_once): New macro/function.
47839         (gl_once): Define as wrapper around glthread_once.
47840         Update function declarations.
47841         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47842         glthread_rwlock_init. Return error code.
47843         (glthread_rwlock_rdlock_multithreaded): Renamed from
47844         glthread_rwlock_rdlock. Return error code.
47845         (glthread_rwlock_wrlock_multithreaded): Renamed from
47846         glthread_rwlock_wrlock. Return error code.
47847         (glthread_rwlock_unlock_multithreaded): Renamed from
47848         glthread_rwlock_unlock. Return error code.
47849         (glthread_rwlock_destroy_multithreaded): Renamed from
47850         glthread_rwlock_destroy. Return error code.
47851         (glthread_recursive_lock_init_multithreaded): Renamed from
47852         glthread_recursive_lock_init. Return error code.
47853         (glthread_recursive_lock_lock_multithreaded): Renamed from
47854         glthread_recursive_lock_lock. Return error code.
47855         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47856         glthread_recursive_lock_unlock. Return error code.
47857         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47858         glthread_recursive_lock_destroy. Return error code.
47859         (glthread_once_call): Make static.
47860         (glthread_once_multithreaded): Renamed from glthread_once.
47861         * lib/tls.h: Include <errno.h>.
47862         (glthread_tls_key_init): New macro/function.
47863         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47864         (glthread_tls_set): New macro/function.
47865         (gl_tls_set): Define as wrapper around glthread_tls_set.
47866         (glthread_tls_key_destroy): New macro/function.
47867         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47868         Update function declarations.
47869         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47870         glthread_tls_get.
47871         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47872
47873 2008-08-04  Eric Blake  <ebb9@byu.net>
47874
47875         gnumakefile: use space, not TAB, outside of targets
47876         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47877
47878 2008-08-02  Jim Meyering  <meyering@redhat.com>
47879
47880         getdate.y: avoid locale-dependent date parsing failure
47881         In Turkish locales, getdate would fail to recognize keywords
47882         containing a lowercase "i".  The solution is not to rely on
47883         locale-sensitive case-conversion.
47884         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47885         (lookup_word): Use c_toupper in place of toupper.
47886         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47887         Reported by Vefa Bicakci <bicave@superonline.com> in
47888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47889         * modules/getdate (Depends-on): Add c-ctype.
47890
47891 2008-08-02  Bruno Haible  <bruno@clisp.org>
47892
47893         * gnulib-tool (func_import): When updating or creating a .gitignore
47894         file, prepend each added line with a slash, and ignore leading slashes
47895         from the existing lines.
47896         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47897
47898 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47899
47900         Portability fix for GNU make 3.79.1.
47901         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47902         versions do not understand.
47903
47904 2008-08-01  Bruno Haible  <bruno@clisp.org>
47905
47906         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47907         * tests/test-isnanf.h (zero): New variable.
47908         (main): Avoid literal -0.0f.
47909         * tests/test-isnand.h (zero): New variable.
47910         (main): Avoid literal -0.0.
47911         * tests/test-isnanl.h (zero): New variable.
47912         (main): Avoid literal -0.0L.
47913         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47914         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47915         -0.0, -0.0L.
47916         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47917         (test_signbitd): Avoid literal -0.0.
47918         (test_signbitl): Avoid literal -0.0L.
47919         * tests/test-ceilf1.c (zero): New variable.
47920         (main): Avoid literal -0.0f.
47921         * tests/test-ceill.c (zero): New variable.
47922         (main): Avoid literal -0.0L.
47923         * tests/test-floorf1.c (zero): New variable.
47924         (main): Avoid literal -0.0f.
47925         * tests/test-floorl.c (zero): New variable.
47926         (main): Avoid literal -0.0L.
47927         * tests/test-roundf1.c (zero): New variable.
47928         (main): Avoid literal -0.0f.
47929         * tests/test-round1.c (zero): New variable.
47930         (main): Avoid literal -0.0.
47931         * tests/test-roundl.c (zero): New variable.
47932         (main): Avoid literal -0.0L.
47933         * tests/test-truncf1.c (zero): New variable.
47934         (main): Avoid literal -0.0f.
47935         * tests/test-trunc1.c (zero): New variable.
47936         (main): Avoid literal -0.0.
47937         * tests/test-truncl.c (zero): New variable.
47938         (main): Avoid literal -0.0L.
47939         * tests/test-frexp.c (zero): New variable.
47940         (main): Avoid literal -0.0.
47941         * tests/test-frexpl.c (zero): New variable.
47942         (main): Avoid literal -0.0L.
47943         * tests/test-ldexpl.c (zero): New variable.
47944         (main): Avoid literal -0.0L.
47945         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47946         (zerod, zerol): New variables.
47947         (test_function): Avoid literals -0.0, -0.0L.
47948         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47949         (zerod, zerol): New variables.
47950         (test_function): Avoid literals -0.0, -0.0L.
47951         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47952         (zerod, zerol): New variables.
47953         (test_function): Avoid literals -0.0, -0.0L.
47954         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47955         (zerod, zerol): New variables.
47956         (test_function): Avoid literals -0.0, -0.0L.
47957         * tests/test-strtod.c (zero): New variable.
47958         (main): Avoid literal -0.0.
47959         Reported by Jonathan C. Patschke <jp@centtech.com>.
47960
47961 2008-07-31  Jim Meyering  <meyering@redhat.com>
47962
47963         sha256.h: correct definition of SHA224_DIGEST_SIZE
47964         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47965         Reported by Paulie Pena IV <paulie4@gmail.com>.
47966         Define as 224 / 8, rather than as a literal.
47967         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47968         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47969         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47970
47971 2008-07-31  Bruno Haible  <bruno@clisp.org>
47972
47973         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47974         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47975         Reported by Jonathan Patschke <jp@centtech.com>.
47976
47977 2008-07-31  Bruno Haible  <bruno@clisp.org>
47978
47979         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47980         Reported by Paolo Bonzini <bonzini@gnu.org>.
47981
47982 2008-07-30  Eric Blake  <ebb9@byu.net>
47983
47984         test-strtod: allow compilation without -lm
47985         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47986         Reported by Dennis Clarke <blastwave@gmail.com>.
47987
47988 2008-07-28  Jim Meyering  <meyering@redhat.com>
47989
47990         bootstrap: work also when there are no .po files in po/
47991         * build-aux/bootstrap (update_po_files): Complete the change
47992         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47993
47994 2008-07-27  Jim Meyering  <meyering@redhat.com>
47995
47996         * users.txt: Add zile.
47997
47998 2008-07-26  Ben Pfaff  <blp@gnu.org>
47999
48000         Add missing dependencies on new m4/exponent[fdl].m4 files.
48001         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48002         * modules/isnand-nolibm: Add m4/exponentd.m4.
48003         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48004         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48005         m4/isnan[fdl].m4, because the macros actually used moved.
48006         Reported by Jim Meyering.
48007
48008 2008-07-14  Ben Pfaff  <blp@gnu.org>
48009
48010         Add isinf module.
48011         * lib/isinf.c: New file.
48012         * lib/math.in.h: Define isinf macro if we have decided to replace
48013         it.
48014         * m4/isinf.m4: New file.
48015         * m4/math_h.m4: Initialize and substitute variables for isinf
48016         module.
48017         * modules/isinf: New file.
48018         * modules/isinf-tests: New file.
48019         * modules/math: Add substitutions for new module.
48020         * tests/test-isinf.c: New file.
48021         * doc/posix-functions/isinf.texi: Mention new module.
48022         * MODULES.html.sh: Mention new module.
48023
48024 2008-07-14  Ben Pfaff  <blp@gnu.org>
48025
48026         Factor out some macros for use by additional modules.
48027         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48028         exponentf.m4.
48029         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48030         exponentd.m4.
48031         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48032         file exponentl.m4.
48033         * m4/exponentf.m4: New file.
48034         * m4/exponentd.m4: New file.
48035         * m4/exponentl.m4: New file.
48036         * modules/isnanf: Use new file m4/exponentf.m4.
48037         * modules/isnand: Use new file m4/exponentd.m4.
48038         * modules/isnanl: Use new file m4/exponentl.m4.
48039
48040 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48041
48042         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48043         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48044         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48045         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48046
48047         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48048         readlink on platforms without PATH_MAX.
48049
48050 2008-07-21  Eric Blake  <ebb9@byu.net>
48051
48052         Warn, not fail, on stale version.
48053         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48054
48055         Don't allow installation with stale devel version number.
48056         * top/GNUmakefile (_is-install-target): New macro.
48057         (_curr-ver): Forbid installation with stale version number.
48058
48059 2008-07-20  Bruno Haible  <bruno@clisp.org>
48060
48061         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48062         TESTS_ENVIRONMENT.
48063         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48064
48065 2008-07-20  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/c-stack.h (c_stack_action): Add documentation.
48068         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48069
48070 2008-07-20  Bruno Haible  <bruno@clisp.org>
48071
48072         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48073         * modules/readlink (License): Likewise.
48074
48075 2008-07-17  Eric Blake  <ebb9@byu.net>
48076
48077         * modules/c-stack (Link): Fix typo.
48078
48079         Make c-stack use libsigsegv, when available.
48080         * modules/c-stack (Depends-on): Add libsigsegv.
48081         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48082         needed.
48083         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48084         (segv_handler, overflow_handler, c_stack_action)
48085         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48086         implementation when libsigsegv is available, but only when using
48087         the library is necessary.
48088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48089         comment, explaining why XSI check fails on Linux.
48090         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48091         * tests/test-c-stack2.sh: Tweak skip message.
48092         * NEWS: Document new link-time requirements.
48093
48094 2008-07-16  Eric Blake  <ebb9@byu.net>
48095
48096         c-stack: Expose false positives when not using libsigsegv.
48097         * modules/c-stack-tests (Files): Expand test.
48098         * tests/test-c-stack.c (main): Add means to conditionally trigger
48099         non-overflow SIGSEGV.
48100         * tests/test-c-stack2.sh: New file.
48101
48102 2008-07-14  Bruno Haible  <bruno@clisp.org>
48103
48104         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48105         Reported by Eric Blake.
48106
48107 2008-07-14  Sam Steingold  <sds@gnu.org>
48108             Bruno Haible  <bruno@clisp.org>
48109
48110         New module libsigsegv.
48111         * modules/libsigsegv: New file.
48112         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48113         modifications.
48114         * MODULES.html.sh (Signal handling): New section.
48115
48116 2008-07-14  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/unictype/ctype-* (Description): Add the word "function".
48119         Improves the resulting doc in MODULES.html.
48120
48121 2008-07-12  Ben Pfaff  <blp@gnu.org>
48122
48123         Add longlong module.
48124         * modules/longlong: New file.
48125
48126 2008-07-12  Bruno Haible  <bruno@clisp.org>
48127
48128         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48129         to empty.
48130
48131 2008-07-10  Ben Pfaff  <blp@gnu.org>
48132
48133         Add isnan module.
48134         * doc/posix-functions/isnan.texi: Mention new module.
48135         * lib/math.in.h: Define isnan macro if we have decided to replace
48136         it.
48137         * m4/isnan.m4: New file.
48138         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48139         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48140         also.
48141         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48142         redundancy.
48143         * m4/math_h.m4: Initialize and substitute variables for isnan
48144         module.
48145         * modules/isnan: New file.
48146         * modules/isnan-tests: New file.
48147         * modules/math: Add substitutions for new module.
48148         * tests/test-isnan.c: New file.
48149         * MODULES.html.sh: Mention new module.
48150
48151 2008-07-10  Ben Pfaff  <blp@gnu.org>
48152
48153         Add isnanf module.
48154         * lib/isnanf.m4: New file.
48155         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48156         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48157         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48158         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48159         * modules/isnanf: New file.
48160         * modules/isnanf-tests: New file.
48161         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48162         files.
48163         * tests/test-isnanf-nolibm.c: factored most of its contents into
48164         new file tests/test-isnanf.h.
48165         * tests/test-isnanf.h: New file.
48166         * tests/test-isnanf.c: New file.
48167         * MODULES.html.sh: Mention new module.
48168         * doc/glibc-functions/isnanf.texi: Mention new module.
48169
48170 2008-07-10  Ben Pfaff  <blp@gnu.org>
48171
48172         Add isnand module.
48173         * lib/isnand.h: New file.
48174         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48175         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48176         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48177         functionality also.
48178         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48179         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48180         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48181         * modules/isnand: New file.
48182         * modules/isnand-tests: New file.
48183         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48184         files.
48185         * tests/test-isnand-nolibm.c: factored most of its contents into
48186         new file tests/test-isnand.h.
48187         * tests/test-isnand.h: New file.
48188         * tests/test-isnand.c: New file.
48189         * MODULES.html.sh: Mention new module.
48190
48191 2008-07-10  Ben Pfaff  <blp@gnu.org>
48192
48193         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48194         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48195         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48196         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48197         * modules/isnanf-nolibm: Update references to renamed files.
48198         * modules/isnand-nolibm: Likewise.
48199         * modules/isnanf-nolibm-tests: Likewise.
48200         * modules/isnand-nolibm-tests: Likewise.
48201         * lib/frexp.c: Likewise.
48202         * lib/isfinite.c: Likewise.
48203         * lib/signbitd.c: Likewise.
48204         * lib/signbitf.c: Likewise.
48205         * lib/vasnprintf.c: Likewise.
48206         * tests/test-ceilf1.c: Likewise.
48207         * tests/test-ceilf2.c: Likewise.
48208         * tests/test-floorf1.c: Likewise.
48209         * tests/test-floorf2.c: Likewise.
48210         * tests/test-frexp.c: Likewise.
48211         * tests/test-round1.c: Likewise.
48212         * tests/test-round2.c: Likewise.
48213         * tests/test-roundf1.c: Likewise.
48214         * tests/test-strtod.c: Likewise.
48215         * tests/test-trunc1.c: Likewise.
48216         * tests/test-trunc2.c: Likewise.
48217         * tests/test-truncf1.c: Likewise.
48218         * tests/test-truncf2.c: Likewise.
48219         * NEWS: Mention the renamed header files.
48220
48221 2008-07-11  Jim Meyering  <meyering@redhat.com>
48222
48223         vc-list-files: make the last-resort awk code more portable
48224         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48225         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48226         does not support it.
48227
48228 2008-07-10  Eric Blake  <ebb9@byu.net>
48229
48230         Work with tar's bootstrap.
48231         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48232         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48233         an m4 comment.
48234
48235 2008-07-09  Jim Meyering  <meyering@redhat.com>
48236
48237         posix-shell.m4: fix typo that made this test malfunction
48238         * m4/posix-shell.m4: Remove capitalization in variable name.
48239
48240 2008-07-08  Bruno Haible  <bruno@clisp.org>
48241
48242         * m4/onceonly.m4: Update comments.
48243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48244
48245 2008-07-04  Jim Meyering  <meyering@redhat.com>
48246
48247         * users.txt: Add vc-dwim.
48248         (bison, coreutils): Use the gitweb URL.
48249
48250 2008-07-03  Jim Meyering  <meyering@redhat.com>
48251
48252         * users.txt: Add libffcall.  From Sam Steingold.
48253
48254 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48255
48256         getdate.y: do not ignore TZ with relative day, month or year offset
48257         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48258         relative-date-handling, since otherwise, the latter would clobber the
48259         sole output (an updated Start value) of the tz-handling block.
48260         * tests/test-getdate.c: Tests for the fix
48261
48262 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48263
48264         Recognize 'foo_LIBRARIES += libgnu.a'.
48265         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48266         makefile snippet has already specified an installation location,
48267         also using '+='.
48268
48269 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48270
48271         getdate.y: factor out common actions
48272         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48273         Use them in place of open-coded actions.
48274
48275 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48276
48277         Add self-test for getdate module.
48278         * modules/getdate-tests: New file.
48279         * tests/test-getdate.c: New file.
48280
48281 2008-06-29  Bruno Haible  <bruno@clisp.org>
48282
48283         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48284         .gitignore.
48285         Reported by Sylvain Beucler <beuc@beuc.net>.
48286
48287 2008-06-29  Bruno Haible  <bruno@clisp.org>
48288
48289         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48290         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48291
48292 2008-06-29  Bruno Haible  <bruno@clisp.org>
48293
48294         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48295         EXTRA_DIST.
48296         Reported by Sylvain Beucler <beuc@beuc.net>.
48297
48298 2008-06-26  Jim Meyering  <meyering@redhat.com>
48299
48300         make several modules depend on the "open" module
48301         This provides slightly increased consistency when opening-for-write
48302         the name of a non-directory spelled with a trailing slash.
48303         * modules/chdir-safer: Likewise.
48304         * modules/chown: Likewise.
48305         * modules/clean-temp: Likewise.
48306         * modules/copy-file: Likewise.
48307         * modules/fchdir: Likewise.
48308         * modules/fcntl-safer: Likewise.
48309         * modules/pipe: Likewise.
48310         * modules/utime: Likewise.
48311         Prompted by Eric Blake and Bruno Haible.
48312
48313 2008-06-24  Andreas Schwab  <schwab@suse.de>
48314
48315         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48316         literals can be used as initializers for global variables.
48317
48318 2008-06-23  Eric Blake  <ebb9@byu.net>
48319
48320         Make gnulib-cache.m4 easier to diff.
48321         * gnulib-tool (func_import): Allow newlines when reading cached
48322         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48323
48324 2008-06-23  Bruno Haible  <bruno@clisp.org>
48325
48326         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48327         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48328         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48329         m4/signalblocking.m4.
48330         (gl_PREREQ_SIGACTION): Don't invoke it.
48331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48332         gl_PREREQ_SIG_HANDLER_H.
48333         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48334         Don't check for sigaction here.
48335
48336 2008-06-23  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48339         (install_handlers): Don't set the SA_RESETHAND flag.
48340
48341 2008-06-23  Bruno Haible  <bruno@clisp.org>
48342
48343         * m4/sigaction.m4: Comment fixes.
48344         * lib/signal.in.h: Likewise.
48345
48346 2008-06-23  Eric Blake  <ebb9@byu.net>
48347
48348         Fix typo.
48349         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48350
48351         Avoid SA_ namespace.
48352         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48353         Reported by Ralf Wildenhues.
48354
48355         Avoid test failure due to SA_RESTORER.
48356         * tests/test-sigaction.c (SA_MASK): New macro.
48357         (main): Avoid failing due to extension flags being set.
48358         Reported by Jim Meyering.
48359
48360         Revert use of sig-handler.h in sigprocmask.c.
48361         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48362         it requires the existence of struct sigaction.
48363         * lib/sigprocmask.c (handler_t): Restore typedef.
48364         (rpl_signal, old_handlers): Use local type.
48365
48366 2008-06-22  Bruno Haible  <bruno@clisp.org>
48367
48368         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48369         conditionally.
48370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48371
48372 2008-06-22  Bruno Haible  <bruno@clisp.org>
48373
48374         * doc/posix-functions/siginterrupt.texi: Move note.
48375
48376         * lib/signal.in.h (SA_RESTART): New macro.
48377         * lib/sigaction.c: Update comment.
48378
48379         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48380
48381         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48382         (gl_PREREQ_SIGPROCMASK): Invoke it.
48383         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48384
48385         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48386
48387         * lib/sigprocmask.c: Update a comment.
48388
48389 2008-06-21  Eric Blake  <ebb9@byu.net>
48390
48391         Use sigaction module rather than signal().
48392         * modules/c-stack (Depends-on): Add sigaction.
48393         * modules/fatal-signal (Depends-on): Likewise.
48394         * modules/nanosleep (Depends-on): Likewise.
48395         * modules/sigprocmask (Files): Add sig-handler.h.
48396         * modules/sigaction (Files): Likewise.
48397         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48398         Eggert.
48399         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48400         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48401         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48402         (init_fatal_signals): Likewise.
48403         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48404         (siginterrupt): Delete fallback.
48405         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48406         instead.
48407         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48408         siginterrupt.
48409
48410         New module sigaction, for mingw.
48411         * modules/sigaction: New module...
48412         * modules/sigaction-tests: ...and its test.
48413         * m4/sigaction.m4: New file.
48414         * lib/sigaction.c: Likewise.
48415         * tests/test-sigaction.c: Likewise.
48416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48417         * modules/signal (Makefile.am): Likewise.
48418         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48419         needed.
48420         * doc/posix-headers/signal.texi (signal.h): Mention provided
48421         types.
48422         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48423         that sigaction is preferable.
48424         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48425         module.
48426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48427         sigaction.
48428
48429         Improve robustness of sigprocmask by overriding signal.
48430         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48431         is in use.
48432         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48433         (SIGKILL, SIGSTOP): Provide fallbacks.
48434         (rpl_signal): Implement.
48435         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48436         signal can be called inside handlers.
48437
48438         Fix nanosleep module on mingw.
48439         * modules/nanosleep (Depends-on): Add sys_select.
48440         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48441
48442         Fix licensing of sigprocmask.
48443         * modules/raise (License): Relicense as LGPL.
48444
48445 2008-06-21  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48448         result if it contains question marks.
48449         Reported by Michael Geng <linux@michaelgeng.de>.
48450
48451 2008-06-19  Bruno Haible  <bruno@clisp.org>
48452
48453         Fix CVS-ism.
48454         * doc/gnulib.texi: Include updated-stamp.texi.
48455         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48456         (updated-stamp.texi): New rule.
48457         (gnulib.info): Depend on it.
48458         * doc/.gitignore: Add updated-stamp.texi.
48459         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48460
48461 2008-06-19  Bruno Haible  <bruno@clisp.org>
48462
48463         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48464         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48465
48466 2008-06-19  Eric Blake  <ebb9@byu.net>
48467
48468         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48469         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48470         Reported by Stepan Kasal.
48471
48472 2008-06-18  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48475         Reported by Eric Blake.
48476
48477 2008-06-18  Eric Blake  <ebb9@byu.net>
48478
48479         Work around cygwin 1.5.25 strsignal bug.
48480         * tests/test-strsignal.c: Allow for const char *.
48481         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48482
48483 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48484
48485         * users.txt: Update URL to article and add author/date
48486         information.
48487
48488 2008-06-17  Bruno Haible  <bruno@clisp.org>
48489
48490         New macro gl_DISABLE_THREADS.
48491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48492         if the user did not pass --enable-threads or --disable-threads option.
48493         (gl_DISABLE_THREADS): New macro.
48494         Reported by Eric Blake <ebb9@byu.net>.
48495
48496 2008-06-17  Bruno Haible  <bruno@clisp.org>
48497
48498         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48499         when the macro ignores it.
48500         Based on a patch by Eric Blake <ebb9@byu.net>.
48501
48502 2008-06-17  Bruno Haible  <bruno@clisp.org>
48503
48504         * modules/tls (License): Change to LGPLv2+.
48505         Reported by Eric Blake.
48506
48507 2008-06-17  Eric Blake  <ebb9@byu.net>
48508
48509         Simplify c-stack prerequisites.
48510         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48512         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48513         check.
48514         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48515         <sys/resource.h>.
48516
48517         Move c-stack test into testsuite.
48518         * modules/c-stack-tests: New file.
48519         * lib/c-stack.c [DEBUG]: Move test program...
48520         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48521         fail test if sigaltstack is lacking.
48522         * tests/test-c-stack.sh: New driver file.
48523
48524 2008-06-16  Eric Blake  <ebb9@byu.net>
48525
48526         Use raise module consistently.
48527         * modules/fatal-signal (Depends-on): Add raise.
48528         * modules/sigprocmask (Depends-on): Likewise.
48529         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48530         * lib/sigprocmask.c (sigprocmask): Likewise.
48531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48532         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48533
48534         Fix compliance bug in sigpending.
48535         * lib/sigprocmask.c (sigpending): Return pending array via
48536         parameter, not return value.
48537
48538 2008-06-14  Eric Blake  <ebb9@byu.net>
48539
48540         Improve obstack-printf test code.
48541         * tests/test-obstack-printf.c (test_function): Fix comment, and
48542         simplify usage of obstack_* in macros.  Add a test for coverage.
48543         Reported by Bruno Haible.
48544
48545 2008-06-14  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48548         array size as a constant, not as a const variable.
48549         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48550         AC_USE_SYSTEM_EXTENSIONS.
48551         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48552         Test whether the obstack_printf function actually exists.
48553         * modules/obstack-printf (Depends-on): Add extensions.
48554         (Include): Remove obstack.h.
48555         * modules/obstack-printf-posix (Depends-on): Add extensions.
48556         (Include): Remove obstack.h.
48557
48558 2008-06-13  Eric Blake  <ebb9@byu.net>
48559
48560         Add obstack-printf and obstack-printf-posix modules.
48561         * modules/obstack-printf: New file.
48562         * modules/obstack-printf-posix: Likewise.
48563         * MODULES.html.sh (Misc): Mention them.
48564         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48565         Likewise.
48566         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48567         Likewise.
48568         * modules/stdio (Makefile.am): Accomodate new modules.
48569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48570         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48571         Declare.
48572         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48573         functions.
48574         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48575         (gl_REPLACE_OBSTACK_PRINTF): New macros
48576         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48577         * tests/test-obstack-printf.c: New file.
48578         * modules/obstack-printf-tests: Likewise.
48579         * modules/obstack-printf-posix-tests: Likewise.
48580
48581 2008-06-11  Bruno Haible  <bruno@clisp.org>
48582
48583         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48584         * lib/open.c: Include errno.h.
48585         (open): Fail when attempting to write to a file that has a trailing
48586         slash.
48587         * tests/test-open.c (main): Test against trailing slash bug.
48588         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48589
48590 2008-06-10  Bruno Haible  <bruno@clisp.org>
48591
48592         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48593         for $? to work inside the trap command, with various /bin/sh-s.
48594         * tests/test-vc-list-files-cvs.sh: Likewise.
48595
48596 2008-06-10  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/acl-internal.h: Don't include gettext.h here.
48599         * lib/set-mode-acl.c: Include gettext.h here.
48600         * lib/copy-acl.c: Likewise.
48601
48602 2008-06-10  Bruno Haible  <bruno@clisp.org>
48603
48604         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48605         * lib/wait-process.c (wait_subprocess): Likewise.
48606         * lib/execute.h (execute): Add termsigp argument.
48607         * lib/execute.c (execute): Likewise.
48608         * lib/csharpcomp.c (compile_csharp_using_pnet,
48609         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48610         * lib/csharpexec.c (execute_csharp_using_pnet,
48611         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48612         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48613         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48614         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48615         is_jikes_present): Update.
48616         * lib/javaexec.c (execute_java_class): Update.
48617         * lib/javaversion.c (execute_and_read_line): Update.
48618         * NEWS: Document the changes.
48619         Reported by Eric Blake.
48620
48621 2008-06-10  Eric Blake  <ebb9@byu.net>
48622
48623         Add missing include.
48624         * tests/test-strstr.c (includes): Add <signal.h>.
48625         * tests/test-strcasestr.c (includes): Likewise.
48626         * tests/test-memmem.c (includes): Likewise.
48627
48628 2008-06-10  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/wait-process.c (wait_subprocess): Add an assertion.
48631
48632 2008-06-10  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48635
48636 2008-06-10  Bruno Haible  <bruno@clisp.org>
48637
48638         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48639         using alarm().
48640         * tests/test-strcasestr.c (main): Likewise.
48641         * tests/test-strstr.c (main): Likewise.
48642
48643 2008-06-09  Bruno Haible  <bruno@clisp.org>
48644
48645         Work around the Solaris 10 ACE ACLs ABI change.
48646         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48647         declare if ACL_NO_TRIVIAL is present.
48648         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48649         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48650         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48651         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48652         define if ACL_NO_TRIVIAL is present.
48653         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48654         and use the current ABI.
48655         (file_has_acl): Use same #if condition as elsewhere.
48656         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48657         in use, and use the current ABI.
48658         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48659         Reported by Jim Meyering.
48660
48661 2008-06-09  Eric Blake  <ebb9@byu.net>
48662
48663         Work around environments that (stupidly) ignore SIGALRM.
48664         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48665         before using alarm().
48666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48668         Reported by Ian Beckwith <ianb@erislabs.net>.
48669
48670         Produce autobuild blurb earlier in log.
48671         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48672
48673 2008-06-09  Jim Meyering  <meyering@redhat.com>
48674         and OndÅ™ej Vašík  <ovasik@redhat.com>
48675
48676         utimens.c: correct kernel bug work-around
48677         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48678         failure, not success, and the kernel bug we're trying to work
48679         around affects not just the utimensat call, but also the fallback
48680         futimens call.
48681         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48682         not success.
48683         [HAVE_FUTIMENS]: Use the same work-around, here.
48684
48685 2008-06-09  Jim Meyering  <meyering@redhat.com>
48686
48687         add more guards around definition of ACE_-related code
48688         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48689         ALLOW and ACE_OWNER are also defined.
48690
48691 2008-06-08  Bruno Haible  <bruno@clisp.org>
48692
48693         * lib/acl-internal.h: Add me as co-author.
48694         * lib/file-has-acl.c: Likewise.
48695         * lib/set-mode-acl.c: Likewise.
48696         * lib/copy-acl.c: Likewise.
48697
48698 2008-06-08  Bruno Haible  <bruno@clisp.org>
48699
48700         Add support for AIX ACLs.
48701         * lib/acl-internal.h (acl_nontrivial): New declaration.
48702         * lib/file-has-acl.c (acl_nontrivial): New function.
48703         (file_has_acl): Add implementation using AIX 4 ACL API.
48704         * lib/set-mode-acl.c (qset_acl): Likewise.
48705         * lib/copy-acl.c (qcopy_acl): Likewise.
48706
48707 2008-06-08  Bruno Haible  <bruno@clisp.org>
48708
48709         Add support for HP-UX ACLs.
48710         * lib/acl-internal.h (acl_nontrivial): New declaration.
48711         * lib/file-has-acl.c (acl_nontrivial): New function.
48712         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48713         * lib/set-mode-acl.c (qset_acl): Likewise.
48714         * lib/copy-acl.c (qcopy_acl): Likewise.
48715
48716 2008-06-08  Bruno Haible  <bruno@clisp.org>
48717
48718         Add support for Cygwin ACLs.
48719         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48720         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48721         the chmod_or_fchmod call.
48722         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48723
48724 2008-06-08  Bruno Haible  <bruno@clisp.org>
48725
48726         Fix bug with setuid modes in Solaris 10+ code.
48727         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48728         succeeded, when the mode contains some special bits.
48729
48730 2008-06-08  Bruno Haible  <bruno@clisp.org>
48731
48732         Add support for Solaris 7..10 ACLs.
48733         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48734         declarations.
48735         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48736         functions.
48737         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48738         * lib/set-mode-acl.c (qset_acl): Likewise.
48739         * lib/copy-acl.c (qcopy_acl): Likewise.
48740
48741 2008-06-08  Bruno Haible  <bruno@clisp.org>
48742
48743         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48744         declaration.
48745         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48746         (acl_access_nontrivial): Remove MacOS X case.
48747         (file_has_acl): Use acl_extended_nontrivial.
48748         * lib/copy-acl.c (qcopy_acl): Likewise.
48749
48750 2008-06-08  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48753
48754 2008-06-08  Jim Meyering  <meyering@redhat.com>
48755
48756         * modules/acl (Maintainer): Add Bruno Haible.
48757
48758 2008-06-07  Bruno Haible  <bruno@clisp.org>
48759
48760         Improve support for Tru64 ACLs.
48761         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48762         ACL on OSF/1.
48763
48764 2008-06-07  Bruno Haible  <bruno@clisp.org>
48765
48766         Add support for MacOS X ACLs.
48767         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48768         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48769         * lib/set-mode-acl.c (qset_acl): Likewise.
48770         * lib/copy-acl.c (qcopy_acl): Likewise.
48771
48772 2008-06-07  Bruno Haible  <bruno@clisp.org>
48773
48774         Fix memory leak introduced on 2008-05-22.
48775         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48776         use.
48777
48778 2008-06-07  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48781         to construct an empty ACL.
48782
48783 2008-06-07  Bruno Haible  <bruno@clisp.org>
48784
48785         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48786         precisely.
48787         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48788
48789 2008-06-07  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48792         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48793
48794 2008-06-07  Bruno Haible  <bruno@clisp.org>
48795
48796         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48797         regardless of POSIX.
48798         * doc/posix-functions/_longjmp.texi: Likewise.
48799         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48800         SystemV platform in this case.
48801
48802 2008-06-06  Eric Blake  <ebb9@byu.net>
48803
48804         Document abort() bugs.
48805         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48806
48807         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48808         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48809         sigsetjmp.
48810         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48811         siglongjmp, but only as a macro.
48812         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48813         is obsolete.
48814         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48815
48816         Tweak documentation to cover cygwin argz bugs.
48817         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48818         argz bug fix; no code change needed since no cygwin releases
48819         occurred between the last fix and the bug being tested.
48820         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48821         module and recently fixed cygwin bugs.
48822         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48823         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48824         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48825         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48826         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48827         Likewise.
48828         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48829         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48830         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48831         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48832         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48833         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48834         Likewise.
48835
48836         Avoid gcc warning on cygwin.
48837         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48838         !ACL_NO_TRIVIAL]: Avoid unused variable.
48839
48840 2008-06-05  Eric Blake  <ebb9@byu.net>
48841
48842         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48843         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48844         git-version-gen fails to come up with a version.
48845         Reported by Simon Josefsson.
48846
48847 2008-06-05  Jim Meyering  <meyering@redhat.com>
48848             Paul Eggert  <eggert@cs.ucla.edu>
48849
48850         utimens.c: work around a probable Linux kernel bug
48851         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48852         appears to be a kernel bug that causes utimensat to return 280
48853         instead of 0, indicating success.
48854
48855 2008-06-04  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48858         2008-06-01 commit.
48859
48860 2008-06-04  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48863         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48864         (file_has_acl): Use it. Save errno afterwards.
48865         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48866
48867 2008-06-03  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48870         draft code. Simplify #ifs.
48871         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48872         Put Solaris code after POSIX-draft code. Fix comments regarding
48873         Solaris 10, HP-UX. Mention Cygwin.
48874         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48875
48876 2008-06-03  Eric Blake  <ebb9@byu.net>
48877
48878         Provide fallback for older kernels.
48879         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48880         Provide runtime fallback if kernel lacks support.
48881         Reported by Mike Frysinger.
48882
48883 2008-06-02  Bruno Haible  <bruno@clisp.org>
48884
48885         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48886         it exists.
48887
48888 2008-06-02  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48891         * lib/copy-acl.c (qcopy_acl): Update comment.
48892
48893 2008-06-02  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48896         like ACL APIs.
48897
48898 2008-06-02  Bruno Haible  <bruno@clisp.org>
48899
48900         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48901         * tests/test-set-mode-acl.sh: Likewise.
48902         * tests/test-copy-acl.sh: Likewise.
48903         * tests/test-copy-file.sh: Likewise.
48904
48905 2008-06-02  Bruno Haible  <bruno@clisp.org>
48906
48907         * tests/test-file-has-acl.sh: Remove unused code.
48908
48909 2008-06-01  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48912         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48913         messages.
48914         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48915
48916 2008-06-01  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48919         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48920         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48921         APIs.
48922         * modules/acl-tests (configure.ac): Remove tests now contained in
48923         m4/acl.m4.
48924
48925 2008-06-02  Jim Meyering  <meyering@redhat.com>
48926
48927         announce-gen: use a better key-server host name
48928         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48929         it may be more consistently reliable.  Suggested by Werner Koch
48930         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48931
48932 2008-06-01  Bruno Haible  <bruno@clisp.org>
48933
48934         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48935         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48936
48937 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48938
48939         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48940
48941 2008-06-01  Bruno Haible  <bruno@clisp.org>
48942
48943         New ACL tests.
48944         * tests/test-file-has-acl.sh: New file.
48945         * tests/test-file-has-acl.c: New file.
48946         * tests/test-set-mode-acl.sh: New file.
48947         * tests/test-set-mode-acl.c: New file.
48948         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48949         * tests/test-copy-acl.c: New file.
48950         * modules/acl-tests: New file, based on modules/copy-file-tests.
48951         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48952         (Depends-on): Add acl-tests.
48953         (configure.ac): Remove checks.
48954         (Makefile.am): Don't create test-sameacls program here any more.
48955
48956 2008-06-01  Bruno Haible  <bruno@clisp.org>
48957
48958         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48959         * tests/test-sameacls.c: Include progname.h.
48960         (main): Invoke set_program_name. Portability fixes for MacOS X,
48961         Solaris, HP-UX.
48962
48963 2008-06-01  Bruno Haible  <bruno@clisp.org>
48964
48965         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48966         function.
48967         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48968
48969 2008-06-01  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/rpmatch (Depends-on): Add strdup.
48972
48973 2008-06-01  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/pipe.c: Include unistd-safer.h.
48976         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48977         * modules/pipe (Depends-on): Add unistd-safer.
48978
48979 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48980
48981         * modules/autobuild (configure.ac): Call AB_INIT.
48982
48983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48984
48985         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48986         Suggested by Bruno Haible <bruno@clisp.org>.
48987
48988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48989
48990         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48991         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48992         <bruno@clisp.org>.
48993
48994 2008-05-29  Eric Blake  <ebb9@byu.net>
48995
48996         Prefer new POSIX 200x interfaces over futimesat.
48997         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48998         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48999         when available.
49000         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49001
49002 2008-05-28  Bruno Haible  <bruno@clisp.org>
49003
49004         * modules/stpcpy (License): Change to LGPLv2+.
49005         Requested by David Lutterkort <dlutter@redhat.com>.
49006
49007 2008-05-27  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49010         current mingw.
49011         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49012
49013 2008-05-27  Bruno Haible  <bruno@clisp.org>
49014
49015         * modules/iconv_open (Link): New section, from module 'iconv'.
49016         * modules/striconv (Link): Likewise.
49017         * modules/striconveh (Link): Likewise.
49018         * modules/xstriconv (Link): Likewise.
49019         * modules/unicodeio (Link): Likewise.
49020         * modules/propername (Link): Likewise.
49021         Reported by Jim Meyering.
49022
49023 2008-05-26  Jim Meyering  <meyering@redhat.com>
49024
49025         sha256: do not artificially restrict buffer length to be < 2^32
49026         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49027         uint32_t to size_t.
49028         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49029         to match.
49030
49031         avoid unaligned access errors, e.g., on sparc
49032         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49033         direct access through a possibly-unaligned uint64* pointer.
49034         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49035         direct access through a possibly-unaligned uint32* pointer.
49036         Prompted by this patch from Tom "spot" Callaway:
49037         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49038
49039         sha512.c: fix typo in comment
49040         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49041
49042 2008-05-25  Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49045         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49046         (Makefile.am): Update lib_SOURCES.
49047
49048 2008-05-25  Bruno Haible  <bruno@clisp.org>
49049
49050         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49051
49052 2008-05-25  Jim Meyering  <meyering@redhat.com>
49053
49054         useless-if-before-free: freed expr may have white-space differences
49055         * build-aux/useless-if-before-free: Recognize cases in which the
49056         freed expression differs from the tested one in embedded white
49057         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49058         $1 was used, so we can't make any regexp shy.  Improved tests now
49059         detect this.
49060
49061         useless-if-before-free: accept white space in the expression.
49062         * build-aux/useless-if-before-free: For now, any white space
49063         in the expression must be identical in the free argument.
49064
49065         useless-if-before-free: efficiency tweak
49066         * build-aux/useless-if-before-free: Make the expression-matching
49067         regexp "shy".
49068         Make the *outer* regexp shy, not the expr-matching one.
49069
49070         update code-in-comment to accept cast of free arg
49071         * build-aux/useless-if-before-free: Update regexp.
49072
49073 2008-05-25  Bruno Haible  <bruno@clisp.org>
49074
49075         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49076         * modules/copy-file-tests (Files, Makefile.am): Update.
49077         * tests/test-copy-file.c (func_test_copy): Update.
49078
49079 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49080
49081         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49082
49083 2008-05-23  Bruno Haible  <bruno@clisp.org>
49084
49085         Improve support for ACLs on OSF/1.
49086         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49087         Remove fallback for unknown flavors of ACLs.
49088
49089 2008-05-22  Bruno Haible  <bruno@clisp.org>
49090
49091         Add support for ACLs on OSF/1.
49092         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49093         replacements.
49094         (acl_free_text): New macro fallback.
49095         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49096         acl_free.
49097         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49098         acl_free_text function. Require AC_C_INLINE.
49099
49100 2008-05-22  Bruno Haible  <bruno@clisp.org>
49101
49102         Make copy_acl work on MacOS X 10.5.
49103         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49104         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49105         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49106         If MODE_INSIDE_ACL, don't assume that every system has the same text
49107         representation for ACLs as FreeBSD.
49108         * lib/copy-acl.c (copy_acl): Add support for platforms with
49109         !MODE_INSIDE_ACL.
49110         * lib/file-has-acl.c (file_has_acl): Likewise.
49111         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49112         FreeBSD, MacOS X, or IRIX, respectively.
49113
49114 2008-05-22  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/acl.h: Don't include <sys/acl.h>.
49117         (GETACLCNT): Move fallback to lib/acl-internal.h.
49118         * lib/acl-internal.h: Include <sys/acl.h> here.
49119         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49120
49121 2008-05-22  Bruno Haible  <bruno@clisp.org>
49122
49123         Split off copy_acl function to separate file.
49124         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49125         * lib/acl.c (copy_acl): Moved function to separate file.
49126         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49127         * modules/acl (Files): Add lib/copy-acl.c.
49128         (Makefiles.am): Augment lib_SOURCES.
49129
49130 2008-05-22  Bruno Haible  <bruno@clisp.org>
49131
49132         * modules/copy-file-tests: New file.
49133         * tests/test-copy-file.sh: New file.
49134         * tests/test-copy-file.c: New file.
49135         * tests/test-copy-file-sameacls.c: New file.
49136
49137 2008-05-22  Eric Blake  <ebb9@byu.net>
49138
49139         Avoid gcc warning.
49140         * tests/test-memcmp.c (main): Pass NULL indirectly.
49141
49142 2008-05-21  Bruno Haible  <bruno@clisp.org>
49143
49144         Add reference doc about ACLs.
49145         * doc/acl-resources.txt: New file.
49146         * doc/acl-cygwin.txt: New file.
49147
49148 2008-05-21  Bruno Haible  <bruno@clisp.org>
49149
49150         Avoid one more warning from gcc.
49151         * lib/vasnprintf.c (IF_LINT): Update comments.
49152         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49153
49154 2008-05-21  Jim Meyering  <meyering@redhat.com>
49155
49156         avoid a warning from gcc
49157         * lib/vasnprintf.c (IF_LINT): Define.
49158         (scale10_round_decimal_long_double):
49159         Use it to avoid a "may be used uninitialized" warning.
49160         (scale10_round_decimal_double): Likewise.
49161
49162 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49163
49164         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49165         declared.
49166
49167 2008-05-20  Bruno Haible  <bruno@clisp.org>
49168
49169         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49170         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49171
49172 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49173
49174         * modules/memcmp-tests: New file.
49175         * tests/test-memcmp.c: New file.
49176
49177 2008-05-19  Bruno Haible  <bruno@clisp.org>
49178
49179         * modules/propername (Notice, configure.ac): Put quoted "..." into
49180         --keyword option.
49181         * lib/propername.h: Update comments accordingly.
49182         Reported by Eric Blake.
49183
49184 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49185
49186         * modules/getpass-gnu (Depends-on): Add fseeko.
49187
49188 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49189
49190         * modules/base64-tests: New file.
49191
49192 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49193
49194         * lib/base64.c (base64_decode_ctx): If a decode context structure
49195         was passed in use it to ignore newlines.  If a context structure
49196         was _not_ passed in, continue to treat newlines as garbage (this
49197         is the historical behavior).  Formerly base64_decode.
49198         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49199         takes a decode context structure.
49200         * lib/base64.h (base64_decode): Macro for four-argument calls.
49201         (base64_decode_alloc): Likewise.
49202         * lib/base64.c (base64_decode_ctx): If a decode context structure
49203         was passed in use it to ignore newlines.  If a context structure
49204         was _not_ passed in, continue to treat newlines as garbage (this
49205         is the historical behavior).  Formerly base64_decode.
49206         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49207         takes a decode context structure.
49208         * lib/base64.h (base64_decode): Macro for four-argument calls.
49209         (base64_decode_alloc): Likewise.
49210
49211 2008-05-19  Jim Meyering  <meyering@redhat.com>
49212
49213         avoid a warning from gcc
49214         * lib/trim.c (IF_LINT): Define.
49215         (trim2): Use it to avoid a "may be used uninitialized" warning.
49216
49217         Fix doc typo.
49218         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49219
49220 2008-05-19  Bruno Haible  <bruno@clisp.org>
49221
49222         * doc/glibc-functions/getpass.texi: Document limits of other
49223         implementations.
49224
49225 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49226             Bruno Haible <bruno@clisp.org>
49227
49228         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49229
49230 2008-05-18  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/propername: New file, from GNU gettext.
49233         * lib/propername.h: New file, from GNU gettext.
49234         * lib/propername.c: New file, from GNU gettext.
49235         * MODULES.html.sh (Internationalization functions): Add propername.
49236
49237 2008-05-16  Jim Meyering  <meyering@redhat.com>
49238             Bruno Haible  <bruno@clisp.org>
49239
49240         Avoid some warnings from "gcc -Wshadow".
49241         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49242
49243 2008-05-15  Eric Blake  <ebb9@byu.net>
49244
49245         Extend previous patch to cygwin 1.7.0.
49246         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49247         fast implementation in cygwin >= 1.7.0.
49248         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49250
49251 2008-05-15  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49254         implementation in glibc >= 2.9.
49255         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49257
49258 2008-05-15  Bruno Haible  <bruno@clisp.org>
49259
49260         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49261         (Unicode string functions): Add unilbrk/*.
49262         Reported by Karl Berry.
49263
49264 2008-05-15  Eric Blake  <ebb9@byu.net>
49265
49266         Fix violation of <stdbool.h> replacement in regex.
49267         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49268         * lib/regexec.c (re_search_internal): Likewise.
49269         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49270
49271 2008-05-15  Jim Meyering  <meyering@redhat.com>
49272
49273         avoid distracting test output when git or cvs is not found
49274         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49275         * tests/test-vc-list-files-git.sh: Likewise.
49276
49277 2008-05-15  Eric Blake  <ebb9@byu.net>
49278
49279         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49280         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49281         glibc version.
49282         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49283         * doc/posix-functions/strstr.texi (strstr): Likewise.
49284         * lib/str-two-way.h (MAX): Sychronize with glibc.
49285
49286 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49287
49288         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49289         opr.ctx_type.
49290         (calc_first): Initialize constraint field.
49291         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49292         Fix grammar.
49293         (duplicate_node): Merge constraint field for all node types.
49294         (calc_eclosure_iter): Look at constraint field for all node types.
49295         * lib/regex_internal.c (create_cd_newstate): Don't look at
49296         opr.ctx_type.
49297
49298 2008-05-14  Bruno Haible  <bruno@clisp.org>
49299
49300         Help GCC to do better code generation.
49301         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49302         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49303         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49304         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49305         Declare with attribute 'malloc' if supported.
49306
49307 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49308
49309         use "echo STR|wc -c" rather than unportable "expr length STR"
49310         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49311         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49312
49313 2008-05-14  Jim Meyering  <meyering@redhat.com>
49314
49315         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49316         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49317         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49318         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49319         via Collin Lasse.
49320
49321 2008-05-14  Eric Blake  <ebb9@byu.net>
49322
49323         Avoid quadratic growth in gl_LIBSOURCES.
49324         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49325         Suggested by Bruno Haible.
49326
49327         Test xmemdup0.
49328         * modules/xmemdup0-tests: New file.
49329         * tests/test-xmemdup0.c: Likewise.
49330
49331 2008-05-13  Eric Blake  <ebb9@byu.net>
49332
49333         Split xmemdup0 into its own module.
49334         * modules/xmemdup0: New file.
49335         * lib/xmemdup0.h: Likewise.
49336         * lib/xmemdup0.c: Likewise.
49337         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49338         * lib/xalloc.h (xmemdup0): Remove.
49339         * lib/xmalloc.c (xmemdup0): Likewise.
49340
49341 2008-05-13  Eric Blake  <ebb9@byu.net>
49342             Bruno Haible  <bruno@clisp.org>
49343
49344         Reduce number of forks required during autoconf.
49345         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49346         and gl_LIBSOURCES_DIR.
49347         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49348         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49349         m4_syscmd per file.
49350         <m4_foreach_w>: Move...
49351         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49352
49353 2008-05-13  Eric Blake  <ebb9@byu.net>
49354
49355         * gnulib-tool: Fix various comment typos.
49356
49357 2008-05-12  Bruno Haible  <bruno@clisp.org>
49358
49359         Tailor the linebreaking algorithm.
49360         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49361
49362 2008-05-12  Bruno Haible  <bruno@clisp.org>
49363
49364         Update to Unicode 5.0.0.
49365         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49366         LBP_JV, LBP_JT. Redistribute values.
49367         (unilbrk_table): Change size.
49368         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49369         Unicode TR#14 rev. 22.
49370         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49371         LBP_JV, LBP_JT. Redistribute values.
49372         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49373         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49374         Update.
49375         * lib/unilbrk/lbrkprop1.h: Regenerated.
49376         * lib/unilbrk/lbrkprop2.h: Regenerated.
49377         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49378         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49379         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49380         Likewise.
49381         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49382         Likewise.
49383         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49384         result.
49385         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49386         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49387         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49388         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49389         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49390         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49391
49392 2008-05-11  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49395
49396 2008-05-11  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49399         * modules/unilbrk/gen-lbrk: New file.
49400
49401 2008-05-11  Bruno Haible  <bruno@clisp.org>
49402
49403         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49404         * m4/sha512.m4 (gl_SHA512): Likewise.
49405
49406 2008-05-11  Jim Meyering  <meyering@redhat.com>
49407
49408         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49409         * modules/crypto/sha256: New file.
49410         * modules/crypto/sha512: Likewise.
49411         * lib/sha256.c: Likewise.
49412         * lib/sha256.h: Likewise.
49413         * lib/sha512.c: Likewise.
49414         * lib/sha512.h: Likewise.
49415         * lib/u64.h: Likewise.
49416         * m4/sha256.m4: Likewise.
49417         * m4/sha512.m4: Likewise.
49418         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49419
49420 2008-05-10  Bruno Haible  <bruno@clisp.org>
49421
49422         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49423         (Input/Output <stdio.h>): Add xprintf.
49424         (Signal handling <signal.h>): Add strsignal.
49425         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49426         (Core language properties): Add func.
49427         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49428         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49429         strings.
49430         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49431         (Input/output): New section.
49432         (File system functions): Add openat-die, stat-macros.
49433         (Networking functions): Add sockets.
49434         (Unicode string functions): Add unictype/*.
49435         (Support for building libraries and executables): Add gperf.
49436         (Support for building documentation): Add agpl-3.0.
49437         (Misc): Add nocrash.
49438
49439 2008-05-10  Bruno Haible  <bruno@clisp.org>
49440
49441         * modules/unictype/gen-ctype: New file.
49442
49443 2008-05-10  Jim Meyering  <meyering@redhat.com>
49444
49445         Make chdir-safer.c more efficient on a system with no symlinks.
49446         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49447         also if ELOOP is zero.  Suggested by Bruno Haible.
49448
49449         Make chdir-safer.c slightly safer.
49450         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49451         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49452
49453         Avoid compile failure on systems without ELOOP (like mingw).
49454         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49455         Reported by Bruno Haible.
49456
49457 2008-05-10  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49460         (is_utf8_encoding): Use a case-insensitive comparison.
49461         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49462         streq.
49463
49464 2008-05-10  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49467         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49468         * lib/unilbrk/ulc-common.h (iconv_string_length,
49469         iconv_string_keeping_offsets): Remove declarations.
49470         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49471         Don't include <iconv.h>, streq.h, xsize.h.
49472         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49473         conversion.
49474         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49475         <iconv.h>, streq.h, xsize.h.
49476         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49477         conversion.
49478         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49479         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49480         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49481         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49482
49483 2008-05-10  Bruno Haible  <bruno@clisp.org>
49484
49485         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49486         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49487
49488         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49489         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49490
49491         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49492         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49493
49494         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49495         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49496
49497         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49498         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49499
49500         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49501         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49502
49503         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49504         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49505
49506         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49507         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49508
49509 2008-05-10  Bruno Haible  <bruno@clisp.org>
49510
49511         Split up 'linebreak' module.
49512         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49513         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49514         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49515         modifications.
49516         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49517         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49518         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49519         lib/linebreak.c.
49520         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49521         lib/linebreak.c.
49522         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49523         lib/linebreak.c.
49524         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49525         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49526         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49527         lib/linebreak.c.
49528         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49529         lib/linebreak.c.
49530         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49531         lib/linebreak.c.
49532         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49533         lib/linebreak.c.
49534         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49535         lib/linebreak.c.
49536         * modules/unilbrk/base: New file.
49537         * modules/unilbrk/tables: New file.
49538         * modules/unilbrk/u8-possible-linebreaks: New file.
49539         * modules/unilbrk/u16-possible-linebreaks: New file.
49540         * modules/unilbrk/u32-possible-linebreaks: New file.
49541         * modules/unilbrk/ulc-common: New file.
49542         * modules/unilbrk/ulc-possible-linebreaks: New file.
49543         * modules/unilbrk/u8-width-linebreaks: New file.
49544         * modules/unilbrk/u16-width-linebreaks: New file.
49545         * modules/unilbrk/u32-width-linebreaks: New file.
49546         * modules/unilbrk/ulc-width-linebreaks: New file.
49547         * lib/linebreak.h: Remove file.
49548         * lib/linebreak.c: Remove file.
49549         * m4/linebreak.m4: Remove file.
49550         * modules/linebreak: Remove file.
49551         * NEWS: Mention the changes.
49552
49553 2008-05-09  Eric Blake  <ebb9@byu.net>
49554
49555         Add xmemdup0.
49556         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49557         implementation.
49558         * lib/xmalloc.c (xmemdup0): New C implementation.
49559
49560 2008-05-08  Bruno Haible  <bruno@clisp.org>
49561
49562         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49563
49564 2008-05-07  Eric Blake  <ebb9@byu.net>
49565
49566         Support cross-compilation of <wctype.h>.
49567         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49568         AC_CACHE_CHECK.
49569
49570 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49571
49572         * build-aux/vc-list-files: Add support for bzr.
49573
49574 2008-05-03  Jim Meyering  <meyering@redhat.com>
49575
49576         avoid failed assertion with tight malloc
49577         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49578
49579 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49580
49581         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49582         are needed from arpa/inet.h.
49583         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49584         Reported by Bruno Haible.
49585
49586 2008-05-02  Jim Meyering  <meyering@redhat.com>
49587
49588         avoid compilation error on FreeBSD 6
49589         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49590
49591 2008-05-01  Jim Meyering  <meyering@redhat.com>
49592
49593         useless-if-before-free: correct --help's exit status description
49594         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49595         for one or more matches, etc.  Reported by Bruno Haible.
49596
49597         vc-list-files: make the stand-alone gnulib test work
49598         * modules/vc-list-files-tests (configure.ac):
49599         Define and AC_SUBST abs_aux_dir.
49600         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49601         $(abs_top_srcdir) to each script and having each of them
49602         duplicate the work of setting PATH, set PATH here, using
49603         the new variable, abs_aux_dir instead.
49604         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49605         * tests/test-vc-list-files-git.sh: Likewise.
49606         Reported by Bruno Haible.
49607
49608 2008-05-01  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49611         reallocation. Rename 'done' to 'found_delimiter'.
49612
49613 2008-05-01  Jim Meyering  <meyering@redhat.com>
49614
49615         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49616         * build-aux/vc-list-files: Use `...`, not $(...).
49617
49618 2008-04-30  Jim Meyering  <meyering@redhat.com>
49619
49620         add tests for vc-list-files
49621         * modules/vc-list-files-tests: New module.
49622         * tests/test-vc-list-files-cvs.sh: New file.
49623         * tests/test-vc-list-files-git.sh: New file.
49624
49625         avoid a warning from gcc
49626         * lib/getndelim2.c (IF_LINT): Define.
49627         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49628
49629         vc-list-files: work properly with build-aux/cvsu, too
49630         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49631         to all cvs-based clauses.
49632
49633         vc-list-files: work properly in the CVS+awk case, too
49634         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49635
49636         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49637         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49638         take more than one file argument, so .  Add quotes, just in case $dir
49639         ever contains a shell meta-character.  Prompted by Soren Hansen in
49640         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49641
49642 2008-04-29  Eric Blake  <ebb9@byu.net>
49643
49644         Optimize getndelim2 to use block operations when possible.
49645         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49646         freadseek, and memchr2.
49647         * lib/getndelim2.c (getndelim2): Use them for block reads.
49648
49649 2008-04-29  Bruno Haible  <bruno@clisp.org>
49650
49651         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49652         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49653         * modules/inet_ntop (Depends-on): Add extensions.
49654         * modules/inet_pton (Depends-on): Likewise.
49655         Reported by Simon Josefsson.
49656
49657 2008-04-29  Jim Meyering  <meyering@redhat.com>
49658
49659         When the is more than one match in a block, match all of them.
49660         * build-aux/useless-if-before-free: Iterate through each block
49661         until there are no more matches.
49662
49663         Fix broken useless-if-before-free script.
49664         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49665         the expression to match cast of argument to free-like function.
49666
49667 2008-04-29  Eric Blake  <ebb9@byu.net>
49668
49669         Use new header.
49670         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49671
49672 2008-04-29  Jim Meyering  <meyering@redhat.com>
49673
49674         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49675         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49676         by gnulib to exist and to declare e.g., inet_ntop.
49677         Don't include "inet_ntop.h", now removed.
49678
49679         * m4/arpa_inet_h.m4: Remove trailing blanks.
49680
49681 2008-04-29  Eric Blake  <ebb9@byu.net>
49682
49683         Silence valgrind on safe reads beyond potential array bounds.
49684         * lib/rawmemchr.valgrind: New file.
49685         * lib/strchrnul.valgrind: Likewise.
49686         * modules/rawmemchr (Files): Distribute new file.
49687         * modules/strchrnul (Files): Likewise.
49688         Suggested by Bruno Haible.
49689
49690 2008-04-29  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49693         (inet_ntop, inet_pton): Change portability warning's wording.
49694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49695         Invoke gl_CHECK_NEXT_HEADERS.
49696         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49697         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49698         set ARPA_INET_H.
49699         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49700         * modules/arpa_inet (Description): No longer only for systems that
49701         lack it.
49702         (Depends-on): Add include_next.
49703         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49704         HAVE_ARPA_INET_H.
49705
49706 2008-04-29  Jim Meyering  <meyering@redhat.com>
49707
49708         * modules/mkdir (License): Re-license as LGPLv2+.
49709
49710 2008-04-29  Bruno Haible  <bruno@clisp.org>
49711
49712         * modules/rawmemchr (Maintainer): Set to Eric.
49713         * modules/strchrnul (Maintainer): Likewise.
49714
49715 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49716
49717         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49718         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49719
49720         * modules/arpa_inet (arpa/inet.h): Use them.
49721
49722 2008-04-28  Eric Blake  <ebb9@byu.net>
49723
49724         Test getndelim2.
49725         * modules/getndelim2-tests: New file.
49726         * tests/test-getndelim2.c: Likewise.
49727         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49728         stream.
49729         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49730
49731         * MODULES.html.sh: Document new module.
49732
49733 2008-04-20  Bruno Haible  <bruno@clisp.org>
49734
49735         * lib/c-stack.c (die): Use raise.
49736         * modules/c-stack (Depends-on): Add raise.
49737
49738 2008-04-28  Bruno Haible  <bruno@clisp.org>
49739
49740         Expect rpmatch to be declared.
49741         * lib/yesno.c (rpmatch): Remove declaration.
49742
49743         Declare rpmatch.
49744         * lib/stdlib.in.h (rpmatch): New declaration.
49745         * lib/rpmatch.c: Include <stdlib.h> first.
49746         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49747         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49749         HAVE_RPMATCH.
49750         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49752         (Include): Set to <stdlib.h>.
49753         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49754         HAVE_RPMATCH.
49755         * NEWS: Document the change.
49756
49757 2008-04-28  Bruno Haible  <bruno@clisp.org>
49758
49759         Change rpmatch to use nl_langinfo when appropriate.
49760         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49761         (N_): New macro.
49762         (localized_pattern): New function/macro.
49763         (try): Remove match, nomatch arguments. Copy the pattern into safe
49764         memory before caching it.
49765         (rpmatch): Use localized_pattern. Add translator comments.
49766         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49767         Suggested by Eric Blake.
49768         * modules/rpmatch (Depends-on): Add stdbool.
49769
49770 2008-04-28  Eric Blake  <ebb9@byu.net>
49771
49772         Add rawmemchr module, matching glibc.
49773         * modules/string (Makefile.am): New indicator.
49774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49775         * lib/string.in.h (rawmemchr): Declare when appropriate.
49776         * modules/rawmemchr: New file.
49777         * m4/rawmemchr.m4: Likewise.
49778         * lib/rawmemchr.c: Likewise.
49779         * modules/rawmemchr-tests: Likewise.
49780         * tests/test-rawmemchr.c: Likewise.
49781         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49782         module.
49783         * modules/strchrnul (Depends-on): Add rawmemchr.
49784         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49785
49786         Whitespace cleanup.
49787         * tests/test-strchrnul.c: Reindent.
49788         * lib/strchrnul.c: Likewise.
49789
49790         Optimize and test strchrnul.
49791         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49792         * modules/strchrnul-tests: New file.
49793         * tests/test-strchrnul.c: Likewise.
49794
49795         Remove intprops dependency.
49796         * modules/memchr (Depends-on): Remove intprops.
49797         * modules/memrchr (Depends-on): Likewise.
49798         * modules/memchr2 (Depends-on): Likewise.
49799         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49800         * lib/memrchr.c (__memrchr): Likewise.
49801         * lib/memrchr2.c (memchr2): Likewise.
49802         Reported by Simon Josefsson.
49803
49804 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49805
49806         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49807         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49808
49809 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49810
49811         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49812
49813         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49814
49815         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49816
49817         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49818         declarations.
49819         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49820
49821         * m4/inet_pton.m4: Don't check for header files.
49822
49823         * m4/inet_ntop.m4: Don't check for header files.
49824
49825 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49826
49827         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49828         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49829         trigger for cygwin).
49830         Reported by Bruno Haible  <bruno@clisp.org>.
49831
49832 2008-04-28  Bruno Haible  <bruno@clisp.org>
49833
49834         * doc/posix-functions/strdup.texi: Mention mingw problem.
49835
49836 2008-04-27  Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/stat-time-tests (Depends-on): Add sleep.
49839         * tests/test-stat-time.c (force_unlink): New function.
49840         (cleanup): Use it.
49841         (test_mtime): Remove the ctime related tests.
49842         (test_ctime): New function, containing the ctime related tests.
49843         (main): Call test_ctime, except on native Windows platforms.
49844
49845 2008-04-27  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/rpmatch.c (rpmatch): Add some comments.
49848         Reported by James Youngman <jay@gnu.org>.
49849
49850 2008-04-27  Bruno Haible  <bruno@clisp.org>
49851
49852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49853         quiet NaNs.
49854
49855 2008-04-27  Bruno Haible  <bruno@clisp.org>
49856
49857         Make test-yesno.sh work on mingw.
49858         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49859         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49860         (main): Set stdin to binary mode.
49861         * modules/yesno-tests (Depends-on): Add binary-io.
49862
49863 2008-04-27  Bruno Haible  <bruno@clisp.org>
49864
49865         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49866         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49867         argument that lie outside the IEEE 854 domain.
49868         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49869         (gl_ISFINITE): Use it.
49870         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49871
49872 2008-04-27  Bruno Haible  <bruno@clisp.org>
49873
49874         Allow local renaming in config.h.
49875         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49876
49877 2008-04-27  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/memchr.c (__memchr): Change type of 'i'.
49880         * lib/memchr2.c (memchr2): Likewise.
49881
49882 2008-04-26  Eric Blake  <ebb9@byu.net>
49883         and Bruno Haible  <bruno@clisp.org>
49884
49885         Optimize and test memrchr.
49886         * modules/memrchr (Depends-on): Add intprops.
49887         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49888         * modules/memrchr-tests: New file.
49889         * tests/test-memrchr.c: New file.
49890
49891 2008-04-26  Bruno Haible  <bruno@clisp.org>
49892
49893         Add tentative support for DragonFly BSD.
49894         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49895         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49896         fp.
49897         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49898         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49899         * lib/fpurge.c (fpurge): Likewise.
49900         * lib/freadable.c (freaadable): Likewise.
49901         * lib/freadahead.c (freadahead): Likewise.
49902         * lib/freading.c (freading): Likewise.
49903         * lib/freadptr.c (freadptr): Likewise.
49904         * lib/freadseek.c (freadptrinc): Likewise.
49905         * lib/fseeko.c (fseeko): Likewise.
49906         * lib/fseterr.c (fseterr): Likewise.
49907         * lib/fwritable.c (fwritable): Likewise.
49908         * lib/fwriting.c (fwriting): Likewise.
49909
49910 2008-04-26  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/stdio-impl.h: New file.
49913         * lib/fbufmode.c: Include stdio-impl.h.
49914         (fbufmode): Use fp_, remove redundant #defines.
49915         * lib/fflush.c: Include stdio-impl.h.
49916         (clear_ungetc_buffer): Remove redundant #defines.
49917         * lib/fpurge.c: Include stdio-impl.h.
49918         (fpurge): Remove redundant #defines.
49919         * lib/freadable.c: Include stdio-impl.h.
49920         (freadable): Remove redundant #defines.
49921         * lib/freadahead.c: Include stdio-impl.h.
49922         (freadahead): Remove redundant #defines.
49923         * lib/freading.c: Include stdio-impl.h.
49924         (freading): Remove redundant #defines.
49925         * lib/freadptr.c: Include stdio-impl.h.
49926         (freadptr): Remove redundant #defines.
49927         * lib/freadseek.c: Include stdio-impl.h.
49928         (freadptrinc): Remove redundant #defines.
49929         * lib/fseeko.c: Include stdio-impl.h.
49930         (rpl_fseeko): Remove redundant #defines.
49931         * lib/fseterr.c: Include stdio-impl.h.
49932         (fseterr): Remove redundant #defines.
49933         * lib/fwritable.c: Include stdio-impl.h.
49934         (fwritable: Remove redundant #defines.
49935         * lib/fwriting.c: Include stdio-impl.h.
49936         (fwriting): Remove redundant #defines.
49937         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49938         * modules/fflush (Files): Likewise.
49939         * modules/fpurge (Files): Likewise.
49940         * modules/freadable (Files): Likewise.
49941         * modules/freadahead (Files): Likewise.
49942         * modules/freading (Files): Likewise.
49943         * modules/freadptr (Files): Likewise.
49944         * modules/freadseek (Files): Likewise.
49945         * modules/fseeko (Files): Likewise.
49946         * modules/fseterr (Files): Likewise.
49947         * modules/fwritable (Files): Likewise.
49948         * modules/fwriting (Files): Likewise.
49949
49950 2008-04-26  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49953         restore_seek_optimization, update_fpos_cache): New functions, extracted
49954         from rpl_fflush.
49955         (rpl_fflush): Use them.
49956         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49957         (gl_REPLACE_FFLUSH): Use it.
49958
49959 2008-04-26  Bruno Haible  <bruno@clisp.org>
49960
49961         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49962         on Solaris.
49963         * tests/test-xstrtoimax.sh: Likewise.
49964         * tests/test-xstrtoumax.sh: Likewise.
49965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49966
49967 2008-04-26  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/memchr-tests: New file.
49970         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49971
49972 2008-04-26  Eric Blake  <ebb9@byu.net>
49973             Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/memchr.c: Include intprops.h.
49976         (__memchr): Optimize parallel detection of matching bytes. Rename local
49977         variables. Add explanatory comments.
49978
49979 2008-04-26  Bruno Haible  <bruno@clisp.org>
49980
49981         Fix module 'memchr', broken since 2000-10-28.
49982         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49983
49984 2008-04-26  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49987         comments.
49988
49989 2008-04-25  Eric Blake  <ebb9@byu.net>
49990
49991         Use native fstatat on cygwin 1.7.0.
49992         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49993         first.
49994
49995 2008-04-23  Eric Blake  <ebb9@byu.net>
49996
49997         Improve memchr2 performance.
49998         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49999         NUL bytes.
50000         * modules/memchr2 (Depends-on): Use intprops.h.
50001
50002 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50003
50004         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50005         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50006         <blp@cs.stanford.edu>.
50007
50008 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50009
50010         * lib/arpa_inet.in.h: New file.
50011
50012         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50013         (Makefile.am): Sed in substitute header file.
50014
50015         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50016         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50017
50018         * modules/inet_ntop (configure.ac): Use
50019         gl_ARPA_INET_MODULE_INDICATOR.
50020
50021         * modules/inet_pton (configure.ac): Use
50022         gl_ARPA_INET_MODULE_INDICATOR.
50023
50024 2008-04-22  Jim Meyering  <meyering@redhat.com>
50025
50026         * modules/verify (License): Re-license as LGPLv2+.
50027
50028 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50029
50030         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50031         parameter to void* as per POSIX standard (MinGW uses char*).
50032
50033 2008-04-21  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50036         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50037         Define to replacements if REPLACE_ISWCNTRL is 1.
50038         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50039         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50040         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50041         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50042         what it fixes.
50043         * doc/posix-functions/iswalpha.texi: Likewise.
50044         * doc/posix-functions/iswblank.texi: Likewise.
50045         * doc/posix-functions/iswcntrl.texi: Likewise.
50046         * doc/posix-functions/iswdigit.texi: Likewise.
50047         * doc/posix-functions/iswgraph.texi: Likewise.
50048         * doc/posix-functions/iswlower.texi: Likewise.
50049         * doc/posix-functions/iswprint.texi: Likewise.
50050         * doc/posix-functions/iswpunct.texi: Likewise.
50051         * doc/posix-functions/iswspace.texi: Likewise.
50052         * doc/posix-functions/iswupper.texi: Likewise.
50053         * doc/posix-functions/iswxdigit.texi: Likewise.
50054         Reported by Alain Guibert.
50055
50056 2008-04-21  Bruno Haible  <bruno@clisp.org>
50057
50058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50059         Patch by Alain Guibert.
50060
50061 2008-04-21  Bruno Haible  <bruno@clisp.org>
50062
50063         Fix test failures on mingw.
50064         * tests/test-xstrtol.c (print_no_progname): New function.
50065         (main): Install it in error_print_progname hook.
50066         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50067         * tests/test-xstrtoimax.sh: Likewise.
50068         * tests/test-xstrtoumax.sh: Likewise.
50069
50070 2008-04-21  Bruno Haible  <bruno@clisp.org>
50071
50072         Fix test failure on mingw.
50073         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50074
50075 2008-04-21  Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50078         Actually assign a value.
50079
50080 2008-04-20  Bruno Haible  <bruno@clisp.org>
50081
50082         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50083         take 2.
50084         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50085         'canonicalize-lgpl' module is also used.
50086         * lib/canonicalize-lgpl.c: Undo last change.
50087         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50088
50089 2008-04-20  Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50092         config.h. Provide _mkdir based fallback for mingw.
50093         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50094         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50095         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50096         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50097         rather than defining mkdir in config.h.
50098         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50099         (gl_SYS_STAT_H_DEFAULTS): New macro.
50100         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50101         HAVE_IO_H any more.
50102         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50103         HAVE_DECL_MKDIR and HAVE_IO_H.
50104
50105 2008-04-20  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/isapipe.c: Port to native Windows platforms.
50108
50109 2008-04-20  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50112
50113 2008-04-21  Eric Blake  <ebb9@byu.net>
50114
50115         Work around preprocessors that don't handle UINTMAX_MAX.
50116         * lib/memchr2.c (memchr2): Avoid embedded #if.
50117         Reported by Alain Guibert, fix suggested by Bruno Haible.
50118
50119 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50120
50121         * doc/posix-functions/strftime.texi (strftime): Explain better
50122         Windows incompatibility.  Suggested by Micah Cowan
50123         <micah@cowan.name>.
50124
50125 2008-04-20  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50128         unistr/u8-mblen.
50129
50130 2008-04-20  Bruno Haible  <bruno@clisp.org>
50131
50132         Fix test failure on platforms with non-GNU iconv.
50133         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50134         (U_TO_U8): Use it, rather than u16_to_u8.
50135         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50136         units at the end of the input string.
50137         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50138
50139 2008-04-20  Bruno Haible  <bruno@clisp.org>
50140
50141         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50142         when the resulting length is 0.
50143         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50144
50145 2008-04-20  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50148         works.
50149         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50150
50151 2008-04-20  Bruno Haible  <bruno@clisp.org>
50152
50153         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50154         * modules/tsearch-tests (configure.ac): Test for initstate function.
50155
50156 2008-04-20  Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50159         for nlink_t if missing.
50160         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50161
50162 2008-04-19  Bruno Haible  <bruno@clisp.org>
50163
50164         Work around snprintf bug on Linux libc5.
50165         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50167         gl_SNPRINTF_SIZE1.
50168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50170         that test failed.
50171         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50172         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50173         * modules/snprintf (Files): Add m4/printf.m4.
50174         * modules/vsnprintf (Files): Likewise.
50175         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50176         * doc/posix-functions/vsnprintf.texi: Likewise.
50177
50178 2008-04-19  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50181         from 0.0058 to less than 10^-7.
50182
50183 2008-04-19  Bruno Haible  <bruno@clisp.org>
50184
50185         Fix rounding when a precision is given.
50186         * lib/vasnprintf.c (is_borderline): New function.
50187         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50188         9...9x.
50189         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50190         %e, %g.
50191         * tests/test-vasprintf-posix.c (test_function): Likewise.
50192         * tests/test-snprintf-posix.h (test_function): Likewise.
50193         * tests/test-sprintf-posix.h (test_function): Likewise.
50194         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50195         * tests/test-printf-posix.h (test_function): Likewise.
50196         * tests/test-printf-posix.output: Update.
50197         Reported by John Darrington <john@darrington.wattle.id.au> via
50198         Ben Pfaff <blp@cs.stanford.edu>.
50199
50200 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50201
50202         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50203         Suggested by Bruno Haible <bruno@clisp.org>.
50204
50205 2008-04-17  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50208         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50209         implementation.
50210         Patch by Bruce Merry <bmerry@gmail.com>.
50211
50212 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50213
50214         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50215         doesn't work under Windows.
50216
50217 2008-04-16  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50220         New macros.
50221         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50222         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50223         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50224         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50225         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50226         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50227         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50228         macros.
50229         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50230         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50231         Northern Sotho, Uighur.
50232
50233 2008-04-16  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50236         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50237         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50238         Reported by Daniel Bergström <daniel@octocode.com>.
50239
50240 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50241             Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50244         function.
50245         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50246         New functions, mostly extracted from gl_locale_name_default.
50247         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50248
50249 2008-04-16  Eric Blake  <ebb9@byu.net>
50250
50251         Adjust strtod detection to catch glibc 2.7 bug.
50252         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50253         Reported by John Gatewood Ham.
50254
50255 2008-04-16  Bruno Haible  <bruno@clisp.org>
50256
50257         Add tentative support for Linux libc5.
50258         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50259         * lib/fpurge.c (fpurge): Likewise.
50260         * lib/freadable.c (freadable): Likewise.
50261         * lib/freadahead.c (freadahead): Likewise.
50262         * lib/freading.c (freading): Likewise.
50263         * lib/freadptr.c (freadptr): Likewise.
50264         * lib/freadseek.c (freadptrinc): Likewise.
50265         * lib/fseeko.c (rpl_fseeko): Likewise.
50266         * lib/fseterr.c (fseterr): Likewise.
50267         * lib/fwritable.c (fwritable): Likewise.
50268         * lib/fwriting.c (fwriting): Likewise.
50269         Reported by Alain Guibert <alguibert+bts@free.fr>.
50270
50271 2008-04-15  Bruno Haible  <bruno@clisp.org>
50272
50273         * modules/mathl (configure.ac): Define module indicator.
50274
50275 2008-04-15  Bruno Haible  <bruno@clisp.org>
50276
50277         * lib/logl.c (logl): Remove unused variables.
50278
50279 2008-04-15  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50282         fails.
50283
50284 2008-04-15  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/trim.c (trim2): Fix argument of isspace() macro.
50287
50288 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50289
50290         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50291         to 0.
50292         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50293
50294 2008-04-14  Bruno Haible  <bruno@clisp.org>
50295
50296         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50297         AC_LANG_PROGRAM argument.
50298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50299         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50301         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50302         * m4/math_h.m4 (gl_MATH_H): Likewise.
50303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50307         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50308         * m4/regex.m4 (gl_REGEX): Likewise.
50309         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50312         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50313         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50317
50318 2008-04-14  Jim Meyering  <meyering@redhat.com>
50319
50320         test-strtod: fix typos: s/abs/fabs/
50321         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50322
50323 2008-04-13  Bruno Haible  <bruno@clisp.org>
50324
50325         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50326         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50327         module is also used and while not building the reloc-wrapper.
50328
50329 2008-04-13  Bruno Haible  <bruno@clisp.org>
50330
50331         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50332
50333 2008-04-13  Bruno Haible  <bruno@clisp.org>
50334
50335         Fix AIX compilation failure introduced on 2008-04-02.
50336         * tests/test-frexp.c (exp): Undefine before redefining.
50337         * tests/test-frexpl.c (exp): Likewise.
50338
50339 2008-04-13  Bruno Haible  <bruno@clisp.org>
50340
50341         Work around a HP-UX stdio bug.
50342         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50343         * tests/test-ftello.c (main): Likewise.
50344         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50345         * doc/posix-functions/ftello.texi: Likewise.
50346
50347 2008-04-13  Bruno Haible  <bruno@clisp.org>
50348
50349         Make test-signbit pass on HP-UX/hppa.
50350         * tests/test-signbit.c (minus_zerol): New variable.
50351         (test_signbitl): Use it.
50352
50353 2008-04-13  Bruno Haible  <bruno@clisp.org>
50354
50355         Make truncl work on OSF/1 4.0.
50356         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50357         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50358         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50360         HAVE_DECL_TRUNCL.
50361         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50362         HAVE_DECL_TRUNCL.
50363         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50364
50365 2008-04-13  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50368
50369 2008-04-13  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50372         expression, so as to avoid HP-UX 11 cc compiler bug.
50373
50374 2008-04-13  Bruno Haible  <bruno@clisp.org>
50375
50376         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50377
50378 2008-04-13  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/git-merge-changelog.c: Remove empty declaration outside of
50381         functions.
50382
50383 2008-04-13  Bruno Haible  <bruno@clisp.org>
50384
50385         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50386
50387 2008-04-13  Bruno Haible  <bruno@clisp.org>
50388
50389         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50390         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50392         also if it exists but lacks definitions of the SHUT_* macros.
50393         * modules/sys_socket (Description): Update.
50394         Reported by Elbert Pol <e.pol@chello.nl>.
50395
50396 2008-04-13  Bruno Haible  <bruno@clisp.org>
50397
50398         * lib/localcharset.c (OS2): Don't redefine if already defined.
50399         Reported by Elbert Pol <e.pol@chello.nl>.
50400
50401 2008-04-13  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/binary-io.h [__EMX__]: Include <io.h>.
50404         Reported by Elbert Pol <e.pol@chello.nl>.
50405
50406 2008-04-12  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/fpucw.h: Enable the definitions also for x86_64.
50409         Needed for NetBSD/x86_64.
50410         Reported by Thomas Klausner <tk@giga.or.at>.
50411
50412 2008-04-12  Bruno Haible  <bruno@clisp.org>
50413
50414         * tests/test-strtod.c: Include isnand.h.
50415         (main): Use isnand instead of isnan.
50416         Reported by Jim Meyering.
50417
50418 2008-04-12  Bruno Haible  <bruno@clisp.org>
50419
50420         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50422
50423 2008-04-12  Jim Meyering  <meyering@redhat.com>
50424
50425         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50426
50427 2008-04-12  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50430         Reported by Elbert Pol <e.pol@chello.nl>.
50431
50432 2008-04-12  Eric Blake  <ebb9@byu.net>
50433
50434         Work around Solaris 10 math.h bug.
50435         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50436         (gl_MATH_H_DEFAULTS): Set up default.
50437         * modules/math (Makefile.am): Replace new indicators.
50438         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50439         * tests/test-math.c (main): Test this.
50440         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50441         * doc/posix-headers/math.texi (math.h): Mention bug.
50442         Reported by Nelson H. F. Beebe and Jim Meyering.
50443
50444 2008-04-11  Bruno Haible  <bruno@clisp.org>
50445
50446         Adapt to future versions of Apple GCC.
50447         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50448         Reported by Peter O'Gorman <peter@pogma.com>.
50449
50450 2008-04-11  Bruno Haible  <bruno@clisp.org>
50451
50452         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50453
50454 2008-04-11  Bruno Haible  <bruno@clisp.org>
50455
50456         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50457
50458         * modules/getaddrinfo-tests (Makefile.am): Define
50459         test_getaddrinfo_LDADD.
50460
50461 2008-04-11  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50464         (init): Fix syntax error.
50465         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50466         is declared.
50467
50468 2008-04-11  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50471         * modules/glob (Depends-on): Add stdbool.
50472
50473 2008-04-11  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/trim.c: Include <string.h>.
50476
50477 2008-04-11  Eric Blake  <ebb9@byu.net>
50478
50479         Avoid compile failure on OS/2.
50480         * lib/regex_internal.h (internal_function): Disable optimization
50481         on OS/2 (__EMX__), where it caused compiler error.
50482         Reported by Elbert Pol.
50483
50484 2008-04-11  Bruno Haible  <bruno@clisp.org>
50485
50486         Flush the standard error stream before aborting. Needed on mingw.
50487         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50488         * tests/test-array_list.c (ASSERT): Likewise.
50489         * tests/test-array_oset.c (ASSERT): Likewise.
50490         * tests/test-avltree_list.c (ASSERT): Likewise.
50491         * tests/test-avltree_oset.c (ASSERT): Likewise.
50492         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50493         * tests/test-binary-io.c (ASSERT): Likewise.
50494         * tests/test-byteswap.c (ASSERT): Likewise.
50495         * tests/test-c-ctype.c (ASSERT): Likewise.
50496         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50497         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50498         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50499         * tests/test-c-strstr.c (ASSERT): Likewise.
50500         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50501         * tests/test-canonicalize.c (ASSERT): Likewise.
50502         * tests/test-carray_list.c (ASSERT): Likewise.
50503         * tests/test-ceilf1.c (ASSERT): Likewise.
50504         * tests/test-ceilf2.c (ASSERT): Likewise.
50505         * tests/test-ceill.c (ASSERT): Likewise.
50506         * tests/test-count-one-bits.c (ASSERT): Likewise.
50507         * tests/test-fbufmode.c (ASSERT): Likewise.
50508         * tests/test-fflush2.c (ASSERT): Likewise.
50509         * tests/test-floorf1.c (ASSERT): Likewise.
50510         * tests/test-floorf2.c (ASSERT): Likewise.
50511         * tests/test-floorl.c (ASSERT): Likewise.
50512         * tests/test-fopen.c (ASSERT): Likewise.
50513         * tests/test-fpending.c (ASSERT): Likewise.
50514         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50515         * tests/test-fpurge.c (ASSERT): Likewise.
50516         * tests/test-freadable.c (ASSERT): Likewise.
50517         * tests/test-freadahead.c (ASSERT): Likewise.
50518         * tests/test-freading.c (ASSERT): Likewise.
50519         * tests/test-freadptr.c (ASSERT): Likewise.
50520         * tests/test-freadptr2.c (ASSERT): Likewise.
50521         * tests/test-freadseek.c (ASSERT): Likewise.
50522         * tests/test-freopen.c (ASSERT): Likewise.
50523         * tests/test-frexp.c (ASSERT): Likewise.
50524         * tests/test-frexpl.c (ASSERT): Likewise.
50525         * tests/test-fseek.c (ASSERT): Likewise.
50526         * tests/test-fseeko.c (ASSERT): Likewise.
50527         * tests/test-fstrcmp.c (ASSERT): Likewise.
50528         * tests/test-ftell.c (ASSERT): Likewise.
50529         * tests/test-ftello.c (ASSERT): Likewise.
50530         * tests/test-func.c (ASSERT): Likewise.
50531         * tests/test-fwritable.c (ASSERT): Likewise.
50532         * tests/test-fwriting.c (ASSERT): Likewise.
50533         * tests/test-getdelim.c (ASSERT): Likewise.
50534         * tests/test-getline.c (ASSERT): Likewise.
50535         * tests/test-i-ring.c (ASSERT): Likewise.
50536         * tests/test-iconv-utf.c (ASSERT): Likewise.
50537         * tests/test-iconv.c (ASSERT): Likewise.
50538         * tests/test-isfinite.c (ASSERT): Likewise.
50539         * tests/test-isnand.c (ASSERT): Likewise.
50540         * tests/test-isnanf.c (ASSERT): Likewise.
50541         * tests/test-isnanl.h (ASSERT): Likewise.
50542         * tests/test-ldexpl.c (ASSERT): Likewise.
50543         * tests/test-linked_list.c (ASSERT): Likewise.
50544         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50545         * tests/test-localename.c (ASSERT): Likewise.
50546         * tests/test-lseek.c (ASSERT): Likewise.
50547         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50548         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50549         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50550         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50551         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50552         * tests/test-mbschr.c (ASSERT): Likewise.
50553         * tests/test-mbscspn.c (ASSERT): Likewise.
50554         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50555         * tests/test-mbspbrk.c (ASSERT): Likewise.
50556         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50557         * tests/test-mbsrchr.c (ASSERT): Likewise.
50558         * tests/test-mbsspn.c (ASSERT): Likewise.
50559         * tests/test-mbsstr1.c (ASSERT): Likewise.
50560         * tests/test-mbsstr2.c (ASSERT): Likewise.
50561         * tests/test-mbsstr3.c (ASSERT): Likewise.
50562         * tests/test-memchr2.c (ASSERT): Likewise.
50563         * tests/test-memmem.c (ASSERT): Likewise.
50564         * tests/test-open.c (ASSERT): Likewise.
50565         * tests/test-printf-frexp.c (ASSERT): Likewise.
50566         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50567         * tests/test-printf-posix.c (ASSERT): Likewise.
50568         * tests/test-quotearg.c (ASSERT): Likewise.
50569         * tests/test-rbtree_list.c (ASSERT): Likewise.
50570         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50571         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50572         * tests/test-round1.c (ASSERT): Likewise.
50573         * tests/test-roundf1.c (ASSERT): Likewise.
50574         * tests/test-roundl.c (ASSERT): Likewise.
50575         * tests/test-signbit.c (ASSERT): Likewise.
50576         * tests/test-sleep.c (ASSERT): Likewise.
50577         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50578         * tests/test-snprintf.c (ASSERT): Likewise.
50579         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50580         * tests/test-stat-time.c (ASSERT): Likewise.
50581         * tests/test-strcasestr.c (ASSERT): Likewise.
50582         * tests/test-strerror.c (ASSERT): Likewise.
50583         * tests/test-striconv.c (ASSERT): Likewise.
50584         * tests/test-striconveh.c (ASSERT): Likewise.
50585         * tests/test-striconveha.c (ASSERT): Likewise.
50586         * tests/test-strsignal.c (ASSERT): Likewise.
50587         * tests/test-strstr.c (ASSERT): Likewise.
50588         * tests/test-strtod.c (ASSERT): Likewise.
50589         * tests/test-trunc1.c (ASSERT): Likewise.
50590         * tests/test-trunc2.c (ASSERT): Likewise.
50591         * tests/test-truncf1.c (ASSERT): Likewise.
50592         * tests/test-truncf2.c (ASSERT): Likewise.
50593         * tests/test-truncl.c (ASSERT): Likewise.
50594         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50595         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50596         * tests/test-vasnprintf.c (ASSERT): Likewise.
50597         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50598         * tests/test-vasprintf.c (ASSERT): Likewise.
50599         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50600         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50601         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50602         * tests/test-vsnprintf.c (ASSERT): Likewise.
50603         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50604         * tests/test-wcwidth.c (ASSERT): Likewise.
50605         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50606         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50607         * tests/test-xvasprintf.c (ASSERT): Likewise.
50608         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50609         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50610         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50611         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50612         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50613         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50614         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50615         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50616         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50617         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50618         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50619         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50620         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50621         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50622         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50623         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50624         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50625         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50626         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50627         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50628         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50629         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50630         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50631         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50632         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50633         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50634         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50635         * tests/unictype/test-combining.c (ASSERT): Likewise.
50636         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50637         * tests/unictype/test-digit.c (ASSERT): Likewise.
50638         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50639         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50640         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50641         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50642         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50643         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50644         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50645         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50646         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50647         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50648         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50649         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50650         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50651         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50652         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50653         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50654         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50655         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50656         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50657         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50658         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50659         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50660         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50661         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50662         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50663         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50664         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50665         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50666         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50667         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50668         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50669         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50670         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50671         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50672         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50673         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50674         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50675         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50676         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50677         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50678         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50679         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50680         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50681         Reported by Eric Blake.
50682
50683 2008-04-11  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/wchar.in.h: Tweak comment.
50686
50687 2008-04-11  Bruno Haible  <bruno@clisp.org>
50688
50689         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50690         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50691         gl_COMMON.
50692         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50693
50694 2008-04-11  Bruno Haible  <bruno@clisp.org>
50695
50696         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50697
50698 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50699
50700         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50701         of attempting to use non-existing /dev/*random.  Based on patch
50702         from Adam Strzelecki <ono@java.pl> in
50703         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50704
50705 2008-04-08  Bruno Haible  <bruno@clisp.org>
50706
50707         Add tentative support for emx+gcc.
50708         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50709         * lib/fpurge.c (fpurge): Likewise.
50710         * lib/freadable.c (freadable): Likewise.
50711         * lib/freadahead.c (freadahead): Likewise.
50712         * lib/freading.c (freading): Likewise.
50713         * lib/freadptr.c (freadptr): Likewise.
50714         * lib/freadseek.c (freadptrinc): Likewise.
50715         * lib/fseeko.c (rpl_fseeko): Likewise.
50716         * lib/fseterr.c (fseterr): Likewise.
50717         * lib/fwritable.c (fwritable): Likewise.
50718         * lib/fwriting.c (fwriting): Likewise.
50719         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50720
50721 2008-04-09  Eric Blake  <ebb9@byu.net>
50722
50723         Avoid some autoconf warnings.
50724         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50725         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50726         * m4/afs.m4 (gl_AFS): Likewise.
50727         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50728         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50730         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50731         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50732         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50733         (AC_CHECK_DECLS_ONCE): Likewise.
50734         Rename file...
50735         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50736         gnulib-tool requires autoconf 2.59 or better.
50737         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50738
50739 2008-04-08  Eric Blake  <ebb9@byu.net>
50740
50741         Use 'git describe --match' if present (added in git 1.5.5).
50742         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50743         if possible.
50744
50745 2008-04-08  Bruno Haible  <bruno@clisp.org>
50746
50747         Add tentative support for OpenServer.
50748         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50749         _ptr, _cnt.
50750         * lib/fpurge.c (fpurge): Likewise.
50751         * lib/freadable.c (freadable): Likewise.
50752         * lib/freadahead.c (freadahead): Likewise.
50753         * lib/freading.c (freading): Likewise.
50754         * lib/freadptr.c (freadptr): Likewise.
50755         * lib/freadseek.c (freadptrinc): Likewise.
50756         * lib/fseeko.c (rpl_fseeko): Likewise.
50757         * lib/fseterr.c (fseterr): Likewise.
50758         * lib/fwritable.c (fwritable): Likewise.
50759         * lib/fwriting.c (fwriting): Likewise.
50760         Reported by Roger Cornelius <rac@tenzing.org> and
50761         Brian K. White <brian@aljex.com>.
50762
50763 2008-04-06  Jim Meyering  <meyering@redhat.com>
50764
50765         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50766
50767 2008-04-06  Bruno Haible  <bruno@clisp.org>
50768
50769         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50770         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50771         * tests/test-printf-posix.sh: Likewise.
50772         * tests/test-vfprintf-posix.sh: Likewise.
50773         * tests/test-vprintf-posix.sh: Likewise.
50774         * tests/test-xprintf-posix.sh: Likewise.
50775
50776 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50777
50778         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50779         hide error from 'ls', needed on OS/2.
50780         Report by Elbert Pol <elbert.pol@gmail.com>.
50781
50782 2008-04-04  Eric Blake  <ebb9@byu.net>
50783
50784         Make test-fseeko.c failures meaningful.
50785         * tests/test-fseeko.c: Print line number on failure.
50786         * tests/test-fseek.c: Likewise.
50787         Reported by Nelson H. F. Beebe.
50788
50789         Improve strtod bug detection check.
50790         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50791         required for Solaris 10.
50792         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50793
50794 2008-04-04  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50797         by m4/setenv.m4.
50798
50799 2008-04-03  Eric Blake  <ebb9@byu.net>
50800
50801         Ensure sane .version contents.
50802         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50803         version string.
50804         * build-aux/git-version-gen: Improve documentation.
50805
50806         Make GNU make output nicer.
50807         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50808         MAKECMDGOALS to enforce message for all command line targets.  Set
50809         srcdir for use in maint.mk.
50810
50811         Another maintainer tweak.
50812         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50813         a target that regenerates version.
50814
50815 2008-04-03  Jim Meyering  <meyering@redhat.com>
50816
50817         vc-list-files: don't cause coreutils "make po-check" failure
50818         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50819
50820 2008-04-03  Eric Blake  <ebb9@byu.net>
50821
50822         Allow VPATH usage of vc-list-files.
50823         * build-aux/vc-list-files (scriptversion): Add timestamp.
50824         (options): Add --help, --version, -C.
50825         (CVS): Support installed cvsu.
50826
50827 2008-04-02  Bruno Haible  <bruno@clisp.org>
50828
50829         Avoid some "statement with no effect" warnings from gcc.
50830         * tests/test-wctype.c (main): Explicitly ignore unused values.
50831         Reported by Jim Meyering.
50832
50833 2008-04-02  Jim Meyering  <meyering@redhat.com>
50834
50835         Avoid some warnings from "gcc -Wshadow".
50836         * tests/test-frexp.c (exp): Define to a different identifier.
50837         * tests/test-frexpl.c (exp): Likewise.
50838
50839 2008-04-03  Jim Meyering  <meyering@redhat.com>
50840
50841         bootstrap: remove dangling *.[ch] symlinks from lib
50842         * build-aux/bootstrap [dangling symlink removal]: Move find's
50843         -depth option to precede all others, to avoid a warning.
50844         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50845
50846 2008-04-02  Bruno Haible  <bruno@clisp.org>
50847
50848         Avoid some warnings from "gcc -Wshadow".
50849         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50850         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50851         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50852         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50853         Reported by Jim Meyering.
50854
50855 2008-04-01  Bruno Haible  <bruno@clisp.org>
50856
50857         Fix test to work on IRIX 6.5 with cc.
50858         * tests/test-math.c (numeric_equal): New function.
50859         (main): Use it.
50860
50861 2008-04-01  Bruno Haible  <bruno@clisp.org>
50862
50863         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50864
50865 2008-04-01  Bruno Haible  <bruno@clisp.org>
50866
50867         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50869         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50870         (Depends-on): Remove math.
50871
50872         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50873         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50874         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50875         (Depends-on): Remove math.
50876
50877         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50879         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50880         (Depends-on): Remove math.
50881         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50882         (Depends-on): Remove math.
50883
50884         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50885         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50886         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50887         (Depends-on): Remove math.
50888         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50889         (Depends-on): Remove math.
50890
50891         * tests/test-round1.c: Include nan.h.
50892         (main): Use NaNd instead of NAN.
50893         * modules/round-tests (Files): Add tests/nan.h.
50894
50895         * tests/test-trunc1.c: Include nan.h.
50896         (main): Use NaNd instead of NAN.
50897         * modules/trunc-tests (Files): Add tests/nan.h.
50898
50899         * tests/test-roundf1.c: Include nan.h.
50900         (main): Use NaNf instead of NAN.
50901         * modules/roundf-tests (Files): Add tests/nan.h.
50902
50903         * tests/test-truncf1.c: Include nan.h.
50904         (main): Use NaNf instead of NAN.
50905         * modules/truncf-tests (Files): Add tests/nan.h.
50906
50907         * tests/test-ceilf1.c: Include nan.h.
50908         (main): Use NaNf instead of NAN.
50909         * modules/ceilf-tests (Files): Add tests/nan.h.
50910
50911         * tests/test-floorf1.c: Include nan.h.
50912         (main): Use NaNf instead of NAN.
50913         * modules/floorf-tests (Files): Add tests/nan.h.
50914
50915         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50916         (main): Use NaNf instead of NAN.
50917         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50918
50919         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50920         (main): Use NaNd instead of NAN.
50921         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50922
50923         * tests/test-frexp.c: Include nan.h.
50924         (main): Use NaNd instead of NAN.
50925         * modules/frexp-tests (Files): Add tests/nan.h.
50926
50927         * lib/isnan.c: Don't include <math.h>.
50928         (FUNC): Don't use NAN macro.
50929         * modules/isnand-nolibm (Depends-on): Remove math.
50930         * modules/isnanf-nolibm (Depends-on): Remove math.
50931         * modules/isnanl (Depends-on): Remove math.
50932         * modules/isnanl-nolibm (Depends-on): Remove math.
50933
50934         * tests/nan.h: New file.
50935
50936 2008-04-01  Eric Blake  <ebb9@byu.net>
50937
50938         Fix typos.
50939         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50940         values to be the right type.
50941
50942         For now, cater to gnulib strtod inaccuracies.
50943         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50944         fractional results.  While not as nice from a QoI perspective, it
50945         is a quicker patch than correctly implementing decimal to binary
50946         rounding.
50947
50948 2008-03-31  Eric Blake  <ebb9@byu.net>
50949
50950         Guarantee a definition of NAN.
50951         * lib/math.in.h (NAN): Define if missing.
50952         * tests/test-math.c (main): Test it.
50953         * doc/posix-headers/math.texi (math.h): Document this.
50954         * lib/isnan.c (rpl_isnand): Use it.
50955         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50956         * tests/test-floorf1.c (NaN): Likewise.
50957         * tests/test-frexp.c (NaN): Likewise.
50958         * tests/test-isnand.c (NaN): Likewise.
50959         * tests/test-isnanf.c (NaN): Likewise.
50960         * tests/test-round1.c (NaN): Likewise.
50961         * tests/test-roundf1.c (NaN): Likewise.
50962         * tests/test-snprintf-posix.h (NaN): Likewise.
50963         * tests/test-sprintf-posix.h (NaN): Likewise.
50964         * tests/test-trunc1.c (NaN): Likewise.
50965         * tests/test-truncf1.c (NaN): Likewise.
50966         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50967         * tests/test-vasprintf-posix.c (NaN): Likewise.
50968         * modules/isnand-nolibm (Depends-on): Add math.
50969         * modules/isnanf-nolibm (Depends-on): Likewise.
50970         * modules/isnanl (Depends-on): Likewise.
50971         * modules/isnanl-nolibm (Depends-on): Likewise.
50972         * modules/snprintf-posix-tests (Depends-on): Likewise.
50973         * modules/sprintf-posix-tests (Depends-on): Likewise.
50974         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50975         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50976         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50977         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50978
50979 2008-03-31  Bruno Haible  <bruno@clisp.org>
50980
50981         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50982         * doc/posix-functions/strtod.texi: Likewise.
50983
50984 2008-03-31  Bruno Haible  <bruno@clisp.org>
50985
50986         * tests/test-strtod.c (main): Don't use C99 syntax.
50987
50988 2008-03-31  Bruno Haible  <bruno@clisp.org>
50989
50990         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50991         Reported by Eric Blake.
50992
50993 2008-03-31  Jim Meyering  <meyering@redhat.com>
50994
50995         Don't compare actual signbit return values.
50996         * tests/test-strtod.c (main): Rather, compare only their
50997         zero/non-zero nature.
50998
50999 2008-03-31  Eric Blake  <ebb9@byu.net>
51000
51001         More strtod documentation.
51002         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51003         failures as distinct bugs.
51004
51005 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51006
51007         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51008         Problem reported by Erik Benada in
51009         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51010
51011 2008-03-30  Bruno Haible  <bruno@clisp.org>
51012
51013         * tests/test-strtod.c: Add comments about which assertion fails on which
51014         platform.
51015         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51016
51017 2008-03-30  Eric Blake  <ebb9@byu.net>
51018
51019         Test signbit behavior on zeros.
51020         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51021         (test_signbitd, test_signbitl): Likewise.
51022
51023         More strtod touchups.
51024         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51025         sign of negative underflow, for now.  Use .5, not .1.
51026         * doc/posix-functions/strtod.texi (strtod): Mention these
51027         limitations.
51028         Reported by Jim Meyering.
51029
51030 2008-03-30  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51033         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51034
51035 2008-03-30  Bruno Haible  <bruno@clisp.org>
51036
51037         Avoid failure when attempting to return empty iconv results on some
51038         platforms.
51039         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51040         allocation, don't report ENOMEM when the resulting string is empty.
51041
51042 2008-03-30  Bruno Haible  <bruno@clisp.org>
51043
51044         Fix buffer overrun.
51045         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51046         Don't consider the width for tmp_length. Check count against tmp_length
51047         before doing the padding. Ensure enough allocation during padding.
51048
51049 2008-03-30  Eric Blake  <ebb9@byu.net>
51050
51051         strtod touchups.
51052         * lib/strtod.c (strtod): Avoid compiler warnings.
51053         Reported by Jim Meyering.
51054
51055 2008-03-30  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51058         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51059         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51060         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51061         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51062         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51063         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51064         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51065
51066         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51067         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51068         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51069         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51070         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51071         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51072         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51073         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51074
51075         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51076         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51077         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51078         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51079         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51080         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51081         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51082         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51083
51084         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51085         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51086
51087         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51088         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51089
51090         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51091         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51092
51093         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51095         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51096
51097         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51099         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51100
51101         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51103         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51104
51105         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51107         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51108
51109         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51110         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51112         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51113         (Depends-on): Add EOVERFLOW.
51114         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51115         (Depends-on): Add EOVERFLOW.
51116         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51117         (Depends-on): Add EOVERFLOW.
51118         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51119         (Depends-on): Add EOVERFLOW.
51120         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51121         (Depends-on): Add EOVERFLOW.
51122         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51123         (Depends-on): Add EOVERFLOW.
51124         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51125         (Depends-on): Add EOVERFLOW.
51126         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51127         (Depends-on): Add EOVERFLOW.
51128
51129         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51131         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51132
51133         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51135         * modules/snprintf (Depends-on): Add EOVERFLOW.
51136
51137         * lib/poll.c (EOVERFLOW): Remove fallback.
51138         * modules/poll (Depends-on): Add EOVERFLOW.
51139
51140         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51141         * modules/getugroups (Depends-on): Add EOVERFLOW.
51142
51143         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51144         * modules/getdelim (Depends-on): Add EOVERFLOW.
51145
51146         * lib/ftell.c (EOVERFLOW): Remove fallback.
51147         * modules/ftell (Depends-on): Add EOVERFLOW.
51148
51149         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51151         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51152
51153         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51154
51155         * modules/EOVERFLOW-tests: New file.
51156         * tests/test-EOVERFLOW.c: New file.
51157
51158         * modules/EOVERFLOW: New file.
51159         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51160
51161 2008-03-30  Bruno Haible  <bruno@clisp.org>
51162
51163         Fix bug introduced on 2007-06-10.
51164         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51165         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51166
51167 2008-03-30  Bruno Haible  <bruno@clisp.org>
51168
51169         Improve freadseek's efficiency after ungetc.
51170         * lib/freadseek.c: Include freadahead.h.
51171         (freadptrinc): New function, extracted from freadseek.
51172         (freadseek): Use it in a loop. Use freadahead to determine the number
51173         of loop iterations.
51174         * modules/freadseek (Depends-on): Add freadahead.
51175         (configure.ac): Require AC_C_INLINE.
51176
51177 2008-03-30  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/freadseek.c (freadseek): Don't ignore the return value of
51180         freadptr.
51181
51182 2008-03-29  Eric Blake  <ebb9@byu.net>
51183
51184         Add hex float support.
51185         * modules/strtod (Depends-on): Add c-ctype.
51186         (Link): Mention POW_LIB.
51187         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51188         whitespace between 'e' and exponent.
51189         * tests/test-strtod.c (main): Enable hex float tests.
51190         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51191         now provides.
51192
51193         Document various strtod bugs, with some fixes.
51194         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51195         "-0x", "inf", "nan", and hex constants.
51196         * doc/posix-functions/atof.texi (atof): Likewise.
51197         * modules/stdlib (Makefile.am): Support strtod.
51198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51199         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51200         detect additional strtod bugs.
51201         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51202         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51203         bool where appropriate.  Parse 'inf' and 'nan'.
51204         * tests/test-strtod.c: New file.
51205         * modules/strtod (Depends-on): Add stdbool, stdlib.
51206         (configure.ac): Turn on module indicator.
51207         * modules/strtod-tests: New module.
51208
51209 2008-03-29  Eric Blake  <ebb9@byu.net>
51210
51211         Fix ftell on mingw.
51212         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51213         * modules/ftell-tests (Depends-on): Add binary-io.
51214         * modules/ftello-tests (Depends-on): Likewise.
51215         * tests/test-ftell.c (main): Enhance test to cover behavior after
51216         ungetc.  Enforce binary mode.
51217         * tests/test-ftello.c (main): Likewise.
51218
51219         Pass test-freadseek on cygwin.
51220         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51221         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51222         ungetc buffer.
51223
51224         * tests/test-fflush2.c (main): Fix typo.
51225
51226 2008-03-29  Bruno Haible  <bruno@clisp.org>
51227
51228         * tests/test-fflush2.c (main): Temporarily disable the contents of
51229         this test.
51230         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51231         Reported by Eric Blake.
51232
51233 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51234
51235         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51236         (GC_SHA224_DIGEST_SIZE): Add.
51237
51238         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51239         (gc_hash_digest_length): Likewise.
51240         (gc_hash_buffer): Likewise.
51241
51242 2008-03-25  Bruno Haible  <bruno@clisp.org>
51243
51244         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51245         detail which gettext release to use.
51246         Reported by Simon Josefsson.
51247
51248 2008-03-26  Jim Meyering  <meyering@redhat.com>
51249
51250         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51251         * modules/gnumakefile (clean-GNUmakefile): Also, use
51252         test ... && ... || : syntax rather than if-then ... fi.
51253
51254         gnumakefile: Don't double-quote-expand $(VPATH) value.
51255         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51256
51257 2008-03-24  Eric Blake  <ebb9@byu.net>
51258
51259         Alter GNUmakefile to install into top directory.
51260         * modules/maintainer-makefile: Split, and add dependency...
51261         * modules/gnumakefile: to this new module.
51262         * build-aux/GNUmakefile: Move...
51263         * top/GNUmakefile: ...here.
51264         * build-aux/maint.mk: Move...
51265         * top/maint.mk: ...here.
51266         * MODULES.html.sh (Support for maintaining...): Document new
51267         module.
51268
51269 2008-03-23  Bruno Haible  <bruno@clisp.org>
51270
51271         * gnulib-tool: New options --vc-files, --no-vc-files.
51272         (func_usage): Document them.
51273         (vc_files): New variable.
51274         (func_import): Consider vc_files.
51275         (func_create_testdir): Set vc_files to empty.
51276         Suggested by Jim Meyering and Karl Berry.
51277
51278 2008-03-23  Bruno Haible  <bruno@clisp.org>
51279
51280         Fix regex compilation error on HP-UX 11.
51281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51282         * modules/regex (Files): Add m4/mbstate_t.m4.
51283         Reported by Ton Voon <ton.voon@altinity.com>.
51284
51285 2008-03-23  Bruno Haible  <bruno@clisp.org>
51286
51287         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51288
51289 2008-03-23  Eric Blake  <ebb9@byu.net>
51290             Bruno Haible  <bruno@clisp.org>
51291
51292         Install files from top/ in the destination directory.
51293         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51294         augmentation also for the files from top/.
51295         (func_import, func_create_testdir): Rewrite file names:
51296         top/filename -> filename.
51297
51298 2008-03-23  Bruno Haible  <bruno@clisp.org>
51299
51300         Tweak "gnulib --version" output.
51301         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51302
51303 2008-03-23  Bruno Haible  <bruno@clisp.org>
51304
51305         Tweak "gnulib --version" output.
51306         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51307         rather than contents of ChangeLog, when possible.
51308
51309 2008-03-21  Eric Blake  <ebb9@byu.net>
51310
51311         More --version tweaks.
51312         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51313         date of last ChangeLog entry.
51314
51315 2008-03-21  Jim Meyering  <meyering@redhat.com>
51316
51317         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51318
51319 2008-03-20  Eric Blake  <ebb9@byu.net>
51320
51321         VPATH fix.
51322         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51323
51324 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51325
51326         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51327         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51328
51329 2008-03-20  Eric Blake  <ebb9@byu.net>
51330
51331         Sync GNUmakefile with coreutils.
51332         * build-aux/GNUmakefile (have-Makefile): Rename...
51333         (_have-Makefile): ...to this, for namespace consideration.
51334         (GNUmakefile.cfg): Include, if present.
51335         (_autoreconf): Define a default.
51336         (_is-dist-target): New rule for rebuilds to pick up intra-release
51337         version.
51338         (maint-cfg.mk): Rename...
51339         (cfg.mk): ...to this.
51340
51341 2008-03-18  Jim Meyering  <meyering@redhat.com>
51342
51343         New script and module: mktempd
51344         * MODULES.html.sh (maint+release support): Add mktempd.
51345         * build-aux/mktempd: New file.
51346         * modules/mktempd: New file.
51347
51348 2008-03-15  Jim Meyering  <meyering@redhat.com>
51349
51350         Undo last change.
51351         * lib/sha1.c, lib/md5.c: 63 != ~63.
51352         Reported by Andreas Schwab.
51353
51354         sha1.c, md5.c: Hoist a redundant expression.
51355         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51356         "ctx->buflen" only once, before calling *_process_block.
51357         * lib/md5.c (md5_process_bytes): Likewise.
51358
51359 2008-03-14  Eric Blake  <ebb9@byu.net>
51360
51361         Bump copyright year in files generated by gnulib-tool.
51362         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51363         gnulib-tool, rather than hard-coding it.
51364
51365         Fix 'gnulib-tool --version' output to work with git.
51366         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51367         (startup): ...here.
51368         (func_version): Use it to invoke git-version-gen, rather than
51369         relying on CVS keyword expansion.  Modernize wording.
51370         (cvsdatestamp, last_checkin_date, version): Kill unused
51371         variables.
51372
51373 2008-03-12  Jim Meyering  <meyering@redhat.com>
51374
51375         Recognize optional cast of the argument to free.
51376         * build-aux/useless-if-before-free: Update regexps.
51377
51378         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51379
51380 2008-03-11  Bruno Haible  <bruno@clisp.org>
51381
51382         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51383         by a single package.
51384         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51385         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51386         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51387         Reported by Sam Steingold <sds@gnu.org>.
51388
51389 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51390
51391         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51392         repositories.
51393
51394 2008-03-11  Bruno Haible  <bruno@clisp.org>
51395
51396         Avoid conflicts between local macro definitions.
51397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51398         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51399
51400 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51401             Bruno Haible  <bruno@clisp.org>
51402
51403         Make va_copy work with some version of xlc on AIX 5.1.
51404         * lib/stdarg.in.h: New file.
51405         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51406         On AIX, use a <stdarg.h> file substitute.
51407         * modules/stdarg (Files): Add lib/stdarg.in.h.
51408         (Depends-on): Add include_next.
51409         (Makefile.am): Build a stdarg.h substitute if requested.
51410         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51411
51412 2008-03-10  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51416         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51417
51418 2008-03-10  Bruno Haible  <bruno@clisp.org>
51419
51420         * modules/stdlib (Depends-on): Add include_next, remove
51421         absolute-header.
51422
51423 2008-03-09  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/freadahead.h (freadahead): Document more precisely.
51426         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51427         the sum of both buffer sizes.
51428         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51429         * NEWS: Document the change.
51430
51431 2008-03-09  Bruno Haible  <bruno@clisp.org>
51432
51433         Extend freadptr to return also the buffer size.
51434         * lib/freadptr.h (freadptr): Add sizep argument.
51435         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51436         (freadptr): Add sizep argument. Determine buffer size like freadahead
51437         does.
51438         * tests/test-freadptr.c: Don't include freadahead.h.
51439         (main): Adapt for new calling convention of freadptr.
51440         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51441         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51442         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51443         tests/test-freadptr2.sh.
51444         (Depends): Remove freadahead.
51445         (TESTS): Add test-freadptr2.sh.
51446         (check_PROGRAMS): Add test-freadptr2.
51447
51448 2008-03-09  Bruno Haible  <bruno@clisp.org>
51449
51450         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51451         Report and solution by Simon Josefsson.
51452
51453 2008-03-06  Bruno Haible  <bruno@clisp.org>
51454
51455         Make fflush after ungetc work on BSD platforms.
51456         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51457         * tests/test-fflush2.c: New file.
51458         * tests/test-fflush2.sh: New file.
51459         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51460         tests/test-fflush2.c.
51461         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51462         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51463
51464 2008-03-06  Eric Blake  <ebb9@byu.net>
51465
51466         Likewise for ftello.
51467         * modules/ftello (Dependencies): Add extensions.
51468         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51469
51470 2008-03-06  Bruno Haible  <bruno@clisp.org>
51471
51472         * modules/fseeko (Dependencies): Add extensions.
51473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51474         Needed on glibc systems.
51475
51476 2008-03-06  Bruno Haible  <bruno@clisp.org>
51477
51478         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51479         email address.
51480         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51481
51482 2008-03-06  Bruno Haible  <bruno@clisp.org>
51483
51484         * users.txt: Add libgnupdf.
51485
51486 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51487
51488         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51489         (Header File Substitutes, Function Substitutes,
51490         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51491         (Build robot for gnulib): Fix typo.
51492
51493 2008-03-06  Bruno Haible  <bruno@clisp.org>
51494
51495         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51496         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51497
51498 2008-03-06  Bruno Haible  <bruno@clisp.org>
51499
51500         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51501         * doc/gnulib.texi: Include it.
51502
51503 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51504
51505         * modules/func (License): Change license to unlimited; there was
51506         no LGPL parts in the module anyway.
51507
51508 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51509
51510         * modules/__func__: Renamed to modules/func.
51511         * modules/__func__-tests: Renamed to modules/func-tests.
51512         * tests/test-__func__.c: Renamed to tests/test-func.c.
51513         * m4/__func__.m4: Renamed to m4/func.m4.
51514         * doc/gnulib.texi (__func__): Section renamed to func.
51515         Suggested by Eric Blake <ebb9@byu.net>.
51516
51517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51518
51519         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51520         about __func__.  Make example self-contained.  Suggested by Eric
51521         Blake <ebb9@byu.net>.
51522
51523         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51524         Suggested by Eric Blake <ebb9@byu.net>.
51525
51526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51527
51528         * modules/__func__: New file.
51529         * modules/__func__-tests: New file.
51530         * tests/test-__func__.c: New file.
51531         * m4/__func__.m4: New file.
51532         * doc/gnulib.texi (__func__): Document __func__ module.
51533
51534 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51535
51536         * modules/byteswap (License): Re-license as LGPLv2+.
51537
51538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51539
51540         * doc/Makefile: Add pdf target.
51541
51542 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51543
51544         * modules/inline (License): Use 'unlimited', since there are only
51545         *.m4 files in this module.
51546
51547 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51548             Bruno Haible  <bruno@clisp.org>
51549
51550         Add support for HP C 7.1 on OpenVMS 8.3.
51551         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51552
51553 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51554
51555         Update VMS specifics.
51556         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51557
51558 2008-03-02  Jim Meyering  <meyering@redhat.com>
51559
51560         Remove the last dependency on the "free" module.
51561         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51562         Reported by Bob Proulx.
51563
51564         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51565
51566         Remove useless "if" tests before free.  Deprecate "free" module.
51567         * doc/posix-functions/free.texi: Mention that this
51568         module is no longer useful.
51569         * modules/free (Notice): Say this module is obsolete.
51570         * modules/readutmp (Depends-on): Remove free.
51571         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51572         * lib/putenv.c (putenv): Likewise.
51573         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51574         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51575         * tests/test-c-strcasestr.c (main): Likewise.
51576         * tests/test-c-strstr.c (main): Likewise.
51577         * tests/test-mbscasestr1.c (main): Likewise.
51578         * tests/test-mbscasestr2.c (main): Likewise.
51579         * tests/test-mbsstr1.c (main): Likewise.
51580         * tests/test-mbsstr2.c (main): Likewise.
51581         * tests/test-memmem.c (main): Likewise.
51582         * tests/test-strcasestr.c (main): Likewise.
51583         * tests/test-striconv.c (main): Likewise.
51584         * tests/test-striconveh.c (main): Likewise.
51585         * tests/test-striconveha.c (main): Likewise.
51586         * tests/test-strstr.c (main): Likewise.
51587
51588         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51589
51590         bootstrap: sync from coreutils again
51591         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51592
51593 2008-03-01  Jim Meyering  <meyering@redhat.com>
51594
51595         bootstrap: sync from coreutils
51596         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51597         also when the target doesn't exist.
51598
51599 2008-03-01  Eric Blake  <ebb9@byu.net>
51600
51601         Fix bugs in last patch.
51602         * lib/memchr2.c (memchr2): Fix typo.
51603         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51604         extension.
51605         Reported by Bruce Korb.
51606
51607         New module 'memchr2'.
51608         * modules/memchr2: New file.
51609         * modules/memchr2-tests: Likewise.
51610         * lib/memchr2.h: Likewise.
51611         * lib/memchr2.c: Likewise, based on memchr.c.
51612         * tests/test-memchr2.c: New test.
51613         * MODULES.html.sh (String handling): Add memchr2.
51614
51615 2008-02-29  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/freadseek-tests: New file.
51618         * tests/test-freadseek.sh: New file.
51619         * tests/test-freadseek.c: New file.
51620
51621         New module 'freadseek'.
51622         * modules/freadseek: New file.
51623         * lib/freadseek.h: New file.
51624         * lib/freadseek.c: New file.
51625         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51626
51627 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51628
51629         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51630         wydawca.
51631
51632         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51633         program_invocation_name and program_invocation_short_name are
51634         present.
51635
51636 2008-02-28  Bruno Haible  <bruno@clisp.org>
51637
51638         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51639         * tests/test-freadptr.sh: Also test non-seekable stdin.
51640
51641 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51642
51643         * build-aux/bootstrap (source_base, m4_base)
51644         (doc_base, tests_base): New variables.
51645         (gnulib_tool_options): Do not hardcode base directories, use
51646         the above variables instead.
51647
51648 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51649
51650         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51651
51652 2008-02-28  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/freadptr-tests: New file.
51655         * tests/test-freadptr.sh: New file.
51656         * tests/test-freadptr.c: New file.
51657
51658         New module 'freadptr'.
51659         * modules/freadptr: New file.
51660         * lib/freadptr.h: New file.
51661         * lib/freadptr.c: New file.
51662         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51663
51664 2008-02-26  Karl Berry  <karl@freefriends.org>
51665
51666         Sync from Libtool:
51667         * libltdl/argz.c (argz_add, argz_count): New functions.
51668         * libltdl/argz.in.h: Declare them.
51669         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51670
51671 2008-02-22  Bruno Haible  <bruno@clisp.org>
51672
51673         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51674         is a pointer type.  Needed for HP-UX 10.
51675         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51676         * doc/posix-functions/gmtime_r.texi: Likewise.
51677         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51678
51679 2008-02-24  Bruno Haible  <bruno@clisp.org>
51680
51681         * modules/environ-tests: New file.
51682         * tests/test-environ.c: New file.
51683
51684         New module 'environ'.
51685         * modules/environ: New file.
51686         * lib/unistd.in.h (environ): New declaration.
51687         * m4/environ.m4: New file.
51688         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51689         after use.
51690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51691         HAVE_DECL_ENVIRON.
51692         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51693         HAVE_DECL_ENVIRON.
51694         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51695         wrong claim that 'environ' is missing on some systems.
51696         * modules/execute (Depends-on): Add environ.
51697         * lib/execute.c (environ): Remove fallback declaration.
51698         * modules/pipe (Depends-on): Add environ.
51699         * lib/pipe.c (environ): Remove fallback declaration.
51700         * modules/setenv (Depends-on): Add environ.
51701         * lib/setenv.c (environ): Remove fallback declaration.
51702         * modules/unsetenv (Depends-on): Add environ.
51703         * lib/unsetenv.c (environ): Remove fallback declaration.
51704         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51705         m4/environ.m4.
51706         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51707         (gl_PREREQ_UNSETENV): Likewise.
51708
51709 2008-02-24  Bruno Haible  <bruno@clisp.org>
51710
51711         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51712
51713 2008-02-20  Bob Proulx  <bob@proulx.com>
51714
51715         Enable use of older two part flavor 'git describe'.
51716         * build-aux/git-version-gen: If using the older two part flavor of
51717         git version then recreate the third part now present in the
51718         newer three part flavor of git describe.
51719
51720 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51721
51722         * lib/fts.c (fts_build): Typo correction to comment.
51723
51724 2008-02-17  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51727         generating no-op conflicts.
51728
51729 2008-02-17  Bruno Haible  <bruno@clisp.org>
51730
51731         Speed up by 10%.
51732         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51733         result_entries, rather than an index-based loop.
51734
51735 2008-02-17  Bruno Haible  <bruno@clisp.org>
51736
51737         Speed up by 25%.
51738         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51739         'hashcode_cached'.
51740         (entry_create): New function.
51741         (entry_hashcode): Use the cached hashcode if possible.
51742         (read_changelog_file, try_split_merged_entry): Use entry_create.
51743
51744 2008-02-17  Bruno Haible  <bruno@clisp.org>
51745
51746         Speed up from O(n^2) to O(n) for long ChangeLog files.
51747         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51748         (read_changelog_file): Change implementation of entries_reversed list
51749         to rbtreehash.
51750         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51751
51752 2008-02-17  Bruno Haible  <bruno@clisp.org>
51753
51754         New option --split-merged-entry.
51755         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51756         (find_paragraph_end, try_split_merged_entry): New functions.
51757         (long_options): Add option --split-merged-entry.
51758         (usage): Document option --split-merged-entry.
51759         (main): Implement option --split-merged-entry.
51760         Reported by Eric Blake.
51761
51762 2008-02-17  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/git-merge-changelog.c: Include c-strstr.h.
51765         (main): Support the "git pull --rebase" situation.
51766         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51767         Reported by Eric Blake.
51768
51769 2008-02-16  Eric Blake  <ebb9@byu.net>
51770
51771         Avoid doubling \ in common case of "c-maybe" quoting style.
51772         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51773         eliding outer quotes.
51774         * lib/quotearg.h: Document this.
51775         * tests/test-quotearg.c (result_strings, inputs, results_g)
51776         (flag_results, locale_results): Test it by adding a new string to
51777         each test group.
51778         (compare_strings): Test new string.
51779
51780 2008-02-13  Eric Blake  <ebb9@byu.net>
51781
51782         Avoid trigraph quoting in default output.
51783         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51784         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51785         unless explicitly requested.
51786         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51787
51788 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51789
51790         Don't rely on signed integer overflowing to negative value.
51791         * lib/getugroups.c (getugroups): Include <limits.h>.
51792         Instead, compare against INT_MAX, and increment only if the test passes.
51793
51794 2008-02-13  Jim Meyering  <meyering@redhat.com>
51795         and Eric Blake  <ebb9@byu.net>
51796
51797         Avoid shadowing warning and compile errors on Linux.
51798         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51799         forwarding macros on Linux.
51800         (dcgettext): Define a stub, for Linux.
51801         (results_g, main): Avoid warnings.
51802
51803 2008-02-12  Eric Blake  <ebb9@byu.net>
51804
51805         Silence warning in last patch.
51806         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51807
51808         Quotearg part 4: add tests, fix c-maybe colon quoting.
51809         * lib/quotearg.h: Improve documentation.
51810         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51811         escapes when adding outer quotes.  When quoting trigraphs, use
51812         valid C notation.  When quoting NUL, omit extra characters if next
51813         character is not digit.  Alter prototype.
51814         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51815         callers.
51816         * modules/quotearg-tests: New module.
51817         * tests/test-quotearg.c: New test.
51818
51819 2008-02-07  Eric Blake  <ebb9@byu.net>
51820
51821         Quotearg part 3: add flag to control outer quote elision.
51822         * lib/quotearg.h (c_maybe_quoting_style): New style.
51823         (enum quoting_flags): Better documentation of flags.
51824         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51825         c-maybe style.
51826         (quotearg_buffer_restyled): Handle new flag to elide outer
51827         quotes.
51828
51829         Quotearg part 2: add flag that can control NUL elision.
51830         * lib/quotearg.h (set_quoting_flags): New prototype.
51831         * lib/quotearg.c (struct quoting_options): Add flag field.
51832         (set_quoting_flags): New function.
51833         (quotearg_buffer_restyled): Add flags parameter.
51834         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51835         (quotearg_n_options): Set the flag, since length cannot be
51836         returned.
51837         (quoting_options_from_style): Default flags correctly.
51838
51839         Quotearg part 1: more wrappers, restore quotearg_char state.
51840         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51841         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51842         (quotearg_colon_mem): New wrappers.
51843         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51844         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51845         functions.
51846         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51847         (quotearg_colon_mem): New functions.
51848
51849 2008-02-11  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51852         library in the current directory: it does not work with parallel make.
51853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51854
51855 2008-02-11  Bruno Haible  <bruno@clisp.org>
51856
51857         * .gitattributes: New file.
51858
51859 2008-02-11  Jim Meyering  <meyering@redhat.com>
51860
51861         useless-if-before-free: Fix reversed exit values.
51862         * build-aux/useless-if-before-free: Use correct values
51863         for EXIT_MATCH and EXIT_NO_MATCH.
51864
51865         * build-aux/useless-if-before-free: Close stdout carefully.
51866
51867 2008-02-10  Bruno Haible  <bruno@clisp.org>
51868
51869         New module 'git-merge-changelog'.
51870         * modules/git-merge-changelog: New file.
51871         * lib/git-merge-changelog.c: New file.
51872
51873 2008-02-10  Jim Meyering  <meyering@redhat.com>
51874
51875         useless-if-before-free: New option: --list (-l).
51876
51877         useless-if-before-free: Don't exit immediately upon open failure.
51878         * build-aux/useless-if-before-free: Exit 2 for errors.
51879         Upon failure to open a file, don't exit immediately.
51880         Rather, just warn and continue with any remaining files.
51881
51882 2008-02-10  Bruno Haible  <bruno@clisp.org>
51883
51884         New abstract list operation 'node_set_value'.
51885         * lib/gl_list.h (gl_list_node_set_value): New function.
51886         (struct gl_list_implementation): New field node_set_value.
51887         * lib/gl_list.c (gl_list_node_set_value): New function.
51888         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51889         (gl_array_list_implementation): Update.
51890         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51891         (gl_carray_list_implementation): Update.
51892         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51893         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51894         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51895         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51896         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51898         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51899         Update.
51900         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51901         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51902         (gl_sublist_list_implementation): Update.
51903
51904 2008-02-10  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51907         Needed when ELEMENT is #defined to 'some_type *'.
51908
51909 2008-02-10  Jim Meyering  <meyering@redhat.com>
51910
51911         New script and module: useless-if-before-free
51912         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51913         * build-aux/useless-if-before-free: New file.
51914         * modules/useless-if-before-free: New file.
51915
51916         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51917
51918         xstrtol_error: Fix typo.
51919         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51920         s/exit_failure/exit_status/.
51921
51922 2008-02-09  Jim Meyering  <meyering@redhat.com>
51923
51924         New script and module: gitlog-to-changelog
51925         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51926         * modules/gitlog-to-changelog: New file.
51927         * build-aux/gitlog-to-changelog: New file.
51928
51929 2008-02-08  Jim Meyering  <meyering@redhat.com>
51930
51931         Avoid two "parameter unused" warnings.
51932         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51933         Mark "st" as used.
51934
51935         Use "git COMMAND", not "git-COMMAND".
51936         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51937         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51938         * build-aux/git-version-gen: Use "git status", not "git-status".
51939
51940 2008-02-07  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51943         Avoids a crash on Windows Vista.
51944         Reported by Adam Strzelecki <ono@java.pl> via
51945         Simon Josefsson <simon@josefsson.org>.
51946
51947 2008-02-06  Bruno Haible  <bruno@clisp.org>
51948
51949         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51950         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51951         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51953         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51955         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51956         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51958         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51959         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51960         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51964         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51965         left-adjust flag.
51966         * tests/test-snprintf-posix.h (test_function): Likewise.
51967         * tests/test-sprintf-posix.h (test_function): Likewise.
51968         * tests/test-vasprintf-posix.c (test_function): Likewise.
51969         * doc/posix-functions/fprintf.texi: Update.
51970         * doc/posix-functions/printf.texi: Update.
51971         * doc/posix-functions/snprintf.texi: Update.
51972         * doc/posix-functions/sprintf.texi: Update.
51973         * doc/posix-functions/vfprintf.texi: Update.
51974         * doc/posix-functions/vprintf.texi: Update.
51975         * doc/posix-functions/vsnprintf.texi: Update.
51976         * doc/posix-functions/vsprintf.texi: Update.
51977         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51978
51979 2008-02-06  Bruno Haible  <bruno@clisp.org>
51980
51981         Fix bug introduced on 2008-01-26.
51982         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51983
51984 2008-02-06  Bruno Haible  <bruno@clisp.org>
51985
51986         Fix bug introduced on 2007-06-10.
51987         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51988         !NEED_PRINTF_FLAG_ZERO.
51989
51990 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51991
51992         getloadavg: use libperfstat on AIX5
51993         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51994
51995 2008-02-03  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/diffseq.h: Add comments about required #includes.
51998         Reported by Michael Biggs <gnulib@doubleplum.net>.
51999
52000 2008-02-01  Bruno Haible  <bruno@clisp.org>
52001
52002         * users.txt: Add gnuit.
52003
52004 2008-01-31  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/md4.c (set_uint32): Mark as inline.
52007         * lib/md5.c (set_uint32): Likewise.
52008         * lib/sha1.c (set_uint32): Likewise.
52009         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52010         * m4/md5.m4 (gl_MD5): Likewise.
52011         * m4/sha1.m4 (gl_SHA1): Likewise.
52012
52013 2008-01-31  Jim Meyering  <meyering@redhat.com>
52014
52015         Use "sizeof VAR", rather than a literal "4".
52016         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52017         * lib/md4.c (md4_read_ctx): Likewise.
52018         * lib/sha1.c (sha1_read_ctx): Likewise.
52019
52020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52021
52022         * tests/test-sha1.c: New file, based on test-md5.c.
52023
52024         * modules/crypto/sha1-tests: New file.
52025
52026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52027
52028         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52029
52030 2008-01-31  Jim Meyering  <meyering@redhat.com>
52031
52032         Prefer "sizeof v" over the equivalent "4".
52033         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52034         * lib/md5.c (set_uint32): Likewise.
52035         * lib/sha1.c (set_uint32): Likewise.
52036
52037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52038
52039         * lib/sha1.c (set_uint32): Mark function as static.
52040
52041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52042
52043         md2: clarify comments to say that alignment is not required.
52044         * lib/md2.h: Remove warning about alignment in comment.
52045         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52046         never been required.
52047
52048 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52049
52050         md4: adapt alignment constraint fix from sha1.
52051         * lib/md4.c (set_uint32): New function, from sha1.c
52052         (md4_read_ctx): Use it.
52053         (md4_finish_ctx): Doc fix.
52054         * lib/md4.h: Doc fix.
52055
52056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52057
52058         md5: adapt alignment constraint fix from sha1.
52059         * lib/md5.c (set_uint32): New function, from sha1.c
52060         (md5_read_ctx): Use it.
52061         (md5_finish_ctx): Doc fix.
52062         * lib/md5.h: Doc fix.
52063
52064 2008-01-30  Peter Palfrader  <weasel@debian.org>
52065
52066         sha1: remove the result buffer alignment constraint
52067         * lib/sha1.c (set_uint32): New function.
52068         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52069         constraint.
52070         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52071         * lib/sha1.h: Likewise.
52072
52073 2008-01-30  Andreas Schwab  <schwab@suse.de>
52074             Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52077         correct definition of LDBL_MIN_EXP.
52078
52079 2008-01-30  Karl Berry  <karl@gnu.org>
52080
52081         * config/srclist-update: try to preserve x bit on updates.
52082         * config/srclistvars.sh: update for karl.
52083
52084 2008-01-29  Jim Meyering  <meyering@redhat.com>
52085
52086         vasnprintf.c: Avoid warning about unused label
52087         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52088         "overflow" label definition and associated code with the
52089         same cpp condition that guards the sole use of that label.
52090
52091 2008-01-26  Bruno Haible  <bruno@clisp.org>
52092
52093         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52094         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52095         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52096         * lib/isnanl-nolibm.h (isnanl): Likewise.
52097         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52098
52099 2008-01-26  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52102         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52103
52104 2008-01-26  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52107         GCC >= 4.0 built-in.
52108         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52109
52110 2008-01-26  Bruno Haible  <bruno@clisp.org>
52111
52112         Rename isnan, applicable to 'double' only, to isnand.
52113         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52114         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52115         (configure.ac): Update.
52116         (Include): Replace "isnan.h" with "isnand.h".
52117         * m4/isnand.m4: Renamed from m4/isnan.m4.
52118         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52119         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52120         instead of isnan.c.
52121         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52122         instead of HAVE_ISNAN_IN_LIBC.
52123         (isnand): Renamed from isnan.
52124         * lib/isnand.c: New file.
52125         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52126         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52127         (Makefile.am): Update.
52128         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52129         Include isnand.h instead of isnan.h.
52130         (main): Test isnand instead of isnan.
52131         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52132         isnan-nolibm.
52133         * modules/frexp (Depends-on): Likewise.
52134         * modules/frexp-tests (Depends-on): Likewise.
52135         * modules/frexp-nolibm (Depends-on): Likewise.
52136         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52137         * modules/isfinite (Depends-on): Likewise.
52138         * modules/round-tests (Depends-on): Likewise.
52139         * modules/signbit (Depends-on): Likewise.
52140         * modules/signbit-tests (Depends-on): Likewise.
52141         * modules/snprintf-posix (Depends-on): Likewise.
52142         * modules/sprintf-posix (Depends-on): Likewise.
52143         * modules/trunc-tests (Depends-on): Likewise.
52144         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52145         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52146         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52147         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52148         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52149         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52150         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52151         * modules/vasnprintf-posix (Depends-on): Likewise.
52152         * modules/vasprintf-posix (Depends-on): Likewise.
52153         * modules/vfprintf-posix (Depends-on): Likewise.
52154         * modules/vsnprintf-posix (Depends-on): Likewise.
52155         * modules/vsprintf-posix (Depends-on): Likewise.
52156         * lib/frexp.c: Include isnand.h instead of isnan.h.
52157         (ISNAN): Set to isnand instead of isnan.
52158         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52159         (gl_isfinited): Use isnand instead of isnan.
52160         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52161         (gl_signbitd): Use isnand instead of isnan.
52162         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52163         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52164         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52165         (main): Use isnand instead of isnan.
52166         * tests/test-round1.c: Include isnand.h.
52167         (main): Use isnand instead of isnan.
52168         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52169         (ISNAN): Set to isnand instead of isnan.
52170         * tests/test-trunc1.c: Include isnand.h.
52171         (main): Use isnand instead of isnan.
52172         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52173         (equal): Use isnand instead of isnan.
52174         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52175         isnand-nolibm.
52176         * NEWS: Mention the change.
52177
52178 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52179             Bruno Haible  <bruno@clisp.org>
52180
52181         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52182         the GCC builtins for signbits are present and set
52183         REPLACE_SIGNBIT_USING_GCC if so.
52184         * lib/math.in.h (signbit): Define using GCC builtins if
52185         REPLACE_SIGNBIT_USING_GCC is set.
52186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52187         REPLACE_SIGNBIT_USING_GCC.
52188         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52189
52190 2008-01-25  Jim Meyering  <meyering@redhat.com>
52191
52192         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52193         * lib/poll.c: Include <config.h>, not "config.h".
52194         * tests/test-getaddrinfo.c: Likewise.
52195
52196 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52197
52198         * modules/sockets-tests: New file.
52199
52200 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52201
52202         * modules/sockets: New module, can be used to call WSA_Startup and
52203         WSA_Cleanup when needed.
52204
52205         * lib/sockets.h, lib/sockets.c: New files.
52206
52207         * m4/sockets.m4: New file.
52208
52209         * tests/test-sockets.c: New file.
52210
52211 2008-01-19  Bruno Haible  <bruno@clisp.org>
52212
52213         * doc/posix-headers: Renamed from doc/headers.
52214         * doc/posix-functions: Renamed from doc/functions.
52215         * doc/gnulib.texi: Update.
52216
52217 2008-01-19  Bruno Haible  <bruno@clisp.org>
52218
52219         * doc/glibc-functions/strcasestr.texi: Include contents of
52220         doc/functions/strcasestr.texi, fixing the list of platforms.
52221         * doc/functions/strcasestr.texi: Remove file.
52222
52223 2008-01-19  Bruno Haible  <bruno@clisp.org>
52224
52225         * doc/glibc-functions/memmem.texi: Include contents of
52226         doc/functions/memmem.texi.
52227         * doc/functions/memmem.texi: Remove file.
52228
52229 2008-01-18  Bruno Haible  <bruno@clisp.org>
52230
52231         * doc/glibc-functions/*.texi: New files.
52232         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52233         to use the new files.
52234
52235 2008-01-17  Bruno Haible  <bruno@clisp.org>
52236
52237         * tests/test-gethostname.c (main): Fix printf statement.
52238
52239 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52240
52241         * modules/gethostname-tests: New file.
52242
52243         * tests/test-gethostname.c: New file.
52244
52245 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52246
52247         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52248         used by the UNAME case.  Reported by Bruno Haible
52249         <bruno@clisp.org>.
52250
52251 2008-01-17  Eric Blake  <ebb9@byu.net>
52252
52253         Convert c-strcasestr to be more efficient.
52254         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52255         (Depends-on): Add c-strcase, remove malloca, strnlen.
52256         * tests/test-c-strcasestr.c (main): Enhance test.
52257         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52258
52259 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52260
52261         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52262         Use it in creating po/Makevars.
52263
52264 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52265
52266         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52267         Applications that requires it should initialize libgcrypt
52268         manually.
52269
52270 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52271
52272         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52273
52274 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         Fix problem with getdate on mingw32 reported by Simon Josefsson
52277         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52278         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52279         tzname", when deciding whether to declare tzname.
52280         * lib/strftime.c (tzname): Likewise.
52281
52282 2008-01-15  Bruno Haible  <bruno@clisp.org>
52283
52284         Work around a MacOS X 10.5 bug in frexpl().
52285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52286         * doc/functions/frexpl.texi: Document the bug.
52287         Reported by Elias Pipping <pipping@gentoo.org>.
52288
52289 2008-01-14  Eric Blake  <ebb9@byu.net>
52290
52291         Touch up previous patch.
52292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52293         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52294
52295         Convert strcasestr module to use Two-Way algorithm.
52296         * modules/strcasestr-simple: New module, based on the old
52297         strcasestr, but with Two-Way rather than KMP.
52298         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52299         * lib/string.in.h (rpl_strcasestr): Declare.
52300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52301         performance.
52302         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52303         * modules/string (Makefile.am): Support strcasestr.
52304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52305         * modules/strcasestr-tests (Depends-on): Check for alarm.
52306         * tests/test-strcasestr.c: Augment test.
52307         * lib/str-two-way.h: Clean up stray macro.
52308         * NEWS: Document new module.
52309         * MODULES.html.sh (string handling): Likewise.
52310         * doc/functions/strcasestr.texi: New file.
52311         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52312         here, since it is not a POSIX function.
52313
52314 2008-01-14  Colin Watson  <cjwatson@debian.org>
52315             Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52318         works fine; if not, set REPLACE_STRSIGNAL.
52319         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52321         REPLACE_STRSIGNAL.
52322         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52323         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52324         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52325
52326 2008-01-14  Bruno Haible  <bruno@clisp.org>
52327
52328         * modules/strsignal (Include): Change to <string.h>.
52329
52330 2008-01-14  Colin Watson  <cjwatson@debian.org>
52331
52332         * modules/argp (Notice): Add a notice recommending to change
52333         XGETTEXT_OPTIONS.
52334         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52335
52336 2008-01-13  Colin Watson  <cjwatson@debian.org>
52337
52338         * modules/strsignal-tests: New file.
52339         * tests/test-strsignal.c: New file.
52340
52341         * lib/strsignal.c: New file, from glibc with modifications.
52342         * lib/siglist.h: New file, from glibc with modifications.
52343         * lib/string.in.h (strsignal): New declaration.
52344         * m4/strsignal.m4: New file.
52345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52346         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52347         * modules/strsignal: New file.
52348         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52349         HAVE_DECL_STRSIGNAL.
52350
52351 2008-01-13  Bruno Haible  <bruno@clisp.org>
52352
52353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52354         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52357
52358 2008-01-13  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52361         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52362         * lib/argp.h (__attribute__): Likewise.
52363         * lib/c-stack.c (__attribute__): Likewise.
52364         * lib/error.h (__attribute__): Likewise.
52365         * lib/fts.c (__attribute__): Likewise.
52366         * lib/openat.h (__attribute__): Likewise.
52367         * lib/stdio.in.h (__attribute__): Likewise.
52368         * lib/string.in.h (__attribute__): Likewise.
52369         * lib/utimens.c (__attribute__): Likewise.
52370         * lib/vasnprintf.h (__attribute__): Likewise.
52371         * lib/xalloc.h (__attribute__): Likewise.
52372         * lib/xprintf.h (__attribute__): Likewise.
52373         * lib/xstrtol.h (__attribute__): Likewise.
52374         * lib/xvasprintf.h (__attribute__): Likewise.
52375
52376 2008-01-12  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52379         * doc/glibc-headers/a.out.texi: New file.
52380         * doc/glibc-headers/aliases.texi: New file.
52381         * doc/glibc-headers/alloca.texi: New file.
52382         * doc/glibc-headers/ar.texi: New file.
52383         * doc/glibc-headers/argp.texi: New file.
52384         * doc/glibc-headers/argz.texi: New file.
52385         * doc/glibc-headers/byteswap.texi: New file.
52386         * doc/glibc-headers/crypt.texi: New file.
52387         * doc/glibc-headers/endian.texi: New file.
52388         * doc/glibc-headers/envz.texi: New file.
52389         * doc/glibc-headers/err.texi: New file.
52390         * doc/glibc-headers/error.texi: New file.
52391         * doc/glibc-headers/execinfo.texi: New file.
52392         * doc/glibc-headers/fpu_control.texi: New file.
52393         * doc/glibc-headers/fstab.texi: New file.
52394         * doc/glibc-headers/fts.texi: New file.
52395         * doc/glibc-headers/getopt.texi: New file.
52396         * doc/glibc-headers/ieee754.texi: New file.
52397         * doc/glibc-headers/ifaddrs.texi: New file.
52398         * doc/glibc-headers/libintl.texi: New file.
52399         * doc/glibc-headers/mcheck.texi: New file.
52400         * doc/glibc-headers/mntent.texi: New file.
52401         * doc/glibc-headers/obstack.texi: New file.
52402         * doc/glibc-headers/paths.texi: New file.
52403         * doc/glibc-headers/printf.texi: New file.
52404         * doc/glibc-headers/pty.texi: New file.
52405         * doc/glibc-headers/resolv.texi: New file.
52406         * doc/glibc-headers/shadow.texi: New file.
52407         * doc/glibc-headers/sysexits.texi: New file.
52408         * doc/glibc-headers/ttyent.texi: New file.
52409
52410 2008-01-12  Jim Meyering  <meyering@redhat.com>
52411
52412         announce-gen: emit Gnulib's git-based version string.
52413         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52414         New option --gnulib-version=V, where V is expected to be
52415         the output of running git describe in the gnulib directory.
52416         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52417         not useful, and plan to stop publishing an xdelta file with each
52418         coreutils release.
52419
52420         * build-aux/announce-gen: Also check for lzma-compressed files.
52421
52422 2008-01-11  Bruno Haible  <bruno@clisp.org>
52423
52424         * tests/test-memmem.c (main): Increase maximum allowed time.
52425         * tests/test-strstr.c (main): Likewise.
52426
52427 2008-01-11  Bruno Haible  <bruno@clisp.org>
52428
52429         * doc/functions/memmem.texi: Add more precisions about platforms.
52430         * doc/functions/strstr.texi: Likewise.
52431
52432 2008-01-10  Eric Blake  <ebb9@byu.net>
52433
52434         * m4/strstr.m4: Delete cruft from copy-n-paste.
52435         Reported by Bruno Haible.
52436
52437 2008-01-10  Bruno Haible  <bruno@clisp.org>
52438
52439         Make c-strstr rely on strstr.
52440         * lib/c-strstr.c: Don't include str-kmp.h.
52441         (c_strstr): Define in terms of strstr.
52442         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52443         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52444
52445 2008-01-10  Bruno Haible  <bruno@clisp.org>
52446
52447         * doc/gnulib.texi (String Functions in C Locale): New section.
52448         * doc/c-ctype.texi: New file.
52449         * doc/c-strcase.texi: New file.
52450         * doc/c-strcaseeq.texi: New file.
52451         * doc/c-strcasestr.texi: New file.
52452         * doc/c-strstr.texi: New file.
52453         * doc/c-strtod.texi: New file.
52454         * doc/c-strtold.texi: New file.
52455
52456 2008-01-10  Eric Blake  <ebb9@byu.net>
52457
52458         * lib/relocatable.h: Fix a comment.
52459
52460 2008-01-10  Eric Blake  <ebb9@byu.net>
52461
52462         Share two-way algorithm.
52463         * lib/str-two-way.h: New file, merged from...
52464         * lib/memmem.c: ...here...
52465         * lib/strstr.c: ...and here.
52466         * modules/memmem (Files): Use it.
52467         * modules/strstr (Files): Likewise.
52468
52469         Avoid quadratic strstr implementations.
52470         * lib/strstr.c: New file.
52471         * m4/strstr.m4: Likewise.
52472         * modules/strstr: Likewise.
52473         * modules/strstr-tests: Likewise.
52474         * tests/test-strstr.c: Likewise.
52475         * lib/string.in.h (rpl_strstr): Declare.
52476         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52478         * modules/string (Makefile.am): Likewise.
52479         * MODULES.html.sh (string handling): Mention new module.
52480         * doc/functions/strstr.texi (strstr): Document the bug.
52481
52482 2008-01-10  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/relocatable.h (relocate): State whether result is freshly
52485         allocated or not.
52486         * lib/relocatable.c (relocate): Return a freshly allocated string
52487         instead of a pointer to a privately held string.
52488         Reported by Sylvain Beucler <beuc@gnu.org>.
52489
52490 2008-01-10  Colin Watson  <cjwatson@debian.org>
52491
52492         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52493         s/S_ISNLK/S_ISLNK/.
52494
52495 2008-01-09  Bruno Haible  <bruno@clisp.org>
52496
52497         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52498         and other files.
52499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52500         if it's only a guess.
52501         * modules/memmem: Simplify by depending on memmem-simple.
52502
52503 2008-01-09  Bruno Haible  <bruno@clisp.org>
52504
52505         Work around OpenBSD 4.0 tdelete() bug.
52506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52507         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52508         macros and don't redefine the enum values.
52509         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52510         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52511         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52512
52513 2008-01-09  Bruno Haible  <bruno@clisp.org>
52514
52515         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52516         (main): Don't perform the tests if setlocale did not install a UTF-8
52517         locale. Needed on OpenBSD 4.0.
52518         * modules/wcwidth-tests (Depends-on): Add localcharset.
52519
52520 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52523         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52524         * NEWS: announce this.
52525         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52526
52527 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52528         and Eric Blake  <ebb9@byu.net>
52529
52530         Add memmem-simple module.
52531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52532         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52533         * modules/memmem-simple: New file.
52534         * modules/memmem (Description): Tweak.
52535         * MODULES.html.sh (string handling): Mention new module.
52536         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52537         addressed by memmem-simple.
52538         * NEWS: Document the difference.
52539
52540 2008-01-09  Eric Blake  <ebb9@byu.net>
52541
52542         Give gcc some memmem optimization hints.
52543         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52544         (strcasestr): Declare as pure.
52545         * modules/memmem (Maintainer): Claim my implementation.
52546
52547 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52548
52549         Support AIX 6.1 and higher.
52550         * build-aux/config.libpath: Likewise.
52551         * build-aux/config.rpath: Likewise.
52552
52553 2008-01-08  Jim Meyering  <meyering@redhat.com>
52554             Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52557         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52558         Reported by Peter Fales in
52559         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52560
52561 2008-01-08  Bruno Haible  <bruno@clisp.org>
52562
52563         * modules/unictype/category-of (Depends-on): Add
52564         unictype/category-none.
52565         * modules/unictype/category-and-tests (Depends-on): Add
52566         unictype/category-{L,N,Lu,Nd}.
52567         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52568         * modules/unictype/category-or-tests (Depends-on): Add
52569         unictype/category-{L,N}.
52570         * modules/unictype/category-name-tests (Depends-on): Add
52571         unictype/category-{Z,Nl}.
52572         Reported by Simon Josefsson.
52573
52574 2008-01-08  Bruno Haible  <bruno@clisp.org>
52575
52576         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52577         convention better.
52578         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52579         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52580         Reported by Peter Miller <millerp@canb.auug.org.au>.
52581
52582 2008-01-08  Eric Blake  <ebb9@byu.net>
52583
52584         Rewrite memmem to guarantee linear complexity without malloc.
52585         * lib/memmem.c (memmem): Use Two-Way rather than
52586         Knuth-Morris-Pratt, to allow O(1) space usage.
52587         (critical_factorization, two_way_short_needle)
52588         (two_way_long_needle): New functions.
52589         (knuth_morris_pratt): Delete.
52590         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52591         Add stdint.
52592         * tests/test-memmem.c (main): Add tests for periodic needle and
52593         sublinear performance.
52594         * doc/functions/memmem.texi (memmem): Document other deficiencies
52595         in cygwin and older glibc.
52596
52597 2008-01-08  Bruno Haible  <bruno@clisp.org>
52598
52599         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52600         augmentation.
52601
52602 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52603
52604         Add a configure time option: --disable-acl.
52605         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52606         AC_ARG_ENABLE(acl).
52607
52608 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52609
52610         * tests/test-localename.c: Don't include obsolete "setenv.h".
52611
52612         * modules/localename-tests (Depends-on): Need unsetenv.
52613
52614 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52615
52616         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52617
52618 2008-01-06  Colin Watson  <cjwatson@debian.org>
52619
52620         * users.txt: Add man-db.
52621
52622 2008-01-07  Bruno Haible  <bruno@clisp.org>
52623
52624         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52625         previous section name.
52626
52627 2008-01-07  Bruno Haible  <bruno@clisp.org>
52628
52629         * lib/progname.c (set_program_name): Don't strip off a leading
52630         "lt-" prefix outside a .libs directory.
52631         Suggested by Paul Eggert.
52632
52633 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52634             Bruno Haible  <bruno@clisp.org>
52635
52636         Improve memory cleanup in 'relocatable' module.
52637         * lib/relocatable.h (compute_curr_prefix): Change return type to
52638         'char *'.
52639         * lib/relocatable.c (compute_curr_prefix): Change return type to
52640         'char *'. Free curr_installdir after use.
52641         (relocate): Free curr_prefix_better after use.
52642         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52643
52644 2008-01-01  Bruno Haible  <bruno@clisp.org>
52645
52646         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52647         failure on older glibc systems.
52648         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52649
52650 2008-01-05  Eric Blake  <ebb9@byu.net>
52651
52652         Avoid quadratic system memmem.
52653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52654         Reported by Ralf Wildenhues.
52655
52656         Fix memmem test for mingw.
52657         * modules/memmem-tests (configure.ac): Check for alarm.
52658         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52659         it.
52660         * doc/functions/memmem.texi: New file.
52661         * doc/gnulib.texi (Function Substitutes): Add memmem.
52662         Reported by Bruno Haible.
52663
52664 2008-01-04  Bruno Haible  <bruno@clisp.org>
52665
52666         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52667         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52668         gl_HEADER_STRING_H_DEFAULTS.
52669
52670 2008-01-04  Eric Blake  <ebb9@byu.net>
52671
52672         Shorten duration of memmem test.
52673         * tests/test-memmem.c (main): Use alarm to declare failure if test
52674         is taking too long.
52675         Reported by Ralf Wildenhues.
52676
52677 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52678
52679         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52680         string, needed by strerror.
52681
52682 2008-01-03  Colin Watson  <cjwatson@debian.org>
52683             Bruno Haible  <bruno@clisp.org>
52684
52685         * doc/gnulib-tool.texi (Localization): New section.
52686
52687 2008-01-02  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52690         variables to 'unsigned char *' type.
52691         Reported by Paul Eggert.
52692
52693 2008-01-02  Jim Meyering  <jim@meyering.net>
52694
52695         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52696
52697 2007-12-31  Jim Meyering  <jim@meyering.net>
52698
52699         Avoid use of private FTS type name.
52700         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52701
52702 2007-12-30  Karl Berry  <karl@gnu.org>
52703
52704         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52705         work around defect in Texinfo and/or the standalone Info browser.
52706
52707 2007-12-30  Bruno Haible  <bruno@clisp.org>
52708
52709         Unify 5 copies of the KMP code.
52710         * lib/str-kmp.h: New file.
52711         * lib/c-strcasestr.c: Include str-kmp.h.
52712         (knuth_morris_pratt): Remove function.
52713         (c_strcasestr): Update.
52714         * lib/c-strstr.c: Include str-kmp.h.
52715         (knuth_morris_pratt): Remove function.
52716         (c_strcasestr): Update.
52717         * lib/mbscasestr.c: Include str-kmp.h.
52718         (knuth_morris_pratt_unibyte): Remove function.
52719         * lib/mbsstr.c: Include str-kmp.h.
52720         (knuth_morris_pratt_unibyte): Remove function.
52721         * lib/strcasestr.c: Include str-kmp.h.
52722         (knuth_morris_pratt): Remove function.
52723         (strcasestr): Update.
52724         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52725         * modules/c-strstr (Files): Likewise.
52726         * modules/mbscasestr (Files): Likewise.
52727         * modules/mbsstr (Files): Likewise.
52728         * modules/strcasestr (Files): Likewise.
52729         Suggested by Paul Eggert.
52730
52731 2007-12-30  Bruno Haible  <bruno@clisp.org>
52732
52733         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52734         defined.
52735
52736 2007-12-30  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/xmalloca.h: Include xalloc.h.
52739         (xnmalloca): New macro.
52740
52741 2007-12-30  Bruno Haible  <bruno@clisp.org>
52742
52743         * lib/malloca.h (nmalloca): New macro.
52744         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52745         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52746         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52747         knuth_morris_pratt_multibyte): Likewise.
52748         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52749         knuth_morris_pratt_multibyte): Likewise.
52750         * lib/memmem.c (knuth_morris_pratt): Likewise.
52751         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52752
52753 2007-12-25  Bruno Haible  <bruno@clisp.org>
52754
52755         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52756         * lib/glob.c: Don't include openat.h.
52757         (link_exists2_p): Add back the code that deals with the
52758         !GLOB_ALTDIRFUNC case.
52759         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52760         let it do the filename concatenation.
52761         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52762         * modules/glob (Depends-on): Remove openat.
52763
52764 2007-12-31  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/dirfd (License): Change to LGPLv2+.
52767         Approved by Jim Meyering.
52768
52769 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52772         when multiplying M by sizeof (size_t).
52773
52774 2007-12-10  Martin Lambers  <marlam@marlam.de>
52775
52776         Override getpagesize on mingw.
52777         * lib/getpagesize.c: New file.
52778         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52779         * modules/getpagesize (Files): Add lib/getpagesize.c.
52780         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52782         REPLACE_GETPAGESIZE.
52783         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52784
52785 2007-12-25  Bruno Haible  <bruno@clisp.org>
52786
52787         * modules/localcharset (Notice): New field.
52788         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52789         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52790
52791 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52792             Bruno Haible  <bruno@clisp.org>
52793
52794         Avoid using the syntax symbol() in formatted documentation.
52795         * MODULES.html.sh (func_module): When replacing symbol() with a
52796         hyperlink, remove the parentheses. Show an error if some remain.
52797         Recognize and render the '...' syntax.
52798         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52799         Rework. Add paragraph about GCC's inlining.
52800         * doc/alloca.texi: Likewise.
52801         * doc/error.texi: Remove parentheses from symbol reference.
52802         * doc/gnulib-intro.texi: Likewise.
52803         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52804         * modules/fnmatch (Description): Reword to say "the ... function".
52805         * modules/full-read (Description): Likewise.
52806         * modules/full-write (Description): Likewise.
52807         * modules/safe-read (Description): Likewise.
52808         * modules/safe-write (Description): Likewise.
52809         * modules/strchrnul (Description): Likewise.
52810         * modules/trim (Description): Likewise.
52811         * modules/error (Description): Remove parentheses from symbol
52812         references.
52813         * modules/verror (Description): Likewise.
52814         Reported by Karl Berry.
52815
52816 2007-12-25  Bruno Haible  <bruno@clisp.org>
52817
52818         Fixup after 2007-10-16 commit.
52819         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52820
52821 2007-12-24  Bruno Haible  <bruno@clisp.org>
52822
52823         Make --enable-relocatable work with DESTDIR.
52824         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52825         to compute installdir from destprog.
52826         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52827         also set the RELOC_DESTDIR variable.
52828         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52829
52830 2007-12-24  Bruno Haible  <bruno@clisp.org>
52831
52832         Fix link error due to xalloc_die().
52833         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52834         of xreadlink.
52835         * lib/relocwrapper.c: Update comments.
52836         * build-aux/install-reloc: Remove xreadlink.c from file list.
52837         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52838         xreadlink.c.
52839         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52840
52841 2007-12-24  Bruno Haible  <bruno@clisp.org>
52842
52843         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52844         * lib/setenv.h: Remove file.
52845         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52846         lib/setenv.h.
52847         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52848         (Depends-on): Add stdlib.
52849         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52850         gl_FUNC_UNSETENV.
52851         (Include): Replace setenv.h with <stdlib.h>.
52852         * modules/unsetenv: New file.
52853         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52854         * lib/unsetenv.c: Include <stdlib.h> first.
52855         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52856         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52857         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52858         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52859         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52860         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52862         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52863         * doc/functions/unsetenv.texi: Update.
52864         * modules/xsetenv (Depends-on): Add unsetenv.
52865         * modules/getdate (Depends-on): Likewise.
52866         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52867         * lib/xsetenv.c: Don't include setenv.h.
52868         * lib/getdate.y: Likewise.
52869         * lib/relocwrapper.c: Likewise.
52870         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52871         (Depends-on): Add stdlib.
52872         * NEWS: Mention the changes.
52873         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52874
52875 2007-12-23  Bruno Haible  <bruno@clisp.org>
52876
52877         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52878         indentation.
52879
52880 2007-12-23  Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/c-strcasestr.c: Add more comments.
52883         * lib/c-strstr.c: Likewise.
52884         * lib/mbscasestr.c: Likewise.
52885         * lib/mbsstr.c: Likewise.
52886         * lib/strcasestr.c: Likewise.
52887         * lib/memmem.c: Likewise.
52888
52889 2007-12-23  Bruno Haible  <bruno@clisp.org>
52890
52891         * tests/test-memmem.c: Include <string.h> first.
52892
52893 2007-12-22  Bruno Haible  <bruno@clisp.org>
52894
52895         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52896         the contents of $testsbase.
52897         Reported by Ralf Wildenhues.
52898
52899 2007-12-22  Bruno Haible  <bruno@clisp.org>
52900
52901         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52902         two variables local_ldadd_before, local_ldadd_last.
52903
52904 2007-12-20  Eric Blake  <ebb9@byu.net>
52905
52906         Work around circular library issue when cross-compiling.
52907         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52908         that progname.o does not need to pull in rpl_memcmp.
52909
52910 2007-12-19  Eric Blake  <ebb9@byu.net>
52911
52912         Fix memmem to avoid O(n^2) worst-case complexity.
52913         * lib/memmem.c (knuth_morris_pratt): New function.
52914         (memmem): Use it if first few naive iterations fail.
52915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52916         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52917         * modules/memchr (License): Likewise.
52918         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52919         malloca.
52920         * tests/test-memmem.c: Rewrite, borrowing ideas from
52921         test-mbsstr1.c; the old version wouldn't even compile!
52922         * modules/memmem-tests: New file.
52923         * lib/string.in.h (rpl_memmem): Add declaration.
52924         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52926         REPLACE_MEMMEM.
52927
52928 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52931         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52932         before any system include files, and undef after them all.  This
52933         should fix a problem on VMS reported by John E. Malmberg in
52934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52935
52936 2007-12-17  Eric Blake  <ebb9@byu.net>
52937
52938         Revert addition of verify, for BSD/OS.
52939         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52940         can't handle large files, for the sake of obsolete platforms.
52941         * modules/fseeko (Depends-on): Remove verify.
52942         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52943         * doc/functions/ftello.texi (ftello): Likewise.
52944         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52945         Reported by Larry Jones.
52946
52947 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52948
52949         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52950         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52951
52952 2007-12-17  Jim Meyering  <meyering@redhat.com>
52953
52954         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52955         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52956         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52957         * modules/getcwd (Depends-on): Add openat.
52958         Reported by Petr Salinger.
52959
52960 2007-12-17  Bruno Haible  <bruno@clisp.org>
52961
52962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52963         avoid a segmentation fault of the configure test on x86_64 systems.
52964
52965 2007-12-15  Jim Meyering  <meyering@redhat.com>
52966
52967         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52968
52969 2007-12-13  Eric Blake  <ebb9@byu.net>
52970
52971         Another fseek test.
52972         * tests/test-fseek.c (main): Also test ungetc handling.
52973         * tests/test-fseeko.c (main): Likewise.
52974         * modules/fseeko (Depends-on): Add verify.
52975         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52976         large.
52977         Reported by Larry Jones.
52978
52979         Fix fseeko on mingw.
52980         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52981         seek.
52982
52983         Beef up fseek tests.
52984         * tests/test-fseek.c (main): Also test eof handling.
52985         * tests/test-fseeko.c (main): Likewise.
52986         Reported by Larry Jones.
52987
52988 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52989
52990         Fix fseeko on BSD-based platforms.
52991         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52992         successful seek.
52993
52994 2007-12-12  Eric Blake  <ebb9@byu.net>
52995
52996         Allow circular dependency of separate libtests.a
52997         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52998         when use_libtests.
52999
53000 2007-12-11  Eric Blake  <ebb9@byu.net>
53001
53002         Fix bug with -0.0L in previous patch.
53003         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53004         * tests/test-isnan.c (main): Also test on zeroes.
53005         * tests/test-isnanf.c (main): Likewise.
53006         * tests/test-isnanl.h (main): Likewise.
53007
53008         Detect pseudo-denormals on x86 even when cross-compiling.
53009         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53010         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53011         invalid bit patterns that happen to satisfy ==.
53012
53013         Avoid link failures with separate libtests.a.
53014         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53015         last, to satisfy circular dependencies.
53016
53017 2007-12-11  Eric Blake  <ebb9@byu.net>
53018         and Bruno Haible  <bruno@clisp.org>
53019
53020         Fix OpenBSD 4.0 <float.h> handling of long double.
53021         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53022         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53023         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53024
53025 2007-12-11  Jim Meyering  <meyering@redhat.com>
53026
53027         * users.txt: Add libvirt.
53028
53029         Support versions of autoconf prior to 2.59c.
53030         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53031         if it is not already defined.
53032
53033 2007-12-09  Bruno Haible  <bruno@clisp.org>
53034
53035         Let 'gnulib-tool --import' collect sources needed for the tests in
53036         tests/ rather than in lib/.
53037         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53038         argument. If true, add rules to generate libtests.a, and put libtests.a
53039         into $(LDADD). Consider source files in subdirectories and set
53040         uses_subdirs.
53041         (func_emit_initmacro_start, func_emit_initmacro_end,
53042         func_emit_initmacro_done): Pass all arguments explicitly.
53043         (func_import): Determine two module lists main_modules,
53044         testsrelated_modules. Determine use_libtests. Determine two variables
53045         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53046         instead of just sed_transform_lib_file. Determine two variables
53047         main_files and testsrelated_files. Compute 'files' as the union of
53048         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53049         func_add_or_update. In the generated gnulib-comp.m4, collect the
53050         object files for tests/ in different variables than those for lib/.
53051         Substitute LIBTESTS_LIBDEPS.
53052         (func_create_testdir): Combine the uses_subdirs results from
53053         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53054
53055 2007-12-09  Bruno Haible  <bruno@clisp.org>
53056
53057         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53058         the build-aux directory.
53059
53060 2007-12-09  Bruno Haible  <bruno@clisp.org>
53061
53062         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53063         introduced on 2006-09-09.
53064
53065 2007-12-07  Jim Meyering  <meyering@redhat.com>
53066
53067         Let these macros work also with autoconf-2.59.
53068         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53069         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53071
53072 2007-12-06  Jim Meyering  <meyering@redhat.com>
53073
53074         Avoid a configure-time syntax error in gl_FUNC_ACL.
53075         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53076         function in each branch, before testing the cache variable.
53077
53078 2007-12-04  Eric Blake  <ebb9@byu.net>
53079
53080         Make scripts executable.
53081         * build-aux/config.guess: Add execute permissions.
53082         * build-aux/config.sub: Likewise.
53083         * build-aux/gendocs.sh: Likewise.
53084
53085         Fix frexp on mingw.
53086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53087         cross-compiling.
53088         * doc/functions/frexp.texi (frexp): Document the bug.
53089
53090         Make cygwin fseeko check more reliable.
53091         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53092         version numbers, rather than unrelated feature check.
53093         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53094         * doc/functions/ftello.texi (ftello): Likewise.
53095         Reported by Bruno Haible.
53096
53097         * m4/strerror.m4: Bump version number.
53098
53099 2007-12-03  Bruno Haible  <bruno@clisp.org>
53100
53101         * doc/functions/mprotect.texi: Mention the mingw problem.
53102
53103 2007-12-03  Eric Blake  <ebb9@byu.net>
53104
53105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53106         REPLACE_STRERROR is initialized before this macro.
53107
53108 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53111         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53112         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53113         put -lsec in even for programs other than 'ls'.  This fixes a problem
53114         for gettext reported by Bruno Haible in
53115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53116         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53117         Add support for Solaris 10.  This isn't efficient, but should get the
53118         job done for now.
53119
53120 2007-12-03  James Youngman  <jay@gnu.org>
53121
53122         * doc/regexprops-generic.texi: change "an close-group" to "a
53123         close-group" and "illegal" to "not allowed".
53124
53125 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53126
53127         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53128         pr_byname.h. Needed for the rare case when the maintainer has done
53129         "make maintainer-clean" in the source directory and then attempts a
53130         build outside the source directory.
53131         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53132         scripts_byname.h.
53133
53134 2007-12-02  Martin Lambers <marlam@marlam.de>
53135             Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/getpagesize.h: Remove file.
53138         * lib/unistd.in.h: Include declaration of getpagesize here.
53139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53140         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53141         HAVE_SYS_PARAM_H.
53142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53143         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53144         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53145         (Depends-on): Add unistd.
53146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53147         (Include): Use <unistd.h> instead of getpagesize.h.
53148         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53149         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53150         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53151         gl_GETPAGESIZE invocation, already handled by module dependency.
53152         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53153
53154 2007-12-02  Bruno Haible  <bruno@clisp.org>
53155
53156         * modules/strings-tests: New file.
53157         * tests/test-strings.c: New file.
53158
53159         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53160         * lib/strings.in.h: New file.
53161         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53162         * m4/strings_h.m4: New file.
53163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53164         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53165         * modules/strings: New file.
53166         * modules/string (Makefile.am): Update.
53167         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53168         Reported by Karl Berry.
53169
53170 2007-12-01  Eric Blake  <ebb9@byu.net>
53171
53172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53173         accomodate fix in cygwin 1.5.25.
53174
53175 2007-12-01  Jim Meyering  <meyering@redhat.com>
53176
53177         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53178         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53179         that would inhibit utf8-optimization of a regexp containing line-
53180         or buffer-anchors, e.g., `^', `$'.
53181
53182 2007-11-30  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53185         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53186         glthread_recursive_lock_init.
53187         * lib/lock.c (glthread_recursive_lock_init)
53188         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53189         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53190
53191 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         New function qset_acl, like set_acl but with syscall semantics.
53194         * lib/acl.h (qset_acl): New decl.
53195         * lib/acl.c (qset_acl): New function.
53196         (set_acl): Use new function.  Use more-consistent diagnostics.
53197
53198 2007-11-28  Jim Meyering  <meyering@redhat.com>
53199
53200         * modules/physmem (License): Change from GPL to LGPLv2+.
53201
53202 2007-11-26  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53205         'long double' type has excess precision.
53206         Reported by Jim Meyering in
53207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53208
53209 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53210
53211         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53212         Sync from <http://gnu.org/licenses>.
53213         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53214         with license text from same location.
53215         * doc/maintain.texi, doc/standards.texi:  Sync from
53216         <http://savannah.gnu.org/projects/gnustandards>.
53217
53218 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53219         and Jim Meyering  <meyering@redhat.com>
53220
53221         Adjust getdate' grammar to accept a slightly more regular language.
53222         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53223         Before, the former was rejected.
53224         * lib/getdate.y (digits_to_date_time): New function, factored
53225         out of ...
53226         (number): ...here.  Just call digits_to_date_time.
53227         (hybrid): New non-terminal to handle an <unsigned number,
53228         signed relative offset> sequence consistently.
53229
53230 2007-11-18  Jim Meyering  <meyering@redhat.com>
53231
53232         Pull my changes from coreutils:
53233         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53234         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53235         use of $gnulib_tool_option_extras, so that it's separated from the
53236         preceding argument.
53237
53238         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53239         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53240         parent destination directories before copying a file into place.
53241
53242 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53243
53244         bootstrap: work also with 4-argument variant of AC_INIT
53245         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53246
53247 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         Port test-getaddrinfo to Solaris.
53250         Problem reported by Bruno Haible in
53251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53252         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53253         explanation of setting 'hints'.
53254         Don't reject an implementation merely because it returns EAI_SERVICE.
53255         (EAI_SERVICE): Define to 0 if not defined.
53256
53257 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         The license of gnu-make and posix-shell is now "GPLed build tool".
53260         * modules/gnu-make (License): Likewise.
53261         * modules/posix-shell (License): Likewise.
53262
53263         New module posix-shell, for determining a POSIX shell
53264         or perhaps something that is close enough to a POSIX shell.
53265         * m4/posix-shell.m4: New file.
53266         * modules/posix-shell: New file.
53267
53268         * MODULES.html.sh: Mention new module.
53269
53270         New module gnu-make, for determining whether we're using GNU Make.
53271         * m4/gnu-make.m4: New file.
53272         * modules/gnu-make: New file.
53273         * MODULES.html.sh: Mention new module.
53274
53275 2007-11-14  Jim Meyering  <meyering@redhat.com>
53276
53277         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53278         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53279         use this macro to create a function _definition_.
53280         Remove useless "#undef ARGMATCH_DIE".
53281
53282 2007-11-14  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/config.charset: Update for OpenBSD 4.1.
53285         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53286
53287 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         Document 64-bit #if problems in stdint.texi.
53290         * doc/headers/stdint.texi (stdint.h): Mention problems with
53291         64-bit-#if, and how to work around them.
53292
53293         Don't insist on 'long long int' support in the preprocessor.  It
53294         breaks too many things.  For example, PRIdMAX still uses a 'long
53295         long int' format with the latest Sun compiler, even though
53296         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53297         preprocessor problem.  This causes the latest coreutils to dump
53298         core on Solaris 10 sparc with the Sun C compiler.
53299         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53300         the troublesome expressions at configure-time, not at #if-time.
53301         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53302         preprocessor.
53303         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53304         compile-time C checks, done at 'configure'-time.
53305         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53306         * modules/inttypes (Makefile): Substitute the new symbols that
53307         gl_INTTYPES_H now generates.
53308         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53309
53310 2007-11-12  Bruno Haible  <bruno@clisp.org>
53311
53312         Tests for Unicode character classification functions.
53313
53314         * modules/unictype/bidicategory-byname-tests: New file.
53315         * modules/unictype/bidicategory-name-tests: New file.
53316         * modules/unictype/bidicategory-of-tests: New file.
53317         * modules/unictype/bidicategory-test-tests: New file.
53318         * modules/unictype/block-list-tests: New file.
53319         * modules/unictype/block-of-tests: New file.
53320         * modules/unictype/block-test-tests: New file.
53321         * modules/unictype/category-C-tests: New file.
53322         * modules/unictype/category-Cc-tests: New file.
53323         * modules/unictype/category-Cf-tests: New file.
53324         * modules/unictype/category-Cn-tests: New file.
53325         * modules/unictype/category-Co-tests: New file.
53326         * modules/unictype/category-Cs-tests: New file.
53327         * modules/unictype/category-L-tests: New file.
53328         * modules/unictype/category-Ll-tests: New file.
53329         * modules/unictype/category-Lm-tests: New file.
53330         * modules/unictype/category-Lo-tests: New file.
53331         * modules/unictype/category-Lt-tests: New file.
53332         * modules/unictype/category-Lu-tests: New file.
53333         * modules/unictype/category-M-tests: New file.
53334         * modules/unictype/category-Mc-tests: New file.
53335         * modules/unictype/category-Me-tests: New file.
53336         * modules/unictype/category-Mn-tests: New file.
53337         * modules/unictype/category-N-tests: New file.
53338         * modules/unictype/category-Nd-tests: New file.
53339         * modules/unictype/category-Nl-tests: New file.
53340         * modules/unictype/category-No-tests: New file.
53341         * modules/unictype/category-P-tests: New file.
53342         * modules/unictype/category-Pc-tests: New file.
53343         * modules/unictype/category-Pd-tests: New file.
53344         * modules/unictype/category-Pe-tests: New file.
53345         * modules/unictype/category-Pf-tests: New file.
53346         * modules/unictype/category-Pi-tests: New file.
53347         * modules/unictype/category-Po-tests: New file.
53348         * modules/unictype/category-Ps-tests: New file.
53349         * modules/unictype/category-S-tests: New file.
53350         * modules/unictype/category-Sc-tests: New file.
53351         * modules/unictype/category-Sk-tests: New file.
53352         * modules/unictype/category-Sm-tests: New file.
53353         * modules/unictype/category-So-tests: New file.
53354         * modules/unictype/category-Z-tests: New file.
53355         * modules/unictype/category-Zl-tests: New file.
53356         * modules/unictype/category-Zp-tests: New file.
53357         * modules/unictype/category-Zs-tests: New file.
53358         * modules/unictype/category-and-not-tests: New file.
53359         * modules/unictype/category-and-tests: New file.
53360         * modules/unictype/category-byname-tests: New file.
53361         * modules/unictype/category-name-tests: New file.
53362         * modules/unictype/category-none-tests: New file.
53363         * modules/unictype/category-of-tests: New file.
53364         * modules/unictype/category-or-tests: New file.
53365         * modules/unictype/category-test-withtable-tests: New file.
53366         * modules/unictype/combining-class-tests: New file.
53367         * modules/unictype/ctype-alnum-tests: New file.
53368         * modules/unictype/ctype-alpha-tests: New file.
53369         * modules/unictype/ctype-blank-tests: New file.
53370         * modules/unictype/ctype-cntrl-tests: New file.
53371         * modules/unictype/ctype-digit-tests: New file.
53372         * modules/unictype/ctype-graph-tests: New file.
53373         * modules/unictype/ctype-lower-tests: New file.
53374         * modules/unictype/ctype-print-tests: New file.
53375         * modules/unictype/ctype-punct-tests: New file.
53376         * modules/unictype/ctype-space-tests: New file.
53377         * modules/unictype/ctype-upper-tests: New file.
53378         * modules/unictype/ctype-xdigit-tests: New file.
53379         * modules/unictype/decimal-digit-tests: New file.
53380         * modules/unictype/digit-tests: New file.
53381         * modules/unictype/mirror-tests: New file.
53382         * modules/unictype/numeric-tests: New file.
53383         * modules/unictype/property-alphabetic-tests: New file.
53384         * modules/unictype/property-ascii-hex-digit-tests: New file.
53385         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53386         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53387         * modules/unictype/property-bidi-block-separator-tests: New file.
53388         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53389         * modules/unictype/property-bidi-common-separator-tests: New file.
53390         * modules/unictype/property-bidi-control-tests: New file.
53391         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53392         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53393         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53394         * modules/unictype/property-bidi-european-digit-tests: New file.
53395         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53396         * modules/unictype/property-bidi-left-to-right-tests: New file.
53397         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53398         * modules/unictype/property-bidi-other-neutral-tests: New file.
53399         * modules/unictype/property-bidi-pdf-tests: New file.
53400         * modules/unictype/property-bidi-segment-separator-tests: New file.
53401         * modules/unictype/property-bidi-whitespace-tests: New file.
53402         * modules/unictype/property-byname-tests: New file.
53403         * modules/unictype/property-combining-tests: New file.
53404         * modules/unictype/property-composite-tests: New file.
53405         * modules/unictype/property-currency-symbol-tests: New file.
53406         * modules/unictype/property-dash-tests: New file.
53407         * modules/unictype/property-decimal-digit-tests: New file.
53408         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53409         * modules/unictype/property-deprecated-tests: New file.
53410         * modules/unictype/property-diacritic-tests: New file.
53411         * modules/unictype/property-extender-tests: New file.
53412         * modules/unictype/property-format-control-tests: New file.
53413         * modules/unictype/property-grapheme-base-tests: New file.
53414         * modules/unictype/property-grapheme-extend-tests: New file.
53415         * modules/unictype/property-grapheme-link-tests: New file.
53416         * modules/unictype/property-hex-digit-tests: New file.
53417         * modules/unictype/property-hyphen-tests: New file.
53418         * modules/unictype/property-id-continue-tests: New file.
53419         * modules/unictype/property-id-start-tests: New file.
53420         * modules/unictype/property-ideographic-tests: New file.
53421         * modules/unictype/property-ids-binary-operator-tests: New file.
53422         * modules/unictype/property-ids-trinary-operator-tests: New file.
53423         * modules/unictype/property-ignorable-control-tests: New file.
53424         * modules/unictype/property-iso-control-tests: New file.
53425         * modules/unictype/property-join-control-tests: New file.
53426         * modules/unictype/property-left-of-pair-tests: New file.
53427         * modules/unictype/property-line-separator-tests: New file.
53428         * modules/unictype/property-logical-order-exception-tests: New file.
53429         * modules/unictype/property-lowercase-tests: New file.
53430         * modules/unictype/property-math-tests: New file.
53431         * modules/unictype/property-non-break-tests: New file.
53432         * modules/unictype/property-not-a-character-tests: New file.
53433         * modules/unictype/property-numeric-tests: New file.
53434         * modules/unictype/property-other-alphabetic-tests: New file.
53435         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53436         * modules/unictype/property-other-grapheme-extend-tests: New file.
53437         * modules/unictype/property-other-id-continue-tests: New file.
53438         * modules/unictype/property-other-id-start-tests: New file.
53439         * modules/unictype/property-other-lowercase-tests: New file.
53440         * modules/unictype/property-other-math-tests: New file.
53441         * modules/unictype/property-other-uppercase-tests: New file.
53442         * modules/unictype/property-paired-punctuation-tests: New file.
53443         * modules/unictype/property-paragraph-separator-tests: New file.
53444         * modules/unictype/property-pattern-syntax-tests: New file.
53445         * modules/unictype/property-pattern-white-space-tests: New file.
53446         * modules/unictype/property-private-use-tests: New file.
53447         * modules/unictype/property-punctuation-tests: New file.
53448         * modules/unictype/property-quotation-mark-tests: New file.
53449         * modules/unictype/property-radical-tests: New file.
53450         * modules/unictype/property-sentence-terminal-tests: New file.
53451         * modules/unictype/property-soft-dotted-tests: New file.
53452         * modules/unictype/property-space-tests: New file.
53453         * modules/unictype/property-terminal-punctuation-tests: New file.
53454         * modules/unictype/property-test-tests: New file.
53455         * modules/unictype/property-titlecase-tests: New file.
53456         * modules/unictype/property-unassigned-code-value-tests: New file.
53457         * modules/unictype/property-unified-ideograph-tests: New file.
53458         * modules/unictype/property-uppercase-tests: New file.
53459         * modules/unictype/property-variation-selector-tests: New file.
53460         * modules/unictype/property-white-space-tests: New file.
53461         * modules/unictype/property-xid-continue-tests: New file.
53462         * modules/unictype/property-xid-start-tests: New file.
53463         * modules/unictype/property-zero-width-tests: New file.
53464         * modules/unictype/scripts-tests: New file.
53465         * modules/unictype/syntax-c-ident-tests: New file.
53466         * modules/unictype/syntax-c-whitespace-tests: New file.
53467         * modules/unictype/syntax-java-ident-tests: New file.
53468         * modules/unictype/syntax-java-whitespace-tests: New file.
53469         * tests/unictype/test-bidi_byname.c: New file.
53470         * tests/unictype/test-bidi_name.c: New file.
53471         * tests/unictype/test-bidi_of.c: New file.
53472         * tests/unictype/test-bidi_test.c: New file.
53473         * tests/unictype/test-block_list.c: New file.
53474         * tests/unictype/test-block_of.c: New file.
53475         * tests/unictype/test-block_test.c: New file.
53476         * tests/unictype/test-categ_and.c: New file.
53477         * tests/unictype/test-categ_and_not.c: New file.
53478         * tests/unictype/test-categ_byname.c: New file.
53479         * tests/unictype/test-categ_name.c: New file.
53480         * tests/unictype/test-categ_none.c: New file.
53481         * tests/unictype/test-categ_of.c: New file.
53482         * tests/unictype/test-categ_or.c: New file.
53483         * tests/unictype/test-categ_test_withtable.c: New file.
53484         * tests/unictype/test-combining.c: New file.
53485         * tests/unictype/test-decdigit.c: New file.
53486         * tests/unictype/test-digit.c: New file.
53487         * tests/unictype/test-mirror.c: New file.
53488         * tests/unictype/test-numeric.c: New file.
53489         * tests/unictype/test-pr_byname.c: New file.
53490         * tests/unictype/test-pr_test.c: New file.
53491         * tests/unictype/test-predicate-part1.h: New file.
53492         * tests/unictype/test-predicate-part2.h: New file.
53493         * tests/unictype/test-scripts.c: New file.
53494         * tests/unictype/test-sy_c_ident.c: New file.
53495         * tests/unictype/test-sy_java_ident.c: New file.
53496
53497         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53498         for Unicode 5.0.0.
53499         * tests/unictype/test-categ_Cc.c: Likewise.
53500         * tests/unictype/test-categ_Cf.c: Likewise.
53501         * tests/unictype/test-categ_Cn.c: Likewise.
53502         * tests/unictype/test-categ_Co.c: Likewise.
53503         * tests/unictype/test-categ_Cs.c: Likewise.
53504         * tests/unictype/test-categ_L.c: Likewise.
53505         * tests/unictype/test-categ_Ll.c: Likewise.
53506         * tests/unictype/test-categ_Lm.c: Likewise.
53507         * tests/unictype/test-categ_Lo.c: Likewise.
53508         * tests/unictype/test-categ_Lt.c: Likewise.
53509         * tests/unictype/test-categ_Lu.c: Likewise.
53510         * tests/unictype/test-categ_M.c: Likewise.
53511         * tests/unictype/test-categ_Mc.c: Likewise.
53512         * tests/unictype/test-categ_Me.c: Likewise.
53513         * tests/unictype/test-categ_Mn.c: Likewise.
53514         * tests/unictype/test-categ_N.c: Likewise.
53515         * tests/unictype/test-categ_Nd.c: Likewise.
53516         * tests/unictype/test-categ_Nl.c: Likewise.
53517         * tests/unictype/test-categ_No.c: Likewise.
53518         * tests/unictype/test-categ_P.c: Likewise.
53519         * tests/unictype/test-categ_Pc.c: Likewise.
53520         * tests/unictype/test-categ_Pd.c: Likewise.
53521         * tests/unictype/test-categ_Pe.c: Likewise.
53522         * tests/unictype/test-categ_Pf.c: Likewise.
53523         * tests/unictype/test-categ_Pi.c: Likewise.
53524         * tests/unictype/test-categ_Po.c: Likewise.
53525         * tests/unictype/test-categ_Ps.c: Likewise.
53526         * tests/unictype/test-categ_S.c: Likewise.
53527         * tests/unictype/test-categ_Sc.c: Likewise.
53528         * tests/unictype/test-categ_Sk.c: Likewise.
53529         * tests/unictype/test-categ_Sm.c: Likewise.
53530         * tests/unictype/test-categ_So.c: Likewise.
53531         * tests/unictype/test-categ_Z.c: Likewise.
53532         * tests/unictype/test-categ_Zl.c: Likewise.
53533         * tests/unictype/test-categ_Zp.c: Likewise.
53534         * tests/unictype/test-categ_Zs.c: Likewise.
53535         * tests/unictype/test-ctype_alnum.c: Likewise.
53536         * tests/unictype/test-ctype_alpha.c: Likewise.
53537         * tests/unictype/test-ctype_blank.c: Likewise.
53538         * tests/unictype/test-ctype_cntrl.c: Likewise.
53539         * tests/unictype/test-ctype_digit.c: Likewise.
53540         * tests/unictype/test-ctype_graph.c: Likewise.
53541         * tests/unictype/test-ctype_lower.c: Likewise.
53542         * tests/unictype/test-ctype_print.c: Likewise.
53543         * tests/unictype/test-ctype_punct.c: Likewise.
53544         * tests/unictype/test-ctype_space.c: Likewise.
53545         * tests/unictype/test-ctype_upper.c: Likewise.
53546         * tests/unictype/test-ctype_xdigit.c: Likewise.
53547         * tests/unictype/test-decdigit.h: Likewise.
53548         * tests/unictype/test-digit.h: Likewise.
53549         * tests/unictype/test-numeric.h: Likewise.
53550         * tests/unictype/test-pr_alphabetic.c: Likewise.
53551         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53552         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53553         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53554         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53555         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53556         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53557         * tests/unictype/test-pr_bidi_control.c: Likewise.
53558         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53559         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53561         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53562         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53563         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53564         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53565         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53566         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53567         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53568         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53569         * tests/unictype/test-pr_combining.c: Likewise.
53570         * tests/unictype/test-pr_composite.c: Likewise.
53571         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53572         * tests/unictype/test-pr_dash.c: Likewise.
53573         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53574         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53575         * tests/unictype/test-pr_deprecated.c: Likewise.
53576         * tests/unictype/test-pr_diacritic.c: Likewise.
53577         * tests/unictype/test-pr_extender.c: Likewise.
53578         * tests/unictype/test-pr_format_control.c: Likewise.
53579         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53580         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53581         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53582         * tests/unictype/test-pr_hex_digit.c: Likewise.
53583         * tests/unictype/test-pr_hyphen.c: Likewise.
53584         * tests/unictype/test-pr_id_continue.c: Likewise.
53585         * tests/unictype/test-pr_id_start.c: Likewise.
53586         * tests/unictype/test-pr_ideographic.c: Likewise.
53587         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53588         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53589         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53590         * tests/unictype/test-pr_iso_control.c: Likewise.
53591         * tests/unictype/test-pr_join_control.c: Likewise.
53592         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53593         * tests/unictype/test-pr_line_separator.c: Likewise.
53594         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53595         * tests/unictype/test-pr_lowercase.c: Likewise.
53596         * tests/unictype/test-pr_math.c: Likewise.
53597         * tests/unictype/test-pr_non_break.c: Likewise.
53598         * tests/unictype/test-pr_not_a_character.c: Likewise.
53599         * tests/unictype/test-pr_numeric.c: Likewise.
53600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53601         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53602         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53603         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53604         * tests/unictype/test-pr_other_id_start.c: Likewise.
53605         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53606         * tests/unictype/test-pr_other_math.c: Likewise.
53607         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53608         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53609         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53610         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53611         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53612         * tests/unictype/test-pr_private_use.c: Likewise.
53613         * tests/unictype/test-pr_punctuation.c: Likewise.
53614         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53615         * tests/unictype/test-pr_radical.c: Likewise.
53616         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53617         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53618         * tests/unictype/test-pr_space.c: Likewise.
53619         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53620         * tests/unictype/test-pr_titlecase.c: Likewise.
53621         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53622         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53623         * tests/unictype/test-pr_uppercase.c: Likewise.
53624         * tests/unictype/test-pr_variation_selector.c: Likewise.
53625         * tests/unictype/test-pr_white_space.c: Likewise.
53626         * tests/unictype/test-pr_xid_continue.c: Likewise.
53627         * tests/unictype/test-pr_xid_start.c: Likewise.
53628         * tests/unictype/test-pr_zero_width.c: Likewise.
53629         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53630         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53631
53632 2007-11-12  Bruno Haible  <bruno@clisp.org>
53633
53634         Unicode character classification functions.
53635         * lib/unictype.h: New file.
53636         * modules/unictype/base: New file.
53637         * modules/unictype/category-L: New file.
53638         * modules/unictype/category-Lu: New file.
53639         * modules/unictype/category-Ll: New file.
53640         * modules/unictype/category-Lt: New file.
53641         * modules/unictype/category-Lm: New file.
53642         * modules/unictype/category-Lo: New file.
53643         * modules/unictype/category-M: New file.
53644         * modules/unictype/category-Mn: New file.
53645         * modules/unictype/category-Mc: New file.
53646         * modules/unictype/category-Me: New file.
53647         * modules/unictype/category-N: New file.
53648         * modules/unictype/category-Nd: New file.
53649         * modules/unictype/category-Nl: New file.
53650         * modules/unictype/category-No: New file.
53651         * modules/unictype/category-P: New file.
53652         * modules/unictype/category-Pc: New file.
53653         * modules/unictype/category-Pd: New file.
53654         * modules/unictype/category-Ps: New file.
53655         * modules/unictype/category-Pe: New file.
53656         * modules/unictype/category-Pi: New file.
53657         * modules/unictype/category-Pf: New file.
53658         * modules/unictype/category-Po: New file.
53659         * modules/unictype/category-S: New file.
53660         * modules/unictype/category-Sm: New file.
53661         * modules/unictype/category-Sc: New file.
53662         * modules/unictype/category-Sk: New file.
53663         * modules/unictype/category-So: New file.
53664         * modules/unictype/category-Z: New file.
53665         * modules/unictype/category-Zs: New file.
53666         * modules/unictype/category-Zl: New file.
53667         * modules/unictype/category-Zp: New file.
53668         * modules/unictype/category-C: New file.
53669         * modules/unictype/category-Cc: New file.
53670         * modules/unictype/category-Cf: New file.
53671         * modules/unictype/category-Cs: New file.
53672         * modules/unictype/category-Co: New file.
53673         * modules/unictype/category-Cn: New file.
53674         * modules/unictype/category-or: New file.
53675         * modules/unictype/category-of: New file.
53676         * modules/unictype/category-test: New file.
53677         * modules/unictype/category-test-withtable: New file.
53678         * modules/unictype/category-byname: New file.
53679         * modules/unictype/category-none: New file.
53680         * modules/unictype/category-and: New file.
53681         * modules/unictype/category-and-not: New file.
53682         * modules/unictype/category-name: New file.
53683         * modules/unictype/combining-class: New file.
53684         * modules/unictype/category-all: New file.
53685         * modules/unictype/bidicategory-all: New file.
53686         * modules/unictype/bidicategory-byname: New file.
53687         * modules/unictype/bidicategory-name: New file.
53688         * modules/unictype/bidicategory-of: New file.
53689         * modules/unictype/bidicategory-test: New file.
53690         * modules/unictype/decimal-digit: New file.
53691         * modules/unictype/digit: New file.
53692         * modules/unictype/numeric: New file.
53693         * modules/unictype/mirror: New file.
53694         * modules/unictype/property-white-space: New file.
53695         * modules/unictype/property-alphabetic: New file.
53696         * modules/unictype/property-other-alphabetic: New file.
53697         * modules/unictype/property-not-a-character: New file.
53698         * modules/unictype/property-default-ignorable-code-point: New file.
53699         * modules/unictype/property-other-default-ignorable-code-point: New
53700         file.
53701         * modules/unictype/property-deprecated: New file.
53702         * modules/unictype/property-logical-order-exception: New file.
53703         * modules/unictype/property-variation-selector: New file.
53704         * modules/unictype/property-private-use: New file.
53705         * modules/unictype/property-unassigned-code-value: New file.
53706         * modules/unictype/property-uppercase: New file.
53707         * modules/unictype/property-other-uppercase: New file.
53708         * modules/unictype/property-lowercase: New file.
53709         * modules/unictype/property-other-lowercase: New file.
53710         * modules/unictype/property-titlecase: New file.
53711         * modules/unictype/property-soft-dotted: New file.
53712         * modules/unictype/property-id-start: New file.
53713         * modules/unictype/property-other-id-start: New file.
53714         * modules/unictype/property-id-continue: New file.
53715         * modules/unictype/property-other-id-continue: New file.
53716         * modules/unictype/property-xid-start: New file.
53717         * modules/unictype/property-xid-continue: New file.
53718         * modules/unictype/property-pattern-white-space: New file.
53719         * modules/unictype/property-pattern-syntax: New file.
53720         * modules/unictype/property-join-control: New file.
53721         * modules/unictype/property-grapheme-base: New file.
53722         * modules/unictype/property-grapheme-extend: New file.
53723         * modules/unictype/property-other-grapheme-extend: New file.
53724         * modules/unictype/property-grapheme-link: New file.
53725         * modules/unictype/property-bidi-control: New file.
53726         * modules/unictype/property-bidi-left-to-right: New file.
53727         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53728         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53729         * modules/unictype/property-bidi-european-digit: New file.
53730         * modules/unictype/property-bidi-eur-num-separator: New file.
53731         * modules/unictype/property-bidi-eur-num-terminator: New file.
53732         * modules/unictype/property-bidi-arabic-digit: New file.
53733         * modules/unictype/property-bidi-common-separator: New file.
53734         * modules/unictype/property-bidi-block-separator: New file.
53735         * modules/unictype/property-bidi-segment-separator: New file.
53736         * modules/unictype/property-bidi-whitespace: New file.
53737         * modules/unictype/property-bidi-non-spacing-mark: New file.
53738         * modules/unictype/property-bidi-boundary-neutral: New file.
53739         * modules/unictype/property-bidi-pdf: New file.
53740         * modules/unictype/property-bidi-embedding-or-override: New file.
53741         * modules/unictype/property-bidi-other-neutral: New file.
53742         * modules/unictype/property-hex-digit: New file.
53743         * modules/unictype/property-ascii-hex-digit: New file.
53744         * modules/unictype/property-ideographic: New file.
53745         * modules/unictype/property-unified-ideograph: New file.
53746         * modules/unictype/property-radical: New file.
53747         * modules/unictype/property-ids-binary-operator: New file.
53748         * modules/unictype/property-ids-trinary-operator: New file.
53749         * modules/unictype/property-zero-width: New file.
53750         * modules/unictype/property-space: New file.
53751         * modules/unictype/property-non-break: New file.
53752         * modules/unictype/property-iso-control: New file.
53753         * modules/unictype/property-format-control: New file.
53754         * modules/unictype/property-dash: New file.
53755         * modules/unictype/property-hyphen: New file.
53756         * modules/unictype/property-punctuation: New file.
53757         * modules/unictype/property-line-separator: New file.
53758         * modules/unictype/property-paragraph-separator: New file.
53759         * modules/unictype/property-quotation-mark: New file.
53760         * modules/unictype/property-sentence-terminal: New file.
53761         * modules/unictype/property-terminal-punctuation: New file.
53762         * modules/unictype/property-currency-symbol: New file.
53763         * modules/unictype/property-math: New file.
53764         * modules/unictype/property-other-math: New file.
53765         * modules/unictype/property-paired-punctuation: New file.
53766         * modules/unictype/property-left-of-pair: New file.
53767         * modules/unictype/property-combining: New file.
53768         * modules/unictype/property-composite: New file.
53769         * modules/unictype/property-decimal-digit: New file.
53770         * modules/unictype/property-numeric: New file.
53771         * modules/unictype/property-diacritic: New file.
53772         * modules/unictype/property-extender: New file.
53773         * modules/unictype/property-ignorable-control: New file.
53774         * modules/unictype/property-test: New file.
53775         * modules/unictype/property-byname: New file.
53776         * modules/unictype/property-all: New file.
53777         * modules/unictype/scripts: New file.
53778         * modules/unictype/scripts-all: New file.
53779         * modules/unictype/block-of: New file.
53780         * modules/unictype/block-test: New file.
53781         * modules/unictype/block-list: New file.
53782         * modules/unictype/block-all: New file.
53783         * modules/unictype/syntax-c-whitespace: New file.
53784         * modules/unictype/syntax-java-whitespace: New file.
53785         * modules/unictype/syntax-c-ident: New file.
53786         * modules/unictype/syntax-java-ident: New file.
53787         * modules/unictype/ctype-alnum: New file.
53788         * modules/unictype/ctype-alpha: New file.
53789         * modules/unictype/ctype-cntrl: New file.
53790         * modules/unictype/ctype-digit: New file.
53791         * modules/unictype/ctype-graph: New file.
53792         * modules/unictype/ctype-lower: New file.
53793         * modules/unictype/ctype-print: New file.
53794         * modules/unictype/ctype-punct: New file.
53795         * modules/unictype/ctype-space: New file.
53796         * modules/unictype/ctype-upper: New file.
53797         * modules/unictype/ctype-xdigit: New file.
53798         * modules/unictype/ctype-blank: New file.
53799         * lib/unictype/bidi_byname.c: New file.
53800         * lib/unictype/bidi_name.c: New file.
53801         * lib/unictype/bidi_of.c: New file.
53802         * lib/unictype/bidi_test.c: New file.
53803         * lib/unictype/bitmap.h: New file.
53804         * lib/unictype/block_test.c: New file.
53805         * lib/unictype/blocks.c: New file.
53806         * lib/unictype/categ_C.c: New file.
53807         * lib/unictype/categ_Cc.c: New file.
53808         * lib/unictype/categ_Cf.c: New file.
53809         * lib/unictype/categ_Cn.c: New file.
53810         * lib/unictype/categ_Co.c: New file.
53811         * lib/unictype/categ_Cs.c: New file.
53812         * lib/unictype/categ_L.c: New file.
53813         * lib/unictype/categ_Ll.c: New file.
53814         * lib/unictype/categ_Lm.c: New file.
53815         * lib/unictype/categ_Lo.c: New file.
53816         * lib/unictype/categ_Lt.c: New file.
53817         * lib/unictype/categ_Lu.c: New file.
53818         * lib/unictype/categ_M.c: New file.
53819         * lib/unictype/categ_Mc.c: New file.
53820         * lib/unictype/categ_Me.c: New file.
53821         * lib/unictype/categ_Mn.c: New file.
53822         * lib/unictype/categ_N.c: New file.
53823         * lib/unictype/categ_Nd.c: New file.
53824         * lib/unictype/categ_Nl.c: New file.
53825         * lib/unictype/categ_No.c: New file.
53826         * lib/unictype/categ_P.c: New file.
53827         * lib/unictype/categ_Pc.c: New file.
53828         * lib/unictype/categ_Pd.c: New file.
53829         * lib/unictype/categ_Pe.c: New file.
53830         * lib/unictype/categ_Pf.c: New file.
53831         * lib/unictype/categ_Pi.c: New file.
53832         * lib/unictype/categ_Po.c: New file.
53833         * lib/unictype/categ_Ps.c: New file.
53834         * lib/unictype/categ_S.c: New file.
53835         * lib/unictype/categ_Sc.c: New file.
53836         * lib/unictype/categ_Sk.c: New file.
53837         * lib/unictype/categ_Sm.c: New file.
53838         * lib/unictype/categ_So.c: New file.
53839         * lib/unictype/categ_Z.c: New file.
53840         * lib/unictype/categ_Zl.c: New file.
53841         * lib/unictype/categ_Zp.c: New file.
53842         * lib/unictype/categ_Zs.c: New file.
53843         * lib/unictype/categ_and.c: New file.
53844         * lib/unictype/categ_and_not.c: New file.
53845         * lib/unictype/categ_byname.c: New file.
53846         * lib/unictype/categ_name.c: New file.
53847         * lib/unictype/categ_none.c: New file.
53848         * lib/unictype/categ_of.c: New file.
53849         * lib/unictype/categ_or.c: New file.
53850         * lib/unictype/categ_test.c: New file.
53851         * lib/unictype/combining.c: New file.
53852         * lib/unictype/ctype_alnum.c: New file.
53853         * lib/unictype/ctype_alpha.c: New file.
53854         * lib/unictype/ctype_blank.c: New file.
53855         * lib/unictype/ctype_cntrl.c: New file.
53856         * lib/unictype/ctype_digit.c: New file.
53857         * lib/unictype/ctype_graph.c: New file.
53858         * lib/unictype/ctype_lower.c: New file.
53859         * lib/unictype/ctype_print.c: New file.
53860         * lib/unictype/ctype_punct.c: New file.
53861         * lib/unictype/ctype_space.c: New file.
53862         * lib/unictype/ctype_upper.c: New file.
53863         * lib/unictype/ctype_xdigit.c: New file.
53864         * lib/unictype/decdigit.c: New file.
53865         * lib/unictype/digit.c: New file.
53866         * lib/unictype/identsyntaxmap.h: New file.
53867         * lib/unictype/mirror.c: New file.
53868         * lib/unictype/numeric.c: New file.
53869         * lib/unictype/pr_alphabetic.c: New file.
53870         * lib/unictype/pr_ascii_hex_digit.c: New file.
53871         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53872         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53873         * lib/unictype/pr_bidi_block_separator.c: New file.
53874         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53875         * lib/unictype/pr_bidi_common_separator.c: New file.
53876         * lib/unictype/pr_bidi_control.c: New file.
53877         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53878         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53879         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53880         * lib/unictype/pr_bidi_european_digit.c: New file.
53881         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53882         * lib/unictype/pr_bidi_left_to_right.c: New file.
53883         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53884         * lib/unictype/pr_bidi_other_neutral.c: New file.
53885         * lib/unictype/pr_bidi_pdf.c: New file.
53886         * lib/unictype/pr_bidi_segment_separator.c: New file.
53887         * lib/unictype/pr_bidi_whitespace.c: New file.
53888         * lib/unictype/pr_byname.c: New file.
53889         * lib/unictype/pr_byname.gperf: New file.
53890         * lib/unictype/pr_combining.c: New file.
53891         * lib/unictype/pr_composite.c: New file.
53892         * lib/unictype/pr_currency_symbol.c: New file.
53893         * lib/unictype/pr_dash.c: New file.
53894         * lib/unictype/pr_decimal_digit.c: New file.
53895         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53896         * lib/unictype/pr_deprecated.c: New file.
53897         * lib/unictype/pr_diacritic.c: New file.
53898         * lib/unictype/pr_extender.c: New file.
53899         * lib/unictype/pr_format_control.c: New file.
53900         * lib/unictype/pr_grapheme_base.c: New file.
53901         * lib/unictype/pr_grapheme_extend.c: New file.
53902         * lib/unictype/pr_grapheme_link.c: New file.
53903         * lib/unictype/pr_hex_digit.c: New file.
53904         * lib/unictype/pr_hyphen.c: New file.
53905         * lib/unictype/pr_id_continue.c: New file.
53906         * lib/unictype/pr_id_start.c: New file.
53907         * lib/unictype/pr_ideographic.c: New file.
53908         * lib/unictype/pr_ids_binary_operator.c: New file.
53909         * lib/unictype/pr_ids_trinary_operator.c: New file.
53910         * lib/unictype/pr_ignorable_control.c: New file.
53911         * lib/unictype/pr_iso_control.c: New file.
53912         * lib/unictype/pr_join_control.c: New file.
53913         * lib/unictype/pr_left_of_pair.c: New file.
53914         * lib/unictype/pr_line_separator.c: New file.
53915         * lib/unictype/pr_logical_order_exception.c: New file.
53916         * lib/unictype/pr_lowercase.c: New file.
53917         * lib/unictype/pr_math.c: New file.
53918         * lib/unictype/pr_non_break.c: New file.
53919         * lib/unictype/pr_not_a_character.c: New file.
53920         * lib/unictype/pr_numeric.c: New file.
53921         * lib/unictype/pr_other_alphabetic.c: New file.
53922         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53923         * lib/unictype/pr_other_grapheme_extend.c: New file.
53924         * lib/unictype/pr_other_id_continue.c: New file.
53925         * lib/unictype/pr_other_id_start.c: New file.
53926         * lib/unictype/pr_other_lowercase.c: New file.
53927         * lib/unictype/pr_other_math.c: New file.
53928         * lib/unictype/pr_other_uppercase.c: New file.
53929         * lib/unictype/pr_paired_punctuation.c: New file.
53930         * lib/unictype/pr_paragraph_separator.c: New file.
53931         * lib/unictype/pr_pattern_syntax.c: New file.
53932         * lib/unictype/pr_pattern_white_space.c: New file.
53933         * lib/unictype/pr_private_use.c: New file.
53934         * lib/unictype/pr_punctuation.c: New file.
53935         * lib/unictype/pr_quotation_mark.c: New file.
53936         * lib/unictype/pr_radical.c: New file.
53937         * lib/unictype/pr_sentence_terminal.c: New file.
53938         * lib/unictype/pr_soft_dotted.c: New file.
53939         * lib/unictype/pr_space.c: New file.
53940         * lib/unictype/pr_terminal_punctuation.c: New file.
53941         * lib/unictype/pr_test.c: New file.
53942         * lib/unictype/pr_titlecase.c: New file.
53943         * lib/unictype/pr_unassigned_code_value.c: New file.
53944         * lib/unictype/pr_unified_ideograph.c: New file.
53945         * lib/unictype/pr_uppercase.c: New file.
53946         * lib/unictype/pr_variation_selector.c: New file.
53947         * lib/unictype/pr_white_space.c: New file.
53948         * lib/unictype/pr_xid_continue.c: New file.
53949         * lib/unictype/pr_xid_start.c: New file.
53950         * lib/unictype/pr_zero_width.c: New file.
53951         * lib/unictype/scripts.c: New file.
53952         * lib/unictype/sy_c_ident.c: New file.
53953         * lib/unictype/sy_c_whitespace.c: New file.
53954         * lib/unictype/sy_java_ident.c: New file.
53955         * lib/unictype/sy_java_whitespace.c: New file.
53956
53957         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53958         Unicode 5.0.0.
53959         * lib/unictype/blocks.h: Likewise.
53960         * lib/unictype/categ_C.h: Likewise.
53961         * lib/unictype/categ_Cc.h: Likewise.
53962         * lib/unictype/categ_Cf.h: Likewise.
53963         * lib/unictype/categ_Cn.h: Likewise.
53964         * lib/unictype/categ_Co.h: Likewise.
53965         * lib/unictype/categ_Cs.h: Likewise.
53966         * lib/unictype/categ_L.h: Likewise.
53967         * lib/unictype/categ_Ll.h: Likewise.
53968         * lib/unictype/categ_Lm.h: Likewise.
53969         * lib/unictype/categ_Lo.h: Likewise.
53970         * lib/unictype/categ_Lt.h: Likewise.
53971         * lib/unictype/categ_Lu.h: Likewise.
53972         * lib/unictype/categ_M.h: Likewise.
53973         * lib/unictype/categ_Mc.h: Likewise.
53974         * lib/unictype/categ_Me.h: Likewise.
53975         * lib/unictype/categ_Mn.h: Likewise.
53976         * lib/unictype/categ_N.h: Likewise.
53977         * lib/unictype/categ_Nd.h: Likewise.
53978         * lib/unictype/categ_Nl.h: Likewise.
53979         * lib/unictype/categ_No.h: Likewise.
53980         * lib/unictype/categ_P.h: Likewise.
53981         * lib/unictype/categ_Pc.h: Likewise.
53982         * lib/unictype/categ_Pd.h: Likewise.
53983         * lib/unictype/categ_Pe.h: Likewise.
53984         * lib/unictype/categ_Pf.h: Likewise.
53985         * lib/unictype/categ_Pi.h: Likewise.
53986         * lib/unictype/categ_Po.h: Likewise.
53987         * lib/unictype/categ_Ps.h: Likewise.
53988         * lib/unictype/categ_S.h: Likewise.
53989         * lib/unictype/categ_Sc.h: Likewise.
53990         * lib/unictype/categ_Sk.h: Likewise.
53991         * lib/unictype/categ_Sm.h: Likewise.
53992         * lib/unictype/categ_So.h: Likewise.
53993         * lib/unictype/categ_Z.h: Likewise.
53994         * lib/unictype/categ_Zl.h: Likewise.
53995         * lib/unictype/categ_Zp.h: Likewise.
53996         * lib/unictype/categ_Zs.h: Likewise.
53997         * lib/unictype/categ_of.h: Likewise.
53998         * lib/unictype/combining.h: Likewise.
53999         * lib/unictype/ctype_alnum.h: Likewise.
54000         * lib/unictype/ctype_alpha.h: Likewise.
54001         * lib/unictype/ctype_blank.h: Likewise.
54002         * lib/unictype/ctype_cntrl.h: Likewise.
54003         * lib/unictype/ctype_digit.h: Likewise.
54004         * lib/unictype/ctype_graph.h: Likewise.
54005         * lib/unictype/ctype_lower.h: Likewise.
54006         * lib/unictype/ctype_print.h: Likewise.
54007         * lib/unictype/ctype_punct.h: Likewise.
54008         * lib/unictype/ctype_space.h: Likewise.
54009         * lib/unictype/ctype_upper.h: Likewise.
54010         * lib/unictype/ctype_xdigit.h: Likewise.
54011         * lib/unictype/decdigit.h: Likewise.
54012         * lib/unictype/digit.h: Likewise.
54013         * lib/unictype/mirror.h: Likewise.
54014         * lib/unictype/numeric.h: Likewise.
54015         * lib/unictype/pr_alphabetic.h: Likewise.
54016         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54017         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54018         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54019         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54020         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54021         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54022         * lib/unictype/pr_bidi_control.h: Likewise.
54023         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54024         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54025         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54026         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54027         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54028         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54029         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54030         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54031         * lib/unictype/pr_bidi_pdf.h: Likewise.
54032         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54033         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54034         * lib/unictype/pr_combining.h: Likewise.
54035         * lib/unictype/pr_composite.h: Likewise.
54036         * lib/unictype/pr_currency_symbol.h: Likewise.
54037         * lib/unictype/pr_dash.h: Likewise.
54038         * lib/unictype/pr_decimal_digit.h: Likewise.
54039         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54040         * lib/unictype/pr_deprecated.h: Likewise.
54041         * lib/unictype/pr_diacritic.h: Likewise.
54042         * lib/unictype/pr_extender.h: Likewise.
54043         * lib/unictype/pr_format_control.h: Likewise.
54044         * lib/unictype/pr_grapheme_base.h: Likewise.
54045         * lib/unictype/pr_grapheme_extend.h: Likewise.
54046         * lib/unictype/pr_grapheme_link.h: Likewise.
54047         * lib/unictype/pr_hex_digit.h: Likewise.
54048         * lib/unictype/pr_hyphen.h: Likewise.
54049         * lib/unictype/pr_id_continue.h: Likewise.
54050         * lib/unictype/pr_id_start.h: Likewise.
54051         * lib/unictype/pr_ideographic.h: Likewise.
54052         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54053         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54054         * lib/unictype/pr_ignorable_control.h: Likewise.
54055         * lib/unictype/pr_iso_control.h: Likewise.
54056         * lib/unictype/pr_join_control.h: Likewise.
54057         * lib/unictype/pr_left_of_pair.h: Likewise.
54058         * lib/unictype/pr_line_separator.h: Likewise.
54059         * lib/unictype/pr_logical_order_exception.h: Likewise.
54060         * lib/unictype/pr_lowercase.h: Likewise.
54061         * lib/unictype/pr_math.h: Likewise.
54062         * lib/unictype/pr_non_break.h: Likewise.
54063         * lib/unictype/pr_not_a_character.h: Likewise.
54064         * lib/unictype/pr_numeric.h: Likewise.
54065         * lib/unictype/pr_other_alphabetic.h: Likewise.
54066         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54067         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54068         * lib/unictype/pr_other_id_continue.h: Likewise.
54069         * lib/unictype/pr_other_id_start.h: Likewise.
54070         * lib/unictype/pr_other_lowercase.h: Likewise.
54071         * lib/unictype/pr_other_math.h: Likewise.
54072         * lib/unictype/pr_other_uppercase.h: Likewise.
54073         * lib/unictype/pr_paired_punctuation.h: Likewise.
54074         * lib/unictype/pr_paragraph_separator.h: Likewise.
54075         * lib/unictype/pr_pattern_syntax.h: Likewise.
54076         * lib/unictype/pr_pattern_white_space.h: Likewise.
54077         * lib/unictype/pr_private_use.h: Likewise.
54078         * lib/unictype/pr_punctuation.h: Likewise.
54079         * lib/unictype/pr_quotation_mark.h: Likewise.
54080         * lib/unictype/pr_radical.h: Likewise.
54081         * lib/unictype/pr_sentence_terminal.h: Likewise.
54082         * lib/unictype/pr_soft_dotted.h: Likewise.
54083         * lib/unictype/pr_space.h: Likewise.
54084         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54085         * lib/unictype/pr_titlecase.h: Likewise.
54086         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54087         * lib/unictype/pr_unified_ideograph.h: Likewise.
54088         * lib/unictype/pr_uppercase.h: Likewise.
54089         * lib/unictype/pr_variation_selector.h: Likewise.
54090         * lib/unictype/pr_white_space.h: Likewise.
54091         * lib/unictype/pr_xid_continue.h: Likewise.
54092         * lib/unictype/pr_xid_start.h: Likewise.
54093         * lib/unictype/pr_zero_width.h: Likewise.
54094         * lib/unictype/scripts.h: Likewise.
54095         * lib/unictype/scripts_byname.gperf: Likewise.
54096         * lib/unictype/sy_c_ident.h: Likewise.
54097         * lib/unictype/sy_c_whitespace.h: Likewise.
54098         * lib/unictype/sy_java_ident.h: Likewise.
54099         * lib/unictype/sy_java_whitespace.h: Likewise.
54100
54101         * lib/unictype/Makefile: New file.
54102         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54103         glibc.
54104         * lib/unictype/3level.h: New file, copied from glibc.
54105         * lib/unictype/3levelbit.h: New file.
54106
54107 2007-11-11  Bruno Haible  <bruno@clisp.org>
54108
54109         * modules/gperf: New file.
54110         * modules/iconv_open (Depends-on): Add it.
54111         (Makefile.am): Remove the GPERF definition.
54112
54113 2007-11-11  Bruno Haible  <bruno@clisp.org>
54114
54115         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54116         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54117
54118 2007-11-11  Bruno Haible  <bruno@clisp.org>
54119
54120         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54121         (usage): Remove function.
54122
54123 2007-11-11  Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54126         gl_FUNC_CEILF_LIBS.
54127         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54128         gl_FUNC_CEIL_LIBS.
54129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54130         gl_FUNC_CEILL_LIBS.
54131         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54132         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54133         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54134
54135 2007-11-11  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54138         roundf were declared but do not exist on functions.
54139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54140         roundl were declared but do not exist on functions.
54141         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54142         HAVE_FLOORL_AND_CEILL, respectively.
54143         Needed for Sun C on Solaris 10.
54144
54145 2007-11-11  Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54148         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54149         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54150         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54152         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54153         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54154         HAVE_DECL_ROUNDF.
54155         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54156         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54158         of HAVE_DECL_ROUND*.
54159         * modules/math (Makefile.am): Update.
54160
54161 2007-11-10  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54164         ptrdiff_t as m4/intl.m4.
54165
54166 2007-11-10  Jim Meyering  <meyering@redhat.com>
54167
54168         Avoid link failure for the argmatch test.
54169         * tests/test-argmatch.c (usage): Define function to avoid a link
54170         failure: argmatch_die requires a usage function.
54171
54172 2007-11-09  Bruno Haible  <bruno@clisp.org>
54173
54174         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54175         * doc/functions/vsnprintf.texi: Likewise.
54176         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54177         with a size argument < 2.
54178
54179 2007-11-09  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54182         buffer. Fixes an inefficiency introduced on 2007-11-03.
54183
54184 2007-11-09  Bruno Haible  <bruno@clisp.org>
54185
54186         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54187         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54188
54189 2007-11-08  Jim Meyering  <meyering@redhat.com>
54190
54191         Change cache variable name prefix "jm_" to "gl_" everywhere.
54192         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54193         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54194         * m4/uptime.m4: s/gl_/jm_/
54195
54196 2007-11-07  Bruno Haible  <bruno@clisp.org>
54197
54198         Update to GNU gettext 0.17.
54199         * m4/intl.m4: Update to GNU gettext 0.17.
54200         * m4/po.m4: Likewise.
54201         * modules/gettext (Files): Remove m4/ulonglong.m4.
54202         (configure.ac): Require gettext infrastructure from version 0.17.
54203
54204 2007-11-06  Bruno Haible  <bruno@clisp.org>
54205
54206         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54207         symbolic values are not defined in a public header.
54208         * lib/freadable.c (freadable) [QNX]: Likewise.
54209         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54210         * lib/freading.c (freading) [QNX]: Likewise.
54211         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54212         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54213         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54214         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54215         Reported by Alain Magloire.
54216
54217         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54218
54219 2007-11-05  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54222         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54223         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54224         Reported by Eric Blake.
54225
54226 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54227             Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54230         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54231         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54232         (malloc): Undefine also before including <stdlib.h>.
54233         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54234         Needed on OSF/1 4.0.
54235
54236 2007-11-05  Jim Meyering  <meyering@redhat.com>
54237
54238         git-version-gen: sync from coreutils.
54239         * build-aux/git-version-gen: Add comments.
54240         Change the first '-' to '.' in the snapshot version string,
54241         e.g., 6.9-377-08144 -> 6.9.377-08144
54242         Remove first parameter.
54243         Don't declare a version "-dirty" merely because a time
54244         stamp has changed.
54245
54246 2007-11-04  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/lock.h: Protect all macro definitions containing an 'if'
54249         statement through a "do { ... } while (0)".
54250         * lib/tls.h: Likewise.
54251
54252 2007-11-04  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54255
54256 2007-11-04  Bruno Haible  <bruno@clisp.org>
54257
54258         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54259         * modules/fprintf-posix (Depends-on): Add nocrash.
54260         * modules/snprintf-posix (Depends-on): Likewise.
54261         * modules/sprintf-posix (Depends-on): Likewise.
54262         * modules/vasnprintf-posix (Depends-on): Likewise.
54263         * modules/vasprintf-posix (Depends-on): Likewise.
54264         * modules/vfprintf-posix (Depends-on): Likewise.
54265         * modules/vsnprintf-posix (Depends-on): Likewise.
54266         * modules/vsprintf-posix (Depends-on): Likewise.
54267         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54268         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54269         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54270         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54271         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54272         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54273         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54274
54275 2007-11-04  Bruno Haible  <bruno@clisp.org>
54276
54277         * modules/nocrash: New file.
54278         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54279         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54280
54281 2007-11-04  Bruno Haible  <bruno@clisp.org>
54282
54283         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54284         precision handling.
54285         * tests/test-vasprintf-posix.c (test_function): Likewise.
54286         * tests/test-snprintf-posix.h (test_function): Likewise.
54287         * tests/test-sprintf-posix.h (test_function): Likewise.
54288
54289         Fix *printf behaviour for large precisions on mingw and BeOS.
54290         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54291         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54293         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54295         gl_PRINTF_PRECISION and test its result. Invoke
54296         gl_PREREQ_VASNPRINTF_PRECISION.
54297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54304         * doc/functions/fprintf.texi: Update.
54305         * doc/functions/printf.texi: Update.
54306         * doc/functions/snprintf.texi: Update.
54307         * doc/functions/sprintf.texi: Update.
54308         * doc/functions/vfprintf.texi: Update.
54309         * doc/functions/vprintf.texi: Update.
54310         * doc/functions/vsnprintf.texi: Update.
54311         * doc/functions/vsprintf.texi: Update.
54312
54313 2007-11-04  Bruno Haible  <bruno@clisp.org>
54314
54315         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54316
54317 2007-11-04  Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54320         Reported by Sylvain Beucler <beuc@gnu.org>.
54321
54322 2007-11-03  Bruno Haible  <bruno@clisp.org>
54323
54324         * tests/test-fprintf-posix2.sh: New file.
54325         * tests/test-fprintf-posix2.c: New file.
54326         * modules/fprintf-posix-tests (Files): Add them.
54327         (TESTS): Add test-fprintf-posix2.sh.
54328         (configure.ac): Check for getrlimit and setrlimit.
54329         (check_PROGRAMS): Add test-fprintf-posix2.
54330
54331         * tests/test-printf-posix2.sh: New file.
54332         * tests/test-printf-posix2.c: New file.
54333         * modules/printf-posix-tests (Files): Add them.
54334         (TESTS): Add test-printf-posix2.sh.
54335         (configure.ac): Check for getrlimit and setrlimit.
54336         (check_PROGRAMS): Add test-printf-posix2.
54337
54338         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54339         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54340         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54341         (decode_double): New function, copied from decode_long_double.
54342         (scale10_round_decimal_decoded): New function, extracted from
54343         scale10_round_decimal_long_double.
54344         (scale10_round_decimal_long_double): Use it.
54345         (scale10_round_decimal_double): New function.
54346         (floorlog10): New function.
54347         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54349         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54351         gl_PRINTF_ENOMEM and test its result. Invoke
54352         gl_PREREQ_VASNPRINTF_ENOMEM.
54353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54357         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54359         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54360         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54361         * modules/snprintf-posix (Depends-on): Likewise.
54362         * modules/sprintf-posix (Depends-on): Likewise.
54363         * modules/vasnprintf-posix (Depends-on): Likewise.
54364         * modules/vasprintf-posix (Depends-on): Likewise.
54365         * modules/vfprintf-posix (Depends-on): Likewise.
54366         * modules/vsnprintf-posix (Depends-on): Likewise.
54367         * modules/vsprintf-posix (Depends-on): Likewise.
54368         * doc/functions/fprintf.texi: Update.
54369         * doc/functions/printf.texi: Update.
54370         * doc/functions/snprintf.texi: Update.
54371         * doc/functions/sprintf.texi: Update.
54372         * doc/functions/vfprintf.texi: Update.
54373         * doc/functions/vprintf.texi: Update.
54374         * doc/functions/vsnprintf.texi: Update.
54375         * doc/functions/vsprintf.texi: Update.
54376
54377 2007-11-03  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/frexp-nolibm-tests: New file.
54380
54381         * modules/frexp-nolibm: New file.
54382         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54383
54384 2007-11-03  Bruno Haible  <bruno@clisp.org>
54385
54386         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54387         value is C99 compliant.
54388         Needed for OSF/1 5.1.
54389
54390 2007-11-03  Bruno Haible  <bruno@clisp.org>
54391
54392         Fix out-of-memory handling of vasnprintf.
54393         * lib/printf-parse.c: Include <errno.h>.
54394         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54395         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54396         is already set.
54397
54398 2007-11-02  Eric Blake  <ebb9@byu.net>
54399
54400         Fix tests on cygwin.
54401         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54402
54403 2007-11-01  Bruno Haible  <bruno@clisp.org>
54404
54405         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54406         warning.
54407         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54408         needed for POSIX compatibility.
54409
54410 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54413         for compatibility with GNU.
54414
54415 2007-11-01  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54418         (putenv): Renamed from rpl_putenv. Change argument type from
54419         'const char *' to 'char *'.
54420         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54421         of defining putenv in config.h, just set REPLACE_PUTENV.
54422         * modules/putenv (Depends-on): Add stdlib.
54423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54424         (Include): Use <stdlib.h>.
54425         * lib/stdlib.in.h (putenv): New declaration.
54426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54427         REPLACE_PUTENV.
54428         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54429         REPLACE_PUTENV.
54430         Needed for MacOS X 10.5.0.
54431         Reported by Peter O'Gorman <peter@pogma.com>.
54432
54433 2007-11-01  Jim Meyering  <meyering@redhat.com>
54434
54435         Treat an empty date string exactly like "0".
54436         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54437         if the remaining date string (to be parsed) is empty, use "0".
54438         Reported by Mischa Molhoek and discussed in this thread:
54439         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54440
54441 2007-10-31  Bruno Haible  <bruno@clisp.org>
54442
54443         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54444         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54445         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54446         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54447         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54448         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54449
54450 2007-10-31  Bruno Haible  <bruno@clisp.org>
54451
54452         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54453         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54454         (AC_TYPE_LONG_LONG_INT): Use it.
54455         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54456         it as well.
54457         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54458         to m4/longlong.m4.
54459         * modules/stdint (Files): Remove m4/ulonglong.m4.
54460         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54461         m4/ulonglong.m4.
54462         * modules/strtoumax (Files): Likewise.
54463
54464 2007-10-30  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/xvasprintf-posix: New file.
54467         Suggested by Eric Blake.
54468
54469 2007-10-30  Bruno Haible  <bruno@clisp.org>
54470
54471         * modules/xprintf-posix-tests: New file.
54472         * tests/test-xprintf-posix.sh: New file.
54473         * tests/test-xprintf-posix.c: New file.
54474         * tests/test-xfprintf-posix.c: New file.
54475
54476         * modules/xprintf-posix: New file.
54477
54478 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54479
54480         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54481         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54482         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54483
54484 2007-10-29  Bruno Haible  <bruno@clisp.org>
54485
54486         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54487         contain the special marker '_cv_'.
54488         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54489         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54490         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54491         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54492         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54493         Reported by Ralf Wildenhues.
54494
54495 2007-10-29  Bruno Haible  <bruno@clisp.org>
54496
54497         * gnulib-tool (func_import): When --lgpl is not specified, set
54498         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54499         GPLv3.
54500         Reported by Simon Josefsson.
54501
54502 2007-10-28  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54505         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54506         HAVE_DECL_ISFINITE.
54507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54508         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54509         HAVE_DECL_ISFINITE.
54510
54511 2007-10-28  Bruno Haible  <bruno@clisp.org>
54512
54513         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54514         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54515
54516 2007-10-28  Bruno Haible  <bruno@clisp.org>
54517
54518         Fix link errors with Sun C 5.0 on Solaris 10.
54519         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54520         function is declared but not present in the compiler's libm.
54521         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54522         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54523         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54524         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54525         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54526         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54527         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54529         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54530         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54531         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54532         HAVE_DECL_FLOORL.
54533
54534 2007-10-28  Bruno Haible  <bruno@clisp.org>
54535
54536         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54537         gl_FUNC_FLOORL. Cache the result.
54538         (gl_FUNC_FLOORL): Use it.
54539         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54540         gl_FUNC_CEILL. Cache the result.
54541         (gl_FUNC_CEILL): Use it.
54542
54543         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54544         gl_FUNC_FLOOR. Cache the result.
54545         (gl_FUNC_FLOOR): Use it.
54546         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54547         gl_FUNC_CEIL. Cache the result.
54548         (gl_FUNC_CEIL): Use it.
54549
54550         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54551         gl_FUNC_FLOORF. Cache the result.
54552         (gl_FUNC_FLOORF): Use it.
54553         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54554         gl_FUNC_CEILF. Cache the result.
54555         (gl_FUNC_CEILF): Use it.
54556
54557 2007-10-28  Bruno Haible  <bruno@clisp.org>
54558
54559         * gnulib-tool: Allow specifying the LGPL version number through
54560         --lgpl=2 or --lgpl=3.
54561         (func_usage): Document --lgpl with argument.
54562         Handle --lgpl=... arguments.
54563         (func_import): Recognize also gl_LGPL calls with an argument. When
54564         --lgpl=2 is used and the module's license is just LGPL, report an
54565         error. Set sed_transform_lib_file according to the lgpl variable. In
54566         the generated files, use --lgpl or gl_LGPL invocations with argument,
54567         if necessary.
54568         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54569         an LGPv2+ license.
54570         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54571         gl_LGPL macro.
54572
54573 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54574             Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54577         (u16_uctomb_aux): Likewise.
54578         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54579         !HAVE_INLINE.
54580         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54581
54582 2007-10-28  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54585         Invoke AM_GETTEXT_OPTION if it exists.
54586         * modules/vasprintf: Likewise.
54587         * modules/verror: Likewise.
54588         * modules/xprintf: Likewise.
54589         * modules/xvasprintf: Likewise.
54590
54591 2007-10-27  Ben Pfaff  <blp@gnu.org>
54592
54593         * lib/math.in.h: Define isfinite macro and prototypes for
54594         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54595         implementations.
54596         * m4/math_h.m4: New substitutions for isfinite module.
54597         * lib/isfinite.c: New file.
54598         * m4/isfinite.m4: New file.
54599         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54600         * modules/isfinite: New file.
54601         * modules/isfinite-tests: New file.
54602         * tests/tests-isfinite.c: New file.
54603         * doc/functions/isfinite.texi: Mention isfinite module.
54604         * MODULES.html.sh: Mention new module.
54605
54606 2007-10-27  Ben Pfaff  <blp@gnu.org>
54607
54608         Ralf Wildenhues reported that Tru64 4.0D declares the round
54609         functions but does not have definitions.
54610         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54611         cannot be found in any library, set the output variable to
54612         "missing" instead of "".
54613         * m4/round.m4: Also use our substitute if we cannot find round in
54614         any library, even if it is declared.
54615         * m4/roundf.m4: Likewise for roundf.
54616         * m4/roundl.m4: Likewise for roundl.
54617         * lib/math.in.h: Undefine roundf, round, roundl before defining
54618         their replacements, to allow for hypothetical systems where these
54619         may be defined as macros but not available in libraries.
54620
54621 2007-10-27  Bruno Haible  <bruno@clisp.org>
54622
54623         * doc/gnulib.texi: Invoke @firstparagraphindent.
54624         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54625         changes in gnulib.
54626         (Source changes): New section.
54627
54628 2007-10-26  Bruno Haible  <bruno@clisp.org>
54629
54630         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54631         borrowed from autoconf.
54632
54633 2007-10-26  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54636         strerror returned the empty string. Needed on HP-UX 11.00.
54637
54638 2007-10-24  Micah Cowan  <micah@cowan.name>
54639
54640         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54641         * build-aux/bootstrap: Remove support for now-unnecessary option,
54642         --cvs-user, and envvars CVS_USER, CVS_RSH.
54643
54644 2007-10-24  Jim Meyering  <meyering@redhat.com>
54645
54646         Avoid diagnostics from sha1sum when there is no cached checksum.
54647         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54648         if the po.s1 file hasn't been created yet.
54649
54650         * build-aux/bootstrap: Sync from coreutils:
54651         2007-10-24  Jim Meyering  <meyering@redhat.com>
54652         Get gnulib from the git repository, not from an obsolete cvs one.
54653         * build-aux/bootstrap: Suggestion from Micah Cowan.
54654         2007-10-04  Jim Meyering  <jim@meyering.net>
54655         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54656         (update_po_files): Work also when there are no .po files in po/.
54657
54658 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         * README: Append ".git" to git and cg examples.
54661         Problem reported by Benoit Sigoure.
54662
54663 2007-10-23  Micah Cowan  <micah@cowan.name>
54664
54665         * users.txt: Add wget.
54666
54667 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54668
54669         Fix linking of some unistdio tests on FreeBSD.
54670         * modules/unistdio/u16-vsnprintf-tests
54671         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54672         * modules/unistdio/u16-vsprintf-tests
54673         (test_u16_vsnprintf1_LDADD): Likewise.
54674         * modules/unistdio/u32-vsnprintf-tests
54675         (test_u32_vsnprintf1_LDADD): Likewise.
54676         * modules/unistdio/u32-vsprintf-tests
54677         (test_u32_vsprintf1_LDADD): Likewise.
54678         * modules/unistdio/u8-vsnprintf-tests
54679         (test_u8_vsnprintf1_LDADD): Likewise.
54680         * modules/unistdio/u8-vsprintf-tests
54681         (test_u8_vsprintf1_LDADD): Likewise.
54682         * modules/unistdio/ulc-vsnprintf-tests
54683         (test_ulc_vsnprintf1_LDADD): Likewise.
54684         * modules/unistdio/ulc-vsprintf-tests
54685         (test_ulc_vsprintf1_LDADD): Likewise.
54686
54687         Fix linking of some uniconv tests on FreeBSD.
54688         * modules/uniconv/u16-conv-from-enc-tests
54689         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54690         * modules/uniconv/u16-conv-to-enc-tests
54691         (test_u16_conv_to_enc_LDADD): Likewise.
54692         * modules/uniconv/u16-strconv-from-enc-tests
54693         (test_u16_strconv_from_enc_LDADD): Likewise.
54694         * modules/uniconv/u16-strconv-to-enc-tests
54695         (test_u16_strconv_to_enc_LDADD): Likewise.
54696         * modules/uniconv/u32-conv-from-enc-tests
54697         (test_u32_conv_from_enc_LDADD): Likewise.
54698         * modules/uniconv/u32-conv-to-enc-tests
54699         (test_u32_conv_to_enc_LDADD): Likewise.
54700         * modules/uniconv/u32-strconv-from-enc-tests
54701         (test_u32_strconv_from_enc_LDADD): Likewise.
54702         * modules/uniconv/u32-strconv-to-enc-tests
54703         (test_u32_strconv_to_enc_LDADD): Likewise.
54704         * modules/uniconv/u8-conv-from-enc-tests
54705         (test_u8_conv_from_enc_LDADD): Likewise.
54706         * modules/uniconv/u8-conv-to-enc-tests
54707         (test_u8_conv_to_enc_LDADD): Likewise.
54708         * modules/uniconv/u8-strconv-from-enc-tests
54709         (test_u8_strconv_from_enc_LDADD): Likewise.
54710         * modules/uniconv/u8-strconv-to-enc-tests
54711         (test_u8_strconv_to_enc_LDADD): Likewise.
54712
54713 2007-10-22  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54716         size.
54717
54718 2007-10-22  Eric Blake  <ebb9@byu.net>
54719
54720         Tweak x*printf documentation.
54721         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54722         variable name and comments.
54723         Suggested by Bruno Haible.
54724
54725 2007-10-22  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/acl.c (copy_acl): Fix file name in comment.
54728
54729 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         Fix Tru64 problem with stdbool.h.
54732         * lib/stdbool.in.h (false, true):
54733         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54734         Don't declare as an enum in this situation; it runs afoul of Tru64.
54735         Problem reported by Steven M. Schweda in
54736         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54737
54738 2007-10-22  Eric Blake  <ebb9@byu.net>
54739
54740         Also wrap vf?printf.
54741         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54742         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54743         (xvprintf, xvfprintf): New functions.
54744
54745 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54746
54747         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54748         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54749
54750         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54751         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54752
54753 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54756         by Bruno Haible.
54757
54758 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54759
54760         * lib/getloadavg.c
54761         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54762         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54763
54764         * tests/test-i-ring.c: Work for C89.
54765
54766 2007-10-22  Bruno Haible  <bruno@clisp.org>
54767
54768         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54769         -1u, in preprocessor expression, so that we don't test for the bug
54770         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54772
54773 2007-10-22  Eric Blake  <ebb9@byu.net>
54774
54775         * tests/test-yesno.sh: Silence stderr during test.
54776
54777 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54778
54779         * modules/crypto/gc-camellia: New file.
54780
54781         * m4/gc-camellia.m4: New file.
54782
54783         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54784
54785         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54786
54787 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54788
54789         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54790         --help to stdout.  Reported by sms@antinode.org (Steven
54791         M. Schweda).
54792
54793 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54794
54795         * users.txt: Fix link to libksba.
54796
54797 2007-10-21  Ben Pfaff  <blp@gnu.org>
54798
54799         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54800         round.c roundf implementation that depends on floorf and ceilf to
54801         be tested unconditionally.
54802
54803 2007-10-21  Ben Pfaff  <blp@gnu.org>
54804
54805         * m4/check-libm-func.m4: Removed.
54806         * m4/check-math-lib.m4: New file.
54807         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54808         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54809         definition and lack of AC_LIBOBJ([roundf]).
54810         * m4/roundl.m4: Ditto, and similarly for roundl.
54811         * modules/round: Reference new m4 file.
54812         * modules/roundf: Ditto.
54813         * modules/roundl: Ditto.
54814         * tests/test-round2.c (main): Use ROUND instead of round.
54815         Bug report from Bruno Haible.
54816
54817 2007-10-21  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54820         context.
54821
54822 2007-10-21  Bruno Haible  <bruno@clisp.org>
54823
54824         * tests/test-wcwidth.c (main): Allow negative result for some control
54825         characters.
54826
54827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54828         Needed on OSF/1 5.1.
54829
54830 2007-10-21  Bruno Haible  <bruno@clisp.org>
54831
54832         * tests/test-floorf1.c: Include isnanf.h.
54833         (main): Use isnanf() instead of isnan().
54834         * tests/test-ceilf1.c: Include isnanf.h.
54835         (main): Use isnanf() instead of isnan().
54836         * tests/test-truncf1.c: Include isnanf.h.
54837         (main): Use isnanf() instead of isnan().
54838         * tests/test-roundf1.c: Include isnanf.h.
54839         (main): Use isnanf() instead of isnan().
54840
54841 2007-10-21  Eric Blake  <ebb9@byu.net>
54842
54843         * users.txt: Update URL for m4.
54844
54845 2007-10-21  Bruno Haible  <bruno@clisp.org>
54846
54847         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54848
54849 2007-10-21  Bruno Haible  <bruno@clisp.org>
54850
54851         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54852         Git's management files if the CVS files are not present.
54853
54854 2007-10-20  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54857         gcc-3.4.x.
54858
54859 2007-10-20  Ben Pfaff  <blp@gnu.org>
54860
54861         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54862         implementations.
54863         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54864         * lib/round.c: New file.
54865         * lib/roundf.c: New file.
54866         * lib/roundl.c: New file.
54867         * m4/round.m4: New file.
54868         * m4/roundf.m4: New file.
54869         * m4/roundl.m4: New file.
54870         * m4/check-libm-func-m4: New file.
54871         * modules/math: Replace round, roundf, roundl related @VARS@ in
54872         math.in.h.
54873         * modules/round: New file.
54874         * modules/round-tests: New file.
54875         * modules/roundf: New file.
54876         * modules/roundf-tests: New file.
54877         * modules/roundl: New file.
54878         * modules/roundl-tests: New file.
54879         * tests/test-round1.c: New file.
54880         * tests/test-round2.c: New file.
54881         * tests/test-roundf1.c: New file.
54882         * tests/test-roundf2.c: New file.
54883         * tests/test-roundl.c: New file.
54884         * doc/functions/round.texi: Mention round module.
54885         * doc/functions/roundf.texi: Mention roundf module.
54886         * doc/functions/roundl.texi: Mention roundl module.
54887         * MODULES.html.sh: Mention new modules.
54888         Thanks to Bruno Haible for suggestions.
54889
54890 2007-10-20  Jim Meyering  <meyering@redhat.com>
54891
54892         * lib/xprintf.c: Include <config.h> unconditionally.
54893
54894         Change xprintf's license to GPL.
54895         * modules/xprintf (License): s/LGPL/GPL/, since this module
54896         depends on modules (exit and exitfail) which are GPL.
54897         Suggestion from Bruno Haible.
54898
54899         xprintf fixes.
54900         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54901         Use a clearer diagnostic.
54902         Patch from Bruno Haible.
54903
54904 2007-10-20  Bruno Haible  <bruno@clisp.org>
54905
54906         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54907         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54909
54910 2007-10-20  Bruno Haible  <bruno@clisp.org>
54911
54912         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54913         precision in the comparison result > x - 1 or similar.
54914         * tests/test-ceilf2.c (correct_result_p): Likewise.
54915         * tests/test-truncf2.c (correct_result_p): Likewise.
54916         * tests/test-trunc2.c (correct_result_p): Likewise.
54917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54918
54919 2007-10-20  Bruno Haible  <bruno@clisp.org>
54920
54921         * modules/ceil: New file.
54922         * m4/ceil.m4: New file.
54923         * doc/functions/ceil.texi: Mention the 'ceil' module.
54924
54925 2007-10-20  Bruno Haible  <bruno@clisp.org>
54926
54927         * modules/floor: New file.
54928         * m4/floor.m4: New file.
54929         * doc/functions/floor.texi: Mention the 'floor' module.
54930
54931 2007-10-20  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54934         of %a.
54935         * modules/floorf-tests (Depends-on): Likewise.
54936         * modules/truncf-tests (Depends-on): Likewise.
54937         * modules/trunc-tests (Depends-on): Likewise.
54938         Reported by Ben Pfaff.
54939
54940 2007-10-19  Jim Meyering  <meyering@redhat.com>
54941
54942         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54943         Don't bother testing specific errno values.  Just test ferror.
54944
54945         New module: xprintf
54946         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54947
54948 2007-10-19  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54951         syntax.
54952         * modules/javaexec (Makefile.am): Likewise.
54953         * modules/relocatable-prog (Makefile.am): Likewise.
54954         Suggested by Jim Meyering.
54955
54956 2007-10-18  Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54959         Reported by Jim Meyering.
54960
54961 2007-10-18  Eric Blake  <ebb9@byu.net>
54962
54963         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54964
54965 2007-10-18  Bruno Haible  <bruno@clisp.org>
54966
54967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54968         the format string into writable memory. Needed in Fortify conditions.
54969
54970 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54971             Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54974         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54975         * modules/trim (Depends-on): Add mbchar.
54976         (configure.ac): Add gl_FUNC_MBRTOWC.
54977         (Makefile.am): Augment lib_SOURCES.
54978
54979 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         Modify glob.c to use fstatat and dirfd, to simplify it.
54982         Suggested by Eric Blake.
54983         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54984         Don't include <stdbool.h>; not used.
54985         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54986         (link_exists_p): Simplify implementation, since we can now assume
54987         dirfd and fstatat.
54988         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54989
54990 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54991
54992         * gnulib-tool (func_get_dependencies): Fix sed script to
54993         match only tests.
54994
54995 2007-10-17  Bruno Haible  <bruno@clisp.org>
54996
54997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54998         allow locale names without encoding suffix.
54999         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55001
55002 2007-10-16  Bruno Haible  <bruno@clisp.org>
55003
55004         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55005         * lib/getgroups.c (getgroups): Likewise.
55006         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55007
55008 2007-10-16  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55011         * modules/malloc-posix (License): Likewise.
55012         * modules/realloc-posix (License): Likewise.
55013         * modules/calloc-posix (License): Likewise.
55014         * modules/intprops (License): Change from GPL to LGPL, with
55015         Paul Eggert's approval.
55016
55017 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         Merge glibc changes into lib/glob.c.
55020
55021         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55022         2007-10-15 04:59:03 UTC.  Here are the changes:
55023
55024         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55025
55026         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55027
55028         * lib/glob.c: Add some branch prediction throughout.
55029
55030         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55031
55032         [BZ #5103]
55033         * lib/glob.c (glob): Recognize patterns starting \/.
55034
55035         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55036
55037         [BZ #3996]
55038         * lib/glob.c (attribute_hidden): Define if not defined.
55039         (glob): Unescape dirname, filename or username when needed and not
55040         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55041         is NULL.  Handle unescaped [ in pattern without closing ].
55042         Don't pass GLOB_CHECK down to recursive glob for directories.
55043         (__glob_pattern_type): New function.
55044         (__glob_pattern_p): Implement using __glob_pattern_type.
55045         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55046         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55047         Remove unreachable code.
55048
55049         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55050
55051         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55052         explain why there are no leaks.
55053
55054         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55055
55056         [BZ #3253]
55057         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55058         time, rather allocate increasingly bigger arrays of pointers, if
55059         possible with alloca, if too large with malloc.
55060
55061 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55064         Problem reported by H.Merijn Brand in
55065         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55067         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55068
55069 2007-10-15  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55072         with explicit rpl_ prefix.
55073         * lib/fopen.c (fopen): Likewise.
55074         * lib/freopen.c (freopen): Likewise.
55075         * lib/iconv.c (iconv): Likewise.
55076         * lib/iconv_close.c (iconv_close): Likewise.
55077
55078 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55079
55080         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55081
55082 2007-10-15  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55085         <stddef.h> instead of <stdlib.h> since we only need NULL.
55086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55087
55088 2007-10-15  Bruno Haible  <bruno@clisp.org>
55089
55090         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55091         Replace paragraph talking about LIBOBJS.
55092         Reported by Colin Watson <cjwatson@debian.org>.
55093
55094 2007-10-15  Bruno Haible  <bruno@clisp.org>
55095
55096         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55097         <stdlib.h> before using NULL.
55098
55099 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55100
55101         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55102         Reported by Albert Chin <china@thewrittenword.com>.
55103
55104 2007-10-14  Bruno Haible  <bruno@clisp.org>
55105
55106         * modules/iconv_open-utf-tests: New file.
55107         * tests/test-iconv-utf.c: New file.
55108
55109         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55110         * modules/iconv_open-utf: New file.
55111         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55112         (iconv, iconv_close): New declarations.
55113         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55114         be defined.
55115         (iconv_open): Add special handling of conversion between UTF-8 and
55116         UTF-{16,32}{BE,LE}.
55117         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55118         * lib/iconv_close.c: New file.
55119         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55120         gl_FUNC_ICONV_OPEN.
55121         (gl_FUNC_ICONV_OPEN): Use it.
55122         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55123         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55124         and REPLACE_ICONV_UTF.
55125         * modules/iconv_open (Depends-on): Add c-strcase.
55126         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55127         ICONV_CONST.
55128         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55129
55130 2007-10-13  Albert Chin  <china@thewrittenword.com>
55131             Bruno Haible  <bruno@clisp.org>
55132
55133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55134         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55135
55136 2007-10-13  Bruno Haible  <bruno@clisp.org>
55137
55138         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55139         defined, use the ISO C99 inline semantics.
55140         * lib/argp.h (ARGP_EI): Likewise.
55141
55142 2007-10-13  Bruno Haible  <bruno@clisp.org>
55143
55144         Handle 'inline' change in gcc 4.3.0.
55145         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55146         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55147         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55148         argp_fmtstream_point): Disable 'extern' declaration if the function
55149         definition is going to be provided inline.
55150         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55151         semantics, not the ISO C99 inline semantics.
55152         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55153         'extern' declaration if the function definition is going to be provided
55154         inline.
55155         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55156         the GNU C inline semantics, not the ISO C99 inline semantics. With
55157         GCC 4.2, avoid a warning.
55158
55159 2007-10-13  Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/freading.h (freading): Enable the use of __freading for
55162         glibc >= 2.7.
55163         * lib/freading.c (freading): Likewise.
55164
55165 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55166
55167         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55168         "warning: C99 inline functions are not supported; using GNU89".
55169
55170 2007-10-12  Bruno Haible  <bruno@clisp.org>
55171
55172         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55173         of 2.
55174         * tests/test-ceilf2.c: New file.
55175         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55176
55177         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55178         * modules/ceilf-tests: Update.
55179
55180 2007-10-12  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55183         of 2.
55184         * tests/test-floorf2.c: New file.
55185         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55186
55187         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55188         * modules/floorf-tests: Update.
55189
55190 2007-10-12  Bruno Haible  <bruno@clisp.org>
55191
55192         * tests/test-trunc2.c: New file.
55193         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55194
55195         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55196         * modules/trunc-tests: Update.
55197
55198 2007-10-12  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55201         of 2.
55202         * tests/test-truncf2.c: New file.
55203         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55204
55205         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55206         * modules/truncf-tests: Update.
55207
55208 2007-10-11  Eric Blake  <ebb9@byu.net>
55209
55210         Don't claim strerror is broken on Interix.
55211         * doc/functions/strerror.texi (strerror): Known broken systems are
55212         now Solaris 8, and not Interix.
55213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55214         Interix on cross-compile.
55215         Reported by Martin Koeppe in
55216         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55217
55218 2007-10-11  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/i-ring-tests: New file.
55221         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55222         instead of assert.
55223
55224 2007-10-11  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/filenamecat-tests: New file.
55227         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55228         * lib/filenamecat.c: Remove test code.
55229
55230 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55231
55232         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55233
55234         * lib/strerror.c: Include <string.h> always, to test interface,
55235         and to remove the need for the dummy.
55236         Include intprops.h to compute width instead of doing it ourselves
55237         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55238         (strerror): Define it to return NULL if there's no system strerror.
55239         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55240         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55241         ancient pre-strerror Unix systems well any more.  Saying "unknown
55242         system error" is enough.
55243         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55244         simpler strerror.c implementation.
55245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55246         Simplify the tests to reflect the simpler strerror implementation.
55247         * modules/strerror (Depends-on): Add intprops.
55248
55249 2007-10-09  Eric Blake  <ebb9@byu.net>
55250
55251         Silence test-fpending.
55252         * modules/fpending-tests (Files): Add wrapper script.
55253         * tests/test-fpending.sh: New file.
55254
55255 2007-10-09  Bruno Haible  <bruno@clisp.org>
55256
55257         * MODULES.html.sh (func_module): Don't create a hyperlink for
55258         function names like 'printf_frexp'.
55259         (Misc): Add crc, memxor.
55260         (Characteristics of floating types): New section.
55261         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55262         isnanf-nolibm, signbit, trunc, truncf, truncl.
55263         (Enhancements for ISO C 99 functions): New subsection Input/output.
55264         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55265         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55266         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55267         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55268         (Enhancements for POSIX:2001 functions): Add chdir-long.
55269         (File system functions): Add areadlink, chdir-safer, read-file.
55270         Remove cycle-check.
55271         (File system as inode set): New section.
55272         (Date and time): Add gethrxtime.
55273         (Multithreading): Add openmp.
55274         (Internationalization functions): Add localename.
55275         (Unicode string functions): Add unistr/u*-mbsnlen.
55276         (Support for maintaining and releasing projects): Add git-version-gen.
55277         (Lone files): Remove directories.
55278
55279 2007-10-08  Ben Pfaff  <blp@gnu.org>
55280
55281         * lib/xmalloca.h: Fix typo in comment.
55282
55283 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55286         when avoiding problems with integer overflow.  Use a portable test
55287         instead.
55288
55289 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55290
55291         * modules/dummy (License): Change to LGPLv2+.
55292         * modules/float (License): Likewise
55293         * modules/realloc (License): Likewise
55294         * modules/stdlib (License): Likewise
55295
55296 2007-10-07  Bruno Haible  <bruno@clisp.org>
55297
55298         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55299         * floor.c (TWO_MANT_DIG): Likewise.
55300         * ceil.c (TWO_MANT_DIG): Likewise.
55301         Reported by Ben Pfaff.
55302
55303 2007-10-07  Bruno Haible  <bruno@clisp.org>
55304
55305         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55306         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55307         * lib/frexp.c (FUNC): Likewise.
55308         * lib/printf-frexp.h (printf_frexp): Likewise.
55309         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55310         * lib/printf-frexp.c (FUNC): Likewise.
55311         Suggested by Jim Meyering.
55312
55313 2007-10-07  Jim Meyering  <meyering@redhat.com>
55314
55315         Make xnanosleep's integer overflow test more robust.
55316         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55317         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55318
55319 2007-10-07  Bruno Haible  <bruno@clisp.org>
55320
55321         * NEWS: Mention the license change.
55322
55323         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55324         abbreviations in the modules files.
55325
55326         Change copyright notice from GPLv2+ to GPLv3+.
55327         * README: Change copyright notice.
55328         * MODULES.html.sh: Likewise.
55329         * build-aux/bootstrap.conf: Likewise.
55330         * build-aux/config.libpath: Likewise.
55331         * build-aux/csharpcomp.sh.in: Likewise.
55332         * build-aux/csharpexec.sh.in: Likewise.
55333         * build-aux/install-reloc: Likewise.
55334         * build-aux/javacomp.sh.in: Likewise.
55335         * build-aux/javaexec.sh.in: Likewise.
55336         * build-aux/ldd.sh.in: Likewise.
55337         * build-aux/reloc-ldflags: Likewise.
55338         * build-aux/relocatable.sh.in: Likewise.
55339         * build-aux/x-to-1.in: Likewise.
55340         * check-module: Likewise.
55341         * config/srclistvars.sh: Likewise.
55342         * gnulib-tool: Likewise.
55343         * lib/acl-internal.h: Likewise.
55344         * lib/acl.c: Likewise.
55345         * lib/acl.h: Likewise.
55346         * lib/acl_entries.c: Likewise.
55347         * lib/areadlink-with-size.c: Likewise.
55348         * lib/areadlink.c: Likewise.
55349         * lib/areadlink.h: Likewise.
55350         * lib/argmatch.c: Likewise.
55351         * lib/argmatch.h: Likewise.
55352         * lib/argp-ba.c: Likewise.
55353         * lib/argp-eexst.c: Likewise.
55354         * lib/argp-fmtstream.c: Likewise.
55355         * lib/argp-fmtstream.h: Likewise.
55356         * lib/argp-fs-xinl.c: Likewise.
55357         * lib/argp-help.c: Likewise.
55358         * lib/argp-namefrob.h: Likewise.
55359         * lib/argp-parse.c: Likewise.
55360         * lib/argp-pin.c: Likewise.
55361         * lib/argp-pv.c: Likewise.
55362         * lib/argp-pvh.c: Likewise.
55363         * lib/argp-xinl.c: Likewise.
55364         * lib/argp.h: Likewise.
55365         * lib/at-func.c: Likewise.
55366         * lib/atanl.c: Likewise.
55367         * lib/backupfile.c: Likewise.
55368         * lib/backupfile.h: Likewise.
55369         * lib/basename.c: Likewise.
55370         * lib/binary-io.h: Likewise.
55371         * lib/byteswap.in.h: Likewise.
55372         * lib/c-stack.c: Likewise.
55373         * lib/c-stack.h: Likewise.
55374         * lib/c-strcasestr.c: Likewise.
55375         * lib/c-strcasestr.h: Likewise.
55376         * lib/c-strstr.c: Likewise.
55377         * lib/c-strstr.h: Likewise.
55378         * lib/c-strtod.c: Likewise.
55379         * lib/calloc.c: Likewise.
55380         * lib/canon-host.c: Likewise.
55381         * lib/canon-host.h: Likewise.
55382         * lib/canonicalize-lgpl.c: Likewise.
55383         * lib/canonicalize.c: Likewise.
55384         * lib/canonicalize.h: Likewise.
55385         * lib/ceil.c: Likewise.
55386         * lib/ceilf.c: Likewise.
55387         * lib/ceill.c: Likewise.
55388         * lib/chdir-long.c: Likewise.
55389         * lib/chdir-long.h: Likewise.
55390         * lib/chdir-safer.c: Likewise.
55391         * lib/chdir-safer.h: Likewise.
55392         * lib/chown.c: Likewise.
55393         * lib/classpath.c: Likewise.
55394         * lib/classpath.h: Likewise.
55395         * lib/clean-temp.c: Likewise.
55396         * lib/clean-temp.h: Likewise.
55397         * lib/cloexec.c: Likewise.
55398         * lib/close-stream.c: Likewise.
55399         * lib/closein.c: Likewise.
55400         * lib/closein.h: Likewise.
55401         * lib/closeout.c: Likewise.
55402         * lib/closeout.h: Likewise.
55403         * lib/concat-filename.c: Likewise.
55404         * lib/copy-file.c: Likewise.
55405         * lib/copy-file.h: Likewise.
55406         * lib/count-one-bits.h: Likewise.
55407         * lib/crc.c: Likewise.
55408         * lib/crc.h: Likewise.
55409         * lib/creat-safer.c: Likewise.
55410         * lib/csharpcomp.c: Likewise.
55411         * lib/csharpcomp.h: Likewise.
55412         * lib/csharpexec.c: Likewise.
55413         * lib/csharpexec.h: Likewise.
55414         * lib/cycle-check.c: Likewise.
55415         * lib/cycle-check.h: Likewise.
55416         * lib/diacrit.c: Likewise.
55417         * lib/diacrit.h: Likewise.
55418         * lib/diffseq.h: Likewise.
55419         * lib/dirchownmod.c: Likewise.
55420         * lib/dirent.in.h: Likewise.
55421         * lib/dirfd.c: Likewise.
55422         * lib/dirfd.h: Likewise.
55423         * lib/dirname.c: Likewise.
55424         * lib/dirname.h: Likewise.
55425         * lib/dummy.c: Likewise.
55426         * lib/dup-safer.c: Likewise.
55427         * lib/dup2.c: Likewise.
55428         * lib/eealloc.h: Likewise.
55429         * lib/error.c: Likewise.
55430         * lib/error.h: Likewise.
55431         * lib/euidaccess.c: Likewise.
55432         * lib/exclude.c: Likewise.
55433         * lib/exclude.h: Likewise.
55434         * lib/execute.c: Likewise.
55435         * lib/execute.h: Likewise.
55436         * lib/exitfail.c: Likewise.
55437         * lib/exitfail.h: Likewise.
55438         * lib/expl.c: Likewise.
55439         * lib/fatal-signal.c: Likewise.
55440         * lib/fatal-signal.h: Likewise.
55441         * lib/fbufmode.c: Likewise.
55442         * lib/fbufmode.h: Likewise.
55443         * lib/fchdir.c: Likewise.
55444         * lib/fchmodat.c: Likewise.
55445         * lib/fchownat.c: Likewise.
55446         * lib/fcntl--.h: Likewise.
55447         * lib/fcntl-safer.h: Likewise.
55448         * lib/fcntl.in.h: Likewise.
55449         * lib/fd-safer.c: Likewise.
55450         * lib/fflush.c: Likewise.
55451         * lib/file-has-acl.c: Likewise.
55452         * lib/file-set.c: Likewise.
55453         * lib/file-type.c: Likewise.
55454         * lib/file-type.h: Likewise.
55455         * lib/fileblocks.c: Likewise.
55456         * lib/filemode.c: Likewise.
55457         * lib/filemode.h: Likewise.
55458         * lib/filename.h: Likewise.
55459         * lib/filenamecat.c: Likewise.
55460         * lib/filenamecat.h: Likewise.
55461         * lib/findprog.c: Likewise.
55462         * lib/findprog.h: Likewise.
55463         * lib/float.in.h: Likewise.
55464         * lib/floor.c: Likewise.
55465         * lib/floorf.c: Likewise.
55466         * lib/floorl.c: Likewise.
55467         * lib/fopen-safer.c: Likewise.
55468         * lib/fopen.c: Likewise.
55469         * lib/fpending.c: Likewise.
55470         * lib/fpending.h: Likewise.
55471         * lib/fprintf.c: Likewise.
55472         * lib/fprintftime.h: Likewise.
55473         * lib/fpucw.h: Likewise.
55474         * lib/fpurge.c: Likewise.
55475         * lib/fpurge.h: Likewise.
55476         * lib/freadable.c: Likewise.
55477         * lib/freadable.h: Likewise.
55478         * lib/freadahead.c: Likewise.
55479         * lib/freadahead.h: Likewise.
55480         * lib/freading.c: Likewise.
55481         * lib/freading.h: Likewise.
55482         * lib/free.c: Likewise.
55483         * lib/freopen.c: Likewise.
55484         * lib/frexp.c: Likewise.
55485         * lib/frexpl.c: Likewise.
55486         * lib/fseek.c: Likewise.
55487         * lib/fseterr.c: Likewise.
55488         * lib/fseterr.h: Likewise.
55489         * lib/fstatat.c: Likewise.
55490         * lib/fstrcmp.c: Likewise.
55491         * lib/fstrcmp.h: Likewise.
55492         * lib/fsusage.c: Likewise.
55493         * lib/fsusage.h: Likewise.
55494         * lib/ftell.c: Likewise.
55495         * lib/ftello.c: Likewise.
55496         * lib/fts-cycle.c: Likewise.
55497         * lib/fts.c: Likewise.
55498         * lib/fts_.h: Likewise.
55499         * lib/full-read.c: Likewise.
55500         * lib/full-read.h: Likewise.
55501         * lib/full-write.c: Likewise.
55502         * lib/full-write.h: Likewise.
55503         * lib/fwritable.c: Likewise.
55504         * lib/fwritable.h: Likewise.
55505         * lib/fwriteerror.c: Likewise.
55506         * lib/fwriteerror.h: Likewise.
55507         * lib/fwriting.c: Likewise.
55508         * lib/fwriting.h: Likewise.
55509         * lib/gcd.c: Likewise.
55510         * lib/gcd.h: Likewise.
55511         * lib/getcwd.c: Likewise.
55512         * lib/getdate.h: Likewise.
55513         * lib/getdate.y: Likewise.
55514         * lib/getdomainname.c: Likewise.
55515         * lib/getdomainname.h: Likewise.
55516         * lib/getgroups.c: Likewise.
55517         * lib/gethostname.c: Likewise.
55518         * lib/gethrxtime.c: Likewise.
55519         * lib/gethrxtime.h: Likewise.
55520         * lib/getloadavg.c: Likewise.
55521         * lib/getndelim2.c: Likewise.
55522         * lib/getndelim2.h: Likewise.
55523         * lib/getnline.c: Likewise.
55524         * lib/getnline.h: Likewise.
55525         * lib/getopt.c: Likewise.
55526         * lib/getopt.in.h: Likewise.
55527         * lib/getopt1.c: Likewise.
55528         * lib/getopt_int.h: Likewise.
55529         * lib/getpagesize.h: Likewise.
55530         * lib/getsubopt.c: Likewise.
55531         * lib/gettime.c: Likewise.
55532         * lib/getugroups.c: Likewise.
55533         * lib/getugroups.h: Likewise.
55534         * lib/getusershell.c: Likewise.
55535         * lib/gl_anyavltree_list1.h: Likewise.
55536         * lib/gl_anyavltree_list2.h: Likewise.
55537         * lib/gl_anyhash_list1.h: Likewise.
55538         * lib/gl_anyhash_list2.h: Likewise.
55539         * lib/gl_anylinked_list1.h: Likewise.
55540         * lib/gl_anylinked_list2.h: Likewise.
55541         * lib/gl_anyrbtree_list1.h: Likewise.
55542         * lib/gl_anyrbtree_list2.h: Likewise.
55543         * lib/gl_anytree_list1.h: Likewise.
55544         * lib/gl_anytree_list2.h: Likewise.
55545         * lib/gl_anytree_oset.h: Likewise.
55546         * lib/gl_anytreehash_list1.h: Likewise.
55547         * lib/gl_anytreehash_list2.h: Likewise.
55548         * lib/gl_array_list.c: Likewise.
55549         * lib/gl_array_list.h: Likewise.
55550         * lib/gl_array_oset.c: Likewise.
55551         * lib/gl_array_oset.h: Likewise.
55552         * lib/gl_avltree_list.c: Likewise.
55553         * lib/gl_avltree_list.h: Likewise.
55554         * lib/gl_avltree_oset.c: Likewise.
55555         * lib/gl_avltree_oset.h: Likewise.
55556         * lib/gl_avltreehash_list.c: Likewise.
55557         * lib/gl_avltreehash_list.h: Likewise.
55558         * lib/gl_carray_list.c: Likewise.
55559         * lib/gl_carray_list.h: Likewise.
55560         * lib/gl_linked_list.c: Likewise.
55561         * lib/gl_linked_list.h: Likewise.
55562         * lib/gl_linkedhash_list.c: Likewise.
55563         * lib/gl_linkedhash_list.h: Likewise.
55564         * lib/gl_list.c: Likewise.
55565         * lib/gl_list.h: Likewise.
55566         * lib/gl_oset.c: Likewise.
55567         * lib/gl_oset.h: Likewise.
55568         * lib/gl_rbtree_list.c: Likewise.
55569         * lib/gl_rbtree_list.h: Likewise.
55570         * lib/gl_rbtree_oset.c: Likewise.
55571         * lib/gl_rbtree_oset.h: Likewise.
55572         * lib/gl_rbtreehash_list.c: Likewise.
55573         * lib/gl_rbtreehash_list.h: Likewise.
55574         * lib/gl_sublist.c: Likewise.
55575         * lib/gl_sublist.h: Likewise.
55576         * lib/group-member.c: Likewise.
55577         * lib/group-member.h: Likewise.
55578         * lib/hard-locale.c: Likewise.
55579         * lib/hard-locale.h: Likewise.
55580         * lib/hash-pjw.c: Likewise.
55581         * lib/hash-pjw.h: Likewise.
55582         * lib/hash-triple.c: Likewise.
55583         * lib/hash.c: Likewise.
55584         * lib/hash.h: Likewise.
55585         * lib/human.c: Likewise.
55586         * lib/human.h: Likewise.
55587         * lib/i-ring.c: Likewise.
55588         * lib/i-ring.h: Likewise.
55589         * lib/idcache.c: Likewise.
55590         * lib/imaxabs.c: Likewise.
55591         * lib/imaxdiv.c: Likewise.
55592         * lib/inet_pton.c: Likewise.
55593         * lib/inet_pton.h: Likewise.
55594         * lib/intprops.h: Likewise.
55595         * lib/inttostr.c: Likewise.
55596         * lib/inttostr.h: Likewise.
55597         * lib/inttypes.in.h: Likewise.
55598         * lib/isapipe.c: Likewise.
55599         * lib/isdir.c: Likewise.
55600         * lib/isnan.c: Likewise.
55601         * lib/isnan.h: Likewise.
55602         * lib/isnanf.c: Likewise.
55603         * lib/isnanf.h: Likewise.
55604         * lib/isnanl-nolibm.h: Likewise.
55605         * lib/isnanl.c: Likewise.
55606         * lib/isnanl.h: Likewise.
55607         * lib/javacomp.c: Likewise.
55608         * lib/javacomp.h: Likewise.
55609         * lib/javaexec.c: Likewise.
55610         * lib/javaexec.h: Likewise.
55611         * lib/javaversion.c: Likewise.
55612         * lib/javaversion.h: Likewise.
55613         * lib/javaversion.java: Likewise.
55614         * lib/lbrkprop.h: Likewise.
55615         * lib/lchmod.h: Likewise.
55616         * lib/lchown.c: Likewise.
55617         * lib/ldexpl.c: Likewise.
55618         * lib/linebreak.c: Likewise.
55619         * lib/linebreak.h: Likewise.
55620         * lib/linebuffer.c: Likewise.
55621         * lib/linebuffer.h: Likewise.
55622         * lib/locale.in.h: Likewise.
55623         * lib/logl.c: Likewise.
55624         * lib/long-options.c: Likewise.
55625         * lib/long-options.h: Likewise.
55626         * lib/lstat.c: Likewise.
55627         * lib/lstat.h: Likewise.
55628         * lib/math.in.h: Likewise.
55629         * lib/mbchar.c: Likewise.
55630         * lib/mbchar.h: Likewise.
55631         * lib/mbfile.h: Likewise.
55632         * lib/mbiter.h: Likewise.
55633         * lib/mbscasecmp.c: Likewise.
55634         * lib/mbscasestr.c: Likewise.
55635         * lib/mbschr.c: Likewise.
55636         * lib/mbscspn.c: Likewise.
55637         * lib/mbslen.c: Likewise.
55638         * lib/mbsncasecmp.c: Likewise.
55639         * lib/mbsnlen.c: Likewise.
55640         * lib/mbspbrk.c: Likewise.
55641         * lib/mbspcasecmp.c: Likewise.
55642         * lib/mbsrchr.c: Likewise.
55643         * lib/mbssep.c: Likewise.
55644         * lib/mbsspn.c: Likewise.
55645         * lib/mbsstr.c: Likewise.
55646         * lib/mbstok_r.c: Likewise.
55647         * lib/mbswidth.c: Likewise.
55648         * lib/mbswidth.h: Likewise.
55649         * lib/mbuiter.h: Likewise.
55650         * lib/memcasecmp.c: Likewise.
55651         * lib/memcasecmp.h: Likewise.
55652         * lib/memchr.c: Likewise.
55653         * lib/memcmp.c: Likewise.
55654         * lib/memcoll.c: Likewise.
55655         * lib/memcoll.h: Likewise.
55656         * lib/memcpy.c: Likewise.
55657         * lib/memrchr.c: Likewise.
55658         * lib/mkancesdirs.c: Likewise.
55659         * lib/mkdir-p.c: Likewise.
55660         * lib/mkdir-p.h: Likewise.
55661         * lib/mkdir.c: Likewise.
55662         * lib/mkdirat.c: Likewise.
55663         * lib/mkdtemp.c: Likewise.
55664         * lib/mkstemp-safer.c: Likewise.
55665         * lib/mkstemp.c: Likewise.
55666         * lib/modechange.c: Likewise.
55667         * lib/modechange.h: Likewise.
55668         * lib/mountlist.c: Likewise.
55669         * lib/mountlist.h: Likewise.
55670         * lib/mpsort.c: Likewise.
55671         * lib/nanosleep.c: Likewise.
55672         * lib/obstack.c: Likewise.
55673         * lib/obstack.h: Likewise.
55674         * lib/open-safer.c: Likewise.
55675         * lib/open.c: Likewise.
55676         * lib/openat-die.c: Likewise.
55677         * lib/openat-priv.h: Likewise.
55678         * lib/openat-proc.c: Likewise.
55679         * lib/openat.c: Likewise.
55680         * lib/openat.h: Likewise.
55681         * lib/pagealign_alloc.c: Likewise.
55682         * lib/pagealign_alloc.h: Likewise.
55683         * lib/physmem.c: Likewise.
55684         * lib/physmem.h: Likewise.
55685         * lib/pipe-safer.c: Likewise.
55686         * lib/pipe.c: Likewise.
55687         * lib/pipe.h: Likewise.
55688         * lib/posixtm.c: Likewise.
55689         * lib/posixtm.h: Likewise.
55690         * lib/posixver.c: Likewise.
55691         * lib/printf-frexp.c: Likewise.
55692         * lib/printf-frexp.h: Likewise.
55693         * lib/printf-frexpl.c: Likewise.
55694         * lib/printf-frexpl.h: Likewise.
55695         * lib/printf.c: Likewise.
55696         * lib/progname.c: Likewise.
55697         * lib/progname.h: Likewise.
55698         * lib/progreloc.c: Likewise.
55699         * lib/putenv.c: Likewise.
55700         * lib/quote.c: Likewise.
55701         * lib/quote.h: Likewise.
55702         * lib/quotearg.c: Likewise.
55703         * lib/quotearg.h: Likewise.
55704         * lib/raise.c: Likewise.
55705         * lib/readline.c: Likewise.
55706         * lib/readline.h: Likewise.
55707         * lib/readlink.c: Likewise.
55708         * lib/readtokens.c: Likewise.
55709         * lib/readtokens.h: Likewise.
55710         * lib/readtokens0.c: Likewise.
55711         * lib/readtokens0.h: Likewise.
55712         * lib/readutmp.c: Likewise.
55713         * lib/readutmp.h: Likewise.
55714         * lib/realloc.c: Likewise.
55715         * lib/relocwrapper.c: Likewise.
55716         * lib/rename-dest-slash.c: Likewise.
55717         * lib/rename.c: Likewise.
55718         * lib/rmdir.c: Likewise.
55719         * lib/rpmatch.c: Likewise.
55720         * lib/safe-read.c: Likewise.
55721         * lib/safe-read.h: Likewise.
55722         * lib/safe-write.c: Likewise.
55723         * lib/safe-write.h: Likewise.
55724         * lib/same-inode.h: Likewise.
55725         * lib/same.c: Likewise.
55726         * lib/same.h: Likewise.
55727         * lib/save-cwd.c: Likewise.
55728         * lib/save-cwd.h: Likewise.
55729         * lib/savedir.c: Likewise.
55730         * lib/savedir.h: Likewise.
55731         * lib/savewd.c: Likewise.
55732         * lib/savewd.h: Likewise.
55733         * lib/search.in.h: Likewise.
55734         * lib/setenv.c: Likewise.
55735         * lib/setenv.h: Likewise.
55736         * lib/settime.c: Likewise.
55737         * lib/sh-quote.c: Likewise.
55738         * lib/sh-quote.h: Likewise.
55739         * lib/sig2str.c: Likewise.
55740         * lib/sig2str.h: Likewise.
55741         * lib/signal.in.h: Likewise.
55742         * lib/signbitd.c: Likewise.
55743         * lib/signbitf.c: Likewise.
55744         * lib/signbitl.c: Likewise.
55745         * lib/sigprocmask.c: Likewise.
55746         * lib/sincosl.c: Likewise.
55747         * lib/sleep.c: Likewise.
55748         * lib/sprintf.c: Likewise.
55749         * lib/sqrtl.c: Likewise.
55750         * lib/stat-time.h: Likewise.
55751         * lib/stdio--.h: Likewise.
55752         * lib/stdio-safer.h: Likewise.
55753         * lib/stdlib--.h: Likewise.
55754         * lib/stdlib-safer.h: Likewise.
55755         * lib/stdlib.in.h: Likewise.
55756         * lib/stpcpy.c: Likewise.
55757         * lib/stpncpy.c: Likewise.
55758         * lib/strchrnul.c: Likewise.
55759         * lib/strcspn.c: Likewise.
55760         * lib/strerror.c: Likewise.
55761         * lib/strftime.c: Likewise.
55762         * lib/strftime.h: Likewise.
55763         * lib/striconveh.c: Likewise.
55764         * lib/striconveh.h: Likewise.
55765         * lib/striconveha.c: Likewise.
55766         * lib/striconveha.h: Likewise.
55767         * lib/stripslash.c: Likewise.
55768         * lib/strnlen1.c: Likewise.
55769         * lib/strnlen1.h: Likewise.
55770         * lib/strtod.c: Likewise.
55771         * lib/strtoimax.c: Likewise.
55772         * lib/strtok_r.c: Likewise.
55773         * lib/strtol.c: Likewise.
55774         * lib/strtoll.c: Likewise.
55775         * lib/strtoul.c: Likewise.
55776         * lib/strtoull.c: Likewise.
55777         * lib/sysexits.in.h: Likewise.
55778         * lib/tempname.c: Likewise.
55779         * lib/tempname.h: Likewise.
55780         * lib/timespec.h: Likewise.
55781         * lib/tls.c: Likewise.
55782         * lib/tls.h: Likewise.
55783         * lib/tmpdir.c: Likewise.
55784         * lib/tmpdir.h: Likewise.
55785         * lib/tmpfile-safer.c: Likewise.
55786         * lib/tmpfile.c: Likewise.
55787         * lib/trigl.c: Likewise.
55788         * lib/trigl.h: Likewise.
55789         * lib/trim.c: Likewise.
55790         * lib/trim.h: Likewise.
55791         * lib/trunc.c: Likewise.
55792         * lib/truncf.c: Likewise.
55793         * lib/truncl.c: Likewise.
55794         * lib/tsearch.c: Likewise.
55795         * lib/unicodeio.c: Likewise.
55796         * lib/unicodeio.h: Likewise.
55797         * lib/unistd--.h: Likewise.
55798         * lib/unistd-safer.h: Likewise.
55799         * lib/unistdio/ulc-fprintf.c: Likewise.
55800         * lib/unistdio/ulc-vfprintf.c: Likewise.
55801         * lib/unlinkdir.c: Likewise.
55802         * lib/unlinkdir.h: Likewise.
55803         * lib/unlocked-io.h: Likewise.
55804         * lib/unsetenv.c: Likewise.
55805         * lib/userspec.c: Likewise.
55806         * lib/utime.c: Likewise.
55807         * lib/utimecmp.c: Likewise.
55808         * lib/utimecmp.h: Likewise.
55809         * lib/utimens.c: Likewise.
55810         * lib/verify.h: Likewise.
55811         * lib/verror.c: Likewise.
55812         * lib/verror.h: Likewise.
55813         * lib/version-etc-fsf.c: Likewise.
55814         * lib/version-etc.c: Likewise.
55815         * lib/version-etc.h: Likewise.
55816         * lib/vfprintf.c: Likewise.
55817         * lib/vprintf.c: Likewise.
55818         * lib/vsprintf.c: Likewise.
55819         * lib/w32spawn.h: Likewise.
55820         * lib/wait-process.c: Likewise.
55821         * lib/wait-process.h: Likewise.
55822         * lib/wcwidth.c: Likewise.
55823         * lib/write-any-file.c: Likewise.
55824         * lib/xalloc-die.c: Likewise.
55825         * lib/xalloc.h: Likewise.
55826         * lib/xasprintf.c: Likewise.
55827         * lib/xgetcwd.c: Likewise.
55828         * lib/xgetcwd.h: Likewise.
55829         * lib/xgetdomainname.c: Likewise.
55830         * lib/xgetdomainname.h: Likewise.
55831         * lib/xgethostname.c: Likewise.
55832         * lib/xmalloc.c: Likewise.
55833         * lib/xmalloca.c: Likewise.
55834         * lib/xmalloca.h: Likewise.
55835         * lib/xmemcoll.c: Likewise.
55836         * lib/xnanosleep.c: Likewise.
55837         * lib/xreadlink.c: Likewise.
55838         * lib/xreadlink.h: Likewise.
55839         * lib/xsetenv.c: Likewise.
55840         * lib/xsetenv.h: Likewise.
55841         * lib/xstriconv.c: Likewise.
55842         * lib/xstriconv.h: Likewise.
55843         * lib/xstrndup.c: Likewise.
55844         * lib/xstrndup.h: Likewise.
55845         * lib/xstrtod.c: Likewise.
55846         * lib/xstrtod.h: Likewise.
55847         * lib/xstrtol-error.c: Likewise.
55848         * lib/xstrtol.c: Likewise.
55849         * lib/xstrtol.h: Likewise.
55850         * lib/xtime.h: Likewise.
55851         * lib/xvasprintf.c: Likewise.
55852         * lib/xvasprintf.h: Likewise.
55853         * lib/yesno.c: Likewise.
55854         * lib/yesno.h: Likewise.
55855         * posix-modules: Likewise.
55856         * tests/test-alloca-opt.c: Likewise.
55857         * tests/test-arcfour.c: Likewise.
55858         * tests/test-arctwo.c: Likewise.
55859         * tests/test-argmatch.c: Likewise.
55860         * tests/test-argp-2.sh: Likewise.
55861         * tests/test-argp.c: Likewise.
55862         * tests/test-arpa_inet.c: Likewise.
55863         * tests/test-array_list.c: Likewise.
55864         * tests/test-array_oset.c: Likewise.
55865         * tests/test-atexit.c: Likewise.
55866         * tests/test-avltree_list.c: Likewise.
55867         * tests/test-avltree_oset.c: Likewise.
55868         * tests/test-avltreehash_list.c: Likewise.
55869         * tests/test-base64.c: Likewise.
55870         * tests/test-binary-io.c: Likewise.
55871         * tests/test-byteswap.c: Likewise.
55872         * tests/test-c-ctype.c: Likewise.
55873         * tests/test-c-strcasecmp.c: Likewise.
55874         * tests/test-c-strcasestr.c: Likewise.
55875         * tests/test-c-strncasecmp.c: Likewise.
55876         * tests/test-c-strstr.c: Likewise.
55877         * tests/test-canonicalize-lgpl.c: Likewise.
55878         * tests/test-canonicalize.c: Likewise.
55879         * tests/test-carray_list.c: Likewise.
55880         * tests/test-ceilf.c: Likewise.
55881         * tests/test-ceill.c: Likewise.
55882         * tests/test-count-one-bits.c: Likewise.
55883         * tests/test-crc.c: Likewise.
55884         * tests/test-dirname.c: Likewise.
55885         * tests/test-fbufmode.c: Likewise.
55886         * tests/test-fcntl.c: Likewise.
55887         * tests/test-fflush.c: Likewise.
55888         * tests/test-floorf.c: Likewise.
55889         * tests/test-floorl.c: Likewise.
55890         * tests/test-fopen.c: Likewise.
55891         * tests/test-fprintf-posix.c: Likewise.
55892         * tests/test-fprintf-posix.h: Likewise.
55893         * tests/test-fpurge.c: Likewise.
55894         * tests/test-freadable.c: Likewise.
55895         * tests/test-freadahead.c: Likewise.
55896         * tests/test-freading.c: Likewise.
55897         * tests/test-freopen.c: Likewise.
55898         * tests/test-frexp.c: Likewise.
55899         * tests/test-frexpl.c: Likewise.
55900         * tests/test-fseek.c: Likewise.
55901         * tests/test-fseeko.c: Likewise.
55902         * tests/test-fseterr.c: Likewise.
55903         * tests/test-fstrcmp.c: Likewise.
55904         * tests/test-ftell.c: Likewise.
55905         * tests/test-ftello.c: Likewise.
55906         * tests/test-fwritable.c: Likewise.
55907         * tests/test-fwriting.c: Likewise.
55908         * tests/test-getaddrinfo.c: Likewise.
55909         * tests/test-getpass.c: Likewise.
55910         * tests/test-gettimeofday.c: Likewise.
55911         * tests/test-hmac-md5.c: Likewise.
55912         * tests/test-hmac-sha1.c: Likewise.
55913         * tests/test-iconv.c: Likewise.
55914         * tests/test-iconvme.c: Likewise.
55915         * tests/test-inttypes.c: Likewise.
55916         * tests/test-isnan.c: Likewise.
55917         * tests/test-isnanf.c: Likewise.
55918         * tests/test-isnanl-nolibm.c: Likewise.
55919         * tests/test-isnanl.c: Likewise.
55920         * tests/test-isnanl.h: Likewise.
55921         * tests/test-ldexpl.c: Likewise.
55922         * tests/test-linked_list.c: Likewise.
55923         * tests/test-linkedhash_list.c: Likewise.
55924         * tests/test-locale.c: Likewise.
55925         * tests/test-localename.c: Likewise.
55926         * tests/test-lock.c: Likewise.
55927         * tests/test-lseek.c: Likewise.
55928         * tests/test-malloca.c: Likewise.
55929         * tests/test-math.c: Likewise.
55930         * tests/test-mbscasecmp.c: Likewise.
55931         * tests/test-mbscasestr1.c: Likewise.
55932         * tests/test-mbscasestr2.c: Likewise.
55933         * tests/test-mbscasestr3.c: Likewise.
55934         * tests/test-mbscasestr4.c: Likewise.
55935         * tests/test-mbschr.c: Likewise.
55936         * tests/test-mbscspn.c: Likewise.
55937         * tests/test-mbsncasecmp.c: Likewise.
55938         * tests/test-mbspbrk.c: Likewise.
55939         * tests/test-mbspcasecmp.c: Likewise.
55940         * tests/test-mbsrchr.c: Likewise.
55941         * tests/test-mbsspn.c: Likewise.
55942         * tests/test-mbsstr1.c: Likewise.
55943         * tests/test-mbsstr2.c: Likewise.
55944         * tests/test-mbsstr3.c: Likewise.
55945         * tests/test-md5.c: Likewise.
55946         * tests/test-memmem.c: Likewise.
55947         * tests/test-netinet_in.c: Likewise.
55948         * tests/test-open.c: Likewise.
55949         * tests/test-printf-frexp.c: Likewise.
55950         * tests/test-printf-frexpl.c: Likewise.
55951         * tests/test-printf-posix.c: Likewise.
55952         * tests/test-printf-posix.h: Likewise.
55953         * tests/test-rbtree_list.c: Likewise.
55954         * tests/test-rbtree_oset.c: Likewise.
55955         * tests/test-rbtreehash_list.c: Likewise.
55956         * tests/test-read-file.c: Likewise.
55957         * tests/test-rijndael.c: Likewise.
55958         * tests/test-search.c: Likewise.
55959         * tests/test-signbit.c: Likewise.
55960         * tests/test-sleep.c: Likewise.
55961         * tests/test-snprintf-posix.c: Likewise.
55962         * tests/test-snprintf-posix.h: Likewise.
55963         * tests/test-snprintf.c: Likewise.
55964         * tests/test-sprintf-posix.c: Likewise.
55965         * tests/test-sprintf-posix.h: Likewise.
55966         * tests/test-stat-time.c: Likewise.
55967         * tests/test-stdbool.c: Likewise.
55968         * tests/test-stdint.c: Likewise.
55969         * tests/test-stdio.c: Likewise.
55970         * tests/test-stdlib.c: Likewise.
55971         * tests/test-stpncpy.c: Likewise.
55972         * tests/test-strcasestr.c: Likewise.
55973         * tests/test-striconv.c: Likewise.
55974         * tests/test-striconveh.c: Likewise.
55975         * tests/test-striconveha.c: Likewise.
55976         * tests/test-string.c: Likewise.
55977         * tests/test-sys_select.c: Likewise.
55978         * tests/test-sys_socket.c: Likewise.
55979         * tests/test-sys_stat.c: Likewise.
55980         * tests/test-sys_time.c: Likewise.
55981         * tests/test-sysexits.c: Likewise.
55982         * tests/test-time.c: Likewise.
55983         * tests/test-tls.c: Likewise.
55984         * tests/test-trunc.c: Likewise.
55985         * tests/test-truncf.c: Likewise.
55986         * tests/test-truncl.c: Likewise.
55987         * tests/test-unistd.c: Likewise.
55988         * tests/test-vasnprintf-posix.c: Likewise.
55989         * tests/test-vasnprintf-posix2.c: Likewise.
55990         * tests/test-vasnprintf.c: Likewise.
55991         * tests/test-vasprintf-posix.c: Likewise.
55992         * tests/test-vasprintf.c: Likewise.
55993         * tests/test-verify.c: Likewise.
55994         * tests/test-vfprintf-posix.c: Likewise.
55995         * tests/test-vprintf-posix.c: Likewise.
55996         * tests/test-vsnprintf-posix.c: Likewise.
55997         * tests/test-vsnprintf.c: Likewise.
55998         * tests/test-vsprintf-posix.c: Likewise.
55999         * tests/test-wchar.c: Likewise.
56000         * tests/test-wctype.c: Likewise.
56001         * tests/test-wcwidth.c: Likewise.
56002         * tests/test-xstrtol.c: Likewise.
56003         * tests/test-xvasprintf.c: Likewise.
56004         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56005         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56006         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56007         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56008         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56009         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56013         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56014         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56015         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56016         * tests/uniname/test-uninames.c: Likewise.
56017         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56018         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56019         * tests/unistdio/test-u16-printf1.h: Likewise.
56020         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56021         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56022         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56023         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56024         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56025         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56026         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56027         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56028         * tests/unistdio/test-u32-printf1.h: Likewise.
56029         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56030         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56031         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56032         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56033         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56034         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56035         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56036         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56037         * tests/unistdio/test-u8-printf1.h: Likewise.
56038         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56039         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56040         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56041         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56042         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56043         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56044         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56045         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56046         * tests/unistdio/test-ulc-printf1.h: Likewise.
56047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56053         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56054         * tests/uniwidth/test-u16-width.c: Likewise.
56055         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56056         * tests/uniwidth/test-u32-width.c: Likewise.
56057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56058         * tests/uniwidth/test-u8-width.c: Likewise.
56059         * tests/uniwidth/test-uc_width.c: Likewise.
56060         * config/srclist-update: Likewise.
56061         (fixlicense): Update to GPLv3+.
56062
56063         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56064         * tests/test-tsearch.c: Change copyright notice.
56065
56066         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56067         * lib/c-strcaseeq.h: Change copyright notice.
56068         * lib/streq.h: Likewise.
56069         * lib/uniconv.h: Likewise.
56070         * lib/uniconv/u-conv-from-enc.h: Likewise.
56071         * lib/uniconv/u-conv-to-enc.h: Likewise.
56072         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56073         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56074         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56075         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56076         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56077         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56078         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56079         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56080         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56081         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56082         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56083         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56084         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56085         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56086         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56087         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56088         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56089         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56090         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56091         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56092         * lib/uniname.h: Likewise.
56093         * lib/uniname/uniname.c: Likewise.
56094         * lib/unistdio.h: Likewise.
56095         * lib/unistdio/u-asnprintf.h: Likewise.
56096         * lib/unistdio/u-asprintf.h: Likewise.
56097         * lib/unistdio/u-printf-args.c: Likewise.
56098         * lib/unistdio/u-printf-args.h: Likewise.
56099         * lib/unistdio/u-printf-parse.h: Likewise.
56100         * lib/unistdio/u-snprintf.h: Likewise.
56101         * lib/unistdio/u-sprintf.h: Likewise.
56102         * lib/unistdio/u-vasprintf.h: Likewise.
56103         * lib/unistdio/u-vsnprintf.h: Likewise.
56104         * lib/unistdio/u-vsprintf.h: Likewise.
56105         * lib/unistdio/u16-asnprintf.c: Likewise.
56106         * lib/unistdio/u16-asprintf.c: Likewise.
56107         * lib/unistdio/u16-printf-parse.c: Likewise.
56108         * lib/unistdio/u16-snprintf.c: Likewise.
56109         * lib/unistdio/u16-sprintf.c: Likewise.
56110         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56111         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56112         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56113         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56114         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56115         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56116         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56117         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56118         * lib/unistdio/u16-vasnprintf.c: Likewise.
56119         * lib/unistdio/u16-vasprintf.c: Likewise.
56120         * lib/unistdio/u16-vsnprintf.c: Likewise.
56121         * lib/unistdio/u16-vsprintf.c: Likewise.
56122         * lib/unistdio/u32-asnprintf.c: Likewise.
56123         * lib/unistdio/u32-asprintf.c: Likewise.
56124         * lib/unistdio/u32-printf-parse.c: Likewise.
56125         * lib/unistdio/u32-snprintf.c: Likewise.
56126         * lib/unistdio/u32-sprintf.c: Likewise.
56127         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56128         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56129         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56130         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56131         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56132         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56133         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56134         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56135         * lib/unistdio/u32-vasnprintf.c: Likewise.
56136         * lib/unistdio/u32-vasprintf.c: Likewise.
56137         * lib/unistdio/u32-vsnprintf.c: Likewise.
56138         * lib/unistdio/u32-vsprintf.c: Likewise.
56139         * lib/unistdio/u8-asnprintf.c: Likewise.
56140         * lib/unistdio/u8-asprintf.c: Likewise.
56141         * lib/unistdio/u8-printf-parse.c: Likewise.
56142         * lib/unistdio/u8-snprintf.c: Likewise.
56143         * lib/unistdio/u8-sprintf.c: Likewise.
56144         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56145         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56146         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56147         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56148         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56149         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56150         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56151         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56152         * lib/unistdio/u8-vasnprintf.c: Likewise.
56153         * lib/unistdio/u8-vasprintf.c: Likewise.
56154         * lib/unistdio/u8-vsnprintf.c: Likewise.
56155         * lib/unistdio/u8-vsprintf.c: Likewise.
56156         * lib/unistdio/ulc-asnprintf.c: Likewise.
56157         * lib/unistdio/ulc-asprintf.c: Likewise.
56158         * lib/unistdio/ulc-printf-parse.c: Likewise.
56159         * lib/unistdio/ulc-snprintf.c: Likewise.
56160         * lib/unistdio/ulc-sprintf.c: Likewise.
56161         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56162         * lib/unistdio/ulc-vasprintf.c: Likewise.
56163         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56164         * lib/unistdio/ulc-vsprintf.c: Likewise.
56165         * lib/unistr.h: Likewise.
56166         * lib/unistr/u-cpy-alloc.h: Likewise.
56167         * lib/unistr/u-cpy.h: Likewise.
56168         * lib/unistr/u-endswith.h: Likewise.
56169         * lib/unistr/u-move.h: Likewise.
56170         * lib/unistr/u-set.h: Likewise.
56171         * lib/unistr/u-startswith.h: Likewise.
56172         * lib/unistr/u-stpcpy.h: Likewise.
56173         * lib/unistr/u-stpncpy.h: Likewise.
56174         * lib/unistr/u-strcat.h: Likewise.
56175         * lib/unistr/u-strcpy.h: Likewise.
56176         * lib/unistr/u-strcspn.h: Likewise.
56177         * lib/unistr/u-strdup.h: Likewise.
56178         * lib/unistr/u-strlen.h: Likewise.
56179         * lib/unistr/u-strncat.h: Likewise.
56180         * lib/unistr/u-strncpy.h: Likewise.
56181         * lib/unistr/u-strnlen.h: Likewise.
56182         * lib/unistr/u-strpbrk.h: Likewise.
56183         * lib/unistr/u-strspn.h: Likewise.
56184         * lib/unistr/u-strstr.h: Likewise.
56185         * lib/unistr/u-strtok.h: Likewise.
56186         * lib/unistr/u16-check.c: Likewise.
56187         * lib/unistr/u16-chr.c: Likewise.
56188         * lib/unistr/u16-cmp.c: Likewise.
56189         * lib/unistr/u16-cpy-alloc.c: Likewise.
56190         * lib/unistr/u16-cpy.c: Likewise.
56191         * lib/unistr/u16-endswith.c: Likewise.
56192         * lib/unistr/u16-mblen.c: Likewise.
56193         * lib/unistr/u16-mbsnlen.c: Likewise.
56194         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56195         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56196         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56197         * lib/unistr/u16-mbtouc.c: Likewise.
56198         * lib/unistr/u16-mbtoucr.c: Likewise.
56199         * lib/unistr/u16-move.c: Likewise.
56200         * lib/unistr/u16-next.c: Likewise.
56201         * lib/unistr/u16-prev.c: Likewise.
56202         * lib/unistr/u16-set.c: Likewise.
56203         * lib/unistr/u16-startswith.c: Likewise.
56204         * lib/unistr/u16-stpcpy.c: Likewise.
56205         * lib/unistr/u16-stpncpy.c: Likewise.
56206         * lib/unistr/u16-strcat.c: Likewise.
56207         * lib/unistr/u16-strchr.c: Likewise.
56208         * lib/unistr/u16-strcmp.c: Likewise.
56209         * lib/unistr/u16-strcpy.c: Likewise.
56210         * lib/unistr/u16-strcspn.c: Likewise.
56211         * lib/unistr/u16-strdup.c: Likewise.
56212         * lib/unistr/u16-strlen.c: Likewise.
56213         * lib/unistr/u16-strmblen.c: Likewise.
56214         * lib/unistr/u16-strmbtouc.c: Likewise.
56215         * lib/unistr/u16-strncat.c: Likewise.
56216         * lib/unistr/u16-strncmp.c: Likewise.
56217         * lib/unistr/u16-strncpy.c: Likewise.
56218         * lib/unistr/u16-strnlen.c: Likewise.
56219         * lib/unistr/u16-strpbrk.c: Likewise.
56220         * lib/unistr/u16-strrchr.c: Likewise.
56221         * lib/unistr/u16-strspn.c: Likewise.
56222         * lib/unistr/u16-strstr.c: Likewise.
56223         * lib/unistr/u16-strtok.c: Likewise.
56224         * lib/unistr/u16-to-u32.c: Likewise.
56225         * lib/unistr/u16-to-u8.c: Likewise.
56226         * lib/unistr/u16-uctomb-aux.c: Likewise.
56227         * lib/unistr/u16-uctomb.c: Likewise.
56228         * lib/unistr/u32-check.c: Likewise.
56229         * lib/unistr/u32-chr.c: Likewise.
56230         * lib/unistr/u32-cmp.c: Likewise.
56231         * lib/unistr/u32-cpy-alloc.c: Likewise.
56232         * lib/unistr/u32-cpy.c: Likewise.
56233         * lib/unistr/u32-endswith.c: Likewise.
56234         * lib/unistr/u32-mblen.c: Likewise.
56235         * lib/unistr/u32-mbsnlen.c: Likewise.
56236         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56237         * lib/unistr/u32-mbtouc.c: Likewise.
56238         * lib/unistr/u32-mbtoucr.c: Likewise.
56239         * lib/unistr/u32-move.c: Likewise.
56240         * lib/unistr/u32-next.c: Likewise.
56241         * lib/unistr/u32-prev.c: Likewise.
56242         * lib/unistr/u32-set.c: Likewise.
56243         * lib/unistr/u32-startswith.c: Likewise.
56244         * lib/unistr/u32-stpcpy.c: Likewise.
56245         * lib/unistr/u32-stpncpy.c: Likewise.
56246         * lib/unistr/u32-strcat.c: Likewise.
56247         * lib/unistr/u32-strchr.c: Likewise.
56248         * lib/unistr/u32-strcmp.c: Likewise.
56249         * lib/unistr/u32-strcpy.c: Likewise.
56250         * lib/unistr/u32-strcspn.c: Likewise.
56251         * lib/unistr/u32-strdup.c: Likewise.
56252         * lib/unistr/u32-strlen.c: Likewise.
56253         * lib/unistr/u32-strmblen.c: Likewise.
56254         * lib/unistr/u32-strmbtouc.c: Likewise.
56255         * lib/unistr/u32-strncat.c: Likewise.
56256         * lib/unistr/u32-strncmp.c: Likewise.
56257         * lib/unistr/u32-strncpy.c: Likewise.
56258         * lib/unistr/u32-strnlen.c: Likewise.
56259         * lib/unistr/u32-strpbrk.c: Likewise.
56260         * lib/unistr/u32-strrchr.c: Likewise.
56261         * lib/unistr/u32-strspn.c: Likewise.
56262         * lib/unistr/u32-strstr.c: Likewise.
56263         * lib/unistr/u32-strtok.c: Likewise.
56264         * lib/unistr/u32-to-u16.c: Likewise.
56265         * lib/unistr/u32-to-u8.c: Likewise.
56266         * lib/unistr/u32-uctomb.c: Likewise.
56267         * lib/unistr/u8-check.c: Likewise.
56268         * lib/unistr/u8-chr.c: Likewise.
56269         * lib/unistr/u8-cmp.c: Likewise.
56270         * lib/unistr/u8-cpy-alloc.c: Likewise.
56271         * lib/unistr/u8-cpy.c: Likewise.
56272         * lib/unistr/u8-endswith.c: Likewise.
56273         * lib/unistr/u8-mblen.c: Likewise.
56274         * lib/unistr/u8-mbsnlen.c: Likewise.
56275         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56276         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56277         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56278         * lib/unistr/u8-mbtouc.c: Likewise.
56279         * lib/unistr/u8-mbtoucr.c: Likewise.
56280         * lib/unistr/u8-move.c: Likewise.
56281         * lib/unistr/u8-next.c: Likewise.
56282         * lib/unistr/u8-prev.c: Likewise.
56283         * lib/unistr/u8-set.c: Likewise.
56284         * lib/unistr/u8-startswith.c: Likewise.
56285         * lib/unistr/u8-stpcpy.c: Likewise.
56286         * lib/unistr/u8-stpncpy.c: Likewise.
56287         * lib/unistr/u8-strcat.c: Likewise.
56288         * lib/unistr/u8-strchr.c: Likewise.
56289         * lib/unistr/u8-strcmp.c: Likewise.
56290         * lib/unistr/u8-strcpy.c: Likewise.
56291         * lib/unistr/u8-strcspn.c: Likewise.
56292         * lib/unistr/u8-strdup.c: Likewise.
56293         * lib/unistr/u8-strlen.c: Likewise.
56294         * lib/unistr/u8-strmblen.c: Likewise.
56295         * lib/unistr/u8-strmbtouc.c: Likewise.
56296         * lib/unistr/u8-strncat.c: Likewise.
56297         * lib/unistr/u8-strncmp.c: Likewise.
56298         * lib/unistr/u8-strncpy.c: Likewise.
56299         * lib/unistr/u8-strnlen.c: Likewise.
56300         * lib/unistr/u8-strpbrk.c: Likewise.
56301         * lib/unistr/u8-strrchr.c: Likewise.
56302         * lib/unistr/u8-strspn.c: Likewise.
56303         * lib/unistr/u8-strstr.c: Likewise.
56304         * lib/unistr/u8-strtok.c: Likewise.
56305         * lib/unistr/u8-to-u16.c: Likewise.
56306         * lib/unistr/u8-to-u32.c: Likewise.
56307         * lib/unistr/u8-uctomb-aux.c: Likewise.
56308         * lib/unistr/u8-uctomb.c: Likewise.
56309         * lib/unitypes.h: Likewise.
56310         * lib/uniwidth.h: Likewise.
56311         * lib/uniwidth/cjk.h: Likewise.
56312         * lib/uniwidth/u16-strwidth.c: Likewise.
56313         * lib/uniwidth/u16-width.c: Likewise.
56314         * lib/uniwidth/u32-strwidth.c: Likewise.
56315         * lib/uniwidth/u32-width.c: Likewise.
56316         * lib/uniwidth/u8-strwidth.c: Likewise.
56317         * lib/uniwidth/u8-width.c: Likewise.
56318         * lib/uniwidth/width.c: Likewise.
56319
56320 2007-10-07  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56323         The file is still under LGPL (see modules/inttypes).
56324
56325 2007-10-06  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/trunc (Dependencies): Add 'extensions'.
56328         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56329         Reported by Ben Pfaff <blp@gnu.org>.
56330
56331 2007-10-06  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/freopen-tests: New file.
56334         * tests/test-freopen.c: New file.
56335
56336         * modules/fopen-tests: New file.
56337         * tests/test-fopen.c: New file.
56338
56339         * modules/fopen: New file.
56340         * lib/fopen.c: New file.
56341         * m4/fopen.m4: New file.
56342         * modules/freopen: New file.
56343         * lib/freopen.c: New file.
56344         * m4/freopen.m4: New file.
56345         * lib/stdio.in.h (fopen, freopen): New declarations.
56346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56347         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56348         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56349         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56350         * doc/functions/fopen.texi: Mention the 'fopen' module.
56351         * doc/functions/freopen.texi: Mention the 'freopen' module.
56352
56353 2007-10-06  Bruno Haible  <bruno@clisp.org>
56354
56355         * modules/open-tests: New file.
56356         * tests/test-open.c: New file.
56357
56358         * modules/open: New file.
56359         * lib/open.c: New file.
56360         * m4/open.m4: New file.
56361         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56362         lib/open.c does.
56363         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56364         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56365         macros.
56366         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56367         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56368         REPLACE_OPEN.
56369         * doc/functions/open.texi: Mention the 'open' module.
56370
56371 2007-10-04  Bruno Haible  <bruno@clisp.org>
56372
56373         * modules/ceill-tests: New file.
56374         * tests/test-ceill.c: New file.
56375
56376         * modules/ceill: New file.
56377         * lib/ceill.c: Replace entire file.
56378         * m4/ceill.m4: New file.
56379         * lib/math.in.h (ceill): Replace declaration.
56380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56381         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56382         * doc/functions/ceill.texi: Mention the 'ceill' module.
56383         * modules/mathl (Files): Remove lib/ceill.c.
56384         (Depends-on): Add ceill.
56385
56386 2007-10-04  Bruno Haible  <bruno@clisp.org>
56387
56388         * modules/ceilf-tests: New file.
56389         * tests/test-ceilf.c: New file.
56390
56391         * modules/ceilf: New file.
56392         * lib/ceil.c: New file.
56393         * lib/ceilf.c: New file.
56394         * m4/ceilf.m4: New file.
56395         * lib/math.in.h (ceilf): New declaration.
56396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56397         HAVE_DECL_CEILF.
56398         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56399         HAVE_DECL_CEILF.
56400         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56401
56402 2007-10-04  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/floorl-tests: New file.
56405         * tests/test-floorl.c: New file.
56406
56407         * modules/floorl: New file.
56408         * lib/floorl.c: Replace entire file.
56409         * m4/floorl.m4: New file.
56410         * lib/math.in.h (floorl): Replace declaration.
56411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56412         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56413         * doc/functions/floorl.texi: Mention the 'floorl' module.
56414         * modules/mathl (Files): Remove lib/floorl.c.
56415         (Depends-on): Add floorl.
56416
56417 2007-10-04  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/floorf-tests: New file.
56420         * tests/test-floorf.c: New file.
56421
56422         * modules/floorf: New file.
56423         * lib/floor.c: New file.
56424         * lib/floorf.c: New file.
56425         * m4/floorf.m4: New file.
56426         * lib/math.in.h (floorf): New declaration.
56427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56428         HAVE_DECL_FLOORF.
56429         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56430         HAVE_DECL_FLOORF.
56431         * doc/functions/floorf.texi: Mention the 'floorf' module.
56432
56433 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56434             Bruno Haible  <bruno@clisp.org>
56435
56436         Advertise for the Git server instead of the CVS server.
56437         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56438         repository instead of the CVS one.
56439         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56440         about all VCS systems generically.
56441         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56442
56443 2007-10-04  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56446         means.
56447         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56448
56449 2007-10-04  Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/truncl-tests: New file.
56452         * tests/test-truncl.c: New file.
56453
56454         * modules/truncl: New file.
56455         * lib/truncl.c: New file.
56456         * m4/truncl.m4: New file.
56457         * lib/math.in.h (truncl): New declaration.
56458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56459         HAVE_DECL_TRUNCL.
56460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56461         HAVE_DECL_TRUNCL.
56462         * doc/functions/truncl.texi: Mention the 'truncl' module.
56463
56464 2007-10-04  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/truncf-tests: New file.
56467         * tests/test-truncf.c: New file.
56468
56469         * modules/truncf: New file.
56470         * lib/trunc.c: Make paramerizable through USE_* macros.
56471         * lib/truncf.c: New file.
56472         * m4/truncf.m4: New file.
56473         * lib/math.in.h (truncf): New declaration.
56474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56475         HAVE_DECL_TRUNCF.
56476         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56477         HAVE_DECL_TRUNCF.
56478         * doc/functions/truncf.texi: Mention the 'truncf' module.
56479
56480 2007-10-03  Bruno Haible  <bruno@clisp.org>
56481
56482         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56483         augmentation also for tests modules.
56484         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56485         * modules/atexit-tests (Makefile.am): Likewise.
56486         * modules/binary-io-tests (Makefile.am): Likewise.
56487         * modules/c-strcase-tests (Makefile.am): Likewise.
56488         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56489         * modules/canonicalize-tests (Makefile.am): Likewise.
56490         * modules/closein-tests (Makefile.am): Likewise.
56491         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56492         * modules/freadahead-tests (Makefile.am): Likewise.
56493         * modules/fseek-tests (Makefile.am): Likewise.
56494         * modules/fseeko-tests (Makefile.am): Likewise.
56495         * modules/ftell-tests (Makefile.am): Likewise.
56496         * modules/ftello-tests (Makefile.am): Likewise.
56497         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56498         * modules/isnanl-tests (Makefile.am): Likewise.
56499         * modules/lseek-tests (Makefile.am): Likewise.
56500         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56501         * modules/mbscasestr-tests (Makefile.am): Likewise.
56502         * modules/mbschr-tests (Makefile.am): Likewise.
56503         * modules/mbscspn-tests (Makefile.am): Likewise.
56504         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56505         * modules/mbspbrk-tests (Makefile.am): Likewise.
56506         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56507         * modules/mbsrchr-tests (Makefile.am): Likewise.
56508         * modules/mbsspn-tests (Makefile.am): Likewise.
56509         * modules/mbsstr-tests (Makefile.am): Likewise.
56510         * modules/printf-posix-tests (Makefile.am): Likewise.
56511         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56512         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56513         * modules/tsearch-tests (Makefile.am): Likewise.
56514         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56515         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56516         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56517         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56518         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56519         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56520         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56521         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56522         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56523         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56524         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56525         * modules/xstrtol-tests (Makefile.am): Likewise.
56526         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56527         * modules/yesno-tests (Makefile.am): Likewise.
56528
56529 2007-10-03  Bruno Haible  <bruno@clisp.org>
56530
56531         * modules/trunc-tests: New file.
56532         * tests/test-trunc.c: New file.
56533
56534         * modules/trunc: New file.
56535         * lib/trunc.c: New file.
56536         * m4/trunc.m4: New file.
56537         * lib/math.in.h (trunc): New declaration.
56538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56539         HAVE_DECL_TRUNC.
56540         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56541         HAVE_DECL_TRUNC.
56542         * doc/functions/trunc.texi: Mention the 'trunc' module.
56543
56544 2007-10-03  Bruno Haible  <bruno@clisp.org>
56545
56546         * tests/test-fpending.c: New file, mostly copied
56547         from coreutils/lib/t-fpending.c.
56548         * modules/fpending-tests: New file.
56549
56550 2007-10-03  Bruno Haible  <bruno@clisp.org>
56551
56552         Port the stdio extensions to QNX (untested).
56553         * lib/fseterr.c (fseterr): Add support for QNX.
56554         * lib/fbufmode.c (fbufmode): Likewise.
56555         * lib/freadable.c (freadable): Likewise.
56556         * lib/fwritable.c (fwritable): Likewise.
56557         * lib/freading.c (freading): Likewise.
56558         * lib/fwriting.c (fwriting): Likewise.
56559         * lib/freadahead.c (freadahed): Likewise.
56560         * lib/fpurge.c (fpurge): Likewise.
56561         * lib/fseeko.c (rpl_fseeko): Likewise.
56562
56563 2007-10-03  Bruno Haible  <bruno@clisp.org>
56564             Jim Meyering  <jim@meyering.net>
56565             Eric Blake  <ebb9@byu.net>
56566
56567         * doc/relocatable.texi: Use @command instead of @program.
56568
56569 2007-10-02  Jim Meyering  <jim@meyering.net>
56570
56571         Perform one more "_.h" -> ".in.h" substitution.
56572         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56573         instead of unistd_.h here, too.
56574
56575 2007-10-01  Bruno Haible  <bruno@clisp.org>
56576
56577         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56578         Needed for the alloca-opt module.
56579
56580 2007-09-30  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56583         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56584         alloca_.h.
56585         * lib/argz.in.h: Renamed from lib/argz_.h.
56586         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56587         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56588         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56589         byteswap_.h.
56590         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56591         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56592         dirent_.h.
56593         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56594         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56595         fcntl_.h.
56596         * lib/float.in.h: Renamed from lib/float_.h.
56597         * modules/float (Files, Makefile.am): Use float.in.h instead of
56598         float_.h.
56599         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56600         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56601         fnmatch_.h.
56602         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56603         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56604         getopt_.h.
56605         * lib/glob.in.h: Renamed from lib/glob_.h.
56606         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56607         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56608         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56609         iconv_.h.
56610         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56611         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56612         inttypes_.h.
56613         * lib/locale.in.h: Renamed from lib/locale_.h.
56614         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56615         locale_.h.
56616         * lib/math.in.h: Renamed from lib/math_.h.
56617         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56618         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56619         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56620         of netinet_in_.h. Add dependency.
56621         * lib/poll.in.h: Renamed from lib/poll_.h.
56622         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56623         * lib/search.in.h: Renamed from lib/search_.h.
56624         * modules/search (Files, Makefile.am): Use search.in.h instead of
56625         search_.h.
56626         * lib/signal.in.h: Renamed from lib/signal_.h.
56627         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56628         _signal.h.
56629         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56630         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56631         stdbool_.h.
56632         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56633         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56634         stdint_.h.
56635         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56636         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56637         stdio_.h.
56638         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56639         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56640         stdlib_.h.
56641         * lib/string.in.h: Renamed from lib/string_.h.
56642         * modules/string (Files, Makefile.am): Use string.in.h instead of
56643         string_.h.
56644         * doc/gnulib-tool.texi (Initial import): Update.
56645         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56646         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56647         of sys_select_.h. Add dependency.
56648         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56649         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56650         of sys_socket_.h.
56651         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56652         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56653         sys_stat_.h.
56654         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56655         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56656         sys_time_.h.
56657         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56658         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56659         sysexits_.h.
56660         * lib/time.in.h: Renamed from lib/time_.h.
56661         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56662         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56663         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56664         unistd_.h.
56665         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56666         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56667         wchar_.h.
56668         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56669         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56670         wctype_.h.
56671         * build-aux/bootstrap (slurp): Update.
56672         * lib/.cppi-disable: Update.
56673
56674 2007-09-30  Bruno Haible  <bruno@clisp.org>
56675
56676         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56677         Needed on BeOS.
56678
56679 2007-09-30  Bruno Haible  <bruno@clisp.org>
56680
56681         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56682
56683 2007-09-29  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56686
56687 2007-09-29  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56690         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56691         * build-aux/install-reloc: Compile also areadlink.c.
56692         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56693
56694 2007-09-29  Bruno Haible  <bruno@clisp.org>
56695
56696         * gnulib-tool (func_emit_initmacro_done): Indentation.
56697
56698 2007-09-29  Bruno Haible  <bruno@clisp.org>
56699
56700         * README: Add CVS checkout update instructions.
56701         Info from Bob Proulx <bob@proulx.com>.
56702
56703 2007-09-28  Eric Blake  <ebb9@byu.net>
56704
56705         Provide move-if-change.
56706         * build-aux/move-if-change: New file, based on best practice
56707         rather than any canonical upstream location.
56708
56709 2007-09-28  Jim Meyering  <jim@meyering.net>
56710
56711         Fix canonicalize loop-detection corner case.
56712         Do not attempt to stat the symlink values stored via seen_triple.
56713         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56714         on linux-2.6.18, (but not 2.6.22).
56715         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56716         triple_compare.  The former compares dev,ino,filename, while the latter
56717         would actually stat dirname(filename) when dev and ino were equal.
56718         * lib/hash-triple.c: Install <string.h>.
56719         (STREQ): Define.
56720         (triple_compare_ino_str): New function.
56721         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56722
56723 2007-09-28  Eric Blake  <ebb9@byu.net>
56724
56725         Enforce that AC_REPLACE_FUNCS files exist.
56726         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56727         override check for typos.
56728
56729         Fix test-closein on Solaris 10.
56730         * tests/test-closein.c (main): Don't assume stdin can be inherited
56731         closed on all systems.
56732         * tests/test-closein.sh: Likewise.
56733         Reported by Piotr Tarnowski.
56734
56735 2007-09-28  Jim Meyering  <jim@meyering.net>
56736
56737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56738
56739 2007-09-27  Jim Meyering  <jim@meyering.net>
56740
56741         canonicalize: Avoid a false-positive cycle failure.
56742         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56743         Sort.  Remove cycle-check.
56744         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56745         not cycle-check.h.
56746         (seen_triple): New function.
56747         (canonicalize_filename_mode): Use it instead of cycle-check.
56748         * tests/test-canonicalize.c: Add a test for this bug.
56749         * tests/test-canonicalize.sh: Set up and run the test.
56750
56751         New module, file-set, from coreutils.
56752         * modules/file-set: Define it.
56753         * lib/file-set.c, lib/file-set.h: Implement.
56754
56755         New module, hash-triple, from coreutils.
56756         * modules/hash-triple: Define it.
56757         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56758
56759 2007-09-25  Eric Blake  <ebb9@byu.net>
56760
56761         Fix strerror on Interix.
56762         * lib/string_.h (strerror): Declare replacement.
56763         * doc/functions/strerror.texi (strerror): Document the Interix
56764         shortcoming.
56765         * modules/string (Makefile.am): Support new hooks.
56766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56767         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56768         gl_FUNC_STRERROR_SEPARATE.
56769         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56770         * lib/strerror.c (rpl_strerror): Provide replacement.
56771         * modules/strerror (Depends-on): Add string.
56772         (configure.ac): Detect use of module.
56773         * tests/test-strerror.c: New file.
56774         * modules/strerror-tests: New test module.
56775         * modules/argp (Depends-on): Add strerror.
56776         * modules/error (Depends-on): Likewise.
56777         Reported by Martin Koeppe.
56778
56779 2007-09-24  Bruno Haible  <bruno@clisp.org>
56780
56781         * README: Update git instructions.
56782
56783 2007-09-24  Eric Blake  <ebb9@byu.net>
56784
56785         Revert fpending breakage from 2007-09-08.
56786         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56787         __fpending.c.
56788
56789 2007-09-24  Jim Meyering  <jim@meyering.net>
56790
56791         filenamecat.c: Add a test.
56792         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56793         showing how the function works when DIR is the empty string.
56794
56795 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56796
56797         * tests/test-canonicalize.sh: Turn on executable bit.
56798
56799 2007-09-19  Eric Blake  <ebb9@byu.net>
56800
56801         * README: Update CVS instructions.
56802
56803 2007-09-18  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/areadlink: New file.
56806         * lib/areadlink.h (areadlink): New declaration.
56807         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56808
56809 2007-09-17  Jim Meyering  <jim@meyering.net>
56810
56811         * lib/savewd.c (ESTALE) [!defined]: Define.
56812         Reported to be required on Interix by Martin Koeppe.
56813
56814 2007-09-17  Bruno Haible  <bruno@clisp.org>
56815
56816         * gnulib-tool (func_version): Use $version.
56817
56818 2007-09-16  Bruno Haible  <bruno@clisp.org>
56819
56820         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56821         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56822         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56823         Reported by Greg Schafer <gschafer@zip.com.au>.
56824
56825 2007-09-15  Bruno Haible  <bruno@clisp.org>
56826
56827         * gnulib-tool (sed): Try a little harder to make bash understand the
56828         alias.
56829         Reported by Bruce Korb <bruce.korb@gmail.com>.
56830
56831 2007-09-13  Eric Blake  <ebb9@byu.net>
56832
56833         * ChangeLog: Remove conflict markers.
56834
56835 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56836
56837         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56838         Reported by Bruno Haible <bruno@clisp.org>.
56839
56840 2007-09-12  Bruno Haible  <bruno@clisp.org>
56841
56842         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56843         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56844         is not defined.
56845
56846 2007-09-12  Eric Blake  <ebb9@byu.net>
56847
56848         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56849         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56850         Autoconf definition.
56851         * modules/euidaccess (Depends-on): Add extensions, for
56852         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56853         * modules/fnmatch (Depends-on): Likewise.
56854         * modules/getaddrinfo (Depends-on): Likewise.
56855         * modules/getdelim (Depends-on): Likewise.
56856         * modules/getline (Depends-on): Likewise.
56857         * modules/getsubopt (Depends-on): Likewise.
56858         * modules/gettext (Depends-on): Likewise.
56859         * modules/group-member (Depends-on): Likewise.
56860         * modules/mbchar (Depends-on): Likewise.
56861         * modules/memmem (Depends-on): Likewise.
56862         * modules/mempcpy (Depends-on): Likewise.
56863         * modules/memrchr (Depends-on): Likewise.
56864         * modules/pagealign_alloc (Depends-on): Likewise.
56865         * modules/readutmp (Depends-on): Likewise.
56866         * modules/stpcpy (Depends-on): Likewise.
56867         * modules/stpncpy (Depends-on): Likewise.
56868         * modules/strchrnul (Depends-on): Likewise.
56869         * modules/strndup (Depends-on): Likewise.
56870         * modules/strsep (Depends-on): Likewise.
56871         * modules/strverscmp (Depends-on): Likewise.
56872         * modules/vasprintf (Depends-on): Likewise.
56873         * modules/wcwidth (Depends-on): Likewise.
56874         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56875         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56876         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56880         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56881         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56882         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56883         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56885         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56886         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56888         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56889         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56891         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56894         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56895         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56896         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56897         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56898         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56900         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56901         so that lock.m4 can be used in gettext without extensions module.
56902
56903 2007-09-11  Bruno Haible  <bruno@clisp.org>
56904
56905         * m4/isc-posix.m4: Remove file.
56906         Suggested by Eric Blake.
56907
56908 2007-09-11  Eric Blake  <ebb9@byu.net>
56909
56910         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56911
56912 2007-09-10  Bruno Haible  <bruno@clisp.org>
56913
56914         * posix-modules: Fix typo in error message.
56915         Reported by Matt <mkraai@beckman.com>.
56916
56917 2007-09-09  Bruno Haible  <bruno@clisp.org>
56918
56919         * doc/functions/getdelim.texi: Update list of platforms lacking the
56920         function.
56921         * doc/functions/getline.texi: Likewise.
56922
56923 2007-09-09  Jim Meyering  <jim@meyering.net>
56924
56925         * lib/hash.c (hash_initialize): Detect calloc failure.
56926         Reported by Bruno Haible.
56927
56928 2007-09-09  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56931         malloc or realloc fails.
56932
56933 2007-09-09  Bruno Haible  <bruno@clisp.org>
56934
56935         * modules/getcwd (Depends-on): Add malloc-posix.
56936         * modules/glob (Depends-on): Likewise.
56937         * modules/putenv (Depends-on): Likewise.
56938         * modules/strdup (Depends-on): Likewise.
56939         * modules/getdelim (Depends-on): Add realloc-posix.
56940         * modules/read-file (Depends-on): Likewise.
56941
56942 2007-09-09  Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56945         (gl_FUNC_MALLOC_POSIX): Require it.
56946         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56947         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56948         * modules/realloc (Files): Add m4/malloc.m4.
56949         * modules/calloc (Files): Likewise.
56950
56951 2007-09-09  Bruno Haible  <bruno@clisp.org>
56952
56953         * modules/malloc-posix: New file.
56954         * modules/malloc (Depends-on): Add malloc-posix.
56955         * lib/malloc.c: Include errno.h.
56956         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56957         and a POSIX-compatible malloc into a single function. Set ENOMEM
56958         when returning NULL.
56959         * m4/malloc.m4: New file.
56960         * doc/functions/malloc.texi: Mention the malloc-posix module.
56961         * lib/stdlib_.h (malloc): New declaration.
56962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56963         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56964         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56965         and HAVE_MALLOC_POSIX.
56966
56967 2007-09-09  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/realloc-posix: New file.
56970         * modules/realloc (Depends-on): Add realloc-posix.
56971         * lib/realloc.c: Include errno.h.
56972         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56973         and a POSIX-compatible realloc into a single function. Set ENOMEM
56974         when returning NULL.
56975         * m4/realloc.m4: New file.
56976         * doc/functions/realloc.texi: Mention the realloc-posix module.
56977         * lib/stdlib_.h (realloc): New declaration.
56978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56979         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56980         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56981         and HAVE_REALLOC_POSIX.
56982
56983 2007-09-09  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/calloc-posix: New file.
56986         * modules/calloc (Depends-on): Add calloc-posix.
56987         * lib/calloc.c: Include errno.h.
56988         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56989         and a POSIX-compatible calloc into a single function. Set ENOMEM
56990         when returning NULL.
56991         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56992         * doc/functions/calloc.texi: Mention the calloc-posix module.
56993         * lib/stdlib_.h (calloc): New declaration.
56994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56995         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56996         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56997         and HAVE_CALLOC_POSIX.
56998
56999 2007-09-09  Bruno Haible  <bruno@clisp.org>
57000
57001         Allow for modules to show an arbitrary notice.
57002         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57003         * gnulib-tool: New option --extract-notice.
57004         (func_usage): Document it.
57005         (sed_extract_prog): Update.
57006         (func_get_notice): New function.
57007         (func_modules_notice): New function.
57008         (func_import, func_create_testdir): Invoke it.
57009         Suggested by Jim Meyering.
57010
57011 2007-09-09  Bruno Haible  <bruno@clisp.org>
57012
57013         * gnulib-tool: New options --verbose, --quiet.
57014         (func_usage): Document them.
57015         (verbose): New variable.
57016         (func_execute_command): New function.
57017         (func_import): Don't show the module list and the file list if
57018         $verbose < 0.
57019         (func_create_testdir): Likewise. Use func_execute_command.
57020         (func_create_megatestdir): Use func_execute_command.
57021
57022 2007-09-08  Bruno Haible  <bruno@clisp.org>
57023
57024         * gnulib-tool (func_import): Prefer rsync over wget when available,
57025         for fetching the PO files.
57026
57027 2007-09-08  Bruno Haible  <bruno@clisp.org>
57028
57029         * posix-modules: New file. Portions copied from gnulib-tool.
57030         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57031
57032 2007-09-08  Jim Meyering  <jim@meyering.net>
57033
57034         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57035         * lib/fpending.h: Rename from __fpending.h.
57036         * lib/fpending.c: Rename from __fpending.c.
57037         Include "fpending.h", not "__fpending.h".
57038         * lib/__fpending.h, lib/__fpending.c: Remove files.
57039         * modules/fpending (Files): Reflect new file names.
57040         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57041
57042 2007-09-08  Bruno Haible  <bruno@clisp.org>
57043
57044         * m4/inttypes-h.m4: Remove stub file.
57045
57046 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57047
57048         * doc/headers/stdint.texi: Discuss #include_next issue.
57049
57050 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57051
57052         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57053
57054 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57055
57056         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57057         in variable name.
57058
57059 2007-09-03  Jim Meyering  <jim@meyering.net>
57060
57061         New module: git-version-gen.
57062         * modules/git-version-gen: New file.
57063
57064         Import changes from coreutils for bootstrap script.
57065
57066         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57067
57068         bootstrap: uses rsync to download the .po files
57069         * build-aux/bootstrap (po_download_command_format): New global.
57070         (download_po_files): Use rsync.
57071         (update_po_files): Don't remove .po files after download,
57072         so future rsync runs can take advantage of the copies.
57073
57074         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57075
57076         Solve the unnecessary-.po-file-regeneration problem once and for all.
57077         * build-aux/bootstrap (download_po_files): New function, renamed from
57078         get_translations.  Now, downloads, but doesn't update LINGUAS.
57079         (update_po_files): New function.
57080
57081         bootstrap: Ignore more.
57082         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57083         uniwidth to e.g., lib/.gitignore.
57084         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57085
57086         * build-aux/bootstrap: New setting: vc_ignore.
57087         (insert_sorted_if_absent): Create $file if absent.
57088         Adapt to new, possibly empty, list: $vc_ignore.
57089
57090         bootstrap: generate more ignorable names
57091         * build-aux/bootstrap (slurp): When generating ignorable names,
57092         also map .sin to .sed, .gperf to .c, and .y to .c.
57093
57094 2007-09-03  Jim Meyering  <jim@meyering.net>
57095
57096         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57097         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57098
57099 2007-09-02  Bruno Haible  <bruno@clisp.org>
57100
57101         Fix mis-recognition of 'mcs' on QNX 6.
57102         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57103         output contains the string "Mono".
57104         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57105         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57106
57107 2007-09-01  Bruno Haible  <bruno@clisp.org>
57108
57109         Fix collision between uniwidth/* and linebreak modules.
57110         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57111         u32_width): Remove declarations.
57112         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57113         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57114         streq3, streq2, streq1, streq0): Remove functions.
57115         (STREQ): Remove macro.
57116         (is_cjk_encoding): Remove function.
57117         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57118         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57119         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57120         * NEWS: Document the change.
57121
57122 2007-09-01  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/streq.h: Add double-inclusion guard.
57125
57126 2007-09-01  Karl Berry  <karl@gnu.org>
57127
57128         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57129
57130 2007-08-28  Jim Meyering  <jim@meyering.net>
57131
57132         Rename mreadlink_with_size to areadlink_with_size.
57133         * NEWS: Document the change.
57134         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57135         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57136         * lib/mreadlink.h: Rename this to...
57137         * lib/areadlink.h: ...this.
57138         * modules/mreadlink-with-size: Rename this to...
57139         * modules/areadlink-with-size: ...this.
57140         * lib/canonicalize.c: Reflect the renaming.
57141         * modules/canonicalize: Likewise.
57142
57143 2007-08-26  Bruno Haible  <bruno@clisp.org>
57144
57145         * gnulib-tool (func_import): When deciding which files to remove,
57146         consider also dangling symbolic links.
57147         Reported by Eric Blake.
57148
57149 2007-08-26  Bruno Haible  <bruno@clisp.org>
57150
57151         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57152
57153 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57154
57155         * lib/readline.c: Don't include getline.h, the prototype is now
57156         found in stdio.h.
57157
57158 2007-08-23  Jim Meyering  <jim@meyering.net>
57159
57160         Getdelim touchup.
57161         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57162         around the funlockfile call, since funlockfile never sets errno.
57163         Don't set errno upon failed realloc.
57164
57165 2007-08-22  Eric Blake  <ebb9@byu.net>
57166
57167         Getline touchups.
57168         * lib/getdelim.c (getdelim): Revert regression that required *n to
57169         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57171         getdelim, rather than whether implementation is missing.
57172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57173         * lib/stdio_.h (getline): Also declare if replacement is
57174         required.
57175         * doc/functions/getdelim.texi: New file.
57176         * doc/functions/getline.texi: Likewise.
57177         * doc/gnulib.texi (Function Substitutes): Add new files.
57178         Reported by Bruno Haible.
57179
57180 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57181
57182         * users.txt: Add Guile.
57183
57184 2007-08-22  Eric Blake  <ebb9@byu.net>
57185
57186         * tests/test-getdelim.c (main): Use remove, not unlink.
57187         * tests/test-getline.c (main): Likewise.
57188
57189         Move getline and getdelim into stdio.h, per POSIX 200x.
57190         * modules/getline (Files): Remove getline.h.
57191         (Depends-on): Add stdio.
57192         (configure.ac): Add module indicator.
57193         * modules/getdelim (Files): Remove getdelim.h.
57194         (Depends-on): Add stdio.
57195         (configure.ac): Add module indicator.
57196         * modules/stdio (Makefile.am): Work with new indicators.
57197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57199         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57200         * lib/getdelim.h: Delete.
57201         * lib/getline.h: Delete.
57202         * lib/stdio_.h (getdelim, getline): Declare.
57203         * modules/getdelim-tests: New module.
57204         * modules/getline-tests: Likewise.
57205         * tests/test-getdelim.c: New file.
57206         * tests/test-getline.c: Likewise.
57207         * NEWS: Document the change.
57208         * lib/getline.c: Update choice of header.
57209         * lib/csharpcomp.c: Likewise.
57210         * lib/getpass.c: Likewise.
57211         * lib/javacomp.c: Likewise.
57212         * lib/javaversion.c: Likewise.
57213         * lib/yesno.c: Likewise.
57214         * lib/getdelim.c: Likewise.
57215         (getdelim): Set errno on failure, and avoid memory leak.
57216
57217 2007-08-19  Bruno Haible  <bruno@clisp.org>
57218
57219         * modules/closein (Depends-on): Add freadahead.
57220         * lib/closein.c: Include freadahead.h.
57221         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57222         is zero.
57223
57224 2007-08-19  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/freadahead-tests: New file.
57227         * tests/test-freadahead.sh: New file.
57228         * tests/test-freadahead.c: New file.
57229
57230         * modules/freadahead: New file.
57231         * lib/freadahead.h: New file.
57232         * lib/freadahead.c: New file.
57233         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57234         fbufmode, fpurge, freadable, fwritable.
57235
57236 2007-08-19  Eric Blake  <ebb9@byu.net>
57237
57238         Test yesno in combination with closein.
57239         * lib/yesno.c (yesno): Document use of stdin.
57240         * modules/yesno-tests (Files): New module.
57241         * tests/test-yesno.c (main): New file.
57242         * tests/test-yesno.sh: Likewise.
57243
57244 2007-08-19  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57247         * lib/fseeko.c (rpl_fseeko): Likewise.
57248         * lib/fseterr.c (fseterr): Likewise.
57249
57250 2007-08-19  Bruno Haible  <bruno@clisp.org>
57251
57252         * tests/test-lseek.c (main): Disable a test for BeOS.
57253         * doc/functions/lseek.texi: Document the BeOS bug.
57254
57255 2007-08-19  Bruno Haible  <bruno@clisp.org>
57256             Eric Blake  <ebb9@byu.net>
57257
57258         * lib/lseek.c: Include <sys/stat.h>.
57259         (rpl_lseek): Add workaround code also for Unix platforms.
57260         Needed for BeOS.
57261         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57262         * doc/functions/lseek.texi: Document BeOS definiency.
57263
57264 2007-08-18  Bruno Haible  <bruno@clisp.org>
57265
57266         * modules/fstrcmp-tests: New file.
57267         * tests/test-fstrcmp.c: New file.
57268
57269 2007-08-18  Bruno Haible  <bruno@clisp.org>
57270
57271         * modules/fstrcmp: New file, from GNU gettext with modifications.
57272         * lib/fstrcmp.h: New file, from GNU gettext.
57273         * lib/fstrcmp.c: New file, from GNU gettext.
57274         * MODULES.html.sh (String handling): Add fstrcmp.
57275
57276 2007-08-18  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57279         'bool'.
57280         (diag, compareseq): Remove const from the ctxt argument.
57281         (USE_HEURISTIC): Undefine at the end.
57282
57283 2007-08-18  Jim Meyering  <jim@meyering.net>
57284
57285         New file: lib/idcache.h
57286         * NEWS: Mention the addition.
57287         * modules/idcache (Files): Add lib/idcache.h
57288         * lib/idcache.c: Include "idcache.h".
57289         Don't include <sys/types.h>.
57290         Add a FIXME comment.
57291         Move file-scoped "static" declarations to the top.
57292         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57293
57294 2007-08-17  Bruno Haible  <bruno@clisp.org>
57295         and Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         * MODULES.html.sh: Add diffseq.
57298         * modules/diffseq: New file.
57299         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57300         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57301
57302 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         Import changes from coreutils for bootstrap script.
57305
57306         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57307
57308         * build-aux/bootstrap (slurp): Work even in environments where
57309         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57310         current code does not slurp files whose names start with ".", and
57311         this looks like it might be a troublesome area.
57312
57313         2007-07-11  Jim Meyering  <jim@meyering.net>
57314
57315         If there's a GPL vN copyright comment, require that N == 3.
57316
57317         2007-07-08  Jim Meyering  <jim@meyering.net>
57318
57319         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57320         * build-aux/bootstrap (mam_template): Move definition out of loop.
57321
57322         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57323
57324         * build-aux/bootstrap (symlink_to_dir): Rename function from
57325         symlink_to_gnulib.  Add a directory parameter.  Update all
57326         callers.
57327         (cp_mark_as_generated): Also check for -- and link to -- files in
57328         gl/.
57329
57330         2007-07-08  Jim Meyering  <jim@meyering.net>
57331
57332         Adapt to deeper hierarchy in gnulib.
57333         * build-aux/bootstrap (symlink_to_dir): If the destination
57334         directory doesn't exist, create it. This is required at least for
57335         "lib/uniwidth/cjk.h".
57336
57337         2007-05-15  Jim Meyering  <jim@meyering.net>
57338
57339         * build-aux/bootstrap: Now that generated Makefile.am files
57340         are no longer under version control, they must be created at
57341         bootstrap time.
57342
57343 2007-08-14  Ben Pfaff  <blp@gnu.org>
57344
57345         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57346
57347 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57348
57349         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57350         given the changes below.
57351         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57352         even on hosts that have padding bits beyond the supported 64.
57353
57354 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57357         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57358         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57359         depends on it.
57360         (xstrtol_error): Remove.
57361         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57362         but with a different signature.
57363         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57364         * lib/xstrtol-error.c: Include exitfail.h.
57365         (xstrtol_fatal): New function, with a different signature from the
57366         old xstrtol_error, so that the caller need not worry about passing
57367         in an exit status, or about storage management of the option argument.
57368         (xstrtol_error): Now a static function.  Redo signature to
57369         implement xstrtol_fatal.  Output the correct number of hyphens in
57370         front of the option so that the caller need not worry about
57371         storage management.
57372         (N_): New macro.
57373         (_): Remove; not used now.
57374         * modules/xstrtol: Depend on getopt.
57375         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57376         of old STRTOL_FATAL_ERROR macro.
57377         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57378         of test program.
57379         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57380         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57381
57382 2007-08-08  Eric Blake  <ebb9@byu.net>
57383
57384         * lib/xstrtol-error.c: Add missing include.
57385
57386         Move xstrtol messages into gnulib domain, when --pobase is used.
57387         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57388         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57389         * modules/xstrtol (Files): Distribute new file.
57390         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57391         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57392         * tests/test-xstrtol.c: ...into new file.
57393         * tests/test-xstrtoul.c: Also test xstrtoul.
57394         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57395         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57396         * tests/test-xstrtol.sh: Drive the tests.
57397         * tests/test-xstrtoimax.sh: Likewise.
57398         * tests/test-xstrtoumax.sh: Likewise.
57399         * modules/xstrtol-tests: New module.
57400         * modules/xstrtoimax-tests: Likewise.
57401         * modules/xstrtoumax-tests: Likewise.
57402
57403 2007-08-08  Jim Meyering  <jim@meyering.net>
57404
57405         New function: mfile_name_concat.
57406         * lib/filenamecat.c (mfile_name_concat): New function, just like
57407         file_name_concat, but return NULL upon failure rather than exiting
57408         with a diagnostic.
57409         * lib/filenamecat.h: Declare it.
57410
57411 2007-08-07  Bruno Haible  <bruno@clisp.org>
57412
57413         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57414         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57415         warning from gcc.
57416         Reported by Eric Blake.
57417
57418 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57419
57420         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57421         * modules/crypto/arcfour (License): Likewise.
57422         * modules/crypto/des-tests (License): Likewise.
57423         * modules/crypto/gc-arctwo-tests (License): Likewise.
57424         * modules/crypto/gc-des-tests (License): Likewise.
57425         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57426         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57427         * modules/crypto/gc-md2-tests (License): Likewise.
57428         * modules/crypto/gc-md4-tests (License): Likewise.
57429         * modules/crypto/gc-md5-tests (License): Likewise.
57430         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57431         * modules/crypto/gc-rijndael-tests (License): Likewise.
57432         * modules/crypto/gc-sha1-tests (License): Likewise.
57433         * modules/crypto/gc-tests (License): Likewise.
57434         * modules/crypto/hmac-md5 (License): Likewise.
57435         * modules/crypto/hmac-sha1 (License): Likewise.
57436         * modules/crypto/md2-tests (License): Likewise.
57437         * modules/crypto/md4-tests (License): Likewise.
57438         * modules/crypto/md5 (License): Likewise.
57439         * modules/crypto/rijndael (License): Likewise.
57440         * modules/crypto/sha1 (License): Likewise.
57441         * modules/memxor (License): Likewise.
57442
57443 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57444         and Bruno Haible  <bruno@clisp.org>
57445
57446         * NEWS: Describe interface changes to human, xstrtol.
57447         * lib/human.h: Include <xstrtol.h>.
57448         (human_options): Return enum strtol_error, not int.  Remove
57449         bool arg; take int * instead.
57450         * lib/human.c: Don't include "gettext.h".
57451         (_): Remove; no longer used.
57452         Don't include <xstrtol.h>, since human.h does it.
57453         (human_options): Adjust to abovementioned interface changes.
57454         Do not report error to stderr; that's now the caller's
57455         responsibility.
57456         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57457         interface change.
57458         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57459         Str, Argument_type_string.  All uses changed.  Put " argument"
57460         in diagnostics to make them clearer.  Change wording of suffix
57461         message for clarity.
57462         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57463         Argument_type_string.
57464         (STRTOL_FATAL_WARN): Remove; no longer used.
57465         * modules/human (Depends-on): Remove gettext-h.
57466
57467 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57468
57469         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57470
57471 2007-07-31  Bruno Haible  <bruno@clisp.org>
57472
57473         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57474         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57475         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57476
57477 2007-07-31  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57480         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57481
57482 2007-07-30  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57485         * modules/c-ctype (License): Likewise.
57486         * modules/c-strcase (License): Likewise.
57487         * modules/check-version (License): Likewise.
57488         * modules/iconv (License): Likewise.
57489         * modules/iconv_open (License): Likewise.
57490         * modules/read-file (License): Likewise.
57491         * modules/striconv (License): Likewise.
57492         * modules/strverscmp (License): Likewise.
57493         * modules/vasprintf (License): Likewise.
57494         * modules/crypto/des (License): Likewise.
57495         * modules/crypto/gc (License): Likewise.
57496         * modules/crypto/gc-arcfour (License): Likewise.
57497         * modules/crypto/gc-arctwo (License): Likewise.
57498         * modules/crypto/gc-des (License): Likewise.
57499         * modules/crypto/gc-hmac-md5 (License): Likewise.
57500         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57501         * modules/crypto/gc-md2 (License): Likewise.
57502         * modules/crypto/gc-md4 (License): Likewise.
57503         * modules/crypto/gc-md5 (License): Likewise.
57504         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57505         * modules/crypto/gc-random (License): Likewise.
57506         * modules/crypto/gc-rijndael (License): Likewise.
57507         * modules/crypto/gc-sha1 (License): Likewise.
57508         * modules/crypto/md2 (License): Likewise.
57509         * modules/crypto/md4 (License): Likewise.
57510
57511 2007-07-30  Jim Meyering  <jim@meyering.net>
57512
57513         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57514         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57515         it has valid stat data.  This bug would cause du not to count the
57516         sizes of inaccessible directories.
57517         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57518         in <http://bugzilla.redhat.com/250077>.
57519
57520 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57521             Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57524         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57525         #include_next, gives a diagnostic about it, but reports no error in
57526         the exit code.
57527         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57528
57529 2007-07-24  Ben Pfaff  <blp@gnu.org>
57530
57531         Improve name: "count-one-bits" is better than "popcount".
57532         * MODULES.html.sh: Update name.
57533         * lib/popcount.h: Renamed lib/count-one-bits.h.
57534         (popcount): Renamed count_one_bits.
57535         (popcountl): Renamed count_one_bits_l.
57536         (popcountll): Renamed count_one_bits_ll.
57537         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57538         * modules/popcount: Renamed module/count-one-bits.
57539         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57540         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57541
57542 2007-07-23  Ben Pfaff  <blp@gnu.org>
57543
57544         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57545         better code generation, and add U to large constants to avoid
57546         warnings, in non-GCC case.
57547         Suggested by Bruno Haible.
57548
57549 2007-07-23  Ben Pfaff  <blp@gnu.org>
57550
57551         * lib/popcount.h: Use verify_true instead of if...abort.
57552         * modules/popcount: Depend on verify module.
57553         Suggested by Jim Meyering.
57554
57555 2007-07-23  Bruno Haible  <bruno@clisp.org>
57556
57557         * gnulib-tool (func_import): Create a .cvsignore file also when the
57558         directory is not yet in CVS but the toplevel directory is. When
57559         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57560         Reported by Karl Berry.
57561
57562 2007-07-22  Ben Pfaff  <blp@gnu.org>
57563
57564         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57565         case.
57566         Suggested by Eric Blake.
57567
57568 2007-07-22  Ben Pfaff  <blp@gnu.org>
57569
57570         New module: popcount.
57571         * MODULES.html.sh: Add popcount.
57572         * modules/popcount: New file.
57573         * modules/popcount-tests: New file.
57574         * tests/test-popcount.c: New file.
57575         * lib/popcount.h: New file.
57576         * m4/popcount.m4: New file.
57577
57578 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57579
57580         * build-aux/announce-gen: Update to GPLv3.
57581
57582         * build-aux/config.guess: Update from config.
57583
57584 2007-07-21  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57587         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57588
57589 2007-07-20  Jim Meyering  <jim@meyering.net>
57590
57591         * check-module: Diagnose a self-dependency.
57592
57593 2007-07-19  Bruno Haible  <bruno@clisp.org>
57594
57595         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57596         empty.
57597         Reported by Eric Blake.
57598
57599 2007-07-18  Bruno Haible  <bruno@clisp.org>
57600
57601         * gnulib-tool: New options --po-base, --po-domain.
57602         (func_usage): Document them.
57603         (pobase, po_domain): New variables.
57604         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57605         DEFAULT_TEXT_DOMAIN.
57606         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57607         (func_import): Consider pobase and po_domain. Create a po/ directory.
57608         (func_create_testdir): Set pobase and po_domain to empty.
57609         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57610         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57611
57612 2007-07-18  Bruno Haible  <bruno@clisp.org>
57613
57614         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57615         EXTRA_DIST augmentation for files in build-aux/.
57616
57617 2007-07-16  Bruno Haible  <bruno@clisp.org>
57618
57619         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57620         * modules/getdelim (License): Likewise.
57621
57622 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57623
57624         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57625         * modules/d-type (License): Likewise.
57626         * modules/extensions (License): Likewise.
57627         * modules/fnmatch (License): Likewise.
57628         * modules/fseeko (License): Likewise.
57629         * modules/getaddrinfo (License): Likewise.
57630         * modules/getline (License): Likewise.
57631         * modules/getlogin_r (License): Likewise.
57632         * modules/getpass (License): Likewise.
57633         * modules/gettimeofday (License): Likewise.
57634         * modules/glob (License): Likewise.
57635         * modules/inet_ntop (License): Likewise.
57636         * modules/malloc (License): Likewise.
57637         * modules/malloca (License): Likewise.
57638         * modules/memmem (License): Likewise.
57639         * modules/mempcpy (License): Likewise.
57640         * modules/memset (License): Likewise.
57641         * modules/minmax (License): Likewise.
57642         * modules/mktime (License): Likewise.
57643         * modules/netinet_in (License): Likewise.
57644         * modules/pathmax (License): Likewise.
57645         * modules/poll (License): Likewise.
57646         * modules/regex (License): Likewise.
57647         * modules/snprintf (License): Likewise.
57648         * modules/stdbool (License): Likewise.
57649         * modules/stdint (License): Likewise.
57650         * modules/stdio (License): Likewise.
57651         * modules/strcase (License): Likewise.
57652         * modules/strcasestr (License): Likewise.
57653         * modules/strdup (License): Likewise.
57654         * modules/string (License): Likewise.
57655         * modules/strndup (License): Likewise.
57656         * modules/strnlen (License): Likewise.
57657         * modules/strpbrk (License): Likewise.
57658         * modules/strptime (License): Likewise.
57659         * modules/strsep (License): Likewise.
57660         * modules/sys_select (License): Likewise.
57661         * modules/sys_socket (License): Likewise.
57662         * modules/sys_stat (License): Likewise.
57663         * modules/sys_time (License): Likewise.
57664         * modules/time (License): Likewise.
57665         * modules/time_r (License): Likewise.
57666         * modules/timegm (License): Likewise.
57667         * modules/unistd (License): Likewise.
57668         * modules/vsnprintf (License): Likewise.
57669         * modules/wctype (License): Likewise.
57670
57671 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57672
57673         * modules/argz (License): LGPLv2+.
57674
57675 2007-07-15  Karl Berry  <karl@gnu.org>
57676
57677         * doc/gnulib.texi: revise node structure per new fdl.texi.
57678
57679 2007-07-14  Bruno Haible  <bruno@clisp.org>
57680
57681         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57682         the output file.
57683         * lib/uniname/uninames.h: Regenerated.
57684
57685 2007-07-14  Karl Berry  <karl@gnu.org>
57686
57687         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57688         omitting sectioning and index commands.
57689
57690 2007-07-13  Bruno Haible  <bruno@clisp.org>
57691
57692         New gnulib-tool option --more-symlinks.
57693         * gnulib-tool (func_usage): Document --more-symlinks.
57694         (do_copyrights): New variable.
57695         Recognize option --more-symlinks.
57696         (func_import): Don't add a copyright notice transform to
57697         sed_transform_lib_file if do_copyrights is empty.
57698
57699 2007-07-13  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/vasnprintf.c (decimal_point_char): Define also if
57702         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57703         && !NEED_PRINTF_DIRECTIVE_A.
57704         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57705         Gary V. Vaughan <gary@gnu.org>.
57706
57707 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57708
57709         * lib/inttypes_.h: Undo previous change, since it was fixed
57710         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57711
57712 2007-07-13  Bruno Haible  <bruno@clisp.org>
57713
57714         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57715         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57716
57717 2007-07-13  Jim Meyering  <jim@meyering.net>
57718
57719         df: Don't fail for Tru64's "file-on-file mount".
57720         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57721         so we fall through and use statfs instead.  Details here:
57722         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57723         Reported by Albert Chin.
57724
57725 2007-07-13  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57728         * modules/configmake (License): Likewise.
57729         * modules/gettext (License): Likewise.
57730         * modules/gettext-h (License): Likewise.
57731         * modules/include_next (License): Likewise.
57732         * modules/link-warning (License): Likewise.
57733         * modules/localcharset (License): Likewise.
57734         * modules/localename (License): Likewise.
57735         * modules/lock (License): Likewise.
57736         * modules/relocatable-lib-lgpl (License): Likewise.
57737         * modules/size_max (License): Likewise.
57738         * modules/vasnprintf (License): Likewise.
57739         * modules/wchar (License): Likewise.
57740         * modules/xsize (License): Likewise.
57741
57742 2007-07-13  Bruno Haible  <bruno@clisp.org>
57743
57744         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57745         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57746
57747 2007-07-12  Bruno Haible  <bruno@clisp.org>
57748
57749         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57750         in the modules files.
57751
57752 2007-07-11  Karl Berry  <karl@gnu.org>
57753
57754         * MODULES.html.sh (func_module): use
57755          sed -e '\|^'"${includefile}"'$|d'
57756          instead of /.../d, to avoid errors on $includefile's containing /.
57757
57758 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57759
57760         * gnulib-tool (func_import): Avoid duplication of --avoid
57761         statements
57762         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57763         names to `_' in variable names.
57764
57765 2007-07-10  Eric Blake  <ebb9@byu.net>
57766
57767         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57768         * NEWS: Document this change.
57769
57770 2007-07-08  Bruno Haible  <bruno@clisp.org>
57771
57772         Update to Unicode 5.0.
57773         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57774         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57775         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57776         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57777         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57778         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57779         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57780         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57781         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57782         U+10A3F, U+1D242..U+1D244.
57783         (nonspacing_table_ind): Update.
57784         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57785         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57786
57787 2007-07-08  Bruno Haible  <bruno@clisp.org>
57788
57789         Update to Unicode 5.0.
57790         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57791         code transform. Extend the name index field of unicode_name_to_code and
57792         unicode_code_to_name from 16 to 24 bits.
57793         * lib/uniname/uniname.c (unicode_character_name,
57794         unicode_name_character): Add the range 0x12xxx to the code transform.
57795         * lib/uniname/uninames.h: Regenerated.
57796         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57797
57798 2007-07-07  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/wcwidth-tests: New file.
57801         * tests/test-wcwidth.c: New file.
57802
57803         Work around MacOS X wcwidth() bug.
57804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57805         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57806         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57807         original wcwidth in non-UTF-8 locales.
57808         * modules/wcwidth (Depends-on): Add localcharset, streq,
57809         uniwidth/width.
57810         * doc/functions/wcwidth.texi: Update.
57811
57812 2007-07-07  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57815         (wcwidth): New declaration.
57816         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57817         macros.
57818         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57819         here. Prepare for creating <wchar.h> unconditionally.
57820         * modules/wchar (Depends-on): Add link-warning.
57821         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57822         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57823         * lib/wcwidth.h: Remove file.
57824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57825         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57826         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57827         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57828         (Include): Replace wcwidth.h with <wchar.h>.
57829         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57830         * lib/mbchar.h: Don't include wcwidth.h.
57831         * lib/mbswidth.c: Likewise.
57832         * NEWS: Mention the change.
57833
57834 2007-07-07  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57837         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57838         definition with an external declaration.
57839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57840         defined as a function. Remove AC_C_INLINE requirement.
57841         * modules/wcwidth (Files): Add lib/wcwidth.c.
57842         (Makefile.am): Remove redundant statement.
57843
57844 2007-07-07  Bruno Haible  <bruno@clisp.org>
57845
57846         * MODULES.html.sh (Unicode string functions): Add the new modules.
57847
57848         * tests/uniwidth/test-u32-strwidth.c: New file.
57849         * modules/uniwidth/u32-strwidth-tests: New file.
57850
57851         * lib/uniwidth/u32-strwidth.c: New file.
57852         * modules/uniwidth/u32-strwidth: New file.
57853
57854         * tests/uniwidth/test-u16-strwidth.c: New file.
57855         * modules/uniwidth/u16-strwidth-tests: New file.
57856
57857         * lib/uniwidth/u16-strwidth.c: New file.
57858         * modules/uniwidth/u16-strwidth: New file.
57859
57860         * tests/uniwidth/test-u8-strwidth.c: New file.
57861         * modules/uniwidth/u8-strwidth-tests: New file.
57862
57863         * lib/uniwidth/u8-strwidth.c: New file.
57864         * modules/uniwidth/u8-strwidth: New file.
57865
57866         * tests/uniwidth/test-u32-width.c: New file.
57867         * modules/uniwidth/u32-width-tests: New file.
57868
57869         * lib/uniwidth/u32-width.c: New file.
57870         * modules/uniwidth/u32-width: New file.
57871
57872         * tests/uniwidth/test-u16-width.c: New file.
57873         * modules/uniwidth/u16-width-tests: New file.
57874
57875         * lib/uniwidth/u16-width.c: New file.
57876         * modules/uniwidth/u16-width: New file.
57877
57878         * tests/uniwidth/test-u8-width.c: New file.
57879         * modules/uniwidth/u8-width-tests: New file.
57880
57881         * lib/uniwidth/u8-width.c: New file.
57882         * modules/uniwidth/u8-width: New file.
57883
57884         * tests/uniwidth/test-uc_width.c: New file.
57885         * modules/uniwidth/width-tests: New file.
57886
57887         * lib/uniwidth/width.c: New file, from GNU libiconv.
57888         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57889         * modules/uniwidth/width: New file.
57890
57891         * lib/uniwidth.h: New file, from GNU libiconv.
57892         * modules/uniwidth/base: New file.
57893
57894 2007-07-07  Bruno Haible  <bruno@clisp.org>
57895
57896         * lib/uniname.h: New file, from GNU gettext.
57897         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57898         * lib/uniname/uninames.h: New file, from GNU gettext.
57899         * lib/uniname/uniname.c: New file, from GNU gettext.
57900         * tests/uniname/test-uninames.sh: New file.
57901         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57902         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57903         * modules/uniname/base: New file.
57904         * modules/uniname/uniname: New file.
57905         * modules/uniname/uniname-tests: New file.
57906         * MODULES.html.sh (Unicode string functions): Add the new modules.
57907
57908 2007-07-06  Bruno Haible  <bruno@clisp.org>
57909
57910         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57911
57912 2007-07-06  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57915         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57916         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57917         include <sys/time.h>.
57918         Reported by Eric Blake.
57919
57920 2007-07-06  Eric Blake  <ebb9@byu.net>
57921
57922         Fix testing canonicalize on cygwin.
57923         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57924         Revert patch from 2007-06-19.
57925         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57926         canonicalize module is also in use.
57927         * tests/test-canonicalize.c: New file.
57928         * tests/test-canonicalize.sh: Likewise.
57929         * modules/canonicalize-tests: Likewise.
57930
57931 2007-07-06  Jim Meyering  <jim@meyering.net>
57932
57933         * lib/getugroups.c (getugroups): Detect getgrent failure.
57934         Adjust comment to reflect reality: this function may return -1.
57935
57936 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57937
57938         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57939         the new TP address.
57940         (usage): Fix typo
57941         (gnulib_mk): New variable.
57942
57943 2007-07-05  Jim Meyering  <jim@meyering.net>
57944
57945         Don't let endgrent clobber errno, no matter how improbable.
57946         * lib/getugroups.c (getugroups): Save and restore errno around
57947         endgrent call.
57948
57949         Close the group DB even when failing with 2^31 or more members.
57950         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57951
57952 2007-07-04  Jim Meyering  <jim@meyering.net>
57953
57954         * lib/getugroups.h: New file.
57955         * lib/getugroups.c: Include "getugroups.h".
57956         Remove uses of "register" keyword.
57957         Move local variable, "cp", down into scope where used.
57958         Give "username" parameter the "const" attribute.
57959         * modules/getugroups (Files): Add lib/getugroups.h
57960
57961 2007-07-04  Karl Berry  <karl@gnu.org>
57962
57963         * MODULES.html.sh (func_all_modules): Complete rename of
57964         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57965
57966 2007-07-02  Bruno Haible  <bruno@clisp.org>
57967
57968         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57969         mode, when inttypes.h comes from gnulib.
57970         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57971
57972 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57973
57974         * NEWS: Mention lgpl module name change.
57975
57976         * modules/lgpl-2.1: Renamed from lgpl.
57977
57978         * NEWS: Mention gpl module name change.
57979
57980         * modules/gpl-3.0: New file, based on gpl-2.0.
57981
57982         * modules/gpl-2.0: Renamed from gpl.
57983
57984         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57985         doc/gpl-2.0.texi.
57986
57987 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57990         #define __STDC_LIMIT_MACROS temporarily while including
57991         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57992         Problem reported by Joel E. Denny in
57993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57994
57995 2007-07-01  Bruno Haible  <bruno@clisp.org>
57996
57997         * lib/unistdio.h: New file.
57998         * lib/unistdio/u-asnprintf.h: New file.
57999         * lib/unistdio/u-asprintf.h: New file.
58000         * lib/unistdio/u-printf-args.c: New file.
58001         * lib/unistdio/u-printf-args.h: New file.
58002         * lib/unistdio/u-printf-parse.h: New file.
58003         * lib/unistdio/u-snprintf.h: New file.
58004         * lib/unistdio/u-sprintf.h: New file.
58005         * lib/unistdio/u-vasprintf.h: New file.
58006         * lib/unistdio/u-vsnprintf.h: New file.
58007         * lib/unistdio/u-vsprintf.h: New file.
58008         * lib/unistdio/ulc-asnprintf.c: New file.
58009         * lib/unistdio/ulc-asprintf.c: New file.
58010         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58011         * lib/unistdio/ulc-printf-parse.c: New file.
58012         * lib/unistdio/ulc-snprintf.c: New file.
58013         * lib/unistdio/ulc-sprintf.c: New file.
58014         * lib/unistdio/ulc-vasnprintf.c: New file.
58015         * lib/unistdio/ulc-vasprintf.c: New file.
58016         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58017         * lib/unistdio/ulc-vsnprintf.c: New file.
58018         * lib/unistdio/ulc-vsprintf.c: New file.
58019         * lib/unistdio/u8-asnprintf.c: New file.
58020         * lib/unistdio/u8-asprintf.c: New file.
58021         * lib/unistdio/u8-printf-parse.c: New file.
58022         * lib/unistdio/u8-snprintf.c: New file.
58023         * lib/unistdio/u8-sprintf.c: New file.
58024         * lib/unistdio/u8-vasnprintf.c: New file.
58025         * lib/unistdio/u8-vasprintf.c: New file.
58026         * lib/unistdio/u8-vsnprintf.c: New file.
58027         * lib/unistdio/u8-vsprintf.c: New file.
58028         * lib/unistdio/u8-u8-asnprintf.c: New file.
58029         * lib/unistdio/u8-u8-asprintf.c: New file.
58030         * lib/unistdio/u8-u8-snprintf.c: New file.
58031         * lib/unistdio/u8-u8-sprintf.c: New file.
58032         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58033         * lib/unistdio/u8-u8-vasprintf.c: New file.
58034         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58035         * lib/unistdio/u8-u8-vsprintf.c: New file.
58036         * lib/unistdio/u16-asnprintf.c: New file.
58037         * lib/unistdio/u16-asprintf.c: New file.
58038         * lib/unistdio/u16-printf-parse.c: New file.
58039         * lib/unistdio/u16-snprintf.c: New file.
58040         * lib/unistdio/u16-sprintf.c: New file.
58041         * lib/unistdio/u16-vasnprintf.c: New file.
58042         * lib/unistdio/u16-vasprintf.c: New file.
58043         * lib/unistdio/u16-vsnprintf.c: New file.
58044         * lib/unistdio/u16-vsprintf.c: New file.
58045         * lib/unistdio/u16-u16-asnprintf.c: New file.
58046         * lib/unistdio/u16-u16-asprintf.c: New file.
58047         * lib/unistdio/u16-u16-snprintf.c: New file.
58048         * lib/unistdio/u16-u16-sprintf.c: New file.
58049         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58050         * lib/unistdio/u16-u16-vasprintf.c: New file.
58051         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58052         * lib/unistdio/u16-u16-vsprintf.c: New file.
58053         * lib/unistdio/u32-asnprintf.c: New file.
58054         * lib/unistdio/u32-asprintf.c: New file.
58055         * lib/unistdio/u32-printf-parse.c: New file.
58056         * lib/unistdio/u32-snprintf.c: New file.
58057         * lib/unistdio/u32-sprintf.c: New file.
58058         * lib/unistdio/u32-vasnprintf.c: New file.
58059         * lib/unistdio/u32-vasprintf.c: New file.
58060         * lib/unistdio/u32-vsnprintf.c: New file.
58061         * lib/unistdio/u32-vsprintf.c: New file.
58062         * lib/unistdio/u32-u32-asnprintf.c: New file.
58063         * lib/unistdio/u32-u32-asprintf.c: New file.
58064         * lib/unistdio/u32-u32-snprintf.c: New file.
58065         * lib/unistdio/u32-u32-sprintf.c: New file.
58066         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58067         * lib/unistdio/u32-u32-vasprintf.c: New file.
58068         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58069         * lib/unistdio/u32-u32-vsprintf.c: New file.
58070         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58071         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58072         * tests/unistdio/test-ulc-printf1.h: New file.
58073         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58074         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58075         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58076         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58077         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58078         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58079         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58080         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58081         * tests/unistdio/test-u8-asnprintf1.c: New file.
58082         * tests/unistdio/test-u8-asnprintf1.h: New file.
58083         * tests/unistdio/test-u8-printf1.h: New file.
58084         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58085         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58086         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58087         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58088         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58089         * tests/unistdio/test-u8-vasprintf1.c: New file.
58090         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58091         * tests/unistdio/test-u8-vsprintf1.c: New file.
58092         * tests/unistdio/test-u16-asnprintf1.c: New file.
58093         * tests/unistdio/test-u16-asnprintf1.h: New file.
58094         * tests/unistdio/test-u16-printf1.h: New file.
58095         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58096         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58097         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58098         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58099         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58100         * tests/unistdio/test-u16-vasprintf1.c: New file.
58101         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58102         * tests/unistdio/test-u16-vsprintf1.c: New file.
58103         * tests/unistdio/test-u32-asnprintf1.c: New file.
58104         * tests/unistdio/test-u32-asnprintf1.h: New file.
58105         * tests/unistdio/test-u32-printf1.h: New file.
58106         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58107         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58108         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58109         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58110         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58111         * tests/unistdio/test-u32-vasprintf1.c: New file.
58112         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58113         * tests/unistdio/test-u32-vsprintf1.c: New file.
58114         * modules/unistdio/base: New file.
58115         * modules/unistdio/u-printf-args: New file.
58116         * modules/unistdio/ulc-asnprintf: New file.
58117         * modules/unistdio/ulc-asprintf: New file.
58118         * modules/unistdio/ulc-fprintf: New file.
58119         * modules/unistdio/ulc-printf-parse: New file.
58120         * modules/unistdio/ulc-snprintf: New file.
58121         * modules/unistdio/ulc-sprintf: New file.
58122         * modules/unistdio/ulc-vasnprintf: New file.
58123         * modules/unistdio/ulc-vasprintf: New file.
58124         * modules/unistdio/ulc-vfprintf: New file.
58125         * modules/unistdio/ulc-vsnprintf: New file.
58126         * modules/unistdio/ulc-vsprintf: New file.
58127         * modules/unistdio/u8-asnprintf: New file.
58128         * modules/unistdio/u8-asprintf: New file.
58129         * modules/unistdio/u8-printf-parse: New file.
58130         * modules/unistdio/u8-snprintf: New file.
58131         * modules/unistdio/u8-sprintf: New file.
58132         * modules/unistdio/u8-vasnprintf: New file.
58133         * modules/unistdio/u8-vasprintf: New file.
58134         * modules/unistdio/u8-vsnprintf: New file.
58135         * modules/unistdio/u8-vsprintf: New file.
58136         * modules/unistdio/u8-u8-asnprintf: New file.
58137         * modules/unistdio/u8-u8-asprintf: New file.
58138         * modules/unistdio/u8-u8-snprintf: New file.
58139         * modules/unistdio/u8-u8-sprintf: New file.
58140         * modules/unistdio/u8-u8-vasnprintf: New file.
58141         * modules/unistdio/u8-u8-vasprintf: New file.
58142         * modules/unistdio/u8-u8-vsnprintf: New file.
58143         * modules/unistdio/u8-u8-vsprintf: New file.
58144         * modules/unistdio/u16-asnprintf: New file.
58145         * modules/unistdio/u16-asprintf: New file.
58146         * modules/unistdio/u16-printf-parse: New file.
58147         * modules/unistdio/u16-snprintf: New file.
58148         * modules/unistdio/u16-sprintf: New file.
58149         * modules/unistdio/u16-vasnprintf: New file.
58150         * modules/unistdio/u16-vasprintf: New file.
58151         * modules/unistdio/u16-vsnprintf: New file.
58152         * modules/unistdio/u16-vsprintf: New file.
58153         * modules/unistdio/u16-u16-asnprintf: New file.
58154         * modules/unistdio/u16-u16-asprintf: New file.
58155         * modules/unistdio/u16-u16-snprintf: New file.
58156         * modules/unistdio/u16-u16-sprintf: New file.
58157         * modules/unistdio/u16-u16-vasnprintf: New file.
58158         * modules/unistdio/u16-u16-vasprintf: New file.
58159         * modules/unistdio/u16-u16-vsnprintf: New file.
58160         * modules/unistdio/u16-u16-vsprintf: New file.
58161         * modules/unistdio/u32-asnprintf: New file.
58162         * modules/unistdio/u32-asprintf: New file.
58163         * modules/unistdio/u32-printf-parse: New file.
58164         * modules/unistdio/u32-snprintf: New file.
58165         * modules/unistdio/u32-sprintf: New file.
58166         * modules/unistdio/u32-vasnprintf: New file.
58167         * modules/unistdio/u32-vasprintf: New file.
58168         * modules/unistdio/u32-vsnprintf: New file.
58169         * modules/unistdio/u32-vsprintf: New file.
58170         * modules/unistdio/u32-u32-asnprintf: New file.
58171         * modules/unistdio/u32-u32-asprintf: New file.
58172         * modules/unistdio/u32-u32-snprintf: New file.
58173         * modules/unistdio/u32-u32-sprintf: New file.
58174         * modules/unistdio/u32-u32-vasnprintf: New file.
58175         * modules/unistdio/u32-u32-vasprintf: New file.
58176         * modules/unistdio/u32-u32-vsnprintf: New file.
58177         * modules/unistdio/u32-u32-vsprintf: New file.
58178         * modules/unistdio/ulc-asnprintf-tests: New file.
58179         * modules/unistdio/ulc-vasnprintf-tests: New file.
58180         * modules/unistdio/ulc-vasprintf-tests: New file.
58181         * modules/unistdio/ulc-vsnprintf-tests: New file.
58182         * modules/unistdio/ulc-vsprintf-tests: New file.
58183         * modules/unistdio/u8-asnprintf-tests: New file.
58184         * modules/unistdio/u8-vasnprintf-tests: New file.
58185         * modules/unistdio/u8-vasprintf-tests: New file.
58186         * modules/unistdio/u8-vsnprintf-tests: New file.
58187         * modules/unistdio/u8-vsprintf-tests: New file.
58188         * modules/unistdio/u16-asnprintf-tests: New file.
58189         * modules/unistdio/u16-vasnprintf-tests: New file.
58190         * modules/unistdio/u16-vasprintf-tests: New file.
58191         * modules/unistdio/u16-vsnprintf-tests: New file.
58192         * modules/unistdio/u16-vsprintf-tests: New file.
58193         * modules/unistdio/u32-asnprintf-tests: New file.
58194         * modules/unistdio/u32-vasnprintf-tests: New file.
58195         * modules/unistdio/u32-vasprintf-tests: New file.
58196         * modules/unistdio/u32-vsnprintf-tests: New file.
58197         * modules/unistdio/u32-vsprintf-tests: New file.
58198         * MODULES.html.sh (Unicode string functions): Add the new modules.
58199
58200 2007-07-01  Bruno Haible  <bruno@clisp.org>
58201
58202         * lib/sprintf.c (sprintf): Limit the available length estimation,
58203         to avoid address wraparound.
58204         * lib/vsprintf.c (vsprintf): Likewise.
58205         * modules/sprintf-posix (Dependencies): Add stdint.
58206         * modules/vsprintf-posix (Dependencies): Likewise.
58207
58208 2007-07-01  Bruno Haible  <bruno@clisp.org>
58209
58210         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58211         Windows PATH as well. Conservative double-quoting. Comments.
58212
58213 2007-07-01  Bruno Haible  <bruno@clisp.org>
58214             Eric Blake  <ebb9@byu.net>
58215             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58216
58217         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58218         empty components in $PATH, denoting '.'.
58219
58220 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58221
58222         * gnulib-tool: Fix indentation.
58223         (func_create_megatestdir): Likewise.
58224         Report by Bruno Haible.
58225
58226 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58227
58228         Sync from Automake.
58229         * build-aux/gnupload: Fix shell portability issues with for loops.
58230         Report by Karl Berry.
58231
58232 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58233
58234         * build-aux/maint.mk (POURL): Use translationproject.org.
58235
58236 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58237             Bruno Haible  <bruno@clisp.org>
58238
58239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58240         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58241         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58242         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58243         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58244
58245 2007-06-27  Bruno Haible  <bruno@clisp.org>
58246
58247         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58248         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58249
58250 2007-06-26  Karl Berry  <karl@gnu.org>
58251
58252         * MODULES.html.sh: remove xreadlink-with-size.
58253
58254 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58257         method that I hope also handles the double-include problem noted
58258         by Bruno Haible in
58259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58260
58261 2007-06-23  Bruno Haible  <bruno@clisp.org>
58262
58263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58264         Don't let the 'mostlyclean' target fail if the last subdirectory could
58265         not be removed.
58266         Reported by Karl Berry.
58267
58268 2007-06-23  Bruno Haible  <bruno@clisp.org>
58269
58270         * gnulib-tool (echo): Add a speedier workaround for ksh.
58271         * tests/test-echo.sh: Likewise.
58272
58273 2007-06-23  Bruno Haible  <bruno@clisp.org>
58274
58275         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58276         * tests/test-echo.sh: Likewise.
58277
58278 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58279
58280         * gnulib-tool (IFS): Initialize early, so we don't set it to
58281         empty later.
58282         (self_abspathname): Rewrite algorithm to set it, reindent.
58283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58284         (func_create_megatestdir): Merge some sed scripts.
58285
58286 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58289         exposed by Sun Studio 11 cc on Solaris 8.
58290
58291 2007-06-22  Bruno Haible  <bruno@clisp.org>
58292
58293         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58294         backslashes.
58295         * tests/test-echo.sh: New file.
58296
58297 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58298
58299         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58300         simplify `sed_replace_build_aux' scripts, they are portable but
58301         echoing them with `echo' is not.
58302         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58303
58304 2007-06-21  Karl Berry  <karl@gnu.org>
58305
58306         * config/srclist.txt: guess we can't handle the licenses via
58307         srclist at the moment.
58308
58309 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         * MODULES.html.sh: Add include_next.
58312         * modules/include_next: New file.
58313
58314 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58315
58316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58317         INCLUDE_NEXT.
58318         (gl_CHECK_NEXT_HEADERS): New macro.
58319         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58320         the obsolescent gl_ABSOLUTE_HEADER.
58321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58322         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58323         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58325         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58326         * m4/math_h.m4 (gl_MATH_H): Likewise.
58327         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58328         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58329         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58330         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58331         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58332         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58333         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58338         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58339         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58340         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58341         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58342         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58343         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58344         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58345         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58346         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58347         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58348         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58349         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58350         * lib/float_.h: Likewise.
58351         * lib/inttypes_.h: Likewise.
58352         * lib/math_.h: Likewise.
58353         * lib/search_.h: Likewise.
58354         * lib/signal_.h: Likewise.
58355         * lib/stdint_.h: Likewise.
58356         * lib/stdio_.h: Likewise.
58357         * lib/stdlib_.h: Likewise.
58358         * lib/string_.h: Likewise.
58359         * lib/sys_stat_.h: Likewise.
58360         * lib/sys_time_.h: Likewise.
58361         * lib/time_.h: Likewise.
58362         * lib/unistd_.h: Likewise.
58363         * lib/wchar_.h: Likewise.
58364         * lib/wctype_.h: Likewise.
58365         * lib/dirent_.h: Likewise.
58366         * lib/iconv_.h: Likewise.
58367         * lib/locale_.h: Likewise.
58368         * lib/netinet_in_.h: Likewise.
58369         * lib/sys_select_.h: Likewise.
58370         * lib/sys_socket_.h: Likewise.
58371         * lib/sysexits_.h: Likewise.
58372         * modules/fcntl (Depends-on): Depend on include_next, not
58373         absolute_header.
58374         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58375         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58376         * modules/fchdir: Likewise.
58377         * modules/float: Likewise.
58378         * modules/iconv_open: Likewise.
58379         * modules/inttypes: Likewise.
58380         * modules/locale: Likewise.
58381         * modules/math: Likewise.
58382         * modules/netinet_in: Likewise.
58383         * modules/search: Likewise.
58384         * modules/signal: Likewise.
58385         * modules/stdint: Likewise.
58386         * modules/stdio: Likewise.
58387         * modules/stdlib: Likewise.
58388         * modules/string: Likewise.
58389         * modules/sys_select: Likewise.
58390         * modules/sys_socket: Likewise.
58391         * modules/sys_stat: Likewise.
58392         * modules/sys_time: Likewise.
58393         * modules/sysexits: Likewise.
58394         * modules/time: Likewise.
58395         * modules/unistd: Likewise.
58396         * modules/wchar: Likewise.
58397         * modules/wctype: Likewise.
58398         * modules/sys_stat: Change maintainer to "all".
58399         * modules/unistd: Likewise.
58400
58401 2007-06-20  Karl Berry  <karl@gnu.org>
58402
58403         * config/srclist.txt: track www changes in license files.
58404
58405 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58406
58407         * build-aux/bootstrap: Remove stray dot.
58408         Make sure build_aux settings are honored when linking
58409         gnulib_extra_files.
58410
58411 2007-06-19  Eric Blake  <ebb9@byu.net>
58412
58413         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58414         Allow compilation on cygwin.
58415
58416 2007-06-19  Jim Meyering  <jim@meyering.net>
58417
58418         xreadlink-with-size: Remove module.  No longer used.
58419         Ex-callers now use xreadlink or mreadlink-with-size.
58420         * modules/xreadlink-with-size: Remove module.
58421         * lib/xreadlink-with-size.c: Remove file.
58422         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58423         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58424         just before the function definition *is* accurate.
58425
58426         Eliminate one way canonicalize_filename_mode could exit.
58427         * lib/canonicalize.c (canonicalize_filename_mode):
58428         Use mreadlink_with_size, not xreadlink_with_size.
58429
58430 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         Detect porting problems to FreeBSD/arm, which has time_t wider than
58433         long int.  Original problem reported for GNU diff by Xin Li in
58434         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58435         * modules/getdate (Depends-on): Add intprops, verify.
58436         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58437         is an integer type no wider than long int.
58438
58439 2007-06-18  Jim Meyering  <jim@meyering.net>
58440
58441         New module: mreadlink-with-size.
58442         * MODULES.html.sh: Add mreadlink-with-size.
58443         * modules/mreadlink-with-size: New module
58444         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58445         not xreadlink-with-size.
58446         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58447
58448 2007-06-16  Bruno Haible  <bruno@clisp.org>
58449
58450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58451         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58452         Reported by Gary V. Vaughan <gary@gnu.org>.
58453
58454 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         Revamp lchown so that it lives in unistd.h where it belongs.
58457         * lib/lchown.h: Remove.
58458         * lib/dirchownmod.c: Don't include lib/lchown.h.
58459         * lib/fchownat.c: Likewise.
58460         * lib/openat.c: Likewise.
58461         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58462         does not follow symlinks.
58463         (EOPNOTSUPP): Define if not defined.
58464         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58465         is defined to 0.
58466         (lchown): New decl.
58467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58468         Do not check for lchown decl.
58469         Set REPLACE_LCHOWN.
58470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58471         REPLACE_LCHOWN.
58472         * modules/chown: Make it clear it follows symlinks.
58473         * modules/lchown: Make it clear it doesn't follow symlinks.
58474         (Files): Remove lib/lchown.h
58475         (Depends-on): Add unistd.
58476         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58477         (Include): Include <unistd.h>, not "lchown.h".
58478         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58479         REPLACE_LCHOWN.
58480
58481 2007-06-15  Jim Meyering  <jim@meyering.net>
58482
58483         Change license (GPL to LGPL) of fsusage and dependents.
58484         * modules/fsusage (License): Change to LGPL.
58485         * modules/full-read (License): Likewise.
58486         * modules/full-write (License): Likewise.
58487         * modules/safe-read (License): Likewise.
58488         * modules/safe-write (License): Likewise.
58489
58490 2007-06-14  Ben Pfaff  <blp@gnu.org>
58491
58492         Missing part of allocsa -> malloca transition.
58493         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58494         gl_MALLOCA.
58495
58496 2007-06-12  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58499         to ia64, x86_64, i386.
58500         Reported by Eric Blake.
58501
58502 2007-06-12  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58505         cross-compiling to x86_64.
58506
58507 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58510         glitch reported by Ralf Wildenhues in
58511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58512
58513         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58514         Vin Shelton.
58515
58516 2007-06-11  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58519         replacement string.
58520         Reported by Eric Blake.
58521
58522 2007-06-10  Bruno Haible  <bruno@clisp.org>
58523
58524         Prepare vasnprintf code for use with Unicode strings.
58525         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58526         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58527         TYPE_U32_STRING.
58528         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58529         a_u32_string variants.
58530         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58531         * lib/printf-args.c: Don't include config.h and the specification
58532         header if PRINTF_FETCHARGS is already defined.
58533         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58534         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58535         TYPE_U16_STRING, TYPE_U32_STRING.
58536         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58537         u16_directive, u16_directives, u32_directive, u32_directives): New
58538         types.
58539         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58540         New declarations.
58541         * lib/printf-parse.c: Don't include config.h and the specification
58542         header if PRINTF_PARSE is already defined. Eliminate the set of
58543         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58544         them now. Include c-ctype.h.
58545         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58546         directive and CHAR_T_ONLY_ASCII.
58547         * lib/vasnprintf.c: Don't include config.h and the specification header
58548         if VASNPRINTF is already defined.
58549         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58550         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58551         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58552         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58553         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58554         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58555         code accordingly.
58556         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58557         pad_ourselves also in this case, with the 'c' and 's' directives, and
58558         with a different notion of "width".
58559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58560
58561 2007-06-10  Bruno Haible  <bruno@clisp.org>
58562
58563         * modules/unistr/u32-mbsnlen: New file.
58564         * lib/unistr/u32-mbsnlen.c: New file.
58565
58566         * modules/unistr/u16-mbsnlen: New file.
58567         * lib/unistr/u16-mbsnlen.c: New file.
58568
58569         * modules/unistr/u8-mbsnlen: New file.
58570         * lib/unistr/u8-mbsnlen.c: New file.
58571
58572         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58573         declarations.
58574
58575 2007-06-10  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/string_.h (mbsnlen): New declaration.
58578         * lib/mbsnlen.c: New file.
58579         * m4/mbsnlen.m4: New file.
58580         * modules/mbsnlen: New file.
58581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58582         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58583         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58584
58585 2007-06-10  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58588
58589 2007-06-10  Bruno Haible  <bruno@clisp.org>
58590
58591         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58592         * lib/mbuiter.h: Likewise.
58593
58594 2007-06-10  Bruno Haible  <bruno@clisp.org>
58595
58596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58597         declaration.
58598
58599 2007-06-10  Karl Berry  <karl@gnu.org>
58600
58601         * config/srclist.txt: remove gettext entries, Bruno prefers
58602         to update individually.
58603
58604 2007-06-10  Bruno Haible  <bruno@clisp.org>
58605
58606         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58607         'maxlen'. Ensure only length + width bytes are allocated, not
58608         length + 1 + width.
58609
58610 2007-06-09  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58613         (CHAR_T): Remove macro.
58614         (VASNPRINTF): Update.
58615
58616 2007-06-09  Bruno Haible  <bruno@clisp.org>
58617
58618         * MODULES.html.sh (Unicode string functions): Add the new modules.
58619
58620         * modules/uniconv/u32-conv-to-enc: New file.
58621         * lib/uniconv/u32-conv-to-enc.c: New file.
58622         * modules/uniconv/u32-conv-to-enc-tests: New file.
58623         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58624
58625         * modules/uniconv/u16-conv-to-enc: New file.
58626         * lib/uniconv/u16-conv-to-enc.c: New file.
58627         * lib/uniconv/u-conv-to-enc.h: New file.
58628         * modules/uniconv/u16-conv-to-enc-tests: New file.
58629         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58630
58631         * modules/uniconv/u8-conv-to-enc: New file.
58632         * lib/uniconv/u8-conv-to-enc.c: New file.
58633         * modules/uniconv/u8-conv-to-enc-tests: New file.
58634         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58635
58636         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58637         u32_conv_to_encoding): New declarations.
58638
58639 2007-06-09  Bruno Haible  <bruno@clisp.org>
58640
58641         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58642
58643 2007-06-09  Bruno Haible  <bruno@clisp.org>
58644
58645         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58646         * modules/malloca: Renamed from modules/allocsa, updated.
58647         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58648         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58649         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58650         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58651         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58652         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58653         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58654         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58655         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58656         * modules/c-strcasestr (Depends-on): Update.
58657         * lib/c-strcasestr.c: Update.
58658         * modules/c-strstr (Depends-on): Update.
58659         * lib/c-strstr.c: Update.
58660         * modules/canonicalize-lgpl (Depends-on): Update.
58661         * lib/canonicalize-lgpl.c: Update.
58662         * modules/clean-temp (Depends-on): Update.
58663         * lib/clean-temp.c: Update.
58664         * modules/csharpcomp (Depends-on): Update.
58665         * lib/csharpcomp.c: Update.
58666         * modules/csharpexec (Depends-on): Update.
58667         * lib/csharpexec.c: Update.
58668         * modules/javacomp (Depends-on): Update.
58669         * lib/javacomp.c: Update.
58670         * modules/javaexec (Depends-on): Update.
58671         * lib/javaexec.c: Update.
58672         * modules/mbscasestr (Depends-on): Update.
58673         * lib/mbscasestr.c: Update.
58674         * modules/mbsstr (Depends-on): Update.
58675         * lib/mbsstr.c: Update.
58676         * modules/setenv (Depends-on): Update.
58677         * lib/setenv.c: Update.
58678         * modules/strcasestr (Depends-on): Update.
58679         * lib/strcasestr.c: Update.
58680         * modules/striconveha (Depends-on): Update.
58681         * lib/striconveha.c: Update.
58682         * modules/relocatable-prog-wrapper (Files): Update.
58683         * lib/relocwrapper.c: Update.
58684         * build-aux/install-reloc: Update.
58685         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58686
58687 2007-06-08  Bruno Haible  <bruno@clisp.org>
58688
58689         Port to uClibc.
58690         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58691         * lib/fpurge.c (fpurge): Likewise.
58692         * lib/freading.c (freading): Likewise.
58693         * lib/fseeko.c (rpl_fseeko): Likewise.
58694         * lib/fseterr.c (fseterr): Likewise.
58695         * lib/fwriting.c (fwriting): Likewise.
58696         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58697
58698 2007-06-08  Bruno Haible  <bruno@clisp.org>
58699
58700         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58701         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58702         * modules/gettext (Files): Add m4/intlmacosx.m4.
58703
58704 2007-06-07  Bruno Haible  <bruno@clisp.org>
58705
58706         * modules/localename-tests: New file.
58707         * tests/test-localename.c: New file.
58708
58709         New module 'localename'.
58710         * lib/localename.h: New file.
58711         * lib/localename.c: New file, from GNU gettext.
58712         * m4/localename.m4: New file.
58713         * modules/localename: New file.
58714
58715 2007-06-07  Bruno Haible  <bruno@clisp.org>
58716
58717         Work around the lack of <wchar.h> on some builds of uClibc.
58718         * doc/headers/wchar.texi: Update.
58719         * lib/wchar_.h: Include <wchar.h> only if it exists.
58720         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58721         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58722         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58723         doesn't exist.
58724         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58725         * modules/mbfile (Depends-on): Add wchar.
58726         * modules/mbiter (Depends-on): Likewise.
58727         * modules/mbuiter (Depends-on): Likewise.
58728         Reported by Simon Josefsson.
58729
58730 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         Work around problem reported by Steven M. Schweda in
58733         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58734         Tru64 5.1B with the Compaq compiler environment installed declares
58735         an 'isblank' function but does not define it in the C library.
58736         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58737         * lib/regex_internal.h (isblank): Likewise.
58738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58739         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58740
58741 2007-06-05  Bruno Haible  <bruno@clisp.org>
58742
58743         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58744         ia64.
58745         * modules/printf-safe: New file.
58746         * modules/fprintf-posix (Depends-on): Add printf-safe.
58747         * modules/printf-posix (Depends-on): Likewise.
58748         * modules/snprintf-posix (Depends-on): Likewise.
58749         * modules/sprintf-posix (Depends-on): Likewise.
58750         * modules/vasnprintf-posix (Depends-on): Likewise.
58751         * modules/vasprintf-posix (Depends-on): Likewise.
58752         * modules/vfprintf-posix (Depends-on): Likewise.
58753         * modules/vprintf-posix (Depends-on): Likewise.
58754         * modules/vsnprintf-posix (Depends-on): Likewise.
58755         * modules/vsprintf-posix (Depends-on): Likewise.
58756         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58757         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58758         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58759         "no" on i386, x86_64, ia64.
58760         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58761         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58762         on i386, x86_64, ia64.
58763         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58765         on i386, x86_64, ia64.
58766         * tests/test-vasnprintf-posix.c: Include float.h.
58767         (LDBL80_WORDS): New macro.
58768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58769         on i386, x86_64, ia64.
58770         * tests/test-vasprintf-posix.c: Include float.h.
58771         (LDBL80_WORDS): New macro.
58772         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58773         on i386, x86_64, ia64.
58774         * tests/test-snprintf-posix.c: Include float.h.
58775         * tests/test-sprintf-posix.c: Likewise.
58776         * tests/test-vsnprintf-posix.c: Likewise.
58777         * tests/test-vsprintf-posix.c: Likewise.
58778
58779 2007-06-05  Bruno Haible  <bruno@clisp.org>
58780
58781         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58783         non-IEEE numbers on i386, x86_64, ia64.
58784         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58785         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58786         * tests/test-isnanl.h: Include float.h.
58787         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58788
58789 2007-06-05  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58792         also the %a / %A. Handle the %a / %A code before this extra handling.
58793
58794 2007-06-05  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58797         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58798
58799 2007-06-05  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58802         typo in variable name.
58803
58804 2007-06-05  Eric Blake  <ebb9@byu.net>
58805
58806         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58807         Reported by Simon Josefsson.
58808
58809 2007-06-04  Bruno Haible  <bruno@clisp.org>
58810
58811         Avoid test failures on some PowerPC platforms.
58812         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58813         Define differently for PowerPC.
58814         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58815         Reported by Gary V. Vaughan <gary@gnu.org>.
58816
58817 2007-06-02  Bruno Haible  <bruno@clisp.org>
58818
58819         Fix test-stdint failure on FreeBSD/ia64.
58820         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58821         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58822         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58823         * doc/headers/stdint.texi: Update.
58824
58825 2007-06-01  Bruno Haible  <bruno@clisp.org>
58826
58827         * tests/test-binary-io.c (main): Pass a third argument to open().
58828         Reported by Gary V. Vaughan <gary@gnu.org>.
58829
58830 2007-06-01  Bruno Haible  <bruno@clisp.org>
58831
58832         * doc/functions/frexpl.texi: Update for mingw.
58833
58834 2007-06-01  Bruno Haible  <bruno@clisp.org>
58835
58836         * tests/test-lseek.c (main): Disable test of errno for invalid third
58837         argument.
58838         * doc/functions/lseek.texi: Update.
58839         Reported by Gary V. Vaughan <gary@gnu.org>.
58840
58841 2007-05-28  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58844
58845 2007-05-31  Eric Blake  <ebb9@byu.net>
58846
58847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58848         cross compiling.
58849
58850 2007-05-30  Eric Blake  <ebb9@byu.net>
58851         and Bruno Haible  <bruno@clisp.org>
58852
58853         Work around mingw test failures exposed by m4-1.4.9b.
58854         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58855         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58856         moment.
58857
58858 2007-05-30  Bruno Haible  <bruno@clisp.org>
58859
58860         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58861         assuming that they are closed. Needed on HP-UX 11.
58862
58863 2007-05-29  Bruno Haible  <bruno@clisp.org>
58864
58865         Fix a problem with #include_next.
58866         * lib/dirent_.h: Split the double-inclusion guard.
58867         * lib/fcntl_.h: Likewise.
58868         * lib/float_.h: Likewise.
58869         * lib/iconv_.h: Likewise.
58870         * lib/inttypes_.h: Likewise.
58871         * lib/locale_.h: Likewise.
58872         * lib/math_.h: Likewise.
58873         * lib/netinet_in_.h: Likewise.
58874         * lib/search_.h: Likewise.
58875         * lib/signal_.h: Likewise.
58876         * lib/stdint_.h: Likewise.
58877         * lib/stdio_.h: Likewise.
58878         * lib/stdlib_.h: Likewise.
58879         * lib/string_.h: Likewise.
58880         * lib/sys_select_.h: Likewise.
58881         * lib/sys_socket_.h: Likewise.
58882         * lib/sys_stat_.h: Likewise.
58883         * lib/sys_time_.h: Likewise.
58884         * lib/sysexits_.h: Likewise.
58885         * lib/time_.h: Likewise.
58886         * lib/unistd_.h: Likewise.
58887         * lib/wchar_.h: Likewise.
58888         * lib/wctype_.h: Likewise.
58889
58890 2007-05-29  Bruno Haible  <bruno@clisp.org>
58891
58892         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58893         for the moment.
58894
58895 2007-05-29  Bruno Haible  <bruno@clisp.org>
58896
58897         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58898         invocation.
58899         Reported by Eric Blake.
58900
58901 2007-05-29  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58904         compiling case.
58905
58906 2007-05-29  Eric Blake  <ebb9@byu.net>
58907             Bruno Haible  <bruno@clisp.org>
58908
58909         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58910         cross compiles.
58911
58912 2007-05-28  Eric Blake  <ebb9@byu.net>
58913
58914         * modules/closein-tests (test_closein_LDADD): Support test on
58915         cygwin with libtool.
58916
58917 2007-05-28  Bruno Haible  <bruno@clisp.org>
58918
58919         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58923         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58924         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58925         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58926         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58927         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58928
58929 2007-05-28  Eric Blake  <ebb9@byu.net>
58930
58931         Unconditionally include <config.h> in unit tests.
58932         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58933         * tests/test-allocsa.c, tests/test-arcfour.c,
58934         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58935         tests/test-array_list.c, tests/test-array_oset.c,
58936         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58937         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58938         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58939         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58940         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58941         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58942         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58943         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58944         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58945         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58946         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58947         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58948         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58949         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58950         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58951         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58952         test-md5.c, test-memmem.c, test-printf-posix.c,
58953         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58954         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58955         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58956         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58957         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58958         test-vasnprintf-posix2.c, test-vasnprintf.c,
58959         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58960         test-vfprintf-posix.c, test-vprintf-posix.c,
58961         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58962         test-xvasprintf.c: Likewise.
58963
58964 2007-05-28  Bruno Haible  <bruno@clisp.org>
58965
58966         * gnulib-tool (func_import): Remember the --with-tests command-line
58967         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58968         Reported by Eric Blake.
58969
58970 2007-05-28  Bruno Haible  <bruno@clisp.org>
58971
58972         * modules/ftell-tests: New file.
58973         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58974         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58975
58976         * lib/ftell.c: New file.
58977         * modules/ftell: New file.
58978         * m4/ftell.m4: New file.
58979         * doc/functions/ftell.texi: Update.
58980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58981         REPLACE_FTELL.
58982         * lib/stdio_.h (rpl_ftell): New declaration.
58983         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58984         REPLACE_FTELL.
58985
58986 2007-05-28  Eric Blake  <ebb9@byu.net>
58987
58988         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58989
58990 2007-05-28  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/fseek-tests: New file.
58993         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58994         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58995
58996         * lib/fseek.c: New file.
58997         * modules/fseek: New file.
58998         * m4/fseek.m4: New file.
58999         * doc/functions/fseek.texi: Update.
59000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59001         REPLACE_FSEEK.
59002         * lib/stdio_.h (rpl_fseek): New declaration.
59003         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59004         REPLACE_FSEEK.
59005
59006 2007-05-28  Bruno Haible  <bruno@clisp.org>
59007
59008         * lib/stdio_.h (fflush): More comments.
59009
59010 2007-05-28  Bruno Haible  <bruno@clisp.org>
59011
59012         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59013         runtime test.
59014
59015 2007-05-28  Eric Blake  <ebb9@byu.net>
59016
59017         Improve lseek module.
59018         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59019         * lib/unistd_.h (lseek): Scale back link warning message.
59020         * tests/test-lseek.c: Beef up test.
59021         * tests/test-lseek.sh: Exercise more facets of lseek.
59022         Reported by Bruno Haible.
59023
59024 2007-05-28  Bruno Haible  <bruno@clisp.org>
59025
59026         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59027         to define.
59028
59029 2007-05-27  Bruno Haible  <bruno@clisp.org>
59030
59031         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59032
59033 2007-05-27  Bruno Haible  <bruno@clisp.org>
59034
59035         * modules/openmp: New file.
59036         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59037         Noah Misch.
59038
59039 2007-05-26  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/chdir-long (Depends-on): Add fchdir.
59042         * modules/chdir-safer (Depends-on): Likewise.
59043         * modules/fts (Depends-on): Likewise.
59044         * modules/fts-lgpl (Depends-on): Likewise.
59045         * modules/openat (Depends-on): Likewise.
59046         * modules/savewd (Depends-on): Likewise.
59047
59048 2007-05-24  Eric Blake  <ebb9@byu.net>
59049
59050         Fix lseek on mingw.
59051         * modules/lseek: New module.
59052         * m4/lseek.m4: New file.
59053         * lib/lseek.c: New file.
59054         * modules/lseek-tests: New file.
59055         * tests/test-lseek.c: New file.
59056         * tests/test-lseek.sh: New file.
59057         * MODULES.html.sh: Document lseek module.
59058         * modules/fflush (Depends-on): Add lseek, fseeko.
59059         * modules/fseeko (Depends-on): Likewise.
59060         * modules/ftello (Depends-on): Likewise.
59061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59062         broken.
59063         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59064         broken.
59065         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59066         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59067         * lib/ftello.c (rpl_ftello): Likewise.
59068         * tests/test-fseeko.c (main): Test this.
59069         * tests/test-fseeko.sh: Likewise.
59070         * tests/test-ftello.c (main): Likewise.
59071         * tests/test-ftello.sh: Likewise.
59072         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59073         implies replacing fseek.
59074         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59075         HAVE_FTELLO.
59076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59077         * modules/unistd (Makefile.am): Likewise.
59078         * lib/unistd_.h (lseek): Declare a replacement.
59079         * doc/functions/lseek.texi (lseek): Document this fix.
59080         * doc/functions/fseek.texi (fseek): Likewise.
59081         * doc/functions/ftell.texi (ftell): Likewise.
59082
59083 2007-05-24  Bruno Haible  <bruno@clisp.org>
59084
59085         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59086         in the printed representation of a NaN.
59087         * tests/test-vasprintf-posix.c (test_function): Likewise.
59088         * tests/test-snprintf-posix.h (test_function): Likewise.
59089         * tests/test-sprintf-posix.h (test_function): Likewise.
59090         Reported by Eric Blake.
59091
59092 2007-05-23  Eric Blake  <ebb9@byu.net>
59093
59094         Fix fseeko/ftello on cygwin 1.5.24.
59095         * doc/functions/fseeko.texi (fseeko): Document the fix.
59096         * doc/functions/ftello.texi (ftello): Document the fix.
59097         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59098         * doc/functions/stdout.text (stdout): New file.
59099         * doc/functions/stderr.text (stderr): New file.
59100         * doc/gnulib.texi (Function Substitutes): Use new files.
59101         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59102         prior to 1.7.0.
59103         * tests/test-ftello.c (main): Likewise for ftello.
59104         * tests/test-fseeko.sh: New file.
59105         * tests/test-ftello.sh: New file.
59106         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59107         with seekable stdin.
59108         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59110         (gl_REPLACE_FSEEKO): New macro.
59111         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59112         * modules/fseeko (Files): Distribute fseeko.c.
59113         * modules/ftello (Files): Distribute ftello.c.
59114         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59115         mode.
59116         * lib/ftello.c (rpl_ftello): New file.
59117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59118         fseeko, ftello.
59119         (gl_STDIN_LARGE_OFFSET): New macro.
59120         * modules/stdio (Makefile.am): Perform the replacement.
59121         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59122
59123 2007-05-23  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59126         GNULIB_POSIXCHECK is defined.
59127
59128 2007-05-21  Bruno Haible  <bruno@clisp.org>
59129
59130         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59131         Check also the output for NaN arguments. When cross-compiling, guess
59132         no on IRIX.
59133         * lib/vasnprintf.c: Update comments.
59134         * tests/test-vasnprintf-posix.c (strisnan): New function.
59135         (test_function): Use it.
59136         * tests/test-vasprintf-posix.c (strisnan): New function.
59137         (test_function): Use it.
59138         * tests/test-snprintf-posix.h (strisnan): New function.
59139         (test_function): Use it.
59140         * tests/test-sprintf-posix.h (strisnan): New function.
59141         (test_function): Use it.
59142         Reported by Eric Blake.
59143
59144 2007-05-20  Bruno Haible  <bruno@clisp.org>
59145
59146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59147         numbers that fails on BeOS.
59148         * doc/functions/frexpl.texi: Update.
59149
59150 2007-05-20  Jim Meyering  <jim@meyering.net>
59151
59152         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59153         forced upon us by glibc-2.6.
59154
59155 2007-05-20  Bruno Haible  <bruno@clisp.org>
59156
59157         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59158         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59159         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59160         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59161         NEED_PRINTF_INFINITE.
59162         (is_infinitel): New function.
59163         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59165         gl_PREREQ_VASNPRINTF_INFINITE.
59166         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59168         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59169         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59170         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59171         gl_PREREQ_VASNPRINTF_INFINITE.
59172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59179         * doc/functions/fprintf.texi: Update.
59180         * doc/functions/printf.texi: Update.
59181         * doc/functions/snprintf.texi: Update.
59182         * doc/functions/sprintf.texi: Update.
59183         * doc/functions/vfprintf.texi: Update.
59184         * doc/functions/vprintf.texi: Update.
59185         * doc/functions/vsnprintf.texi: Update.
59186         * doc/functions/vsprintf.texi: Update.
59187
59188 2007-05-20  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59191         was not found in libc.
59192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59193
59194 2007-05-20  Bruno Haible  <bruno@clisp.org>
59195
59196         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59197         printed as "-nan" instead of "nan".
59198         * tests/test-vasprintf-posix.c (test_function): Likewise.
59199         * tests/test-snprintf-posix.h (test_function): Likewise.
59200         * tests/test-sprintf-posix.h (test_function): Likewise.
59201         Needed for HP-UX 11.
59202
59203 2007-05-20  Jim Meyering  <jim@meyering.net>
59204
59205         Fix buggy test for the fchownat-deref bug.
59206         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59207         symlink required for the run-test.  Without it, this test would
59208         always declare that fchownat doesn't work, and client code would
59209         unnecessarily use the replacement function with fixed libc.
59210         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59211         Reported by Greg Schafer.
59212
59213 2007-05-19  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59216         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59217         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59218         Needed for IRIX 6.5 and Solaris 2.5.1.
59219
59220 2007-05-19  Bruno Haible  <bruno@clisp.org>
59221
59222         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59223         (test_function): Skip tests involving -0.0 on platforms where
59224         -0.0 = 0.0.
59225         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59226         (test_function): Skip tests involving -0.0 on platforms where
59227         -0.0 = 0.0.
59228         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59229         (test_function): Skip tests involving -0.0 on platforms where
59230         -0.0 = 0.0.
59231         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59232         (test_function): Skip tests involving -0.0 on platforms where
59233         -0.0 = 0.0.
59234         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59235         tests.
59236         * tests/test-printf-posix.h (test_function): Likewise.
59237         * tests/test-printf-posix.output: Remove all -0.0 related results.
59238         Needed for IRIX 6.5.
59239
59240 2007-05-19  Bruno Haible  <bruno@clisp.org>
59241
59242         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59243         printed as "nan0x7fffffff" instead of "nan".
59244         * tests/test-vasprintf-posix.c (test_function): Likewise.
59245         * tests/test-snprintf-posix.h (test_function): Likewise.
59246         * tests/test-sprintf-posix.h (test_function): Likewise.
59247         * tests/test-fprintf-posix.h (NaN): Remove macro.
59248         (test_function): Remove all NaN related tests.
59249         * tests/test-printf-posix.h (NaN): Remove macro.
59250         (test_function): Remove all NaN related tests.
59251         * tests/test-printf-posix.output: Remove all NaN related results.
59252         Needed for IRIX 6.5.
59253
59254 2007-05-19  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59258
59259 2007-05-19  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/float_.h: New file.
59262         * m4/float_h.m4: New file.
59263         * modules/float: New file.
59264         * modules/isnanl (Dependencies): Add float.
59265         * modules/isnanl-nolibm (Dependencies): Likewise.
59266         * modules/mathl (Dependencies): Likewise.
59267         * modules/printf-frexpl (Dependencies): Likewise.
59268         * modules/signbit (Dependencies): Likewise.
59269         * modules/vasnprintf (Dependencies): Likewise.
59270         * doc/headers/float.texi: Update.
59271
59272 2007-05-19  Jim Meyering  <jim@meyering.net>
59273
59274         * lib/utimens.c (gl_futimens): Rename from futimens,
59275         now that glibc-2.6 declares futimens.
59276         * lib/utimens.h: Likewise.
59277
59278 2007-05-19  Bruno Haible  <bruno@clisp.org>
59279
59280         Avoid test failures on mingw.
59281         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59282         * tests/test-printf-posix.sh: Likewise.
59283         * tests/test-vfprintf-posix.sh: Likewise.
59284         * tests/test-vprintf-posix.sh: Likewise.
59285
59286 2007-05-19  Bruno Haible  <bruno@clisp.org>
59287
59288         Fix *printf result for NaN, Inf, -0.0 on mingw.
59289         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59290         * lib/vasnprintf.c: Include math.h and isnan.h.
59291         (is_infinite_or_zero): New function.
59292         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59293         values in the %f, %F, %e, %E, %g, %G directives.
59294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59296         gl_PRINTF_INFINITE and test its result. Invoke
59297         gl_PREREQ_VASNPRINTF_INFINITE.
59298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59305         * doc/functions/fprintf.texi: Update.
59306         * doc/functions/printf.texi: Update.
59307         * doc/functions/snprintf.texi: Update.
59308         * doc/functions/sprintf.texi: Update.
59309         * doc/functions/vfprintf.texi: Update.
59310         * doc/functions/vprintf.texi: Update.
59311         * doc/functions/vsnprintf.texi: Update.
59312         * doc/functions/vsprintf.texi: Update.
59313
59314 2007-05-19  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59317         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59318         Instead of multiplying with 10^k, set extra_zeroes to k.
59319         (scale10_round_long_double): Remove function.
59320
59321 2007-05-18  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59324         introduced on 2007-05-06.
59325
59326 2007-05-18  Bruno Haible  <bruno@clisp.org>
59327
59328         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59329         %g directives.
59330         * tests/test-vasprintf-posix.c (test_function): Likewise.
59331         * tests/test-snprintf-posix.h (test_function): Likewise.
59332         * tests/test-sprintf-posix.h (test_function): Likewise.
59333
59334 2007-05-18  Bruno Haible  <bruno@clisp.org>
59335
59336         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59337         (strmatch): New function.
59338         (test_function): Test the %f directive on numbers of various exponents.
59339         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59340         (strmatch): New function.
59341         (test_function): Test the %f directive on numbers of various exponents.
59342         * tests/test-snprintf-posix.h (strmatch): New function.
59343         (test_function): Test the %f directive on numbers of various exponents.
59344         * tests/test-sprintf-posix.h (strmatch): New function.
59345         (test_function): Test the %f directive on numbers of various exponents.
59346         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59347         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59348         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59349         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59350
59351 2007-05-18  Bruno Haible  <bruno@clisp.org>
59352
59353         Add support for 'long double' number output.
59354         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59355         * lib/vasnprintf.c: Include math.h and float+.h.
59356         (mp_limb_t): New type.
59357         (GMP_LIMB_BITS): New macro.
59358         (mp_twolimb_t): New type.
59359         (GMP_TWOLIMB_BITS): New macro.
59360         (mpn_t): New type.
59361         (multiply, divide, convert_to_decimal, decode_long_double,
59362         scale10_round_long_double, scale10_round_decimal_long_double,
59363         floorlog10l): New functions.
59364         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59365         for the %f, %F, %e, %E, %g, %G directives.
59366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59368         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59369         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59377         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59378         * modules/snprintf-posix (Depends-on): Likewise.
59379         * modules/sprintf-posix (Depends-on): Likewise.
59380         * modules/vasnprintf-posix (Depends-on): Likewise.
59381         * modules/vasprintf-posix (Depends-on): Likewise.
59382         * modules/vfprintf-posix (Depends-on): Likewise.
59383         * modules/vsnprintf-posix (Depends-on): Likewise.
59384         * modules/vsprintf-posix (Depends-on): Likewise.
59385         * modules/vasnprintf (Files): Add lib/float+.h.
59386         * doc/functions/fprintf.texi: Update.
59387         * doc/functions/printf.texi: Update.
59388         * doc/functions/snprintf.texi: Update.
59389         * doc/functions/sprintf.texi: Update.
59390         * doc/functions/vfprintf.texi: Update.
59391         * doc/functions/vprintf.texi: Update.
59392         * doc/functions/vsnprintf.texi: Update.
59393         * doc/functions/vsprintf.texi: Update.
59394
59395 2007-05-18  Bruno Haible  <bruno@clisp.org>
59396
59397         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59398
59399 2007-05-18  Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59402         for printing 64-bit integers. Needed for mingw.
59403
59404 2007-05-18  Bruno Haible  <bruno@clisp.org>
59405
59406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59407         gl_FUNC_FREXPL_WORKS.
59408         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59409
59410 2007-05-18  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/frexpl-nolibm-tests: New file.
59413
59414         * modules/frexpl-nolibm: New file.
59415         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59416
59417 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59418
59419         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59420         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59421         GCC 4.2, which otherwise issues a lot of warnings.
59422         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59423         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59424         Likewise.
59425         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59426         * modules/iconv_open (iconv.h): Likewise.
59427         * modules/locale (locale.h): Likewise.
59428         * modules/netinet_in (netinet/in.h): Likewise.
59429         * modules/sys_select (sys_select.h): Likewise.
59430         * modules/sys_socket (sys/socket.h): Likewise.
59431         * modules/sys_stat (sys/stat.h): Likewise.
59432         * modules/sysexits (sysexits.h): Likewise.
59433         * modules/unistd (unistd.h): Likewise.
59434
59435 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59436
59437         * modules/closein-tests (Makefile.am): Distribute
59438         `test-closein.sh'.
59439
59440 2007-05-17  Bruno Haible  <bruno@clisp.org>
59441
59442         * tests/test-printf-posix.output: Renamed from
59443         tests/test-fprintf-posix.out.
59444         * modules/fprintf-posix-tests: Update.
59445         * modules/printf-posix-tests: Update.
59446         * modules/vfprintf-posix-tests: Update.
59447         * modules/vprintf-posix-tests: Update.
59448         * tests/test-fprintf-posix.sh: Update.
59449         * tests/test-printf-posix.sh: Update.
59450         * tests/test-vfprintf-posix.sh: Update.
59451         * tests/test-vprintf-posix.sh: Update.
59452         Reported by Ralf Wildenhues.
59453
59454 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59455
59456         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59457         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59458         GCC 4.2, which otherwise issues a lot of warnings.
59459         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59460         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59461         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59462         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59463         it should no longer be needed.
59464         * lib/string_.h: Likewise.
59465         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59466         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59467         * modules/inttypes (inttypes.h): Likewise.
59468         * modules/math (math.h): Likewise.
59469         * modules/search (search.h): Likewise.
59470         * modules/signal (signal.h): Likewise.
59471         * modules/stdint (stdint.h): Likewise.
59472         * modules/stdio (stdio.h): Likewise.
59473         * modules/stdlib (stdlib.h): Likewise.
59474         * modules/string (string.h): Likewise.
59475         * modules/sys_time (sys/time.h): Likewise.
59476         * modules/time (time.h): Likewise.
59477         * modules/wchar (wchar.h): Likewise.
59478         * modules/wctype (wtype.h): Likewise.
59479
59480 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59481
59482         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59483
59484 2007-05-13  Bruno Haible  <bruno@clisp.org>
59485
59486         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59487         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59488         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59489         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59490         (gl_PREREQ_STRTOK_R): Don't require it here.
59491
59492 2007-05-13  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59495         when used in C++ mode.
59496
59497 2007-05-12  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/linebuffer.h: Tweak doc.
59500         * lib/linebuffer.c: Likewise.
59501
59502 2007-05-12  James Youngman  <jay@gnu.org>
59503
59504         * lib/linebuffer.c (readlinebuffer_delim): New function,
59505         like readlinebuffer, but use a caller-specified delimiter.
59506         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59507         as the delimiter.
59508         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59509
59510 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59511
59512         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59513         * modules/openat (Files): Remove openat-die.c.
59514         (Depends-on): Add openat-die.
59515         * modules/openat-die: New module.
59516
59517 2007-05-06  Bruno Haible  <bruno@clisp.org>
59518
59519         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59520         Update with info about Cygwin.
59521         * doc/functions/fprintf.texi: Update.
59522         * doc/functions/printf.texi: Update.
59523         * doc/functions/snprintf.texi: Update.
59524         * doc/functions/sprintf.texi: Update.
59525         * doc/functions/vfprintf.texi: Update.
59526         * doc/functions/vprintf.texi: Update.
59527         * doc/functions/vsnprintf.texi: Update.
59528         * doc/functions/vsprintf.texi: Update.
59529         Reported by Eric Blake.
59530
59531 2007-05-06  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59534         padding ourselves for the floating-point directives.
59535         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59538         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59539         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59547         * tests/test-snprintf-posix.h (test_function): Also check the width
59548         and some flags in the %f directive.
59549         * tests/test-sprintf-posix.h (test_function): Likewise.
59550         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59551         * tests/test-vasprintf-posix.c (test_function): Likewise.
59552         * doc/functions/fprintf.texi: Update.
59553         * doc/functions/printf.texi: Update.
59554         * doc/functions/snprintf.texi: Update.
59555         * doc/functions/sprintf.texi: Update.
59556         * doc/functions/vfprintf.texi: Update.
59557         * doc/functions/vprintf.texi: Update.
59558         * doc/functions/vsnprintf.texi: Update.
59559         * doc/functions/vsprintf.texi: Update.
59560
59561 2007-05-06  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59564         pass the ' flag character to sprintf or snprintf.
59565         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59568         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59569         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59577         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59578         flag.
59579         * tests/test-sprintf-posix.h (test_function): Likewise.
59580         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59581         * tests/test-vasprintf-posix.c (test_function): Likewise.
59582         * doc/functions/fprintf.texi: Update.
59583         * doc/functions/printf.texi: Update.
59584         * doc/functions/snprintf.texi: Update.
59585         * doc/functions/sprintf.texi: Update.
59586         * doc/functions/vfprintf.texi: Update.
59587         * doc/functions/vprintf.texi: Update.
59588         * doc/functions/vsnprintf.texi: Update.
59589         * doc/functions/vsprintf.texi: Update.
59590
59591 2007-05-01  Bruno Haible  <bruno@clisp.org>
59592
59593         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59594
59595 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59596
59597         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59598         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59599
59600 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59603         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59605
59606 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59607
59608         * lib/argp-help.c (struct hol_entry): New member `ord'.
59609         (HOL_ENTRY_PTRCMP): Use ord for comparison
59610         (hol_sort): Initialize ord.
59611
59612 2007-05-01  Bruno Haible  <bruno@clisp.org>
59613
59614         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59615         Reported by Eric Blake.
59616         * doc/gnulib.texi (Function Substitutes): Update.
59617
59618 2007-05-01  Bruno Haible  <bruno@clisp.org>
59619
59620         * doc/functions.texi: Remove file, now redundant through
59621         doc/functions/*.texi.
59622
59623 2007-05-01  Bruno Haible  <bruno@clisp.org>
59624
59625         * modules/argp (Depends-on): Add sleep.
59626
59627 2007-05-01  Bruno Haible  <bruno@clisp.org>
59628
59629         * modules/sleep-tests: New file.
59630         * tests/test-sleep.c: New file.
59631
59632         * modules/sleep: New file.
59633         * lib/sleep.c: New file.
59634         * m4/sleep.m4: New file.
59635         * lib/unistd_.h (sleep): New declaration.
59636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59637         HAVE_SLEEP.
59638         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59639         * doc/functions/sleep.texi: Document the sleep module.
59640
59641 2007-05-01  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/sigprocmask.h: Remove file.
59644         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59645         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59647         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59648         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59649         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59650         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59651         HAVE_SIGSET_T as a shell variable.
59652         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59653         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59654         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59655         (Depends-on): Add signal. Remove verify.
59656         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59657         (Include): Mention <signal.h> instead of sigprocmask.h.
59658         * NEWS: Mention the change.
59659         * lib/fatal-signal.c: Don't include sigprocmask.h.
59660
59661 2007-05-01  Bruno Haible  <bruno@clisp.org>
59662
59663         * modules/signal: New file.
59664         * lib/signal_.h: New file.
59665         * m4/signal_h.m4: New file.
59666
59667 2007-05-01  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59670         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59671         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59672         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59673
59674 2007-05-01  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59677         configure time.
59678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59679         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59680         * modules/sys_stat (Makefile.am): Substitute their values into
59681         sys/stat.h.
59682
59683 2007-05-01  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59686         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59687         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59688
59689 2007-05-01  Bruno Haible  <bruno@clisp.org>
59690
59691         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59692         'assert' module here.
59693
59694 2007-05-01  Bruno Haible  <bruno@clisp.org>
59695
59696         * doc/functions/*.texi: New files.
59697         * doc/functions/google-ranking.txt: New file.
59698         * doc/gnulib.texi (Function Substitutes): New chapter.
59699         (ctime, inet_ntoa): Remove sections.
59700         * doc/ctime.texi: Remove file.
59701         * doc/inet_ntoa.texi: Remove file.
59702         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59703         dependencies.
59704         (%.info): New rule, specifying a --reference-limit.
59705
59706 2007-05-01  Bruno Haible  <bruno@clisp.org>
59707
59708         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59709
59710 2007-05-01  Bruno Haible  <bruno@clisp.org>
59711
59712         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59713         the portability of 'mkdir' to mingw systems.
59714
59715 2007-05-01  Bruno Haible  <bruno@clisp.org>
59716
59717         * doc/headers/google-ranking.txt: New file.
59718
59719 2007-04-30  Eric Blake  <ebb9@byu.net>
59720
59721         Prefer fseeko to fseek.
59722         * modules/getpass (Depends-on): Add fseeko.
59723         * lib/getpass.c (getpass): Use fseeko, not fseek.
59724
59725 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59726
59727         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59728         assumes the sorting is stable, while most qsort implementations
59729         are not.  Use argument addresses to ensure they never compare as
59730         equal.
59731
59732         * tests/test-argp-2.sh (usage-indent test): Fix output
59733         (func_compare): Restore diff options
59734         * tests/test-argp.c: Restore #include "progname.h"
59735
59736 2007-04-29  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59740         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59742         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59743         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59744         (TESTS, check_PROGRAMS): Add test-snprintf.
59745         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59746         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59747         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59748         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59749         assertions that fail on HP-UX, OSF/1, or IRIX.
59750         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59751
59752 2007-04-29  Bruno Haible  <bruno@clisp.org>
59753
59754         * MODULES.html.sh (posix_functions): Remove 'contents'.
59755
59756 2007-04-29  Karl Berry  <karl@gnu.org>
59757
59758         * config/srclist.txt (gendocs_template_min): new entry.
59759
59760 2007-04-29  Bruno Haible  <bruno@clisp.org>
59761
59762         Work around fpurge bug on BSD systems.
59763         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59765         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59766         fpurge to rpl_fpurge if the system already has this function.
59767         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59768         the case where the system already has this function. Correct invariants
59769         on BSD systems.
59770         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59771         BSD systems.
59772
59773 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59774
59775         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59776         proposed by Sven Verdoolaege.
59777
59778         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59779         options.
59780         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59781         (usage and help tests): Update
59782
59783 2007-04-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59786         Print more information in case of failure. Disable a test on BeOS.
59787
59788 2007-04-29  Bruno Haible  <bruno@clisp.org>
59789
59790         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59791         This helps debugging on systems on which no gdb is available.
59792
59793 2007-04-29  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/freading.h: Improve comments.
59796         * lib/fwriting.h: Likewise.
59797         * tests/test-freading.c (main): Don't check freading immediately after
59798         repositioning. Needed for glibc.
59799
59800 2007-04-29  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/freading.c (freading): Trivial simplification.
59803
59804 2007-04-28  Bruno Haible  <bruno@clisp.org>
59805
59806         * tests/test-fwriting.c (main): Also test the interaction between
59807         fflush and fwriting.
59808         * modules/fwriting-tests (Depends-on): Add fflush.
59809
59810         * tests/test-freading.c (main): Also test the interaction between
59811         fflush and freading.
59812         * modules/freading-tests (Depends-on): Add fflush.
59813
59814 2007-04-28  Bruno Haible  <bruno@clisp.org>
59815
59816         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59817         fseeko and ftello.
59818         Suggested by Eric Blake.
59819
59820 2007-04-28  Jim Meyering  <jim@meyering.net>
59821
59822         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59823         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59824         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59825
59826 2007-04-27  Eric Blake  <ebb9@byu.net>
59827
59828         * doc/headers/assert.texi (assert.h): Document assert module use.
59829
59830 2007-04-27  Bruno Haible  <bruno@clisp.org>
59831
59832         * doc/headers/*.texi: New files.
59833         * doc/gnulib.texi (Header File Substitutes): New chapter.
59834         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59835         dependencies.
59836         (standards.info ,standards.html, standards.dvi): Update dependencies.
59837         (mostlyclean, clean): New targets.
59838
59839 2007-04-27  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59842         * modules/sysexits (Files, Makefile.am): Update.
59843
59844         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59845         * modules/sys_socket (Files, Makefile.am): Update.
59846
59847         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59848         * modules/sys_stat (Files, Makefile.am): Update.
59849
59850 2007-04-27  Eric Blake  <ebb9@byu.net>
59851
59852         * lib/freading.h: Improve comments.
59853         * lib/fwriting.h: Likewise.
59854         * lib/fflush.c: Likewise.
59855
59856         Fix closein for mingw.
59857         * modules/closein-tests: Add tests for closein.
59858         * tests/test-closein.c: New file.
59859         * tests/test-closein.sh: Likewise.
59860         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59861         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59862
59863 2007-04-27  Bruno Haible  <bruno@clisp.org>
59864
59865         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59866         version is < 6.
59867         * lib/math_.h [__DECC]: Likewise.
59868         * lib/stdio_.h [__DECC]: Likewise.
59869         * lib/stdlib_.h [__DECC]: Likewise.
59870         * lib/string_.h [__DECC]: Likewise.
59871         * lib/time_.h [__DECC]: Likewise.
59872         * lib/wchar_.h [__DECC]: Likewise.
59873         * lib/wctype_.h [__DECC]: Likewise.
59874
59875 2007-04-27  Bruno Haible  <bruno@clisp.org>
59876
59877         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59878
59879 2007-04-27  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/fflush.c: Add comments.
59882         * modules/fpurge-tests (Depends-on): Add fflush.
59883         * modules/freadable-tests (Depends-on): Likewise.
59884         * modules/fwritable-tests (Depends-on): Likewise.
59885
59886 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59887
59888         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59889         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59890         Report by Bruno Haible <bruno@clisp.org>.
59891
59892 2007-04-26  Eric Blake  <ebb9@byu.net>
59893
59894         Fix fflush on mingw.
59895         * modules/fflush (Depends-on): Add freading.
59896         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59897         but unread data.
59898
59899 2007-04-26  Eric Blake  <ebb9@byu.net>
59900         and Bruno Haible  <bruno@clisp.org>
59901
59902         Implement freading and fwriting.
59903         * lib/freading.c: New file.
59904         * lib/freading.h: Likewise.
59905         * m4/freading.m4: Likewise.
59906         * modules/freading: Likewise.
59907         * modules/freading-tests: Likewise.
59908         * tests/test-freading.c: Likewise.
59909         * lib/fwriting.c: New file.
59910         * lib/fwriting.h: Likewise.
59911         * m4/fwriting.m4: Likewise.
59912         * modules/fwriting: Likewise.
59913         * modules/fwriting-tests: Likewise.
59914         * tests/test-fwriting.c: Likewise.
59915         * MODULES.html.sh (File stream based Input/Output): Mention them.
59916
59917 2007-04-26  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59920         'long' when we assume it.
59921         Suggested by Eric Blake.
59922
59923 2007-04-26  Bruno Haible  <bruno@clisp.org>
59924
59925         Ensure fseeko, ftello are declared on glibc systems.
59926         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59927         * modules/fseeko (configure.ac-early): Likewise.
59928         * modules/ftello (configure.ac-early): Likewise.
59929         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59930         AC_FUNC_FSEEKO for this.
59931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59932         (gl_CHECK_FSEEKO): Remove macro.
59933
59934 2007-04-26  Bruno Haible  <bruno@clisp.org>
59935
59936         * tests/test-fflush.c (main): Also check the ftell result after
59937         fflush and fseek/fseeko.
59938         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59939         file descriptor position cache in the stream.
59940         * lib/fseeko.c (rpl_fseeko): Likewise.
59941
59942 2007-04-26  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/fflush-tests (Depends-on): Add fseeko.
59945
59946 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59947             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59948
59949         * lib/argz_.h: ensure error_t definition is obtained in same
59950         mechanism system argz.h would have.
59951         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59952         argz facilities are known bad.  Err on the side of caution if
59953         cross-compiling.
59954
59955 2007-04-25  Eric Blake  <ebb9@byu.net>
59956
59957         * lib/fpurge.c (includes): Use stdlib.h for free.
59958         * tests/test-fflush.c (main): Also test fflush-fseeko.
59959
59960 2007-04-25  Bruno Haible  <bruno@clisp.org>
59961
59962         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59963         * lib/fseeko.c: New file.
59964         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59965         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59966         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59967         gl_FUNC_FSEEKO.
59968         (gl_FUNC_FSEEKO): Invoke it.
59969         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59970         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59971         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59972
59973 2007-04-25  Bruno Haible  <bruno@clisp.org>
59974
59975         * modules/fflush (Depends-on): Add ftello.
59976
59977 2007-04-25  Bruno Haible  <bruno@clisp.org>
59978
59979         * modules/ftello-tests: New file.
59980         * tests/test-ftello.c: New file.
59981
59982         * modules/ftello: New file.
59983         * m4/ftello.m4: New file.
59984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59985         HAVE_FTELLO.
59986         * lib/stdio_.h (ftello): New declaration.
59987         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59988         HAVE_FTELLO.
59989
59990 2007-04-25  Bruno Haible  <bruno@clisp.org>
59991
59992         * modules/fseeko-tests: New file.
59993         * tests/test-fseeko.c: New file.
59994
59995         * modules/fseeko: New file.
59996         * m4/fseeko.m4: New file.
59997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59998         HAVE_FSEEKO.
59999         * lib/stdio_.h (fseeko): New declaration.
60000         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60001         HAVE_FSEEKO.
60002
60003 2007-04-25  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60006
60007 2007-04-25  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60010         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60011         * tests/test-unistd.c: Likewise.
60012         * tests/test-fcntl.c: Likewise.
60013
60014 2007-04-23  Eric Blake  <ebb9@byu.net>
60015
60016         * lib/fflush.c: Fix missing include.
60017         Reported by Bruno Haible.
60018
60019 2007-04-23  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60022         Reported by Eric Blake.
60023
60024 2007-04-23  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60027
60028 2007-04-23  Bruno Haible  <bruno@clisp.org>
60029
60030         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60031
60032 2007-04-23  Bruno Haible  <bruno@clisp.org>
60033
60034         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60035         Needed on HP-UX 11.
60036
60037 2007-04-16  Eric Blake  <ebb9@byu.net>
60038
60039         Make fflush rely on fpurge.
60040         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60041         open coding all variants.
60042         * modules/fflush (Depends-on): Add fpurge and unistd.
60043         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60044         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60045
60046         Fix --with-tests compilation on cygwin.
60047         * modules/argmatch-tests (Makefile.am): List gnulib library first
60048         in LDADD.
60049         * modules/argp-tests (Makefile.am): Likewise.
60050         * modules/array-list-tests (Makefile.am): Likewise.
60051         * modules/array-oset-tests (Makefile.am): Likewise.
60052         * modules/avltree-list-tests (Makefile.am): Likewise.
60053         * modules/avltree-oset-tests (Makefile.am): Likewise.
60054         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60055         * modules/carray-list-tests (Makefile.am): Likewise.
60056         * modules/dirname-tests (Makefile.am): Likewise.
60057         * modules/frexp-tests (Makefile.am): Likewise.
60058         * modules/isnanl-tests (Makefile.am): Likewise.
60059         * modules/linked-list-tests (Makefile.am): Likewise.
60060         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60061         * modules/lock-tests (Makefile.am): Likewise.
60062         * modules/rbtree-list-tests (Makefile.am): Likewise.
60063         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60064         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60065         * modules/tls-tests (Makefile.am): Likewise.
60066         * modules/tsearch-tests (Makefile.am): Likewise.
60067         * modules/xvasprintf-tests (Makefile.am): Likewise.
60068
60069         Fix fpurge for cygwin.
60070         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60071         value.
60072         * modules/fpurge-tests (Depends-on): Clean up trash.
60073
60074 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60075
60076         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60077
60078         * m4/autobuild.m4: Re-indent.
60079
60080 2007-04-13  Bruno Haible  <bruno@clisp.org>
60081
60082         * modules/fpurge-tests: New file.
60083         * tests/test-fpurge.c: New file.
60084
60085         * modules/fpurge: New file.
60086         * lib/fpurge.h: New file.
60087         * lib/fpurge.c: New file.
60088         * m4/fpurge.m4: New file.
60089
60090 2007-04-13  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/fbufmode-tests: New file.
60093         * tests/test-fbufmode.c: New file.
60094
60095         * modules/fbufmode: New file.
60096         * lib/fbufmode.h: New file.
60097         * lib/fbufmode.c: New file.
60098         * m4/fbufmode.m4: New file.
60099
60100 2007-04-13  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/fwritable-tests: New file.
60103         * tests/test-fwritable.c: New file.
60104
60105         * modules/fwritable: New file.
60106         * lib/fwritable.h: New file.
60107         * lib/fwritable.c: New file.
60108         * m4/fwritable.m4: New file.
60109
60110 2007-04-13  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/freadable-tests: New file.
60113         * tests/test-freadable.c: New file.
60114
60115         * modules/freadable: New file.
60116         * lib/freadable.h: New file.
60117         * lib/freadable.c: New file.
60118         * m4/freadable.m4: New file.
60119
60120 2007-04-13  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60123         MOSTLYCLEANFILES.
60124
60125 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60128         gzip bootstrap.conf to avoid dragging in i18n machinery.
60129         (gnulib_tool_option): Use it.
60130
60131 2007-04-13  Bruno Haible  <bruno@clisp.org>
60132
60133         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60134         %F directives.
60135         * tests/test-vasprintf-posix.c (test_function): Likewise.
60136         * tests/test-snprintf-posix.h (test_function): Likewise.
60137         * tests/test-sprintf-posix.h (test_function): Likewise.
60138         * tests/test-fprintf-posix.h (test_function): Likewise.
60139         * tests/test-printf-posix.h (test_function): Likewise.
60140         * tests/test-fprintf-posix.out: Likewise.
60141
60142 2007-04-13  Bruno Haible  <bruno@clisp.org>
60143
60144         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60145         * modules/tls-tests (configure.ac): Likewise.
60146         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60147
60148 2007-04-13  Bruno Haible  <bruno@clisp.org>
60149
60150         * lib/tls.c (glthread_tls_get): Fix return type.
60151         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60152
60153 2007-04-12  Eric Blake  <ebb9@byu.net>
60154
60155         * modules/gettime (Depends-on): Remove gettime.
60156         Reported by Dmitry V. Levin.
60157
60158 2007-04-12  Bruno Haible  <bruno@clisp.org>
60159
60160         * modules/fflush (Include): Mention <stdio.h>.
60161         * modules/strtoimax (Include): Mention <inttypes.h>.
60162         * modules/strtoumax (Include): Likewise.
60163
60164 2007-04-12  Eric Blake  <ebb9@byu.net>
60165
60166         * .cvsignore: New file.
60167         * .gitignore: Likewise.
60168
60169 2007-04-12  Bruno Haible  <bruno@clisp.org>
60170
60171         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60172         not before, since $(LDADD) often contains libgnu.a.
60173         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60174         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60175         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60176         Needed on Cygwin.
60177
60178 2007-04-12  Eric Blake  <ebb9@byu.net>
60179
60180         Work around glibc's failure to flush stdin on fclose.
60181         * lib/closein.c (close_stdin): Flush stdin before closing.
60182
60183         Work around glibc's failure to reset seekable stdin on exit.
60184         * modules/closein: New module.
60185         * lib/closein.c: New file.
60186         * lib/closein.h: Likewise.
60187         * m4/closein.m4: Likewise.
60188         * MODULES.html.sh (File stream based Input/Output): Document it.
60189
60190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60191
60192         * gnulib-tool: Rename generated 'autobuild' script to
60193         'do-autobuild' in --create-megatestdir output.
60194
60195         * doc/gnulib.texi (Build robot for gnulib): Fix.
60196
60197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60198
60199         * modules/sysexits (Depends-on): Add absolute-header.
60200
60201 2007-04-12  Eric Blake  <ebb9@byu.net>
60202
60203         No need to preserve errno on success.
60204         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60205         Reported by Bruno Haible.
60206
60207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60208
60209         * MODULES.html.sh (Support for maintaining and releasing
60210         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60211
60212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60213
60214         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60215
60216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60217
60218         * modules/autobuild: New module.
60219
60220         * m4/autobuild.m4: New file.
60221
60222 2007-04-11  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60225         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60229         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60230         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60232         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60233         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60235         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60236         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60252         Reported by Eric Blake.
60253
60254 2007-04-11  Bruno Haible  <bruno@clisp.org>
60255
60256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60257
60258 2007-04-10  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60261         for NaN and Infinity. Needed on FreeBSD 6.1.
60262         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60263         regarding results for "%010a" of Infinity and NaN.
60264         * tests/test-vasprintf-posix.c (test_function): Likewise.
60265         * tests/test-snprintf-posix.h (test_function): Likewise.
60266         * tests/test-sprintf-posix.h (test_function): Likewise.
60267         * tests/test-fprintf-posix.h (test_function): Likewise.
60268         * tests/test-printf-posix.h (test_function): Likewise.
60269         * tests/test-fprintf-posix.out: Likewise.
60270
60271 2007-04-10  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/locale-tests: New file.
60274         * tests/test-locale.c: New file.
60275
60276         * modules/locale: New file.
60277         * lib/locale_.h: New file.
60278         * m4/locale_h.m4: New file.
60279
60280 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60281             Bruno Haible  <bruno@clisp.org>
60282
60283         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60284         be determined, test for availability of the copysignf, copysign,
60285         copysignl functions.
60286         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60287         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60288         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60289
60290 2007-04-09  Eric Blake  <ebb9@byu.net>
60291
60292         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60293         * modules/stdio (Makefile.am): Support fflush.
60294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60295         * modules/fflush: New file.
60296         * lib/fflush.c: Likewise.
60297         * m4/fflush.m4: Likewise.
60298         * modules/fflush-tests: New test.
60299         * tests/test-fflush.c: Likewise.
60300         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60301
60302 2007-04-06  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60305         (VASNPRINTF): Use signbit for faster determination whether to print a
60306         minus sign.
60307         * modules/vasnprintf (Files): Remove lib/float+.h.
60308         * modules/fprintf-posix (Depends-on): Add signbit.
60309         * modules/snprintf-posix (Depends-on): Likewise.
60310         * modules/sprintf-posix (Depends-on): Likewise.
60311         * modules/vasnprintf-posix (Depends-on): Likewise.
60312         * modules/vasprintf-posix (Depends-on): Likewise.
60313         * modules/vfprintf-posix (Depends-on): Likewise.
60314         * modules/vsnprintf-posix (Depends-on): Likewise.
60315         * modules/vsprintf-posix (Depends-on): Likewise.
60316
60317 2007-04-06  Bruno Haible  <bruno@clisp.org>
60318
60319         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60320         * tests/test-frexpl.c (main): Likewise.
60321         * tests/test-ldexpl.c (main): Likewise.
60322         * modules/frexp-tests (Depends-on): Add signbit.
60323         * modules/frexpl-tests (Depdends-on): Likewise.
60324         * modules/ldexpl-tests (Depdends-on): Likewise.
60325
60326 2007-04-06  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/signbit-tests: New file.
60329         * tests/test-signbit.c: New file.
60330
60331         * modules/signbit: New file.
60332         * lib/signbitf.c: New file.
60333         * lib/signbitd.c: New file.
60334         * lib/signbitl.c: New file.
60335         * m4/signbit.m4: New file.
60336         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60337         (signbit): New macro.
60338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60339         REPLACE_SIGNBIT.
60340         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60341         REPLACE_FREXPL into math.h.
60342
60343 2007-04-06  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/isnanf-nolibm-tests: New file.
60346         * tests/test-isnanf.c: New file.
60347
60348         * modules/isnanf-nolibm: New file.
60349         * lib/isnanf.h: New file.
60350         * lib/isnanf.c: New file.
60351         * lib/isnan.c: Consider the USE_FLOAT macro.
60352         * m4/isnanf.m4: New file.
60353
60354 2007-04-06  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60357         (Link): New section.
60358
60359         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60360
60361 2007-04-06  Bruno Haible  <bruno@clisp.org>
60362
60363         Assume the 'long double' type.
60364         * m4/longdouble.m4: Remove file.
60365         * config/srclist.txt: Don't mention longdouble.m4.
60366         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60367         * lib/float+.h: Likewise.
60368         * lib/frexp.c: Likewise.
60369         * lib/printf-args.h: Likewise.
60370         * lib/printf-args.c: Likewise.
60371         * lib/printf-frexp.c: Likewise.
60372         * lib/printf-parse.c: Likewise.
60373         * lib/vasnprintf.c: Likewise.
60374         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60375         * m4/intl.m4: Likewise.
60376         * m4/isnanl.m4: Likewise.
60377         * m4/printf.m4: Likewise.
60378         * m4/printf-frexpl.m4: Likewise.
60379         * m4/vasnprintf.m4: Likewise.
60380         * modules/allocsa (Files): Remove m4/longdouble.m4.
60381         * modules/gettext (Files): Likewise.
60382         * modules/relocatable-prog-wrapper (Files): Likewise.
60383         * modules/vasnprintf (Files): Likewise.
60384         * modules/isnanl (Files): Likewise.
60385         (Include): Simplify.
60386         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60387         (Include): Simplify.
60388         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60389         (Include): Simplify.
60390         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60392         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60394         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60396         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60398         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60400         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60402         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60403         * tests/test-isnanl.c: Likewise.
60404         * tests/test-snprintf-posix.h: Likewise.
60405         * tests/test-sprintf-posix.h: Likewise.
60406         * tests/test-vasnprintf-posix.c: Likewise.
60407         * tests/test-vasnprintf-posix2.c: Likewise.
60408         * tests/test-vasprintf-posix.c: Likewise.
60409
60410 2007-04-06  Bruno Haible  <bruno@clisp.org>
60411
60412         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60413         * lib/math_.h [__DECC]: Include the overridden include file through
60414         #include_next, outside the double-inclusion guard.
60415         * lib/stdio_.h [__DECC]: Likewise.
60416         * lib/stdlib_.h [__DECC]: Likewise.
60417         * lib/string_.h [__DECC]: Likewise.
60418         * lib/time_.h [__DECC]: Likewise.
60419         * lib/wchar_.h [__DECC]: Likewise.
60420         * lib/wctype_.h [__DECC]: Likewise.
60421         * lib/inttypes_.h [__DECC]: Likewise.
60422         Reported by Albert Chin <china@thewrittenword.com> in
60423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60424
60425 2007-04-04  Eric Blake  <ebb9@byu.net>
60426
60427         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60428         1.5.x.
60429
60430 2007-04-04  Bruno Haible  <bruno@clisp.org>
60431
60432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60433         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60434
60435 2007-04-04  Bruno Haible  <bruno@clisp.org>
60436
60437         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60438         results for "%010a" of Infinity and NaN.
60439         * tests/test-vasprintf-posix.c (test_function): Likewise.
60440         * tests/test-snprintf-posix.h (test_function): Likewise.
60441         * tests/test-sprintf-posix.h (test_function): Likewise.
60442         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60443         * tests/test-printf-posix.h (test_function): Likewise.
60444         * tests/test-fprintf-posix.out: Update.
60445         Needed for FreeBSD 6.1.
60446
60447 2007-04-04  Bruno Haible  <bruno@clisp.org>
60448
60449         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60450         directly used by the gnulib modules nor by gnulib-tool.
60451
60452 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * DEPENDENCIES: Give overall description of version dependency
60455         desirability.  Use more-typical names for apps.
60456         Add shell, coreutils, diffutils, grep, tar, gzip.
60457
60458 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60459
60460         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60461
60462 2007-04-04  Karl Berry  <karl@gnu.org>
60463
60464         * MODULES.html.sh (func_module): missing '.
60465
60466 2007-04-03  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/argmatch-tests (Makefile.am): New variable
60469         test_argmatch_LDADD.
60470         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60471         * modules/array-list-tests (Makefile.am): New variable
60472         test_array_list_LDADD.
60473         * modules/array-oset-tests (Makefile.am): New variable
60474         test_array_oset_LDADD.
60475         * modules/avltree-list-tests (Makefile.am): New variable
60476         test_avltree_list_LDADD.
60477         * modules/avltree-oset-tests (Makefile.am): New variable
60478         test_avltree_oset_LDADD.
60479         * modules/avltreehash-list-tests (Makefile.am): New variable
60480         test_avltreehash_list_LDADD.
60481         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60482         test_canonicalize_lgpl_LDADD.
60483         * modules/carray-list-tests (Makefile.am): New variable
60484         test_carray_list_LDADD.
60485         * modules/dirname-tests (Makefile.am): New variable
60486         test_dirname_LDADD.
60487         * modules/linked-list-tests (Makefile.am): New variable
60488         test_linked_list_LDADD.
60489         * modules/linkedhash-list-tests (Makefile.am): New variable
60490         test_linkedhash_list_LDADD.
60491         * modules/rbtree-list-tests (Makefile.am): New variable
60492         test_rbtree_list_LDADD.
60493         * modules/rbtree-oset-tests (Makefile.am): New variable
60494         test_rbtree_oset_LDADD.
60495         * modules/rbtreehash-list-tests (Makefile.am): New variable
60496         test_rbtreehash_list_LDADD.
60497         * modules/xvasprintf-tests (Makefile.am): New variable
60498         test_xvasprintf_LDADD.
60499         Reported by Eric Blake.
60500
60501 2007-04-03  Eric Blake  <ebb9@byu.net>
60502
60503         * DEPENDENCIES: Weaken m4 requirements.
60504
60505 2007-04-03  Bruno Haible  <bruno@clisp.org>
60506
60507         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60508         * modules/isnanl-tests (configure.ac): Likewise.
60509
60510 2007-04-03  Ben Pfaff  <blp@gnu.org>
60511
60512         * modules/iconv_open: Add $(srcdir)/ to source directory
60513         references in Makefile fragments that call gperf, to fix VPATH
60514         builds.
60515
60516 2007-04-03  Bruno Haible  <bruno@clisp.org>
60517
60518         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60519         * lib/ldexpl.c: Undo last change.
60520
60521 2007-04-03  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/printf-frexpl (Depends-on): Undo last change.
60524         (Files): Add m4/ldexpl.m4.
60525
60526 2007-04-03  Bruno Haible  <bruno@clisp.org>
60527
60528         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60529         * modules/isnanl (Link): New section.
60530
60531         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60532         * modules/frexp (Link): New section.
60533
60534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60535         * modules/frexpl (Link): New section.
60536
60537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60538         * modules/ldexpl (Link): New section.
60539
60540 2007-04-03  Bruno Haible  <bruno@clisp.org>
60541
60542         * modules/TEMPLATE-EXTENDED: New file.
60543         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60544
60545 2007-04-03  Bruno Haible  <bruno@clisp.org>
60546
60547         * DEPENDENCIES: New file.
60548         Suggested by Simon Josefsson.
60549
60550 2007-04-03  Bruno Haible  <bruno@clisp.org>
60551
60552         * doc/gnulib.texi: Escape @.
60553
60554 2007-04-03  James Youngman  <jay@gnu.org>
60555         and Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60558         birthtime on all systems that have birthtime, not just those which
60559         use st_birthtimensec rather than st_birthtim.  Putting zero in
60560         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60561         that the birth time is not available for files on an NFS mount.
60562
60563 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60564
60565         * modules/memxor: Move back from crypto/, suggested by Bruno.
60566         * modules/crypto/hmac-sha1: Fix memxor dependency.
60567
60568         * modules/crypto/gc: Moved from ../.
60569
60570 2007-04-02  Eric Blake  <ebb9@byu.net>
60571
60572         * lib/ldexpl.c (includes): Avoid libm.
60573
60574         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60575
60576 2007-04-02  Bruno Haible  <bruno@clisp.org>
60577
60578         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60579         on IRIX.
60580
60581 2007-04-02  Bruno Haible  <bruno@clisp.org>
60582
60583         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60584         x86 or x86_64 platforms running MacOS X.
60585         Reported by Ryan Schmidt <@ryandesign.com>.
60586
60587 2007-04-02  Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60590         i386.
60591
60592 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60593
60594         * modules/crypto/arcfour: Moved from ../.
60595         * modules/crypto/arcfour-tests: Moved from ../.
60596         * modules/crypto/arctwo: Moved from ../.
60597         * modules/crypto/arctwo-tests: Moved from ../.
60598         * modules/crypto/des: Moved from ../.
60599         * modules/crypto/des-tests: Moved from ../.
60600         * modules/crypto/gc-arcfour: Moved from ../.
60601         * modules/crypto/gc-arcfour-tests: Moved from ../.
60602         * modules/crypto/gc-arctwo: Moved from ../.
60603         * modules/crypto/gc-arctwo-tests: Moved from ../.
60604         * modules/crypto/gc-des: Moved from ../.
60605         * modules/crypto/gc-des-tests: Moved from ../.
60606         * modules/crypto/gc-hmac-md5: Moved from ../.
60607         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60608         * modules/crypto/gc-hmac-sha1: Moved from ../.
60609         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60610         * modules/crypto/gc-md2: Moved from ../.
60611         * modules/crypto/gc-md2-tests: Moved from ../.
60612         * modules/crypto/gc-md4: Moved from ../.
60613         * modules/crypto/gc-md4-tests: Moved from ../.
60614         * modules/crypto/gc-md5: Moved from ../.
60615         * modules/crypto/gc-md5-tests: Moved from ../.
60616         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60617         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60618         * modules/crypto/gc-random: Moved from ../.
60619         * modules/crypto/gc-rijndael: Moved from ../.
60620         * modules/crypto/gc-rijndael-tests: Moved from ../.
60621         * modules/crypto/gc-sha1: Moved from ../.
60622         * modules/crypto/gc-sha1-tests: Moved from ../.
60623         * modules/crypto/gc-tests: Moved from ../.
60624         * modules/crypto/hmac-md5: Moved from ../.
60625         * modules/crypto/hmac-md5-tests: Moved from ../.
60626         * modules/crypto/hmac-sha1: Moved from ../.
60627         * modules/crypto/hmac-sha1-tests: Moved from ../.
60628         * modules/crypto/md2: Moved from ../.
60629         * modules/crypto/md2-tests: Moved from ../.
60630         * modules/crypto/md4: Moved from ../.
60631         * modules/crypto/md4-tests: Moved from ../.
60632         * modules/crypto/md5: Moved from ../.
60633         * modules/crypto/md5-tests: Moved from ../.
60634         * modules/crypto/memxor: Moved from ../.
60635         * modules/crypto/rijndael: Moved from ../.
60636         * modules/crypto/rijndael-tests: Moved from ../.
60637         * modules/crypto/sha1: Moved from ../.
60638
60639 2007-03-30  James Youngman  <jay@gnu.org>
60640
60641         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60642         rename() to change the ctime of a file (because ctime is unaffected
60643         by rename on jfs2 on AIX 5.1).
60644         (main): Start by doing cleanup, in case a previous run failed leaving
60645         test files behind.
60646
60647 2007-03-31  Bruno Haible  <bruno@clisp.org>
60648
60649         Support old proprietary implementations of iconv.
60650         * modules/iconv_open: New file.
60651         * lib/iconv_.h: New file.
60652         * m4/iconv_h.m4: New file.
60653         * lib/iconv_open.c: New file.
60654         * lib/iconv_open-aix.gperf: New file.
60655         * lib/iconv_open-hpux.gperf: New file.
60656         * lib/iconv_open-irix.gperf: New file.
60657         * lib/iconv_open-osf.gperf: New file.
60658         * m4/iconv_open.m4: New file.
60659         * modules/linebreak (Depends-on): Add iconv_open.
60660         * modules/striconv (Depends-on): Likewise.
60661         * modules/striconveh (Depends-on): Likewise.
60662         * modules/unicodeio (Depends-on): Likewise.
60663         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60664         (iconv_t)(-1).
60665         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60666         conversion if cd is (iconv_t)(-1).
60667         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60668         is not possible.
60669
60670 2007-03-31  Bruno Haible  <bruno@clisp.org>
60671
60672         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60673         work on Solaris either. Protect also second use of "autodetect_jp".
60674
60675 2007-03-31  Bruno Haible  <bruno@clisp.org>
60676
60677         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60678         the function is not present.
60679
60680 2007-03-31  Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60683         the function is not present.
60684
60685 2007-03-31  Bruno Haible  <bruno@clisp.org>
60686
60687         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60688         a bug in HP-UX iconv_open().
60689
60690 2007-03-31  Bruno Haible  <bruno@clisp.org>
60691
60692         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60693         (Mathematics <math.h>): New section, add fpieee.
60694         (Input/output <stdio.h>): Add fseterr.
60695         (Mathematics <math.h>): New section, add printf-frexp.
60696         (Container data structures): Add sublist.
60697         (Core language properties): Add fpucw, inline.
60698         (Functions for greatest-width integer types <inttypes.h>): Add
60699         imaxabs, imaxdiv, inttypes.
60700         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60701         isnanl-nolibm, ldexp.
60702         (Mathematics <math.h>): New section, add printf-frexpl.
60703         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60704         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60705         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60706         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60707         (Unicode string functions): Add unistr/u*-mbtoucr.
60708         (Java): Add javacomp-script, javaexec-script.
60709         (C#): Add csharpcomp-script, csharpexec-script.
60710         (Support for building libraries and executables): Add havelib,
60711         relocatable-*.
60712         (Support for maintaining and releasing projects): Renamed from
60713         'Support for maintaining and release projects'. Add announce-gen.
60714
60715 2007-03-31  Bruno Haible  <bruno@clisp.org>
60716
60717         * README: Talk primarily about git.
60718         (git and CVS): Renamed from CVS.
60719         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60720         gnulib is available through git.
60721         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60722
60723 2007-03-30  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60726         * lib/poll_.h: Likewise.
60727         * lib/stat_.h: Likewise.
60728         * lib/sys_time_.h: Likewise.
60729         * lib/sysexit_.h: Likewise.
60730         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60731         * lib/stdbool_.h: Likewise.
60732         * lib/byteswap_.h: Add double-inclusion guard.
60733
60734 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60735
60736         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60737
60738 2007-03-30  Karl Berry  <karl@gnu.org>
60739
60740         * config/srclist-update: double space after USA in the license
60741         substitution, since that's how it's usually (?) written.
60742
60743 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60746         reported by Bruno Haible.
60747
60748 2007-03-29  Bruno Haible  <bruno@clisp.org>
60749
60750         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60751         a bug in AIX iconv().
60752
60753 2007-03-29  Bruno Haible  <bruno@clisp.org>
60754
60755         * modules/ldexpl-tests: New file.
60756         * tests/test-ldexpl.c: New file.
60757
60758 2007-03-29  Bruno Haible  <bruno@clisp.org>
60759
60760         * lib/ldexpl.c: Include fpucw.h.
60761         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60762         multiplication.
60763         * modules/ldexpl (Depends-on): Add fpucw.
60764
60765 2007-03-29  Bruno Haible  <bruno@clisp.org>
60766
60767         * modules/ldexpl: New file.
60768         * m4/ldexpl.m4: New file.
60769         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60770         set.
60771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60772         REPLACE_LDEXPL.
60773         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60774         REPLACE_LDEXPL.
60775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60776         gl_FUNC_LDEXPL_WORKS.
60777         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60778         * modules/mathl (Files): Remove lib/ldexpl.c.
60779         (Depends-on): Add ldexpl.
60780
60781 2007-03-29  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60784
60785 2007-03-29  Bruno Haible  <bruno@clisp.org>
60786
60787         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60788         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60789         and possibly also HP-UX.
60790         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60791         work on AIX, IRIX, HP-UX, OSF/1.
60792         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60793         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60794         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60796         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60797         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60798
60799 2007-03-29  Bruno Haible  <bruno@clisp.org>
60800
60801         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60802
60803 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60806         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60807
60808 2007-03-29  Eric Blake  <ebb9@byu.net>
60809
60810         * lib/acl-internal.h: Remove redundant include.
60811         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60812         Cygwin when a file is locked.
60813
60814 2007-03-29  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60817         file.
60818         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60819
60820 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60821
60822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60823         try to remove a parent directory if the child couldn't be removed
60824         (except for the first rmdir, which could fail because the child
60825         doesn't exist).  Problem reported by Jeff Blaine in
60826         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60827
60828 2007-03-28  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/striconveh.c (utf8conv_carefully): New function.
60831         (mem_cd_iconveh_internal): Invoke it.
60832
60833 2007-03-28  Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60836         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60837         input.
60838         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60839         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60840         unistr/u8-uctomb.
60841
60842 2007-03-28  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/unistr/u8-mbtoucr: New file.
60845         * lib/unistr/u8-mbtoucr.c: New file.
60846         * modules/unistr/u16-mbtoucr: New file.
60847         * lib/unistr/u16-mbtoucr.c: New file.
60848         * modules/unistr/u16-mbtoucr: New file.
60849         * lib/unistr/u16-mbtoucr.c: New file.
60850         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60851
60852 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60853             Bruno Haible  <bruno@clisp.org>
60854
60855         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60856         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60857         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60858
60859         * m4/stdio_h.m4: Add stubs for vasprintf too.
60860
60861         * modules/stdio: Support vasprintf in sed command.
60862
60863         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60864         vasprintf.h.  Add stdio module indicator.
60865
60866         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60867         vasprintf.h.
60868
60869         * lib/vasprintf.h: File removed.
60870
60871         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60872         * lib/vasprintf.c: Ditto.
60873         * lib/xvasprintf.c: Ditto.
60874         * tests/test-vasprintf-posix.c: Ditto.
60875         * tests/test-vasprintf.c: Ditto.
60876
60877 2007-03-27  Bruno Haible  <bruno@clisp.org>
60878
60879         Make vasnprintf multithread-safe.
60880         * lib/vasnprintf.c (decimal_point_char): New function.
60881         (VASNPRINTF): Use it.
60882         Suggested by Simon Josefsson.
60883
60884 2007-03-27  Eric Blake  <ebb9@byu.net>
60885
60886         Support sub-second birthtime on cygwin.
60887         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60888         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60889         (get_stat_birthtime): Also work with st_birthtim.
60890
60891 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60894         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60895         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60896         (get_stat_birthtime_ns): Simplify compile-time tests.
60897         (get_stat_birthtime): Change the API to look like
60898         get_stat_mtime etc., except return a negative tv_nsec on error.
60899         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60900         Don't check for "spare" fields.
60901         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60902         or for struct stat.st_birthtime, as these tests aren't used.
60903         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60904
60905 2007-03-27  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/stat-time.h: Include <sys/stat.h>.
60908
60909 2007-03-27  James Youngman  <jay@gnu.org>
60910
60911         * lib/stat-time.h (get_stat_birthtime): New function for
60912           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60913         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60914           and its variants.
60915         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60916         * modules/stat-time-test: New file.
60917         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60918
60919 2007-03-26  Bruno Haible  <bruno@clisp.org>
60920
60921         Better support of signalling NaNs.
60922         * lib/atanl.c: Include isnanl.h.
60923         (atanl): Perform test for NaN at the beginning of the function and
60924         through a call to isnanl.
60925         * lib/cosl.c: Include isnanl.h.
60926         (cosl): Perform test for NaN at the beginning of the function and
60927         through a call to isnanl.
60928         * lib/ldexpl.c: Include isnanl.h.
60929         (ldexpl): Perform test for NaN through a call to isnanl.
60930         * lib/logl.c: Include isnanl.h.
60931         (logl): Perform test for NaN at the beginning of the function and
60932         through a call to isnanl.
60933         * lib/sinl.c: Include isnanl.h.
60934         (sinl): Perform test for NaN at the beginning of the function and
60935         through a call to isnanl.
60936         * lib/sqrtl.c: Include isnanl.h.
60937         (sqrtl): Perform test for NaN at the beginning of the function and
60938         through a call to isnanl.
60939         * lib/tanl.c: Include isnanl.h.
60940         (tanl): Perform test for NaN at the beginning of the function and
60941         through a call to isnanl.
60942         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60943         * modules/mathl (Depends-on): Add isnanl.
60944
60945 2007-03-26  Eric Blake  <ebb9@byu.net>
60946
60947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60948         regression in logic sense of previous patch.
60949
60950 2007-03-26  Bruno Haible  <bruno@clisp.org>
60951
60952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60953         unportable shell command "if ! ...".
60954         Reported by Ralf Wildenhues.
60955
60956 2007-03-25  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60959         <sysexits.h> file, and only add EX_CONFIG.
60960         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60961         absolute file name and whether it is sufficient. Substitute also
60962         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60963         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60964         ABSOLUTE_SYSEXITS_H into sysexits.h.
60965
60966 2007-03-25  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60969         hints is NULL.
60970
60971 2007-03-25  Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60974         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60975
60976 2007-03-25  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/vasnprintf.c: Include langinfo.h.
60979         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60980         multithread-safe.
60981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60990         Reported by Simon Josefsson.
60991
60992 2007-03-25  Bruno Haible  <bruno@clisp.org>
60993
60994         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60995         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60996         * modules/vasnprintf (Depends-on): Add stdint.
60997
60998 2007-03-25  Bruno Haible  <bruno@clisp.org>
60999
61000         * modules/fpieee: New file.
61001         * m4/fpieee.m4: New file.
61002         * modules/isnan-nolibm (Depends-on): Add fpieee.
61003         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61004         * modules/isnanl (Depends-on): Add fpieee.
61005
61006 2007-03-25  Bruno Haible  <bruno@clisp.org>
61007
61008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61009
61010 2007-03-25  Bruno Haible  <bruno@clisp.org>
61011
61012         Avoid test failures on IRIX 6.5.
61013         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61014         (main): Use it.
61015         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61016         macros.
61017         (main): Use them.
61018
61019 2007-03-25  Bruno Haible  <bruno@clisp.org>
61020
61021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61022         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61023         exists but doesn't work.
61024         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61025         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61027         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61028         math.h.
61029
61030 2007-03-25  Bruno Haible  <bruno@clisp.org>
61031
61032         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61033         returns inf. Needed on IRIX 6.5.
61034
61035 2007-03-25  Bruno Haible  <bruno@clisp.org>
61036
61037         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61038         (main): Use isnanl instead of x != x idiom.
61039         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61040
61041         * tests/test-frexp.c: Include isnan.h.
61042         (main): Use isnan instead of x != x idiom.
61043         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61044
61045 2007-03-25  Bruno Haible  <bruno@clisp.org>
61046
61047         * tests/test-frexp.c (NaN): New function/macro.
61048         (main): Use it instead of 0.0 / 0.0.
61049         * tests/test-isnan.c (NaN): New function/macro.
61050         (main): Use it instead of 0.0 / 0.0.
61051         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61052         (test_function): Use it instead of 0.0 / 0.0.
61053         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61054         (test_function): Use it instead of 0.0 / 0.0.
61055         * tests/test-snprintf-posix.h (NaN): New function/macro.
61056         (test_function): Use it instead of 0.0 / 0.0.
61057         * tests/test-sprintf-posix.h (NaN): New function/macro.
61058         (test_function): Use it instead of 0.0 / 0.0.
61059         * tests/test-fprintf-posix.h (NaN): New function/macro.
61060         (test_function): Use it instead of 0.0 / 0.0.
61061         * tests/test-printf-posix.h (NaN): New function/macro.
61062         (test_function): Use it instead of 0.0 / 0.0.
61063
61064         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61065
61066 2007-03-25  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61069
61070 2007-03-25  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/regexec.c (merge_state_with_log): Make static.
61073
61074 2007-03-25  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/trigl.c (kernel_rem_pio2): Make static.
61077
61078 2007-03-25  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/sincosl.c (sincosl_table): Make static.
61081
61082 2007-03-25  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61085         if the compiler does not support C99.
61086
61087 2007-03-25  Bruno Haible  <bruno@clisp.org>
61088
61089         * modules/time (Makefile.am): Ensure all rule action lines start with a
61090         tab.
61091
61092 2007-03-24  Bruno Haible  <bruno@clisp.org>
61093
61094         * modules/tsearch-tests: New file.
61095         * tests/test-tsearch.sh: New file.
61096         * tests/test-tsearch.c: New file, mostly copied from glibc.
61097
61098         * modules/search-tests: New file.
61099         * tests/test-search.c: New file.
61100
61101         * modules/search: New file.
61102         * lib/search_.h: New file, incorporating lib/tsearch.h.
61103         * m4/search_h.m4: New file.
61104         * lib/tsearch.h: Remove file.
61105         * lib/tsearch.c: Include search.h instead of tsearch.h.
61106         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61107         HAVE_TSEARCH.
61108         * modules/tsearch (Files): Remove lib/tsearch.h.
61109         (Depends-on): Add search.
61110         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61111         (Include): Change tsearch.h into search.h.
61112
61113 2007-03-24  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/fpucw: New file.
61116         * lib/fpucw.h: New file.
61117         * lib/frexp.c: Include fpucw.h.
61118         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61119         (FUNC): Use them.
61120         * lib/printf-frexp.c: Include fpucw.h.
61121         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61122         (FUNC): Use them.
61123         * lib/vasnprintf.c: Include fpucw.h.
61124         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61125         'long double' calculations.
61126         * tests/test-frexpl.c: Include fpucw.h.
61127         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61128         * tests/test-printf-frexpl.c: Include fpucw.h.
61129         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61130         * modules/frexpl (Depends-on): Add fpucw.
61131         * modules/printf-frexpl (Depends-on): Likewise.
61132         * modules/fprintf-posix (Depends-on): Likewise.
61133         * modules/snprintf-posix (Depends-on): Likewise.
61134         * modules/sprintf-posix (Depends-on): Likewise.
61135         * modules/vasnprintf-posix (Depends-on): Likewise.
61136         * modules/vasprintf-posix (Depends-on): Likewise.
61137         * modules/vfprintf-posix (Depends-on): Likewise.
61138         * modules/vsnprintf-posix (Depends-on): Likewise.
61139         * modules/vsprintf-posix (Depends-on): Likewise.
61140         * modules/frexpl-tests (Depends-on): Likewise.
61141         * modules/printf-frexpl-tests (Depends-on): Likewise.
61142
61143 2007-03-24  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/float+.h: New file.
61146         * lib/isnan.c: Include float+.h.
61147         (SIZE): New macro.
61148         (FUNC): Compare only SIZE bytes of the value.
61149         * lib/vasnprintf.c: Include float+.h.
61150         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61151         SIZEOF_LDBL or SIZEOF_DBL bytes.
61152         * modules/isnan-nolibm (Files): Add lib/float+.h.
61153         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61154         * modules/isnanl (Files): Add lib/float+.h.
61155         * modules/vasnprintf (Files): Add lib/float+.h.
61156
61157 2007-03-24  Bruno Haible  <bruno@clisp.org>
61158
61159         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61160         include isnanl-nolibm.h.
61161
61162 2007-03-24  Bruno Haible  <bruno@clisp.org>
61163
61164         * tests/test-read-file.c (main): Don't produce spurious output for
61165         expected situations. Make the test fail if it encountered unexpected
61166         results.
61167
61168 2007-03-24  Bruno Haible  <bruno@clisp.org>
61169
61170         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61171         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61172
61173 2007-03-24  Bruno Haible  <bruno@clisp.org>
61174
61175         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61176
61177 2007-03-24  Bruno Haible  <bruno@clisp.org>
61178
61179         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61180         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61181
61182         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61183         * modules/utf8-ucs4: Turn into a symbolic link to module
61184         unistr/u8-mbtouc.
61185
61186         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61187         utf8-ucs4-unsafe.
61188         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61189         unistr/u8-mbtouc-unsafe.
61190
61191         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61192         * modules/utf16-ucs4: Turn into a symbolic link to module
61193         unistr/u16-mbtouc.
61194
61195         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61196         utf16-ucs4-unsafe.
61197         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61198         unistr/u16-mbtouc-unsafe.
61199
61200         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61201         * modules/ucs4-utf8: Turn into a symbolic link to module
61202         unistr/u8-ubtomb.
61203
61204         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61205         * modules/ucs4-utf16: Turn into a symbolic link to module
61206         unistr/u16-ubtomb.
61207
61208 2007-03-24  Bruno Haible  <bruno@clisp.org>
61209
61210         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61211         Enable the function only if HAVE_INLINE.
61212         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61213         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61214         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61215         Enable the function only if HAVE_INLINE.
61216         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61217         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61218         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61219         Enable the function only if HAVE_INLINE.
61220         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61221         Enable the function only if HAVE_INLINE.
61222         * modules/utf8-ucs4: Update.
61223         * modules/utf8-ucs4-unsafe: Update.
61224         * modules/utf16-ucs4: Update.
61225         * modules/utf16-ucs4-unsafe: Update.
61226         * modules/ucs4-utf8: Update.
61227         * modules/ucs4-utf16: Update.
61228
61229 2007-03-24  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/utf8-ucs4.h: Remove file.
61232         * lib/utf8-ucs4-unsafe.h: Remove file.
61233         * lib/utf16-ucs4.h: Remove file.
61234         * lib/utf16-ucs4-unsafe.h: Remove file.
61235         * lib/ucs4-utf8.h: Remove file.
61236         * lib/ucs4-utf16.h: Remove file.
61237         * lib/unistr.h: Include their previous contents.
61238         * m4/utf-ucs4.m4: Remove file.
61239         * m4/ucs4-utf.m4: Remove file.
61240         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61241         (Depends-on): Add unistr/base.
61242         (configure.ac): Remove gl_UTF_UCS4.
61243         (Makefile.am): Update.
61244         (Include): Change to unistr.h.
61245         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61246         (Depends-on): Add unistr/base.
61247         (configure.ac): Remove gl_UTF_UCS4.
61248         (Makefile.am): Update.
61249         (Include): Change to unistr.h.
61250         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61251         (Depends-on): Add unistr/base.
61252         (configure.ac): Remove gl_UTF_UCS4.
61253         (Makefile.am): Update.
61254         (Include): Change to unistr.h.
61255         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61256         (Depends-on): Add unistr/base.
61257         (configure.ac): Remove gl_UTF_UCS4.
61258         (Makefile.am): Update.
61259         (Include): Change to unistr.h.
61260         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61261         (Depends-on): Add unistr/base.
61262         (configure.ac): Remove gl_UCS4_UTF.
61263         (Makefile.am): Update.
61264         (Include): Change to unistr.h.
61265         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61266         (Depends-on): Add unistr/base.
61267         (configure.ac): Remove gl_UCS4_UTF.
61268         (Makefile.am): Update.
61269         (Include): Change to unistr.h.
61270         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61271         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61272         utf8-ucs4-unsafe.h.
61273         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61274         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61275         utf16-ucs4-unsafe.h.
61276         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61277         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61278         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61279         * lib/unistr/u8-strchr.c: Likewise.
61280         * lib/unistr/u8-strrchr.c: Likewise.
61281         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61282         * lib/unistr/u16-strchr.c: Likewise.
61283         * lib/unistr/u16-strrchr.c: Likewise.
61284         * lib/striconveh.c: Update.
61285         * lib/linebreak.c: Update.
61286
61287 2007-03-24  Bruno Haible  <bruno@clisp.org>
61288
61289         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61290         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61291
61292 2007-03-22  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61295
61296 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61297
61298         * MODULES.html.sh (File system functions): New module write-any-file.
61299         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61300         * m4/write-any-file.m4: New files.
61301
61302 2007-03-23  Eric Blake  <ebb9@byu.net>
61303
61304         * gnulib-tool: Rearrange space-tab sequences, since some editors
61305         like to eat them.
61306
61307 2007-03-23  Eric Blake  <ebb9@byu.net>
61308
61309         * lib/version-etc.c (version_etc_va): Update license wording to
61310         be more concise.  Recommended by Richard Stallman.
61311
61312 2007-03-22  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/poll.c (MSG_PEEK): New fallback definition.
61315
61316 2007-03-22  Bruno Haible  <bruno@clisp.org>
61317
61318         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61319         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61320         (main): Update.
61321         Fixes a compilation error on BeOS.
61322
61323 2007-03-22  Bruno Haible  <bruno@clisp.org>
61324
61325         * modules/frexpl-tests: New file.
61326         * tests/test-frexpl.c: New file.
61327
61328         * modules/frexpl: New file.
61329         * m4/frexpl.m4: New file.
61330         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61331         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61333         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61334         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61335         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61336
61337 2007-03-22  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/frexpl.c: Share code with lib/frexp.c.
61340         * modules/mathl (Files): Add lib/frexp.c.
61341         (Depends-on): Add isnanl-nolibm.
61342
61343 2007-03-22  Bruno Haible  <bruno@clisp.org>
61344
61345         * modules/printf-frexp (Files): Add m4/frexp.m4.
61346         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61347         only if the found frexp function actually works.
61348
61349 2007-03-22  Bruno Haible  <bruno@clisp.org>
61350
61351         * lib/frexp.c: Remove older implementation that uses divisions.
61352
61353 2007-03-21  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/frexp-tests: New file.
61356         * tests/test-frexp.c: New file.
61357
61358         * modules/frexp: New file.
61359         * lib/frexp.c: New file.
61360         * m4/frexp.m4: New file.
61361         * lib/math_.h (frexp): New declaration.
61362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61363         REPLACE_FREXP.
61364         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61365
61366 2007-03-21  Bruno Haible  <bruno@clisp.org>
61367
61368         * modules/isnanl-tests: New file.
61369         * tests/test-isnanl.c: New file.
61370
61371         * modules/isnanl: New file.
61372         * lib/isnanl.h: New file.
61373         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61374         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61375         gl_FUNC_ISNANL_WORKS.
61376         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61377         New macros.
61378
61379 2007-03-21  Bruno Haible  <bruno@clisp.org>
61380
61381         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61382         lib/isnanl.h.
61383         (Include): Update.
61384         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61385         * lib/vasnprintf.c: Update.
61386         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61387         tests/test-isnanl.h, remove tests/test-isnanl.c.
61388         (Makefile.am): Update.
61389         * tests/test-isnanl-nolibm.c: New file.
61390         * tests/test-isnanl.h: New file.
61391         * tests/test-isnanl.c: Remove file.
61392
61393 2007-03-21  Jim Meyering  <jim@meyering.net>
61394
61395         When trying to open ".", treat ESTALE like EACCES.
61396         * lib/savewd.c (savewd_save): Resort to forking not just upon
61397         failure with EACCES, but also when errno is ESTALE.
61398
61399 2007-03-20  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61402         Needed on AIX 5.1. Reported by Matthew Woehlke.
61403
61404 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         Suggestions by Bruno Haible:
61407         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61408         our own.
61409         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61410         * modules/acl (Depends-on): Add gettext.
61411
61412 2007-03-19  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/iconvme: Remove file.
61415         * lib/iconvme.h: Remove file.
61416         * lib/iconvme.c: Remove file.
61417         * m4/iconvme.m4: Remove file.
61418
61419 2007-03-19  Bruno Haible  <bruno@clisp.org>
61420
61421         * doc/relocatable-maint.texi: Break long shell script line.
61422         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61423
61424 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61427         handle file_has_acl.
61428         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61429         * lib/acl.c: Move header inclusions and related macro defns into
61430         lib/acl-internal.h.
61431         (S_ISLNK): Remove defn, since that's now done for us.
61432         (file_has_acl): Move to lib/file-has-acl.c.
61433         Call acl_trivial if available.  This is the crucial part of the fix.
61434         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61435         shared within the library.  Rewrite a bit, partly to make it compatible
61436         with the GNU coding style.
61437         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61438         Remove unnecessary double-quotes.
61439         Don't test for acl_to_text; the build will catch that.
61440         Replace acl_entries if it doesn't exist and it is needed.
61441         Check for -lsec and acl_trivial (as used on Solaris 10).
61442         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61443         lib/file-has-acl.c.
61444         (Depends-on): Add sys_stat, for S_ISLNK.
61445
61446 2007-03-19  Ben Pfaff  <blp@gnu.org>
61447
61448         * doc/gnulib.texi: Fix typos.
61449         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61450
61451 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61452
61453         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61454         If size is zero here, buf must be zero.
61455
61456 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61457
61458         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61459         <bruno@clisp.org>.
61460
61461 2007-03-18  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61464         Suggested by Eric Blake.
61465
61466 2007-03-18  Ben Pfaff  <blp@gnu.org>
61467
61468         * doc/relocatable.texi: Recommend using as prefix a directory
61469         that does not exist and will never be created.  Based on
61470         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61471         and others.
61472
61473 2007-03-17  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/fchownat.c: Include lchown.h.
61476
61477 2007-03-17  Bruno Haible  <bruno@clisp.org>
61478
61479         Fix endless loop when the given allocated size was > INT_MAX.
61480         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61481         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61482         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61483         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61484         * lib/sprintf.c (sprintf): Likewise.
61485
61486 2007-03-17  Bruno Haible  <bruno@clisp.org>
61487
61488         * tests/test-argp-2.sh (func_compare): Output a context diff.
61489
61490 2007-03-17  Bruno Haible  <bruno@clisp.org>
61491
61492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61493         locale's decimal-point character.
61494
61495 2007-03-17  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61498         before comparing it. Needed because on some platforms (e.g. x86) a
61499         'long double' occupies less bytes than sizeof (long double).
61500
61501 2007-03-17  Bruno Haible  <bruno@clisp.org>
61502
61503         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61504         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61505         * tests/test-getaddrinfo.c (simple): Likewise.
61506         * tests/test-read-file.c (main): Likewise.
61507
61508 2007-03-17  Bruno Haible  <bruno@clisp.org>
61509
61510         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61511
61512 2007-03-17  Bruno Haible  <bruno@clisp.org>
61513
61514         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61515         unused variable.
61516
61517 2007-03-17  Bruno Haible  <bruno@clisp.org>
61518
61519         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61520         * tests/test-c-strncasecmp.c: Likewise.
61521
61522 2007-03-17  Bruno Haible  <bruno@clisp.org>
61523
61524         * modules/stdlib (Depends-on): Add unistd.
61525         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61526         Needed for MacOS X 10.3.
61527
61528 2007-03-17  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61531
61532 2007-03-17  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61535
61536 2007-03-17  Bruno Haible  <bruno@clisp.org>
61537
61538         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61539         to reflect files copied from gnulib (with or without modifications).
61540         Suggested by Jim Meyering.
61541
61542 2007-03-17  Eric Blake  <ebb9@byu.net>
61543
61544         * NEWS: Document stdlib change from 2007-02-18.
61545
61546 2007-03-17  Jim Meyering  <jim@meyering.net>
61547
61548         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61549         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61550         someone uses a name containing shell meta-characters.
61551         Reported by Alfred M. Szmidt.
61552
61553         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61554
61555 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61556
61557         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61558         and copy gettext configuration files only if configure.ac contains
61559         a use of AM_GNU_GETTEXT_VERSION.
61560
61561 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61562
61563         * build-aux/bootstrap (gnulib_name): New variable.
61564         (gnulib_tool_options): Use it.
61565
61566 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61567
61568         * tests/test-des.c: Use new namespace.
61569
61570 2007-03-15  Bruno Haible  <bruno@clisp.org>
61571
61572         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61573         Reported by James Youngman <jay@gnu.org>.
61574
61575 2007-03-15  Bruno Haible  <bruno@clisp.org>
61576
61577         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61578         declared prototype. Needed with cc on OSF/1 5.1.
61579
61580 2007-03-15  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61583         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61584         (struct gl_list_implementation): Add dispose_fn argument to the
61585         'create_empty', 'create' methods.
61586         (struct gl_list_impl_base): Add field 'dispose_fn'.
61587         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61588         argument.
61589         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61590         dispose_fn argument.
61591         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61592         dispose_fn on the dropped values.
61593         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61594         dispose_fn argument.
61595         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61596         dropped values.
61597         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61598         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61599         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61600         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61602         argument.
61603         (gl_tree_list_free): Call dispose_fn on the dropped values.
61604         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61605         the dropped values.
61606         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61607         Add dispose_fn argument.
61608         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61609         Call dispose_fn on the dropped values.
61610         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61611         Add dispose_fn argument.
61612         (gl_sublist_create): Initialize the 'dispose_fn' field.
61613         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61614         * tests/test-array_list.c (main): Update.
61615         * tests/test-carray_list.c (main): Update.
61616         * tests/test-avltree_list.c (main): Update.
61617         * tests/test-rbtree_list.c (main): Update.
61618         * tests/test-avltreehash_list.c (main): Update.
61619         * tests/test-rbtreehash_list.c (main): Update.
61620         * tests/test-linked_list.c (main): Update.
61621         * tests/test-linkedhash_list.c (main): Update.
61622         * tests/test-array_oset.c (main): Update.
61623
61624 2007-03-15  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61627         (gl_oset_create_empty): Add dispose_fn argument.
61628         (struct gl_oset_implementation): Add dispose_fn argument to
61629         'create_empty' method.
61630         (struct gl_oset_impl_base): Add dispose_fn field.
61631         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61632         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61633         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61634         values.
61635         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61636         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61637         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61638         dropped value.
61639         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61640         dropped value.
61641         * tests/test-array_oset.c (main): Update.
61642         * tests/test-avltree_oset.c (main): Update.
61643         * tests/test-rbtree_oset.c (main): Update.
61644         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61645
61646 2007-03-13  Bruno Haible  <bruno@clisp.org>
61647
61648         * tests/test-stdbool.c (i): Update after last patch.
61649
61650 2007-03-12  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61653         the iswprint macro. Needed on Solaris 2.5.1.
61654
61655 2007-03-12  Bruno Haible  <bruno@clisp.org>
61656
61657         * tests/test-printf-frexp.c (main): Declare x as volatile.
61658
61659 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61660
61661         * doc/gnulib.texi (Build robot for gnulib): New section.
61662
61663 2007-03-12  Jim Meyering  <jim@meyering.net>
61664
61665         * build-aux/bootstrap: New file.
61666         * build-aux/bootstrap.conf: New file, from coreutils.
61667
61668 2007-03-11  Bruno Haible  <bruno@clisp.org>
61669
61670         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61671
61672 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61673
61674         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61675         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61676         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61677
61678 2007-03-11  Bruno Haible  <bruno@clisp.org>
61679
61680         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61681         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61682
61683 2007-03-11  Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61686         formula. Needed for SunPRO C 5.0.
61687
61688 2007-03-11  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/long-options (Depends-on): Add getopt.
61691
61692 2007-03-11  Bruno Haible  <bruno@clisp.org>
61693
61694         * modules/modechange (Depends-on): Add stdbool.
61695
61696 2007-03-11  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/i-ring (Depends-on): Add stdbool.
61699
61700 2007-03-11  Bruno Haible  <bruno@clisp.org>
61701
61702         * modules/gc-des (Depends-on): Add stdbool.
61703
61704 2007-03-11  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61707
61708 2007-03-11  Bruno Haible  <bruno@clisp.org>
61709
61710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61711
61712 2007-03-11  Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61715
61716 2007-03-11  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/vasnprintf.c (sprintf): Undefine.
61719
61720 2007-03-11  Bruno Haible  <bruno@clisp.org>
61721
61722         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61723         initializers in SunPRO C and Compaq C compilers.
61724
61725 2007-03-11  Bruno Haible  <bruno@clisp.org>
61726
61727         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61728         decrementing code ANSI C compliant.
61729
61730 2007-03-11  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61733         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61734
61735 2007-03-11  Bruno Haible  <bruno@clisp.org>
61736
61737         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61738         <stdbool.h> substitute doesn't pass.
61739
61740 2007-03-11  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61743
61744 2007-03-11  Bruno Haible  <bruno@clisp.org>
61745
61746         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61747         script, for submission to autobuild.josefsson.org.
61748
61749 2007-03-10  Bruno Haible  <bruno@clisp.org>
61750
61751         * modules/canonicalize-lgpl-tests: New file.
61752         * tests/test-canonicalize-lgpl.sh: New file.
61753         * tests/test-canonicalize-lgpl.c: New file.
61754
61755         * modules/c-strcase-tests: New file.
61756         * tests/test-c-strcase.sh: New file.
61757         * tests/test-c-strcasecmp.c: New file.
61758         * tests/test-c-strncasecmp.c: New file.
61759
61760         * modules/atexit-tests: New file.
61761         * tests/test-atexit.sh: New file.
61762         * tests/test-atexit.c: New file.
61763
61764 2007-03-10  Bruno Haible  <bruno@clisp.org>
61765
61766         * tests/test-binary-io.sh: Use temporary filenames that are not so
61767         likely to clash with those of other tests (in a parallel make).
61768         * tests/test-binary-io.c: Likewise.
61769
61770 2007-03-10  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61773         fallback; use #error instead.
61774         Suggested by Simon Josefsson.
61775
61776 2007-03-10  Bruno Haible  <bruno@clisp.org>
61777
61778         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61779         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61780         first and the last.
61781
61782 2007-03-10  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61785
61786 2007-03-10  Bruno Haible  <bruno@clisp.org>
61787
61788         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61789         "make distcheck".
61790         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61791         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61792         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61793
61794 2007-03-10  Bruno Haible  <bruno@clisp.org>
61795
61796         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61797         variable.
61798         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61799         variable.
61800
61801 2007-03-09  Eric Blake  <ebb9@byu.net>
61802         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61803
61804         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61805         types are not being provided by gnulib.
61806         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61807         types are supported.
61808
61809 2007-03-10  Bruno Haible  <bruno@clisp.org>
61810
61811         * lib/stdio_.h (__attribute__): New macro.
61812         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61813         vsprintf): Specify __attribute__ __format__ for GCC.
61814         Suggested by Eric Blake.
61815
61816 2007-03-09  Bruno Haible  <bruno@clisp.org>
61817
61818         * modules/printf-posix-tests: New file.
61819         * tests/test-printf-posix.sh: New file.
61820         * tests/test-printf-posix.c: New file.
61821
61822         * modules/printf-posix: New file.
61823         * lib/printf.c: New file.
61824         * m4/printf-posix-rpl.m4: New file.
61825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61826         REPLACE_PRINTF.
61827         * lib/stdio_.h (printf): New declaration.
61828         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61829         ____strfmon____): New macros.
61830         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61831         REPLACE_PRINTF.
61832
61833 2007-03-09  Bruno Haible  <bruno@clisp.org>
61834
61835         * tests/test-vasnprintf-posix2.sh: New file.
61836         * tests/test-vasnprintf-posix2.c: New file.
61837         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61839         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61840
61841         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61842         a locale dependent decimal point, rather than always '.'.
61843
61844 2007-03-09  Eric Blake  <ebb9@byu.net>
61845
61846         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61847         spite of platforms like Tandem/NSK that define it to -1.
61848
61849 2007-03-08  Bruno Haible  <bruno@clisp.org>
61850
61851         * modules/vprintf-posix-tests: New file.
61852         * tests/test-vprintf-posix.sh: New file.
61853         * tests/test-vprintf-posix.c: New file.
61854         * tests/test-printf-posix.h: New file.
61855
61856         * modules/vprintf-posix: New file.
61857         * lib/vprintf.c: New file.
61858         * m4/vprintf-posix.m4: New file.
61859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61860         REPLACE_VPRINTF.
61861         * lib/stdio_.h (vprintf): New declaration.
61862         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61863         REPLACE_VPRINTF.
61864
61865 2007-03-08  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/fprintf-posix-tests: New file.
61868         * tests/test-fprintf-posix.sh: New file.
61869         * tests/test-fprintf-posix.c: New file.
61870
61871         * modules/fprintf-posix: New file.
61872         * lib/fprintf.c: New file.
61873         * m4/fprintf-posix.m4: New file.
61874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61875         REPLACE_FPRINTF.
61876         * lib/stdio_.h (fprintf): New declaration.
61877         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61878         REPLACE_FPRINTF.
61879
61880 2007-03-08  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/vfprintf-posix-tests: New file.
61883         * tests/test-vfprintf-posix.sh: New file.
61884         * tests/test-vfprintf-posix.c: New file.
61885         * tests/test-fprintf-posix.h: New file.
61886         * tests/test-fprintf-posix.out: New file.
61887
61888         * modules/vfprintf-posix: New file.
61889         * lib/vfprintf.c: New file.
61890         * m4/vfprintf-posix.m4: New file.
61891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61892         REPLACE_VFPRINTF.
61893         * lib/stdio_.h (vfprintf): New declaration.
61894         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61895         REPLACE_VFPRINTF.
61896
61897 2007-03-08  Bruno Haible  <bruno@clisp.org>
61898
61899         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61900
61901 2007-03-08  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61904         instead of 'expr' invocations.
61905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61910         Suggested by Paul Eggert.
61911
61912 2007-03-08  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/fseterr-tests: New file.
61915         * tests/test-fseterr.c: New file.
61916
61917         * modules/fseterr: New file.
61918         * lib/fseterr.h: New file.
61919         * lib/fseterr.c: New file.
61920
61921 2007-03-08  Bruno Haible  <bruno@clisp.org>
61922
61923         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61924         * lib/getopt_.h: Likewise.
61925         * lib/mbswidth.h: Likewise.
61926         * lib/setenv.h: Likewise.
61927         * lib/vasnprintf.h: Likewise.
61928         * lib/vasprintf.h: Likewise.
61929         * lib/verror.h: Likewise.
61930         * lib/xsetenv.h: Likewise.
61931         * lib/xvasprintf.h: Likewise.
61932
61933 2007-03-08  Jim Meyering  <jim@meyering.net>
61934
61935         * users.txt: Add parted.
61936
61937         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61938
61939 2007-03-07  Bruno Haible  <bruno@clisp.org>
61940
61941         * m4/printf.m4: Make the shell script snippets copy&pastable.
61942
61943 2007-03-02  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/netinet_in_.h: New file.
61946         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61947         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61948         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61949         (Depends-on): Add absolute-header.
61950         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61951         into netinet/in.h.
61952
61953 2007-03-03  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/sys_select_.h: New file.
61956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61957         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61958         * modules/sys_select (Files): Add lib/sys_select_.h.
61959         (Depends-on): Add absolute-header.
61960         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61961         into sys/select.h.
61962
61963 2007-03-02  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61966         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61967         values.
61968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61969         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61970         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61971         * modules/sys_socket (Depends-on): Add absolute-header.
61972         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61973         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61974         (Include): Remove requirement of inclusion of <sys/types.h>.
61975
61976 2007-03-02  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/byteswap_.h (bswap_32): Fix formula.
61979
61980 2007-03-06  Bruno Haible  <bruno@clisp.org>
61981
61982         * modules/sprintf-posix-tests: New file.
61983         * tests/test-sprintf-posix.c: New file.
61984
61985         * modules/sprintf-posix: New file.
61986         * lib/sprintf.c: New file.
61987         * m4/sprintf-posix.m4: New file.
61988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61989         REPLACE_SPRINTF.
61990         * lib/stdio_.h (sprintf): New declaration.
61991         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61992         REPLACE_SPRINTF.
61993
61994 2007-03-06  Bruno Haible  <bruno@clisp.org>
61995
61996         * modules/vsprintf-posix-tests: New file.
61997         * tests/test-vsprintf-posix.c: New file.
61998         * tests/test-sprintf-posix.h: New file.
61999
62000         * modules/vsprintf-posix: New file.
62001         * lib/vsprintf.c: New file.
62002         * m4/vsprintf-posix.m4: New file.
62003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62004         REPLACE_VSPRINTF.
62005         * lib/stdio_.h (vsprintf): New declaration.
62006         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62007         REPLACE_VSPRINTF.
62008
62009 2007-03-06  Bruno Haible  <bruno@clisp.org>
62010
62011         * modules/vsnprintf (Depend-on): Remove minmax.
62012
62013 2007-03-06  Bruno Haible  <bruno@clisp.org>
62014
62015         * modules/snprintf-posix-tests: New file.
62016         * tests/test-snprintf-posix.c: New file.
62017
62018         * modules/snprintf-posix: New file.
62019         * m4/snprintf-posix.m4: New file.
62020         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62021         gl_FUNC_SNPRINTF.
62022         (gl_FUNC_SNPRINTF): Invoke it.
62023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62024         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62025         is set.
62026         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62027
62028 2007-03-06  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/vsnprintf-posix-tests: New file.
62031         * tests/test-vsnprintf-posix.c: New file.
62032         * tests/test-snprintf-posix.h: New file.
62033
62034         * modules/vsnprintf-posix: New file.
62035         * m4/vsnprintf-posix.m4: New file.
62036         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62037         gl_FUNC_VSNPRINTF.
62038         (gl_FUNC_VSNPRINTF): Invoke it.
62039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62040         * lib/stdio_.h (vsnprintf): Define as a replacement if
62041         REPLACE_VSNPRINTF is set.
62042         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62043
62044 2007-03-06  Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62048
62049 2007-03-06  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62052         (asinl): Declare also if HAVE_DECL_ASINL is set.
62053         (atanl): Declare also if HAVE_DECL_ATANL is set.
62054         (ceill): Declare also if HAVE_DECL_CEILL is set.
62055         (cosl): Declare also if HAVE_DECL_COSL is set.
62056         (expl): Declare also if HAVE_DECL_EXPL is set.
62057         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62058         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62059         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62060         (logl): Declare also if HAVE_DECL_LOGL is set.
62061         (sinl): Declare also if HAVE_DECL_SINL is set.
62062         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62063         (tanl): Declare also if HAVE_DECL_TANL is set.
62064         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62067         declaration of frexpl, ldexpl.
62068         * modules/printf-frexpl (Depends-on): Add math.
62069         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62070
62071 2007-03-05  Bruno Haible  <bruno@clisp.org>
62072
62073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62074         frexpl and ldexpl are declared.
62075         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62076
62077 2007-03-05  Bruno Haible  <bruno@clisp.org>
62078
62079         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62080         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62081
62082 2007-03-05  Bruno Haible  <bruno@clisp.org>
62083
62084         * lib/stdio_.h: Include <stddef.h>.
62085
62086 2007-03-05  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62089
62090 2007-03-05  Bruno Haible  <bruno@clisp.org>
62091
62092         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62093         NetBSD 4, from Ralf Wildenhues.
62094
62095 2007-03-04  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/vasprintf.h: Update #if logic for the case when the functions
62098         exist but are overridden.
62099
62100 2007-03-04  Bruno Haible  <bruno@clisp.org>
62101
62102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62103         implementations: glibc-2.4 and MacOS X 10.3.
62104         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62105         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62106         * tests/test-vasprintf-posix.c (test_function): Likewise.
62107
62108 2007-03-04  Bruno Haible  <bruno@clisp.org>
62109
62110         * modules/vasprintf-posix-tests: New file.
62111         * tests/test-vasprintf-posix.c: New file.
62112
62113         * modules/vasprintf-posix: New file.
62114         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62115         defined.
62116         * m4/vasprintf-posix.m4: New file.
62117         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62118         gl_FUNC_VASPRINTF.
62119         (gl_FUNC_VASPRINTF): Invoke it.
62120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62121         here.
62122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62123
62124 2007-03-04  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62127         REPLACE_GETTIMEOFDAY.
62128         * modules/sys_time (Makefile.am): Likewise.
62129         * m4/sys_time_h.m4: Likewise.
62130         * m4/gettimeofday.m4: Likewise.
62131
62132 2007-03-04  Bruno Haible  <bruno@clisp.org>
62133
62134         * modules/vasnprintf-posix-tests: New file.
62135         * tests/test-vasnprintf-posix.c: New file.
62136
62137         * modules/vasnprintf-posix: New file.
62138         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62139         printf-frexpl.h.
62140         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62141         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62142         REPLACE_VASNPRINTF is defined.
62143         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62144         gl_FUNC_VASNPRINTF.
62145         (gl_FUNC_VASNPRINTF): Invoke it.
62146         * m4/vasnprintf-posix.m4: New file.
62147         * m4/printf.m4: New file.
62148
62149 2007-03-04  Bruno Haible  <bruno@clisp.org>
62150
62151         Compile progreloc.c only if --enable-relocatable is specified.
62152         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62153         if --enable-relocatable was specified.
62154         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62155         lib_SOURCES.
62156
62157 2007-03-04  Jim Meyering  <jim@meyering.net>
62158
62159         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62160         Use it consistently, rather than enumerating errno constants.
62161
62162 2007-03-04  Bruno Haible  <bruno@clisp.org>
62163
62164         * modules/xvasprintf-tests: New file.
62165         * tests/test-xvasprintf.c: New file.
62166
62167         * modules/vasprintf-tests: New file.
62168         * tests/test-vasprintf.c: New file.
62169
62170         * modules/vasnprintf-tests: New file.
62171         * tests/test-vasnprintf.c: New file.
62172
62173         * modules/vsnprintf-tests: New file.
62174         * tests/test-vsnprintf.c: New file.
62175
62176         * modules/snprintf-tests: New file.
62177         * tests/test-snprintf.c: New file.
62178
62179 2007-03-04  Bruno Haible  <bruno@clisp.org>
62180
62181         Compile relocatable.c only if --enable-relocatable is specified.
62182         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62183         gl_RELOCATABLE_LIBRARY.
62184         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62185         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62186         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62187         gl_RELOCATABLE_LIBRARY.
62188         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62189         (Makefile.am): Remove lib_SOURCES.
62190         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62191         gl_RELOCATABLE_LIBRARY.
62192         (Makefile.am): Remove lib_SOURCES.
62193         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62194         always.
62195         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62196         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62197
62198 2007-03-04  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/argmatch-tests: New file.
62201         * tests/test-argmatch.c: New file.
62202
62203         * tests/test-allocsa.c (main): Halve the number of loop runs.
62204
62205         * modules/alloca-opt-tests: New file.
62206         * tests/test-alloca-opt.c: New file.
62207
62208 2007-03-04  Jim Meyering  <jim@meyering.net>
62209
62210         Work around difference between Linux ACLs and Solaris 10 ZFS.
62211         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62212         for EINVAL.
62213
62214 2007-03-03  Bruno Haible  <bruno@clisp.org>
62215
62216         * modules/relocatable-prog (Depends-on): Add back progreloc's
62217         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62218
62219 2007-03-03  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62222         * modules/relocatable-lib: New file.
62223
62224 2007-03-03  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/relocatable-prog: Renamed from modules/relocatable.
62227         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62228
62229 2007-03-03  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62232         m4/relocatable-lib.m4.
62233         (Depends-on): Remove 'relocatable'.
62234         (configure.ac): Add gl_RELOCATABLE_NOP.
62235
62236 2007-03-03  Bruno Haible  <bruno@clisp.org>
62237
62238         * modules/relocatable-prog-wrapper: New file.
62239         * modules/relocatable (Depends-on): Add it. Remove all other
62240         dependencies except progname.
62241         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62242
62243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62244         (gl_FUNC_STRERROR): Nop.
62245         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62246
62247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62248         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62249
62250         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62251         (gl_FUNC_READLINK): Update.
62252
62253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62254
62255 2007-03-03  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62258         * modules/xreadlink (Depends-on): Add unistd.
62259         * modules/xreadlink-with-size (Depends-on): Likewise.
62260
62261 2007-03-03  Bruno Haible  <bruno@clisp.org>
62262
62263         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62264         extracted from gt_FUNC_SETENV.
62265         (gt_FUNC_SETENV): Remove macro.
62266         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62267         remove gt_FUNC_SETENV.
62268
62269 2007-03-03  Bruno Haible  <bruno@clisp.org>
62270
62271         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62272         ENABLE_RELOCATABLE here.
62273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62274
62275 2007-03-03  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62278         * tests/test-rbtreehash_list.c: Include progname.h.
62279         (main): Call set_program_name.
62280
62281         * modules/rbtree-oset-tests (Depends-on): Add progname.
62282         * tests/test-rbtree_oset.c: Include progname.h.
62283         (main): Call set_program_name.
62284
62285         * modules/rbtree-list-tests (Depends-on): Add progname.
62286         * tests/test-rbtree_list.c: Include progname.h.
62287         (main): Call set_program_name.
62288
62289         * modules/linked-list-tests (Depends-on): Add progname.
62290         * tests/test-linked_list.c: Include progname.h.
62291         (main): Call set_program_name.
62292
62293 2007-03-03  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62296         All uses of __restrict changed to _Restrict_.
62297         * lib/glob_.h (__restrict): Remove macro.
62298
62299 2007-03-02  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/gettext (configure.ac): Require gettext infrastructure
62302         from version 0.16.1.
62303
62304 2007-03-02  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/linkedhash-list-tests (Depends-on): Add progname.
62307         * tests/test-linkedhash_list.c: Include progname.h.
62308         (main): Call set_program_name.
62309
62310         * modules/carray-list-tests (Depends-on): Add progname.
62311         * tests/test-carray_list.c: Include progname.h.
62312         (main): Call set_program_name.
62313
62314         * modules/avltreehash-list-tests (Depends-on): Add progname.
62315         * tests/test-avltreehash_list.c: Include progname.h.
62316         (main): Call set_program_name.
62317
62318         * modules/avltree-oset-tests (Depends-on): Add progname.
62319         * tests/test-avltree_oset.c: Include progname.h.
62320         (main): Call set_program_name.
62321
62322         * modules/avltree-list-tests (Depends-on): Add progname.
62323         * tests/test-avltree_list.c: Include progname.h.
62324         (main): Call set_program_name.
62325
62326         * modules/array-oset-tests (Depends-on): Add progname.
62327         * tests/test-array_oset.c: Include progname.h.
62328         (main): Call set_program_name.
62329
62330         * modules/array-list-tests (Depends-on): Add progname.
62331         * tests/test-array_list.c: Include progname.h.
62332         (main): Call set_program_name.
62333
62334         * modules/argp-tests (Depends-on): Add progname.
62335         * tests/test-argp.c: Include argp.h first. Include progname.h.
62336         (main): Call set_program_name.
62337
62338 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * doc/gnulib-tool.texi (Initial import): Reword description of
62341         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62342         limited effect even if defined after the first system include.
62343
62344 2007-03-01  Bruno Haible  <bruno@clisp.org>
62345
62346         * build-aux/config.libpath: Update to libtool-1.5.22.
62347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62348
62349 2007-03-01  Bruno Haible  <bruno@clisp.org>
62350
62351         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62352         foo_CFLAGS.
62353         Reported by Ralf Wildenhues.
62354
62355 2007-03-01  Bruno Haible  <bruno@clisp.org>
62356
62357         * build-aux/install-reloc: Remove object files left over by some
62358         compilers.
62359         Reported by Ralf Wildenhues.
62360
62361 2007-03-01  Bruno Haible  <bruno@clisp.org>
62362
62363         * build-aux/install-reloc: Break long lines.
62364
62365 2007-03-01  Bruno Haible  <bruno@clisp.org>
62366
62367         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62368         Reported by Ralf Wildenhues.
62369
62370 2007-03-01  Bruno Haible  <bruno@clisp.org>
62371
62372         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62373         include ordering constraints.
62374
62375 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62379         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62380         as another example.
62381         * lib/time_.h: Fix misspelling.
62382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62383         Require gl_HEADER_TIME_H_DEFAULTS.
62384         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62385         * m4/time_r.m4 (gl_TIME_R): Likewise.
62386         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62387
62388 2007-03-01  Bruno Haible  <bruno@clisp.org>
62389
62390         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62391         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62392
62393 2007-03-01  Jim Meyering  <jim@meyering.net>
62394
62395         * modules/xreadlink (Maintainer): Add my name.
62396         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62397
62398 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62399             Bruno Haible  <bruno@clisp.org>
62400
62401         * build-aux/install-reloc: Compile also c-ctype.c.
62402         * build-aux/relocatable.sh.in: New file.
62403         * doc/relocatable.texi: New file.
62404         * doc/relocatable-maint.texi: New file.
62405         * doc/gnulib.texi: Include relocatable-maint.texi.
62406         * lib/progreloc.c: Include unistd.h unconditionally.
62407         * lib/relocwrapper.c: Include unistd.h unconditionally.
62408         Include c-ctype.h.
62409         (add_dotbin): Use c_tolower.
62410         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62411         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62412         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62413         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62414         to m4/relocatable-lib.m4.
62415         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62416         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62417         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62418         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62419         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62420         * modules/relocatable: New file.
62421         * modules/relocatable-lib: New file.
62422         * modules/relocatable-script: New file.
62423
62424 2007-02-28  Bruno Haible  <bruno@clisp.org>
62425
62426         Import --enable-relocatable infrastructure.
62427         * build-aux/config.libpath: New file, from GNU gettext.
62428         * build-aux/install-reloc: New file, from GNU gettext.
62429         * build-aux/reloc-ldflags: New file, from GNU gettext.
62430         * lib/relocatable.h: New file, from GNU gettext.
62431         * lib/relocatable.c: New file, from GNU gettext.
62432         * lib/relocwrapper.c: New file, from GNU gettext.
62433         * m4/relocatable.m4: New file, from GNU gettext.
62434
62435 2007-02-28  Bruno Haible  <bruno@clisp.org>
62436
62437         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62438
62439         * modules/xreadlink: New file, from GNU gettext with modifications.
62440         * lib/xreadlink.c: New file, from GNU gettext.
62441         * lib/xreadlink.h: Add comments.
62442         (xreadlink): New declaration.
62443
62444         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62445         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62446         lib/xreadlink-with-size.c.
62447         (configure.ac): Remove gl_XREADLINK invocation.
62448         (Makefile.am): Augment lib_SOURCES.
62449         * m4/xreadlink.m4: Remove file.
62450         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62451         (xreadlink_with_size): Renamed from xreadink.
62452         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62453         * modules/canonicalize (Depends-on): Replace xreadlink with
62454         xreadlink-with-size.
62455         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62456
62457 2007-02-25  Jim Meyering  <jim@meyering.net>
62458
62459         * build-aux/announce-gen: When complaining about excess arguments,
62460         list them.
62461
62462 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         * README: Document signed integer overflow situation more
62465         accurately.
62466
62467 2007-02-25  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62470         'a' or 'A' conversion.
62471
62472 2007-02-25  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/filename: Renamed from modules/pathname.
62475         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62476         lib/concatpath.c with lib/concat-filename.c.
62477         (Makefile.am): Update.
62478         (Include): Replace pathname.h with filename.h.
62479         * lib/filename.h: Renamed from lib/pathname.h.
62480         (concatenated_filename): Renamed from concatenated_pathname.
62481         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62482         (concatenated_filename): Renamed from concatenated_pathname.
62483         * lib/findprog.c: Include filename.h instead of pathname.h.
62484         (find_in_path): Update.
62485         * lib/javacomp.c: Include filename.h instead of pathname.h.
62486         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62487         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62488         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62489         is_oldgcj_14_13_usable, is_javac_usable): Update.
62490         * lib/javaexec.c: Include filename.h instead of pathname.h.
62491         (execute_java_class): Update.
62492         * modules/findprog: Update.
62493         * modules/javacomp: Update.
62494         * modules/javaexec: Update.
62495         * MODULES.html.sh (File system functions): Add 'filename', remove
62496         'pathname'.
62497
62498 2007-02-25  Bruno Haible  <bruno@clisp.org>
62499
62500         * modules/printf-frexpl-tests: New file.
62501         * tests/test-printf-frexpl.c: New file.
62502
62503         * modules/printf-frexpl: New file.
62504         * lib/printf-frexpl.h: New file.
62505         * lib/printf-frexpl.c: New file.
62506         * m4/printf-frexpl.m4: New file.
62507
62508 2007-02-25  Bruno Haible  <bruno@clisp.org>
62509
62510         * modules/printf-frexp-tests: New file.
62511         * tests/test-printf-frexp.c: New file.
62512
62513         * modules/printf-frexp: New file.
62514         * lib/printf-frexp.h: New file.
62515         * lib/printf-frexp.c: New file.
62516         * m4/printf-frexp.m4: New file.
62517
62518 2007-02-25  Bruno Haible  <bruno@clisp.org>
62519
62520         Assume automake >= 1.10 for the tests.
62521         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62522         * modules/arctwo-tests: Likewise.
62523         * modules/argp-tests: Likewise.
62524         * modules/avltree-list-tests: Likewise.
62525         * modules/avltree-oset-tests: Likewise.
62526         * modules/avltreehash-list-tests: Likewise.
62527         * modules/carray-list-tests: Likewise.
62528         * modules/crc-tests: Likewise.
62529         * modules/des-tests: Likewise.
62530         * modules/gc-arcfour-tests: Likewise.
62531         * modules/gc-arctwo-tests: Likewise.
62532         * modules/gc-des-tests: Likewise.
62533         * modules/gc-hmac-md5-tests: Likewise.
62534         * modules/gc-hmac-sha1-tests: Likewise.
62535         * modules/gc-md2-tests: Likewise.
62536         * modules/gc-md4-tests: Likewise.
62537         * modules/gc-md5-tests: Likewise.
62538         * modules/gc-pbkdf2-sha1-tests: Likewise.
62539         * modules/gc-rijndael-tests: Likewise.
62540         * modules/gc-sha1-tests: Likewise.
62541         * modules/gc-tests: Likewise.
62542         * modules/getaddrinfo-tests: Likewise.
62543         * modules/hmac-md5-tests: Likewise.
62544         * modules/hmac-sha1-tests: Likewise.
62545         * modules/linked-list-tests: Likewise.
62546         * modules/linkedhash-list-tests: Likewise.
62547         * modules/lock-tests: Likewise.
62548         * modules/md2-tests: Likewise.
62549         * modules/md4-tests: Likewise.
62550         * modules/md5-tests: Likewise.
62551         * modules/rbtree-list-tests: Likewise.
62552         * modules/rbtree-oset-tests: Likewise.
62553         * modules/rbtreehash-list-tests: Likewise.
62554         * modules/read-file-tests: Likewise.
62555         * modules/rijndael-tests: Likewise.
62556         * modules/stdint-tests: Likewise.
62557         * modules/tls-tests: Likewise.
62558
62559 2007-02-24  Bruno Haible  <bruno@clisp.org>
62560
62561         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62562         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62563         function; instead check whether isnan with a double argument links.
62564         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62565         function; instead check whether isnan with a 'long double' argument
62566         links.
62567         Reported by Eric Blake <ebb9@byu.net>.
62568
62569 2007-02-24  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62572         defined.
62573         * lib/isnanl.c: Remove all code. Just include isnan.c.
62574         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62575
62576 2007-02-25  Jim Meyering  <jim@meyering.net>
62577
62578         Avoid conflicting types for 'unsetenv' on FreeBSD.
62579         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62580         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62581         in stdlib.h.
62582
62583 2007-02-24  Bruno Haible  <bruno@clisp.org>
62584
62585         * modules/isnanl-nolibm-tests: New file.
62586         * tests/test-isnanl.c: New file.
62587
62588         * modules/isnanl-nolibm: New file.
62589         * lib/isnanl.h: New file.
62590         * lib/isnanl.c: New file.
62591         * m4/isnanl.m4: New file.
62592
62593 2007-02-24  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/isnan-nolibm-tests: New file.
62596         * tests/test-isnan.c: New file.
62597
62598         * modules/isnan-nolibm: New file.
62599         * lib/isnan.h: New file.
62600         * lib/isnan.c: New file.
62601         * m4/isnan.m4: New file.
62602
62603 2007-02-24  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62606         assume that an exponent fits in 20 bits.
62607
62608 2007-02-24  Jim Meyering  <jim@meyering.net>
62609
62610         * m4/regex.m4: Update the description of the configure-time option,
62611         --without-included-regex, to state accurately what the defaults are,
62612         and perhaps to give people an idea why using this option is risky.
62613
62614 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62617         loops on small arguments.  This attempts to avoid the problem
62618         Bruno Haible reported for AIX 4.3.2 in
62619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62620
62621 2007-02-23  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62624         Needed for help2man.
62625
62626 2007-02-23  Karl Berry  <karl@gnu.org>
62627
62628         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62629         exists, foo.h should be cvs-ignored, not committed.
62630
62631 2007-02-23  Eric Blake  <ebb9@byu.net>
62632
62633         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62634         * lib/stat-time.h (includes): Likewise.
62635         * lib/utimecmp.c (includes): Likewise.
62636         * lib/utimens.h (includes): Likewise.
62637         * lib/getdate.y (includes): Also include "timespec.h" for use
62638         internal to the module.
62639         * modules/utimens (Depends-on): Revert yesterday's patch.
62640         * modules/nanosleep (Depends-on): Add missing dependency.
62641
62642 2007-02-22  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/glob.c: Don't include getlogin_r.h.
62645
62646 2007-02-22  Jim Meyering  <jim@meyering.net>
62647
62648         * modules/utimens (Depends-on): Add timespec, required for
62649         utimens.h's inclusion of timespec.h.
62650
62651 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62654         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62655         Schwab in
62656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62657         I'll try to think of a better way to fix the Solaris problem.
62658
62659         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62660         like glibc; on Solaris 10, it fails with errno == EINVAL.
62661         POSIX says the behavior is unspecified if the first argument is NULL,
62662         so play it safe and never pass NULL to the system getcwd.
62663
62664 2007-02-21  Jim Meyering  <jim@meyering.net>
62665
62666         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62667         of gettimeofday.  It would conflict with the one now always
62668         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62669         an IRIX 6.5 build failure.
62670
62671 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         Minor fixups to port to Solaris 10 with Sun C 5.8.
62674         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62675         * modules/getcwd (Depends-on): Add dirfd.
62676         * lib/putenv.c (putenv): #undef it.
62677         (rpl_putenv): New decl.
62678         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62679
62680 2007-02-20  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/stdio-tests: New file.
62683         * tests/test-stdio.c: New file.
62684
62685         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62686         (Depends-on): Add stdio.
62687         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62688         (Include): Use <stdio.h> instead of vsnprintf.h.
62689         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62690         HAVE_DECL_VSNPRINTF.
62691         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62692
62693         * modules/snprintf (Files): Remove lib/snprintf.h.
62694         (Depends-on): Add stdio.
62695         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62696         (Include): Use <stdio.h> instead of snprintf.h.
62697         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62698         HAVE_DECL_SNPRINTF.
62699         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62700         * lib/getaddrinfo.c: Likewise.
62701
62702         * modules/stdio: New file.
62703         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62704         * lib/snprintf.h: Remove file.
62705         * lib/vsnprintf.h: Remove file.
62706         * lib/.cppi-disable: Remove snprintf.h.
62707         * m4/stdio_h.m4: New file.
62708         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62709
62710 2007-02-20  Jim Meyering  <jim@meyering.net>
62711
62712         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62713         used by e.g., mingw.  From Bruno Haible.
62714
62715 2007-02-19  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62718         warnings.
62719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62720
62721 2007-02-19  Bruno Haible  <bruno@clisp.org>
62722
62723         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62724         from mingw users.
62725
62726 2007-02-19  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62729         warnings.
62730         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62731
62732 2007-02-19  Jim Meyering  <jim@meyering.net>
62733
62734         Don't use FD after a successful "fdopendir (fd)".
62735         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62736         Reset it by calling dirfd on the just-obtained DIR*.
62737
62738         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62739         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62740
62741 2007-02-18  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/readlink.c: Include <unistd.h>.
62744         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62745         HAVE_READLINK.
62746         * modules/readlink (Depends-on): Add unistd.
62747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62748         (Include): Add <unistd.h>.
62749
62750         * lib/getlogin_r.h: Remove file.
62751         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62752         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62753         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62754         HAVE_DECL_GETLOGIN_R.
62755         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62757         (Include): Use <unistd.h> instead of getlogin_r.h.
62758
62759         * lib/getcwd.h: Remove file.
62760         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62761         * lib/xgetcwd.c: Likewise.
62762         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62763         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62764         * modules/getcwd (Files): Remove lib/getcwd.h.
62765         (Depends-on): Add unistd.
62766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62767         (Include): Use <unistd.h> instad of getcwd.h.
62768
62769         * lib/ftruncate.c: Include <unistd.h> first.
62770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62771         Set HAVE_FTRUNCATE.
62772         * modules/ftruncate (Depends-on): Add unistd.
62773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62774
62775         * lib/fchdir.c: Include <unistd.h> first.
62776         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62778         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62779         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62780         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62781
62782         * lib/dup2.c: Include <unistd.h> first.
62783         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62784         HAVE_DUP2.
62785         * modules/dup2 (Depends-on): Add unistd.
62786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62787
62788         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62789         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62790         REPLACE_CHOWN. Don't define chown as a macro here.
62791         * modules/chown (Depends-on): Add unistd.
62792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62793
62794         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62795         Add definition for GL_LINK_WARNING.
62796         (chown, dup2): New declarations.
62797         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62798         link warning.
62799         (ftruncate): New declaration.
62800         (getcwd): New declaration, taken from old getcwd.h.
62801         (getlogin_r): New declaration, taken from old getlogin_r.h.
62802         (readlink): New declaration.
62803         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62804         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62805         (gl_PREREQ_UNISTD): Remove macro.
62806         (gl_UNISTD_MODULE_INDICATOR): New macro.
62807         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62808         many new variables. Don't set UNISTD_H.
62809         * modules/unistd (Description): Change.
62810         (Depends-on): Add link-warning.
62811         (configure.ac): Update.
62812         (Makefile.am): Create unistd.h always. Substitute many new variables
62813         into it.
62814
62815 2007-02-18  Bruno Haible  <bruno@clisp.org>
62816
62817         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62818         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62819         HAVE_GETSUBOPT.
62820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62821         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62822         * lib/getsubopt.h: Remove file.
62823         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62824         (Depends-on): Add stdlib.
62825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62826         (Includes): Use <stdlib.h> instead of getsubopt.h.
62827         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62828         Set HAVE_GETSUBOPT.
62829         * lib/getsubopt.c: Don't include getsubopt.h.
62830
62831 2007-02-18  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/fchdir (Depends-on): Add dup2.
62834
62835 2007-02-18  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/stdlib_.h: Handle glibc's special invocation convention
62838         specially.
62839
62840 2007-02-18  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/stdlib-tests: New file.
62843         * tests/test-stdlib.c: New file.
62844
62845         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62846         (Depends-on): Add stdlib.
62847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62848         (Includes): Use <stdlib.h> instead of mkstemp.h.
62849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62850         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62851         * lib/mkstemp.c: Don't include mkstemp.h.
62852         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62853         * lib/stdlib--.h: Don't include mkstemp.h.
62854
62855         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62856         (Depends-on): Add stdlib.
62857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62858         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62859         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62860         HAVE_MKDTEMP.
62861         * lib/mkdtemp.c: Don't include mkdtemp.h.
62862         * lib/clean-temp.c: Don't include mkdtemp.h.
62863
62864         * modules/exit (Files): Remove lib/exit.h.
62865         (Depends-on): Add stdlib.
62866         (Makefile.am): Remove lib_SOURCES.
62867         (Include): Use <stdlib.h> instead of exit.h.
62868         * lib/argmatch.c: Don't include exit.h.
62869         * lib/execute.c: Likewise.
62870         * lib/pagealign_alloc.c: Likewise.
62871         * lib/pipe.c: Likewise.
62872         * lib/wait-process.c: Likewise.
62873         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62874         * lib/exitfail.c: Likewise.
62875         * lib/savewd.c: Likewise.
62876         * lib/xsetenv.c: Likewise.
62877
62878         * modules/stdlib: New file.
62879         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62880         and extra comments about mkstemp().
62881         * lib/exit.h: Remove file.
62882         * lib/mkdtemp.h: Remove file.
62883         * lib/mkstemp.h: Remove file.
62884         * m4/stdlib_h.m4: New file.
62885         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62886
62887 2007-02-18  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/math-tests: New file.
62890         * tests/test-math.c: New file.
62891
62892         * modules/math: New file.
62893         * modules/mathl (Files): Remove lib/mathl.h.
62894         (Depends-on): Add math.
62895         (Makefile.am): Don't mention mathl.h.
62896         (Include): Use <math.h> instead of mathl.h.
62897         * lib/math_.h: New file.
62898         * lib/mathl.h: Remove file.
62899         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62900         mathl.h.
62901         * lib/asinl.c: Likewise.
62902         * lib/atanl.c: Likewise.
62903         * lib/ceill.c: Likewise.
62904         * lib/cosl.c: Likewise.
62905         * lib/expl.c: Likewise.
62906         * lib/floorl.c: Likewise.
62907         * lib/frexpl.c: Likewise.
62908         * lib/ldexpl.c: Likewise.
62909         * lib/logl.c: Likewise.
62910         * lib/sincosl.c: Likewise.
62911         * lib/sinl.c: Likewise.
62912         * lib/sqrtl.c: Likewise.
62913         * lib/tanl.c: Likewise.
62914         * lib/trigl.c: Likewise.
62915         * m4/math_h.m4: New file.
62916         * MODULES.html.sh (Mathematics): Add math.
62917
62918 2007-02-17  Bruno Haible  <bruno@clisp.org>
62919
62920         * modules/wctype-tests: New file.
62921         * tests/test-wctype.c: New file.
62922
62923         * modules/wchar-tests: New file.
62924         * tests/test-wchar.c: New file.
62925
62926         * modules/unistd-tests: New file.
62927         * tests/test-unistd.c: New file.
62928
62929         * modules/time-tests: New file.
62930         * tests/test-time.c: New file.
62931
62932         * modules/sysexits-tests: New file.
62933         * tests/test-sysexits.c: New file.
62934
62935         * modules/sys_time-tests: New file.
62936         * tests/test-sys_time.c: New file.
62937
62938         * modules/sys_stat-tests: New file.
62939         * tests/test-sys_stat.c: New file.
62940
62941         * modules/sys_socket-tests: New file.
62942         * tests/test-sys_socket.c: New file.
62943
62944         * modules/sys_select-tests: New file.
62945         * tests/test-sys_select.c: New file.
62946
62947         * modules/string-tests: New file.
62948         * tests/test-string.c: New file.
62949
62950         * modules/stdbool-tests: New file.
62951         * tests/test-stdbool.c: New file.
62952
62953         * modules/netinet_in-tests: New file.
62954         * tests/test-netinet_in.c: New file.
62955
62956         * modules/inttypes-tests: New file.
62957         * tests/test-inttypes.c: New file.
62958
62959         * modules/fcntl-tests: New file.
62960         * tests/test-fcntl.c: New file.
62961
62962         * modules/byteswap-tests: New file.
62963         * tests/test-byteswap.c: New file.
62964
62965         * modules/arpa_inet-tests: New file.
62966         * tests/test-arpa_inet.c: New file.
62967
62968 2007-02-17  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62971         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62972         if the corresponding module is not enabled. Emit link warnings if
62973         the function is used nevertheless.
62974         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62975         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62976         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62977         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62978         * modules/inttypes (Depends-on): Add link-warning.
62979         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62980         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62981         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62982         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62983         * modules/imaxdiv (configure.ac): Likewise.
62984         * modules/strtoimax (configure.ac): Likewise.
62985         * modules/strtoumax (configure.ac): Likewise.
62986
62987 2007-02-17  Bruno Haible  <bruno@clisp.org>
62988
62989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62990         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62991         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62992         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62993
62994 2007-02-17  Bruno Haible  <bruno@clisp.org>
62995
62996         * modules/link-warning: New file.
62997         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62998         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62999         * modules/string (Depends-on): Add link-warning.
63000         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63001         string.h.
63002         * MODULES.html.sh (Support for building libraries and executables): Add
63003         link-warning.
63004
63005 2007-02-17  Bruno Haible  <bruno@clisp.org>
63006
63007         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63008         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63009         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63010         long lines.
63011
63012 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63013             Bruno Haible  <bruno@clisp.org>
63014
63015         * modules/tmpfile: New file.
63016         * lib/tmpfile.c: New file.
63017         * m4/tmpfile.m4: New file.
63018         * MODULES.html.sh (func_all_modules): New section "Input/output".
63019
63020 2007-02-15  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63023         (supports_delete_on_close): New function.
63024         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63025
63026 2007-02-14  Bruno Haible  <bruno@clisp.org>
63027
63028         * modules/mbspcasecmp-tests: New file.
63029         * tests/test-mbspcasecmp.sh: New file.
63030         * tests/test-mbspcasecmp.c: New file.
63031
63032         New module mbspcasecmp.
63033         * modules/mbspcasecmp: New file.
63034         * lib/mbspcasecmp.c: New file.
63035         * lib/string_.h (strncasecmp): Change warning message.
63036         (mbspcasecmp): New declaration.
63037         * m4/mbspcasecmp.m4: New file.
63038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63039         GNULIB_MBSPCASECMP.
63040         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63041         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63042
63043 2007-02-14  Bruno Haible  <bruno@clisp.org>
63044
63045         * modules/mbsncasecmp-tests: New file.
63046         * tests/test-mbsncasecmp.sh: New file.
63047         * tests/test-mbsncasecmp.c: New file.
63048
63049         New module mbsncasecmp.
63050         * modules/mbsncasecmp: New file.
63051         * lib/mbsncasecmp.c: New file.
63052         * lib/string_.h (mbsncasecmp): New declaration.
63053         * m4/mbsncasecmp.m4: New file.
63054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63055         GNULIB_MBSNCASECMP.
63056         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63057         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63058
63059 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63062         Verify that it doesn't overlap with our flags.
63063         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63064         do not have the desired effect in multibyte locales; instead, use
63065         mbscasecmp.
63066         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63067         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63068         we don't require GNU fnmatch ourselves (if our users require it, they
63069         should do so explicitly).
63070
63071         Fix regex code so it doesn't rely on strcasecmp.
63072         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63073         Otherwise, include gnulib's langinfo.h.
63074         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63075         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63076         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63077         * modules/regex (FILES): Remove m4/codeset.m4.
63078         (Depends-on): Add localcharset.  Remove strcase.
63079
63080 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63081
63082         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63083         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63084
63085 2007-02-13  Bruno Haible  <bruno@clisp.org>
63086
63087         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63089
63090 2007-02-12  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63093         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63094         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63095         time warning rather than a link error.
63096
63097 2007-02-12  Bruno Haible  <bruno@clisp.org>
63098
63099         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63100         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63102
63103 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63106         args, not 2.
63107
63108 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         New module 'time', so that apps can include <time.h> as per
63111         POSIX and GNU instead of separate include files like time_r.h
63112         and timegm.h.  This implementation tries out a simpler approach
63113         for replacing decls in standard include files (as compared to
63114         the string module), somewhat as an experiment.
63115
63116         * config/srclist.txt: Comment out mktime.c for now.
63117         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63118         since it doesn't apply any more.  Use generic wording instead.
63119         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63120         'time'.
63121         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63122         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63123         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63124         Don't include <sys/types.h>; no longer needed since we assume C89.
63125         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63126         * lib/strftime.c: Likewise.
63127         * lib/time_r.c: Likewise.
63128         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63129         * lib/nanosleep.c: Include <time.h> first, to check interface.
63130         * lib/strptime.c: Likewise.
63131         * lib/time_r.c: Likewise.
63132         * lib/timegm.c: Likewise.
63133         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63134         needed.
63135         * lib/timegm.c: Don't include timegm.h; no longer needed.
63136         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63137         time.h now handles any problems in that area.
63138         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63139         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63140         that time.h defines struct timespec.
63141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63142         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63143         handles that.
63144         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63145         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63146         needed.  Set REPLACE_LOCALTIME.
63147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63148         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63149         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63150         nanosleep; time_h.m4 now does that.  Don't require
63151         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63152         module handles this now.
63153         * modules/getdate (Depends-on): Remove timespec.  Add time.
63154         * modules/nanosleep (Depends-on): Likewise.
63155         * modules/stat-time (Depends-on): Likewise.
63156         * modules/nanosleep (Include): Include time.h, not timespec.h.
63157         * modules/strptime (Files): Remove lib/strptime.h.
63158         (Depends-on): Add extensions, time.
63159         (Include): Include time.h, not strptime.h.
63160         * modules/time_r (Files): Remove lib/time_r.h.
63161         (Depends-on): Add time.
63162         (Include): Include time.h, not time_r.h.
63163         * modules/timegm: Likewise.
63164         * modules/timespec (Description): Now does timespec-related decls
63165         of our own, instead of struct timespec itself.
63166         (Depends-on): Add time; remove extensions.
63167         (Maintainer): Add self.
63168         * modules/utimecmp (Depends-on): Add time; remove timespec.
63169         * modules/utimens (Depends-on): Likewise.
63170         * modules/xnanosleep (Depends-on): Likewise.
63171
63172 2007-02-11  Bruno Haible  <bruno@clisp.org>
63173
63174         * lib/c-strstr.c: Include allocsa.h.
63175         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63176         * lib/c-strcasestr.c: Include allocsa.h.
63177         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63178         * lib/strcasestr.c: Include allocsa.h.
63179         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63180         * lib/mbsstr.c: Include allocsa.h.
63181         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63182         allocsa/freesa instead of malloc/free.
63183         * lib/mbscasestr.c: Include allocsa.h.
63184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63185         allocsa/freesa instead of malloc/free.
63186         * modules/c-strstr (Depends-on): Add allocsa.
63187         * modules/c-strcasestr (Depends-on): Likewise.
63188         * modules/strcasestr (Depends-on): Likewise.
63189         * modules/mbsstr (Depends-on): Likewise.
63190         * modules/mbscasestr (Depends-on): Likewise.
63191
63192 2007-02-11  Bruno Haible  <bruno@clisp.org>
63193
63194         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63195
63196         * modules/mbsspn-tests: New file.
63197         * tests/test-mbsspn.sh: New file.
63198         * tests/test-mbsspn.c: New file.
63199
63200 2007-02-11  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63203
63204         * modules/mbspbrk-tests: New file.
63205         * tests/test-mbspbrk.sh: New file.
63206         * tests/test-mbspbrk.c: New file.
63207
63208 2007-02-11  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63211         unneeded cast.
63212
63213         * modules/mbscspn-tests: New file.
63214         * tests/test-mbscspn.sh: New file.
63215         * tests/test-mbscspn.c: New file.
63216
63217 2007-02-11  Bruno Haible  <bruno@clisp.org>
63218
63219         * modules/mbscasecmp-tests: New file.
63220         * tests/test-mbscasecmp.sh: New file.
63221         * tests/test-mbscasecmp.c: New file.
63222
63223 2007-02-11  Bruno Haible  <bruno@clisp.org>
63224
63225         Ensure O(n) worst-case complexity of mbscasestr.
63226         * lib/mbscasestr.c: Include stdbool.h.
63227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63228         functions.
63229         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63230         the bookkeeping indicates that it's worth it.
63231         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63232
63233         * modules/mbscasestr-tests: New file.
63234         * tests/test-mbscasestr1.c: New file.
63235         * tests/test-mbscasestr2.sh: New file.
63236         * tests/test-mbscasestr2.c: New file.
63237         * tests/test-mbscasestr3.sh: New file.
63238         * tests/test-mbscasestr3.c: New file.
63239         * tests/test-mbscasestr4.sh: New file.
63240         * tests/test-mbscasestr4.c: New file.
63241         * m4/locale-tr.m4: New file.
63242
63243 2007-02-11  Bruno Haible  <bruno@clisp.org>
63244
63245         Ensure O(n) worst-case complexity of mbsstr.
63246         * lib/mbsstr.c: Include stdbool.h.
63247         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63248         functions.
63249         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63250         bookkeeping indicates that it's worth it.
63251         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63252
63253         * modules/mbsstr-tests: New file.
63254         * tests/test-mbsstr1.c: New file.
63255         * tests/test-mbsstr2.sh: New file.
63256         * tests/test-mbsstr2.c: New file.
63257         * tests/test-mbsstr3.sh: New file.
63258         * tests/test-mbsstr3.c: New file.
63259         * m4/locale-fr.m4: New file.
63260
63261 2007-02-11  Bruno Haible  <bruno@clisp.org>
63262
63263         * lib/mbsrchr.c (mbsrchr): Fix bug.
63264
63265         * modules/mbsrchr-tests: New file.
63266         * tests/test-mbsrchr.sh: New file.
63267         * tests/test-mbsrchr.c: New file.
63268
63269 2007-02-11  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/mbschr.c (mbschr): Fix bug.
63272
63273         * modules/mbschr-tests: New file.
63274         * tests/test-mbschr.sh: New file.
63275         * tests/test-mbschr.c: New file.
63276         * m4/locale-zh.m4: New file.
63277
63278 2007-02-11  Bruno Haible  <bruno@clisp.org>
63279
63280         Support for copying multibyte string iterators.
63281         * lib/mbiter.h: Include <string.h>.
63282         (mbiter_multi_copy): New function.
63283         (mbi_copy): New macro.
63284         * lib/mbuiter.h: Include <string.h>.
63285         (mbuiter_multi_copy): New function.
63286         (mbui_copy): New macro.
63287
63288 2007-02-11  Bruno Haible  <bruno@clisp.org>
63289
63290         New module mbslen.
63291         * modules/mbslen: New file.
63292         * lib/mbslen.c: New file.
63293         * lib/string_.h (mbslen): New declaration.
63294         * m4/mbslen.m4: New file.
63295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63296         GNULIB_MBSLEN.
63297         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63298         * MODULES.html.sh (Internationalization functions): Add mbslen.
63299
63300 2007-02-11  Bruno Haible  <bruno@clisp.org>
63301
63302         Ensure O(n) worst-case complexity of strcasestr substitute.
63303         * lib/strcasestr.c: Include stdbool.h.
63304         (knuth_morris_pratt): New function.
63305         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63306         bookkeeping indicates that it's worth it.
63307         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63308
63309         * modules/strcasestr-tests: New file.
63310         * tests/test-strcasestr.c: New file.
63311
63312 2007-02-11  Bruno Haible  <bruno@clisp.org>
63313
63314         Ensure O(n) worst-case complexity of c_strcasestr.
63315         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63316         (knuth_morris_pratt): New function.
63317         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63318         the bookkeeping indicates that it's worth it.
63319         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63320
63321         * modules/c-strcasestr-tests: New file.
63322         * tests/test-c-strcasestr.c: New file.
63323
63324 2007-02-11  Bruno Haible  <bruno@clisp.org>
63325
63326         Ensure O(n) worst-case complexity of c_strstr.
63327         * lib/c-strstr.c: Include stdbool.h, string.h.
63328         (knuth_morris_pratt): New function.
63329         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63330         bookkeeping indicates that it's worth it.
63331         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63332
63333         * lib/c-strstr.c: Complete rewrite for maintainability.
63334
63335         * modules/c-strstr-tests: New file.
63336         * tests/test-c-strstr.c: New file.
63337
63338 2007-02-11  Bruno Haible  <bruno@clisp.org>
63339
63340         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63341         5.2.1 and earlier, whereby \055 was treated just like the range
63342         delimiter '-'.
63343         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63344
63345 2007-02-08  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/regex (Depends-on): Add stdbool.
63348         Reported by Dalibor Topic <robilad@kaffe.org>.
63349
63350 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63353         Prefer returning from main to exiting from it.
63354         Remove unnecessary parens after sizeof.
63355
63356 2007-02-05  Bruno Haible  <bruno@clisp.org>
63357
63358         New module mbssep.
63359         * modules/mbssep: New file.
63360         * lib/mbssep.c: New file.
63361         * lib/string_.h (strsep): Add a conditional link warning.
63362         (mbssep): New declaration.
63363         * m4/mbssep.m4: New file.
63364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63365         GNULIB_MBSSEP.
63366         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63367         * MODULES.html.sh (Internationalization functions): Add mbssep.
63368
63369 2007-02-05  Bruno Haible  <bruno@clisp.org>
63370
63371         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63372         Optimize search in case of 1 delimiter.
63373
63374 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63375
63376         * lib/acl.h: Include sys/types.h before sys/acl.h.
63377
63378 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63379
63380         Merge upstream fix for glibc bugzilla #3957:
63381
63382         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63383
63384         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63385         bit for RE_HAT_LISTS_NOT_NEWLINE.
63386         (build_charclass_op): Remove bogus comment.
63387
63388 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63389
63390         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63391
63392 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63395         * lib/memmem.c [!defined _LIBC]: Include config.h.
63396
63397 2007-02-04  Bruno Haible  <bruno@clisp.org>
63398
63399         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63400         warning message.
63401
63402 2007-02-04  Bruno Haible  <bruno@clisp.org>
63403
63404         New module mbstok_r.
63405         * modules/mbstok_r: New file.
63406         * lib/mbstok_r.c: New file.
63407         * lib/string_.h (strtok_r): Change argument names to match the
63408         comments. Add a conditional link warning.
63409         (mbstok_r): New declaration.
63410         * m4/mbstok_r.m4: New file.
63411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63412         GNULIB_MBSTOK_R.
63413         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63414         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63415
63416 2007-02-04  Bruno Haible  <bruno@clisp.org>
63417
63418         New module mbsspn.
63419         * modules/mbsspn: New file.
63420         * lib/mbsspn.c: New file.
63421         * lib/string_.h (strspn): Add a conditional link warning.
63422         (mbsspn): New declaration.
63423         * m4/mbsspn.m4: New file.
63424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63425         GNULIB_MBSSPN.
63426         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63427         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63428
63429 2007-02-04  Bruno Haible  <bruno@clisp.org>
63430
63431         New module mbspbrk.
63432         * modules/mbspbrk: New file.
63433         * lib/mbspbrk.c: New file.
63434         * lib/string_.h (strpbrk): Add a conditional link warning.
63435         (mbspbrk): New declaration.
63436         * m4/mbspbrk.m4: New file.
63437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63438         GNULIB_MBSPBRK.
63439         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63440         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63441
63442 2007-02-04  Bruno Haible  <bruno@clisp.org>
63443
63444         New module mbscspn.
63445         * modules/mbscspn: New file.
63446         * lib/mbscspn.c: New file.
63447         * lib/string_.h (strcspn): Add a conditional link warning.
63448         (mbscspn): New declaration.
63449         * m4/mbscspn.m4: New file.
63450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63451         GNULIB_MBSCSPN.
63452         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63453         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63454
63455 2007-02-04  Bruno Haible  <bruno@clisp.org>
63456
63457         New module mbscasestr, reduced goal of strcasestr.
63458         * modules/mbscasestr: New file.
63459         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63460         (mbscasestr): Renamed from strcasestr.
63461         * lib/strcasestr.c: Don't include mbuiter.h.
63462         (strcasestr): Remove support for multibyte locales.
63463         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63464         Change the conditional link warning.
63465         (mbscasestr): New declaration.
63466         * m4/mbscasestr.m4: New file.
63467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63468         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63469         REPLACE_STRCASESTR.
63470         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63472         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63473         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63474         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63475         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63476         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63477         (Depends-on): Remove mbuiter.
63478         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63479
63480 2007-02-04  Bruno Haible  <bruno@clisp.org>
63481
63482         Simplify handling of strncasecmp.
63483         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63484         the conditional link warning.
63485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63486         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63488         * modules/strcase (configure.ac): Don't invoke
63489         gl_STRING_MODULE_INDICATOR.
63490         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63491
63492 2007-02-04  Bruno Haible  <bruno@clisp.org>
63493
63494         New module mbscasecmp, reduced goal of strcasecmp.
63495         * modules/mbscasecmp: New file.
63496         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63497         (mbscasecmp): Renamed from strcasecmp.
63498         * lib/strcasecmp.c: Don't include mbuiter.h.
63499         (strcasecmp): Remove support for multibyte locales.
63500         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63501         Change the conditional link warning.
63502         (mbscasecmp): New declaration.
63503         * m4/mbscasecmp.m4: New file.
63504         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63505         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63506         REPLACE_STRCASECMP.
63507         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63509         GNULIB_MBSCASECMP.
63510         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63511         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63512         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63513         (Depends-on): Remove mbuiter.
63514         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63515
63516 2007-02-04  Bruno Haible  <bruno@clisp.org>
63517
63518         New module mbsstr. Remove module strstr.
63519         * modules/mbsstr: New file.
63520         * modules/strstr: Remove file.
63521         * lib/mbsstr.c: Renamed from lib/strstr.c.
63522         (mbsstr): Renamed from strstr.
63523         * lib/string_.h (strstr): Remove declaration. Change the conditional
63524         link warning.
63525         (mbsstr): New declaration.
63526         * m4/mbsstr.m4: New file.
63527         * m4/strstr.m4: Remove file.
63528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63529         REPLACE_STRSTR.
63530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63531         Don't initialize GNULIB_STRSTR.
63532         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63533         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63534         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63535         (Support for systems lacking ANSI C 89): Remove strstr.
63536
63537 2007-02-04  Bruno Haible  <bruno@clisp.org>
63538
63539         New module mbsrchr.
63540         * modules/mbsrchr: New file.
63541         * lib/mbsrchr.c: New file.
63542         * lib/string_.h (strrchr): Add a conditional link warning.
63543         (mbsrchr): New declaration.
63544         * m4/mbsrchr.m4: New file.
63545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63546         GNULIB_MBSRCHR.
63547         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63548         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63549
63550 2007-02-04  Bruno Haible  <bruno@clisp.org>
63551
63552         New module mbschr.
63553         * modules/mbschr: New file.
63554         * lib/mbschr.c: New file.
63555         * lib/string_.h (strchr): Add a conditional link warning.
63556         (mbschr): New declaration.
63557         * m4/mbschr.m4: New file.
63558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63559         GNULIB_MBSCHR.
63560         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63561         * MODULES.html.sh (Internationalization functions): Add mbschr.
63562
63563 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63566
63567         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63568
63569 2007-02-04  Bruno Haible  <bruno@clisp.org>
63570
63571         New module description section 'configure.ac-early'.
63572         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63573         (func_get_autoconf_early_snippet): New function.
63574         (func_import, func_create_testdir): Use it. Remove special cases for
63575         modules 'extensions' and 'lock'.
63576         * modules/extensions (configure.ac-early): Require
63577         gl_USE_SYSTEM_EXTENSIONS.
63578         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63579
63580 2007-02-04  Bruno Haible  <bruno@clisp.org>
63581
63582         Make use of gcj-4.3's -fsource and -ftarget option.
63583         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63584         and if so try the options -fsource and -ftarget.
63585         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63586         source_version, ftarget_option, target_version arguments.
63587         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63588         (is_envjavac_oldgcj_14_14_usable): Renamed from
63589         is_envjavac_gcj_14_14_usable.
63590         (is_envjavac_oldgcj_14_13_usable): Renamed from
63591         is_envjavac_gcj_14_13_usable.
63592         (is_gcj_present): Update.
63593         (is_gcj_43, is_gcj43_usable): New functions.
63594         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63595         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63596         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63597         try the options -fsource and -ftarget.
63598
63599 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63602         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63603         larger value.
63604
63605 2007-02-03  Jim Meyering  <jim@meyering.net>
63606
63607         Give tools a better chance to allocate space for very large buffers.
63608         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63609
63610         Make pwd and readlink work also when run with an unreadable parent dir
63611         on systems with openat support.
63612         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63613         provided getcwd function, even when we have openat support.
63614         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63615
63616 2007-02-02  Bruno Haible  <bruno@clisp.org>
63617
63618         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63619         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63620         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63621         portability problems if one of these functions is only used on specific
63622         platforms.
63623         Reported by Paul Eggert.
63624
63625 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63626
63627         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63628         is causing more trouble than it's curing.
63629         * lib/regex_internal.h (__mempcpy): Remove.
63630         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63631         (and make the code a tad smaller to boot).
63632         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63633
63634 2007-02-02  Jim Meyering  <jim@meyering.net>
63635
63636         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63637         section, not in the Makefile.am: one.
63638
63639 2007-02-02  Eric Blake  <ebb9@byu.net>
63640
63641         * lib/strchrnul.c: Always include config.h first.
63642
63643         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63644         gnulib strstr is not necessary here.
63645
63646 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63647
63648         * m4/socklen.m4: Fix typo.
63649
63650 2007-02-02  Eric Blake  <ebb9@byu.net>
63651
63652         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63653         * modules/netinet_in (Makefile.am): Likewise.
63654
63655 2007-02-01  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/string_.h (GL_LINK_WARNING): New macro.
63658         (strcasecmp, strstr, strcasestr): If provided by the system,
63659         conditionally define as a macro that leads to a warning instead of to
63660         an error.
63661         (strncasecmp): Conditionally define as a macro that leads to a warning.
63662
63663 2007-02-01  Karl Berry  <karl@gnu.org>
63664
63665         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63666
63667 2007-02-01  Bruno Haible  <bruno@clisp.org>
63668
63669         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63670         renamings.
63671
63672 2007-02-01  Eric Blake  <ebb9@byu.net>
63673
63674         * modules/regex (Depends-on): Revert dependence on mempcpy.
63675         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63676         module's definition of mempcpy.
63677         Reported by Paul Eggert.
63678
63679 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63682         the symbol XYZ before redefining it.  This fixes a problem with
63683         programs that don't use XYZ, when compiled on systems that define
63684         XYZ to something else.
63685
63686 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63687
63688         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63689         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63690         writeable to group or other and (2) is intended to have a special
63691         mode bit that is set or cleared.  In such a case, the directory
63692         should be neither group- nor other-writeable until the special
63693         mode bits are right.
63694
63695 2007-01-31  Eric Blake  <ebb9@byu.net>
63696
63697         * modules/mountlist (Depends-on): Add strstr.
63698
63699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63700         bug.
63701         * modules/string (Makefile.am): Remove redundant replacement.
63702         * modules/regex (Depends-on): Add mempcpy.
63703
63704 2007-01-31  Bruno Haible  <bruno@clisp.org>
63705
63706         New module description field 'Link'.
63707         * gnulib-tool (func_usage): Document --extract-link-directive.
63708         (sed_extract_prog): Recognize 'Link' directive.
63709         (func_get_link_directive): New function.
63710         (func_import): Show summary of link directives.
63711         Handle --extract-link-directive option.
63712         * modules/acl (Link): New section.
63713         * modules/clock-time (Link): New section.
63714         * modules/euidaccess (Link): New section.
63715         * modules/gettext (Link): New section.
63716         * modules/iconv (Link): New section.
63717         * modules/lock (Link): New section.
63718         * modules/nanosleep (Link): New section.
63719         * modules/readline (Link): New section.
63720
63721 2007-01-27  Bruno Haible  <bruno@clisp.org>
63722
63723         Enforce the use of gnulib modules for unportable <string.h> functions.
63724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63725         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63726         (gl_HEADER_STRING_H_BODY): Require it.
63727         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63728         the symbol XYZ to one that gives a link error.
63729         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63730         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63731         * modules/mempcpy (configure.ac): Likewise.
63732         * modules/memrchr (configure.ac): Likewise.
63733         * modules/stpcpy (configure.ac): Likewise.
63734         * modules/stpncpy (configure.ac): Likewise.
63735         * modules/strcase (configure.ac): Likewise.
63736         * modules/strcasestr (configure.ac): Likewise.
63737         * modules/strchrnul (configure.ac): Likewise.
63738         * modules/strdup (configure.ac): Likewise.
63739         * modules/strndup (configure.ac): Likewise.
63740         * modules/strnlen (configure.ac): Likewise.
63741         * modules/strpbrk (configure.ac): Likewise.
63742         * modules/strsep (configure.ac): Likewise.
63743         * modules/strstr (configure.ac): Likewise.
63744         * modules/strtok_r (configure.ac): Likewise.
63745
63746 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63747
63748         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63749
63750 2007-01-30  Jim Meyering  <jim@meyering.net>
63751
63752         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63753
63754 2007-01-29  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63757         * lib/execute.c: Likewise.
63758         * lib/pipe.c: Likewise.
63759         * lib/printf-args.h: Likewise.
63760         * lib/printf-args.c: Likewise.
63761         * lib/printf-parse.c: Likewise.
63762         * lib/vasnprintf.c: Likewise.
63763
63764 2007-01-29  Eric Blake  <ebb9@byu.net>
63765
63766         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63767         declaration.
63768
63769 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * lib/strptime.h (strptime): Use 'restrict' for args where
63772         POSIX requires this.
63773         * lib/strptime.c (strptime): Likewise.
63774         Change license notice from LGPL to GPL, since gnulib-tool will
63775         change this as needed.
63776         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63777         defined.
63778         Include "strptime.h" first, to check interface.
63779         Do not #undef _LIBC and _NL_CURRENT.
63780         Do not include <stdlib.h>; no longer needed.
63781         Include "time_r.h" and declare ptime_locale_status
63782         only if _LIBC is not defined.
63783         (__P): Remove unused macro.
63784         (match_string): Bring back glibc version, but use it only if _LIBC
63785         is defined.
63786         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63787         Remove unnecessary assertion and abort() call.
63788         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63789         * m4/strptime.m4: Fix serial number comment.
63790         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63791         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63792         (Depends-on): Add time_r.
63793
63794 2007-01-29  Bruno Haible  <bruno@clisp.org>
63795
63796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63797         strptime.
63798         * modules/strptime (Depends-on): Add stdbool.
63799         * lib/strptime.h: Include <time.h> always. Add comments.
63800
63801 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63802
63803         * modules/strptime: New file.
63804         * lib/strptime.h: New file.
63805         * lib/strptime.c: New file.
63806         * m4/strptime.m4: New file.
63807
63808 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * MODULES.html.sh: New module mpsort.
63811         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63812
63813         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63814         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63816         All uses changed.
63817         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63818         All uses changed.
63819         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63820         to _Restrict_.
63821         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63822         the parameter matches the prototype.
63823
63824 2007-01-28  Jim Meyering  <jim@meyering.net>
63825
63826         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63827         sys/time.h here, reverting that part of the previous patch:
63828         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63829
63830 2007-01-28  Bruno Haible  <bruno@clisp.org>
63831
63832         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63833         value of $(SYS_TIME_H).
63834         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63835         remove it conditionally, too. [added by Jim Meyering]
63836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63838         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63839         GETTIMEOFDAY_REPLACEMENT to 1.
63840
63841 2007-01-28  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63844         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63846         Set UNISTD_H instead of UNISTD_H2.
63847         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63848
63849 2007-01-28  Bruno Haible  <bruno@clisp.org>
63850
63851         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63852         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63853
63854 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63855
63856         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63857         (func_create_testdir): Ensure C locale for `grep' and `tr'
63858         character ranges.
63859         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63860         ACLOCAL_AMFLAGS parsing state machine.
63861
63862 2007-01-27  Bruno Haible  <bruno@clisp.org>
63863
63864         * modules/unistr/base: Update.
63865
63866 2007-01-27  Bruno Haible  <bruno@clisp.org>
63867
63868         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63869         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63870         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63871         modules/unistr/u32-mbtouc.
63872         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63873         * lib/unistr.h: Update.
63874         * lib/linebreak.c: Update.
63875         * modules/unistr/u32-mbtouc: Renamed from
63876         modules/unistr/u32-mbtouc-safe.
63877         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63878         * lib/unistr.h: Update.
63879         * lib/unistr/u32-to-u8.c: Update.
63880         * lib/unistr/u32-to-u16.c: Update.
63881
63882 2007-01-27  Bruno Haible  <bruno@clisp.org>
63883
63884         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63885         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63886         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63887         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63888         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63889         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63890         modules/unistr/u16-mbtouc.
63891         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63892         * lib/unistr.h: Update.
63893         * lib/linebreak.c: Update.
63894         * modules/linebreak: Update.
63895         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63896         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63897         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63898         * modules/unistr/u16-mbtouc: Renamed from
63899         modules/unistr/u16-mbtouc-safe.
63900         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63901         * lib/unistr.h: Update.
63902         * lib/unistr/u16-to-u8.c: Update.
63903         * modules/unistr/u16-to-u8: Update.
63904         * lib/unistr/u16-to-u32.c: Update.
63905         * modules/unistr/u16-to-u32: Update.
63906
63907 2007-01-27  Bruno Haible  <bruno@clisp.org>
63908
63909         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63910         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63911         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63912         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63913         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63914         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63915         modules/unistr/u8-mbtouc.
63916         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63917         * lib/unistr.h: Update.
63918         * lib/striconveh.c: Update.
63919         * modules/striconveh: Update.
63920         * lib/linebreak.c: Update.
63921         * modules/linebreak: Update.
63922         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63923         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63924         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63925         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63926         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63927         * lib/unistr.h: Update.
63928         * lib/striconveh.c: Update.
63929         * modules/striconveh: Update.
63930         * lib/unistr/u8-to-u16.c: Update.
63931         * modules/unistr/u8-to-u16: Update.
63932         * lib/unistr/u8-to-u32.c: Update.
63933         * modules/unistr/u8-to-u32: Update.
63934
63935 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63936
63937         Sync from Libtool.
63938         * lib/argz.c: Do not include strings.h nor memory.h, include
63939         string.h unconditionally.  Patch by Simon Josefsson.
63940
63941 2007-01-27  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63944         from gl_HEADER_STRING_H_BODY.
63945         (gl_HEADER_STRING_H_BODY): Require it.
63946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63947         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63949         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63951         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63954         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63956         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63957         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63958         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63961
63962 2007-01-27  Bruno Haible  <bruno@clisp.org>
63963
63964         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63965         check_PROGRAMS into noinst_PROGRAMS.
63966         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63967         check_PROGRAMS in this case.
63968         (func_import): Set for_test to false.
63969         (func_create_testdir): Set for_test to true.
63970
63971 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63972             Bruno Haible  <bruno@clisp.org>
63973
63974         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63975         (Depends-on): Add string.
63976         (Includes): Use <string.h> instead of strcasestr.h.
63977         * modules/string (Makefile.am): Also substitute the value of
63978         REPLACE_STRCASESTR.
63979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63980         assume strcasestr is declared in <string.h> not <strings.h>. Also
63981         set REPLACE_STRCASESTR.
63982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63983         REPLACE_STRCASESTR.
63984         * lib/strcasestr.h: Remove file.
63985         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63986         * lib/string_.h (strcasestr): New declaration.
63987
63988 2007-01-27  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/string_.h: Use 'extern'.
63991
63992 2007-01-27  Jim Meyering  <jim@meyering.net>
63993
63994         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63995         of set-but-not-used local, "q".
63996
63997         * lib/mempcpy.c: Include <config.h> before <string.h>.
63998         This fixes a compilation error on HP-UX, due to the system's
63999         "restrict"-using mempcpy prototype.
64000
64001 2007-01-26  Bruno Haible  <bruno@clisp.org>
64002
64003         Small optimization.
64004         * lib/javacomp.c: Include c-strstr.h.
64005          (is_envjavac_gcj): Use c_strstr instead of strstr.
64006         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64007
64008 2007-01-26  Bruno Haible  <bruno@clisp.org>
64009
64010         * MODULES.html.sh (Unicode string functions): Add the new modules.
64011
64012         * modules/uniconv/u32-strconv-to-locale: New file.
64013         * lib/uniconv/u32-strconv-to-locale.c: New file.
64014
64015         * modules/uniconv/u16-strconv-to-locale: New file.
64016         * lib/uniconv/u16-strconv-to-locale.c: New file.
64017
64018         * modules/uniconv/u8-strconv-to-locale: New file.
64019         * lib/uniconv/u8-strconv-to-locale.c: New file.
64020
64021         * modules/uniconv/u32-strconv-from-locale: New file.
64022         * lib/uniconv/u32-strconv-from-locale.c: New file.
64023
64024         * modules/uniconv/u16-strconv-from-locale: New file.
64025         * lib/uniconv/u16-strconv-from-locale.c: New file.
64026
64027         * modules/uniconv/u8-strconv-from-locale: New file.
64028         * lib/uniconv/u8-strconv-from-locale.c: New file.
64029
64030         * modules/uniconv/u32-strconv-to-enc: New file.
64031         * lib/uniconv/u32-strconv-to-enc.c: New file.
64032         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64033         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64034
64035         * modules/uniconv/u16-strconv-to-enc: New file.
64036         * lib/uniconv/u16-strconv-to-enc.c: New file.
64037         * lib/uniconv/u-strconv-to-enc.h: New file.
64038         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64039         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64040
64041         * modules/uniconv/u8-strconv-to-enc: New file.
64042         * lib/uniconv/u8-strconv-to-enc.c: New file.
64043         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64044         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64045
64046         * modules/uniconv/u32-strconv-from-enc: New file.
64047         * lib/uniconv/u32-strconv-from-enc.c: New file.
64048         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64049         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64050
64051         * modules/uniconv/u16-strconv-from-enc: New file.
64052         * lib/uniconv/u16-strconv-from-enc.c: New file.
64053         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64054         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64055
64056         * modules/uniconv/u8-strconv-from-enc: New file.
64057         * lib/uniconv/u8-strconv-from-enc.c: New file.
64058         * lib/uniconv/u-strconv-from-enc.h: New file.
64059         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64060         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64061
64062         * modules/uniconv/u32-conv-from-enc: New file.
64063         * lib/uniconv/u32-conv-from-enc.c: New file.
64064         * modules/uniconv/u32-conv-from-enc-tests: New file.
64065         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64066
64067         * modules/uniconv/u16-conv-from-enc: New file.
64068         * lib/uniconv/u16-conv-from-enc.c: New file.
64069         * lib/uniconv/u-conv-from-enc.h: New file.
64070         * modules/uniconv/u16-conv-from-enc-tests: New file.
64071         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64072
64073         * modules/uniconv/u8-conv-from-enc: New file.
64074         * lib/uniconv/u8-conv-from-enc.c: New file.
64075         * modules/uniconv/u8-conv-from-enc-tests: New file.
64076         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64077
64078         * modules/uniconv/base: New file.
64079         * lib/uniconv.h: New file.
64080
64081 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * doc/gnulib-tool.texi (Initial import): Update to match current
64084         behavior with strdup module.
64085         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64086         * lib/memmem.h: Remove; all uses removed.  This is now done
64087         by <string.h>.
64088         * lib/mempcpy.h: Likewise.
64089         * lib/memrchr.h: Likewise.
64090         * lib/stpcpy.h: Likewise.
64091         * lib/stpncpy.h: Likewise.
64092         * lib/strcase.h: Likewise.
64093         * lib/strchrnul.h: Likewise.
64094         * lib/strdup.h: Likewise.
64095         * lib/strndup.h: Likewise.
64096         * lib/strnlen.h: Likewise.
64097         * lib/strpbrk.h: Likewise.
64098         * lib/strsep.h: Likewise.
64099         * lib/strstr.h: Likewise.
64100         * lib/strtok_r.h: Likewise.
64101         * lib/string_.h: New file.
64102         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64103         Rely on <string.h> instead.
64104         * lib/canon-host.c: Likewise.
64105         * lib/chdir-long.c: Likewise.
64106         * lib/concatpath.c: Likewise.
64107         * lib/exclude.c: Likewise.
64108         * lib/fchdir.c: Likewise.
64109         * lib/getaddrinfo.c: Likewise.
64110         * lib/getcwd.c: Likewise.
64111         * lib/getsubopt.c: Likewise.
64112         * lib/glob.c: Likewise.
64113         * lib/hard-locale.c: Likewise.
64114         * lib/iconvme.c: Likewise.
64115         * lib/javacomp.c: Likewise.
64116         * lib/mempcpy.c: Likewise.
64117         * lib/memrchr.c: Likewise.
64118         * lib/regex_internal.h: Likewise.
64119         * lib/stpncpy.c: Likewise.
64120         * lib/strcasecmp.c: Likewise.
64121         * lib/strchrnul.c: Likewise.
64122         * lib/strdup.c: Likewise.
64123         * lib/striconv.c: Likewise.
64124         * lib/striconveh.c: Likewise.
64125         * lib/striconveha.c: Likewise.
64126         * lib/strncasecmp.c: Likewise.
64127         * lib/strndup.c: Likewise.
64128         * lib/strnlen.c: Likewise.
64129         * lib/strsep.c: Likewise.
64130         * lib/strstr.c: Likewise.
64131         * lib/strtok_r.c: Likewise.
64132         * lib/userspec.c: Likewise.
64133         * lib/w32spawn.h: Likewise.
64134         * lib/xstrndup.c: Likewise.
64135         * lib/mountlist.c (strstr): Remove decl.
64136         * m4/string_h.m4: New file.
64137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64141         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64142         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64143         Set REPLACE_STRCASECMP if necessary.
64144         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64145         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64146         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64148         HAVE_DECL_STRDUP if necessary.
64149         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64150         since gl_FUNC_STRNDUP does that now.
64151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64152         Check for decl here...
64153         (gl_PREREQ_STRNLEN): ... not here.
64154         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64155         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64156         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64158         necessary.
64159         * modules/string: New file.
64160         * modules/memmem (Files): Remove special-purpose include file.
64161         (Depends-on): Add string.
64162         (Include): Include <string.h>, not the removed file.
64163         * modules/mempcpy: Likewise.
64164         * modules/memrchr: Likewise.
64165         * modules/stpcpy: Likewise.
64166         * modules/stpncpy: Likewise.
64167         * modules/strcase: Likewise.
64168         * modules/strchrnul: Likewise.
64169         * modules/strdup: Likewise.
64170         * modules/strndup: Likewise.
64171         * modules/strnlen: Likewise.
64172         * modules/strpbrk: Likewise.
64173         * modules/strsep: Likewise.
64174         * modules/strstr: Likewise.
64175         * modules/strtok_r: Likewise.
64176         * tests/test-dirname.c: Don't include "strdup.h", since
64177         <string.h> now suffices.
64178         * tests/test-memmem.c: Don't include "memmem.h", since
64179         <string.h> now suffices.
64180
64181 2007-01-25  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64184         *resultp is 0.
64185
64186         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64187         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64188         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64189         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64190
64191         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64192         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64193         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64194         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64195         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64196         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64197
64198 2007-01-24  Bruno Haible  <bruno@clisp.org>
64199
64200         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64202         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64203         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64204         gl_FUNC_FTS_CORE.
64205         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64206         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64208         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64209         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64210         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64211         gl_FUNC_FCHOWNAT.
64212         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64213         gl_FUNC_STRFTIME.
64214         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64215         Reported by Ralf Wildenhues.
64216
64217 2007-01-24  Bruno Haible  <bruno@clisp.org>
64218
64219         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64220         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64221         gl_GETADDRINFO.
64222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64223         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64224         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64225
64226 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64229         Don't use 'exit'; just return from 'main'.
64230         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64231
64232         * lib/fnmatch_.h: Readjust white space and comments to match
64233         glibc, to avoid spurious diffs.
64234
64235 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64238         2004-12-01 change by Jakub Jelinek, since this code won't compile
64239         if !LIBC.  Problem reported by Bob Proulx.
64240
64241 2007-01-23  Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/striconveh.c: Include c-strcaseeq.h.
64244         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64245         * modules/striconveh (Depends-on): Add c-strcaseeq.
64246
64247 2007-01-23  Bruno Haible  <bruno@clisp.org>
64248
64249         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64250
64251         * modules/c-strcaseeq: New file.
64252         * lib/c-strcaseeq.h: New file.
64253
64254         * modules/streq: New file.
64255         * lib/streq.h: New file.
64256
64257 2007-01-23  Bruno Haible  <bruno@clisp.org>
64258
64259         * modules/striconveha-tests: New file.
64260         * tests/test-striconveha.c: New file.
64261
64262         * lib/striconveha.h: Include <stdbool.h>.
64263         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64264         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64265         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64266         (mem_iconveha): New function.
64267         (str_iconveha_notranslit): Renamed from str_iconveha.
64268         (str_iconveha): New function.
64269         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64270         c-strcase.
64271
64272 2007-01-23  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64275         encodings without forgiving before trying any encoding with handler.
64276         (str_iconveha): Try all encodings without forgiving before trying any
64277         encoding with handler.
64278
64279 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64280
64281         Import the following changes from libc.
64282
64283         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64284
64285         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64286
64287         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64288
64289         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64290         normal_bracket label.
64291
64292         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64293
64294         [BZ #361]
64295         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64296         to normal_bracket after fetching the next character.
64297
64298 2007-01-22  Bruno Haible  <bruno@clisp.org>
64299
64300         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64301         argument.
64302         * lib/striconveh.c (iconv_carefully_1): New function.
64303         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64304         argument.
64305         (str_cd_iconveh): Update.
64306         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64307         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64308         * tests/test-striconveh.c (MAGIC): New macro.
64309         (new_offsets): New function.
64310         (main): Test call with and without offsets.
64311
64312 2007-01-22  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64315         * modules/sys_select (Makefile.am): Likewise.
64316         * modules/sys_socket (Makefile.am): Likewise.
64317         * modules/sys_time (Makefile.am): Likewise.
64318
64319 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * modules/gettimeofday (License): Change from GPL to LGPL, since
64322         gettimeofday is a library function.
64323
64324 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64325
64326         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64327
64328 2007-01-21  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64331
64332 2007-01-21  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/striconveha: New file.
64335         * lib/striconveha.h: New file.
64336         * lib/striconveha.c: New file.
64337         * MODULES.html.sh (Internationalization functions): Add striconveha.
64338         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64339         string.
64340         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64341
64342 2007-01-21  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64345         * lib/striconveh.c (str_iconveh): Likewise.
64346
64347 2007-01-21  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/striconveh.h (mem_iconveh): New declaration.
64350         * lib/striconveh.c (mem_iconveh): New function.
64351         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64352
64353 2007-01-21  Bruno Haible  <bruno@clisp.org>
64354
64355         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64356
64357         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64358         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64359         original result buffer.
64360         (str_cd_iconveh): Update.
64361         * tests/test-striconveh.c (main): Update.
64362
64363         * lib/striconv.h (mem_cd_iconv): Change specification.
64364         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64365         result buffer.
64366         (str_cd_iconv): Update.
64367         * tests/test-striconv.c (main): Update.
64368
64369 2007-01-21  Bruno Haible  <bruno@clisp.org>
64370
64371         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64372
64373 2007-01-20  Jim Meyering  <jim@meyering.net>
64374
64375         * lib/userspec.c (parse_with_separator): If a user or group string
64376         starts with "+", skip the corresponding name-to-ID look-up, since
64377         such a look-up must fail: user and group names may not include "+".
64378
64379 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64382         since we now assume the sys_time module.
64383         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64384         check for sys/time.h; no longer needed.
64385         * modules/poll (Depends-on): Depend on sys_time.
64386
64387 2007-01-18  Bruno Haible  <bruno@clisp.org>
64388
64389         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64391
64392         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64393         gettimeofday.
64394
64395         * tests/test-gettimeofday.c: Include <time.h>.
64396         (dummy): Remove variable.
64397
64398         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64399         gl_HEADER_SYS_TIME_H.
64400         (gl_HEADER_SYS_TIME_H): New macro.
64401
64402         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64403         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64405         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64406         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64408         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64409         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64410         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64411         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64412         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64413
64414         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64415         last change; it caused a compilation error when cross-compiling to
64416         Cygwin.
64417
64418 2007-01-18  Jim Meyering  <jim@meyering.net>
64419
64420         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64421         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64422         than the race-prone "test -d sys || mkdir sys".
64423         (configure.ac): Use AC_PROG_MKDIR_P.
64424         * modules/sys_select: Likewise.
64425         * modules/sys_socket: Likewise.
64426         * modules/sys_time: Likewise.
64427
64428 2007-01-18  Eric Blake  <ebb9@byu.net>
64429
64430         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64431         replace gettimeofday.
64432         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64433         name, to avoid infinite recursion.
64434
64435 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64438         module sys_time.
64439         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64440         assume timespec.h defines struct timeval.
64441         * lib/settime.c: Likewise.
64442         * lib/utimens.c: Likewise.
64443         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64444         since we now assume the gettimeofday module.
64445         * lib/tempname.c (__gen_tempname): Likewise.
64446         * lib/gettimeofday.h: Remove.
64447         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64448         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64449         Include <time.h>, for 'time()'.
64450         (localtime_buffer_addr): Also use this workaround if
64451         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64452         to simplify the uses.  All uses changed.
64453         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64454         that #undef is inside {}, and 'const' follows type name consistently.
64455         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64456         (gettimeofday): Do not use the maximum possible value for
64457         tv->tv_usec, since that might break usages other than ls.c.
64458         Instead, we'll leave ls.c alone.  This undoes today's patch
64459         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64460         we've never observed the problem but might as well keep the
64461         canary.
64462         * lib/nanosleep.c: Include timespec.h first, for interface check.
64463         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64464         now assume the sys_time module.
64465         * lib/tempname.c: Likewise.
64466         * lib/timespec.h: Likewise.
64467         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64468         needed.
64469         * lib/strftime.c: Likewise.
64470         * lib/timespec.h: Likewise.
64471         * lib/posixtm.c: Include posixtm.h first, for interface check.
64472         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64473         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64474         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64475         * lib/sys_time_.h: New file.
64476         * lib/timespec.h (struct timespec): Use long int, not long.
64477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64478         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64479         Remove obsolescent call to AC_HEADER_TIME.
64480         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64482         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64483         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64484         Likewise.
64485         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64486         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64488         into the sys_time module.  Check for gettimeofday just once.
64489         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64490         for gettimeofday signature to just check the signature.  Merely
64491         compile it, since linking doesn't test signature.  Improve test for
64492         whether gettimeofday.o is actually needed.
64493         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64494         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64495         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64496         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64497         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64498         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64499         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64500         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64501         than worrying about sys/time.h.
64502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64503         Don't bother worrying about TIME_WITH_SYS_TIME.
64504         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64505         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64506         * m4/sys_time_h.m4: New file.
64507         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64508         Don't include sys/time.h.  Return from main rather than exiting.
64509         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64510         all uses changed.
64511         * modules/gethrxtime (Depends-on): Add sys_time.
64512         * modules/gettime (Depends-on): Likewise.
64513         * modules/gettimeofday (Depends-on): Likewise.
64514         * modules/nanosleep (Depends-on): Likewise.
64515         * modules/settime (Depends-on): Likewise.
64516         * modules/tempname (Depends-on): Likewise.
64517         * modules/utimens (Depends-on): Likewise.
64518         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64519         (Include): Change back to <sys/time.h>.
64520         (Maintainer): Add self.
64521         * modules/sys_time: New file.
64522         * modules/tempname (Depends-on): Add gettimeofday.
64523         * tests/test-gettimeofday.c: Include <sys/time.h>
64524         rather than gettimeofday.h.
64525
64526 2007-01-17  Bruno Haible  <bruno@clisp.org>
64527
64528         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64529         the license default to GPL.
64530         (func_create_testdir): Don't complain if a module is LGPL and its
64531         tests module depends on GPLed modules.
64532
64533 2007-01-17  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/gettimeofday.c (gettimeofday): Add code for the case
64536         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64537         maximum possible value for tv->tv_usec, rather than the minimum one.
64538
64539 2005-10-08  Martin Lambers  <marlam@marlam.de>
64540 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64541 2007-01-16  Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64544         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64545         gl_FUNC_GETTIMEOFDAY.
64546         (Include): Add gettimeofday.h.
64547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64548         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64549         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64550         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64551         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64552         * lib/gettimeofday.h: New file.
64553         * lib/gettimeofday.c: Include <sys/timeb.h>.
64554         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64555         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64556         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64557         fall back on time().
64558
64559         * tests/test-gettimeofday.c: New file.
64560         * modules/gettimeofday-tests: New file.
64561
64562 2007-01-16  Eric Blake  <ebb9@byu.net>
64563
64564         * modules/fnmatch (Depends-on): Depend on wchar.
64565         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64566         * m4/fnmatch.m4: Likewise.
64567         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64568         * m4/mbchar.m4: Likewise.
64569         * modules/mbswidth (Depends-on): Depend on wchar.
64570         * lib/mbswidth.c: Assume <wchar.h>.
64571         * m4/mbswidth.m4: Likewise.
64572         * modules/quotearg (Depends-on): Depend on wchar.
64573         * lib/quotearg.c: Assume <wchar.h>.
64574         * m4/quotearg.m4: Likewise.
64575         * modules/regex (Depends-on): Depend on wchar.
64576         * lib/regex_internal.h: Assume <wchar.h>.
64577         * m4/regex.m4: Likewise.
64578         * modules/stdint (Depends-on): Depend on wchar.
64579         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64580         * m4/stdint.m4: Likewise.
64581         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64582         * modules/strftime (Depends-on): Depend on wchar.
64583         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64584         * modules/strtol (Depends-on): Depend on wchar.
64585         * lib/strtol.c: Assume <wchar.h>.
64586         * modules/wcwidth (Depends-on): Depend on wchar.
64587         * lib/wcwidth.h: Assume <wchar.h>.
64588         * m4/wcwidth.m4: Likewise.
64589
64590 2007-01-16  Bruno Haible  <bruno@clisp.org>
64591
64592         * modules/csharpexec-script: New, created from...
64593         * modules/csharpexec: ... this.
64594
64595 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64596
64597         * modules/javaexec-script: New, created from...
64598         * modules/javaexec: ... this.
64599
64600 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64601
64602         * modules/poll (Dependencies): Add sys_select.
64603
64604 2007-01-15  Jim Meyering  <jim@meyering.net>
64605
64606         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64607         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64608         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64609         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64610
64611 2007-01-15  Bruno Haible  <bruno@clisp.org>
64612
64613         * modules/striconveh: New file.
64614         * lib/striconveh.h: New file.
64615         * lib/striconveh.c: New file.
64616         * MODULES.html.sh (Internationalization functions): Add striconveh.
64617
64618         * modules/striconveh-tests: New file.
64619         * tests/test-striconveh.c: New file.
64620
64621 2007-01-15  Bruno Haible  <bruno@clisp.org>
64622
64623         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64624         not from GNU libiconv or GNU libc.
64625
64626 2007-01-15  Bruno Haible  <bruno@clisp.org>
64627
64628         * doc/gnulib-intro.texi (Copyright): Explain the different license
64629         terms for module descriptions, autoconf macros, tests, documentation.
64630
64631 2007-01-14  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/striconv-tests: New file.
64634         * tests/test-striconv.c: New file.
64635
64636 2007-01-14  Bruno Haible  <bruno@clisp.org>
64637
64638         * modules/iconv-tests: New file.
64639         * tests/test-iconv.c: New file.
64640
64641 2007-01-14  Bruno Haible  <bruno@clisp.org>
64642
64643         * gnulib-tool (func_get_license): For test modules, use the license of
64644         the main module.
64645
64646 2007-01-14  Bruno Haible  <bruno@clisp.org>
64647
64648         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64649         if iconv is found to exist.
64650
64651 2007-01-14  Bruno Haible  <bruno@clisp.org>
64652
64653         * modules/c-ctype-tests: New file.
64654         * tests/test-c-ctype.c: New file.
64655
64656 2007-01-14  Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/binary-io-tests: New file.
64659         * tests/test-binary-io.sh: New file.
64660         * tests/test-binary-io.c: New file.
64661
64662 2007-01-14  Bruno Haible  <bruno@clisp.org>
64663
64664         * modules/array-oset-tests: New file.
64665         * tests/test-array_oset.c: New file.
64666
64667 2007-01-14  Bruno Haible  <bruno@clisp.org>
64668
64669         * modules/array-list-tests: New file.
64670         * tests/test-array_list.c: New file.
64671
64672 2007-01-14  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64675         and make.
64676         Reported by Simon Josefsson in
64677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64678
64679 2007-01-14  Bruno Haible  <bruno@clisp.org>
64680
64681         * modules/allocsa-tests: New file.
64682         * tests/test-allocsa.c: New file.
64683
64684 2007-01-14  Bruno Haible  <bruno@clisp.org>
64685
64686         * modules/fchdir (Depends-on): Add absolute-header.
64687         * modules/unistd (Depends-on): Likewise.
64688
64689 2006-12-30  Bruno Haible  <bruno@clisp.org>
64690
64691         * modules/fchdir: New file.
64692         * modules/unistd (Files): Add lib/unistd_.h.
64693         (Makefile.am): Generate unistd.h from unistd_.h.
64694         * lib/fchdir.c: New file.
64695         * lib/dirent_.h: New file.
64696         * lib/unistd_.h: New file.
64697         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64698         * m4/fchdir.m4: New file.
64699         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64700         (gl_HEADER_UNISTD): Invoke it.
64701         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64702         function.
64703         * lib/backupfile.c (opendir, closedir): Undefine.
64704         * lib/chown.c (open, close): Undefine.
64705         * lib/clean-temp.c (open, close): Undefine.
64706         * lib/copy-file.c (open, close): Undefine.
64707         * lib/execute.c (open, close): Undefine.
64708         * lib/fsusage.c (open, close): Undefine.
64709         * lib/gc-gnulib.c (open, close): Undefine.
64710         * lib/getcwd.c (opendir, closedir): Undefine.
64711         * lib/glob.c (opendir, closedir): Undefine.
64712         * lib/javacomp.c (open, close): Undefine.
64713         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64714         * lib/openat-proc.c (open, close): Undefine.
64715         * lib/pagealign_alloc.c (open, close): Undefine.
64716         * lib/pipe.c (open, close): Undefine.
64717         * lib/progreloc.c (open, close): Undefine.
64718         * lib/savedir.c (opendir, closedir): Undefine.
64719         * lib/utime.c (open, close): Undefine.
64720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64721
64722 2007-01-10  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64725
64726 2007-01-12  Eric Blake  <ebb9@byu.net>
64727
64728         Provide a robust <wchar.h>.  Further simplifications are now
64729         possible in other modules, but not included here.
64730         * modules/wchar: New module.
64731         * m4/wchar.m4: New file.
64732         * lib/wchar_.h: Likewise.
64733         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64734         of the new module.
64735         * MODULES.html.sh (Extended multibyte and wide character utilities):
64736         New section.
64737
64738 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64739
64740         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64741         to a reasonable default for memory allocation.
64742         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64743         file system that reports garbage st_size values for symlinks.
64744         Problem reported by Liyang Hu.
64745
64746 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64747
64748         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64749         Emacs .#* auto-save files).
64750
64751 2007-01-11  Bruno Haible  <bruno@clisp.org>
64752
64753         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64754         directory.
64755
64756 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         Use @...@ consistently in lib/wctype_.h.
64759         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64760         on it being set to 1 or 0.
64761         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64762         go back to AC_SUBSTing it.
64763         * modules/wctype (Makefile.am): Undo previous change.
64764
64765 2007-01-10  Eric Blake  <ebb9@byu.net>
64766
64767         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64768         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64769         * modules/wctype (Makefile.am): Likewise.
64770         Reported by Chris McGuire.
64771
64772 2007-01-10  Jim Meyering  <jim@meyering.net>
64773
64774         fts.c: a small readability/maintainability improvement
64775         * lib/fts.c (fts_read): Make this code slightly more readable and
64776         maintainable by hoisting the "sp->fts_cur = p" assignments to
64777         immediately follow the statements that set P.  Derived from
64778         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64779
64780 2007-01-10  Eric Blake  <ebb9@byu.net>
64781
64782         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64783         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64785         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64786         Reported by Chris McGuire.
64787
64788 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64789
64790         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64791         in sed script.
64792
64793 2007-01-09  Bruno Haible  <bruno@clisp.org>
64794
64795         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64796         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64797         variables.
64798         (func_module): Use them.
64799
64800 2007-01-09  Bruno Haible  <bruno@clisp.org>
64801
64802         * modules/unistr/base: New file.
64803         * lib/unistr.h: New file.
64804
64805         * modules/unistr/u8-to-u16: New file.
64806         * lib/unistr/u8-to-u16.c: New file.
64807
64808         * modules/unistr/u8-to-u32: New file.
64809         * lib/unistr/u8-to-u32.c: New file.
64810
64811         * modules/unistr/u16-to-u8: New file.
64812         * lib/unistr/u16-to-u8.c: New file.
64813
64814         * modules/unistr/u16-to-u32: New file.
64815         * lib/unistr/u16-to-u32.c: New file.
64816
64817         * modules/unistr/u32-to-u8: New file.
64818         * lib/unistr/u32-to-u8.c: New file.
64819
64820         * modules/unistr/u32-to-u16: New file.
64821         * lib/unistr/u32-to-u16.c: New file.
64822
64823         * modules/unistr/u8-check: New file.
64824         * modules/unistr/u16-check: New file.
64825         * modules/unistr/u32-check: New file.
64826         * lib/unistr/u8-check.c: New file.
64827         * lib/unistr/u16-check.c: New file.
64828         * lib/unistr/u32-check.c: New file.
64829
64830         * modules/unistr/u8-chr: New file.
64831         * modules/unistr/u16-chr: New file.
64832         * modules/unistr/u32-chr: New file.
64833         * lib/unistr/u8-chr.c: New file.
64834         * lib/unistr/u16-chr.c: New file.
64835         * lib/unistr/u32-chr.c: New file.
64836
64837         * modules/unistr/u8-cmp: New file.
64838         * modules/unistr/u16-cmp: New file.
64839         * modules/unistr/u32-cmp: New file.
64840         * lib/unistr/u8-cmp.c: New file.
64841         * lib/unistr/u16-cmp.c: New file.
64842         * lib/unistr/u32-cmp.c: New file.
64843
64844         * modules/unistr/u8-cpy: New file.
64845         * modules/unistr/u16-cpy: New file.
64846         * modules/unistr/u32-cpy: New file.
64847         * lib/unistr/u8-cpy.c: New file.
64848         * lib/unistr/u16-cpy.c: New file.
64849         * lib/unistr/u32-cpy.c: New file.
64850         * lib/unistr/u-cpy.h: New file.
64851
64852         * modules/unistr/u8-cpy-alloc: New file.
64853         * modules/unistr/u16-cpy-alloc: New file.
64854         * modules/unistr/u32-cpy-alloc: New file.
64855         * lib/unistr/u8-cpy-alloc.c: New file.
64856         * lib/unistr/u16-cpy-alloc.c: New file.
64857         * lib/unistr/u32-cpy-alloc.c: New file.
64858         * lib/unistr/u-cpy-alloc.h: New file.
64859
64860         * modules/unistr/u8-endswith: New file.
64861         * modules/unistr/u16-endswith: New file.
64862         * modules/unistr/u32-endswith: New file.
64863         * lib/unistr/u8-endswith.c: New file.
64864         * lib/unistr/u16-endswith.c: New file.
64865         * lib/unistr/u32-endswith.c: New file.
64866         * lib/unistr/u-endswith.h: New file.
64867
64868         * modules/unistr/u8-mblen: New file.
64869         * modules/unistr/u16-mblen: New file.
64870         * modules/unistr/u32-mblen: New file.
64871         * lib/unistr/u8-mblen.c: New file.
64872         * lib/unistr/u16-mblen.c: New file.
64873         * lib/unistr/u32-mblen.c: New file.
64874
64875         * modules/unistr/u8-mbtouc: New file.
64876         * modules/unistr/u16-mbtouc: New file.
64877         * modules/unistr/u32-mbtouc: New file.
64878         * lib/unistr/u8-mbtouc.c: New file.
64879         * lib/unistr/u16-mbtouc.c: New file.
64880         * lib/unistr/u32-mbtouc.c: New file.
64881
64882         * modules/unistr/u8-mbtouc-safe: New file.
64883         * modules/unistr/u16-mbtouc-safe: New file.
64884         * modules/unistr/u32-mbtouc-safe: New file.
64885         * lib/unistr/u8-mbtouc-safe.c: New file.
64886         * lib/unistr/u16-mbtouc-safe.c: New file.
64887         * lib/unistr/u32-mbtouc-safe.c: New file.
64888
64889         * modules/unistr/u8-move: New file.
64890         * modules/unistr/u16-move: New file.
64891         * modules/unistr/u32-move: New file.
64892         * lib/unistr/u8-move.c: New file.
64893         * lib/unistr/u16-move.c: New file.
64894         * lib/unistr/u32-move.c: New file.
64895         * lib/unistr/u-move.h: New file.
64896
64897         * modules/unistr/u8-next: New file.
64898         * modules/unistr/u16-next: New file.
64899         * modules/unistr/u32-next: New file.
64900         * lib/unistr/u8-next.c: New file.
64901         * lib/unistr/u16-next.c: New file.
64902         * lib/unistr/u32-next.c: New file.
64903
64904         * modules/unistr/u8-prev: New file.
64905         * modules/unistr/u16-prev: New file.
64906         * modules/unistr/u32-prev: New file.
64907         * lib/unistr/u8-prev.c: New file.
64908         * lib/unistr/u16-prev.c: New file.
64909         * lib/unistr/u32-prev.c: New file.
64910
64911         * modules/unistr/u8-set: New file.
64912         * modules/unistr/u16-set: New file.
64913         * modules/unistr/u32-set: New file.
64914         * lib/unistr/u8-set.c: New file.
64915         * lib/unistr/u16-set.c: New file.
64916         * lib/unistr/u32-set.c: New file.
64917         * lib/unistr/u-set.h: New file.
64918
64919         * modules/unistr/u8-startswith: New file.
64920         * modules/unistr/u16-startswith: New file.
64921         * modules/unistr/u32-startswith: New file.
64922         * lib/unistr/u8-startswith.c: New file.
64923         * lib/unistr/u16-startswith.c: New file.
64924         * lib/unistr/u32-startswith.c: New file.
64925         * lib/unistr/u-startswith.h: New file.
64926
64927         * modules/unistr/u8-stpcpy: New file.
64928         * modules/unistr/u16-stpcpy: New file.
64929         * modules/unistr/u32-stpcpy: New file.
64930         * lib/unistr/u8-stpcpy.c: New file.
64931         * lib/unistr/u16-stpcpy.c: New file.
64932         * lib/unistr/u32-stpcpy.c: New file.
64933         * lib/unistr/u-stpcpy.h: New file.
64934
64935         * modules/unistr/u8-stpncpy: New file.
64936         * modules/unistr/u16-stpncpy: New file.
64937         * modules/unistr/u32-stpncpy: New file.
64938         * lib/unistr/u8-stpncpy.c: New file.
64939         * lib/unistr/u16-stpncpy.c: New file.
64940         * lib/unistr/u32-stpncpy.c: New file.
64941         * lib/unistr/u-stpncpy.h: New file.
64942
64943         * modules/unistr/u8-strcat: New file.
64944         * modules/unistr/u16-strcat: New file.
64945         * modules/unistr/u32-strcat: New file.
64946         * lib/unistr/u8-strcat.c: New file.
64947         * lib/unistr/u16-strcat.c: New file.
64948         * lib/unistr/u32-strcat.c: New file.
64949         * lib/unistr/u-strcat.h: New file.
64950
64951         * modules/unistr/u8-strchr: New file.
64952         * modules/unistr/u16-strchr: New file.
64953         * modules/unistr/u32-strchr: New file.
64954         * lib/unistr/u8-strchr.c: New file.
64955         * lib/unistr/u16-strchr.c: New file.
64956         * lib/unistr/u32-strchr.c: New file.
64957
64958         * modules/unistr/u8-strcmp: New file.
64959         * modules/unistr/u16-strcmp: New file.
64960         * modules/unistr/u32-strcmp: New file.
64961         * lib/unistr/u8-strcmp.c: New file.
64962         * lib/unistr/u16-strcmp.c: New file.
64963         * lib/unistr/u32-strcmp.c: New file.
64964
64965         * modules/unistr/u8-strcpy: New file.
64966         * modules/unistr/u16-strcpy: New file.
64967         * modules/unistr/u32-strcpy: New file.
64968         * lib/unistr/u8-strcpy.c: New file.
64969         * lib/unistr/u16-strcpy.c: New file.
64970         * lib/unistr/u32-strcpy.c: New file.
64971         * lib/unistr/u-strcpy.h: New file.
64972
64973         * modules/unistr/u8-strcspn: New file.
64974         * modules/unistr/u16-strcspn: New file.
64975         * modules/unistr/u32-strcspn: New file.
64976         * lib/unistr/u8-strcspn.c: New file.
64977         * lib/unistr/u16-strcspn.c: New file.
64978         * lib/unistr/u32-strcspn.c: New file.
64979         * lib/unistr/u-strcspn.h: New file.
64980
64981         * modules/unistr/u8-strdup: New file.
64982         * modules/unistr/u16-strdup: New file.
64983         * modules/unistr/u32-strdup: New file.
64984         * lib/unistr/u8-strdup.c: New file.
64985         * lib/unistr/u16-strdup.c: New file.
64986         * lib/unistr/u32-strdup.c: New file.
64987         * lib/unistr/u-strdup.h: New file.
64988
64989         * modules/unistr/u8-strlen: New file.
64990         * modules/unistr/u16-strlen: New file.
64991         * modules/unistr/u32-strlen: New file.
64992         * lib/unistr/u8-strlen.c: New file.
64993         * lib/unistr/u16-strlen.c: New file.
64994         * lib/unistr/u32-strlen.c: New file.
64995         * lib/unistr/u-strlen.h: New file.
64996
64997         * modules/unistr/u8-strmblen: New file.
64998         * modules/unistr/u16-strmblen: New file.
64999         * modules/unistr/u32-strmblen: New file.
65000         * lib/unistr/u8-strmblen.c: New file.
65001         * lib/unistr/u16-strmblen.c: New file.
65002         * lib/unistr/u32-strmblen.c: New file.
65003
65004         * modules/unistr/u8-strmbtouc: New file.
65005         * modules/unistr/u16-strmbtouc: New file.
65006         * modules/unistr/u32-strmbtouc: New file.
65007         * lib/unistr/u8-strmbtouc.c: New file.
65008         * lib/unistr/u16-strmbtouc.c: New file.
65009         * lib/unistr/u32-strmbtouc.c: New file.
65010
65011         * modules/unistr/u8-strncat: New file.
65012         * modules/unistr/u16-strncat: New file.
65013         * modules/unistr/u32-strncat: New file.
65014         * lib/unistr/u8-strncat.c: New file.
65015         * lib/unistr/u16-strncat.c: New file.
65016         * lib/unistr/u32-strncat.c: New file.
65017         * lib/unistr/u-strncat.h: New file.
65018
65019         * modules/unistr/u8-strncmp: New file.
65020         * modules/unistr/u16-strncmp: New file.
65021         * modules/unistr/u32-strncmp: New file.
65022         * lib/unistr/u8-strncmp.c: New file.
65023         * lib/unistr/u16-strncmp.c: New file.
65024         * lib/unistr/u32-strncmp.c: New file.
65025
65026         * modules/unistr/u8-strncpy: New file.
65027         * modules/unistr/u16-strncpy: New file.
65028         * modules/unistr/u32-strncpy: New file.
65029         * lib/unistr/u8-strncpy.c: New file.
65030         * lib/unistr/u16-strncpy.c: New file.
65031         * lib/unistr/u32-strncpy.c: New file.
65032         * lib/unistr/u-strncpy.h: New file.
65033
65034         * modules/unistr/u8-strnlen: New file.
65035         * modules/unistr/u16-strnlen: New file.
65036         * modules/unistr/u32-strnlen: New file.
65037         * lib/unistr/u8-strnlen.c: New file.
65038         * lib/unistr/u16-strnlen.c: New file.
65039         * lib/unistr/u32-strnlen.c: New file.
65040         * lib/unistr/u-strnlen.h: New file.
65041
65042         * modules/unistr/u8-strpbrk: New file.
65043         * modules/unistr/u16-strpbrk: New file.
65044         * modules/unistr/u32-strpbrk: New file.
65045         * lib/unistr/u8-strpbrk.c: New file.
65046         * lib/unistr/u16-strpbrk.c: New file.
65047         * lib/unistr/u32-strpbrk.c: New file.
65048         * lib/unistr/u-strpbrk.h: New file.
65049
65050         * modules/unistr/u8-strrchr: New file.
65051         * modules/unistr/u16-strrchr: New file.
65052         * modules/unistr/u32-strrchr: New file.
65053         * lib/unistr/u8-strrchr.c: New file.
65054         * lib/unistr/u16-strrchr.c: New file.
65055         * lib/unistr/u32-strrchr.c: New file.
65056
65057         * modules/unistr/u8-strspn: New file.
65058         * modules/unistr/u16-strspn: New file.
65059         * modules/unistr/u32-strspn: New file.
65060         * lib/unistr/u8-strspn.c: New file.
65061         * lib/unistr/u16-strspn.c: New file.
65062         * lib/unistr/u32-strspn.c: New file.
65063         * lib/unistr/u-strspn.h: New file.
65064
65065         * modules/unistr/u8-strstr: New file.
65066         * modules/unistr/u16-strstr: New file.
65067         * modules/unistr/u32-strstr: New file.
65068         * lib/unistr/u8-strstr.c: New file.
65069         * lib/unistr/u16-strstr.c: New file.
65070         * lib/unistr/u32-strstr.c: New file.
65071         * lib/unistr/u-strstr.h: New file.
65072
65073         * modules/unistr/u8-strtok: New file.
65074         * modules/unistr/u16-strtok: New file.
65075         * modules/unistr/u32-strtok: New file.
65076         * lib/unistr/u8-strtok.c: New file.
65077         * lib/unistr/u16-strtok.c: New file.
65078         * lib/unistr/u32-strtok.c: New file.
65079         * lib/unistr/u-strtok.h: New file.
65080
65081         * modules/unistr/u8-uctomb: New file.
65082         * modules/unistr/u16-uctomb: New file.
65083         * modules/unistr/u32-uctomb: New file.
65084         * lib/unistr/u8-uctomb.c: New file.
65085         * lib/unistr/u16-uctomb.c: New file.
65086         * lib/unistr/u32-uctomb.c: New file.
65087
65088         * MODULES.html.sh (Unicode string functions): Add the new modules.
65089
65090 2007-01-08  Bruno Haible  <bruno@clisp.org>
65091
65092         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65093         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65094         subdirectories.
65095
65096 2007-01-08  Karl Berry  <karl@gnu.org>
65097
65098         * doc/error.texi: mention that main() fns must set program_name
65099         when progname is used.
65100
65101 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65104         WCTYPE_H is empty, for the benefit of builds from non-distclean
65105         directories.  Problem reported by Eric Blake in
65106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65107
65108 2007-01-08  Bruno Haible  <bruno@clisp.org>
65109
65110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65111         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65112         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65113         PROVIDE_CANONICALIZE_FILENAME_MODE.
65114         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65115
65116 2007-01-08  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65119         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65120         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65121         * lib/fts.c: Likewise.
65122         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65123
65124 2006-12-25  Bruno Haible  <bruno@clisp.org>
65125
65126         * modules/utf8-ucs4-safe: New file.
65127         * lib/utf8-ucs4-safe.h: New file.
65128         * lib/unistr/utf8-ucs4-safe.c: New file.
65129
65130         * modules/utf16-ucs4-safe: New file.
65131         * lib/utf16-ucs4-safe.h: New file.
65132         * lib/unistr/utf16-ucs4-safe.c: New file.
65133
65134         * MODULES.html.sh (Unicode string functions): Add the new modules.
65135
65136 2007-01-08  Bruno Haible  <bruno@clisp.org>
65137
65138         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65139         (Depends-on): Add unitypes.
65140         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65141         (u8_mbtouc_aux): Move out to separate file.
65142         (u8_mbtouc): Use ucs4_t, uint8_t types.
65143         * lib/unistr/utf8-ucs4.c: New file.
65144
65145         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65146         (Depends-on): Add unitypes.
65147         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65148         (u16_mbtouc_aux): Move out to separate file.
65149         (u16_mbtouc): Use ucs4_t, uint16_t types.
65150         * lib/unistr/utf16-ucs4.c: New file.
65151
65152         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65153         (Depends-on): Add unitypes.
65154         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65155         (u8_uctomb_aux): Move out to separate file.
65156         (u8_uctomb): Use ucs4_t, uint8_t types.
65157         * lib/unistr/ucs4-utf8.c: New file.
65158
65159         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65160         (Depends-on): Add unitypes.
65161         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65162         (u16_uctomb_aux): Move out to separate file.
65163         (u16_uctomb): Use ucs4_t, uint16_t types.
65164         * lib/unistr/ucs4-utf16.c: New file.
65165
65166 2006-12-25  Bruno Haible  <bruno@clisp.org>
65167
65168         * modules/unitypes: New file.
65169         * lib/unitypes.h: New file.
65170         * MODULES.html.sh (func_all_modules): New section "Unicode string
65171         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65172         this section. Add unitypes.
65173
65174 2007-01-08  Bruno Haible  <bruno@clisp.org>
65175
65176         Avoid variable names that conflict with those from libtool.
65177         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65178         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65179         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65180         library_names_spec to acl_library_names_spec, hardcode_* to
65181         acl_hardcode_*.
65182         Reported by Ralf Wildenhues.
65183
65184 2007-01-08  Bruno Haible  <bruno@clisp.org>
65185
65186         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65187         definition.
65188         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65189         definition.
65190         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65191         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65192         definition.
65193         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65194         definition.
65195         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65196         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65197         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65198         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65199         definition.
65200         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65201         definition.
65202         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65203         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65204         GC_USE_<algorithm>.
65205         * lib/gc-libgcrypt.c: Likewise.
65206         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65207         * modules/gc-arctwo (configure.ac): Likewise.
65208         * modules/gc-des (configure.ac): Likewise.
65209         * modules/gc-hmac-md5 (configure.ac): Likewise.
65210         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65211         * modules/gc-md2 (configure.ac): Likewise.
65212         * modules/gc-md4 (configure.ac): Likewise.
65213         * modules/gc-md5 (configure.ac): Likewise.
65214         * modules/gc-random (configure.ac): Likewise.
65215         * modules/gc-rijndael (configure.ac): Likewise.
65216         * modules/gc-sha1 (configure.ac): Likewise.
65217
65218 2007-01-08  Bruno Haible  <bruno@clisp.org>
65219
65220         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65221         macro definition.
65222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65223         definition.
65224         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65225         definition.
65226         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65227         * modules/fcntl-safer (configure.ac): Likewise.
65228         * modules/fopen-safer (configure.ac): Likewise.
65229         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65230         GNULIB_FWRITEERROR macro definition.
65231
65232 2007-01-08  Bruno Haible  <bruno@clisp.org>
65233
65234         * m4/gnulib-common.m4: New file.
65235         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65236         (func_get_filelist): Add m4/gnulib-common.m4.
65237
65238 2007-01-08  Bruno Haible  <bruno@clisp.org>
65239
65240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65241         command.
65242
65243 2007-01-08  Jim Meyering  <jim@meyering.net>
65244
65245         Use a more robust test for a "can't happen" condition.
65246         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65247         narrowed the st_size value.  Presuming the "can't happen" condition
65248         is true, that narrowing could conceivably convert an invalid st_size
65249         value into a valid one.  Instead, use a change based on Matthew
65250         Woehlke's original patch.
65251
65252         Slight readability improvement: use an assert-like macro
65253         in place of literal "abort ()" uses.
65254         * lib/fts.c (fts_assert): Define.
65255         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65256         Use this macro instead of a bare 'abort'.
65257
65258 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65261         simply work around them.
65262         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65263         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65264         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65265         declaring.
65266         Don't bother to define as macros, since the standard doesn't require it.
65267         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65268         longer worry about IRIX 5.3.
65269         (HAVE_WCTYPE_CTMP_BUG): Remove.
65270
65271 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65274         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65275         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65276         Problems reported by Georg Schwarz for IRIX 5.3.
65277
65278         * gnulib-tool (autoconf_minversion): Take the maximum version number
65279         found, not the minimum.  Problem reported by James Youngman.
65280
65281 2007-01-03  Karl Berry  <karl@gnu.org>
65282
65283         * doc/error.texi: new file, explaining interaction with progname.
65284         * doc/gnulib.texi: include it.  Update copyright.
65285
65286 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65287
65288         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65289         AC_CANONICAL_HOST, to improve autobuild outputs.
65290
65291 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65292             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65293
65294         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65295         sockets, server sockets, and other file descriptors.  Count errors
65296         to compute the return value.  Reorder the code a bit to be easier
65297         to follow.  Don't set event bits that were not requested (except
65298         POLLERR and POLLHUP).
65299
65300 2007-01-01  Bruno Haible  <bruno@clisp.org>
65301
65302         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65303
65304 2007-01-03  Jim Meyering  <jim@meyering.net>
65305
65306         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65307
65308 2007-01-02  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/settime (Include): Require timespec.h.
65311         * modules/nanosleep (Include): Likewise.
65312
65313 2007-01-01  Bruno Haible  <bruno@clisp.org>
65314
65315         * gnulib-tool (func_emit_copyright_notice): Bump year.
65316         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65317
65318 2007-01-01  Bruno Haible  <bruno@clisp.org>
65319
65320         Improve support for OpenBSD.
65321         * build-aux/config.rpath (libname_spec): Export.
65322         (library_names_spec): New variable. Export.
65323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65324         library_names_spec from the config.rpath output. Locate shared library
65325         through the name pattern in library_names_spec.
65326
65327 2007-01-01  Eric Blake  <ebb9@byu.net>
65328
65329         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65330
65331 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65334         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65335         assume the C locale, and avoid an "eval" that could cause trouble.
65336         Problem with SORT reported by Bob Proulx.
65337
65338         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65339         Define.  Trivial patch from Henning Nielsen Lund, originally
65340         sent to bug-grep@gnu.org today.
65341
65342 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65345         struct stat.  Problem reported by Henning Nielsen Lund.
65346         * lib/acl.c: Include acl.h first, to check interface.  Don't
65347         bother to include sys/types.h and sys/stat.h again.
65348
65349 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         Import the following change from libc; problem reported by
65352         Sven Verdoolaege.
65353
65354         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65355
65356         [BZ #1373]
65357         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65358
65359 2006-12-28  Jim Meyering  <jim@meyering.net>
65360
65361         * build-aux/announce-gen: Do not assume that the package
65362         builds any of tar.gz, tar.bz2, and .xdelta files.
65363         Suggestion from Simon Josefsson.
65364
65365 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65366
65367         * modules/announce-gen: New file.
65368
65369 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65372         handles its gotchas now.
65373         * lib/mbswidth.c: Likewise.
65374         * lib/wcwidth.h: Likewise.
65375         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65376         and iswcntrl; the wctype module does this stuff now.
65377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65379         * modules/mbchar (Depends-on): Add wctype.
65380         * modules/mbswidth (Depends-on): Likewise.
65381         * modules/wcwidth (Depends-on): Likewise.
65382
65383 2006-12-27  Eric Blake  <ebb9@byu.net>
65384
65385         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65386         module uses more than what <wctype.h> is required to provide.
65387
65388 2006-12-26  Eric Blake  <ebb9@byu.net>
65389
65390         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65391
65392 2006-12-26  Eric Blake  <ebb9@byu.net>
65393
65394         * modules/absolute-header: New module.
65395         * modules/fcntl (Depends-on): Depend on it.
65396         * modules/inttypes (Depends-on): Likewise.
65397         * modules/stdint (Depends-on): Likewise.
65398         * modules/sys_stat (Depends-on): Likewise.
65399         * modules/wctype (Depends-on): Likewise.
65400         * MODULES.html.sh (Support for building libraries and
65401         executables): Document it.
65402
65403 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * gnulib-tool (SED): Remove, undoing previous change.
65406         The problem was that it broke coreutils on Solaris, because
65407         "sed --posix" leaked into a makefile.
65408         (sed): New alias, if 'alias' and GNU sed.
65409
65410 2006-12-24  Jim Meyering  <jim@meyering.net>
65411
65412         Work around an fchownat bug in glibc-2.4:
65413         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65414         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65415         in spite of the -P option.
65416         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65417         New macros.
65418         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65419         * modules/openat (Files): Add lib/fchownat.c.
65420         * lib/openat.c (fchownat): Don't define here.  Move to...
65421         * lib/fchownat.c: ...this new file.
65422
65423 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         Fix bug reported by Bruno Haible in
65426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65427         where quotearg.c didn't compile on Mac OS X 10.2 because it
65428         lacks <wchar.h> and wint_t.
65429         * lib/wctype_.h (__wctype_wint_t): New type.
65430         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65431         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65432         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65433         Arg is now of type __wctype_wint_t, not wint_t.
65434         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65435         substitute HAVE_WINT_T.
65436         * modules/wctype (Files): Add m4/wint_t.m4.
65437         (wctype.h): Substitute HAVE_WINT_T.
65438
65439 2006-12-23  Bruno Haible  <bruno@clisp.org>
65440
65441         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65442
65443 2006-12-23  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65446         S_ISLNK.
65447         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65448         mingw.
65449
65450 2006-12-22  Bruno Haible  <bruno@clisp.org>
65451
65452         * lib/copy-file.c: Include acl.h.
65453         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65454         Close the file descriptors only after being done with copy_acl.
65455         * modules/copy-file (Depends-on): Add acl.
65456
65457 2006-12-22  Bruno Haible  <bruno@clisp.org>
65458
65459         * gnulib-tool (SED): New variable.
65460         Use $SED instead of sed everywhere.
65461
65462 2006-12-22  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/no-c++: New file.
65465         * m4/no-c++.m4: New file.
65466         * MODULES.html.sh (Support for building libraries and executables):
65467         Add no-c++.
65468
65469 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65472         Include <limits.h>, and use its INT_MAX to rewrite the
65473         j loop so that it does not overflow 'int'.  Problem reported by
65474         Ralf Wildenhues in
65475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65476         Play it safe by shifting left by 1 rather than multiplying by 2,
65477         as GCC is less likely to optimize this away when the value
65478         is signed (when it assumes overflow leads to undefined behavior).
65479         Also, don't assume time_t uses two's complement.
65480
65481 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * MODULES.html.sh: New module wctype.
65484         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65485         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65486         <wctype.h>, since the new wctype module should fix this.
65487         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65488         the wctype module should arrange for it.
65489         * lib/regex_internal.h: Likewise.
65490         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65491         since the wctype module should handle this now.
65492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65493         * modules/fnmatch (Depends-on): Add wctype.
65494         * modules/quotearg (Depends-on): Likewise.
65495         * modules/regex (Depends-on): Likewise.
65496
65497 2006-12-19  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65500         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65501
65502 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65503
65504         * modules/savewd (Depends-on): Fix dependency on fcntl.
65505
65506 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65509         conforms to C99, rather than relying on the user's environment
65510         setting of STDINT_H.
65511
65512 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65513         and Eric Blake  <ebb9@byu.net>
65514
65515         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65516         This is more consistent with the other defines here.
65517         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65518         Port to z/OS.  Problem reported by Paul Gilmartin.
65519         Change local vars to use gl_ prefix rather than ac_.
65520         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65521         with other defines.
65522         * modules/double-slash-root: New module.
65523         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65524         (Depends-on): Add double-slash-root.
65525         * MODULES.html.sh (File system functions): Mention new module.
65526
65527 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65530         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65531         This is for the benefit of gzip, which doesn't do i18n.
65532
65533 2006-12-12  Jim Meyering  <jim@meyering.net>
65534
65535         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65536         Reported by Andreas Schwab <schwab@suse.de>.
65537
65538 2006-12-12  Bruno Haible  <bruno@clisp.org>
65539
65540         Merge these changes.
65541         2006-09-05  Bruno Haible  <bruno@clisp.org>
65542         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65543         iconv_alloc succeeded.
65544         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65545         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65546         test for " && dest " at the end - dest is always != NULL there. Call
65547         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65548         with 2xNULL arguments, also to flush the state storage. Handle the
65549         IRIX iconv behaviour. Realloc the final result, to throw away unused
65550         memory.
65551
65552 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65555         and fchmodat unconditionally, since glibc 2.4 has them.
65556         Problem reported by Arkadiusz Miskiewicz.
65557
65558 2006-12-10  Bruno Haible  <bruno@clisp.org>
65559
65560         * gnulib-tool (func_import): Show the include files only for those
65561         modules that are copied and specified.
65562         Reported by Karl Berry.
65563
65564 2006-12-08  Jim Meyering  <jim@meyering.net>
65565
65566         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65567         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65568
65569         * build-aux/announce-gen: Add two new options, both optional:
65570         --bootstrap-tools=TOOL_LIST
65571               a comma-separated list of tools, e.g.,
65572               autoconf,automake,bison,gnulib
65573         --gnulib-snapshot-date=DATE
65574               if gnulib is in the bootstrap tool list,
65575               then report this as the snapshot date.
65576               If not specified, use the current date/time.
65577               If you specify a date here, be sure it's UTC.
65578
65579 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65580
65581         * tests/test-argp-2.sh: Fix test to match actual output.
65582         (func_compare): Fix sed script to be portable.
65583
65584 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65587         workaround for this case.  It is not autoconfigured now; offhand
65588         it's hard to see how to autoconfigure it.
65589
65590 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65593         a directory that is about to be chowned.  Such a directory's
65594         initial file permissions should permit the owner only and this
65595         should not be changed until after the chown, since the group and
65596         other bits would be incorrect if they granted permission before
65597         the chown.
65598
65599         Fix porting problem for iswctype reported by Georg Schwarz in:
65600         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65601         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65602         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65604         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65605
65606 2006-12-03  Jim Meyering  <jim@meyering.net>
65607
65608         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65609         p->fts_statp may not yet be defined.
65610         (fts_read): Instead, set it in the caller, once p->fts_statp is
65611         sure to be defined, and corresponds to a top-level directory.
65612         This bug made du -x fail.  Here's the coreutils test case:
65613         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65614         Reported by Mike Frysinger.
65615
65616 2006-12-01  Jim Meyering  <jim@meyering.net>
65617
65618         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65619         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65620         Reported by Simon Josefsson.
65621
65622 2006-11-30  Jim Meyering  <jim@meyering.net>
65623
65624         * m4/warning.m4: Use the all-permissive copyright notice
65625         recommended by RMS (rather than LGPL).
65626         * m4/vararrays.m4: Likewise.
65627         * m4/flexmember.m4: Likewise.
65628
65629 2006-11-29  Bruno Haible  <bruno@clisp.org>
65630
65631         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65632         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65633         using +=.
65634         Reported by Simon Josefsson <simon@josefsson.org>.
65635
65636 2006-11-28  James Youngman <jay@gnu.org>
65637
65638         * README: Advise users that they might find the bug-gnulib@gnu.org
65639         and autotools-announce@gnu.org mailing lists useful.
65640
65641 2006-11-28  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/ptrdiff_max.m4: Remove file.
65644
65645 2006-11-21  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65648         _AC_COMPUTE_INT.
65649         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65650         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65651         _AC_COMPUTE_INT.
65652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65653         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65654         _AC_COMPUTE_INT.
65655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65656
65657 2006-11-28  Jim Meyering  <jim@meyering.net>
65658
65659         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65660         warning from "gcc -Wshadow" about shadowing the builtin.
65661
65662 2006-11-27  Bruno Haible  <bruno@clisp.org>
65663
65664         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65665         _AC_COMPUTE_INT.
65666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65667
65668 2006-11-27  Bruno Haible  <bruno@clisp.org>
65669             Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65672
65673 2006-11-26  Bruno Haible  <bruno@clisp.org>
65674
65675         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65676         noinst_LTLIBRARIES.
65677
65678 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65679             Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65682         if compiling with "gcc -ansi".
65683
65684 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         Fix some incompatibilities with gcc -ansi -pedantic.
65687         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65688         if compiling pedantically with GCC, unless it's C99 or later.
65689         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65690         it mishandles gcc -ansi -pedantic as well.
65691         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65692         if gcc -pedantic.
65693         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65694         initializers for struct if -pedantic, unless it's C99 or later.
65695
65696 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65697
65698         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65699         Don't close an fd more than once. Identical atimes indicate
65700         success, not failure.
65701
65702 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65703
65704         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65705
65706 2006-11-23  Jim Meyering  <jim@meyering.net>
65707
65708         * build-aux/announce-gen: New file.  From coreutils.
65709
65710 2006-11-22  Jim Meyering  <jim@meyering.net>
65711
65712         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65713         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65714         (fts_read): Use a temporary to narrow the overused st_size member
65715         before using it in a switch statement.  Reported by Matthew Woehlke.
65716
65717         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65718         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65719
65720 2006-11-20  Bruno Haible  <bruno@clisp.org>
65721
65722         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65723         changequote instead of pairs of brackets.
65724         Reported by Andreas Schwab <schwab@suse.de>.
65725
65726 2006-11-21  Jim Meyering  <jim@meyering.net>
65727
65728         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65729         so as to remain compatible with older compilers.
65730         Patch from Michael Deutschmann.
65731
65732 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65733
65734         * MODULES.html.sh (File system functions): Add openat.
65735
65736         * lib/openat.h (rpl_fstatat): New macro, if
65737         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65738         (fstatat): Define to rpl_fstatat under the same conditions,
65739         unless COMPILING_FSTATAT.
65740         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65741         seems to have the bug.
65742         * lib/fstatat.c: New file.
65743         * modules/openat (Files): Add it.
65744
65745 2006-11-20  Bruno Haible  <bruno@clisp.org>
65746
65747         * Makefile: New file.
65748
65749 2006-11-20  Jim Meyering  <jim@meyering.net>
65750
65751         The beginnings of syntax-related checks for gnulib.
65752         * lib/Makefile: New file.
65753         * lib/t-idcache: New script.  Ensure that the two halves of
65754         idcache.c stay in sync.
65755
65756         * lib/idcache.c: Adjust comments in user- and group- portions to
65757         be more accurate, and to be consistent with one another.
65758
65759 2006-11-20  Jim Meyering  <jim@meyering.net>
65760
65761         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65762         continue using the flexible array member (thus, this module performs
65763         half as many malloc calls), with the addition that...
65764         (getgroup, getuser): Consistently record a non-match via an empty
65765         "name" string, and map an empty string match to a NULL return value.
65766         * modules/idcache (Depends-on): Re-add flexmember.
65767
65768         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65769         (getuidbyname, getgroup, getgidbyname): Likewise.
65770
65771         Use cleaner syntax: NULL rather than 0.
65772         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65773
65774 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65777         It mishandled the case where the group was missing.
65778         Problem reported by Greg Schafer.
65779         * modules/idcache: Likewise.
65780
65781 2006-11-18  Jim Meyering  <jim@meyering.net>
65782
65783         * check-module (%exempt_header): Add exception for some
65784         conditionally-included headers.
65785
65786         * modules/i-ring (Depends-on): Add verify.
65787         (License): Change to LGPL.
65788
65789 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65792         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65793         and inttostr.h.  Use snprintf rather than uinttostr, so that
65794         LGPLed code doesn't depend on GPLed.
65795
65796 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * modules/inline (License): Change from GPL to LGPL.
65799
65800 2006-11-17  Jim Meyering  <jim@meyering.net>
65801
65802         * modules/d-type (License): Switch to LGPL.
65803
65804 2006-11-15  Bruno Haible  <bruno@clisp.org>
65805
65806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65807
65808 2006-11-15  Eric Blake  <ebb9@byu.net>
65809
65810         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65811         the module dependency.
65812
65813 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65814             Bruno Haible  <bruno@clisp.org>
65815
65816         * gnulib-tool (func_create_testdir): Add license consistency check.
65817
65818 2006-11-15  Eric Blake  <ebb9@byu.net>
65819
65820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65821         random "(cached)" in configure output.
65822
65823 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65824
65825         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65826         test for conforming inttypes.h is both announced and cached.
65827
65828         * MODULES.html.sh (seen_modules, seen_files): New variables.
65829         (func_module): Rewrite to use a few less gnulib-tool and sed
65830         invocations.  Avoid a couple of quadratic algorithms for ...
65831         (missed_modules, missed_files): ... these, with ...
65832         (func_append, func_tmpdir): ... these new functions, from
65833         gnulib-tool.  Analogously, install traps for cleanup.
65834
65835         * tests/test-gc.c (main): Remove unused variables.
65836         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65837
65838 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65839
65840         * modules/inttostr (License): Change to LGPL.
65841
65842 2006-11-14  Eric Blake  <ebb9@byu.net>
65843
65844         * modules/tempname (License): Change to LGPL.
65845
65846 2006-11-14  Eric Blake  <ebb9@byu.net>
65847
65848         * doc/functions.texi (Function Portability): *printf functions on
65849         Cygwin now understand all POSIX size specifiers.
65850
65851 2006-11-14  Bruno Haible  <bruno@clisp.org>
65852
65853         * modules/c-ctype (License): Change to LGPL.
65854
65855 2006-11-12  Bruno Haible  <bruno@clisp.org>
65856
65857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65858         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65859         for GNOME libraries, for which the include files are installed in
65860         subdirectories of $prefix/include.
65861
65862 2006-11-12  Bruno Haible  <bruno@clisp.org>
65863
65864         * m4/lib-link.m4: Require at least autoconf-2.54.
65865         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65866         name to underscores for the --with option.
65867
65868 2006-11-13  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65871         the tests directory.
65872         Reported by Ralf Wildenhues.
65873
65874 2006-11-13  Bruno Haible  <bruno@clisp.org>
65875
65876         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65877         (func_emit_initmacro_end): Undo the override here.
65878         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65879         Works around the famous automake error in coreutils.
65880
65881 2006-11-13  Eric Blake  <ebb9@byu.net>
65882
65883         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65884         element, not its node.
65885
65886 2006-11-12  Bruno Haible  <bruno@clisp.org>
65887
65888         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65889         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65890
65891 2006-11-12  Bruno Haible  <bruno@clisp.org>
65892
65893         * gnulib-tool: New option --local-symlink.
65894         (func_usage): Document it.
65895         (lsymbolic): New variable.
65896         (func_import, func_create_testdir): If --symlink was not specified,
65897         test whether --local-symlink was specified and the file comes from
65898         the local_gnulib_dir.
65899
65900 2006-11-12  Bruno Haible  <bruno@clisp.org>
65901
65902         * gnulib-tool (func_ln): New function.
65903         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65904
65905 2006-11-12  Bruno Haible  <bruno@clisp.org>
65906
65907         Finish support for source files in subdirectories.
65908         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65909         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65910         AUTOMAKE_OPTIONS.
65911         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65912
65913 2006-11-12  Bruno Haible  <bruno@clisp.org>
65914
65915         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65916         EXTRA_lib_SOURCES augmentation.
65917         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65918
65919 2006-11-12  Jim Meyering  <jim@meyering.net>
65920
65921         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65922         file descriptors.  This also averts a failure on systems with
65923         native openat support when a traversed directory lacks "x" access.
65924         * lib/fts_.h: Include "i-ring.h"
65925         (struct FTS) [fts_fd_ring]: New member.
65926         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65927         (FCHDIR): Add parentheses.
65928         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65929         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65930         When descending, rather than simply closing the previous
65931         fts_cwd_fd value, push that file descriptor onto the ring.
65932         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65933         (fts_open): Initialize the new fd_ring member.
65934         (fts_close): Clear the ring.
65935         (fts_safe_changedir): When possible, use our new fd_ring to skip
65936         the diropen and fstat and dev/ino comparison that would normally
65937         accompany a virtual `chdir ("..")'.
65938
65939         * modules/fts (Depends-on): Add i-ring.
65940         * modules/i-ring: New module.
65941         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65942         * m4/i-ring.m4: New file.
65943
65944 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65945
65946         * gnulib-tool (func_create_testdir): Fix replacement of
65947         `build-aux' in configure.ac.  Run autotools in gltests
65948         subdirectory.
65949         (func_create_testdir, func_create_megatestdir, test): There is
65950         no need for '--force' in most autotool invocations in a new
65951         tree.  Actually fail the whole test if any of the tools, or the
65952         configure or make stages fail.
65953
65954         Sync from Automake.
65955         * build-aux/gnupload: Revert last change.  Add pointer to upload
65956         instructions of the GNU Maintenance Instructions.
65957         Suggestion by Karl Berry.
65958
65959 2006-11-10  Jim Meyering  <jim@meyering.net>
65960
65961         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65962
65963 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65964
65965         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65966         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65967         (bind_textdomain_codeset) [! ENABLE_NLS]:
65968         Evaluate all the arguments.  That way, callers get compatible behavior
65969         if the arguments have side effects.  Also, it avoids some GCC
65970         diagnostics in some cases; Joel E. Denny reported problems when Bison
65971         was configured with --enable-gcc-warnigs.
65972
65973 2006-11-10  Jim Meyering  <jim@meyering.net>
65974
65975         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65976         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65977         account.
65978
65979 2006-11-10  Jim Meyering  <jim@meyering.net>
65980
65981         * modules/inline: New file/module.
65982         * modules/xalloc (Files): Remove m4/inline.m4.
65983         (Depends-on): Add inline, instead.
65984         * modules/oset: Likewise.
65985         * modules/list: Likewise.
65986
65987 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65990         Problem reported by Matthew Woehlke.
65991
65992 2006-11-09  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/tempname.c (gen_tempname): Remove variant that invokes
65995         __gen_tempname.
65996         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65997         __gen_tempname.
65998
65999 2006-11-08  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66002         to 'yes' instead of 'cross-compiling'.
66003
66004 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * lib/quotearg.h (quotearg_free): New decl.
66007         * lib/quotearg.c (quotearg_free): New function.
66008         (slot0, nslots, slotvec0, slotvec):
66009         Now file-scope so that quotearg_free can get at them.
66010
66011 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66012
66013         Sync from Automake.
66014         * build-aux/gnupload: Add missing 'gnu' to example URL.
66015         Report by Karl Berry.
66016
66017 2006-11-08  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66020         Suggested by Paul Eggert.
66021
66022 2006-11-08  Jim Meyering  <jim@meyering.net>
66023
66024         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66025         It's already included if !_LIBC.
66026         (fts_safe_changedir): Add a comment.
66027
66028 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66031         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66032         Matthew Woehlke.
66033
66034         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66035         definitions up, to avoid colliding with change below.
66036         (static_inline) [HAVE_INLINE]: New macro.
66037         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66038         Provide extern decls when !HAVE_INLINE.  Do not define unless
66039         static_inline is defined, either by us or by xmalloc.c.  Use
66040         static_inline rather than static inline.
66041         (XCALLOC): Optimize sizeof(T) = 1 case.
66042         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66043
66044 2006-11-07  Bruno Haible  <bruno@clisp.org>
66045
66046         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66048         AC_C_INLINE.
66049         * modules/xalloc (Files): Add m4/inline.m4.
66050
66051 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66052
66053         * README: Fix typo.
66054         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66055         (Miscellanous Notes): ...from this.
66056
66057 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66060         Mention that offsetof should be used instead of sizeof.
66061         From Bruno Haible.
66062
66063 2006-11-07  Bruno Haible  <bruno@clisp.org>
66064
66065         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66066
66067 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66070         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66071         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66072         (gl_tree_add_before, gl_tree_add_after):
66073         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66074         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66075         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66076         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66077         (gl_linked_add_after, gl_linked_add_at): Likewise.
66078         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66079         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66080         (gl_tree_add_before, gl_tree_add_after): Likewise.
66081         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66082         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66083         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66084
66085 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66086
66087         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66088
66089 2006-11-06  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/inline.m4: New file.
66092         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66093         * modules/list (Files): Add m4/inline.m4.
66094         * modules/oset (Files): Likewise.
66095
66096 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * lib/idcache.c: Include <stddef.h>, for offsetof.
66099         (struct userid.name): Change from char * to a flexible array member.
66100         All uses changed.
66101         * modules/idcache (Depends-on): Add flexmember.
66102
66103         * MODULES.html.sh (Core language properties): New module flexmember.
66104         * modules/flexmember, m4/flexmember.m4: New files.
66105
66106         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66107         inline functions that are identical with the old xnmalloc_inline,
66108         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66109         that we can avoid some unnecessary integer multiplications and
66110         divisions in the common case where the element size is known at
66111         compile time.
66112         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66113         needed.
66114         (xnboundedmalloc): Remove.
66115         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66116         arguments, for consistency with rest of this header.
66117         (xcharalloc): Rewrite using XNMALLOC.
66118         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66119         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66120         versions have been moved to lib/xalloc.h and renamed to be the
66121         non-*_inline versions.
66122         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66123         and xnrealloc functions, since those functions are now inline and
66124         now call us.
66125         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66126         renaming described above.
66127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66128         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66129         captures the dependency in AC_C_INLINE.
66130
66131         New module canonicalize-lgpl, proposed by Charles Wilson in
66132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66133         with a few small changes afterwards.
66134         * MODULES.html.sh (File system functions): New module
66135         canonicalize-lgpl.
66136         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66137         and canonicalize_file_name.
66138         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66139         * modules/canonicalize-lgpl: New files.
66140
66141 2006-11-05  Bruno Haible  <bruno@clisp.org>
66142
66143         * gnulib-tool (func_import, func_create_testdir): Create directories
66144         also for files in subdirectories of lib/.
66145
66146 2006-11-05  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66149         ANSI C compliant.
66150
66151 2006-11-03  Bruno Haible  <bruno@clisp.org>
66152
66153         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66154         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66155         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66156         (xnboundedmalloc): New inline function.
66157         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66158         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66159         xmalloc.
66160         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66161         xmalloc.
66162         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66163         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66164         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66165         xmalloc.
66166         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66167         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66168         xmalloc.
66169         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66170         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66171         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66172         xmalloc.
66173         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66174         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66175         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66176         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66177         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66178         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66179         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66180
66181 2006-11-03  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/c-ctype.h [C++]: Define functions without name mangling.
66184         * lib/fwriteerror.h [C++]: Likewise.
66185         * lib/gcd.h [C++]: Likewise.
66186         * lib/linebreak.h [C++]: Likewise.
66187
66188 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66191         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66192         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66194         Check for functions and headers just once.
66195         Check for declaration of canonicalize_file_name.
66196         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66197
66198 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66199
66200         * gnulib-tool (func_import): Fix typo in actioncmd.
66201
66202 2006-11-02  Bruno Haible  <bruno@clisp.org>
66203
66204         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66205         newline sequence in the Makefile.am snippet as a space, like "make"
66206         does.
66207         Reported by Roger Persson <perrog@gmail.com>.
66208
66209 2006-11-01  Bruno Haible  <bruno@clisp.org>
66210
66211         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66212         already declared in <string.h>.
66213         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66214
66215 2006-11-01  Bruno Haible  <bruno@clisp.org>
66216
66217         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66218         * lib/strcase.h: Include <string.h>.
66219         (strcasecmp): Define to rpl_strcasecmp here.
66220
66221 2006-11-01  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66224
66225 2006-11-01  Eric Blake  <ebb9@byu.net>
66226
66227         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66228
66229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66230
66231 2006-10-29  Bruno Haible  <bruno@clisp.org>
66232
66233         Make it compile in C++ mode.
66234         * lib/full-write.c (full_rw): Add a cast.
66235
66236 2006-11-01  Bruno Haible  <bruno@clisp.org>
66237
66238         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66239         be POSIX compliant.
66240         Reported by Roger Persson <perrog@gmail.com>.
66241
66242 2006-11-01  Eric Blake  <ebb9@byu.net>
66243
66244         * lib/getopt_.h: Fix comments.
66245
66246 2006-10-31  Eric Blake  <ebb9@byu.net>
66247
66248         * modules/tmpdir (Depends-on): Add sys_stat.
66249         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66250         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66251         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66252         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66253         tempname.
66254
66255 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         Avoid some C++ diagnostics reported by Bruno Haible.
66258         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66259         xmalloc.
66260         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66261         (struct slotvec): Move to top level.
66262         (quotearg_n_options): Rewrite to avoid xmalloc.
66263         * lib/xalloc.h (xcharalloc): New function.
66264         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66265         [defined __cplusplus]: Add function template that provides result
66266         type propagation.  This part of the change is from Bruno Haible.
66267
66268 2006-10-29  Bruno Haible  <bruno@clisp.org>
66269
66270         Make it compile in C++ mode.
66271         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66272         * lib/strnlen1.c (strnlen1): Cast memchr result.
66273         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66274         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66275         (create_temp_dir): Rename local variable 'template'.
66276         (compile_csharp_using_sscli): Add cast.
66277         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66278         * lib/findprog.c (find_in_path): Likewise.
66279         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66280         * lib/wait-process.c (register_slave_subprocess): Likewise.
66281
66282 2006-10-22  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/tsearch: New file.
66285         * lib/tsearch.h: New file.
66286         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66287         * m4/tsearch.m4: New file.
66288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66289
66290 2006-10-29  Eric Blake  <ebb9@byu.net>
66291
66292         * lib/arcfour.c: Assume config.h.
66293         * lib/arctwo.c: Likewise.
66294         * lib/base64.c: Likewise.
66295         * lib/check-version.c: Likewise.
66296         * lib/crc.c: Likewise.
66297         * lib/des.c: Likewise.
66298         * lib/gc-gnulib.c: Likewise.
66299         * lib/gc-libgcrypt.c: Likewise.
66300         * lib/gc-pbkdf2-sha1.c: Likewise.
66301         * lib/getaddrinfo.c: Likewise.
66302         * lib/getdelim.c: Likewise.
66303         * lib/getline.c: Likewise.
66304         * lib/hmac-md5.c: Likewise.
66305         * lib/hmac-sha1.c: Likewise.
66306         * lib/iconvme.c: Likewise.
66307         * lib/md2.c: Likewise.
66308         * lib/md4.c: Likewise.
66309         * lib/memxor.c: Likewise.
66310         * lib/read-file.c: Likewise.
66311         * lib/readline.c: Likewise.
66312         * lib/rijndael-alg-fst.c: Likewise.
66313         * lib/rijndael-api-fst.c: Likewise.
66314         * lib/xgetdomainname.c: Likewise.
66315
66316 2006-10-28  Eric Blake  <ebb9@byu.net>
66317
66318         * lib/xstrndup.c: Assume config.h.
66319
66320 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66323         stat-macros.h is now for our own macros, whereas stat_h is for
66324         macros in the <sys/stat.h> name space.
66325         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66326         (STAT_MACROS_H): Remove.
66327         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66328         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66329         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66330         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66331         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66332         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66333         Move these macros to ...
66334         * lib/stat_.h: here.  Don't include stat-macros.h.
66335         * lib/canonicalize.c: Don't include stat-macros.h.
66336         * lib/chown.c: Likewise.
66337         * lib/euidaccess.c: Likewise.
66338         * lib/file-type.c: Likewise.
66339         * lib/filemode.c: Likewise.
66340         * lib/glob.c: Likewise.
66341         * lib/isapipe.c: Likewise.
66342         * lib/lchown.c: Likewise.
66343         * lib/lstat.c: Likewise.
66344         * lib/mkdir-p.c: Likewise.
66345         * lib/rmdir.c: Likewise.
66346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66348         unless mkdir isn't declared, to speed up 'configure'.
66349         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66350         would define all the S_* symbols.
66351         * modules/canonicalize (Depends-on):
66352         Depend on sys_stat, not stat-macros.
66353         * modules/chown: Likewise.
66354         * modules/euidaccess: Likewise.
66355         * modules/filemode: Likewise.
66356         * modules/file-type: Likewise.
66357         * modules/glob: Likewise.
66358         * modules/isapipe: Likewise.
66359         * modules/lchown: Likewise.
66360         * modules/lstat: Likewise.
66361         * modules/mkancesdirs: Likewise.
66362         * modules/rmdir: Likewise.
66363         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66364         * modules/modechange: Likewise.
66365         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66366         (configure.ac): Remove gl_STAT_MACROS.
66367         * modules/sys_stat (Depends-on): Remove stat-macros.
66368
66369 2006-10-27  Bruno Haible  <bruno@clisp.org>
66370
66371         * m4/signed.m4: Remove file.
66372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66373         invocation.
66374         * modules/vasnprintf (Files): Remove m4/signed.m4.
66375
66376 2006-10-27  Bruno Haible  <bruno@clisp.org>
66377
66378         Update to GNU gettext 0.16.
66379         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66380         m4/inttypes-h.m4, m4/signed.m4.
66381         * m4/gettext.m4: Update to GNU gettext 0.16.
66382         * m4/intl.m4: New file, from GNU gettext.
66383         * m4/intldir.m4: New file, from GNU gettext.
66384         * config/srclist.txt: Update
66385
66386 2006-10-27  Eric Blake  <ebb9@byu.net>
66387
66388         * MODULES.html.sh: Document tempname.
66389         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66390         dependencies.
66391         (Files): Move lib/tempname.c...
66392         * modules/tempname: ...to this new module.
66393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66394         (gl_PREREQ_TEMPNAME): Move...
66395         * m4/tempname.m4: ...to this new file.
66396         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66397         * modules/sys_stat (Depends-on): Add stat-macros.
66398         * lib/stat_.h (includes): Pick up stat macros.
66399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66400         if stat macros are broken.
66401         * lib/tempname.c (includes): No need to include "stat-macros.h".
66402         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66403         (direxists, __path_search) [!_LIBC]: Don't compile these in
66404         gnulib; the tmpdir module covers that.
66405         * lib/tempname.h: New file.
66406
66407 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * COPYING: Explain how gnulib-tool converts licence headers.
66410         Almost all wording by Eric Blake.
66411
66412 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * lib/mbchar.h (is_basic_table): Make read-only.
66415         * lib/mbchar.c (is_basic_table): Likewise.
66416         Reported by John Darrington.
66417
66418 2006-10-25  Bruno Haible  <bruno@clisp.org>
66419
66420         * lib/progname.h (set_program_name): Undefine before defining.
66421
66422 2006-10-25  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66425         false for non-gcc C++ compilers.
66426         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66427
66428 2006-10-24  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66431         iconv implementations like Irix iconv.
66432
66433 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * modules/vararrays: New file.
66436         * m4/vararrays.m4: New file, taken from diffutils.
66437         * MODULES.html.sh: New module vararrays.
66438
66439 2006-10-24  Karl Berry  <karl@gnu.org>
66440
66441         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66442         Don't call GNU Unix.
66443
66444 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66445
66446         * users.txt: Add Libtool.
66447
66448         Sync from Libtool:
66449
66450         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66453         to gnulib's policy of including config.h unconditionally.
66454
66455 2006-10-24  Bruno Haible  <bruno@clisp.org>
66456
66457         * modules/wcwidth (Files): Add m4/wint_t.m4.
66458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66459         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66460
66461 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66464         to pacify GCC with some -W flags enabled.  Problem reported by
66465         Bruno Haible.
66466
66467 2006-10-24  Jim Meyering  <jim@meyering.net>
66468
66469         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66470         Reported by Karl Berry.
66471
66472 2006-10-23  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66475
66476 2006-10-24  Bruno Haible  <bruno@clisp.org>
66477
66478         * lib/gl_list.h: Use C comment style, not C++ comment style.
66479
66480 2006-10-23  Eric Blake  <ebb9@byu.net>
66481
66482         * lib/getaddrinfo.c (includes): Add missing include.
66483
66484 2006-10-23  Bruno Haible  <bruno@clisp.org>
66485             Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         Ability to rename obstack_free.
66488         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66489         obstack_free.
66490         (obstack_free): Invoke the __obstack_free macro.
66491         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66492
66493 2006-10-23  Bruno Haible  <bruno@clisp.org>
66494             Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66497         __argc, __argv from the declaration. (They are defined as macros on
66498         mingw.)
66499
66500 2006-10-22  Bruno Haible  <bruno@clisp.org>
66501
66502         * doc/gnulib-intro.texi: New file.
66503         * doc/gnulib.texi: Include it.
66504
66505 2006-10-21  Bruno Haible  <bruno@clisp.org>
66506
66507         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66508         "Introduction", "Miscellanous Notes", "Particular Modules".
66509
66510 2006-10-21  Bruno Haible  <bruno@clisp.org>
66511
66512         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66513         Change mostlyclean-local rule to avoid sh syntax error from bash
66514         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66515
66516 2006-10-23  Jim Meyering  <jim@meyering.net>
66517
66518         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66519         in place of snprintf.
66520
66521         * modules/inttostr (Files): Add lib/uinttostr.c.
66522         * lib/uinttostr.c (inttostr): New file/function.
66523         * lib/inttostr.h (uinttostr): Declare.
66524         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66525         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66526         Add uinttostr.
66527         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66528
66529 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/canonicalize.c (ELOOP): Define if not already defined.
66532         Problem reported by Bruno Haible in
66533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66534
66535 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66538         Problem reported by Perry Smith and Ville Laurikari.
66539
66540         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66541         uses.
66542
66543 2006-10-19  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66546         for mingw.
66547
66548 2006-10-19  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66551         Needed for mingw.
66552
66553 2006-10-19  Bruno Haible  <bruno@clisp.org>
66554
66555         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66556
66557 2006-10-19  Bruno Haible  <bruno@clisp.org>
66558
66559         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66560         it.
66561
66562 2006-10-19  Bruno Haible  <bruno@clisp.org>
66563
66564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66565         invocation.
66566
66567 2006-10-19  Bruno Haible  <bruno@clisp.org>
66568
66569         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66570         mountlist by default.
66571
66572 2006-10-16  Bruno Haible  <bruno@clisp.org>
66573
66574         * lib/c-strstr.c: Include c-strstr.h.
66575
66576 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66577
66578         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66579         in a slash.
66580
66581 2006-10-18  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/lock.h [C++]: Wrap definitions in extern "C".
66584
66585 2006-10-18  Bruno Haible  <bruno@clisp.org>
66586
66587         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66588         gl_LIBOBJS list.
66589
66590 2006-10-18  Bruno Haible  <bruno@clisp.org>
66591
66592         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66593
66594 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * lib/xstrtol.h: Include gettext.h.
66597         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66598         Problem reported by Eric Blake.
66599         * modules/xstrtol (Depends-on): Add gettext-h.
66600
66601 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66602
66603         * lib/strftime.c (advance): New macro.
66604         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66605         incomplete type, so you can't add 0 to it.  Problem and patch
66606         reported by Eelco Dolstra for dietlibc.
66607
66608 2006-10-18  Jim Meyering  <jim@meyering.net>
66609
66610         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66611         type for a local, and rename it: s/up/user_proc/.
66612
66613 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66614
66615         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66616         READ_UTMP_USER_PROCESS.
66617         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66618
66619 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66622         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66623
66624 2006-10-17  Eric Blake  <ebb9@byu.net>
66625
66626         * lib/sigprocmask.c (sigprocmask): Fix typo.
66627
66628         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66629
66630         * modules/clean-temp (Makefile.am): Don't add to make output...
66631         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66632         config.h.
66633
66634 2006-10-17  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66637         differently if DEFAULT_TEXT_DOMAIN is set.
66638
66639 2006-10-16  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/clean-temp.c: Include fwriteerror.h.
66642
66643 2006-10-16  Bruno Haible  <bruno@clisp.org>
66644
66645         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66646
66647 2006-10-16  Bruno Haible  <bruno@clisp.org>
66648
66649         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66650         * lib/sigprocmask.h: Include <sys/types.h>.
66651         (sigset_t): Use the system's definition if present.
66652
66653 2006-10-17  Eric Blake  <ebb9@byu.net>
66654
66655         * lib/xvasprintf.c (includes): Assume config.h.
66656         * lib/xasprintf.c (includes): Likewise.
66657
66658 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66661         at least as wide as intmax_t.
66662
66663 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66664
66665         (Imported from Automake.)
66666         * build-aux/gnupload: Update to version 1.1 of directive file.
66667
66668 2006-10-16  Eric Blake  <ebb9@byu.net>
66669
66670         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66671         match Automake 1.10a.
66672
66673 2006-10-14  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/sigprocmask: New file.
66676         * lib/sigprocmask.h: New file.
66677         * lib/sigprocmask.c: New file.
66678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66679         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66680         request sigprocmask.o.
66681         (gl_PREREQ_SIGPROCMASK): New macro.
66682         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66683         (Depends-on): Add sigprocmask.
66684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66685         gt_SIGNALBLOCKING. Test for 'raise' only once.
66686         * lib/fatal-signal.c: Include sigprocmask.h.
66687         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66688         unblock_fatal_signals): Define always.
66689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66690         sigprocmask.
66691
66692 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         Sync from Automake.
66695         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66696         which incorrectly sets the mode of an existing destination
66697         directory.  In some cases the unpatched install-sh could do the
66698         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66699         system.  We hope this is rare in practice, but it's clearly worth
66700         fixing.  Problem reported by Alex Unleashed in
66701         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66702         Also, don't bother to check for -m bugs unless we're using -m;
66703         suggested by Stepan Kasal.
66704
66705 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66706
66707         Sync from Automake.
66708         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66709         `-c' flag, so they appear at the same position as in %FASTDEP%
66710         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66711         which ignores unknown options only after the first non-option.
66712         Bug report against M4 by Nelson H. F. Beebe.
66713
66714 2006-10-13  Jim Meyering  <jim@meyering.net>
66715
66716         Fix a bug in yesterday's change.
66717         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66718         p->fts_statp->st_dev would be used uninitialized.
66719         Ensures that we always call fts_stat on the very first entry.
66720         Miklos Szeredi reported that find -xdev stopped working.
66721
66722 2006-10-12  Bruno Haible  <bruno@clisp.org>
66723
66724         * gnulib-tool (func_get_automake_snippet): Append an automatically
66725         computed EXTRA_DIST augmentation.
66726         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66727         * modules/alloca-opt (Makefile.am): Likewise.
66728         * modules/allocsa (Makefile.am): Likewise.
66729         * modules/arcfour (Makefile.am): Likewise.
66730         * modules/arctwo (Makefile.am): Likewise.
66731         * modules/argmatch (Makefile.am): Likewise.
66732         * modules/argz (Makefile.am): Likewise.
66733         * modules/atexit (Makefile.am): Likewise.
66734         * modules/backupfile (Makefile.am): Likewise.
66735         * modules/byteswap (Makefile.am): Likewise.
66736         * modules/c-strtod (Makefile.am): Likewise.
66737         * modules/c-strtold (Makefile.am): Likewise.
66738         * modules/calloc (Makefile.am): Likewise.
66739         * modules/canon-host (Makefile.am): Likewise.
66740         * modules/canonicalize (Makefile.am): Likewise.
66741         * modules/chdir-long (Makefile.am): Likewise.
66742         * modules/chdir-safer (Makefile.am): Likewise.
66743         * modules/check-version (Makefile.am): Likewise.
66744         * modules/chown (Makefile.am): Likewise.
66745         * modules/cloexec (Makefile.am): Likewise.
66746         * modules/close-stream (Makefile.am): Likewise.
66747         * modules/closeout (Makefile.am): Likewise.
66748         * modules/crc (Makefile.am): Likewise.
66749         * modules/csharpexec (Makefile.am): Likewise.
66750         * modules/cycle-check (Makefile.am): Likewise.
66751         * modules/des (Makefile.am): Likewise.
66752         * modules/dev-ino (Makefile.am): Likewise.
66753         * modules/dirfd (Makefile.am): Likewise.
66754         * modules/dirname (Makefile.am): Likewise.
66755         * modules/dup2 (Makefile.am): Likewise.
66756         * modules/eealloc (Makefile.am): Likewise.
66757         * modules/error (Makefile.am): Likewise.
66758         * modules/euidaccess (Makefile.am): Likewise.
66759         * modules/exclude (Makefile.am): Likewise.
66760         * modules/exitfail (Makefile.am): Likewise.
66761         * modules/fcntl-safer (Makefile.am): Likewise.
66762         * modules/fcntl (Makefile.am): Likewise.
66763         * modules/file-type (Makefile.am): Likewise.
66764         * modules/fileblocks (Makefile.am): Likewise.
66765         * modules/filemode (Makefile.am): Likewise.
66766         * modules/filenamecat (Makefile.am): Likewise.
66767         * modules/fnmatch (Makefile.am): Likewise.
66768         * modules/fopen-safer (Makefile.am): Likewise.
66769         * modules/fpending (Makefile.am): Likewise.
66770         * modules/fprintftime (Makefile.am): Likewise.
66771         * modules/free (Makefile.am): Likewise.
66772         * modules/fsusage (Makefile.am): Likewise.
66773         * modules/ftruncate (Makefile.am): Likewise.
66774         * modules/fts (Makefile.am): Likewise.
66775         * modules/gc-arcfour (Makefile.am): Likewise.
66776         * modules/gc-des (Makefile.am): Likewise.
66777         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66778         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66779         * modules/gc-md4 (Makefile.am): Likewise.
66780         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66781         * modules/gc-sha1 (Makefile.am): Likewise.
66782         * modules/gc (Makefile.am): Likewise.
66783         * modules/getaddrinfo (Makefile.am): Likewise.
66784         * modules/getcwd (Makefile.am): Likewise.
66785         * modules/getdelim (Makefile.am): Likewise.
66786         * modules/getdomainname (Makefile.am): Likewise.
66787         * modules/getgroups (Makefile.am): Likewise.
66788         * modules/gethostname (Makefile.am): Likewise.
66789         * modules/gethrxtime (Makefile.am): Likewise.
66790         * modules/getline (Makefile.am): Likewise.
66791         * modules/getloadavg (Makefile.am): Likewise.
66792         * modules/getlogin_r (Makefile.am): Likewise.
66793         * modules/getndelim2 (Makefile.am): Likewise.
66794         * modules/getopt (Makefile.am): Likewise.
66795         * modules/getpagesize (Makefile.am): Likewise.
66796         * modules/getpass-gnu (Makefile.am): Likewise.
66797         * modules/getpass (Makefile.am): Likewise.
66798         * modules/getsubopt (Makefile.am): Likewise.
66799         * modules/gettime (Makefile.am): Likewise.
66800         * modules/gettimeofday (Makefile.am): Likewise.
66801         * modules/getugroups (Makefile.am): Likewise.
66802         * modules/getusershell (Makefile.am): Likewise.
66803         * modules/glob (Makefile.am): Likewise.
66804         * modules/group-member (Makefile.am): Likewise.
66805         * modules/hard-locale (Makefile.am): Likewise.
66806         * modules/hash (Makefile.am): Likewise.
66807         * modules/hmac-md5 (Makefile.am): Likewise.
66808         * modules/hmac-sha1 (Makefile.am): Likewise.
66809         * modules/human (Makefile.am): Likewise.
66810         * modules/idcache (Makefile.am): Likewise.
66811         * modules/imaxabs (Makefile.am): Likewise.
66812         * modules/imaxdiv (Makefile.am): Likewise.
66813         * modules/inet_ntop (Makefile.am): Likewise.
66814         * modules/inet_pton (Makefile.am): Likewise.
66815         * modules/intprops (Makefile.am): Likewise.
66816         * modules/inttostr (Makefile.am): Likewise.
66817         * modules/inttypes (Makefile.am): Likewise.
66818         * modules/isapipe (Makefile.am): Likewise.
66819         * modules/javaversion (Makefile.am): Likewise.
66820         * modules/lchmod (Makefile.am): Likewise.
66821         * modules/lchown (Makefile.am): Likewise.
66822         * modules/localcharset (Makefile.am): Likewise.
66823         * modules/long-options (Makefile.am): Likewise.
66824         * modules/lstat (Makefile.am): Likewise.
66825         * modules/malloc (Makefile.am): Likewise.
66826         * modules/mathl (Makefile.am): Likewise.
66827         * modules/mbchar (Makefile.am): Likewise.
66828         * modules/md2 (Makefile.am): Likewise.
66829         * modules/md4 (Makefile.am): Likewise.
66830         * modules/md5 (Makefile.am): Likewise.
66831         * modules/memcasecmp (Makefile.am): Likewise.
66832         * modules/memchr (Makefile.am): Likewise.
66833         * modules/memcmp (Makefile.am): Likewise.
66834         * modules/memcoll (Makefile.am): Likewise.
66835         * modules/memcpy (Makefile.am): Likewise.
66836         * modules/memmem (Makefile.am): Likewise.
66837         * modules/memmove (Makefile.am): Likewise.
66838         * modules/mempcpy (Makefile.am): Likewise.
66839         * modules/memrchr (Makefile.am): Likewise.
66840         * modules/memset (Makefile.am): Likewise.
66841         * modules/memxor (Makefile.am): Likewise.
66842         * modules/mkancesdirs (Makefile.am): Likewise.
66843         * modules/mkdir-p (Makefile.am): Likewise.
66844         * modules/mkdir (Makefile.am): Likewise.
66845         * modules/mkdtemp (Makefile.am): Likewise.
66846         * modules/mkstemp (Makefile.am): Likewise.
66847         * modules/mktime (Makefile.am): Likewise.
66848         * modules/modechange (Makefile.am): Likewise.
66849         * modules/mountlist (Makefile.am): Likewise.
66850         * modules/nanosleep (Makefile.am): Likewise.
66851         * modules/obstack (Makefile.am): Likewise.
66852         * modules/openat (Makefile.am): Likewise.
66853         * modules/pagealign_alloc (Makefile.am): Likewise.
66854         * modules/pathmax (Makefile.am): Likewise.
66855         * modules/physmem (Makefile.am): Likewise.
66856         * modules/poll (Makefile.am): Likewise.
66857         * modules/posixtm (Makefile.am): Likewise.
66858         * modules/posixver (Makefile.am): Likewise.
66859         * modules/putenv (Makefile.am): Likewise.
66860         * modules/quote (Makefile.am): Likewise.
66861         * modules/quotearg (Makefile.am): Likewise.
66862         * modules/raise (Makefile.am): Likewise.
66863         * modules/read-file (Makefile.am): Likewise.
66864         * modules/readline (Makefile.am): Likewise.
66865         * modules/readlink (Makefile.am): Likewise.
66866         * modules/readtokens (Makefile.am): Likewise.
66867         * modules/readutmp (Makefile.am): Likewise.
66868         * modules/realloc (Makefile.am): Likewise.
66869         * modules/regex (Makefile.am): Likewise.
66870         * modules/rename-dest-slash (Makefile.am): Likewise.
66871         * modules/rename (Makefile.am): Likewise.
66872         * modules/rijndael (Makefile.am): Likewise.
66873         * modules/rmdir (Makefile.am): Likewise.
66874         * modules/rpmatch (Makefile.am): Likewise.
66875         * modules/safe-read (Makefile.am): Likewise.
66876         * modules/safe-write (Makefile.am): Likewise.
66877         * modules/same-inode (Makefile.am): Likewise.
66878         * modules/same (Makefile.am): Likewise.
66879         * modules/save-cwd (Makefile.am): Likewise.
66880         * modules/savedir (Makefile.am): Likewise.
66881         * modules/setenv (Makefile.am): Likewise.
66882         * modules/settime (Makefile.am): Likewise.
66883         * modules/sha1 (Makefile.am): Likewise.
66884         * modules/sig2str (Makefile.am): Likewise.
66885         * modules/snprintf (Makefile.am): Likewise.
66886         * modules/stat-macros (Makefile.am): Likewise.
66887         * modules/stat-time (Makefile.am): Likewise.
66888         * modules/stdbool (Makefile.am): Likewise.
66889         * modules/stdint (Makefile.am): Likewise.
66890         * modules/stdlib-safer (Makefile.am): Likewise.
66891         * modules/stpcpy (Makefile.am): Likewise.
66892         * modules/stpncpy (Makefile.am): Likewise.
66893         * modules/strcase (Makefile.am): Likewise.
66894         * modules/strcasestr (Makefile.am): Likewise.
66895         * modules/strchrnul (Makefile.am): Likewise.
66896         * modules/strcspn (Makefile.am): Likewise.
66897         * modules/strdup (Makefile.am): Likewise.
66898         * modules/strerror (Makefile.am): Likewise.
66899         * modules/strftime (Makefile.am): Likewise.
66900         * modules/strndup (Makefile.am): Likewise.
66901         * modules/strnlen (Makefile.am): Likewise.
66902         * modules/strpbrk (Makefile.am): Likewise.
66903         * modules/strsep (Makefile.am): Likewise.
66904         * modules/strstr (Makefile.am): Likewise.
66905         * modules/strtod (Makefile.am): Likewise.
66906         * modules/strtoimax (Makefile.am): Likewise.
66907         * modules/strtok_r (Makefile.am): Likewise.
66908         * modules/strtol (Makefile.am): Likewise.
66909         * modules/strtoll (Makefile.am): Likewise.
66910         * modules/strtoul (Makefile.am): Likewise.
66911         * modules/strtoull (Makefile.am): Likewise.
66912         * modules/strtoumax (Makefile.am): Likewise.
66913         * modules/strverscmp (Makefile.am): Likewise.
66914         * modules/sys_socket (Makefile.am): Likewise.
66915         * modules/sys_stat (Makefile.am): Likewise.
66916         * modules/sysexits (Makefile.am): Likewise.
66917         * modules/time_r (Makefile.am): Likewise.
66918         * modules/timegm (Makefile.am): Likewise.
66919         * modules/timespec (Makefile.am): Likewise.
66920         * modules/tmpfile-safer (Makefile.am): Likewise.
66921         * modules/trim (Makefile.am): Likewise.
66922         * modules/unistd-safer (Makefile.am): Likewise.
66923         * modules/unlinkdir (Makefile.am): Likewise.
66924         * modules/unlocked-io (Makefile.am): Likewise.
66925         * modules/userspec (Makefile.am): Likewise.
66926         * modules/utime (Makefile.am): Likewise.
66927         * modules/utimecmp (Makefile.am): Likewise.
66928         * modules/utimens (Makefile.am): Likewise.
66929         * modules/vasnprintf (Makefile.am): Likewise.
66930         * modules/vasprintf (Makefile.am): Likewise.
66931         * modules/vsnprintf (Makefile.am): Likewise.
66932         * modules/xalloc (Makefile.am): Likewise.
66933         * modules/xgetcwd (Makefile.am): Likewise.
66934         * modules/xnanosleep (Makefile.am): Likewise.
66935         * modules/xreadlink (Makefile.am): Likewise.
66936         * modules/xstrtod (Makefile.am): Likewise.
66937         * modules/xstrtol (Makefile.am): Likewise.
66938         * modules/xstrtold (Makefile.am): Likewise.
66939         * modules/yesno (Makefile.am): Likewise.
66940         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66941
66942 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * modules/error (Makefile.am): Distribute files through
66945         EXTRA_DIST, not lib_SOURCES.
66946
66947 2006-10-12  Eric Blake  <ebb9@byu.net>
66948
66949         * modules/error (Makefile.am): Distribute files in /lib.
66950         * modules/obstack (Makefile.am): Likewise.
66951
66952 2006-10-12  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/acl (Makefile.am): Distribute all files in lib/ through
66955         EXTRA_DIST.
66956         * modules/arcfour (Makefile.am): Likewise.
66957         * modules/arctwo (Makefile.am): Likewise.
66958         * modules/argmatch (Makefile.am): Likewise.
66959         * modules/argz (Makefile.am): Likewise.
66960         * modules/atexit (Makefile.am): Likewise.
66961         * modules/backupfile (Makefile.am): Likewise.
66962         * modules/c-strtod (Makefile.am): Likewise.
66963         * modules/c-strtold (Makefile.am): Likewise.
66964         * modules/calloc (Makefile.am): Likewise.
66965         * modules/canon-host (Makefile.am): Likewise.
66966         * modules/canonicalize (Makefile.am): Likewise.
66967         * modules/chdir-long (Makefile.am): Likewise.
66968         * modules/chdir-safer (Makefile.am): Likewise.
66969         * modules/check-version (Makefile.am): Likewise.
66970         * modules/chown (Makefile.am): Likewise.
66971         * modules/cloexec (Makefile.am): Likewise.
66972         * modules/close-stream (Makefile.am): Likewise.
66973         * modules/closeout (Makefile.am): Likewise.
66974         * modules/crc (Makefile.am): Likewise.
66975         * modules/cycle-check (Makefile.am): Likewise.
66976         * modules/des (Makefile.am): Likewise.
66977         * modules/dirfd (Makefile.am): Likewise.
66978         * modules/dirname (Makefile.am): Likewise.
66979         * modules/dup2 (Makefile.am): Likewise.
66980         * modules/euidaccess (Makefile.am): Likewise.
66981         * modules/exclude (Makefile.am): Likewise.
66982         * modules/exitfail (Makefile.am): Likewise.
66983         * modules/fcntl-safer (Makefile.am): Likewise.
66984         * modules/file-type (Makefile.am): Likewise.
66985         * modules/fileblocks (Makefile.am): Likewise.
66986         * modules/filemode (Makefile.am): Likewise.
66987         * modules/filenamecat (Makefile.am): Likewise.
66988         * modules/fnmatch (Makefile.am): Likewise.
66989         * modules/fopen-safer (Makefile.am): Likewise.
66990         * modules/fpending (Makefile.am): Likewise.
66991         * modules/fprintftime (Makefile.am): Likewise.
66992         * modules/free (Makefile.am): Likewise.
66993         * modules/fsusage (Makefile.am): Likewise.
66994         * modules/ftruncate (Makefile.am): Likewise.
66995         * modules/fts (Makefile.am): Likewise.
66996         * modules/gc (Makefile.am): Likewise.
66997         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66998         * modules/getaddrinfo (Makefile.am): Likewise.
66999         * modules/getcwd (Makefile.am): Likewise.
67000         * modules/getdelim (Makefile.am): Likewise.
67001         * modules/getdomainname (Makefile.am): Likewise.
67002         * modules/getgroups (Makefile.am): Likewise.
67003         * modules/gethostname (Makefile.am): Likewise.
67004         * modules/gethrxtime (Makefile.am): Likewise.
67005         * modules/getline (Makefile.am): Likewise.
67006         * modules/getloadavg (Makefile.am): Likewise.
67007         * modules/getlogin_r (Makefile.am): Likewise.
67008         * modules/getopt (Makefile.am): Likewise.
67009         * modules/getpass (Makefile.am): Likewise.
67010         * modules/getpass-gnu (Makefile.am): Likewise.
67011         * modules/getsubopt (Makefile.am): Likewise.
67012         * modules/gettime (Makefile.am): Likewise.
67013         * modules/gettimeofday (Makefile.am): Likewise.
67014         * modules/getugroups (Makefile.am): Likewise.
67015         * modules/getusershell (Makefile.am): Likewise.
67016         * modules/glob (Makefile.am): Likewise.
67017         * modules/group-member (Makefile.am): Likewise.
67018         * modules/hard-locale (Makefile.am): Likewise.
67019         * modules/hash (Makefile.am): Likewise.
67020         * modules/hmac-md5 (Makefile.am): Likewise.
67021         * modules/hmac-sha1 (Makefile.am): Likewise.
67022         * modules/human (Makefile.am): Likewise.
67023         * modules/idcache (Makefile.am): Likewise.
67024         * modules/imaxabs (Makefile.am): Likewise.
67025         * modules/imaxdiv (Makefile.am): Likewise.
67026         * modules/inet_ntop (Makefile.am): Likewise.
67027         * modules/inet_pton (Makefile.am): Likewise.
67028         * modules/inttostr (Makefile.am): Likewise.
67029         * modules/isapipe (Makefile.am): Likewise.
67030         * modules/lchown (Makefile.am): Likewise.
67031         * modules/long-options (Makefile.am): Likewise.
67032         * modules/lstat (Makefile.am): Likewise.
67033         * modules/malloc (Makefile.am): Likewise.
67034         * modules/mathl (Makefile.am): Likewise.
67035         * modules/mbchar (Makefile.am): Likewise.
67036         * modules/md2 (Makefile.am): Likewise.
67037         * modules/md4 (Makefile.am): Likewise.
67038         * modules/md5 (Makefile.am): Likewise.
67039         * modules/memcasecmp (Makefile.am): Likewise.
67040         * modules/memchr (Makefile.am): Likewise.
67041         * modules/memcmp (Makefile.am): Likewise.
67042         * modules/memcoll (Makefile.am): Likewise.
67043         * modules/memcpy (Makefile.am): Likewise.
67044         * modules/memmem (Makefile.am): Likewise.
67045         * modules/memmove (Makefile.am): Likewise.
67046         * modules/mempcpy (Makefile.am): Likewise.
67047         * modules/memrchr (Makefile.am): Likewise.
67048         * modules/memset (Makefile.am): Likewise.
67049         * modules/memxor (Makefile.am): Likewise.
67050         * modules/mkancesdirs (Makefile.am): Likewise.
67051         * modules/mkdir (Makefile.am): Likewise.
67052         * modules/mkdir-p (Makefile.am): Likewise.
67053         * modules/mkdtemp (Makefile.am): Likewise.
67054         * modules/mkstemp (Makefile.am): Likewise.
67055         * modules/mktime (Makefile.am): Likewise.
67056         * modules/modechange (Makefile.am): Likewise.
67057         * modules/mountlist (Makefile.am): Likewise.
67058         * modules/nanosleep (Makefile.am): Likewise.
67059         * modules/openat (Makefile.am): Likewise.
67060         * modules/pagealign_alloc (Makefile.am): Likewise.
67061         * modules/physmem (Makefile.am): Likewise.
67062         * modules/poll (Makefile.am): Likewise.
67063         * modules/posixtm (Makefile.am): Likewise.
67064         * modules/posixver (Makefile.am): Likewise.
67065         * modules/putenv (Makefile.am): Likewise.
67066         * modules/quote (Makefile.am): Likewise.
67067         * modules/quotearg (Makefile.am): Likewise.
67068         * modules/raise (Makefile.am): Likewise.
67069         * modules/read-file (Makefile.am): Likewise.
67070         * modules/readline (Makefile.am): Likewise.
67071         * modules/readlink (Makefile.am): Likewise.
67072         * modules/readtokens (Makefile.am): Likewise.
67073         * modules/readutmp (Makefile.am): Likewise.
67074         * modules/realloc (Makefile.am): Likewise.
67075         * modules/regex (Makefile.am): Likewise.
67076         * modules/rename (Makefile.am): Likewise.
67077         * modules/rename-dest-slash (Makefile.am): Likewise.
67078         * modules/rijndael (Makefile.am): Likewise.
67079         * modules/rmdir (Makefile.am): Likewise.
67080         * modules/rpmatch (Makefile.am): Likewise.
67081         * modules/safe-read (Makefile.am): Likewise.
67082         * modules/safe-write (Makefile.am): Likewise.
67083         * modules/same (Makefile.am): Likewise.
67084         * modules/save-cwd (Makefile.am): Likewise.
67085         * modules/savedir (Makefile.am): Likewise.
67086         * modules/setenv (Makefile.am): Likewise.
67087         * modules/settime (Makefile.am): Likewise.
67088         * modules/sha1 (Makefile.am): Likewise.
67089         * modules/sig2str (Makefile.am): Likewise.
67090         * modules/snprintf (Makefile.am): Likewise.
67091         * modules/stdlib-safer (Makefile.am): Likewise.
67092         * modules/stpcpy (Makefile.am): Likewise.
67093         * modules/stpncpy (Makefile.am): Likewise.
67094         * modules/strcase (Makefile.am): Likewise.
67095         * modules/strcasestr (Makefile.am): Likewise.
67096         * modules/strchrnul (Makefile.am): Likewise.
67097         * modules/strcspn (Makefile.am): Likewise.
67098         * modules/strdup (Makefile.am): Likewise.
67099         * modules/strerror (Makefile.am): Likewise.
67100         * modules/strftime (Makefile.am): Likewise.
67101         * modules/strndup (Makefile.am): Likewise.
67102         * modules/strnlen (Makefile.am): Likewise.
67103         * modules/strpbrk (Makefile.am): Likewise.
67104         * modules/strsep (Makefile.am): Likewise.
67105         * modules/strstr (Makefile.am): Likewise.
67106         * modules/strtod (Makefile.am): Likewise.
67107         * modules/strtoimax (Makefile.am): Likewise.
67108         * modules/strtok_r (Makefile.am): Likewise.
67109         * modules/strtol (Makefile.am): Likewise.
67110         * modules/strtoll (Makefile.am): Likewise.
67111         * modules/strtoul (Makefile.am): Likewise.
67112         * modules/strtoull (Makefile.am): Likewise.
67113         * modules/strtoumax (Makefile.am): Likewise.
67114         * modules/strverscmp (Makefile.am): Likewise.
67115         * modules/time_r (Makefile.am): Likewise.
67116         * modules/timegm (Makefile.am): Likewise.
67117         * modules/tmpfile-safer (Makefile.am): Likewise.
67118         * modules/unistd-safer (Makefile.am): Likewise.
67119         * modules/unlinkdir (Makefile.am): Likewise.
67120         * modules/userspec (Makefile.am): Likewise.
67121         * modules/utime (Makefile.am): Likewise.
67122         * modules/utimecmp (Makefile.am): Likewise.
67123         * modules/utimens (Makefile.am): Likewise.
67124         * modules/vasnprintf (Makefile.am): Likewise.
67125         * modules/vasprintf (Makefile.am): Likewise.
67126         * modules/vsnprintf (Makefile.am): Likewise.
67127         * modules/xalloc (Makefile.am): Likewise.
67128         * modules/xgetcwd (Makefile.am): Likewise.
67129         * modules/xnanosleep (Makefile.am): Likewise.
67130         * modules/xreadlink (Makefile.am): Likewise.
67131         * modules/xstrtod (Makefile.am): Likewise.
67132         * modules/xstrtol (Makefile.am): Likewise.
67133         * modules/xstrtold (Makefile.am): Likewise.
67134         * modules/yesno (Makefile.am): Likewise.
67135
67136 2006-10-12  Jim Meyering  <jim@meyering.net>
67137
67138         * m4/getloadavg.m4: Revert the change below.
67139
67140         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67141         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67142         fail with a symlink, which is what coreutils' ./bootstrap now
67143         creates by default.
67144
67145 2006-10-12  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67148         mingw.
67149         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67150         MSVC and mingw explicitly.
67151
67152 2006-10-11  Simon Josefsson  <jas@extundo.com>
67153             Bruno Haible  <bruno@clisp.org>
67154
67155         Add support for multiple gnulib-tool invocations in the scope of a
67156         single configure.ac file.
67157         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67158         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67159         with the same contents as the _LIBADD variable.
67160         (func_emit_initmacro_start, func_emit_initmacro_end,
67161         func_emit_initmacro_done): New functions.
67162         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67163         gl_LIBOBJS and gl_LTLIBOBJS.
67164
67165 2006-10-11  Bruno Haible  <bruno@clisp.org>
67166
67167         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67168         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67169         autoreconf. Instead, invoke autopoint explicitly but move back the
67170         *.m4 files from gnulib.
67171
67172 2006-10-11  Bruno Haible  <bruno@clisp.org>
67173
67174         * gnulib-tool (func_usage): Make module names after --create-testdir
67175         optional.
67176         (func_create_testdir): If no module was specified, use nearly all
67177         modules.
67178
67179 2006-10-12  Jim Meyering  <jim@meyering.net>
67180
67181         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67182         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67183         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67184         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67185         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67186         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67187         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67188         (fts_set_stat_required): New function.
67189         (fts_open): Defer the calls to fts_stat, if possible or requested.
67190         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67191         into fts_stat itself.
67192         (fts_read): Perform any required (deferred) fts_stat call.
67193         (fts_build): Likewise, for the directory we're about to open and read.
67194         In the readdir loop, carefully decide whether each entry will require
67195         an eventual call to fts_stat, using dirent.d_type info if available.
67196         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67197         a command line argument into this function.  Update all callers.
67198         Map a return value of FTS_DOT to FTS_D for a command line argument.
67199         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67200         Thanks to Miklos Szeredi for his tenacity and for the initial
67201         bug report about "find" failing on a FUSE-based file system.
67202
67203         * lib/fts.c (fts_open): Use consistent indentation.
67204
67205 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67208         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67209         reported by Jim Meyering.  All uses of cache variables renamed
67210         to match Autoconf's.
67211         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67212         the other one.
67213
67214         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67215         Fix misspelling in diagnostic.
67216
67217 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67218
67219         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67220         defined.  Problem reported by Matthew Woehlke.
67221
67222         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67223         Add support for Tandem NonStop R series.
67224         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67225         Use new macro.
67226
67227         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67228         (has_trailing_slash): Omit size arg; all callers changed.
67229         Omit 'inline', since it doesn't help performance and we'd
67230         need to configure it.
67231         Don't count //, ///, etc. as having a trailing slash.
67232         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67233         (rpl_rename_dest_slash): On failure, use rename's errno rather
67234         than (in some cases) an incorrect or junk errno.
67235         Simplify code by removing need to compute length; this does
67236         cause it to make two passes instead of one over the file name,
67237         but it's worth it.
67238
67239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67240         change, since Autoconf's version may no longer be appropriate now
67241         that we are using CVS Autoconf's version.  Add support for Tandem.
67242
67243 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67244             Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67247         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67248         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67249         gl_AC_TYPE_LONG_LONG.
67250
67251         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67252         instead of HAVE_LONG_LONG.
67253         * lib/printf-args.c (printf_fetchargs): Likewise.
67254         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67255         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67256         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67257         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67258         gl_AC_TYPE_LONG_LONG.
67259
67260 2006-10-11  Bruno Haible  <bruno@clisp.org>
67261
67262         * m4/longlong.m4: Add comments.
67263         * m4/ulonglong.m4: Likewise.
67264
67265 2006-10-10  Bruno Haible  <bruno@clisp.org>
67266
67267         Make it possible to #define stpcpy, strdup to aliases.
67268         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67269         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67270
67271 2006-10-10  Bruno Haible  <bruno@clisp.org>
67272
67273         Make it possible to #define gcd to an alias.
67274         * lib/gcd.c: Include config.h.
67275
67276 2006-10-10  Bruno Haible  <bruno@clisp.org>
67277
67278         Make it possible to #define c_isascii to an alias.
67279         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67280         defined. Undefine the macros before defining them, to avoid gcc
67281         warnings.
67282         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67283         define NO_C_CTYPE_MACROS early.
67284
67285 2006-10-10  Bruno Haible  <bruno@clisp.org>
67286
67287         Make it possible to #define set_program_name to an alias.
67288         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67289         ENABLE_RELOCATABLE early.
67290
67291 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67294         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67295         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67296         More generally, don't assume that 64-bit signed int is available
67297         if unsigned int is, and vice versa.
67298         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67299         unsigned symbols, not on their signed counterparts.
67300         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67301         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67302         (UINT64_C, UINTMAX_C):
67303         Likewise.
67304         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67305         unsigned counterparts.
67306         (Have_long_long, Unsigned): New macros.
67307         (Int): Renamed from INT.
67308         (strtoimax): Use the new macros.
67309         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67310         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67311         * modules/inttypes (inttypes.h): Substitute
67312         HAVE_UNSIGNED_LONG_LONG_INT.
67313         * modules/stdint (stdint.h): Likewise.
67314         (Files): Add m4/ulonglong.m4.
67315
67316 2006-10-10  Bruno Haible  <bruno@clisp.org>
67317
67318         Fix a gcc -Wshadow warning.
67319         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67320         to 'bucket'.
67321         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67322         gl_linked_indexof_from_to): Likewise.
67323         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67324         Likewise.
67325         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67326         Likewise.
67327         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67328         Reported by Eric Blake.
67329
67330 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67333         for NetBSD.  Problem reported by Bruno Haible.
67334
67335 2006-10-09  Jim Meyering  <jim@meyering.net>
67336
67337         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67338         Patch from Bruno Haible.
67339
67340 2006-10-09  Jim Meyering  <jim@meyering.net>
67341
67342         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67343         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67344         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67345
67346 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         Don't include <config.h> twice; this doesn't work in some cases,
67349         e.g., when config.h has "#define intmax_t long long int" and
67350         we include <config.h>, <inttypes.h>, <config.h> in that order.
67351         Problem reported by Matthew Woehlke in:
67352         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67353         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67354         * lib/fts-cycle.c: Don't include config.h.
67355         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67356         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67357         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67358         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67359         inttypes.h.
67360         * lib/xstrtoumax.c: Likewise.
67361         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67362         __strtol and the like, so that this module is more like its siblings.
67363         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67364         Remove; no longer needed now that we assume gnulib inttypes.h.
67365
67366 2006-10-08  Bruno Haible  <bruno@clisp.org>
67367
67368         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67369         option.
67370
67371 2006-10-07  Jim Meyering  <jim@meyering.net>
67372
67373         * modules/inttypes (inttypes.h): Revert what seems to have been
67374         an inadvertent part of today's change: use "|", not "/" in the
67375         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67376
67377 2006-10-07  Bruno Haible  <bruno@clisp.org>
67378
67379         * modules/sublist: New file.
67380
67381 2006-10-07  Bruno Haible  <bruno@clisp.org>
67382
67383         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67384         * modules/argz (argz.h): Likewise.
67385         * modules/arpa_inet (arpa/inet.h): Likewise.
67386         * modules/byteswap (byteswap.h): Likewise.
67387         * modules/configmake (configmake.h): Likewise.
67388         * modules/fcntl (fcntl.h): Likewise.
67389         * modules/fnmatch (fnmatch.h): Likewise.
67390         * modules/getopt (getopt.h): Likewise.
67391         * modules/glob (glob.h): Likewise.
67392         * modules/inttypes (inttypes.h): Likewise.
67393         * modules/netinet_in (netinet/in.h): Likewise.
67394         * modules/poll (poll.h): Likewise.
67395         * modules/stdbool (stdbool.h): Likewise.
67396         * modules/stdint (stdint.h): Likewise.
67397         * modules/sys_select (sys/select.h): Likewise.
67398         * modules/sys_socket (sys/socket.h): Likewise.
67399         * modules/sys_stat (sys/stat.h): Likewise.
67400         * modules/sysexits (sysexits.h): Likewise.
67401         * modules/unistd (unistd.h): Likewise.
67402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67403         Add a "DO NOT EDIT" comment to the generated file.
67404         (func_import): Likewise for gnulib-comp.m4.
67405
67406 2006-10-07  Bruno Haible  <bruno@clisp.org>
67407
67408         * lib/gl_sublist.h: New file.
67409         * lib/gl_sublist.c: New file.
67410
67411 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67414         name (relative to the original working directory) and the file
67415         name component (relative to the temporary working directory).  All
67416         callers changed.
67417         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67418         * lib/mkdir-p.c (make_dir_parents): Likewise.
67419         * lib/mkdir-p.h (make_dir_parents): Likewise.
67420
67421 2006-10-06  Eric Blake  <ebb9@byu.net>
67422
67423         Define several macros for use by the clean-temp module.
67424         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67425         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67426         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67427
67428         * lib/clean-temp.h (close_stream_temp): New declaration.
67429         * lib/clean-temp.c (includes): Pull in headers according to what
67430         other modules are in use.
67431         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67432
67433 2006-10-06  Bruno Haible  <bruno@clisp.org>
67434
67435         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67436         instead of fopen, fwriteerror.
67437
67438 2006-10-06  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67441         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67442         int.
67443         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67444         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67445         Return an error indicator.
67446         Suggested by Eric Blake.
67447
67448 2006-10-06  Bruno Haible  <bruno@clisp.org>
67449
67450         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67451         Reported by Eric Blake.
67452
67453 2006-10-06  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/closeout (Description): Mention stderr too.
67456
67457 2006-10-06  Bruno Haible  <bruno@clisp.org>
67458         and Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * lib/closeout.c (close_stdout): Also close stderr.
67461         * lib/closeout.h: Update comment.
67462
67463 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67467         * lib/dirchownmod.c: Include lchown.h.
67468         * lib/lchown.c: Don't include files that lchown.h now includes.
67469         Don't declare chown, since lchown.h now does that.
67470         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67471         (lchown): Define to rpl_chown if lchown is declared but
67472         does not exist.  Declare using a prototype if lchown is not
67473         declared.  Add a copyright notice.
67474         * lib/mkstemp.h: Include <unistd.h>.
67475         * lib/openat.c: Include lchown.h.
67476
67477         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67478         we now test for that separately.
67479         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67480         rather than O_NOFOLLOW, when testing whether it's possible to
67481         avoid a race condition reliably.
67482         * lib/savewd.c (savewd_chdir): Likewise.
67483
67484         Remove macros that are no longer needed now that stdint.h is
67485         reliable.
67486         * lib/fsusage.c (UINTMAX_MAX): Remove.
67487         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67488         * lib/utimecmp.c (SIZE_MAX): Remove.
67489
67490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67491
67492         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67493         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67494         O_NOATIME works.
67495
67496 2006-10-05  Bruno Haible  <bruno@clisp.org>
67497
67498         * lib/gl_list.h (gl_sortedlist_search_from_to,
67499         gl_sortedlist_indexof_from_to): New declarations.
67500         (gl_list_implementation): New fields sortedlist_search_from_to,
67501         sortedlist_indexof_from_to.
67502         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67503         inline functions.
67504         * lib/gl_list.c (gl_sortedlist_search_from_to,
67505         gl_sortedlist_indexof_from_to): New functions.
67506         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67507         function.
67508         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67509         (gl_array_sortedlist_search_from_to): New function.
67510         (gl_array_list_implementation): Update.
67511         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67512         function.
67513         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67514         (gl_carray_sortedlist_search_from_to): New function.
67515         (gl_carray_list_implementation): Update.
67516         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67517         gl_linked_sortedlist_indexof_from_to): New functions.
67518         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67519         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67520         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67521         gl_tree_sortedlist_indexof_from_to): New functions.
67522         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67523         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67524         Update.
67525         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67526         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67527         Update.
67528
67529 2006-10-05  Bruno Haible  <bruno@clisp.org>
67530
67531         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67532         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67533         (struct gl_list_implementation): Add fields search_from_to,
67534         indexof_from_to. Remove fields search, indexof.
67535         (gl_list_search): Use the search_from_to method.
67536         (gl_list_search_from, gl_list_search_from_to): New functions.
67537         (gl_list_indexof): Use the indexof_from_to method.
67538         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67539         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67540         (gl_list_search_from, gl_list_search_from_to): New functions.
67541         (gl_list_indexof): Use the indexof_from_to method.
67542         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67543         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67544         gl_array_indexof. Add start_index, end_index arguments.
67545         (gl_array_search_from_to): Renamed from gl_array_search. Add
67546         start_index, end_index arguments.
67547         (gl_array_remove, gl_array_list_implementation): Update.
67548         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67549         gl_carray_indexof. Add start_index, end_index arguments.
67550         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67551         start_index, end_index arguments.
67552         (gl_carray_remove, gl_carray_list_implementation): Update.
67553         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67554         gl_linked_search. Add start_index, end_index arguments.
67555         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67556         start_index, end_index arguments.
67557         (gl_linked_remove): Update.
67558         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67559         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67560         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67561         field to 'size_t'.
67562         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67563         gl_tree_search. Add start_index, end_index arguments.
67564         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67565         start_index, end_index arguments.
67566         (gl_tree_remove): Update.
67567         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67568         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67569         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67570         function.
67571         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67572         gl_tree_search. Add start_index, end_index arguments.
67573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67574         start_index, end_index arguments.
67575         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67576         Update.
67577         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67578
67579 2006-10-05  Bruno Haible  <bruno@clisp.org>
67580
67581         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67582
67583         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67584         fwriteerror_temp): New declarations.
67585         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67586         (descriptors): New variable.
67587         (cleanup): First, close the descriptors.
67588         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67589         fclose_temp, fwriteerror_temp): New functions.
67590
67591 2006-10-04  Jim Meyering  <jim@meyering.net>
67592
67593         * lib/fts.c (fts_open): Tiny comment change.
67594
67595 2006-10-04  Bruno Haible  <bruno@clisp.org>
67596
67597         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67598         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67599         gl_LOCK_BODY.
67600         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67601         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67602         gl_LOCK_EARLY_BODY.
67603         (gl_LOCK): Require gl_LOCK_BODY.
67604
67605 2006-10-04  Bruno Haible  <bruno@clisp.org>
67606
67607         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67608         (gl_oset_search_atleast): New declaration.
67609         (struct gl_oset_implementation): Add field 'search_atleast'.
67610         (gl_oset_search_atleast): New inline function.
67611         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67612         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67613         (gl_array_oset_implementation): Update.
67614         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67615         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67616         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67617
67618 2006-10-04  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67621
67622 2006-10-03  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67625         from gl_avltreehash_list_implementation.
67626
67627 2006-10-03  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/gl_oset.c (gl_oset_add): Fix return type.
67630
67631 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67632
67633         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67634
67635 2006-10-02  Eric Blake  <ebb9@byu.net>
67636
67637         * modules/strnlen (Depends-on): Add extensions.
67638
67639 2006-10-02  Eric Blake  <ebb9@byu.net>
67640
67641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67642         definition in 2.60+.
67643
67644 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67645
67646         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67647         checks.
67648
67649 2006-10-02  Bruno Haible  <bruno@clisp.org>
67650
67651         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67652         to the AUTOMAKE_OPTIONS.
67653         Reported by Jim Meyering.
67654
67655 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Work around bug in Solaris 10 /proc file system:
67658         /proc/self/fd/NNN/.. isn't the parent directory of
67659         the directory whose file descriptor is NNN.  This needs to
67660         be worked around at run time, not compile time, since a
67661         program might be built on Solaris 8, where things work, and
67662         run on Solaris 10.
67663         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67664         to use the following interface instead:
67665         (OPENAT_BUFFER_SIZE): New macro.
67666         (openat_proc_name): New function.
67667         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67668         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67669         Likewise.
67670         * lib/openat-proc.c: New file.
67671         * modules/openat (Files): Add lib/openat-proc.c.
67672         (Depends-on): Add same-inode, stdbool.
67673         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67674
67675 2006-09-29  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67678         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67679         argument. Set stdout_closed before testing for ferror, not after.
67680         (fwriteerror, fwriteerror_no_ebadf): New functions.
67681
67682 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67683
67684         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67685
67686 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67687
67688         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67689         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67690
67691 2006-09-28  Jim Meyering  <jim@meyering.net>
67692
67693         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67694         Include <unistd.h>.
67695
67696 2006-09-28  Bruno Haible  <bruno@clisp.org>
67697
67698         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67699         * modules/linkedhash-list (Depends-on): Likewise.
67700         * modules/rbtreehash-list (Depends-on): Likewise.
67701
67702 2006-09-28  Bruno Haible  <bruno@clisp.org>
67703
67704         * lib/strndup.h: Simplify the redefinition of strndup.
67705         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67706         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67707
67708 2006-09-28  Bruno Haible  <bruno@clisp.org>
67709
67710         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67711         * lib/gl_linkedhash_list.c: Likewise.
67712         * lib/gl_rbtreehash_list.c: Likewise.
67713
67714 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67717         getaddrinfo.
67718
67719         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67720         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67721         it causes <stdio_ext.h> to cause a compile-time error.
67722         Problem reported by Nelson H. F. Beebe.
67723         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67724         of HAVE_DECL___PENDING.
67725
67726         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67728         declaration.
67729
67730 2006-09-27  Jim Meyering  <jim@meyering.net>
67731
67732         This file could end up with a definition for a function
67733         named __strndup, rather than rpl_strndup on a system with
67734         incomplete weak_alias support.
67735         * lib/strndup.c (strndup): Rename from __strndup.
67736         Remove #defines that used to map __strndup to strndup.
67737         Don't use K&R prototypes.
67738         Remove LIBC-related code, since this file is not sync'd with glibc.
67739         * lib/strndup.h: Revamp, accordingly.
67740         * m4/strndup.m4: Modernize.
67741
67742 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * modules/savewd (Depends-on): Add 'raise'.
67745         * lib/savewd.c: Include <signal.h>, for 'raise'.
67746
67747 2006-09-26  Jim Meyering  <jim@meyering.net>
67748
67749         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67750         when we detect Darwin 8.7.0's acl_get_file bug.
67751         Rearrange to perform the new (below) run-test while $LIBS
67752         contains any acl-related library.  Set USE_ACL at the end.
67753         (gl_ACL_GET_FILE): New function.
67754
67755 2006-09-26  Eric Blake  <ebb9@byu.net>
67756
67757         * lib/verror.c: Include <config.h> unconditionally.
67758
67759 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * modules/clock-time (Maintainer): Add self.
67762         * modules/getlogin_r (Depends-on): Add extensions.
67763
67764 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67765
67766         * modules/clock-time: New module.
67767         * modules/nanosleep (Depends-on): Add clock-time.
67768         * modules/gethrxtime (Depends-on): Likewise.
67769         * modules/gettime (Depends-on): Likewise.
67770         * modules/settime (Depends-on): Likewise.
67771
67772         * modules/fts-lgpl: Depend on openat.
67773         * modules/mkancesdirs: Depend on savewd.
67774         * modules/mkdir-p: Likewise.
67775
67776 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67777
67778         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67779
67780         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67781         `gl_have_arbitrary_file_name_length_limit' to
67782         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67783         actually works between configure runs.
67784
67785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67786             Bruno Haible  <bruno@clisp.org>
67787
67788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67789
67790 2006-09-25  Jim Meyering  <jim@meyering.net>
67791
67792         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67793         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67794
67795 2006-09-25  Eric Blake  <ebb9@byu.net>
67796
67797         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67798         exec's in 2006-09-18 patch when shuffling fds.
67799
67800 2006-09-25  Bruno Haible  <bruno@clisp.org>
67801
67802         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67803         Reported by Jim Meyering.
67804
67805 2006-09-24  Jim Meyering  <jim@meyering.net>
67806
67807         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67808         compare a pointer against a literal "0".  That caused failures with
67809         at least HP-UX's hpcc.
67810
67811 2006-09-22  Simon Josefsson  <jas@extundo.com>
67812
67813         * modules/gc-sha1:
67814         * modules/gc-md4:
67815         * modules/gc-hmac-sha1:
67816         * modules/gc-hmac-md5:
67817         * modules/gc-des:
67818         * modules/gc-arcfour: Distribute more files.
67819
67820 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67821
67822         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67823         (gl_linked_iterator_from_to): Initialize struct completely.
67824         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67825         (gl_tree_iterator_from_to): Likewise
67826         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67827         * lib/gl_array_list.c [lint] (gl_array_iterator)
67828         (gl_array_iterator_from_to): Likewise.
67829         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67830         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67831         (gl_carray_iterator_from_to): Likewise.
67832
67833         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67834         * lib/md4.c (md4_process_block): Remove unused variable.
67835         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67836         parentheses for clarity.
67837
67838 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67839
67840         * modules/bison-i18n (Depends-on): Add gettext.
67841
67842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67843
67844         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67846         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67847         also add missing comma that caused broken test.
67848         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67849         stdlib.h, for `abort'.
67850         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67851         variables.
67852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67853         include unistd.h if present, for `rmdir'.
67854         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67855         variables.
67856         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67857         in the process include standard headers for prototypes.
67858         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67859         gets declared on GNU/Linux.
67860         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67861         unistd.h, for `rmdir'.
67862         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67863
67864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67865         always true.
67866         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67867
67868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67869
67870 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67871
67872         * gnulib-tool (func_version): Create output all at once.  This
67873         may help avoid triggering unnecessary SIGPIPEs, and at any
67874         rate it doesn't hurt.
67875
67876 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67877             Bruno Haible  <bruno@clisp.org>
67878
67879         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67880         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67881         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67882
67883         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67884         (gl_FUNC_VASPRINTF): Invoke it.
67885
67886 2006-09-22  Bruno Haible  <bruno@clisp.org>
67887
67888         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67889         getloadavg.c as first argument.
67890
67891 2006-09-22  Bruno Haible  <bruno@clisp.org>
67892
67893         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67894         at the beginning of the gl_INIT macro.
67895         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67896         gl_GETLOADAVG.
67897
67898 2006-09-22  Bruno Haible  <bruno@clisp.org>
67899
67900         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67901         module.
67902         Suggested by Ralf Wildenhues.
67903
67904 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         Import this patch from libc:
67907
67908         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67909
67910         * lib/regex_internal.c (re_string_reconstruct): Handle
67911         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67912         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67913         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67914         re_string_context_at.
67915
67916         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67917         now requires it.
67918         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67919         gl_REGEX now does it for us.
67920         (gl_REGEX): Add test taken from
67921         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67922
67923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67924         Check that large offsets work.  Modernize Autoconf usages.
67925         Prefer "yes" to mean a good thing rather than a bad.
67926         Don't put "#define mkstemp" in config.h, as this might interfere
67927         with standard system headers that "#define mkstemp mkstemp64".
67928
67929         * modules/mkstemp (Depends-on): Add extensions, so that
67930         mkstemp is visible on some platforms.
67931         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67932         (Include): Change to "mkstemp.h" from <stdlib.h>.
67933         (Files): Add mkstemp.h.
67934
67935         * lib/mkstemp.h: New file, since some standard headers
67936         #define mkstemp.
67937         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67938         Include "mkstemp.h".
67939         Make the _LIBC code resemble glibc original more,
67940         e.g., use K&R style.
67941         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67942         (mkstemp): Remove, since mkstemp.h does this for us.
67943         * lib/stdlib--.h: Include mkstemp.h.
67944
67945         Import this patch from libc:
67946
67947         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67948
67949         * lib/tempname.c (__gen_tempname): Change attempts_min
67950         into a macro.  Use preprocessor to decide how to initialize
67951         attempts [Coverity CID 67].
67952
67953 2006-09-20  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/mkdtemp.c: Import from libc.
67956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67957                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67958                 attempts_min into a macro.  Use preprocessor to decide how to
67959                 initialize attempts [Coverity CID 67].
67960         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67961                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67962                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67963
67964 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67965
67966         * gnulib-tool (func_exit): New function, to allow to pass the
67967         exit status portably through the trap.  Use everywhere.
67968         (--help, --version): Signal a write error.
67969         (trap): catch SIGPIPE, for write errors.
67970         Exit at the end of the trap, with the correct exit status.
67971
67972 2006-09-19  Karl Berry  <karl@gnu.org>
67973
67974         * doc/gnulib.texi: note about the license texinfo files.
67975
67976 2006-09-19  Eric Blake  <ebb9@byu.net>
67977
67978         * gnulib-tool: Avoid space-tab.
67979
67980 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67983         that prevented coreutils 6.1 from building.  Problem reported
67984         by Petter Reinholdtsen.
67985
67986 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * gnulib-tool (avoidlist): Fix typo that broke options like
67989         --avoid=lock that are used by coreutils bootstrap.
67990
67991 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67992
67993         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67994         more systematically.
67995
67996 2006-09-18  Jim Meyering  <jim@meyering.net>
67997
67998         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67999
68000 2006-09-18  Bruno Haible  <bruno@clisp.org>
68001
68002         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68003
68004 2006-09-18  Bruno Haible  <bruno@clisp.org>
68005
68006         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68007         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68008         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68009         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68010         * m4/gettext.m4: Require autoconf >= 2.52.
68011         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68012         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68013         of gl_cv_header_inttypes_h.
68014
68015 2006-09-18  Bruno Haible  <bruno@clisp.org>
68016
68017         * lib/javaversion.c: Include configmake.h.
68018
68019 2006-09-18  Bruno Haible  <bruno@clisp.org>
68020
68021         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68022         avoid that the while loops be executed in a subshell.
68023
68024 2006-09-18  Bruno Haible  <bruno@clisp.org>
68025
68026         * MODULES.html.sh (func_module): Break long lines.
68027         Suggested by Bruce Korb <bkorb@gnu.org>.
68028
68029 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68030
68031         Speed up by a factor of 1.12.
68032         * gnulib-tool (nl): New variable.
68033         (func_import): Rewrite include directive extraction to only read each
68034         directive once.
68035
68036 2006-09-17  Bruno Haible  <bruno@clisp.org>
68037
68038         * modules/javaversion (Makefile.am): Remove DEFS setting.
68039         (Depends-on): Add configmake, for PKGDATADIR definition.
68040
68041 2006-09-17  Bruno Haible  <bruno@clisp.org>
68042
68043         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68044
68045 2006-09-17  Bruno Haible  <bruno@clisp.org>
68046
68047         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68048         (func_modules_transitive_closure, func_modules_add_dummy,
68049         func_modules_to_filelist, func_import, func_create_testdir,
68050         func_create_megatestdir, ...): Use it wherever possible.
68051         Suggested by Ralf Wildenhues.
68052
68053 2006-09-16  Karl Berry  <karl@gnu.org>
68054
68055         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68056         to avoid sectioning errors.
68057         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68058         [ifinfo]: blank line after @center-ed titles.
68059         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68060         Spell FSF address consistently with others.
68061         (These changes approved by rms.)
68062
68063 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68064
68065         Speed up by a factor of 1.61.
68066         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68067         already checked module names again.
68068
68069 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68070
68071         Speed up by a factor of 1.13.
68072         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68073         for new_files, and the input to func_add_or_update.
68074
68075 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68076
68077         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68078         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68079
68080 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * modules/mkancesdirs (Depends-on): Add fcntl.
68083         * modules/savewd: New file.
68084         * MODULES.html.sh (File system functions): Add savewd.
68085
68086         * modules/configmake (Makefile.am): Add support for the
68087         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68088
68089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * m4/savewd.m4: New file.
68092
68093 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68096         (dirchownmod): New arg FD.  All callers changed.
68097         Use FD rather than opening the directory ourself, as opening is
68098         now the caller's responsibility.
68099         * lib/dirchownmod.h: Likewise.
68100         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68101         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68102         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68103         (test_dir): Remove.
68104         (mkancesdirs): Return length of prefix of FILE that has already
68105         been made, or -2 if there is a child doing the work.  Redo
68106         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68107         ".", and treat ".." specially since it might stray back into
68108         already-created areas.  Use a subprocess if necessary.  New arg
68109         WD; all users changed.  MAKE_DIR function should now return 1
68110         if it creates a directory that is not readable.  Return -2 if
68111         a child process is spun off.
68112         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68113         Adjust signature to match code.
68114         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68115         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68116         all users changed.
68117         * lib/savewd.c, lib/savewd.h: New files.
68118
68119 2006-09-15  Jim Meyering  <jim@meyering.net>
68120
68121         * modules/rename-dest-slash: New module.
68122         * MODULES.html.sh (posix_compat): Add it here.
68123
68124         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68125
68126 2006-09-15  Jim Meyering  <jim@meyering.net>
68127
68128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68129         file.
68130
68131         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68132
68133 2006-09-15  Jim Meyering  <jim@meyering.net>
68134
68135         * lib/rename-dest-slash.c (has_trailing_slash): Use
68136         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68137         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68138         test before testing whether SRC is a directory.
68139         Suggestions from Bruno Haible.
68140
68141         Avoid a warning about an unused variable.
68142         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68143         into the #ifdef block where it's used.
68144
68145         * lib/rename-dest-slash.c: New file.
68146
68147 2006-09-14  Bruno Haible  <bruno@clisp.org>
68148
68149         * lib/allocsa.c: Include <config.h> unconditionally.
68150         * lib/asnprintf.c: Likewise.
68151         * lib/asprintf.c: Likewise.
68152         * lib/c-strcasecmp.c: Likewise.
68153         * lib/c-strcasestr.c: Likewise.
68154         * lib/c-strncasecmp.c: Likewise.
68155         * lib/c-strstr.c: Likewise.
68156         * lib/classpath.c: Likewise.
68157         * lib/clean-temp.c: Likewise.
68158         * lib/concatpath.c: Likewise.
68159         * lib/copy-file.c: Likewise.
68160         * lib/csharpcomp.c: Likewise.
68161         * lib/csharpexec.c: Likewise.
68162         * lib/execute.c: Likewise.
68163         * lib/fatal-signal.c: Likewise.
68164         * lib/findprog.c: Likewise.
68165         * lib/fwriteerror.c: Likewise.
68166         * lib/gl_array_list.c: Likewise.
68167         * lib/gl_array_oset.c: Likewise.
68168         * lib/gl_avltree_list.c: Likewise.
68169         * lib/gl_avltree_oset.c: Likewise.
68170         * lib/gl_avltreehash_list.c: Likewise.
68171         * lib/gl_carray_list.c: Likewise.
68172         * lib/gl_linked_list.c: Likewise.
68173         * lib/gl_linkedhash_list.c: Likewise.
68174         * lib/gl_list.c: Likewise.
68175         * lib/gl_oset.c: Likewise.
68176         * lib/gl_rbtree_list.c: Likewise.
68177         * lib/gl_rbtree_oset.c: Likewise.
68178         * lib/gl_rbtreehash_list.c: Likewise.
68179         * lib/imaxabs.c: Likewise.
68180         * lib/imaxdiv.c: Likewise.
68181         * lib/javacomp.c: Likewise.
68182         * lib/javaexec.c: Likewise.
68183         * lib/javaversion.c: Likewise.
68184         * lib/linebreak.c: Likewise.
68185         * lib/localcharset.c: Likewise.
68186         * lib/lock.c: Likewise.
68187         * lib/mbchar.c: Likewise.
68188         * lib/mbswidth.c: Likewise.
68189         * lib/mkdtemp.c: Likewise.
68190         * lib/pipe.c: Likewise.
68191         * lib/printf-args.c: Likewise.
68192         * lib/printf-parse.c: Likewise.
68193         * lib/progname.c: Likewise.
68194         * lib/progreloc.c: Likewise.
68195         * lib/readlink.c: Likewise.
68196         * lib/sh-quote.c: Likewise.
68197         * lib/stpcpy.c: Likewise.
68198         * lib/stpncpy.c: Likewise.
68199         * lib/strcasecmp.c: Likewise.
68200         * lib/strcasestr.c: Likewise.
68201         * lib/strcspn.c: Likewise.
68202         * lib/striconv.c: Likewise.
68203         * lib/strncasecmp.c: Likewise.
68204         * lib/strnlen1.c: Likewise.
68205         * lib/strstr.c: Likewise.
68206         * lib/strtok_r.c: Likewise.
68207         * lib/tls.c: Likewise.
68208         * lib/tmpdir.c: Likewise.
68209         * lib/unicodeio.c: Likewise.
68210         * lib/unsetenv.c: Likewise.
68211         * lib/vasnprintf.c: Likewise.
68212         * lib/vasprintf.c: Likewise.
68213         * lib/wait-process.c: Likewise.
68214         * lib/xallocsa.c: Likewise.
68215         * lib/xsetenv.c: Likewise.
68216         * lib/xstriconv.c: Likewise.
68217
68218 2006-09-13  Simon Josefsson  <jas@extundo.com>
68219
68220         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68221         that internally, suggested by Ralf Wildenhues
68222         <Ralf.Wildenhues@gmx.de>.
68223
68224 2006-09-13  Simon Josefsson  <jas@extundo.com>
68225
68226         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68227         @LIBOBJS@.
68228         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68229
68230 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68233         longer worry about uses that don't define HAVE_CONFIG_H.
68234         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68235         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68236         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68237         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68238         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68239         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68240         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68241         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68242         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68243         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68244         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68245         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68246         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68247         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68248         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68249         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68250         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68251         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68252         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68253         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68254         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68255         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68256         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68257         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68258         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68259         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68260         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68261         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68262         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68263         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68264         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68265         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68266         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68267         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68268         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68269         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68270         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68271         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68272         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68273         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68274         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68275         Likewise.
68276
68277 2006-09-13  Eric Blake  <ebb9@byu.net>
68278
68279         * lib/getopt.c: Fix typo in last commit.
68280
68281 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68282
68283         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68284         dgettext.
68285
68286 2006-09-12  Jim Meyering  <jim@meyering.net>
68287
68288         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68289         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68290         Reported by Nelson H. F. Beebe.
68291
68292 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68293
68294         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68295         program_invocation_name and program_invocation_short_name are
68296         initialized.
68297         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68298         and program_invocation_short_name to argp.h, so they are visible
68299         to user programs.
68300         * lib/argp.h: Likewise
68301
68302 2006-09-10  Bruno Haible  <bruno@clisp.org>
68303
68304         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68305         m4/inttypes_h.m4, m4/uintmax_t.m4.
68306
68307 2006-09-10  Bruno Haible  <bruno@clisp.org>
68308
68309         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68310         gl_AC_TYPE_UINTMAX_T.
68311
68312 2006-09-10  Bruno Haible  <bruno@clisp.org>
68313
68314         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68315
68316 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68317
68318         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68319         convention.  Text proposed by Bruno Haible.
68320         (struct argp_option): Document the use of N_() wrappers.
68321
68322         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68323         '\v', and translate the two parts separately, instead of feeding
68324         the whole string to gettext.  This allows to exclude
68325         '\v' from the strings visible to the translator by writing doc
68326         strings as N_("..") "\v" N_("..").
68327
68328 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * config/srclist.txt: Undo latest change; the bug was fixed.
68331
68332 2006-09-09  Bruno Haible  <bruno@clisp.org>
68333
68334         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68335         assignments if building a library without libtool.
68336         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68337         in func_emit_lib_Makefile_am.
68338         (func_import): When building a static library libfoo.a, arrange to
68339         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68340         (func_create_testdir): Likewise.
68341         * modules/gc (configure.ac, Makefile.am): If building statically,
68342         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68343         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68344         * modules/striconv (configure.ac, Makefile.am): Likewise.
68345         Based on a suggestion by Ralf Wildenhues.
68346
68347 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68350         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68351         Also:
68352
68353         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68354         Add year_2050_test to catch glibc bug 2821
68355         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68356
68357         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68358         Prefer #ifdef to #if.
68359
68360         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68361         Return from 'main' instead of calling 'exit'.
68362
68363 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68366         returned the maximum time_t value rather than (time_t) -1.
68367         Problem originally reported by William Bardwell
68368         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68369
68370         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68371         Moved to here ...
68372         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68373         ... from here.
68374
68375 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68378         2821 is fixed.
68379
68380 2006-09-08  Jim Meyering  <jim@meyering.net>
68381
68382         Don't make generated files read-only.  That would bother too many
68383         people.  However, do retain the ability to work when targets are
68384         read-only: remove the destination and temporary files before writing
68385         them (when generated via sed or echo), or by using the -f option for
68386         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68387         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68388         * modules/byteswap, modules/configmake, modules/fcntl:
68389         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68390         * modules/localcharset, modules/netinet_in, modules/poll:
68391         * modules/stdbool, modules/stdint, modules/sys_select:
68392         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68393
68394 2006-09-08  Jim Meyering  <jim@meyering.net>
68395
68396         Avoid new build failure on FreeBSD 6.0.
68397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68398         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68399         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68400
68401 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68402
68403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68404
68405 2006-09-07  Jim Meyering  <jim@meyering.net>
68406
68407         Fix global typo in last change: use chmod u-w, not chmod u-x.
68408         Spotted by Paul Eggert and Bruce Korb.
68409         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68410         * modules/byteswap, modules/configmake, modules/fcntl:
68411         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68412         * modules/localcharset, modules/netinet_in, modules/poll:
68413         * modules/stdbool, modules/stdint, modules/sys_select:
68414         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68415
68416 2006-09-06  Jim Meyering  <jim@meyering.net>
68417
68418         Make generated files be read-only.
68419         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68420         Ensure that each generated file is now read-only.
68421         * modules/argz: Likewise.
68422         * modules/arpa_inet: Likewise.
68423         * modules/byteswap: Likewise.
68424         * modules/configmake: Likewise.
68425         * modules/fcntl: Likewise.
68426         * modules/fnmatch: Likewise.
68427         * modules/getopt: Likewise.
68428         * modules/glob: Likewise.
68429         * modules/inttypes: Likewise.
68430         * modules/netinet_in: Likewise.
68431         * modules/poll: Likewise.
68432         * modules/stdbool: Likewise.
68433         * modules/stdint: Likewise.
68434         * modules/sys_select: Likewise.
68435         * modules/sys_socket: Likewise.
68436         * modules/sys_stat: Likewise.
68437         * modules/sysexits: Likewise.
68438         * modules/localcharset: Same as above, but continue using temporary
68439         file named "t-$@" (why different?) rather than the "$@-t" used
68440         everywhere else.
68441
68442         * modules/sysexits (Makefile.am): Replace literal occurrences
68443         of "sysexit.h" more readable, and more consistent, "$@".
68444
68445 2006-09-06  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/striconv: New file.
68448         * modules/xstriconv: New file.
68449         * MODULES.html.sh (Internationalization functions): Add striconv,
68450         xstriconv.
68451
68452 2006-09-06  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68455         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68456         not using libtool correctly.
68457
68458 2006-09-06  Bruno Haible  <bruno@clisp.org>
68459
68460         * lib/striconv.h: New file.
68461         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68462         iconvstring.c.
68463         * lib/xstriconv.h: New file.
68464         * lib/xstriconv.c: New file.
68465
68466 2006-09-06  Bruno Haible  <bruno@clisp.org>
68467
68468         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68469         lib_..._LDFLAGS.
68470
68471 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68472
68473         * lib/argz_.h: Sync from Libtool.
68474
68475         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68476                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68477
68478         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68479
68480 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68481
68482         * modules/trim: New file.
68483
68484 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68485
68486         * lib/trim.h: New file.
68487         * lib/trim.c: New file.
68488
68489 2006-09-05  Bruno Haible  <bruno@clisp.org>
68490
68491         * MODULES.html.sh (String handling): Add trim.
68492
68493 2006-09-04  Karl Berry  <karl@gnu.org>
68494
68495         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68496         until next release.
68497
68498 2006-09-03  Bruno Haible  <bruno@clisp.org>
68499
68500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68501         correctly.
68502
68503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68506         not gl_GETLOADAVG.  Omit unneeded semicolons.
68507         Problems reported by Ralf Wildenhues in
68508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68509         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68510         at the end, which is the usual gnulib style.
68511
68512         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68513         of doing all the work ourselves.
68514         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68515         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68516
68517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68520         Problem reported by Ralf Wildenhues in
68521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68522
68523         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68524         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68525
68526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68529         yesterday's patch by changing test -n to test -z.
68530
68531 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68534         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68535         the former is now obsolescent.
68536
68537         * modules/chdir-long (Depends-on): Add fcntl.
68538
68539 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68542         obsolescent, and programs should use gnulib instead.
68543         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68544         but with prefixes changed.
68545
68546 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68547
68548         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68549         or stdbool.h, because they might not exist while configuring.
68550
68551         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68552         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68553         does that for us.
68554         (O_DIRECTORY): Remove.
68555
68556 2006-08-31  Eric Blake  <ebb9@byu.net>
68557
68558         * gnulib-tool: Don't let emacs change spaces to TAB.
68559
68560 2006-08-31  Bruno Haible  <bruno@clisp.org>
68561
68562         * gnulib-tool: When calling func_import more than once, do it in a
68563         subshell.
68564         Reported by Eric Blake <ebb9@byu.net>.
68565
68566 2006-08-31  Bruno Haible  <bruno@clisp.org>
68567
68568         * gnulib-tool (nl): Remove variable.
68569         (sed_transform_lib_file): Use more robust test for config-h module.
68570         (func_import): Fix typo in 2006-08-25 patch.
68571
68572 2006-08-31  Bruno Haible  <bruno@clisp.org>
68573
68574         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68575         specified, augment Makefile.am variables instead of assigning them.
68576
68577 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         Work around a bug in both the Linux and SunOS 64-bit kernels:
68580         nanosleep mishandles sleeps for longer than 2**31 seconds.
68581         Problem reported by Frank v Waveren in
68582         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68584         Check for nanosleep bug.
68585         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68586
68587 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         Work around a bug in both the Linux and SunOS 64-bit kernels:
68590         nanosleep mishandles sleeps for longer than 2**31 seconds.
68591         Problem reported by Frank v Waveren in
68592         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68593         * lib/nanosleep.c (BILLION): New constant.
68594         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68595         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68596         implementation.
68597
68598 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * modules/nanosleep (Depends-on): Add gettime.
68601
68602 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68603         and Simon Josefsson  <jas@extundo.com>
68604         and Oskar Liljeblad  <oskar@osk.mine.nu>
68605
68606         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68607         * gnulib-tool (func_import): New license type 'unmodifiable license
68608         text'.
68609         * modules/fdl: Use it.  Longer description.
68610         * module/gpl, module/lgpl: New files.
68611
68612 2006-08-30  Jim Meyering  <jim@meyering.net>
68613
68614         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68615         shadowing the parameter.
68616
68617 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68618
68619         Sync from Libtool:
68620
68621         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68622
68623         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68624         sharing with gnulib.  Report by Eric Blake.
68625
68626 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * modules/isapipe: New file.
68629         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68630
68631 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * modules/configmake (Makefile.am): Add a comment, and omit
68634         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68635         by Bruno Haible.
68636
68637 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * m4/isapipe.m4: New file.
68640
68641 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * lib/isapipe.c, lib/isapipe.h: New files.
68644
68645 2006-08-29  Jim Meyering  <jim@meyering.net>
68646
68647         * modules/configmake (Makefile.am): Make configmake.h depend on
68648         Makefile.  Otherwise, a stale configmake.h could hang around.
68649
68650 2006-08-29  Eric Blake  <ebb9@byu.net>
68651
68652         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68653         resolution of upstream bug 3044.
68654
68655 2006-08-29  Bruno Haible  <bruno@clisp.org>
68656
68657         * modules/localcharset (Depends-on): Add configmake.
68658         (Makefile.am): Remove setting of LIBDIR through DEFS.
68659
68660 2006-08-29  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68663         defined.
68664
68665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * modules/fcntl: New file.
68668         * modules/chdir-safer (Depends-on): Add fcntl.
68669         * modules/fts: Likewise.
68670         * modules/mkdir-p: Likewise.
68671
68672         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68673         This undoes the most recent change, since we're now addressing the
68674         problem in a different way.
68675
68676         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68677         into output, since the output might be called Makefile.am even
68678         if $makefile_name is something different.
68679         (func_import): Use $makefile_am rather than
68680         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68681         empty.
68682
68683         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68684
68685 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68688         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68689         recent change to stdint.m4, since we're now addressing the problem in a
68690         different way.
68691
68692 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68693
68694         * m4/fcntl_h.m4: New file.
68695
68696 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * lib/fcntl_.h: New file.
68699         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68700         the fcntl module.
68701         * lib/dirchownmod.c: Likewise.
68702         * lib/fts.c: Likewise.
68703
68704         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68705         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68706         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68707         just before including <inttypes.h>, to avoid circular inclusion.
68708
68709 2006-08-28  Jim Meyering  <jim@meyering.net>
68710
68711         * doc/visibility.texi: Actually read and correct the grammar of the
68712         sentence affected by yesterday's change.
68713
68714 2006-08-28  Eric Blake  <ebb9@byu.net>
68715
68716         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68717         needs wrapper.
68718
68719 2006-08-28  Eric Blake  <ebb9@byu.net>
68720
68721         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68722
68723 2006-08-28  Eric Blake  <ebb9@byu.net>
68724
68725         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68726
68727 2006-08-28  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/c-strstr: New file, from GNU gettext.
68730         * MODULES.html.sh (String handling): Add c-strstr.
68731
68732 2006-08-28  Bruno Haible  <bruno@clisp.org>
68733
68734         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68735         macros.
68736         Reported by Eric Blake.
68737
68738 2006-08-28  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68741         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68742         * lib/vasprintf.c: Include errno.h, limits.h.
68743         (EOVERFLOW): New fallback definition.
68744         (vasprintf): Test here whether the string length is > INT_MAX.
68745         * lib/vsnprintf.c: Include errno.h, limits.h.
68746         (EOVERFLOW): New fallback definition.
68747         (vsnprintf): Fix bug when generated string was too long for the buffer.
68748         Test here whether the string length is > INT_MAX.
68749
68750 2006-08-28  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/inttypes_.h (SCNX*): Remove definitions.
68753         Reported by Eric Blake.
68754
68755 2006-08-28  Bruno Haible  <bruno@clisp.org>
68756
68757         * lib/c-strstr.h: New file, from GNU gettext.
68758         * lib/c-strstr.c: New file, from GNU gettext.
68759
68760 2006-08-28  Bruno Haible  <bruno@clisp.org>
68761
68762         * gnulib-tool: Reorder some statements.
68763
68764 2006-08-28  Bruno Haible  <bruno@clisp.org>
68765
68766         * gnulib-tool: New option --makefile-name.
68767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68768         $makefile_name.
68769         (func_import): Write $makefile_name to the cache file, and read it from
68770         there unless explicitly specified. Use $makefile_name as file name
68771         instead of Makefile.am. Adjust the recommendations accordingly.
68772
68773 2006-08-28  Bruno Haible  <bruno@clisp.org>
68774
68775         * gnulib-tool (func_verify_module): Check against misapplying patch.
68776
68777 2006-08-28  Bruno Haible  <bruno@clisp.org>
68778
68779         * gnulib-tool (func_relativize, func_relconcat): New functions.
68780         Give an error if --local-dir is given with --update.
68781         Remove trailing slashes from $local_gnulib_dir.
68782         (func_import): Store the relativized $local_gnulib_dir in
68783         gnulib-cache.m4, and read it from there if not specified explicitly.
68784
68785 2006-08-28  Bruno Haible  <bruno@clisp.org>
68786
68787         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68788         is the current directory. Respect also $local_gnulib_dir.
68789
68790 2006-08-28  Bruno Haible  <bruno@clisp.org>
68791             Simon Josefsson  <jas@extundo.com>
68792
68793         BeOS portability.
68794         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68795
68796 2006-08-27  Jim Meyering  <jim@meyering.net>
68797
68798         * doc/visibility.texi: Remove duplicate word: "pointer".
68799
68800 2006-08-26  Bruno Haible  <bruno@clisp.org>
68801
68802         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68803         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68804         (Makefile.am): Create inttypes.h from inttypes_.h.
68805         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68806
68807         * modules/imaxabs: New file.
68808
68809         * modules/imaxdiv: New file.
68810
68811 2006-08-26  Bruno Haible  <bruno@clisp.org>
68812
68813         * m4/inttypes.m4: New file.
68814         * m4/_inttypes_h.m4: Remove file.
68815         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68816         PRI_MACROS_BROKEN.
68817         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68818
68819         * m4/imaxabs.m4: New file.
68820
68821         * m4/imaxdiv.m4: New file.
68822
68823 2006-08-26  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/inttypes_.h: New file.
68826         * lib/inttypes.h: Remove file.
68827         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68828
68829         * lib/imaxabs.c: New file.
68830
68831         * lib/imaxdiv.c: New file.
68832
68833 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         New config-h module, so that "make" output needn't be cluttered
68836         by -DHAVE_CONFIG_H.
68837         * MODULES.html.sh (Support for building libraries and executables):
68838         Add config-h.
68839         * modules/config-h: New file.
68840         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68841         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68842         the config-h module is used.
68843
68844         New configmake module, so that "make" output needn't be cluttered
68845         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68846         * MODULES.html.sh (Support for building libraries and executables):
68847         Add configmake.
68848         * modules/configmake: New file.
68849
68850 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * m4/config-h.m4: New file.
68853
68854 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * config/srclist.txt: Add elisp-comp.
68857
68858 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * MODULES.html.sh (Support for building libraries and executables):
68861         Add elisp-comp.
68862         * build-aux/elisp-comp: New file.
68863         * modules/elisp-comp: New file.
68864
68865 2006-08-24  Bruno Haible  <bruno@clisp.org>
68866
68867         * gnulib-tool (func_create_testdir): Use non-default values of
68868         sourcebase and m4base.
68869
68870 2006-08-24  Bruno Haible  <bruno@clisp.org>
68871
68872         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68873         HTML structure.
68874
68875 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68876
68877         * modules/openat (Depends-on): Add lchown.
68878
68879 2006-08-23  Bruno Haible  <bruno@clisp.org>
68880
68881         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68882         of gl_LOCK_EARLY instead of gl_LOCK.
68883
68884 2006-08-23  Bruno Haible  <bruno@clisp.org>
68885
68886         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68887         on OSF/1 to no.
68888         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68889
68890 2006-08-23  Bruno Haible  <bruno@clisp.org>
68891
68892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68893         as unusable.
68894
68895         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68896         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68897         (gl_LOCK): New macro.
68898
68899 2006-08-22  Simon Josefsson  <jas@extundo.com>
68900
68901         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68902         to md5 module.
68903
68904 2006-08-22  Simon Josefsson  <jas@extundo.com>
68905
68906         * MODULES.html.sh: Add "Support for maintaining and release
68907         projects".
68908
68909         * build-aux/gnupload: New file, from coreutils.
68910
68911 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         Avoid the need for AC_LIBSOURCES in m4 macros.
68914         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68915         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68916         * modules/check-version (EXTRA_DIST): Add check-version.h.
68917         * modules/crc (EXTRA_DIST): Add crc.h.
68918         * modules/des (EXTRA_DIST): Add des.h.
68919         * modules/gc (EXTRA_DIST): Add gc.h.
68920         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68921         * modules/getline (EXTRA_DIST): Add getline.h.
68922         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68923         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68924         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68925         * modules/md2 (EXTRA_DIST): Add md2.h.
68926         * modules/md4 (EXTRA_DIST): Add md4.h.
68927         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68928         * modules/read-file (EXTRA_DIST): Add read-file.h.
68929         * modules/readline (EXTRA_DIST): Add readline.h.
68930         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68931         rijndael-api-fst.h.
68932
68933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * m4/rijndael.m4 (gl_ARCFOUR):
68936         * m4/arctwo.m4 (gl_ARCTWO):
68937         * m4/check-version.m4 (gl_CHECK_VERSION):
68938         * m4/crc.m4 (gl_CRC):
68939         * m4/des.m4 (gl_DES):
68940         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68941         * m4/gc.m4 (gl_GC):
68942         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68943         * m4/getline.m4 (gl_FUNC_GETLINE):
68944         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68945         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68946         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68947         * m4/md2.m4 (gl_MD2):
68948         * m4/md4.m4 (gl_MD4):
68949         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68950         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68951         * m4/readline.m4 (gl_FUNC_READLINE):
68952         * m4/rijndael.m4 (gl_RIJNDAEL):
68953         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68954         to get the necessary .h files and whatnot.
68955
68956 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68957
68958         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68959         gnulib rather than the other way around.
68960         * config/srclistvars.sh (COREUTILS): Remove.
68961
68962 2006-08-22  Jim Meyering  <jim@meyering.net>
68963
68964         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68965
68966         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68967
68968 2006-08-22  Eric Blake  <ebb9@byu.net>
68969
68970         * modules/regexprops-generic: New file.
68971         * MODULES.html.sh (Support for building documentation): List it.
68972
68973 2006-08-22  Eric Blake  <ebb9@byu.net>
68974
68975         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68976         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68978         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68979
68980 2006-08-22  Bruno Haible  <bruno@clisp.org>
68981
68982         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68983         and lib_LTLIBRARIES like the other lib_* variables.
68984
68985 2006-08-22  Bruno Haible  <bruno@clisp.org>
68986
68987         * build-aux/x-to-1.in: New file, from GNU gettext.
68988
68989 2006-08-22  Bruno Haible  <bruno@clisp.org>
68990
68991         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68992         <utmpx.h> exists.
68993
68994 2006-08-22  Bruno Haible  <bruno@clisp.org>
68995
68996         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68997         <utmpx.h> exists.
68998
68999 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         BeOS portability.
69002         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69003         exist.
69004         Problem reported by Bruno Haible.
69005
69006 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         Avoid the need for AC_LIBSOURCES in m4 macros.
69009         * modules/acl (EXTRA_DIST): Add acl.h.
69010         * modules/argmatch (Files): Add m4/argmatch.m4.
69011         (configure.ac): Add gl_ARGMATCH.
69012         (EXTRA_DIST): Renamed from lib_SOURCES, for
69013         consistency with the other modules.  Remove argmatch.c.
69014         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69015         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69016         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69017         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69018         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69019         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69020         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69021         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69022         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69023         * modules/closeout (EXTRA_DIST): Add closeout.h.
69024         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69025         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69026         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69027         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69028         dirname.h; remove basename.c and stripslash.c.
69029         * modules/exclude (EXTRA_DIST): Add exclude.h.
69030         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69031         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69032         * modules/file-type (EXTRA_DIST): Add file-type.h.
69033         * modules/filemode (EXTRA_DIST): Add filemode.h.
69034         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69035         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69036         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69037         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69038         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69039         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69040         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69041         * modules/getdate (EXTRA_DIST): Add getdate.c.
69042         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69043         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69044         * modules/getpass (EXTRA_DIST): Add getpass.h.
69045         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69046         * modules/group-member (EXTRA_DIST): Add group-member.h.
69047         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69048         * modules/hash (EXTRA_DIST): Add hash.h.
69049         * modules/human (EXTRA_DIST): Add human.h.
69050         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69051         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69052         * modules/lchown (EXTRA_DIST): Add lchown.h.
69053         * modules/long-options (EXTRA_DIST): Add long-options.h.
69054         * modules/lstat (EXTRA_DIST): Add lstat.h.
69055         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69056         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69057         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69058         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69059         * modules/memxor (EXTRA_DIST): Add memxor.h.
69060         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69061         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69062         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69063         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69064         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69065         * modules/physmem (EXTRA_DIST): Add physmem.h.
69066         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69067         * modules/posixver (EXTRA_DIST): Add posixver.h.
69068         * modules/quote (EXTRA_DIST): Add quote.h.
69069         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69070         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69071         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69072         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69073         regex_internal.h regexec.c.
69074         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69075         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69076         * modules/same (EXTRA_DIST): Add same.h.
69077         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69078         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69079         * modules/savedir (EXTRA_DIST): Add savedir.h.
69080         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69081         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69082         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69083         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69084         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69085         * modules/strdup (EXTRA_DIST): Add strdup.h.
69086         * modules/strftime (EXTRA_DIST): Add strftime.h.
69087         * modules/strndup (EXTRA_DIST): Add strndup.h.
69088         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69089         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69090         * modules/time_r (EXTRA_DIST): Add time_r.h.
69091         * modules/timespec (EXTRA_DIST): Add timespec.h.
69092         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69093         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69094         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69095         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69096         * modules/userspec (EXTRA_DIST): Add userspec.h.
69097         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69098         * modules/utimens (EXTRA_DIST): Add utimens.h.
69099         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69100         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69101         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69102         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69103         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69104         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69105         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69106         * modules/yesno (EXTRA_DIST): Add yesno.h.
69107
69108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69111
69112         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69113         * m4/dev-ino.m4, same-inode.m4: Remove.
69114
69115         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69116         * m4/acl.m4 (AC_FUNC_ACL):
69117         * m4/backupfile.m4 (gl_BACKUPFILE):
69118         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69119         * m4/canon-host.m4 (gl_CANON_HOST):
69120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69122         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69123         * m4/cloexec.m4 (gl_CLOEXEC):
69124         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69125         * m4/closeout.m4 (gl_CLOSEOUT):
69126         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69127         * m4/dirname.m4 (gl_DIRNAME):
69128         * m4/exclude.m4 (gl_EXCLUDE):
69129         * m4/exitfail.m4 (gl_EXITFAIL):
69130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69131         * m4/file-type.m4 (gl_FILE_TYPE):
69132         * m4/filemode.m4 (gl_FILEMODE):
69133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69134         * m4/fpending.m4 (gl_FUNC_FPENDING):
69135         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69136         * m4/fts.m4 (gl_FUNC_FTS):
69137         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69138         * m4/getdate.m4 (gl_GETDATE):
69139         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69140         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69141         * m4/getpass.m4 (gl_FUNC_GETPASS):
69142         * m4/gettime.m4 (gl_GETTIME):
69143         * m4/getugroups.m4 (gl_GETUGROUPS):
69144         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69145         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69146         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69147         * m4/hash.m4 (gl_HASH):
69148         * m4/idcache.m4 (gl_IDCACHE):
69149         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69150         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69151         * m4/long-options.m4 (gl_LONG_OPTIONS):
69152         * m4/lstat.m4 (gl_FUNC_LSTAT):
69153         * m4/md5.m4 (gl_MD5):
69154         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69155         * m4/memcoll.m4 (gl_MEMCOLL):
69156         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69158         * m4/memxor.m4 (gl_MEMXOR):
69159         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69161         * m4/modechange.m4 (gl_MODECHANGE):
69162         * m4/mountlist.m4 (gl_MOUNTLIST):
69163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69164         * m4/openat.m4 (gl_FUNC_OPENAT):
69165         * m4/pathmax.m4 (gl_PATHMAX):
69166         * m4/physmem.m4 (gl_PHYSMEM):
69167         * m4/posixtm.m4 (gl_POSIXTM):
69168         * m4/posixver.m4 (gl_POSIXVER):
69169         * m4/quote.m4 (gl_QUOTE):
69170         * m4/quotearg.m4 (gl_QUOTEARG):
69171         * m4/readtokens.m4 (gl_READTOKENS):
69172         * m4/readutmp.m4 (gl_READUTMP):
69173         * m4/regex.m4 (gl_REGEX):
69174         * m4/safe-read.m4 (gl_SAFE_READ):
69175         * m4/safe-write.m4 (gl_SAFE_WRITE):
69176         * m4/same.m4 (gl_SAME):
69177         * m4/save-cwd.m4 (gl_SAVE_CWD):
69178         * m4/savedir.m4 (gl_SAVEDIR):
69179         * m4/settime.m4 (gl_SETTIME):
69180         * m4/sha1.m4 (gl_SHA1):
69181         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69182         * m4/stat-macros.m4 (gl_STAT_MACROS):
69183         * m4/stat-time.m4 (gl_STAT_TIME):
69184         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69185         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69186         * m4/strdup.m4 (gl_FUNC_STRDUP):
69187         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69188         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69189         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69190         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69191         * m4/time_r.m4 (gl_TIME_R):
69192         * m4/timespec.m4 (gl_TIMESPEC):
69193         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69194         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69195         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69196         * m4/userspec.m4 (gl_USERSPEC):
69197         * m4/utimecmp.m4 (gl_UTIMECMP):
69198         * m4/utimens.m4 (gl_UTIMENS):
69199         * m4/xalloc.m4 (gl_XALLOC):
69200         * m4/xgetcwd.m4 (gl_XGETCWD):
69201         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69202         * m4/xreadlink.m4 (gl_XREADLINK):
69203         * m4/xstrtod.m4 (gl_XSTRTOD):
69204         * m4/yesno.m4 (gl_YESNO):
69205         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69206         to get the necessary .h files and whatnot.
69207
69208 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69209             Bruno Haible  <bruno@clisp.org>
69210
69211         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69212         /bin/sh understanding of '!' conditional negation.
69213
69214 2006-08-21  Jim Meyering  <jim@meyering.net>
69215
69216         * modules/openat (Depends-on): Really alphabetize.
69217
69218         * modules/acl (Depends-on): Add error and quote.
69219
69220         * check-module (find_included_lib_files): Add at-func.c to the
69221         ok-to-include-more-than-once white list.
69222
69223         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69224
69225 2006-08-21  Bruno Haible  <bruno@clisp.org>
69226
69227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69228         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69229         Reported by Martin Lambers <marlam@marlam.de>.
69230
69231 2006-08-21  Bruno Haible  <bruno@clisp.org>
69232
69233         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69234         specify an installation location, don't emit a noinst_LIBRARIES or
69235         noinst_LTLIBRARIES assignment.
69236
69237 2006-08-21  Bruno Haible  <bruno@clisp.org>
69238
69239         BeOS portability.
69240         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69241         BeOS has mbrtowc() but no <wctype.h>.
69242
69243 2006-08-21  Bruno Haible  <bruno@clisp.org>
69244
69245         BeOS portability.
69246         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69247         exist.
69248
69249 2006-08-21  Bruno Haible  <bruno@clisp.org>
69250
69251         BeOS portability.
69252         * lib/mbchar.h: Include <wctype.h> only if it exists.
69253
69254 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69255
69256         Remove files that are no longer needed by their respective modules.
69257         * m4/obstack.m4: Remove.
69258         * m4/strerror_r.m4: Remove.
69259         * m4/uint32_t.m4: Remove.
69260         * m4/uintptr_t.m4: Remove.
69261         * m4/ullong_max.m4: Remove.
69262         * m4/xstrtoimax.m4: Remove.
69263         * m4/xstrtoumax.m4: Remove.
69264
69265         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69266         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69267         dependencies now capture this.
69268
69269         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69270         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69271         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69272         * m4/human.m4 (gl_HUMAN): Likewise.
69273         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69274         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69275
69276         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69277
69278         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69279         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69280         stdint.
69281         * m4/human.m4 (gl_HUMAN): Likewise.
69282         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69283         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69284         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69285         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69286         * m4/xstrtol (gl_XSTRTOL): Likewise.
69287
69288         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69289         AC_TYPE_LONG_LONG_INT.
69290         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69291         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69292         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69293         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69294
69295         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69296         on stdbool.
69297
69298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69299         (gl_PREREQ_XSTRTOUL): Remove.
69300
69301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69302
69303         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69304         mode.
69305
69306 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         Add and change modules to make it easier for coreutils to use
69309         gnulib-tool.
69310         * modules/backupfile (Files): Remove m4/d-ino.m4.
69311         (Depends-on): Add d-ino.
69312         * modules/cycle-check (Depends-on): Add stdint.
69313         (lib_SOURCES): Add cycle-check.h.
69314         * modules/d-ino: New module.
69315         * modules/d-type: New module.
69316         * modules/error (Files): Remove m4/strerror_r.m4.
69317         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69318         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69319         m4/inttypes_h.m4, m4/uintmax_t.m4.
69320         (Depends-on): Add stdint.
69321         (lib_SOURCES): Add fsusage.h.
69322         * modules/getcwd (Files): Remove d-ino.m4.
69323         (Depends-on): Add d-ino.
69324         * modules/getndelim2 (Depends-on): Add stdint.
69325         * modules/glob (Files): Remove m4/d-type.m4.
69326         (Depends-on): Add d-type.
69327         * modules/host-os: New module.
69328         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69329         m4/inttypes_h.m4, m4/uintmax_t.m4.
69330         * Depends-on: Add stdint.
69331         (lib_SOURCES): Add human.h.
69332         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69333         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69334         m4/uintmax_t.m4, m4/ulonglong.m4.
69335         (Depends-on): Add stdint.
69336         (EXTRA_DIST): Add inttostr.h.
69337         * modules/lchmod: New module.
69338         * modules/link-follow: New module.
69339         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69340         (Depends-on): Add lchmod.
69341         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69342         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69343         (Depends-on): Add stdint.
69344         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69345         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69346         (Depends-on): Add stdint.
69347         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69348         * modules/perl: New module.
69349         * modules/regex (Depends-on): Add stdint.
69350         * modules/rmdir-errno: New module.
69351         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69352         m4/intmax_t.m4.
69353         (Depends-on): Add stdint.
69354         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69355         m4/uintmax_t.m4.
69356         (Depends-on): Add stdint.
69357         * modules/unlink-busy: New module.
69358         * modules/utimecmp (Depends-on): Add stdint.
69359         * modules/uptime: New module.
69360         * modules/winsz-ioctl: New module.
69361         * modules/winsz-termios: New module.
69362         * modules/xnanosleep (Depends-on): Add nanosleep.
69363         * modules/ullong_max: Remove.
69364         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69365         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69366         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69367         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69368         (Depends-on): Add inttypes.
69369         (lib_SOURCES): Add xstrtol.h.
69370         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69371         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69372         * MODULES.html.sh: Move 'assert' into the assert section.
69373         Move 'dummy' into the linking section.
69374         Remove ullong_max.
69375         Add section for compatibility checks for POSIX:2001 functions,
69376         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69377         winsz-ioctl, and winsz-termios into it.
69378         Add lchmod.
69379         Add top-level Misc section and put host-os, perl, and uptime
69380         into it.
69381
69382 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69385         now assume the stdint module.  Do not include inttypes.h.
69386         * lib/fsusage.h: Likewise.
69387         * lib/getndelim2.c: Likewise.
69388         * lib/human.h: Likewise.
69389         * lib/inttostr.h: Likewise.
69390         * lib/obstack.c: Likewise.
69391         * lib/regex_internal.h: Likewise.
69392         * lib/tempname.c: Likewise.
69393         * lib/utimecmp.c: Likewise.
69394         * lib/xstrtol.h: Likewise.
69395
69396         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69397
69398         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69399         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69400         * lib/xtime.h: Likewise.
69401
69402 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * modules/openat (Files): Add lib/fchmodat.c.
69405         Fixes problem reported by Jay Youngman.
69406
69407 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69410         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69411
69412 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69413             Bruno Haible  <bruno@clisp.org>
69414
69415         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69416         and is a script that invokes bison. Tighten the code. Add comments.
69417
69418 2006-08-18  Jim Meyering  <jim@meyering.net>
69419
69420         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69421         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69422         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69423         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69424
69425 2006-08-18  Bruno Haible  <bruno@clisp.org>
69426
69427         * modules/bison-i18n: New file.
69428         * MODULES.html.sh (Internationalization functions): Add it.
69429
69430 2006-08-18  Bruno Haible  <bruno@clisp.org>
69431
69432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69433         sys/statvfs.h. When getmntinfo was found, check its declaration and
69434         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69435
69436 2006-08-18  Bruno Haible  <bruno@clisp.org>
69437
69438         * m4/bison-i18n.m4: New file, from bison.
69439
69440 2006-08-18  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69443         (ME_DUMMY): Treat "kernfs" as a dummy.
69444         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69445
69446 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         Update from coreutils.
69449
69450         2006-08-15  Jim Meyering  <jim@meyering.net>
69451
69452         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69453
69454         2006-01-17  Jim Meyering  <jim@meyering.net>
69455
69456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69457
69458         2006-01-11  Jim Meyering  <jim@meyering.net>
69459
69460         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69461         Check for the lchmod function.
69462
69463 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         Update from coreutils.
69466
69467         * lib/__fpending.h: Add copyright notice.
69468         * lib/fprintftime.h: Likewise.
69469         * lib/savedir.c: Use (C) in copyright notice.
69470         * lib/savedir.h: Likewise.
69471
69472         2006-08-15  Jim Meyering  <jim@meyering.net>
69473
69474         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69475         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69476         in support of the EXPECTED_ERRNO macro.
69477         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69478         definitions.  Instead, define the appropriate symbols and include
69479         "at-func.c".
69480         * lib/mkdirat.c (mkdirat): Likewise.
69481         * lib/fchmodat.c (fchmodat): Likewise.
69482         (ENOSYS): Remove definition.
69483         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69484         it.  Don't include "unistd--.h" -- it wasn't ever used.
69485
69486         2006-01-17  Jim Meyering  <jim@meyering.net>
69487
69488         Rewrite fts.c not to change the current working directory,
69489         by using openat, fstatat, fdopendir, etc..
69490
69491         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69492         (HAVE_OPENAT_SUPPORT): Define.
69493         [_LIBC] (fchdir): Don't undef or define; no longer used.
69494         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69495         Now, this `function' always succeeds, and consumes its file descriptor
69496         parameter -- so callers must not close such FDs.  Update callers.
69497         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69498         (diropen): Add parameter, SP.  Adjust all callers.
69499         Implement using diropen_fd, rather than open.
69500         (fts_open): Initialize new member, fts_cwd_fd.
69501         Remove fts_rft-setting code.
69502         (fts_close): Close fts_cwd_fd, if necessary.
69503         (__opendir2): Define in terms of opendir or opendirat,
69504         depending on whether the FST_NOCHDIR flag is set.
69505         (fts_build): Since fts_safe_changedir consumes its FD, and since
69506         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69507         and close the dup'd file descriptor upon failure.
69508         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69509         (fts_safe_changedir): Tweak semantics to reflect that this function
69510         now calls cwd_advance_fd and hence consumes its FD argument.
69511         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69512         [struct FTS] (fts_rft): Remove now-unused member.
69513         [struct FTS] (fts_cycle.state): Improve comment.
69514
69515         * lib/openat.c (openat_needs_fchdir): New function.
69516         * lib/openat.h (openat_needs_fchdir): Declare it.
69517
69518 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69521         Problem and fix reported by Pádraig Brady in
69522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69523
69524 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69527
69528 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69529
69530         * lib/memcoll.c (memcoll): Optimize for the common case where the
69531         arguments are bytewise equal.
69532
69533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * doc/regexprops-generic.texi: Add a copyright notice.
69536
69537 2006-08-15  Bruno Haible  <bruno@clisp.org>
69538
69539         * modules/tmpdir (License): Change to LGPL.
69540
69541 2006-08-15  Bruno Haible  <bruno@clisp.org>
69542
69543         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69544         module.
69545
69546 2006-08-14  Simon Josefsson  <jas@extundo.com>
69547
69548         * config/srclist.txt: Add gnupload.
69549
69550 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69551
69552         Change copyright notice from LGPL 2 to GPL 2, since that's the
69553         standard form used in the gnulib repository.
69554         * tests/test-lock.c: Likewise.
69555         * tests/test-stdint.c: Likewise.
69556         * tests/test-tls.c: Likewise.
69557
69558         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69559         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69560         Add copyright notice.
69561
69562         * check-module: Add copyright notice.  Output a copyright
69563         notice if "--version" is specified.
69564         * modules/COPYING: New file.
69565         * tests/test-getaddrinfo.c: Add copyright notice.
69566         * tests/test-verify.c: Likewise.
69567
69568 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         Change copyright notice from LGPL 2 to GPL 2, since that's the
69571         standard form used in the gnulib repository.
69572         * lib/lock.c: LGPL -> GPL.
69573         * lib/lock.h: Likewise.
69574         * lib/strnlen1.c: Likewise.
69575         * lib/strnlen1.h: Likewise.
69576         * lib/tls.c: Likewise.
69577         * lib/tls.h: Likewise.
69578         * lib/tmpdir.c: Likewise.
69579
69580         * lib/TODO: Remove; this belongs only in coreutils.
69581
69582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         Add copyright notices to long-enough files that lack them, since
69585         otherwise the files aren't clearly free.  Use the same notice that
69586         getdate.texi already uses.
69587         * doc/alloca-opt.texi: Add copyright notice.
69588         * doc/alloca.texi: Likewise.
69589         * doc/ctime.texi: Likewise.
69590         * doc/functions.texi: Likewise.
69591         * doc/gcd.texi: Likewise.
69592         * doc/gnulib-tool.texi: Likewise.
69593         * doc/inet_ntoa.texi: Likewise.
69594         * doc/visibility.texi: Likewise.
69595
69596         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69597         * doc/quote.texi: Add copyright notice.
69598
69599         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69600         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69601         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69602         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69603         is now obsolete, and give a pointer to the Sun list.
69604         Add copyright notice.
69605
69606 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * config/srclistvars.sh: Add copyright notice.
69609
69610 2006-08-14  Eric Blake  <ebb9@byu.net>
69611
69612         Import the following change from libc:
69613
69614         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69615
69616         Upstream bug 2997.
69617         * lib/misc/error.c: Add space between program name and message if file
69618         name is missing.
69619
69620 2006-08-12  Karl Berry  <karl@gnu.org>
69621
69622         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69623         remove, these originate in gnulib now.
69624
69625 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69626
69627         * doc/Makefile (standards.info standards.html standards.dvi):
69628         Also depend on make-stds.texi.
69629
69630 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69633         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69634
69635         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69636         in wchar_t.  Problem reported by Eric Blake.
69637
69638         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69639         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69640         Also, help the compiler to keep LEN in a register.
69641
69642 2006-08-11  Eric Blake  <ebb9@byu.net>
69643
69644         * users.txt: Sort.  Add tar.
69645
69646 2006-08-11  Bruno Haible  <bruno@clisp.org>
69647
69648         * users.txt: New file.
69649
69650 2006-08-11  Bruno Haible  <bruno@clisp.org>
69651
69652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69653         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69654
69655 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * modules/snprintf (Depends-on): Remove minmax.
69658         (Maintainer): Add self and Bruno.
69659
69660 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69663         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69664         (EOVERFLOW): Define if the system does not.
69665         Do not include "minmax.h"; it wasn't used.
69666         (snprintf): Don't assume size_t promotes to an unsigned type.
69667         Fix bug when generated string was too long for the buffer: the
69668         buffer's contents are supposed to be the initial prefix of the
69669         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69670         exceeds INT_MAX; do the check ourselves.
69671
69672         Import the following changes from libc:
69673
69674         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69675
69676         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69677         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69678         set wc to the byte which couldn't be converted.
69679         (re_string_reconstruct): Don't clear valid_raw_len before calling
69680         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69681         tip_context using re_string_context_at.
69682
69683         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69684
69685         * lib/posix/regex.h: g++ still cannot handled [restrict].
69686
69687         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69688
69689         * lib/posix/regex.h: Remove special handling for VMS.
69690
69691 2006-08-10  Jim Meyering  <jim@meyering.net>
69692
69693         * modules/same-inode: New module.
69694         * modules/dev-ino: New module.
69695         * modules/cycle-check: Depend on these modules, rather than simply
69696         including their .h files.
69697         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69698         required via m4/cycle-check.m4.
69699         * modules/same: Depend on new same-inode module, rather than
69700         including same-inode.h.
69701         * modules/chdir-safer: New file.
69702
69703         * modules/chown (Depends-on): Add stat-macros.
69704
69705 2006-08-10  Jim Meyering  <jim@meyering.net>
69706
69707         * m4/cycle-check.m4: New file.
69708         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69709         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69710
69711 2006-08-10  Eric Blake  <ebb9@byu.net>
69712
69713         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69714         in from original proposal.
69715
69716 2006-08-10  Eric Blake  <ebb9@byu.net>
69717         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69718
69719         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69720         namespace.
69721
69722 2006-08-10  Bruno Haible  <bruno@clisp.org>
69723
69724         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69725         as well.
69726
69727 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69728
69729         Sync from coreutils.
69730
69731         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69732
69733         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69734         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69735
69736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * modules/restrict: Remove; no longer needed now that we assume
69739         Autoconf 2.59 or later.
69740         * MODULES.html.sh: Remove 'restrict'.
69741         * modules/argp (Depends-on): Remove 'restrict'.
69742         * modules/base64 (Depends-on): Likewise.
69743         * modules/gc (Depends-on): Likewise.
69744         * modules/getaddrinfo (Depends-on): Likewise.
69745         * modules/glob (Depends-on): Likewise.
69746         * modules/inet_ntop (Depends-on): Likewise.
69747         * modules/inet_pton (Depends-on): Likewise.
69748         * modules/memxor (Depends-on): Likewise.
69749         * modules/regex (Depends-on): Likewise.
69750         * modules/strtok_r (Depends-on): Likewise.
69751         * modules/time_r (Depends-on): Likewise.
69752
69753 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69754
69755         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69756         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69757         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69758         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69759         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69760         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69761         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69762         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69763
69764         Merge from coreutils.
69765         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69766         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69768         * m4/time_r.m4 (gl_TIME_R): Likewise.
69769
69770 2006-08-09  Karl Berry  <karl@gnu.org>
69771
69772         * config/srclist.txt: no more gettext-tools, per Bruno.
69773
69774 2006-08-08  Eric Blake  <ebb9@byu.net>
69775
69776         * modules/verror: New module.
69777         * MODULES.html.sh: Document it.
69778
69779 2006-08-08  Eric Blake  <ebb9@byu.net>
69780
69781         * lib/verror.h, lib/verror.c: New files.
69782
69783 2006-08-08  Eric Blake  <ebb9@byu.net>
69784
69785         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69786         verror_at_line output complies with GNU Coding Standards even when
69787         file is NULL.
69788
69789 2006-08-07  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69792         versions of AIX.
69793         Reported by Ralf Wildenhues.
69794
69795 2006-08-07  Bruno Haible  <bruno@clisp.org>
69796
69797         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69798         in an AC_DEFUN. Needed so that the autoconf snippets can use
69799         AC_REQUIRE.
69800
69801 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69802
69803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69804         Initialize pkgdata_DATA.
69805         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69806         overriding it.
69807
69808 2006-08-06  Eric Blake  <ebb9@byu.net>
69809
69810         * lib/error.h: Fold in some upstream changes from glibc.
69811         * lib/error.c: Likewise.
69812
69813 2006-08-04  Bruno Haible  <bruno@clisp.org>
69814
69815         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69816         Make the mostlyclean-local rule depend on mostlyclean-generic.
69817         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69818
69819 2006-07-31  Bruno Haible  <bruno@clisp.org>
69820
69821         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69822         <stdlib.h>, <string.h>.
69823
69824 2006-07-30  Bruno Haible  <bruno@clisp.org>
69825
69826         * modules/readlink (License): Change to LGPL.
69827
69828 2006-07-30  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69831         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69832         set PKGDATADIR to point to it.
69833
69834 2006-07-30  Bruno Haible  <bruno@clisp.org>
69835
69836         * modules/csharpexec (configure.ac): Comment out macro invocation.
69837         * modules/javaexec (configure.ac): Likewise.
69838         * modules/javacomp-script (configure.ac): Likewise.
69839
69840         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69841
69842 2006-07-30  Bruno Haible  <bruno@clisp.org>
69843
69844         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69845         linked-list.
69846
69847 2006-07-30  Bruno Haible  <bruno@clisp.org>
69848
69849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69850
69851 2006-07-30  Bruno Haible  <bruno@clisp.org>
69852
69853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69854         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69855         get removed.
69856
69857 2006-07-29  Bruno Haible  <bruno@clisp.org>
69858
69859         Make it possible for gnulib-tool to work with locally modified or
69860         augmented gnulib repositories.
69861         * gnulib-tool (func_usage): Document --local-dir option.
69862         (local_gnulib_dir): New variable.
69863         Handle --local-dir option.
69864         (func_lookup_file): New function.
69865         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69866         (func_get_description, func_get_filelist, func_get_description,
69867         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69868         func_get_automake_snippet, func_get_include_directive,
69869         func_get_license, func_get_maintainer): Use func_lookup_file.
69870         (func_import, func_create_testdir): Use func_lookup_file.
69871
69872 2006-07-29  Bruno Haible  <bruno@clisp.org>
69873
69874         * modules/setenv (Depends-on): Add unistd.
69875
69876 2006-07-29  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69879
69880 2006-07-29  Bruno Haible  <bruno@clisp.org>
69881
69882         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69883
69884 2006-07-29  Bruno Haible  <bruno@clisp.org>
69885
69886         * gnulib-tool (import, update): If there is no Makefile.am, look at
69887         aclocal.m4, instead of bailing out.
69888
69889 2006-07-29  Bruno Haible  <bruno@clisp.org>
69890
69891         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69892         Categorize the options by when they are useful.
69893
69894 2006-07-29  Bruno Haible  <bruno@clisp.org>
69895
69896         * gnulib-tool (func_usage): Document option --no-libtool.
69897         Handle option --no-libtool.
69898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69899         for changed semantics of $libtool variable.
69900         (func_import): Likewise. If libtool is not used, show this through
69901         an option --no-libtool.
69902         (func_create_testdir): Update.
69903
69904 2006-07-29  Bruno Haible  <bruno@clisp.org>
69905
69906         * gnulib-tool (func_import): Extend error message about missing
69907         --doc-base.
69908
69909 2006-07-29  Bruno Haible  <bruno@clisp.org>
69910
69911         * gnulib-tool (func_import): Don't create the $docbase directory if
69912         there is no file to store there.
69913
69914 2006-07-29  Bruno Haible  <bruno@clisp.org>
69915
69916         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69917         relevant, look for configure.ac there, not in the current directory.
69918         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69919
69920 2006-07-29  Bruno Haible  <bruno@clisp.org>
69921
69922         * gnulib-tool (SORT): New variable.
69923         (func_usage): Undocument --assume-autoconf option.
69924         Remove --assume-autoconf option handling.
69925         (autoconf_minversion): Determine from the contents of configure.ac.
69926         (func_import): Remove autoconf_minversion handling.
69927         Suggested by Eric Blake.
69928
69929 2006-07-29  Bruno Haible  <bruno@clisp.org>
69930
69931         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69932
69933 2006-07-29  Bruno Haible  <bruno@clisp.org>
69934
69935         * config/srclist.txt (*setenv.[ch]): Remove rules.
69936
69937 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69938
69939         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69940
69941 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69942
69943         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69944         arpa/inet.h.
69945
69946 2006-07-28  Simon Josefsson  <jas@extundo.com>
69947
69948         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69949         * modules/inet_pton (Depends-on): Likewise.
69950
69951 2006-07-28  Simon Josefsson  <jas@extundo.com>
69952
69953         * m4/netinet_in_h.m4: New file.
69954
69955 2006-07-28  Simon Josefsson  <jas@extundo.com>
69956
69957         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69958         #include's.
69959
69960 2006-07-28  Simon Josefsson  <jas@extundo.com>
69961
69962         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69963         #include's.
69964
69965 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69968         setgid on directories only if they set these bits.
69969         * lib/modechange.h: Remove obsolete comment about masks.
69970
69971 2006-07-28  Eric Blake  <ebb9@byu.net>
69972
69973         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69974         macro expansion.
69975
69976 2006-07-28  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69979
69980 2006-07-28  Bruno Haible  <bruno@clisp.org>
69981
69982         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69983
69984 2006-07-28  Bruno Haible  <bruno@clisp.org>
69985
69986         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69987         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69988         Define fallbacks.
69989         Avoids link error on FreeBSD 4.x.
69990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69991
69992         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69993         encoding.
69994         * lib/mbswidth.c (iswcntrl): Likewise.
69995
69996 2006-07-27  Bruno Haible  <bruno@clisp.org>
69997
69998         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69999         test.
70000
70001 2006-07-27  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70004         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70005         defined.
70006
70007 2006-07-26  Eric Blake  <ebb9@byu.net>
70008
70009         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70010
70011 2006-07-26  Eric Blake  <ebb9@byu.net>
70012
70013         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70014         like mingw that lack mkstemp.
70015         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70016         avoid compilation warning on mingw.
70017
70018 2006-07-26  Bruno Haible  <bruno@clisp.org>
70019
70020         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70021         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70022         INT_FAST*_MIN, INTPTR_MIN.
70023
70024 2006-07-25  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/version-etc (Depends-on): Add stdarg.
70027
70028 2006-07-25  Bruno Haible  <bruno@clisp.org>
70029
70030         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70031         complex commands.
70032
70033 2006-07-25  Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70036         defined in <stdarg.h> or config.h.
70037
70038 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70041         (gl_STDIO_SAFER): Remove.
70042
70043 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * MODULES.html.sh (File stream based Input/Output):
70046         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70047         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70048         * modules/fopen-safer, modules/tmpfile-safer: New files.
70049         * modules/stdio-safer: Remove.
70050
70051 2006-07-24  Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/tmpdir: New file.
70054         * MODULES.html.sh (File system functions): Add it.
70055
70056 2006-07-24  Bruno Haible  <bruno@clisp.org>
70057
70058         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70059         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70060
70061 2006-07-24  Bruno Haible  <bruno@clisp.org>
70062
70063         * modules/clean-temp: New file.
70064
70065 2006-07-24  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/tmpdir.m4: New file, from GNU gettext.
70068
70069 2006-07-24  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/tmpdir.h: New file, from GNU gettext.
70072         * lib/tmpdir.c: New file, from GNU gettext.
70073
70074 2006-07-24  Bruno Haible  <bruno@clisp.org>
70075
70076         * lib/clean-temp.h: New file, from GNU gettext.
70077         * lib/clean-temp.c: New file, from GNU gettext.
70078
70079 2006-07-23  Eric Blake  <ebb9@byu.net>
70080
70081         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70082         (Depends-on): Add binary-io.
70083
70084 2006-07-23  Eric Blake  <ebb9@byu.net>
70085
70086         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70087
70088 2006-07-23  Eric Blake  <ebb9@byu.net>
70089
70090         * lib/tmpfile-safer.c: New file.
70091         * lib/stdio-safer.h (fopen_safer): Add prototype.
70092         * lib/stdio--.h (tmpfile): Make safer.
70093
70094 2006-07-23  Bruno Haible  <bruno@clisp.org>
70095
70096         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70097         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70098         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70099         gl_linked_remove_at): Use it.
70100
70101 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70102         and Simon Josefsson <jas@extundo.com>
70103
70104         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70105
70106         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70107
70108 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * modules/close-stream: New file.
70111         * modules/closeout (Description): Make it clear that it exits
70112         with a diagnostic on error.
70113         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70114         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70115
70116 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70117
70118         * m4/close-stream.m4: New file.
70119
70120 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * lib/close-stream.c, lib/close-stream.h: New files.
70123
70124 2006-07-22  Bruno Haible  <bruno@clisp.org>
70125
70126         Merge from GNU gettext 0.15.
70127
70128         2006-05-01  Bruno Haible  <bruno@clisp.org>
70129
70130                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70131
70132         2006-07-22  Bruno Haible  <bruno@clisp.org>
70133
70134                 * modules/javaversion: New file.
70135                 * MODULES.html.sh (Java): Add javaversion.
70136
70137         2006-03-12  Bruno Haible  <bruno@clisp.org>
70138
70139                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70140
70141         2005-12-04  Bruno Haible  <bruno@clisp.org>
70142
70143                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70144                 (untested).
70145
70146         2006-06-21  Bruno Haible  <bruno@clisp.org>
70147
70148                 Avoid warnings from recent versions of mcs.
70149                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70150                 -o, -L, -r any more. Use options documented since mcs-1.0
70151                 instead. Similarly for -g.
70152
70153         2005-12-04  Bruno Haible  <bruno@clisp.org>
70154
70155                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70156                 .resources, not .resource.
70157
70158         2005-07-09  Bruno Haible  <bruno@clisp.org>
70159
70160                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70161                 add a .dll suffix.
70162                 Reported by Mark Junker <mjscod@gmx.de>.
70163
70164         2006-07-22  Bruno Haible  <bruno@clisp.org>
70165
70166                 * modules/gettext: Upgrade to gettext-0.15.
70167                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70168                 m4/visibility.m4.
70169                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70170
70171 2006-07-22  Bruno Haible  <bruno@clisp.org>
70172
70173         Merge from GNU gettext 0.15.
70174
70175         2006-03-25  Bruno Haible  <bruno@clisp.org>
70176
70177                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70178
70179         2006-07-21  Bruno Haible  <bruno@clisp.org>
70180
70181                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70182                 "1.1".
70183
70184         2006-05-09  Bruno Haible  <bruno@clisp.org>
70185
70186                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70187                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70188                 for the conftestver execution.
70189
70190         2006-05-01  Bruno Haible  <bruno@clisp.org>
70191
70192                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70193                 optional target-version argument. Verify that the compiler
70194                 groks source of the specified source-version, or add -source
70195                 option as necessary. Verify that the compiler produces
70196                 bytecode in the specified target-version, or add -target and
70197                 -source options as necessary. Make the result of the test
70198                 available as variable CONF_JAVAC. Also log error output in
70199                 config.log.
70200
70201         2006-03-11  Bruno Haible  <bruno@clisp.org>
70202
70203                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70204
70205         2006-05-09  Bruno Haible  <bruno@clisp.org>
70206
70207                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70208                 CLASSPATH_SEPARATOR to a semicolon.
70209
70210         2006-03-12  Bruno Haible  <bruno@clisp.org>
70211
70212                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70213                 available as variable CONF_JAVA, for subsequent autoconf
70214                 tests. Also log error output in config.log.
70215
70216         2006-07-19  Bruno Haible  <bruno@clisp.org>
70217
70218                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70219                 that getline works on glibc2 systems. Needed to avoid trouble
70220                 in relocatable.c.
70221                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70222
70223         2005-12-04  Bruno Haible  <bruno@clisp.org>
70224
70225                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70226                 launcher (untested).
70227
70228         2005-12-04  Bruno Haible  <bruno@clisp.org>
70229
70230                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70231
70232         2006-07-22  Bruno Haible  <bruno@clisp.org>
70233
70234                 * gettext.m4: Update from GNU gettext-0.15.
70235                 * nls.m4: Likewise.
70236                 * po.m4: Likewise.
70237                 * inttypes-pri.m4: Likewise.
70238                 * inttypes-h.m4: Renamed from inttypes.m4.
70239                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70240
70241 2006-07-22  Bruno Haible  <bruno@clisp.org>
70242
70243         Merge from GNU gettext 0.15.
70244
70245         2005-07-05  Bruno Haible  <bruno@clisp.org>
70246
70247                 * printf-args.c (printf_fetchargs): Work around broken
70248                 definition of wint_t on mingw.
70249
70250         2005-02-12  Bruno Haible  <bruno@clisp.org>
70251
70252                 * xallocsa.h: Add extern "C" for C++.
70253
70254         2006-05-17  Bruno Haible  <bruno@clisp.org>
70255
70256                 Cygwin portability.
70257                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70258
70259         2006-04-30  Bruno Haible  <bruno@clisp.org>
70260
70261                 * progreloc.c: Include <mach-o/dyld.h> if available.
70262                 (find_executable): Use _NSGetExecutablePath when possible.
70263
70264         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70265
70266                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70267                 function.
70268
70269         2005-12-29  Bruno Haible  <bruno@clisp.org>
70270
70271                 * progreloc.c (set_program_name_and_installdir): Fix
70272                 compilation error.
70273
70274         2005-12-04  Bruno Haible  <bruno@clisp.org>
70275
70276                 Cygwin portability.
70277                 * progreloc.c: Include <windows.h> also on Cygwin.
70278                 (find_executable): Add support for Cygwin.
70279                 (set_program_name_and_installdir): Handle also platforms with
70280                 nonempty EXEEXT.
70281
70282         2006-07-11  Bruno Haible  <bruno@clisp.org>
70283
70284                 * javacomp.c: Fix a comment.
70285                 Reported by Jim Meyering.
70286
70287         2006-04-30  Bruno Haible  <bruno@clisp.org>
70288
70289                 * javacomp.h (compile_java_class): Add source_version,
70290                 target_version arguments.
70291                 * javacomp.c: Rewritten to choose only a compiler that
70292                 respects the specified source_version and target_version.
70293
70294         2006-06-27  Bruno Haible  <bruno@clisp.org>
70295
70296                 Assume correct S_ISDIR macro.
70297                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70298
70299         2006-07-22  Bruno Haible  <bruno@clisp.org>
70300
70301                 * javaversion.h: New file, from GNU gettext.
70302                 * javaversion.c: New file, from GNU gettext.
70303                 * javaversion.java: New file, from GNU gettext.
70304                 * javaversion.class: New file, from GNU gettext.
70305
70306         2006-05-17  Bruno Haible  <bruno@clisp.org>
70307
70308                 Cygwin portability.
70309                 * javaexec.c (execute_java_class): Test for jview program
70310                 also on Cygwin.
70311
70312         2006-04-09  Bruno Haible  <bruno@clisp.org>
70313
70314                 * fatal-signal.c: Don't include string.h.
70315                 (at_fatal_signal): Use a copying loop instead of memcpy.
70316
70317         2005-12-04  Bruno Haible  <bruno@clisp.org>
70318
70319                 * csharpexec.c: Add support for 'clix' launcher (untested).
70320                 (execute_csharp_using_sscli): New function.
70321                 (execute_csharp_program): Call it.
70322
70323         2006-06-21  Bruno Haible  <bruno@clisp.org>
70324
70325                 Avoid warnings from recent versions of mcs.
70326                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70327                 -o, -L, -r any more. Use options documented since mcs-1.0
70328                 instead. Similarly for -g.
70329
70330         2005-07-09  Bruno Haible  <bruno@clisp.org>
70331
70332                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70333                 add a .dll suffix.
70334                 Reported by Mark Junker <mjscod@gmx.de>.
70335
70336         2006-06-17  Bruno Haible  <bruno@clisp.org>
70337
70338                 * config.charset: Update for NetBSD 3.0.
70339
70340         2006-05-17  Bruno Haible  <bruno@clisp.org>
70341
70342                 Cygwin portability.
70343                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70344
70345         2006-05-16  Bruno Haible  <bruno@clisp.org>
70346
70347                 * localcharset.c [CYGWIN]: Include <windows.h>.
70348                 (get_charset_aliases): For Cygwin, return the same CPxxx
70349                 aliases list as under WIN32.
70350                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70351                 the environment variables. Fall back to GetACP().
70352
70353         2006-04-05  Bruno Haible  <bruno@clisp.org>
70354
70355                 * config.charset: Update Juan Manuel Guerrero's address.
70356
70357         2005-02-12  Bruno Haible  <bruno@clisp.org>
70358
70359                 * allocsa.h: Add extern "C" for C++.
70360
70361         2005-02-10  Bruno Haible  <bruno@clisp.org>
70362
70363                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70364                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70365
70366         2006-07-22  Bruno Haible  <bruno@clisp.org>
70367
70368                 * gettext.h: Update to GNU gettext-0.15.
70369
70370 2006-07-22  Bruno Haible  <bruno@clisp.org>
70371
70372         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70373         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70374         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70375
70376 2006-07-21  Eric Blake  <ebb9@byu.net>
70377
70378         * modules/stdlib-safer: New file.
70379         * MODULES.html.sh (File stream based Input/Output): Add
70380         stdlib-safer.
70381
70382 2006-07-21  Eric Blake  <ebb9@byu.net>
70383
70384         * lib/stdlib-safer.h: New file from coreutils, required by
70385         stdlib--.h.
70386
70387 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70390
70391 2006-07-20  Bruno Haible  <bruno@clisp.org>
70392
70393         * gnulib-tool: Recognize new option --assume-autoconf.
70394         (autoconf_minversion): New variable.
70395         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70396
70397 2006-07-20  Bruno Haible  <bruno@clisp.org>
70398
70399         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70400
70401 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70402
70403         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70404         Reindent and repaginate.
70405
70406 2006-07-19  Derek Price  <derek@ximbiot.com>
70407
70408         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70409         Correct grammar.
70410
70411 2006-07-17  Bruno Haible  <bruno@clisp.org>
70412
70413         * modules/list: New file.
70414         * modules/array-list: New file.
70415         * modules/carray-list, modules/carray-list-tests: New files.
70416         * modules/linked-list, modules/linked-list-tests: New files.
70417         * modules/avltree-list, modules/avltree-list-tests: New files.
70418         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70419         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70420         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70421         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70422         * modules/oset: New file.
70423         * modules/array-oset: New file.
70424         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70425         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70426         * tests/test-carray_list.c: New file.
70427         * tests/test-linked_list.c: New file.
70428         * tests/test-avltree_list.c: New file.
70429         * tests/test-rbtree_list.c: New file.
70430         * tests/test-linkedhash_list.c: New file.
70431         * tests/test-avltreehash_list.c: New file.
70432         * tests/test-rbtreehash_list.c: New file.
70433         * tests/test-avltree_oset.c: New file.
70434         * tests/test-rbtree_oset.c: New file.
70435         * MODULES.html.sh (Container data structures): New section.
70436
70437 2006-07-17  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/gl_list.m4: New file.
70440
70441 2006-07-17  Bruno Haible  <bruno@clisp.org>
70442
70443         * lib/gl_list.h: New file.
70444         * lib/gl_list.c: New file.
70445         * lib/gl_array_list.h: New file.
70446         * lib/gl_array_list.c: New file.
70447         * lib/gl_carray_list.h: New file.
70448         * lib/gl_carray_list.c: New file.
70449         * lib/gl_linked_list.h: New file.
70450         * lib/gl_linked_list.c: New file.
70451         * lib/gl_anylinked_list1.h: New file.
70452         * lib/gl_anylinked_list2.h: New file.
70453         * lib/gl_avltree_list.h: New file.
70454         * lib/gl_avltree_list.c: New file.
70455         * lib/gl_anyavltree_list1.h: New file.
70456         * lib/gl_anyavltree_list2.h: New file.
70457         * lib/gl_rbtree_list.h: New file.
70458         * lib/gl_rbtree_list.c: New file.
70459         * lib/gl_anyrbtree_list1.h: New file.
70460         * lib/gl_anyrbtree_list2.h: New file.
70461         * lib/gl_anytree_list1.h: New file.
70462         * lib/gl_anytree_list2.h: New file.
70463         * lib/gl_linkedhash_list.h: New file.
70464         * lib/gl_linkedhash_list.c: New file.
70465         * lib/gl_anyhash_list1.h: New file.
70466         * lib/gl_anyhash_list2.h: New file.
70467         * lib/gl_avltreehash_list.h: New file.
70468         * lib/gl_avltreehash_list.c: New file.
70469         * lib/gl_rbtreehash_list.h: New file.
70470         * lib/gl_rbtreehash_list.c: New file.
70471         * lib/gl_anytreehash_list1.h: New file.
70472         * lib/gl_anytreehash_list2.h: New file.
70473
70474         * lib/gl_oset.h: New file.
70475         * lib/gl_oset.c: New file.
70476         * lib/gl_array_oset.h: New file.
70477         * lib/gl_array_oset.c: New file.
70478         * lib/gl_avltree_oset.h: New file.
70479         * lib/gl_avltree_oset.c: New file.
70480         * lib/gl_rbtree_oset.h: New file.
70481         * lib/gl_rbtree_oset.c: New file.
70482         * lib/gl_anytree_oset.h: New file.
70483
70484 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * m4/mkancesdirs.m4: New file.
70487         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70488         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70489         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70490         it.
70491
70492 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70495         * lib/mkancesdirs.h: New files.
70496         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70497         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70498         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70499         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70500         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70501         callers changed.  Revamp internals significantly, by not
70502         attempting to create directories that are temporarily more
70503         permissive than the final results.  Do not attempt to use
70504         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70505         This removes some race conditions, fixes some bugs, and simplifies
70506         things.  Use new dirchownmod function to do owner and mode changes.
70507         * lib/mkdir-p.h: Likewise.
70508         * lib/modechange.c (octal_to_mode): New function.
70509         (struct mode_change): New member mentioned.
70510         (make_node_op_equals): New arg mentioned.  All callers changed.
70511         (mode_compile): Keep track of which mode bits the user has explicitly
70512         mentioned.
70513         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70514         New arg PMODE_BITS, to keep track of which mode bits the user
70515         mentioned; it treats S_ISUID and S_ISGID speciall.
70516         All callers changed.
70517         * lib/modechange.h: Likewise.
70518
70519 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * MODULES.html.sh: Add mkancestors.
70522         * modules/mkancesdirs: New module.
70523         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70524         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70525         The chdir-safer and afs files are now orphans; I'll remove them
70526         unless someone speaks up.
70527         Add lib/dirchownmod.c, lib/dirchownmod.h.
70528         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70529         Add lchown, mkancesdirs.
70530         (Maintainer): Add self.
70531
70532 2006-07-15  Karl Berry  <karl@gnu.org>
70533
70534         * gnulib-tool: help message wording/arrangement.
70535
70536 2006-07-14  Simon Josefsson  <jas@extundo.com>
70537
70538         * doc/gnulib.texi (Libtool and Windows): New section.
70539
70540 2006-07-12  Simon Josefsson  <jas@extundo.com>
70541
70542         * modules/gendocs (License): Fix license, approved by Karl.
70543
70544 2006-07-12  Eric Blake  <ebb9@byu.net>
70545
70546         * MODULES.html.sh: Add gendocs.
70547
70548 2006-07-11  Eric Blake  <ebb9@byu.net>
70549
70550         * modules/fdl: New module, to install doc/fdl.texi.
70551         * MODULES.html.sh: Add new section for documentation modules.
70552         * gnulib-tool: Avoid space-tab.
70553         (--doc-base): New option, to manage files from doc.
70554
70555 2006-07-11  Eric Blake  <ebb9@byu.net>
70556
70557         * m4/absolute-header.m4: Fix comments to match recent change.
70558
70559 2006-07-11  Eric Blake  <ebb9@byu.net>
70560
70561         * gnulib-tool: List --doc-base before --tests-base.
70562
70563 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70564
70565         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70566
70567 2006-07-11  Bruno Haible  <bruno@clisp.org>
70568
70569         * README: Mention where to put documentation.
70570
70571 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70572
70573         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70574
70575 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70578         to stdint.m4.
70579
70580 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70583         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70584         "no/such/file/stdint.h" when there is no such file, so that
70585         the resulting C code can be parsed by dodgy compilers.
70586         Problems reported by Bob Proulx.
70587
70588 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70589
70590         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70591         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70592         macros into the GNU _D_EXACT_NAMLEN.
70593         * lib/savedir.c:  Likewise.
70594         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70595
70596 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70597         and Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70600         * m4/savedir.m4:
70601         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70602         macros into the GNU _D_EXACT_NAMLEN.
70603
70604 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70607         around the absolute name, to work around a problem with the HP-UX
70608         11.23 native C compiler, reported by Bob Proulx.
70609
70610 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         * doc/maintain.texi, make-stds.texi: Sync from
70613         <http://savannah.gnu.org/projects/gnustandards>.
70614
70615 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70618
70619 2006-07-09  Jim Meyering  <jim@meyering.net>
70620
70621         * m4/glob.m4: Remove a doubled word in a comment.
70622
70623 2006-07-09  Jim Meyering  <jim@meyering.net>
70624
70625         * lib/argp-pv.c: Remove a doubled word in a comment.
70626         * lib/check-version.c (check_version): Likewise.
70627         * lib/javacomp.c (compile_java_class): Likewise.
70628
70629 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70632         for the benefit of people using Autoconf 2.60.  If you want to
70633         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70634         (or m4/onceonly.m4, if pre-2.57) manually.
70635
70636 2006-07-08  Jim Meyering  <jim@meyering.net>
70637
70638         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70639         comment.
70640         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70641         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70642         comment.
70643
70644 2006-07-08  Jim Meyering  <jim@meyering.net>
70645
70646         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70647
70648 2006-07-07  Simon Josefsson  <jas@extundo.com>
70649
70650         * tests/test-crc.c: Change expected crc value, the test vector
70651         were probably computed using the old broken crc.c?
70652
70653 2006-07-06  Simon Josefsson  <jas@extundo.com>
70654
70655         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70656         now the canonical place for the M4 file).
70657
70658         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70659         from the sys_socket dependency now.
70660
70661         * modules/inet_pton (Files): Ditto.
70662
70663         * modules/inet_ntop (Files): Ditto.
70664
70665 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70666
70667         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70668         not gl_PREREQ_GETUSERSHELL.
70669
70670 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70671
70672         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70673         with only one argument, for Autoconf 2.60.
70674         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70675         expand to nothing, so add a shell command to avoid syntax error.
70676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70677
70678 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70679
70680         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70681
70682 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70685         no longer needed.  Check for isblank decl.
70686         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70687         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70688         of existence.
70689
70690 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * lib/getloadavg.c: Use __VMS, not VMS.
70693         * lib/getopt.c: Likewise.
70694         * lib/getpagesize.h: Likewise.
70695         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70696         and probably does not work.
70697
70698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * lib/.cppi-disable: Add wcwidth.
70701         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70702         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70703         (ISGRAPH): Remove.  All uses changed to isgraph.
70704         (FOLD) [!defined _LIBC]: Remove special case.
70705         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70706         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70707         HAVE_ISBLANK.
70708         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70709         case.
70710
70711 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70712
70713         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70714         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70715         brackets.  Other minor changes to suppress some compiler
70716         warnings.
70717
70718 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70719         and Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70722         of invoking obsolescent AC_HEADER_DIRENT macro.
70723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70724         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70727         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70728         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70729         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70730         * m4/readdir.m4: Remove; no longer needed.
70731
70732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70733         and Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70736         Don't worry about this obsolete case any more.
70737         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70738         directories.
70739         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70740         worry about this obsolete case any more.
70741         * lib/fts.c: Likewise.
70742         * lib/getcwd.c: Likewise.
70743         * lib/glob.h: Likewise.
70744         * lib/savedir.c: Likewise.
70745
70746 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70749         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70750         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70751         needed.
70752         All uses removed.
70753         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70754         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70755         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70756         needed.
70757         * m4/getdate.m4 (gl_GETDATE): Likewise.
70758         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70759         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70760         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70761         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70762         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70764         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70765         needed.
70766
70767 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         * lib/memcasecmp.c: Include <limits.h>.
70770         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70771         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70772         Don't assume isdigit succeeds only on '0' through '9'.
70773
70774 2006-07-05  Eric Blake  <ebb9@byu.net>
70775
70776         * modules/getaddrinfo (Depends-on): Add snprintf.
70777
70778 2006-07-05  Eric Blake  <ebb9@byu.net>
70779
70780         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70781         to avoid 'header present but could not be compiled' on cygwin.
70782
70783 2006-07-05  Eric Blake  <ebb9@byu.net>
70784
70785         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70786         missing from netdb.h.
70787         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70788
70789 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70790
70791         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70792         no longer needed.
70793         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70794         * m4/getdate.m4 (gl_GETDATE): Likewise.
70795         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70796         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70797         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70798         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70800
70801 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70802
70803         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70804         All uses of is_space replaced by isspace.
70805         * lib/exit.h: Don't talk about STDC_HEADERS.
70806         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70807         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70808         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70809         replaced by isprint etc.
70810         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70811         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70812         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70813         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70814         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70815         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70816
70817 2006-07-05  Bruno Haible  <bruno@clisp.org>
70818
70819         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70820         the function exists, before testing against AIX.
70821         Reported by Martin Lambers <marlam@marlam.de>.
70822
70823 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70826         From Mark D. Baushke.
70827
70828 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70831         to the absolute name, not just one, to bypass Sun C 5.8's
70832         "warning: #include of /usr/include/... may be non-portable".
70833
70834 2006-07-04  Eric Blake  <ebb9@byu.net>
70835
70836         * modules/dirname-tests: New test module.
70837         * tests/test-dirname.c: New file, replacing dirname.c
70838         TEST_DIRNAME section that was recently deleted.
70839
70840 2006-07-04  Bruno Haible  <bruno@clisp.org>
70841
70842         Assume ANSI C header files and <ctype.h> functions.
70843         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70844         (mbsnwidth): Use isprint, iscntrl instead.
70845
70846 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         Merge from coreutils.
70849         * MODULES.html.sh: Add xstrtold.
70850         * modules/xstrtold: New file.
70851         * modules/cycle-check (Files): Add lib/same-inode.h.
70852         * modules/dirname (Files): Add m4/double-slash-root.m4.
70853         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70854         * modules/mkdir-p (Files): Add lib/same-inode.h.
70855         * modules/same (Files): Add lib/same-inode.h.
70856
70857 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70860         This is to keep the terminology clean; POSIX talks about
70861         "absolute pathnames", not "full pathnames", but the GNU
70862         Coding Standards say to use "path" for something else;
70863         so use "absolute" to keep both sides happy.
70864         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70865         Set gl_absolute_header, not gl_full_header_path.
70866         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70867         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70868         All uses changed.
70869
70870         Merge from coreutils.
70871
70872         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70875         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70876         want to require the building of c-strtod.o.
70877         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70878         needs -lm directly.
70879         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70880
70881         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70884         --as-needed option if available.  Problem reported by Albert Chin in
70885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70886         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70887         cc merely issues a bunch of annoying warnings for --as-needed
70888         (this problem was reported by Bob Proulx).  Also, try linking with
70889         -lm to detect a bug in binutils 2.16 (this problem was reported
70890         by Ralf Wildenhues).
70891
70892         2006-06-18  Jim Meyering  <jim@meyering.net>
70893
70894         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70895         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70896         macro.
70897         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70898         also check for glibc-2.4's abort-inducing bug.
70899
70900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70901         Low-probability clean-up should be to use rmdir to get rid of
70902         the just-created directory, not unlink.
70903
70904         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70905         configure fail, and request a bug report to inform us about it.
70906         Add a comment that, barring reports to the contrary, in 2007 we'll
70907         assume ftruncate is universally available.
70908
70909         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70912
70913         2006-03-12  Jim Meyering  <jim@meyering.net>
70914
70915         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70916         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70917         * m4/same.m4 (gl_SAME): Likewise.
70918         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70919
70920         2006-03-11  Eric Blake  <ebb9@byu.net>
70921
70922         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70923         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70924         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70925         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70926
70927 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70930         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70931         reported by Mark D. Baushke, one in
70932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70933
70934         Merge from coreutils.
70935
70936         * lib/.cppi-disable: Add stdint_.h.
70937         * lib/.cvsignore: Add stdint.h.
70938
70939         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70942         both double and long double versions.
70943         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70944         * lib/xstrtold.c: New file.
70945         * lib/xstrtod.h (xstrtold): New decl.
70946
70947         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/filemode.c (setst): Remove.
70950         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70951         (arguably) clearer, and the generated code is a bit smaller on my
70952         Debian GNU/Linux stable x86 host.
70953
70954         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70955
70956         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70957         Assume that filemode.h includes sys/types.h and sys/stat.h.
70958         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70959         (ftypelet): Reorder to put common cases first, for efficiency.
70960         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70961         to do 'M'.
70962         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70963         of 10, for compatibility with FreeBSD.  All callers changed.
70964         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70965         types that can't be deduced solely from st_mode.  First arg is now a
70966         const pointer.
70967         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70968         (strmode): Renamed from mode_string.
70969         (filemodestring): New decl.
70970         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70971         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70972         needed.
70973         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70974
70975         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70978         fsusage.h now does that.  Include fsusage.h first, to test interface.
70979         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70980         at most one method (the old code could have generated decls that
70981         didn't conform to C89, not that this was ever exercised).
70982         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70983
70984         2006-03-19  Jim Meyering  <jim@meyering.net>
70985
70986         Work even in a chroot where d_ino values for entries in "/"
70987         don't match the stat.st_ino values for the same names.
70988         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70989         number, iterate through all entries again, using lstat instead.
70990         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70991         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70992
70993         * lib/getcwd.c (__getcwd): Clarify a comment.
70994         Use memcpy in place of a call to strcpy.
70995
70996         2006-03-12  Jim Meyering  <jim@meyering.net>
70997
70998         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70999         matches that of the current directory (which we're about to chdir ".."
71000         out of), then save the dev-ino of the parent, instead.
71001
71002         * lib/same-inode.h (SAME_INODE): New file/macro.
71003         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71004         Include "same-inode.h", instead.
71005         * lib/same.c: Likewise.
71006         * lib/cycle-check.h: Include "same-inode.h".
71007         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71008         * lib/cycle-check.c (SAME_INODE): Remove definition.
71009         * lib/root-dev-ino.h: Include "same-inode.h".
71010
71011         2006-03-11  Eric Blake  <ebb9@byu.net>
71012
71013         * lib/same.c (same_name): s/base_name/last_component/
71014         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71015         * lib/filenamecat.c (file_name_concat): Likewise.
71016
71017         2006-03-11  Eric Blake  <ebb9@byu.net>,
71018                     Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71021         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71022         drive prefix.
71023         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71024         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71025         (last_component): New method.
71026         * lib/dirname.c (dir_len): Determine when drive letters need a
71027         subsequent slash.  Preserve // when it is special.
71028         (dir_name): Don't append dot when drive letter is absolute.
71029         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71030         * lib/basename.c (base_name): New semantics - malloc the result.
71031         Preserve // when it is special.  Preserve relative files that look
71032         like drive letters.
71033         (base_len): Preserve // when it is special.
71034         (last_component): New method, similar to old base_name semantics.
71035         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71036         base_name.  Strip redundant slashes from ///.
71037
71038 2006-07-03  Jim Meyering  <jim@meyering.net>
71039
71040         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71041         macro is used before the first cycle_check call.
71042
71043 2006-07-03  Eric Blake  <ebb9@byu.net>
71044
71045         * modules/dirname (Depends-on): Add xstrndup.
71046
71047 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71048
71049         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71050         test cases, so that config.log is a bit easier to follow.
71051
71052 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71055         both are 64 bits, since this seems to be the tradition, and this
71056         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71057         we ever run into a host that prefers long long to long in this
71058         case, we'll need another configure-time test.  Problem reported by
71059         Jim Meyering.
71060
71061 2006-07-02  Eric Blake  <ebb9@byu.net>
71062
71063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71064
71065 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * modules/inttypes (Depends-on): No longer depends on stdint.
71068         * modules/stdint (Description): Say more about assumptions.
71069         Say that the fast types might differ.  Say macros are used.
71070         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71071         (Makefile.am): Revise list of substituted symbols to match
71072         new stdint.m4.
71073         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71074         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71075         * tests/test-stdint.c (verify_same_types)
71076         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71077         the code conforms to C99/C89.
71078         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71079         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71080
71081 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71084         but fix a bug, by requiring at least 64 bits.
71085         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71086         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71087         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71088         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71089
71090         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71091         changes.  Make 2.59 a prerequisite.  Check and substitute for
71092         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71093         inttypes.h.  Do not use special include files; just use the
71094         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71095         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71096         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71097         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71098         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71099         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71100         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71101         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71102         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71103         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71104         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71105         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71106         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71107         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71108         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71109         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71110         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71111         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71112         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71113         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71114         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71115         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71116         not check for things that C99 does not require, e.g., int8_t.  If
71117         a test isn't needed unless <stdint.h> isn't working, and is
71118         unlikely to be needed for any other reason, then don't do it
71119         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71120         size_t, since we assume C89 freestanding at least.  Do not check
71121         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71122         the right thing even if the types are not defined.  Instead use:
71123         (gl_STDINT_TYPE_PROPERTIES): New macro.
71124         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71125         testing whether <sys/types.h> clashes, as Autoconf does this for
71126         us now.  All uses removed.
71127         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71128         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71129         (gl_CHECK_TYPE_SAME):
71130         Remove; no longer needed.
71131         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71132         exists, since we'll return 0 anyway in that case.
71133         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71134
71135 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71138         possible collision with system files.
71139         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71140         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71141         WCHAR_MIN and WCHAR_MAX in this case.
71142         (<stddef.h>): Do not include; no longer needed.
71143         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71144         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71145         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71146         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71147         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71148         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71149         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71150         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71151         !defined(__c99))]: Include in this case too, since it's harmless
71152         now.
71153         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71154         dangerous to do so.
71155         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71156         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71157         (_STDINT_MIN, _STDINT_MAX): New macros.
71158         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71159         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71160         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71161         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71162         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71163         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71164         macros, not typedefs; this simplifies things quite a bit.
71165         Use long int for all types narrower than int64_t.
71166         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71167         Define in terms of long long int or int64_t or long int,
71168         not int64_t or int32_t.  This saves some compile-time testing.
71169         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71170         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71171         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71172         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71173         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71174         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71175         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71176         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71177         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71178         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71179         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71180         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71181         undef any previous version and define our own version, for
71182         simplicity and consistency with the new macros for types.
71183         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71184         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71185         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71186         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71187         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71188         @WINT_T_SUFFIX@ to keep things simple here.
71189         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71190         Simplify by assuming typical 8/16/32/64 host, since we're
71191         already doing that elsewhere anyway.
71192         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71193         and assume long long int is 64 bits if available.  This
71194         speeds up 'configure'.
71195
71196 2006-07-01  Eric Blake  <ebb9@byu.net>
71197
71198         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71199         Reported by Andreas Buening.
71200
71201 2006-07-01  Eric Blake  <ebb9@byu.net>
71202
71203         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71204
71205 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71206
71207         * lib/getaddrinfo.c: fixed typo
71208
71209 2006-06-29  Jim Meyering  <jim@meyering.net>
71210
71211         * modules/strftime (Maintainer): Add my name, since with the
71212         FPRINTFTIME changes strftime.c has forked from glibc.
71213
71214 2006-06-29  Eric Blake  <ebb9@byu.net>
71215
71216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71217
71218 2006-06-29  Eric Blake  <ebb9@byu.net>
71219
71220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71221
71222 2006-06-29  Eric Blake  <ebb9@byu.net>
71223
71224         * lib/stat_.h: New file.
71225
71226 2006-06-29  Eric Blake  <ebb9@byu.net>
71227
71228         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71229         unused static function.
71230
71231 2006-06-29  Eric Blake  <ebb9@byu.net>
71232
71233         * doc/functions.texi (Function Portability): Document missing lstat
71234         on mingw.
71235
71236 2006-06-29  Eric Blake  <ebb9@byu.net>
71237
71238         * MODULES.html.sh: Add sys_stat.
71239         * modules/sys_stat: New module.
71240         * modules/mkstemp (Depends-on): Add sys_stat.
71241
71242 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71243
71244         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71245
71246 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71247
71248         * m4/c-bs-a.m4: Removed.
71249
71250 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71251
71252         * lib/strftime.c: Assume strftime() exists.
71253
71254 2006-06-29  Derek Price  <derek@ximbiot.com>
71255
71256         * modules/c-bs-a: Removed - \a is C89.
71257         * MODULES.html.sh: Remove c-bs-a.
71258
71259 2006-06-29  Bruno Haible  <bruno@clisp.org>
71260
71261         * modules/wcwidth (License): Change to LGPL.
71262
71263 2006-06-28  Simon Josefsson  <jas@extundo.com>
71264
71265         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71266         on _WIN32.
71267
71268         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71269         getnameinfo.
71270
71271 2006-06-28  Simon Josefsson  <jas@extundo.com>
71272
71273         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71274
71275 2006-06-28  Simon Josefsson  <jas@extundo.com>
71276
71277         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71278         functions there.  It will succeed on Windows XP, but on Windows
71279         2000 and (presumably) earlier, it will fail, and use the internal
71280         re-implementation.
71281         (use_win32_p): New function.
71282         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71283         Support AI_NUMERICSERV to disable getservbyname.
71284         (getnameinfo): New function, only supports
71285         NI_NUMERICHOST|NI_NUMERICSERV for now.
71286
71287         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71288         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71289         getnameinfo.
71290
71291 2006-06-28  Eric Blake  <ebb9@byu.net>
71292
71293         * modules/wcwidth: New file.
71294         * modules/mbchar (Depends-on): Add wcwidth.
71295         * modules/mbswidth (Depends-on): Add wcwidth.
71296         * MODULES.html.sh: Add wcwidth.
71297
71298 2006-06-28  Eric Blake  <ebb9@byu.net>
71299
71300         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71302
71303 2006-06-28  Eric Blake  <ebb9@byu.net>
71304
71305         * lib/xvasprintf.h: Fix comments.
71306
71307 2006-06-28  Eric Blake  <ebb9@byu.net>
71308
71309         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71310         * lib/mbswidth.c (wcwidth): Move from here...
71311         * lib/wcwidth.h: ...to this new file.
71312
71313 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71314
71315         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71316
71317         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71318         it's obsolete.
71319         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71320
71321 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71322
71323         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71324         Autoconf 2.60 says this stuff was obsolete.
71325
71326 2006-06-28  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71329
71330 2006-06-28  Bruno Haible  <bruno@clisp.org>
71331
71332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71333         gt_TYPE_WCHAR_T.
71334
71335 2006-06-28  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71338         declaration for wcwidth.
71339         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71340
71341 2006-06-28  Bruno Haible  <bruno@clisp.org>
71342
71343         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71344         (mkdir): Define using _mkdir.
71345
71346 2006-06-28  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/getaddrinfo.h: Fix POSIX URL.
71349         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71350         _WIN32.
71351         (use_win32_p): Make static.
71352         (getaddrinfo): Reject service name if it is empty or does not consist
71353         solely of decimal digits, or if its value is > 65535.
71354         (getnameinfo): Remove useless casts.
71355
71356 2006-06-27  Simon Josefsson  <jas@extundo.com>
71357
71358         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71359         Eggert and Martin Lambers.
71360
71361 2006-06-27  Simon Josefsson  <jas@extundo.com>
71362
71363         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71364         Eggert and Martin Lambers.
71365
71366 2006-06-27  Bruno Haible  <bruno@clisp.org>
71367
71368         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71369         result to 0, not to empty.
71370         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71371
71372 2006-06-27  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71375
71376 2006-06-26  Simon Josefsson  <jas@extundo.com>
71377
71378         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71379         present.
71380
71381 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71384         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71386
71387 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71388
71389         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71390
71391 2006-06-26  Bruno Haible  <bruno@clisp.org>
71392
71393         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71394
71395 2006-06-26  Bruno Haible  <bruno@clisp.org>
71396
71397         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71398
71399 2006-06-26  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71402         SGI C compiler in pre-C99 mode.
71403         Suggested by Mark D. Baushke and Larry Jones.
71404
71405 2006-06-26  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71408         WCHAR_MAX.
71409         Reported by Mark D. Baushke and Larry Jones.
71410
71411 2006-06-26  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71414         in pre-C99 mode.
71415         Suggested by Mark D. Baushke and Larry Jones.
71416
71417 2006-06-23  Simon Josefsson  <jas@extundo.com>
71418             Bruno Haible  <bruno@clisp.org>
71419
71420         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71421         Emit mostlyclean-local rule.
71422         (func_emit_tests_Makefile_am): Likewise.
71423         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71424
71425 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71426
71427         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71428
71429 2006-06-23  Bruno Haible  <bruno@clisp.org>
71430
71431         * tests/test-stdint.c: Update to match ISO C 99 Technical
71432         Corrigendum 1.
71433
71434 2006-06-23  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71437
71438 2006-06-23  Bruno Haible  <bruno@clisp.org>
71439
71440         * lib/stdint_.h: Treat IRIX like OpenBSD.
71441
71442 2006-06-23  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71445         ISO C 99 Technical Corrigendum 1.
71446
71447 2006-06-22  Simon Josefsson  <jas@extundo.com>
71448
71449         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71450         MinGW.
71451
71452 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71455         needed.  Some compiler complained about some of them.  Problem reported
71456         by Larry Jones in
71457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71458
71459 2006-06-21  Simon Josefsson  <jas@extundo.com>
71460
71461         * tests/test-getaddrinfo.c: New file.
71462
71463         * modules/getaddrinfo-tests: New file.
71464
71465         * MODULES.html.sh: Add inet_pton.
71466
71467         * modules/inet_pton: New file.
71468
71469 2006-06-21  Simon Josefsson  <jas@extundo.com>
71470
71471         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71472         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71473         of using the (limited) gnulib implementation on Windows XP.
71474
71475         * m4/inet_pton.m4: New file.
71476
71477 2006-06-21  Simon Josefsson  <jas@extundo.com>
71478
71479         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71480         variable.
71481
71482         * lib/socket_.h: Don't define WINVER.
71483
71484         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71485         slightly modified to work in gnulib.
71486
71487 2006-06-21  Simon Josefsson  <jas@extundo.com>
71488
71489         * doc/gnulib.texi (Windows sockets): Add.
71490
71491 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * lib/read-file.c (fread_file): Start with buffer allocation of
71494         0 bytes rather than 1 byte; this simplifies the code.
71495         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71496         code to free buffer and save/restore errno.
71497         (internal_read_file): Remove unused local.
71498
71499 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71502         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71503         Problem reported by Denis Excoffier in
71504         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71505
71506 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71507
71508         * modules/sys_socket, modules/socklen: Include sys/types since
71509         FreeBSD 4.x's sys/socket.h needs it.
71510
71511 2006-06-19  Simon Josefsson  <jas@extundo.com>
71512
71513         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71514
71515 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71518
71519 2006-06-19  Bruno Haible  <bruno@clisp.org>
71520
71521         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71522         and FULL_PATH_INTTYPES_H in angle brackets.
71523         Reported by Mark D. Baushke <mdb@gnu.org>.
71524
71525 2006-06-17  Eric Blake  <ebb9@byu.net>
71526
71527         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71528         errno.
71529
71530 2006-06-17  Bruno Haible  <bruno@clisp.org>
71531
71532         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71533         <sys/inttypes.h>.
71534
71535 2006-06-17  Bruno Haible  <bruno@clisp.org>
71536
71537         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71538         whether errno is declared. Assume <errno.h> declares errno.
71539
71540 2006-06-17  Bruno Haible  <bruno@clisp.org>
71541
71542         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71543
71544 2006-06-17  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71547         problem on Solaris 2.5.1.
71548
71549 2006-06-16  Eric Blake  <ebb9@byu.net>
71550
71551         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71552         * lib/unicodeio.c [!defined errno]: Likewise.
71553         * lib/strtol.c [!defined errno]: Likewise.
71554         * lib/strtod.c [!defined errno]: Likewise.
71555
71556 2006-06-15  Eric Blake  <ebb9@byu.net>
71557
71558         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71559
71560 2006-06-15  Eric Blake  <ebb9@byu.net>
71561
71562         * config/srclist.txt (ssize_t.m4): Lose sync.
71563
71564 2006-06-15  Bruno Haible  <bruno@clisp.org>
71565
71566         * modules/stdint (Files): Include m4/full-header-path.m4,
71567         m4/size_max.m4, m4/wchar_t.m4.
71568         (Makefile.am): Many more substitutions.
71569         * modules/stdint-tests: New file.
71570         * tests/test-stdint.c: New file.
71571
71572 2006-06-15  Bruno Haible  <bruno@clisp.org>
71573
71574         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71575         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71576         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71577         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71578         gl_CHECK_TYPE_SAME): New macros.
71579
71580 2006-06-15  Bruno Haible  <bruno@clisp.org>
71581
71582         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71583
71584 2006-06-15  Bruno Haible  <bruno@clisp.org>
71585
71586         * lib/stdint_.h: Rewritten to be fully auto-configured.
71587         Fixes bug on HP-UX/IA64.
71588
71589 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/getdate.y (__attribute__): Don't define if already defined.
71592         Problem reported by Larry Jones.
71593         * lib/utimens.c (__attribute__): Likewise.
71594
71595 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71598         reported by Andreas Schwab.
71599
71600 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71601             Bruno Haible  <bruno@clisp.org>
71602
71603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71604         check for the declaration of strnlen and a run test that exposes the
71605         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71606         rpl_strndup.
71607
71608 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71609             Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71612
71613 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71614
71615         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71616         compile test, for Tru64 4.0D.
71617
71618 2006-05-28  Karl Berry  <karl@gnu.org>
71619
71620         * config/srclist.txt (printf-args.c): lose sync.
71621
71622 2006-05-26  Martin Lambers  <marlam@marlam.de>
71623
71624         * lib/getpass.c: Updates the test for the native W32 API, and adds
71625         missing includes, thus fixing compilation warnings.
71626
71627 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71628
71629         * lib/exclude.c (exclude_fnmatch): New function.
71630         (excluded_file_name): Call exclude_fnmatch.
71631         * lib/exclude.h (excluded_file_name): New prototype
71632
71633 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/tempname.c (small_open, large_open): New macros.
71636         (__open, __open64) [!_LIBC]: Remove.
71637         (__gen_tempname): Use small_open and large_open instead of __open
71638         and __open64.  This fixes a portability bug on HP-UX 11.11i
71639         reported by Simon Wing-Tang in
71640         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71641
71642 2006-05-24  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71645         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71646         Reported by Thorsten Maerz <torte@netztorte.de> via
71647         Aaron Stone <aaron@serendipity.cx>.
71648
71649 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71652         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71653         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71654         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71655         not really conditional on the cache.
71656         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71657
71658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71661         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71662         (my_usleep): Don't mishandle maximum value.
71663
71664 2006-05-19  Jim Meyering  <jim@meyering.net>
71665
71666         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71667
71668 2006-05-17  Bruno Haible  <bruno@clisp.org>
71669
71670         Cygwin portability.
71671         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71672
71673 2006-05-17  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/stdint_.h: Fix recognition of Cygwin.
71676
71677 2006-05-15  Bruno Haible  <bruno@clisp.org>
71678
71679         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71680         on libtool patch by Ralf Wildenhues.
71681
71682 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71685         test for C99 conformance; (bool) 0.5 is an integer constant
71686         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71687         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71688
71689 2006-05-11  Simon Josefsson  <jas@extundo.com>
71690
71691         * m4/xvasprintf.m4: Fix obvious typo.
71692
71693 2006-05-11  Jim Meyering  <jim@meyering.net>
71694
71695         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71696         James Lemley.
71697
71698 2006-05-10  Simon Josefsson  <jas@extundo.com>
71699
71700         * lib/md4.c: Typo fix, update copyright years.
71701         (K1, K2): Don't use L because it turn computations into 64-bit on
71702         64-bit platforms.
71703
71704 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71707         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71708         unwanted sign propagation, e.g., on hosts with 64-bit int.
71709         There still are some problems with reeelly weird theoretical hosts
71710         (e.g., 33-bit int) but it's not worth worrying about now.
71711         * lib/sha1.c (rol): Likewise.
71712         (K1, K2, K3, K4): Remove unnecessary L suffix.
71713
71714 2006-05-10  Bruno Haible  <bruno@clisp.org>
71715
71716         * lib/des.c: Cast to avoid warnings.
71717
71718 2006-05-09  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71721         (Depends-on): Depend also on xsize, stdarg.
71722         (configure.ac): Add gl_XVASPRINTF.
71723
71724 2006-05-09  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/xvasprintf.m4: New file.
71727
71728 2006-05-09  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71731         (EOVERFLOW): Define fallback value.
71732         (xstrcat): New function.
71733         (xvasprintf): Recognize the special case of a string concatenation.
71734
71735 2006-05-08  Eric Blake  <ebb9@byu.net>
71736
71737         * gnulib-tool (func_version): Base copyright year on CVS date.
71738         (func_emit_copyright_notice): New function.
71739         (func_emit_lib_Makefile_am): Use it.
71740         (func_emit_tests_Makefile_am): Likewise.
71741         (func_import): Likewise.
71742
71743 2006-05-08  Bruno Haible  <bruno@clisp.org>
71744
71745         * modules/stdarg: New file.
71746         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71747
71748 2006-05-08  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/stdarg.m4: New file, from GNU gettext.
71751
71752 2006-05-08  Bruno Haible  <bruno@clisp.org>
71753
71754         * config/srclist.txt (build-aux/config.rpath): different from latest
71755         release.
71756
71757 2006-05-08  Bruno Haible  <bruno@clisp.org>
71758
71759         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71760
71761 2006-05-05  Jim Meyering  <jim@meyering.net>
71762
71763         * m4/warning.m4: New file, derived from bison's file by the same name.
71764
71765 2006-05-03  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/stdint_.h: Shorter URL.
71768         * lib/inttypes.h: Likewise.
71769
71770 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71773
71774 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * lib/verify.h: Document the internals better.  Most of this change
71777         was written by Bruno Haible.
71778
71779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * doc/verify.texi: New file, partly based on a proposal by
71782         Bruno Haible.
71783
71784 2006-05-02  Bruno Haible  <bruno@clisp.org>
71785
71786         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71787         test from here...
71788         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71789
71790 2006-04-29  Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71793         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71794
71795 2006-04-29  Bruno Haible  <bruno@clisp.org>
71796
71797         * gnulib-tool: Make --update option actually work.
71798
71799 2006-04-29  Bruno Haible  <bruno@clisp.org>
71800
71801         * doc/gcd.texi: New file.
71802         * doc/gnulib.texi: Include it.
71803
71804 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/getdate.y (get_date): When adding relative date, start with the
71807         initial time, not with the result of the first mktime call.
71808
71809 2006-04-25  Bruno Haible  <bruno@clisp.org>
71810
71811         * gnulib-tool (func_import): Output the include directives in three
71812         blocks, sorted separately.
71813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71814
71815 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71818         to define main with arguments, for C++.  Reported by Eric Blake.
71819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71820         Prefer 'int main ()' to 'int main (void)', for C++.
71821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71823         for 'main', for C99 and C++.
71824
71825 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71828         Don't assume that exit status -1 is valid.
71829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71830         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71832         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71833         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71834         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71835         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71836         functions can be used without declaring them, or that you can
71837         exit with status -1.
71838         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71839
71840 2006-04-24  Karl Berry  <karl@gnu.org>
71841
71842         * config/srclist.txt (longdouble.m4): sync lost.
71843
71844 2006-04-24  Eric Blake  <ebb9@byu.net>
71845
71846         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71847
71848 2006-04-24  Bruno Haible  <bruno@clisp.org>
71849
71850         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71851         poll() implementation in AIX.
71852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71853
71854 2006-04-24  Bruno Haible  <bruno@clisp.org>
71855
71856         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71857         assigned exactly once.
71858
71859 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71860             Bruno Haible  <bruno@clisp.org>
71861
71862         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71863         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71864         for AM_CPPFLAGS.
71865
71866 2006-04-23  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/copy-file: Depend on unistd.
71869         * modules/execute: Likewise.
71870         * modules/fatal-signal: Likewise.
71871         * modules/findprog: Likewise.
71872         * modules/mkdtemp : Likewise.
71873         * modules/pipe: Likewise.
71874         * modules/wait-process: Likewise.
71875
71876 2006-04-23  Bruno Haible  <bruno@clisp.org>
71877
71878         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71879         condition was already detected.
71880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71881
71882 2006-04-23  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/copy-file.c: Include <unistd.h> unconditionally.
71885         * lib/execute.c: Likewise.
71886         * lib/fatal-signal.c: Likewise.
71887         * lib/findprog.c: Likewise.
71888         * lib/mkdtemp.c: Likewise.
71889         * lib/pipe.h: Likewise.
71890         * lib/pipe.c: Likewise.
71891         * lib/wait-process.h: Likewise.
71892
71893 2006-04-23  Bruno Haible  <bruno@clisp.org>
71894
71895         * gnulib-tool (func_usage): Fix --import description. Document
71896         --update.
71897         (func_import): Create temporary file in a temporary directory, if
71898         --dry-run is specified. Silence errors from 'grep' when there are no
71899         m4 files in $m4dir.
71900         (func_create_testdir): Silence errors from 'grep' when there are no
71901         m4 files in $m4dir.
71902         Reported by Karl Berry <karl@freefriends.org>.
71903
71904 2006-04-20  Bruno Haible  <bruno@clisp.org>
71905
71906         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71907         one argument, so that the code will be portable to Autoconf 2.60.
71908         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71910         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71911
71912 2006-04-19  Derek Price  <derek@ximbiot.com>
71913             Eric Blake  <ebb9@byu.net>
71914
71915         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71916         rather than "/full/path.h".  Update comment to match.  Shorten &
71917         generalize m4_translit call via AS_TR_CPP.
71918
71919 2006-04-19  Derek Price  <derek@ximbiot.com>
71920             Eric Blake  <ebb9@byu.net>
71921
71922         * lib/inttypes.h: Correct grammar in comment.
71923
71924 2006-04-18  Derek Price  <derek@ximbiot.com>
71925             Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * modules/inttypes: New file.
71928         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71929
71930 2006-04-18  Derek Price  <derek@ximbiot.com>
71931             Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71934         New files.
71935
71936 2006-04-18  Derek Price  <derek@ximbiot.com>
71937             Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * lib/inttypes.h: New file.
71940         * lib/strtoimax.c: Assume <inttypes.h>.
71941
71942 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71945         isn't mounted.  Problem reported by Kir Kolyshkin.
71946
71947 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71950         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71951         Derek R. Price.
71952         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71953         implementation.
71954
71955 2006-04-12  Eric Blake  <ebb9@byu.net>
71956
71957         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71958         is now done automatically by the corresponding Autoconf macro.
71959
71960 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71963         time_r.h.
71964
71965 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         Merge regex changes from libc, removing some of our
71968         POSIX-conformance changes that were rejected and redoing them in a
71969         less-intrusive way.
71970
71971         * lib/regcomp.c (re_compile_internal, init_dfa):
71972         Length arg is now size_t, not Idx.  All uses changed.
71973         (peek_token): Forward decl now says internal_function.
71974         (__re_error_msgid, __re_error_msgid_idx):
71975         Now static rather than extern with attribute_hidden.
71976         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71977         For some reason libc prefers K&R style defns for external functions.
71978         (regerror) [!defined _LIBC]: Likewise.
71979         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71980         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71981         (build_range_exp, build_collating_symbol):
71982         Use K&R-style defn.
71983         (re_compile_fastmap): Use '\0' to memset, not 0.
71984         (utf8_sb_map): Make the calculations more obvious.
71985         (init_dfa, parse_bracket_exp, build_charclass_op):
71986         Call calloc and cast result, as glibc does.
71987         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71988         (build_range_exp, build_collating_symbol):
71989         Now internal functions.
71990
71991         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71992
71993         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71994         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71995         Don't depend on VMS; depend on __VMS instead, for POSIX
71996         namespace cleanness.
71997         (regoff_t): Define to ssize_t, not long int.
71998
71999         Remove the REG_ macros named below.  Instead, make the old names
72000         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72001         __USE_GNU_REGEX.
72002         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72003         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72004         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72005         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72006         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72007         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72008         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72009         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72010         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72011         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72012         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72013         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72014         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72015         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72016         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72017         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72018         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72019         (REG_NREGS):
72020         Remove.  All uses replaced by the old RE_* names.
72021         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72022         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72023         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72024         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72025         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72026         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72027         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72028         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72029         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72030         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72031         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72032         Don't bother having these macros be independent of each others'
72033         values, since they no longer exist in the POSIX name space.
72034
72035         Rename the following member names back to their old names,
72036         unless !__USE_GNU_REGEX.  All uses changed back.
72037         (buffer): Renamed from re_buffer.
72038         (allocated): Renamed from re_allocated.
72039         (used): Renamed from re_used.
72040         (syntax): Renamed from re_syntax.
72041         (fastmap): Renamed from re_fastmap.
72042         (translate): Renamed from re_translate.
72043         (can_be_null): Renamed from re_can_be_null.
72044         (regs_allocated): Renamed from re_regs_allocated.
72045         (fastmap_accurate): Renamed from re_fastmap_accurate.
72046         (no_sub): Renamed from re_no_sub.
72047         (not_bol): Renamed from re_not_bol.
72048         (not_eol): Renamed from re_not_eol.
72049         (newline_anchor): Renamed from re_newline_anchor.
72050         (num_regs): Renamed from rm_num_regs.
72051         (start): Renamed from rm_start.
72052         (end): Renamed from rm_end.
72053
72054         (free_state): Move up a bit.
72055
72056         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72057         #define to be empty.
72058         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72059         when that is what is intended.
72060         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72061         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72062         (MAX): New macro.
72063         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72064         All uses changed back to re_malloc, etc.  It's now the caller's
72065         responsibility to check for overflow; all callers changed.
72066         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72067         (re_x2nrealloc): Remove.
72068         (free_state): Remove decl.
72069
72070         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72071         (re_set_registers, re_exec):
72072         Use K&R-style defn.
72073
72074         2006-01-31  Roland McGrath  <roland@redhat.com>
72075
72076         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72077         Reported by Mike Frysinger <vapier@gentoo.org>.
72078
72079         2006-01-15  Andreas Jaeger  <aj@suse.de>
72080
72081         [BZ #1950]
72082         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72083         build_wcs_upper_buffer change.
72084         (build_wcs_upper_buffer): Change return type.
72085
72086         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72087
72088         * lib/regex_internal.h: Include <stdint.h> if available.
72089
72090         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72091
72092         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72093
72094         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72095
72096         * lib/regcomp.c: Adjust for changed secondary hash function.
72097
72098         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72099
72100         * lib/regex.h: Pretty printing.
72101         Clean up namespace a bit.
72102
72103         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72104
72105         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72106         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72107
72108         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72109                     Ulrich Drepper  <drepper@redhat.com>
72110
72111         [BZ #1302]
72112         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72113         changed.
72114         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72115
72116         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72117
72118         [BZ #281]
72119         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72120         * lib/regcomp.c: Remove unnecessary uses of
72121         unsigned RE_TRANSLATE_TYPE.
72122         * lib/regex_internal.h: Likewise.
72123         * lib/regex_internal.c: Likewise.
72124         * lib/regexec.c: Likewise.
72125         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72126
72127         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72128
72129         * lib/regexec.c (find_recover_state): Remove unnecessary
72130         initialization.
72131         (transit_state_bkref): Make DFA a const pointer.
72132         (get_subexp): Likewise.
72133         (check_arrival): Likewise.
72134         (update_cur_sifted_state): Likewise.
72135         (re_search_internal): Likewise.
72136         (prune_impossible_nodes): Likewise.
72137         (acquire_init_state_context): Likewise.
72138         (proceed_next_node): Likewise.
72139         (set_regs): Likewise.
72140         (free_fail_stack_return): Likewise.
72141         (check_arrival_expand_ecl): Mark DFA parameter as const.
72142         (check_arrival_expand_ecl_sub): Likewise.
72143         (check_subexp_limits): Likewise.
72144         (sub_epsilon_src_nodes):  Likewise.
72145         (add_epsilon_src_nodes):  Likewise.
72146         (merge_state_array): Likewise.
72147         (update_regs): Likewise.
72148         (build_trtable): Likewise.
72149         (sift_states_backward): Mark MCTX parameter as const.
72150         (build_sifted_states): Likewise.
72151         (update_cur_sifted_state): Likewise.
72152         (sift_states_mkref): Likewise.
72153         (check_arrival_expand_ecl): Mark eclosure as const.
72154         (check_dst_limits_calc_pos_1): Likewise.
72155         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72156         pointer.
72157
72158         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72159
72160         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72161         (transit_state_sb): Likewise.
72162         (transit_state_mb): Likewise.
72163         (sift_states_iter_mb): Likewise.
72164         (check_arrival_add_next_nodes): Likewise.
72165         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72166         [_LIBC] (re_search_2_stub): Use mempcpy.
72167
72168         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72169         mbrtowc for very simple UTF-8 case.
72170
72171         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72172         a pointer-to-const.
72173         (re_acquire_state_context): Likewise.
72174         * lib/regex_internal.h: Adjust prototypes.
72175
72176         * lib/regex.c: Prevent using C++ compilers.
72177
72178         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72179         (re_acquire_state_context): Likewise.
72180
72181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * modules/regex (Depends-on): Add ssize_t.
72184
72185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72188         translation table.
72189
72190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72193
72194 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72195             Bruno Haible  <bruno@clisp.org>
72196
72197         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72198         <sys/types.h> and <inttypes.h>.
72199
72200 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72201
72202         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72203         `__error_t_defined', so argp.h will not typedef the former.
72204
72205 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72208         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72209         glibc names.  Even if glibc is changed to conform to POSIX, the
72210         traditional names will be available anyway, since regex depends on
72211         the extensions module.  Also, fix a longstanding typo in the
72212         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72213         reported by Emanuele Giaquinta.  Also, change sense of cached
72214         variable, so that the message makes sense.
72215
72216 2006-03-24  Simon Josefsson  <jas@extundo.com>
72217
72218         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72219         including some doc fixes.
72220         (base64_encode_alloc): Fix +1 bug on allocation failures.
72221
72222 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72223
72224         * lib/base64.c (base64_encode): Do not read past end of array with
72225         unsanitized input on systems with CHAR_BIT > 8.
72226
72227 2006-03-24  Eric Blake  <ebb9@byu.net>
72228
72229         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72230
72231 2006-03-22  Karl Berry  <karl@gnu.org>
72232
72233         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72234         * config/srclistvars.sh (COREUTILS): new var.
72235
72236 2006-03-17  Jim Meyering  <jim@meyering.net>
72237
72238         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72239         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72240
72241 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72244         no longer needs it.  Instead, check that regoff_t is as least
72245         as wide as ptrdiff_t.
72246
72247         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72248         so that our regex.h stays compatible with the installed regex.
72249         This is helpful for installers who configure --without-included-regex.
72250         Problem reported by Emanuele Giaquinta.
72251
72252 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72255         Typedef to long int, not to off_, as POSIX will likely change
72256         in that direction.
72257
72258 2006-03-15  Eric Blake  <ebb9@byu.net>
72259
72260         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72261
72262 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72263
72264         * lib/argp-help.c (validate_uparams): Fix typo
72265         * lib/argp-parse.c (argp_default_options): Consistently begin help
72266         messages with a lowercase letter.
72267
72268 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72271         overrun buffers and shouldn't be used (much as gets shouldn't be
72272         used).
72273         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72274
72275 2006-03-08  Simon Josefsson  <jas@extundo.com>
72276
72277         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72278         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72279
72280 2006-03-08  Simon Josefsson  <jas@extundo.com>
72281
72282         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72283         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72284
72285 2006-03-08  Simon Josefsson  <jas@extundo.com>
72286
72287         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72288         signal that configure disabled the device.
72289
72290 2006-03-08  Simon Josefsson  <jas@extundo.com>
72291
72292         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72293         languages.
72294
72295 2006-03-07  Simon Josefsson  <jas@extundo.com>
72296
72297         * modules/getopt (Depends-on): Add unistd.
72298
72299         * modules/unistd: New file.
72300
72301 2006-03-07  Simon Josefsson  <jas@extundo.com>
72302
72303         * modules/gc-random: New file.
72304
72305 2006-03-07  Simon Josefsson  <jas@extundo.com>
72306
72307         * m4/unistd_h.m4: New file.
72308
72309 2006-03-07  Simon Josefsson  <jas@extundo.com>
72310
72311         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72312         test to be side-effect free by storing the result in the cache
72313         variable gl_cv_lib_readline, and moving the assignment of
72314         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72315         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72316
72317 2006-03-07  Simon Josefsson  <jas@extundo.com>
72318
72319         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72320         error on missing devices (the functions will return an error).
72321
72322         * m4/gc.m4: Move random stuff to gc-random.m4
72323
72324 2006-03-07  Simon Josefsson  <jas@extundo.com>
72325
72326         * lib/unistd_.h: New file.
72327
72328 2006-03-07  Simon Josefsson  <jas@extundo.com>
72329
72330         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72331
72332 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72335         Problem reported by Juan Manuel Guerrero.
72336
72337 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72340         the unistd module.
72341         * lib/getlogin_r.c: Likewise.
72342         * lib/getlogin_r.h: Likewise.
72343         * lib/glob.c: Likewise.
72344         * lib/pagealign_alloc.c: Likewise.
72345         * lib/unistd_.h: Remove; no longer needed.
72346
72347 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72350         Add unistd.
72351         * modules/c-stack (Depends-on): Add unistd.
72352         * modules/getlogin_r: Likewise.
72353         * modules/glob: Likewise.
72354         * modules/pagealign_alloc: Likewise.
72355         * modules/unistd (Files): Remove lib/unistd_.h.
72356         (EXTRA_DIST): Remove.
72357         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72358         need unistd_.h.
72359         (MOSTLYCLEANFILES): Remove unistd.h-t.
72360
72361 2006-03-03  Simon Josefsson  <jas@extundo.com>
72362
72363         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72364
72365 2006-03-03  Simon Josefsson  <jas@extundo.com>
72366
72367         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72368         libidn and bison.
72369
72370 2006-03-03  Simon Josefsson  <jas@extundo.com>
72371
72372         * build-aux/maint.mk: Add indent target.
72373
72374 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72375
72376         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72377         our replacement poll.h in any case, to avoid a differing
72378         declaration from a system header.  Seen on AIX.
72379
72380 2006-03-01  Simon Josefsson  <jas@extundo.com>
72381
72382         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72383         <kasal@ucw.cz>.
72384
72385 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * modules/gettime (Depends-on): Add extensions module.
72388         * modules/nanosleep (Depends-on): Likewise.
72389         * modules/settime (Depends-on): Likewise.
72390
72391 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72394         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72395         pedantically.
72396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72397         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72398
72399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72400         not "==".  Reported by Ralf Wildenhues.
72401
72402 2006-03-01  Karl Berry  <karl@gnu.org>
72403
72404         * doc/Copyright/request-*: new files, synced from gnuorg.
72405
72406 2006-03-01  Karl Berry  <karl@gnu.org>
72407
72408         * config/srclist.txt (Copyright/*): new entries.
72409
72410 2006-02-28  Simon Josefsson  <jas@extundo.com>
72411
72412         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72413
72414 2006-02-27  Simon Josefsson  <jas@extundo.com>
72415
72416         * lib/base64.h: Indent #define's.  From Jim Meyering
72417         <jim@meyering.net>.
72418
72419 2006-02-27  Jim Meyering  <jim@meyering.net>
72420
72421         Revert the change of 2006-02-24, so these files can continue
72422         to be sync'd from gettext.
72423         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72424         of `config.h'.
72425
72426 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * modules/intprops: New file.
72429         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72430         Add intprops.
72431         * modules/getloadavg (Files): Remove lib/intprops.h.
72432         (Depends-on): Add intprops.
72433         * modules/human: Likewise.
72434         * modules/inttostr: Likewise.
72435         * modules/openat: Likewise.
72436         * modules/sig2str: Likewise.
72437         * modules/userspec: Likewise.
72438         * modules/utimecmp: Likewise.
72439         * modules/xnanosleep: Likewise.
72440         * modules/xstrtol: Likewise.
72441
72442 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72443
72444         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72445         * modules/lock-tests (TESTS): Use $(EXEEXT).
72446         * modules/tls-tests: Likewise.
72447         * modules/argp-tests: Likewise.
72448         (check_PROGRAMS): New var, replacing...
72449         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72450
72451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72452
72453         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72454         `config.h'.
72455
72456 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72459
72460 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72461
72462         Sync from coreutils.
72463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72464         gl_CHDIR_SAFER.
72465
72466 2006-02-22  Jim Meyering  <jim@meyering.net>
72467
72468         Sync from coreutils.
72469         * m4/chdir-safer.m4: New file.
72470
72471 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72474         AT_FDCWD exceeds INT_MAX.
72475         * lib/openat.h (AT_FDCWD): Likewise.
72476
72477 2006-02-17  Eric Blake  <address@hidden>
72478
72479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72480
72481 2006-02-16  Simon Josefsson  <jas@extundo.com>
72482
72483         * modules/getaddrinfo (Depends-on): Add sys_socket.
72484
72485 2006-02-15  Simon Josefsson  <jas@extundo.com>
72486
72487         * build-aux/maint.mk: Add dsyntax-check rule.
72488
72489 2006-02-15  Eric Blake  <ebb9@byu.net>
72490
72491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72492         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72493         'present but cannot compile' warnings on cygwin.
72494         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72495         use ws2tcpip.h if sys/socket.h works.
72496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72497         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72498
72499 2006-02-14  Simon Josefsson  <jas@extundo.com>
72500
72501         * modules/maintainer-makefile (Files): Rename.
72502
72503         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72504         and (the local) Makefile.cfg to maint-cfg.mk.
72505
72506         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72507         to the latter.
72508
72509         * modules/maintainer-makefile: New module.
72510
72511         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72512         severaly stripped to make it possible to build it up from scratch
72513         with reliable tests.
72514
72515         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72516         fixes to permit overriding the default actions when configure and
72517         makefile are not available.
72518
72519 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         Sync from coreutils.
72522         * modules/lstat (Depends-on): Don't depend on xalloc.
72523         (License): Change from GPL to LGPL, since this is now simply a
72524         replacement for a libc function.
72525
72526 2006-02-14  Jim Meyering  <jim@meyering.net>
72527
72528         Sync from coreutils.
72529
72530         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72531         failure on deficient systems, and simplify gnulib lgpl dependencies.
72532         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72533         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72534
72535         * lib/xalloc-die.c: Remove unused definition of N_.
72536
72537 2006-02-14  Jim Meyering  <jim@meyering.net>
72538
72539         Sync from coreutils.
72540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72541         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72542         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72543         double-quote uses of that variable, to accommodate the rare case in
72544         which getmntent is available in none of the libraries checked.  This
72545         happens at least on FreeBSD 5.0.
72546
72547 2006-02-13  Simon Josefsson  <jas@extundo.com>
72548
72549         * gnulib-tool (Usage): Fix --import, from
72550         karl@freefriends.org (Karl Berry).
72551
72552 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72553
72554         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72555
72556 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72557
72558         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72559         "autoupdate" on 2005-12-12.
72560
72561 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * modules/closeout (Depends-on): Remove atexit.
72564
72565 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72568         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72569
72570 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72573         __EXTENSIONS__ if this causes compilation to fail.  Problem
72574         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72575         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72576
72577 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72580         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72582         All uses changed.
72583
72584 2006-01-26  Simon Josefsson  <jas@extundo.com>
72585
72586         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72587         prototype is visible on mingw32.
72588
72589         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72590         for mingw32.
72591
72592         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72593         mingw32).
72594
72595 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72596
72597         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72598         attempt to open for write; this always fails, at least on POSIX
72599         hosts.  This reinstates the 2006-01-09 change, which was
72600         inadvertently removed.
72601
72602 2006-01-26  Bruno Haible  <bruno@clisp.org>
72603
72604         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72605         Reported by Paul Eggert.
72606
72607 2006-01-26  Bruno Haible  <bruno@clisp.org>
72608             Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * lib/stdbool_.h (_Bool)
72611         [(! (defined __cplusplus || defined __BEOS__)
72612           && !defined __GNUC__
72613           && !(defined __HP_cc || defined __xlc__
72614                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72615                || defined __sgi))]:
72616         #define to signed char in these cases too; this simplifies
72617         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72618         etc., separately) and makes it more conservative.
72619
72620 2006-01-25  Simon Josefsson  <jas@extundo.com>
72621
72622         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72623         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72624         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72625
72626 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72627
72628         * lib/argp-namefrob.h: Bugfix. Remove stray #
72629
72630 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72633         so that we test the test.
72634         Check for yet another HP-UX cc bug involving *bool |= bool.
72635
72636 2006-01-25  Karl Berry  <karl@gnu.org>
72637
72638         * config/srclist.txt (vasnprintf.c): sync lost.
72639
72640 2006-01-25  Jim Meyering  <jim@meyering.net>
72641
72642         Sync from the stable (b5) branch of coreutils:
72643
72644         * lib/fts.c (fts_children): Don't let close() clobber errno from
72645         failed fchdir().
72646
72647         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72648         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72649         a dangling symlink.  That can also happen at least for ELOOP.
72650         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72651         FYI, this bug predates the inclusion of fts.c in coreutils.
72652
72653         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72654         in their own block, so pre-c99 compilers don't object.
72655
72656         Avoid the double-free (first in fts_read, second in fts_close) that
72657         would occur when an `active' directory is made inaccessible (e.g.,
72658         via chmod a-x) during a traversal.
72659         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72660         before returning.  Reproduce this failure by
72661         mkdir -p a/b; cd a; chmod a-x . b
72662         Reported by Stavros Passas.
72663
72664 2006-01-25  Jim Meyering  <jim@meyering.net>
72665
72666         * lib/fileblocks.c: Remove more useless parentheses.
72667         * lib/readutmp.h: Likewise.
72668
72669 2006-01-25  Bruno Haible  <bruno@clisp.org>
72670
72671         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72672         warnings.
72673         Reported by Paul Eggert.
72674
72675 2006-01-25  Bruno Haible  <bruno@clisp.org>
72676
72677         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72678         rid of a trap command. For Solaris sh.
72679         Reported by Mark D. Baushke <mdb@gnu.org>.
72680
72681 2006-01-24  Simon Josefsson  <jas@extundo.com>
72682
72683         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72684         Bruno.
72685
72686 2006-01-24  Karl Berry  <karl@gnu.org>
72687
72688         * config/srclist.txt (argp-namefrob.h): sync lost.
72689
72690 2006-01-24  Jim Meyering  <jim@meyering.net>
72691
72692         * modules/openat (Files): Add lib/intprops.h.
72693         From Mark D. Baushke.
72694
72695 2006-01-24  Jim Meyering  <jim@meyering.net>
72696
72697         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72698         Reported by Mark D. Baushke.
72699
72700 2006-01-24  Jim Meyering  <jim@meyering.net>
72701
72702         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72703
72704 2006-01-24  Bruno Haible  <bruno@clisp.org>
72705
72706         * modules/strnlen (Maintainer): Change from glibc to all.
72707
72708 2006-01-24  Bruno Haible  <bruno@clisp.org>
72709
72710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72711         Patch by Paul Eggert.
72712
72713 2006-01-24  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72716         already has it.
72717         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72718         2005-11-26.
72719
72720         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72721         'signed char' to avoid problems with the built-in _Bool type.
72722         Reported by Paul Eggert on 2005-11-26.
72723
72724 2006-01-24  Bruno Haible  <bruno@clisp.org>
72725
72726         * gnulib-tool (func_import): Avoid constructing complicated sed
72727         expressions inside backquote.
72728         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72729
72730 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72731
72732         These changes imported from libc.
72733         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72734         test and two separate function calls.
72735         * lib/strndup.c (__strndup): Add libc_hidden_def.
72736
72737 2006-01-23  Simon Josefsson  <jas@extundo.com>
72738
72739         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72740         Remove the test_*_SOURCES variable: automake infers it by default.
72741         * modules/tls-tests: Likewise.
72742
72743 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         Work around porting bugs reported by Dieter in
72746         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72747         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72748         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72749         Include "getopt.h" first, to check interface.
72750         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72751         !HAVE_DECL_GETENV.
72752         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72753         (__strndup): Revert to K&R-style function dfns, the glibc style.
72754         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72755         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72756         Include strnlen.h first, to get prototype properly.
72757         (strnlen): Renamed from __strnlen.
72758         Remove weak alias.
72759
72760 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72763
72764 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * config/srclist.txt: Adjust to reflect glibc reorganization.
72767         This affects only comments.
72768
72769 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72770
72771          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72772          Reported by Bruce Korb <bkorb@gnu.org>.
72773
72774 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72777         to pacify gcc -Wswitch-default.
72778
72779 2006-01-22  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72782         temporary buffer for sprintf, take into account the precision also
72783         for 'd', 'i', 'u', 'o', 'x', 'X'.
72784
72785 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72786
72787         * modules/argp-tests: New module
72788         * tests/test-argp.c: New file
72789         * tests/test-argp-2.sh: New file
72790
72791 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72792
72793         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72794         (__argp_base_name): Removed
72795         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72796         typo.
72797         (__argp_base_name): Provide macro definition or extern declaration
72798         depending on the configuration
72799
72800 2006-01-20  Simon Josefsson  <jas@extundo.com>
72801
72802         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72803
72804 2006-01-20  Simon Josefsson  <jas@extundo.com>
72805
72806         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72807
72808 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72811         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72812         Suggested by Bruno Haible.
72813
72814 2006-01-20  Karl Berry  <karl@gnu.org>
72815
72816         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72817         until changes propagate, I guess.
72818
72819 2006-01-19  Simon Josefsson  <jas@extundo.com>
72820
72821         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72822
72823 2006-01-19  Simon Josefsson  <jas@extundo.com>
72824
72825         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72826
72827 2006-01-19  Simon Josefsson  <jas@extundo.com>
72828
72829         * gnulib-tool: Set check_PROGRAMS.
72830
72831         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72832         modules/des-tests, modules/gc-arcfour-tests,
72833         modules/gc-arctwo-tests, modules/gc-des-tests,
72834         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72835         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72836         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72837         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72838         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72839         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72840         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72841         test_*_SOURCES.
72842
72843 2006-01-18  Simon Josefsson  <jas@extundo.com>
72844
72845         * modules/socklen (Depends-on): Depend on sys_socket.
72846
72847 2006-01-18  Simon Josefsson  <jas@extundo.com>
72848
72849         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72850         modules/des-tests, modules/gc-arcfour-tests,
72851         modules/gc-arctwo-tests, modules/gc-des-tests,
72852         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72853         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72854         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72855         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72856         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72857         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72858         $(EXEEXT) to automake TESTS variable, for mingw32.
72859
72860 2006-01-17  Simon Josefsson  <jas@extundo.com>
72861
72862         * modules/socklen (Include): Need sys/socket.h.
72863
72864 2006-01-17  Bruno Haible  <bruno@clisp.org>
72865
72866         * modules/ssize_t (Include): Add <sys/types.h>.
72867
72868 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72871         it's not portable and it doesn't work with cross-compiles.
72872         Problem reported by Bruno Haible.  Fix missing-$ typo in
72873         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72874         -zignore from being used with Sun's C compiler.
72875
72876 2006-01-12  Simon Josefsson  <jas@extundo.com>
72877
72878         * lib/base64.c: Fix warning, reported by Bruno Haible
72879         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72880
72881 2006-01-12  Bruno Haible  <bruno@clisp.org>
72882
72883         * modules/ldd: New file.
72884         * build-aux/ldd.sh.in: New file.
72885         * MODULES.html.sh (Support for building libraries and executables): Add
72886         ldd.
72887
72888 2006-01-12  Bruno Haible  <bruno@clisp.org>
72889
72890         * m4/ldd.m4: New file.
72891
72892 2006-01-12  Bruno Haible  <bruno@clisp.org>
72893
72894         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72895         endless loop while replacing $auxdir with build-aux.
72896
72897 2006-01-11  Simon Josefsson  <jas@extundo.com>
72898
72899         * lib/stdint_.h (SIZE_MAX): Add missing (.
72900
72901 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         Sync from coreutils.
72904         * lib/md5.c: Fix commentary typos.
72905         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72906         * lib/md5.h (__attribute__): Remove; unused.
72907         * lib/sha1.c: Fix commentary to match md5 better.
72908         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72909         so that we don't need to worry about alignment.  All uses changed.
72910         This merges the 2005-10-28 md5 change into sha1.
72911
72912 2006-01-11  Jim Meyering  <jim@meyering.net>
72913
72914         Sync from coreutils.
72915         * lib/md5.c (OP): Fix spacing.
72916
72917 2006-01-11  Bruno Haible  <bruno@clisp.org>
72918
72919         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72920         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72921         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72922
72923 2006-01-11  Bruno Haible  <bruno@clisp.org>
72924
72925         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72926         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72927         the "early" section as well.
72928
72929 2006-01-11  Bruno Haible  <bruno@clisp.org>
72930
72931         Avoid "ar: no archive members specified" error on MacOS X.
72932         * gnulib-tool (func_modules_add_dummy): New function.
72933         (func_import, func_create_testdir): Invoke it.
72934
72935 2006-01-11  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72938         with $auxdir in AC_CONFIG_FILES statements.
72939
72940 2006-01-11  Bruno Haible  <bruno@clisp.org>
72941
72942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72943         Initialize also noinst_HEADERS to empty.
72944
72945 2006-01-11  Bruno Haible  <bruno@clisp.org>
72946
72947         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72948         variables.
72949         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72950         autoreconf.
72951
72952 2006-01-11  Bruno Haible  <bruno@clisp.org>
72953
72954         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72955         overridable by the user.
72956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72957
72958 2006-01-10  Simon Josefsson  <jas@extundo.com>
72959
72960         * modules/sys_socket: New file.
72961
72962 2006-01-10  Simon Josefsson  <jas@extundo.com>
72963
72964         * m4/sys_socket_h.m4: New file.
72965
72966 2006-01-10  Simon Josefsson  <jas@extundo.com>
72967
72968         * lib/socket_.h: New file.
72969
72970 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * modules/readutmp (Maintainer): Add myself.
72973
72974 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72977         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72978         People who are still concerned with buggy memcmp implementations
72979         can invoke gl_FUNC_MEMCMP themselves.
72980
72981 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * lib/regex_internal.h (BITSET_WORD_BITS):
72984         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72985         preprocessor mishandles large unsigned values as if they were signed.
72986         Problem reported by Claudio Fontana in
72987         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72988
72989 2006-01-10  Jim Meyering  <jim@meyering.net>
72990
72991         Avoid the double-free (first in fts_read, second in fts_close) that
72992         would occur when an `active' directory is made inaccessible (e.g.,
72993         via chmod a-x) during a traversal.
72994         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72995         before returning.  Reproduce this failure by
72996         mkdir -p a/b; cd a; chmod a-x . b
72997         Reported by Stavros Passas.
72998
72999         Sync from coreutils.
73000         * lib/sha1.c: Tweak grammar in a comment.
73001
73002 2006-01-10  Jim Meyering  <jim@meyering.net>
73003
73004         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73005         Patch by Joerg Sonnenberger.
73006
73007 2006-01-10  Bruno Haible  <bruno@clisp.org>
73008
73009         * modules/readutmp: Depend on module free.
73010         * modules/strtok_r: Depend on module restrict.
73011
73012 2006-01-10  Bruno Haible  <bruno@clisp.org>
73013
73014         * modules/gettext (configure.ac): Add an invocation of
73015         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73016
73017 2006-01-10  Bruno Haible  <bruno@clisp.org>
73018
73019         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73020         Reported by Werner Lemberg <wl@gnu.org>.
73021
73022 2006-01-10  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/localcharset.c: Update from GNU gettext.
73025
73026 2006-01-10  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/argp.h (__const): Remove macro. Use const instead.
73029         * lib/argp-fmtstream.h (__const): Likewise.
73030         * lib/glob_.h (__const): Remove macro.
73031         * lib/glob-libc.h: Use const instead of __const.
73032
73033 2006-01-10  Bruno Haible  <bruno@clisp.org>
73034
73035         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73036         variable.
73037         Needed to avoid an automake error regarding the 'gettext' module.
73038
73039 2006-01-09  Simon Josefsson  <jas@extundo.com>
73040
73041         * modules/inet_ntop (Depends-on): Add restrict.
73042
73043 2006-01-09  Simon Josefsson  <jas@extundo.com>
73044
73045         * modules/gc-rijndael-tests (License): Put under LGPL.
73046
73047         * modules/gc-des-tests (License): Likewise.
73048
73049         * modules/gc-arcfour-tests (License): Likewise.
73050
73051         * modules/gc-arctwo-tests (License): Likewise.
73052
73053         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73054
73055         * modules/gc-hmac-sha1-tests (Files): Likewise.
73056
73057         * modules/gc-hmac-md5-tests (License): Likewise.
73058
73059         * modules/gc-sha1-tests (License): Likewise.
73060
73061         * modules/gc-md5-tests (License): Likewise.
73062
73063         * modules/gc-md4-tests (License): Likewise.
73064
73065         * modules/gc-md2-tests (License): Likewise.
73066
73067         * modules/gc-tests (License): Likewise.
73068
73069         * modules/des-tests (License): Likewise.
73070
73071         * modules/md4-tests (License): Likewise.
73072
73073         * modules/md2-tests (License): Likewise.
73074
73075 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         Sync from coreutils:
73078
73079         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73080         * modules/lib-ignore: New file.
73081         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73082         chdir-safer.m4, lchmod.m4.
73083         * modules/openat: Add mkdirat.c, openat-priv.h.
73084
73085 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         Sync from coreutils.
73088         * m4/lib-ignore.m4: New file.
73089         * m4/lchmod.m4: New file.
73090
73091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         Sync from coreutils.
73094         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73095         for write access: POSIX says that must fail.
73096         * lib/fts.c (diropen): Likewise.
73097         * lib/save-cwd.c (save_cwd): Likewise.
73098         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73099         well, for minor improvements on hosts that lack O_DIRECTORY.
73100         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73101         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73102         Fall back on chown if open failed with EACCES.
73103
73104         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73105         Report an error at compile-time if only a 1-second nominal clock
73106         resolution is found.
73107
73108         * lib/lchmod.h: New file.
73109         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73110         (make_dir_parents): Use lchown rather than chown, and
73111         lchmod rather than chmod.
73112
73113         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73114         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73115         "proc" reported by n0dalus.
73116
73117         * lib/mountlist.c: Include <limits.h>.
73118         (dev_from_mount_options)
73119         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73120         New function.  It no longer assumes "dev=" has the System V meaning
73121         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73122         (read_file_system_list)
73123         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73124         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73125         dev= in that case.
73126
73127         * lib/posixtm.h (PDS_PRE_2000): New macro.
73128         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73129         allow_century.  All usages changed.  Reject dates outside the range
73130         1969-1999 if PDS_PRE_2000 is used.
73131
73132 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         Sync from coreutils.
73135         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73136         (Time of day items): Mention the possibility of leap seconds.
73137         Problem reported by Dr. David Alan Gilbert.
73138
73139 2006-01-09  Jim Meyering  <jim@meyering.net>
73140
73141         Sync from coreutils.
73142
73143         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73144
73145         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73146
73147         * lib/modechange.c (mode_compile): Reject an invalid mode string
73148         that starts with an octal digit.  From Andreas Gruenbacher.
73149
73150         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73151         and dup to open_safer and dup_safer, respectively.
73152         (openat_permissive): Fix typo in comment.
73153
73154         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73155         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73156         (_): Remove; no longer needed.
73157         (openat): Renamed from rpl_openat; no need for rpl_openat
73158         since openat.h renames openat for us.
73159         Replace most of the body with a call to openat_permissive,
73160         to avoid duplicate code.
73161         Port to (probably hypothetical) environments were mode_t is
73162         wider than int.
73163         (openat_permissive): Require mode arg, so that we can check
73164         types better.  Put it just after flags.  Change cwd failure
73165         indicator from pointer-to-bool to pointer-to-errno-value.
73166         All callers changed.
73167         Invoke openat_save_fail and/or openat_restore_fail if
73168         cwd_errno is null, so that openat can call us.
73169         (openat_permissive, fdopendir, fstatat, unlinkat):
73170         Simplify errno handling to avoid some duplicate code,
73171         as it's OK to set errno on success.
73172         * lib/openat.h: Revamp code so that function macros depend on
73173         __OPENAT_PREFIX only, not also on AT_FDCWD.
73174         (openat_ro): Remove.  Caller changed to use openat_permissive.
73175         (openat_permissive): Now a macro, if not a function.
73176         (openat_restore_fail, openat_save_fail): Now always functions,
73177         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73178
73179         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73180         and openat.c.
73181         * lib/mkdirat.c: Include openat-priv.h.
73182         Remove definitions of macros defined therein.
73183         * lib/openat.c: Likewise.
73184
73185         * lib/mkdirat.c (mkdirat): New file and function.
73186         * lib/openat.h (mkdirat): Declare.
73187
73188         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73189
73190         * lib/openat.h (openat_permissive): Declare.
73191         (openat_ro): Define.
73192
73193         * lib/openat.c (EXPECTED_ERRNO): New macro.
73194         (openat_permissive): New function -- used in remove.c rewrite.
73195         (all functions): Set errno just before returning, only if there
73196         was an actual failure.
73197         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73198
73199         Emulate openat-family functions using Linux's procfs, if possible.
73200         Idea and some code based on Ulrich Drepper's glibc changes.
73201
73202         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73203         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73204         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73205         before falling back on save_cwd and restore_cwd.
73206         (fdopendir, fstatat, unlinkat): Likewise.
73207
73208         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73209         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73210
73211         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73212         as second argument to va_arg.  Otherwise, some versions of gcc
73213         warn that `if this code is reached, the program will abort'.
73214
73215 2006-01-09  Jim Meyering  <jim@meyering.net>
73216
73217         Sync from coreutils.
73218         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73219         Require openat-priv.h.
73220
73221 2006-01-09  Bruno Haible  <bruno@clisp.org>
73222
73223         * modules/strnlen (Include): Use strnlen.h.
73224
73225 2006-01-09  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73228
73229 2006-01-09  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/sysexit_.h (EX_OK): New macro.
73232         Suggested by Martin Lambers <marlam@marlam.de>.
73233
73234 2006-01-09  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73237         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73238
73239 2006-01-09  Bruno Haible  <bruno@clisp.org>
73240
73241         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73242         numbers.
73243
73244 2006-01-09  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73247         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73248         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73249         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73250
73251 2006-01-09  Bruno Haible  <bruno@clisp.org>
73252
73253         * build-aux/javacomp.sh.in: New file, moved from lib/.
73254         * modules/javacomp-script (Files): Update.
73255         (configure.ac): Add AC_CONFIG_FILES invocation.
73256         (EXTRA_DIST): Remove variable.
73257
73258         * build-aux/javaexec.sh.in: New file, moved from lib/.
73259         * modules/javaexec (Files): Update.
73260         (configure.ac): Add AC_CONFIG_FILES invocation.
73261         (EXTRA_DIST): Remove javaexec.sh.in.
73262
73263         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73264         * modules/csharpcomp-script (Files): Update.
73265         (configure.ac): Add AC_CONFIG_FILES invocation.
73266         (EXTRA_DIST): Remove variable.
73267
73268         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73269         * modules/csharpexec (Files): Update.
73270         (configure.ac): Add AC_CONFIG_FILES invocation.
73271         (EXTRA_DIST): Remove csharpexec.sh.in.
73272
73273 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73274
73275         Sync from coreutils.
73276
73277         Add POSIX ACL support
73278         * lib/acl.h (copy_acl, set_acl): Add declarations.
73279         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73280         systems other than Linux.
73281         (chmod_or_fchmod): New function: use fchmod when possible,
73282         and chmod otherwise.
73283         (file_has_acl): Add a POSIX ACL implementation, with a
73284         Linux-specific subcase.
73285         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73286         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73287         acls are unsupported.
73288         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73289         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73290         are unsupported.
73291
73292 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73293
73294         Sync from coreutils.
73295         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73296
73297 2006-01-07  Bruno Haible  <bruno@clisp.org>
73298
73299         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73300         gl_EARLY.
73301
73302 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73305         Problem reported for Mingw by Mark Junker.
73306
73307 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * README: Gnulib normally doesn't generate a tarball.
73310
73311 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73314         long int, not int, for nanosecond counts, so that people who are
73315         used to POSIX struct timespec won't be surprised.  Reported by Jim
73316         Meyering.
73317
73318 2005-12-28  Bruno Haible  <bruno@clisp.org>
73319
73320         * build-aux/config.rpath: Update from GNU gettext.
73321
73322 2005-12-16  Jim Meyering  <jim@meyering.net>
73323
73324         * modules/fprintftime: New module.
73325         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73326
73327 2005-12-16  Jim Meyering  <jim@meyering.net>
73328
73329         * m4/fprintftime.m4: New file.
73330
73331 2005-12-16  Jim Meyering  <jim@meyering.net>
73332
73333         * lib/fprintftime.c, lib/fprintftime.h: New files.
73334
73335 2005-12-15  Simon Josefsson  <jas@extundo.com>
73336
73337         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73338         new m4/socklen.m4.
73339
73340 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73341
73342         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73343         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73344
73345 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73346
73347         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73348         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73349         struct uparams is valid. Fall back to the default values if it is
73350         not.
73351
73352 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73353
73354         * modules/argp (Files): Add argp-pin.c
73355         (Depends-on): dirname
73356         (lib_SOURCES): Add argp-pin.c
73357
73358 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73359
73360         * m4/argp.m4:  Check if program_invocation_name and
73361         program_invocation_short_name are declared and define appropriate
73362         macros if they are not.
73363
73364 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73365
73366         * lib/argp-help.c (__argp_base_name): New function
73367         (__argp_short_program_name): Rewrite using __argp_base_name
73368         * lib/argp-namefrob.h: Define program_invocation_name and
73369         program_invocation_short_name if requested
73370         (__argp_base_name): Add prototype
73371         * lib/argp-parse.c (argp_def): Use gettext wrappers
73372         (argp_default_parser): Use __argp_base_name
73373         * lib/argp-pin.c: New file. Defines program_invocation_name and
73374         program_invocation_short_name on systems that lack them.
73375
73376 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73379         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73380         porting problem reported by Georg Schwarz in
73381         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73382
73383 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73386         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73387         porting problem reported by Georg Schwarz in
73388         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73389
73390 2005-12-05  Bruno Haible  <bruno@clisp.org>
73391
73392         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73393         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73394         Reported by Mark Junker <mjscod@gmx.de>.
73395
73396 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73399         Use implementation from Albert Chin, with some
73400         comments/corrections by Stepan Kasal and myself.
73401
73402 2005-12-02  Bruno Haible  <bruno@clisp.org>
73403
73404         * gnulib-tool (func_import): Accept GPLed build tool modules when
73405         --lgpl is given.
73406         * modules/csharpcomp-script: New file.
73407         * modules/csharpcomp: Depend on it.
73408         * modules/javacomp-script: New file.
73409         * modules/javacomp: Depend on it.
73410         Suggested by Simon Josefsson.
73411
73412 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73415         statement, to work around an HP-UX 10.20 compiler bug reported by
73416         Peter O'Gorman.
73417
73418 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * modules/savedir (Depends-on): Add openat.
73421
73422 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73425         (uintmax_t) [defined uintmax_t]: Do not declare.
73426         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73427         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73428         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73429         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73430         sake of portability to weird hosts that C allows (though we don't
73431         know of any practical examples).
73432
73433         * lib/savedir.h (fdsavedir): New decl.
73434         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73435         contains most of the former guts of savedir.
73436         (savedir): Use savedirstream.
73437         Include "openat.h".
73438
73439 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * modules/obstack (Files): Add m4/ulonglong.m4.
73442         Problem reported by Davide Angelocola.
73443
73444 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73447         coreutils no longer futzes with rounding modes.
73448
73449 2005-11-14  Jim Meyering  <jim@meyering.net>
73450
73451         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73452         replacement of mkstemp.
73453
73454 2005-11-10  Simon Josefsson  <jas@extundo.com>
73455
73456         * lib/readline.c: Remove EOL.
73457
73458 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * modules/gethrxtime (Depends-on): Add gettime.
73461
73462 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73465         or gettimeofday; no longer needed.
73466
73467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73470         time business.
73471         (gethrxtime) [! (HAVE_NANOUPTIME
73472         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73473         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73474         our own approximation.
73475
73476 2005-11-08  Eric Blake  <ebb9@byu.net>
73477
73478         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73479
73480 2005-11-08  Eric Blake  <ebb9@byu.net>
73481
73482         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73483
73484 2005-11-04  Bruno Haible  <bruno@clisp.org>
73485
73486         * gnulib-tool: Implement --update mode.
73487
73488 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         Fix porting problem reported by Theodoros V. Kalamatianos.
73491         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73492         Don't assume that futimes failing means we must fail.
73493
73494 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73497         variables to suggest the intended function of the PATH_MAX check.
73498
73499 2005-10-30  Kean Johnston  <jkj@sco.com>
73500
73501         Trivial changes to support SCO systems.
73502         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73503         as PATH_MAX.
73504         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73505         where __ptr is null when no I/O is pending.
73506
73507 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73510         leave errno alone.  Problem reported by Dmitry V. Levin.
73511
73512 2005-10-28  Simon Josefsson  <jas@extundo.com>
73513
73514         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73515         Test more.
73516
73517         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73518
73519         * modules/md2, modules/md2-tests: New files.
73520
73521 2005-10-28  Simon Josefsson  <jas@extundo.com>
73522
73523         * m4/inet_ntop.m4: More tests.
73524
73525         * m4/gc-md2.m4, md2.m4: New file.
73526
73527 2005-10-28  Simon Josefsson  <jas@extundo.com>
73528
73529         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73530         "restrict" keywords, as per POSIX.  Protect the function
73531         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73532         Don't use K&R prototypes.  Check the sprintf return values.
73533         Re-define EAFNOSUPPORT if not present.  Indent.
73534
73535         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73536         suggested by Bruno Haible <bruno@clisp.org>.
73537
73538         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73539
73540         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73541
73542         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73543         libgcrypt).
73544
73545         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73546
73547         * lib/md2.h, lib/md2.c: New files.
73548
73549 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73552         errno alone.  Problem reported by Frederic Jolliton.
73553
73554 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * modules/verify (License): Change from GPL to LGPL.  This is a
73557         tiny module and there are apparently near-equivalents that are
73558         under the BSD license.
73559
73560 2005-10-24  Simon Josefsson  <jas@extundo.com>
73561
73562         * modules/sha1: Relicense to LGPL.
73563
73564 2005-10-24  Simon Josefsson  <jas@extundo.com>
73565
73566         * lib/md4.h: Shrink buffer size, now that we changed the type.
73567
73568 2005-10-23  Simon Josefsson  <jas@extundo.com>
73569
73570         * gnulib-tool (func_import): Fix --tests-base.
73571
73572 2005-10-22  Simon Josefsson  <jas@extundo.com>
73573
73574         * modules/arcfour (Depends-on): Need stdint.
73575
73576 2005-10-22  Simon Josefsson  <jas@extundo.com>
73577
73578         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73579         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73580
73581 2005-10-22  Simon Josefsson  <jas@extundo.com>
73582
73583         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73584         suggested by Bruno Haible <bruno@clisp.org>.
73585
73586 2005-10-22  Simon Josefsson  <jas@extundo.com>
73587
73588         * lib/crc.h: Include stddef.h, for size_t.
73589
73590 2005-10-22  Simon Josefsson  <jas@extundo.com>
73591
73592         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73593         arcfour_context struct (simplify test vector testing in GNU
73594         Shishi).
73595
73596 2005-10-21  Simon Josefsson  <jas@extundo.com>
73597
73598         * modules/des, modules/des-tests: New files.
73599
73600         * modules/gc-des, modules/gc-des-tests: New files.
73601
73602         * tests/test-des.c, tests/test-gc-des.c: New file.
73603
73604 2005-10-21  Simon Josefsson  <jas@extundo.com>
73605
73606         * modules/arctwo, modules/arctwo-tests: New files.
73607
73608         * tests/test-arctwo.c: New file.
73609
73610         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73611
73612         * tests/test-gc-arctwo.c: New file.
73613
73614 2005-10-21  Simon Josefsson  <jas@extundo.com>
73615
73616         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73617         Bruno Haible <bruno@clisp.org>.
73618
73619         * m4/gc-des.m4: New file.
73620
73621 2005-10-21  Simon Josefsson  <jas@extundo.com>
73622
73623         * m4/arctwo.m4: New file.
73624
73625         * m4/gc-arctwo.m4: New file.
73626
73627 2005-10-21  Simon Josefsson  <jas@extundo.com>
73628
73629         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73630         block.
73631
73632 2005-10-21  Simon Josefsson  <jas@extundo.com>
73633
73634         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73635         <bruno@clisp.org>.
73636
73637         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73638
73639         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73640         Bruno Haible <bruno@clisp.org>.
73641
73642         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73643         <bruno@clisp.org>.
73644
73645 2005-10-21  Simon Josefsson  <jas@extundo.com>
73646
73647         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73648
73649 2005-10-21  Simon Josefsson  <jas@extundo.com>
73650
73651         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73652
73653 2005-10-21  Simon Josefsson  <jas@extundo.com>
73654
73655         * lib/des.h, lib/des.c: New files.
73656
73657         * lib/gc-gnulib.c: Support DES.c
73658
73659 2005-10-21  Simon Josefsson  <jas@extundo.com>
73660
73661         * lib/arctwo.h, lib/arctwo.c: New files.
73662
73663         * lib/gc-gnulib.c: Support ARCTWO.
73664
73665 2005-10-21  Simon Josefsson  <jas@extundo.com>
73666
73667         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73668         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73669
73670 2005-10-21  Simon Josefsson  <jas@extundo.com>
73671
73672         * gnulib-tool (func_import, func_create_testdir): Define automake
73673         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73674         Makefile.am snippet),
73675         suggested by Bruno Haible <bruno@clisp.org>.
73676
73677         * modules/gc (Makefile.am): Use it.
73678
73679 2005-10-21  Bruno Haible  <bruno@clisp.org>
73680
73681         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73682         patch.
73683
73684 2005-10-19  Simon Josefsson  <jas@extundo.com>
73685
73686         * tests/test-gc-rijndael.c: New file.
73687
73688         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73689
73690 2005-10-19  Simon Josefsson  <jas@extundo.com>
73691
73692         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73693         interface too.
73694
73695 2005-10-19  Simon Josefsson  <jas@extundo.com>
73696
73697         * tests/test-gc-arcfour.c: New file.
73698
73699         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73700
73701 2005-10-19  Simon Josefsson  <jas@extundo.com>
73702
73703         * modules/gc-md4, modules/gc-md4-tests: New file.
73704
73705         * tests/test-gc-md4.c: New file.
73706
73707 2005-10-19  Simon Josefsson  <jas@extundo.com>
73708
73709         * m4/gc-md4.m4: New file.
73710
73711 2005-10-19  Simon Josefsson  <jas@extundo.com>
73712
73713         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73714         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73715         <kasal@ucw.cz>.
73716
73717 2005-10-19  Simon Josefsson  <jas@extundo.com>
73718
73719         * m4/gc-arcfour.m4: New file.
73720
73721         * m4/gc-rijndael.m4: New file.
73722
73723 2005-10-19  Simon Josefsson  <jas@extundo.com>
73724
73725         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73726
73727 2005-10-19  Simon Josefsson  <jas@extundo.com>
73728
73729         * lib/gc-gnulib.c: Support ARCFOUR.
73730
73731 2005-10-19  Simon Josefsson  <jas@extundo.com>
73732
73733         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73734         support.
73735
73736         * lib/gc.h: Add ECB enum type.
73737
73738         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73739
73740 2005-10-18  Simon Josefsson  <jas@extundo.com>
73741
73742         * tests/test-md5.c: New file.
73743
73744         * modules/md5-tests: New file.
73745
73746 2005-10-18  Simon Josefsson  <jas@extundo.com>
73747
73748         * tests/test-md4.c: New file.
73749
73750         * modules/md4, modules/md4-tests: New files.
73751
73752 2005-10-18  Simon Josefsson  <jas@extundo.com>
73753
73754         * m4/md4.m4: New file.
73755
73756 2005-10-18  Simon Josefsson  <jas@extundo.com>
73757
73758         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73759
73760 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73761
73762         * gnulib-tool (func_create_testdir): Omit the second check whether
73763         BUILT_SOURCES in nonempty.
73764
73765 2005-10-17  Simon Josefsson  <jas@extundo.com>
73766
73767         * tests/test-rijndael.c: New file.
73768
73769 2005-10-17  Simon Josefsson  <jas@extundo.com>
73770
73771         * modules/sha1: Depend on stdint instead of md5.
73772
73773         * modules/md5: Depend on stdint, remove uint32_t.
73774
73775 2005-10-17  Simon Josefsson  <jas@extundo.com>
73776
73777         * modules/gc-sha1-tests: New file.
73778
73779         * tests/test-gc-sha1.c: New file.
73780
73781 2005-10-17  Simon Josefsson  <jas@extundo.com>
73782
73783         * m4/md5.m4: Remove call to uint32_t.m4.
73784
73785 2005-10-17  Simon Josefsson  <jas@extundo.com>
73786
73787         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73788
73789         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73790         md5.h.
73791
73792         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73793
73794         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73795
73796 2005-10-17  Simon Josefsson  <jas@extundo.com>
73797
73798         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73799
73800 2005-10-17  Simon Josefsson  <jas@extundo.com>
73801
73802         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73803
73804 2005-10-17  Simon Josefsson  <jas@extundo.com>
73805
73806         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73807
73808         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73809
73810 2005-10-17  Bruno Haible  <bruno@clisp.org>
73811
73812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73813         that it can also be used in a test.
73814
73815 2005-10-16  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73818         TESTS_ENVIRONMENT, so that individual tests can augment it.
73819
73820         * gnulib-tool (func_create_testdir): Use an intermediate target for
73821         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73822         macros, like $(ALLOCA_H), which cannot be passed through the command
73823         line.
73824
73825 2005-10-15  Simon Josefsson  <jas@extundo.com>
73826
73827         * modules/rijndael-tests: New file.
73828
73829         * modules/rijndael: New file.
73830
73831 2005-10-15  Simon Josefsson  <jas@extundo.com>
73832
73833         * m4/rijndael.m4: New file.
73834
73835 2005-10-15  Simon Josefsson  <jas@extundo.com>
73836
73837         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73838
73839         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73840
73841 2005-10-14  Simon Josefsson  <jas@extundo.com>
73842
73843         * tests/test-arcfour.c: New file.
73844
73845         * modules/arcfour, modules/arcfour-tests: New files.
73846
73847 2005-10-14  Simon Josefsson  <jas@extundo.com>
73848
73849         * m4/arcfour.m4: New file.
73850
73851 2005-10-14  Simon Josefsson  <jas@extundo.com>
73852
73853         * lib/arcfour.h, lib/arcfour.c: New files.
73854
73855 2005-10-14  Roland McGrath  <roland@redhat.com>
73856
73857         Import from libc.  [BZ #1331]
73858         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73859         macro argument.
73860         Reported by Matej Vela <vela@debian.org>.
73861
73862 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73865         include <wchar.h>; no longer needed.
73866
73867 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73870
73871 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73872         and  Ulrich Drepper  <drepper@redhat.com>
73873
73874         Import from libc.
73875         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73876         instead of inline stream orientation test and two separate
73877         function calls.  Pay no attention to USE_IN_LIBIO.
73878
73879 2005-10-13  Simon Josefsson  <jas@extundo.com>
73880
73881         * modules/gc-hmac-md5-tests: New file.
73882
73883         * tests/test-gc-hmac-sha1.c: New file.
73884
73885         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73886
73887         * modules/gc-hmac-md5-tests: New file.
73888
73889         * tests/test-gc-md5.c: New file.
73890
73891         * modules/gc-md5-tests: New file.
73892
73893 2005-10-13  Simon Josefsson  <jas@extundo.com>
73894
73895         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73896         Move memory allocation outside of loop.
73897
73898 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73901         intermediate directory is in a read-only file system.  Problem
73902         reported by Eric Blake.
73903
73904 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73905
73906         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73907
73908 2005-10-12  Simon Josefsson  <jas@extundo.com>
73909
73910         * tests/test-hmac-sha1.c: New file.
73911
73912         * modules/hmac-sha1-tests: New file.
73913
73914         * modules/hmac-sha1: New file.
73915
73916 2005-10-12  Simon Josefsson  <jas@extundo.com>
73917
73918         * modules/gc-sha1: New file.
73919
73920 2005-10-12  Simon Josefsson  <jas@extundo.com>
73921
73922         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73923
73924         * tests/test-gc-pbkdf2-sha1.c: New file.
73925
73926 2005-10-12  Simon Josefsson  <jas@extundo.com>
73927
73928         * modules/gc-md5, modules/gc-hmac-md5: New files.
73929
73930         * modules/gc (Files): Remove md5, memxor and hmac files.
73931
73932 2005-10-12  Simon Josefsson  <jas@extundo.com>
73933
73934         * m4/gc-pbkdf2-sha1.m4: New file.
73935
73936         * m4/gc-hmac-sha1.m4: New file.
73937
73938         * m4/gc-sha1: New file.
73939
73940         * m4/hmac-sha1.m4: New file.
73941
73942 2005-10-12  Simon Josefsson  <jas@extundo.com>
73943
73944         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73945
73946         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73947
73948 2005-10-12  Simon Josefsson  <jas@extundo.com>
73949
73950         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73951         suggested by Bruno Haible <bruno@clisp.org>.
73952
73953 2005-10-12  Simon Josefsson  <jas@extundo.com>
73954
73955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73956
73957 2005-10-12  Simon Josefsson  <jas@extundo.com>
73958
73959         * lib/gc-pbkdf2-sha1.c: New file.
73960
73961         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73962
73963 2005-10-12  Simon Josefsson  <jas@extundo.com>
73964
73965         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73966
73967         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73968
73969 2005-10-12  Simon Josefsson  <jas@extundo.com>
73970
73971         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73972         GC_USE_HMAC_MD5, respectively.
73973
73974         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73975         (gc_md5): Fix typo.
73976
73977         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73978
73979         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73980
73981         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73982
73983 2005-10-12  Bruno Haible  <bruno@clisp.org>
73984
73985         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73986         Reported by Stepan Kasal <kasal@ucw.cz>.
73987
73988 2005-10-11  Simon Josefsson  <jas@extundo.com>
73989
73990         * tests/test-crc.c: New file.
73991
73992         * modules/crc, modules/crc-tests: New files.
73993
73994 2005-10-11  Simon Josefsson  <jas@extundo.com>
73995
73996         * m4/crc.m4: New file.
73997
73998 2005-10-11  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74001
74002         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74003
74004         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74005
74006 2005-10-11  Simon Josefsson  <jas@extundo.com>
74007
74008         * lib/crc.h, lib/crc.c: New files.
74009
74010         * lib/gc.h (gc_hash_buffer): Add doc.
74011
74012 2005-10-11  Bruno Haible  <bruno@clisp.org>
74013
74014         * modules/c-strcasestr: New file.
74015         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74016
74017 2005-10-11  Bruno Haible  <bruno@clisp.org>
74018
74019         * modules/c-strcase: New file.
74020         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74021
74022 2005-10-11  Bruno Haible  <bruno@clisp.org>
74023
74024         * lib/strcasecmp.c: Include limits.h.
74025         (strcasecmp): Avoid integer overflow on exotic platforms.
74026         * lib/strncasecmp.c: Include limits.h.
74027         (strncasecmp): Avoid integer overflow on exotic platforms.
74028         Reported by Paul Eggert.
74029
74030 2005-10-11  Bruno Haible  <bruno@clisp.org>
74031
74032         * lib/c-strcasestr.h: New file, from GNU gettext.
74033         * lib/c-strcasestr.c: New file, from GNU gettext.
74034
74035 2005-10-11  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/c-strcase.h: New file, from GNU gettext.
74038         * lib/c-strcasecmp.c: New file, from GNU gettext.
74039         * lib/c-strncasecmp.c: New file, from GNU gettext.
74040
74041 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74042
74043         * modules/mempcpy (License): GPL -> LGPL.
74044         * modules/strchrnul (License): Likewise.
74045         * modules/sysexits (License): Likewise.
74046
74047 2005-10-08  Simon Josefsson  <jas@extundo.com>
74048
74049         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74050
74051 2005-10-07  Simon Josefsson  <jas@extundo.com>
74052
74053         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74054
74055 2005-10-06  Simon Josefsson  <jas@extundo.com>
74056
74057         * tests/test-hmac-md5.c: New file.
74058
74059         * modules/hmac-md5-tests: New file.
74060
74061         * modules/hmac-md5: New file.
74062
74063 2005-10-06  Simon Josefsson  <jas@extundo.com>
74064
74065         * m4/hmac-md5.m4: New file.
74066
74067         * m4/memxor.m4: Require gl_C_RESTRICT.
74068
74069 2005-10-06  Simon Josefsson  <jas@extundo.com>
74070
74071         * lib/memxor.c (memxor): Avoid casts and warnings.
74072
74073 2005-10-06  Simon Josefsson  <jas@extundo.com>
74074
74075         * lib/hmac-md5.c: New file.
74076
74077         * lib/hmac.h: New file.
74078
74079 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74082         promotes to int, not unsigned int, to catch the AIX 5.3
74083         compiler bug.
74084
74085 2005-10-05  Simon Josefsson  <jas@extundo.com>
74086
74087         * modules/memxor: New file.
74088
74089         * modules/iconv (Files): Move config.rpath to havelib, it is used
74090         there.
74091
74092         * modules/havelib (Files): Add config.rpath.
74093
74094 2005-10-05  Simon Josefsson  <jas@extundo.com>
74095
74096         * m4/memxor.m4: New file.
74097
74098 2005-10-05  Simon Josefsson  <jas@extundo.com>
74099
74100         * lib/memxor.c (memxor): Fix compiler error.
74101
74102         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74103         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74104
74105         * lib/memxor.h, lib/memxor.c: New files.
74106
74107         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74108         we assume all systems have it, suggested by Jim Meyering
74109         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74110         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74111         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74112         same reasons.
74113
74114 2005-10-05  Simon Josefsson  <jas@extundo.com>
74115
74116         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74117
74118 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74121         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74122         needed, since the source code now assumes these .h files.
74123
74124 2005-10-05  Derek Price  <derek@ximbiot.com>
74125
74126         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74127
74128 2005-10-05  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/stdint (License): Change to LGPL.
74131
74132 2005-10-04  Simon Josefsson  <jas@extundo.com>
74133
74134         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74135         D. Baushke" <mdb@gnu.org>.
74136
74137 2005-10-04  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/verify.h (verify_true): Provide alternative definition for C++.
74140
74141 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74144         (SSIZE_MAX): New macro, if not already defined.
74145         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74146         than 2 GiB.
74147
74148 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         Sync from coreutils.
74151         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74152         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74153         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74154         ULLONG_MAX doesn't work with 2.7.2.1.
74155
74156 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74159         From Ben Pfaff.
74160
74161         * modules/exclude (Depends-on): Depend on verify.
74162         * modules/strtoimax (Depends-on): Likewise.
74163         * modules/utimecmp (Depends-on): Likewise.
74164
74165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * lib/exclude.c: Include verify.h.
74168         (verify): Remove.  All callers changed to use verify.h's version.
74169         * lib/strtoimax.c: Likewise.
74170         * lib/utimecmp.c: Likewis.e
74171
74172         Sync from coreutils.
74173         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74174         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74175         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74176         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74177         bother returning ENOSYS if settimeofday or stime fails; just let
74178         them return whatever errno they want to return.
74179         * lib/utimens.c: Include unistd.h, for dup2.
74180         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74181         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74182
74183 2005-10-02  Jim Meyering  <jim@meyering.net>
74184
74185         Sync from coreutils.
74186         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74187         from glibc-2.2.5 that fails for read-only files.
74188
74189 2005-10-02  Jim Meyering  <jim@meyering.net>
74190
74191         Sync from coreutils.
74192         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74193         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74194         `#if HAVE_CONFIG_H'.
74195         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74196         Remove AT_FDCWD test.
74197         Do not consume the fd unless successful.
74198         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74199         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74200         block, so that we don't even try to compile it if settimeofday is
74201         available.  This works around a compilation failure on OSF1 V5.1,
74202         due to stime requiring a `long int*' while tv_sec is `int'.
74203
74204 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74205
74206         Sync from coreutils.
74207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74208         against `yes', rather than just testing for nonempty.
74209
74210 2005-10-01  Simon Josefsson  <jas@extundo.com>
74211
74212         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74213         and Darwin.
74214
74215         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74216         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74217         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74218         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74219         Check if struct addrinfo is declared.
74220
74221 2005-10-01  Simon Josefsson  <jas@extundo.com>
74222
74223         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74224         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74225         AI_* and EAI_* definitions.  Protect function declarations.
74226
74227 2005-10-01  Jim Meyering  <jim@meyering.net>
74228
74229         Sync from coreutils.
74230
74231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74232         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74233         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74235         in the inet and nsl libraries.  Required on Solaris 5.7.
74236
74237 2005-10-01  Jim Meyering  <jim@meyering.net>
74238
74239         Sync from coreutils.
74240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74241         in the inet and nsl libraries.  Required on Solaris 5.7.
74242
74243 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74244
74245         * lib/getdelim.c (getdelim): Remove unused variables.
74246
74247 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74250         so that the code works even with ancient cpp.  Portability problem
74251         with GCC 2.7.2.1 reported by Thomas M.Ott.
74252
74253 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * modules/regex (Depends-on): Add strcase.
74256
74257         * modules/gethostname (Licence): Change from GPL to LGPL, since
74258         gethostname.c is a trivial implementation of a standard library
74259         function.
74260         * modules/poll (License): Change from GPL to LGPL, since it's
74261         derived from LGPL code.
74262
74263 2005-09-27  Jim Meyering  <jim@meyering.net>
74264
74265         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74266         HAVE_CONFIG_H.
74267
74268         * lib/intprops.h (signed_type_or_expr__): Define.
74269         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74270         for unsigned types.
74271
74272 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * lib/verify.h (verify_expr): Remove, replacing with:
74275         (verify_true): New macro that returns true instead of void.
74276         (verify_type__): Remove.
74277         (verify): Use verify_true rather than verify_type__.
74278
74279 2005-09-26  Bruno Haible  <bruno@clisp.org>
74280
74281         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74282         is necessary.
74283         (lib_SOURCES): Remove mbchar.c.
74284         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74285         (Files): Add m4/mbrtowc.m4.
74286         * modules/mbiter: Likewise.
74287         * modules/mbuiter: Likewise.
74288
74289 2005-09-26  Bruno Haible  <bruno@clisp.org>
74290
74291         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74292         compile mbchar.c if they are not both present.
74293         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74294         * m4/mbiter.m4 (gl_MBITER): Likewise.
74295         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74296         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74297         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74298
74299 2005-09-25  Jim Meyering  <jim@meyering.net>
74300
74301         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74302         also uses socklen_t.
74303
74304 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * lib/utimens.c (ENOSYS): Define if not already defined.
74307         (futimens): Support having a null PATH if the file descriptor
74308         is nonnegative.
74309
74310         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74311         Remove.
74312         (__attribute): Define to empty unless GCC 3.1 or later.
74313         This works around a core dump on OpenBSD 3.4, which has GCC
74314         2.95.3, which dumps core when given __attribute__(()).  It also
74315         simplifies other tests, since we really don't want to bother with
74316         worrying about which ancient version of GCC supported what.
74317         Original problem reported by Yoann Vandoorselaere, with part of
74318         the fix suggested by Derek Price.
74319
74320 2005-09-24  Jim Meyering  <jim@meyering.net>
74321
74322         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74323         so we can once again use a positive bitfield width of 1 -- now we
74324         don't have to explain why we were using a bitfield width of 2.
74325
74326 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74329         and similarly for the other external symbols.  Problem reported
74330         by James Gallager.
74331
74332         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74333         bug reported by Jim Meyering.
74334
74335         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74337         not needed, since socklen is a prerequisite module.
74338
74339 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74342         Problem reported by Eric Blake.
74343         (getaddrinfo): Initialize se so that it's not garbage.
74344         Redo internal storage allocation so that it doesn't make unportable
74345         assumptions about alignment.
74346         Fix a memory leak.
74347
74348         * lib/utimens.c (futimens): Use futimesat if available.
74349         Prefer it to futimes since it doesn't have the futimes bug.
74350
74351         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74352         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74353         Instead, declare a function that returns a pointer to an array,
74354         and use verify_type__ to declare the size of the array.
74355         Problem and germ of a solution reported by Bruno Haible.
74356         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74357         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74358
74359 2005-09-23  Jim Meyering  <jim@meyering.net>
74360
74361         Sync from coreutils.
74362         Correct build failure (socklen_t not defined) on at least
74363         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74365
74366 2005-09-23  Jim Meyering  <jim@meyering.net>
74367
74368         * modules/getaddrinfo (Depends-on): Add socklen.
74369
74370 2005-09-23  Bruno Haible  <bruno@clisp.org>
74371
74372         * tests/test-verify.c: New file.
74373
74374 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         Sync from coreutils.
74377
74378         * modules/argmatch (Depends-on): Add verify.
74379         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74380         unistd-safer.
74381         * modules/save-cwd (Depends-on): Likewise.
74382
74383         * modules/openat (Files): Add lib/openat-die.c.
74384         (Depends-on): Remove error, exitfail.
74385         Add dirname.
74386
74387         * modules/verify: New file.
74388         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74389         with "verify" module.
74390
74391 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         Sync from coreutils.
74394
74395         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74396         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74397         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74398         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74399         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74400         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74401         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74402         Don't bother checking for string.h, stdlib.h, unistd.h.
74403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74404         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74405         module's job.
74406         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74407         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74408
74409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74410         (gl_GETDATE): Use it.
74411
74412         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74413
74414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         Sync from coreutils.
74417
74418         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74419         stat-time.h.
74420         * lib/argmatch.h: Include verify.h
74421         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74422         (ARGMATCH_ASSERT): Remove; unused.
74423         * lib/canonicalize.c: Assume STDC_HEADERS.
74424         * lib/exclude.c: Include "strcase.h".
74425         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74426         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74427         and stdio-safer.h.
74428         (getusershell): Call fopen, not fopen_safer.
74429         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74430         Do not include unistd-safer.h.
74431         (save_cwd): Don't call fd_safer; no longer needed
74432         now that we include fcntl--.h.
74433
74434         * lib/getdate.y (relative_time): New type.
74435         (RELATIVE_TIME_0): New constant.
74436         (parser_control): Use relative_time instead of doing it ourselves.
74437         (%union): Add new relative_time rel member.
74438         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74439         Now typeless.
74440         (relunit, relunit_snumber): Now of type rel.
74441         (zone, rel, relunit, get_date): Adjust to above changes.
74442
74443         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74444         Do not include unistd-safer.h.
74445         (getloadavg): Don't call fd_safer; no longer needed
74446         now that we include fcntl--.h.
74447
74448         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74449         (make_dir_parents): Treat ENOSYS like EEXIST.
74450
74451         Improve quality of diagnostics on restore_cwd failure.
74452         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74453         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74454         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74455         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74456         each time through the loop.  Do not diagnose restore_cwd failure;
74457         that is the caller's job (and perhaps the caller does not care).
74458
74459         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74460         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74461         If the file already exists but is not a directory, don't bother
74462         to try to make its parents.
74463         Close potential file descriptor leak if we can't chdir("/") (!).
74464         Don't always return true if chdir($PWD) fails; return true only
74465         if the requested action was done successfully (except for the
74466         chdir($PWD)).
74467         Don't log final directory unless we actually made it.
74468         Refactor to avoid duplicate code to fix up permissions.
74469         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74470
74471         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74472         to make it a bit faster and (I hope) clearer.
74473         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74474         Fix bug in formats like %2N.
74475
74476         * lib/verify.h: New file.
74477
74478 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         Sync from coreutils.
74481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74482
74483 2005-09-22  Jim Meyering  <jim@meyering.net>
74484
74485         Sync from coreutils.
74486
74487         * m4/lstat.m4 (gl_FUNC_LSTAT):
74488         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74489         Remove obsolete comment.
74490         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74491         * m4/xstrtod.m4: Likewise.
74492
74493         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74494
74495 2005-09-22  Jim Meyering  <jim@meyering.net>
74496
74497         Sync from coreutils.
74498
74499         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74500
74501         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74502         the .tm_year member, since otherwise gcc-4.0 would now warn about
74503         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74504
74505         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74506         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74507
74508         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74509         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74510         when run in a time zone for which daylight savings time is in effect
74511         for the starting date.
74512
74513         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74514         stop us from restricting permissions of just-created absolute-named
74515         directories.
74516         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74517         to restore initial working directory.
74518         * lib/mkdir-p.c (make_dir_parents): New parameter:
74519         different_working_dir, to tell caller if/when we change the working
74520         directory and are unable to return to the initial one.
74521         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74522         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74523         `return false'.  This fixes a bug introduced on 2004-07-30.
74524
74525         * lib/openat.c (fdopendir): Be sure to close the supplied
74526         file descriptor before returning.  This makes our replacement
74527         implementation a little closer to Solaris's, where fdopendir
74528         ties the file descriptor to the returned DIR* pointer.
74529         * lib/openat.c (unlinkat): New function.
74530         * lib/openat.h (unlinkat): Add prototype.
74531         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74532         (openat_restore_fail): Rename from openat_restore_die.
74533         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74534
74535         Provide an alternative to exiting immediately upon save_cwd or
74536         restore_cwd failure.  Now, an application can arrange e.g.,
74537         to perform a longjump in that case.
74538         * lib/openat.c: Include dirname.h.
74539         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74540         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74541         and openat_restore_die rather than calling error directly.
74542         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74543
74544         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74545         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74546         define.
74547
74548         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74549         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74550                             int utc, int nanoseconds);
74551         Background:
74552         date should not have to allocate a megabyte of virtual memory to
74553         handle a format argument like +%1048575T.  When implemented with
74554         strftime, it must allocate such a buffer, use strftime to fill it
74555         in, print it, then free it.
74556         With fprintftime, it simply prints everything and exits.
74557         With no need for memory allocation, that's one fewer way to fail.
74558         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74559         optional field width, not before, so we accept %9:z, not %:9z.
74560         (my_strftime): Be sure to use L_('x') for literals.
74561
74562         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74563         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74564         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74565         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74566         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74567         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74568         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74569         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74570         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74571         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74572         * lib/xgethostname.c, lib/xreadlink.c:
74573         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74574
74575         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74576         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74577         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74579         and don't include <sys/file.h>).
74580
74581 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74582
74583         Sync from coreutils.
74584
74585         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74586         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74587         [!LDAV_DONE]: Avoid unused variable warning.
74588
74589 2005-09-21  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/unicodeio.h (unicode_to_mb): New declaration.
74592
74593 2005-09-20  Derek Price  <derek@ximbiot.com>
74594
74595         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74596         getaddrinfo.h.
74597
74598 2005-09-20  Bruno Haible  <bruno@clisp.org>
74599
74600         * gnulib-tool: Remove trailing slashes from the values specified for
74601         --source-base, --m4-base, --tests-base, --aux-dir.
74602         Suggested by Simon Josefsson <jas@extundo.com>.
74603
74604 2005-09-20  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74607         func_modules_to_filelist, func_import, func_create_testdir): Make all
74608         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74609         change when gnulib-tool is invoked in a different locale.
74610
74611 2005-09-19  Simon Josefsson  <jas@extundo.com>
74612
74613         * m4/socklen.m4: Fix typo.
74614
74615 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74616
74617         Use a consistent style for including <config.h>.
74618         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74619         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74620         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74621         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74622         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74623         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74624         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74625         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74626         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74627         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74628         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74629         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74630         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74631         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74632         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74633         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74634         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74635         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74636         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74637         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74638         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74639         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74640         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74641         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74642         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74643         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74644         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74645         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74646         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74647         lib/xstrtoumax.c, lib/yesno.c:
74648         Standardize inclusion of config.h.
74649         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74650         lib/inttostr.h:  Removed inclusion of config.h from header files.
74651         * lib/inttostr.c:  Adjusted in-tree users.
74652         * lib/timespec.h: Remove superfluous warning to include config.h.
74653         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74654         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74655         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74656         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74657         config.h with HAVE_CONFIG_H.
74658
74659 2005-09-19  Jim Meyering  <jim@meyering.net>
74660
74661         * modules/pathmax (License): Change to LGPL.
74662
74663 2005-09-19  Derek Price  <derek@ximbiot.com>
74664
74665         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74666
74667 2005-09-19  Bruno Haible  <bruno@clisp.org>
74668
74669         * gnulib-tool (import): Provide default for --tests-base.
74670
74671 2005-09-19  Bruno Haible  <bruno@clisp.org>
74672
74673         * doc/quote.texi: New file, extracted from gnulib.texi.
74674         * doc/ctime.texi: New file, extracted from gnulib.texi.
74675         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74676         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74677         * doc/gnulib.texi: Include them.
74678
74679 2005-09-18  Bruno Haible  <bruno@clisp.org>
74680
74681         Portability fix.
74682         * gnulib-tool (func_readlink): New function.
74683         (func_ln_if_changed): Use it.
74684
74685 2005-09-18  Bruno Haible  <bruno@clisp.org>
74686
74687         * gnulib-tool: Support --with-tests also with --import.
74688         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74689         (func_import): Use variables $testsbase and $inctests. Emit a
74690         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74691         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74692         SUBDIRS += $testsdir.
74693         (func_create_testdir): Update.
74694
74695 2005-09-18  Bruno Haible  <bruno@clisp.org>
74696
74697         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74698         instead of $dry_run.
74699         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74700         (func_ln_if_changed): Don't handle dry-run here.
74701         (func_import): In dry-run mode, detect more precisely which actions
74702         would be performed, and don't use "...ing" verbs.
74703
74704 2005-09-18  Bruno Haible  <bruno@clisp.org>
74705
74706         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74707         (func_import): Use join on two temporary files instead of three nested
74708         loops, in order to determine which files are new or old.
74709
74710 2005-09-18  Bruno Haible  <bruno@clisp.org>
74711
74712         * gnulib-tool (func_import): Comment out code that spits out the
74713         new files with --dry-run.
74714
74715 2005-09-18  Bruno Haible  <bruno@clisp.org>
74716
74717         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74718
74719 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/stat-time.h: New file.
74722         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74723         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74724         in a different way.
74725         (timespec_cmp): New function.
74726         * lib/utimecmp.c: Include stat-time.h.
74727         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74728         members exist, not on the obsolescent ST_MTIM_NSEC.
74729         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74730
74731 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74734
74735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * MODULES.html.sh (File system functions): Add stat-time.
74738         * modules/stat-time: New file.
74739         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74740         is now done in a different way, by the stat-time module.
74741         * modules/utimecmp (Depends-on): Add stat-time.
74742
74743 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * m4/st_mtim.m4: Remove.  Superseded by...
74746         * m4/stat-time.m4: New file.
74747         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74748         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74749
74750 2005-09-15  Derek Price  <derek@ximbiot.com>
74751
74752         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74753
74754 2005-09-15  Derek Price  <derek@ximbiot.com>
74755
74756         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74757         * lib/regex_internal.c: Ditto, using this...
74758         (__GNUC_PREREQ): ...new macro.
74759         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74760         using...
74761         (__GNUC_PREREQ): ...this new macro.
74762
74763         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74764
74765 2005-09-15  Derek Price  <derek@ximbiot.com>
74766             Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74769         changes, consolidating in...
74770         * lib/regex_internal.h: ...this file.
74771
74772 2005-09-13  Jim Meyering  <jim@meyering.net>
74773
74774         * lib/canon-host.c: Filter through gnu indent and reword comments
74775         slightly.
74776         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74777
74778 2005-09-13  Derek Price  <derek@ximbiot.com>
74779
74780         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74781         failure.
74782         Reported by Jim Meyering  <jim@meyering.net>.
74783
74784 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74785
74786         * lib/base64.c: Typo.
74787         (base64_encode): Put b64str in initialized data section.
74788
74789 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         Merge glibc and coreutils changes into gnulib, plus a few
74792         extra fixes.
74793         * lib/md5.c: Use #error rather than a string.
74794         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74795         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74796         (__attribute__): Define to empty for non recent-GCC.
74797         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74798         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74799         Renamed from their non-__ counterparts, with new macros replacing
74800         them if not _LIBC.  Add __THROW attribute.
74801         (rol): Remove.
74802         (struct md5_ctx): Align buffer if using GCC.
74803         * lib/sha1.h (struct sha1_ctx): Likewise.
74804         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74805         The old name was backwards.
74806         (NOTSWAP): Remove; not used.
74807         (rol): New macro, moved here from md5.h.
74808         (sha1_process_block): Remove a FIXME that doesn't make sense.
74809
74810 2005-09-12  Derek Price  <derek@ximbiot.com>
74811
74812         Return usable errors from canon-host.
74813         * lib/canon-host.h: New file.
74814         * lib/canon-host.c (canon_host): Wrap...
74815         (canon_host_r): ...this new function, which now relies exclusively on
74816         getaddrinfo.
74817         (ch_strerror): New function.
74818         (last_cherror): New global.
74819         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74820         interface.
74821         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74822         void *.
74823         (freeaddrinfo): Free ai->ai_canonname when set.
74824
74825 2005-09-12  Derek Price  <derek@ximbiot.com>
74826
74827         Make canon-host require getaddrinfo.
74828         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74829         AC_LIBSOURCE canon-host.h.  Call...
74830         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74831         gl_GETADDRINFO.
74832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74833
74834 2005-09-12  Derek Price  <derek@ximbiot.com>
74835
74836         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74837         LGPL.
74838         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74839
74840 2005-09-12  Derek Price  <derek@ximbiot.com>
74841
74842         * lib/gai_strerror.c: Include config.h when available.  Include
74843         getaddrinfo.h before other headers to test interface.
74844         Reported by Larry Jones <lawrence.jones@ugs.com>.
74845
74846 2005-09-12  Derek Price  <derek@ximbiot.com>
74847             Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * modules/glob (Files): Add glob-libc.h.
74850
74851 2005-09-12  Derek Price  <derek@ximbiot.com>
74852             Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74855         glob_.h, glob-libc.h.
74856         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74857
74858 2005-09-12  Derek Price  <derek@ximbiot.com>
74859             Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74862         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74863         protecting things that should be done only in gnulib contexts.
74864         * lib/glob_.h: New file, containing only the glob things needed for
74865         gnulib.
74866         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74867         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74868         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74869         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74870         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74871         and to respect the namespace rules better.
74872
74873 2005-09-08  Simon Josefsson  <jas@extundo.com>
74874
74875         * modules/socklen: New file.
74876
74877 2005-09-08  Simon Josefsson  <jas@extundo.com>
74878
74879         * m4/socklen.m4: New file.
74880
74881 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * modules/utimens (Files): Add m4/utimbuf.m4, since
74884         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74885         Reported by Sergey Poznyakoff.
74886
74887 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74890         definitions, since that's the preferred style in glibc.
74891         Fix a minor spacing issue, and update copyright notice to match
74892         glibc's.
74893
74894 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74895
74896         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74897
74898 2005-09-06  Simon Josefsson  <jas@extundo.com>
74899
74900         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74901         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74902
74903 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74906         warning.
74907
74908 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * config/srclist.txt: Add glibc bug 1302.
74911
74912 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         Change bitset word type from unsigned int to unsigned long int,
74915         as this has better performance on typical 64-bit hosts.
74916         Port bitset code to hosts with unusual word sizes.
74917         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74918         (build_collating_symbol):
74919         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74920         argument is a bitset.  This is merely a style issue, but it makes
74921         it clearer that an entire array is expected.
74922         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74923         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74924         Port to the case where bitset_word is not the same as unsigned int.
74925         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74926         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74927         Likewise.
74928         * lib/regexec.c (check_dst_limits_calc_pos_1,
74929         check_subexp_matching_top):
74930         (build_trtable, group_nodes_into_DFAstates):
74931         Likewise.
74932         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74933         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74934         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74935         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74936         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74937         * lib/regcomp.c (optimize_subexps, lower_subexp):
74938         Work even if bitset_word has holes in its bitwise representation.
74939         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74940         * lib/regexec.c (check_dst_limits_calc_pos_1,
74941         check_subexp_matching_top):
74942         Likewise.
74943         * lib/regex_internal.c (re_string_reconstruct):
74944         Don't assume UCHAR_MAX == 255.
74945         * lib/regex_internal.h (bitset_set_all): Likewise.
74946         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74947         All uses changed.
74948         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74949         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74950         All uses changed.
74951         (BITSET_WORD_MAX): New macro.
74952         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74953         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74954         (bitset_empty, bitset_copy):
74955         Prefer sizeof (bitset) to multiplying it out ourselves.
74956         (bitset_not_merge): Remove; unused.
74957         (bitset_contain): Return bool, not unsigned int with one bit on.
74958         All callers changed.
74959         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74960         alignment than re_node_set; do this by defining a new internal
74961         type struct dests_alloc and using it to allocate memory.
74962
74963 2005-09-05  Bruno Haible  <bruno@clisp.org>
74964
74965         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74966         links.
74967
74968 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74969
74970         * modules/size_max (Makefile.am): Add size_max.h
74971
74972 2005-09-04  Derek Price  <derek@ximbiot.com>
74973
74974         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74975
74976 2005-09-03  Simon Josefsson  <jas@extundo.com>
74977
74978         * gnulib-tool: Fix typo.
74979
74980 2005-09-03  Simon Josefsson  <jas@extundo.com>
74981
74982         * config/srclist.txt: Add glibc bug 1293.
74983
74984 2005-09-03  Derek Price  <derek@ximbiot.com>
74985
74986         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74987         From Larry Jones <lawrence.jones@ugs.com>.
74988
74989 2005-09-02  Simon Josefsson  <jas@extundo.com>
74990
74991         * modules/socklen: New file.
74992
74993 2005-09-02  Simon Josefsson  <jas@extundo.com>
74994
74995         * modules/havelib: New module.
74996
74997         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74998         Use havelib.
74999
75000 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         Check for arithmetic overflow when calculating sizes, to prevent
75003         some buffer-overflow issues.  These patches are conservative, in the
75004         sense that when I couldn't determine whether an overflow was possible,
75005         I inserted a run-time check.
75006         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75007         macros.
75008         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75009         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75010         (re_xnrealloc, re_x2nrealloc): New inline functions.
75011         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75012         parse_bracket_exp):
75013         (build_equiv_class, build_charclass): Check for arithmetic overflow
75014         in size expression calculations.
75015         * lib/regex_internal.c (re_string_realloc_buffers):
75016         (build_wcs_upper_buffer, re_node_set_add_intersect):
75017         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75018         (re_dfa_add_node, register_state): Likewise.
75019         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75020         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75021         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75022         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75023
75024 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75027         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75028
75029 2005-09-02  Bruno Haible  <bruno@clisp.org>
75030
75031         Support for lib vs. lib64 distinction on biarch platforms.
75032         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75033         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75035
75036 2005-09-02  Bruno Haible  <bruno@clisp.org>
75037
75038         * gnulib-tool (import): In the other first-use case, provide defaults
75039         as well.
75040
75041 2005-09-02  Bruno Haible  <bruno@clisp.org>
75042
75043         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75044         patches not yet found in the latest gettext release.
75045
75046 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75047
75048         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75049         to avoid a collision with bits/local_lim.h in glibc.
75050         All uses changed.  Problem reported by Dmitry V. Levin in
75051         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75052
75053         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75054         bugs in int versus size_t comparisons.
75055         (re_string_context_at): Fix bug where the code assumed that
75056         Idx is signed.
75057
75058         Use bool where appropriate.
75059         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75060         All callers changed.
75061         (calc_eclosure_iter): Likewise, for ROOT arg.
75062         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75063         (build_charclass_op): Likewise, for NON_MATCH arg.
75064         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75065         (re_string_construct_common): Likewise, for ICASE arg.
75066         * lib/regexec.c (re_search_2_stub, re_search_stub):
75067         Likewise, for RET_LEN arg.
75068         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75069         (set_regs): Likewise, for FL_BACKTRACK arg.
75070         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75071         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75072         (calc_eclosure_iter, parse_bracket_exp):
75073         Use bool for internal variables that are booleans.
75074         * lib/regexec.c (re_search_internal, check_matching,
75075         proceed_next_node):
75076         (set_regs, build_sifted_states, sift_states_bkref):
75077         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75078         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75079         (find_collation_sequence_value):
75080         Likewise.
75081         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75082         (re_node_set_compare):
75083         Return bool, not int. All callers changed.
75084         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75085         (build_trtable, check_node_accept): Likewise.
75086         * lib/regex_internal.h: Include stdbool.h.
75087
75088         Fix bugs uncovered when converting to bool.
75089         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75090         failure instead of charging ahead blindly.
75091         * lib/regex_internal.c (register_state): Likewise.
75092         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75093         for freeing internal storage.
75094         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75095         bitset pieces used as boolean, to avoid undefined behavior
75096         on hosts that do int overflow checking.
75097
75098 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * config/srclist.txt: Add glibc bugs 1285-1287.
75101
75102 2005-09-01  Jim Meyering  <jim@meyering.net>
75103
75104         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75105         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75106         Require gl_STAT_MACROS, too.
75107
75108 2005-09-01  Bruno Haible  <bruno@clisp.org>
75109
75110         * gnulib-tool (import): In the first-use case, provide defaults.
75111
75112 2005-09-01  Bruno Haible  <bruno@clisp.org>
75113
75114         * gnulib-tool (func_import): Remove the .tmp files.
75115
75116 2005-09-01  Bruno Haible  <bruno@clisp.org>
75117
75118         * gnulib-tool (func_import): Fix handling of symbolic links.
75119
75120 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75123         old glibc regex code mishandles strings longer than 2**31 bytes.
75124         This patch fixes this when the regex code is used in gnulib
75125         (i.e., outside glibc).
75126
75127         This patch should not affect the use of the regex code inside
75128         glibc.  No doubt this problem also needs to be handled for glibc
75129         as well, but the result will be an incompatible change to the
75130         glibc ABI, and the old ABI will have to be supported too.  That
75131         can be the the subject for another patch.
75132
75133         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75134         governing whether the rest of this patch is active.  By default,
75135         the macro is disabled and the patch has no effect.
75136         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75137         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75138         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75139         (re_match_2, re_set_registers): Use the new types.
75140         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75141         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75142         New macros.
75143         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75144         (re_string_context_at, bin_tree_t, re_dfastate_t):
75145         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75146         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75147         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75148         (re_string_char_size_at, re_string_wchar_at):
75149         (re_string_elem_size_at):
75150         Use the new types and macros to port to 64-bit hosts.
75151         Use unsigned types for internal values, so that the code
75152         mostly works even for arrays larger than SSIZE_MAX.
75153         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75154         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75155         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75156         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75157         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75158         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75159         (calc_inveclosure, parse_dup_op, build_range_exp):
75160         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75161         (fetch_number, create_token_tree, mark_opt_subexp):
75162         Likewise.
75163         * lib/regex_internal.c (re_string_construct_common,
75164         create_ci_newstate):
75165         (create_cd_newstate, re_string_allocate, re_string_construct):
75166         (re_string_realloc_buffers, build_wcs_upper_buffer):
75167         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75168         (re_string_reconstruct, re_string_peek_byte_case):
75169         (re_string_fetch_byte_case, re_string_context_at):
75170         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75171         (re_node_set_init_copy, re_node_set_add_intersect):
75172         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75173         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75174         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75175         (re_acquire_state, re_acquire_state_context, register_state):
75176         Likewise.
75177         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75178         search_cur_bkref_entry):
75179         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75180         (re_search_internal, re_search_2_stub, re_search_stub)
75181         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75182         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75183         (update_cur_sifted_state, check_dst_limits):
75184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75185         (check_subexp_limits, sift_states_bkref, merge_state_array):
75186         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75187         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75188         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75189         (expand_bkref_cache, check_node_accept_bytes):
75190         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75191         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75192         (acquire_init_state_context, check_halt_node_context):
75193         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75194         (sift_states_backward, clean_state_log_if_needed):
75195         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75196         (find_recover_state, transit_state_sb, transit_state_mb):
75197         (transit_state_bkref, build_trtable, match_ctx_clean):
75198         Likewise.
75199         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75200         to work around an assumption that REG_MISSING is negative.
75201
75202         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75203         (seek_collating_symbol_entry) [defined _LIBC]:
75204         (lookup_collation_sequence_value) [defined _LIBC]:
75205         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75206         Use prototypes rather than old-style function definitions.
75207         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75208         (transit_state_sb) [0]:
75209         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75210
75211         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75212         rm_eo.
75213
75214         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75215         (optimize_subexps, lower_subexp):
75216         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75217         since the signed shift might overflow.  Use 1u<<31 instead.
75218         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75219         Likewise.
75220         * lib/regexec.c (check_dst_limits_calc_pos_1,
75221         check_subexp_matching_top): Likewise.
75222
75223         * lib/regcomp.c (optimize_subexps, lower_subexp):
75224         Use CHAR_BIT rather than 8, for clarity.
75225         * lib/regexec.c (check_dst_limits_calc_pos_1):
75226         (check_subexp_matching_top): Likewise.
75227         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75228         have to worry about portability issues when shifting it left.
75229         Remove no-longer-needed test for table_size > 0.
75230         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75231         in a word, as the resulting behavior is undefined.
75232         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75233         in one case, a <= should have been an <, and in another case the
75234         whole test was missing.
75235         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75236         the standard name CHAR_BIT.
75237         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75238         this is not true on one's complement and signed-magnitude hosts.
75239
75240         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75241         next_last_offset.
75242         (struct re_dfa_t): Remove unused member states_alloc.
75243         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75244
75245 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75248         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75249         and large-file glibc and in 32-bit large-file Solaris.
75250
75251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75254         lengths fit in regoff_t; this isn't true if regoff_t is the same
75255         width as size_t.
75256         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75257         (= START + RANGE) instead of RANGE.  This avoids overflow
75258         problems when regoff_t is the same width as size_t.
75259         All callers changed.
75260         (re_search_2_stub): Check for overflow when adding the
75261         sizes of the two strings.
75262         (re_search_stub): Check for overflow when adding START
75263         to RANGE; if it occurs, substitute the extreme value.
75264
75265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75268
75269 2005-08-31  Jim Meyering  <jim@meyering.net>
75270
75271         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75272         a pointer-to-const.
75273         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75274         (register_state): Likewise.
75275         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75276         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75277         (group_nodes_into_DFAstates): Likewise.
75278
75279 2005-08-31  Jim Meyering  <jim@meyering.net>
75280
75281         * check-module: Add a FIXME comment.
75282
75283 2005-08-31  Eric Blake  <ebb9@byu.net>
75284
75285         * modules/unistd-safer (Files): Add unistd--.h.
75286         * modules/stdio-safer (Files): Add stdio--.h.
75287
75288 2005-08-31  Derek Price  <derek@ximbiot.com>
75289
75290         * lib/getdelim.c (getdelim): Return EOF on EOF.
75291         Reported by Larry Jones <lawrence.jones@ugs.com>.
75292
75293 2005-08-31  Bruno Haible  <bruno@clisp.org>
75294
75295         Avoid unnecessary diffs in the generated lib/Makefile.am.
75296         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75297         the generated files.
75298         (func_import): Don't set cmd.
75299
75300 2005-08-31  Bruno Haible  <bruno@clisp.org>
75301
75302         * lib/strstr.c: Include <stddef.h>, for NULL.
75303         * lib/strcasestr.c: Likewise.
75304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75305
75306 2005-08-31  Bruno Haible  <bruno@clisp.org>
75307
75308         * gnulib-tool: New option --macro-prefix.
75309         (func_import): Use macro_prefix.
75310         (import): Handle option --macro-prefix.
75311
75312 2005-08-31  Bruno Haible  <bruno@clisp.org>
75313
75314         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75315         Also use new variables cached_lgpl, cached_libtool.
75316
75317 2005-08-31  Bruno Haible  <bruno@clisp.org>
75318
75319         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75320         always instantiating them.
75321
75322 2005-08-31  Bruno Haible  <bruno@clisp.org>
75323
75324         * gnulib-tool (func_import): Read the previous cached settings
75325         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75326         earlier added by gnulib but are now dropped. Warn when a gnulib file
75327         overwrites a non-gnulib file.
75328
75329 2005-08-31  Bruno Haible  <bruno@clisp.org>
75330
75331         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75332         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75333         projects that don't keep autogenerated files in CVS. Put into
75334         actioncmd only the specified modules, not the transitive closure.
75335
75336 2005-08-31  Bruno Haible  <bruno@clisp.org>
75337
75338         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75339         Create directories that shall be filled.
75340         (import): Don't look for gl_* macros in configure.ac. Recurse across
75341         all directories containing a gnulib-cache.m4 files, if meaningful.
75342
75343 2005-08-31  Bruno Haible  <bruno@clisp.org>
75344
75345         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75346         (import): Set seen_libtool when we see gl_LIBTOOL.
75347
75348 2005-08-31  Bruno Haible  <bruno@clisp.org>
75349
75350         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75351         declaration macro definitions from generated gnulib.m4.
75352
75353 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75354
75355         * lib/iconvme.h: Add prototype for iconv_alloc.
75356
75357 2005-08-29  Simon Josefsson  <jas@extundo.com>
75358
75359         * lib/iconvme.c: Fix errno.
75360
75361 2005-08-29  Bruno Haible  <bruno@clisp.org>
75362
75363         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75364         that it works when the directory contains spaces.
75365
75366 2005-08-29  Bruno Haible  <bruno@clisp.org>
75367
75368         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75369
75370 2005-08-29  Bruno Haible  <bruno@clisp.org>
75371
75372         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75373         Emit more advice.
75374
75375 2005-08-29  Bruno Haible  <bruno@clisp.org>
75376         and Stepan Kasal  <kasal@ucw.cz>
75377
75378         * check-module: If more parameters are given, check each of them
75379         separately; add more exceptions, as noted by Jim Meyering.
75380         (check_module): New procedure.
75381         (%exempt_header): Now contains all exceptions.
75382
75383 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75384
75385         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75386
75387 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75388
75389         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75390
75391 2005-08-28  Bruno Haible  <bruno@clisp.org>
75392
75393         * m4/gnulib-tool.m4: New file.
75394
75395 2005-08-27  Jim Meyering  <jim@meyering.net>
75396
75397         * modules/unistd-safer (Files): Add pipe-safer.c.
75398         * modules/fcntl-safer (Files): Add creat-safer.c.
75399
75400 2005-08-27  Jim Meyering  <jim@meyering.net>
75401
75402         * m4/stdlib-safer.m4: New file.  From coreutils.
75403         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75405         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75407         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75408
75409 2005-08-27  Jim Meyering  <jim@meyering.net>
75410
75411         * lib/fopen-safer.c: Merge minor changes from coreutils.
75412         * lib/dup-safer.c: Likewise.
75413         * lib/fd-safer.c: Likewise.
75414
75415         Merge from coreutils.
75416         * lib/stdio--.h: New file.
75417         * lib/stdlib--.h: New file.
75418         * lib/mkstemp-safer.c: New file.
75419
75420         GNU tar needs these.
75421         * lib/pipe-safer.c: New file.
75422         * lib/creat-safer.c: New file.
75423         * lib/fcntl--.h (creat): Define to creat_safer.
75424         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75425         * lib/unistd--.h (pipe): Define to pipe_safer.
75426         * lib/unistd-safer.h: Declare pipe_safer.
75427
75428 2005-08-26  Simon Josefsson  <jas@extundo.com>
75429
75430         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75431         Haible <bruno@clisp.org>.
75432
75433 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75434
75435         * lib/regex_internal.h: Remove all references to
75436         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75437         or better.
75438         (bitset_not, bitset_merge, bitset_not_merge):
75439         (bitset_mask, re_string_allocate, re_string_construct):
75440         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75441         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75442         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75443         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75446         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75447         (re_acquire_state_context):
75448         Remove unnecessary forward decls.
75449         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75450         Put __attribute at function definition,
75451         now that the function decl has been removed.
75452         * lib/regex_internal.c (re_string_peek_byte_case):
75453         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75454         Likewise.
75455
75456 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75457
75458         * m4/regex.m4: Add AC_PREREQ(2.50).
75459         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75460
75461 2005-08-25  Simon Josefsson  <jas@extundo.com>
75462
75463         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75464         __fsetlocking.
75465
75466 2005-08-25  Simon Josefsson  <jas@extundo.com>
75467
75468         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75469         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75470         GLIBC specific code.
75471
75472 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         Make regex safe for g++.  This fixes one real bug (an "err"
75475         that should have been "*err").  g++ problem reported by
75476         Sam Steingold.
75477         * lib/regex_internal.h (re_calloc): New macro, consistent with
75478         re_malloc etc.  All callers of calloc changed to use re_calloc.
75479         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75480         not int.  All callers changed.
75481         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75482         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75483         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75484         (find_recover_state): Change "err" to "*err"; this fixes what
75485         appears to be a real bug.
75486         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75487         versus int.
75488
75489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * modules/regex (Depends-on): Add malloc, since the code
75492         assumes that !malloc(0) means failure.
75493
75494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75497
75498         alloca modernization/simplification for regex.
75499         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75500         needs to be at the start of the file, and can be moved into
75501         regex_internal.h and simplified.
75502         * lib/regex_internal.h: Include <alloca.h>.
75503         (__libc_use_alloca) [!defined _LIBC]: New macro.
75504         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75505         now works outside glibc.
75506
75507 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * config/srclist.txt: Add glibc bugs 1241, 1245.
75510
75511 2005-08-25  Jim Meyering  <jim@meyering.net>
75512
75513         * lib/open-safer.c: Include <config.h>.
75514         Otherwise, we'd lose LARGEFILE support in any file using
75515         e.g. "fcntl--.h"
75516
75517 2005-08-25  Bruno Haible  <bruno@clisp.org>
75518
75519         * m4/minmax.m4: Require autoconf 2.52.
75520         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75521         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75522         alternatives of translit over the alphabet.
75523         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75524
75525 2005-08-24  Simon Josefsson  <jas@extundo.com>
75526
75527         * tests/test-getpass.c: New file.
75528
75529 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75532         for GNU regex features.
75533
75534 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75537         * lib/regex.h (regerror): Likewise.
75538
75539         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75540         requires this.  (The code never needed it.)
75541
75542         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75543         All uses of recently-renamed identifiers changed to use the new,
75544         POSIX-compliant names.  The code will build and run just fine
75545         without these changes, but it's better to eat our own dog food
75546         and use the standard-conforming names.
75547
75548         * lib/regex.h: Fix a multitude of POSIX name space violations.
75549         These changes have an effect only for programs that define
75550         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75551         do not change anything for programs compiled in the normal way.
75552         Also, there is no effect on the ABI.
75553
75554         (_REGEX_SOURCE): New macro.
75555         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75556         defined and _GNU_SOURCE is not; this fixes a name space violation.
75557
75558         Rename the following macros to obey POSIX requirements.
75559         The old names are still visible as macros if _REGEX_SOURCE is defined.
75560         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75561         RE_BACKSLASH_ESCAPE_IN_LISTS.
75562         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75563         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75564         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75565         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75566         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75567         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75568         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75569         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75570         (REG_INTERVALS): renamed from RE_INTERVALS.
75571         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75572         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75573         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75574         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75575         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75576         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75577         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75578         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75579         RE_UNMATCHED_RIGHT_PAREN_ORD.
75580         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75581         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75582         (REG_DEBUG): renamed from RE_DEBUG.
75583         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75584         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75585         unusual, since we can't clash with the POSIX REG_ICASE.
75586         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75587         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75588         (REG_NO_SUB): renamed from RE_NO_SUB.
75589         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75590         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75591         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75592         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75593         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75594         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75595         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75596         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75597         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75598         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75599         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75600         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75601         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75602         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75603         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75604         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75605         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75606         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75607         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75608         (REG_FIXED): Renamed from REGS_FIXED.
75609         (REG_NREGS): Renamed from RE_NREGS.
75610
75611         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75612         of other REG_* macros, since POSIX says the user is allowed to
75613         #undef these macros selectively.
75614
75615         (reg_errcode_t): Update comment stating what other tables need
75616         to be consistent.
75617
75618         Rename the following enum values to obey POSIX requirements.
75619         The old names are still visible as macros.
75620         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75621         is not defined, since GNU is supposed to be a superset of POSIX as
75622         much as possible, and since we want reg_errcode_t to be a signed
75623         type for implementation consistency.
75624         (_REG_NOERROR): Renamed from REG_NOERROR.
75625         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75626         (_REG_BADPAT): Renamed from REG_BADPAT.
75627         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75628         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75629         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75630         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75631         (_REG_EBRACK): Renamed from REG_EBRACK.
75632         (_REG_EPAREN): Renamed from REG_EPAREN.
75633         (_REG_EBRACE): Renamed from REG_EBRACE.
75634         (_REG_BADBR): Renamed from REG_BADBR.
75635         (_REG_ERANGE): Renamed from REG_ERANGE.
75636         (_REG_ESPACE): Renamed from REG_ESPACE.
75637         (_REG_BADRPT): Renamed from REG_BADRPT.
75638         (_REG_EEND): Renamed from REG_EEND.
75639         (_REG_ESIZE): Renamed from REG_ESIZE.
75640         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75641         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75642         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75643         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75644         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75645
75646         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75647         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75648         changed.  But support the old name if the new one is not defined
75649         and if _REGEX_SOURCE.
75650
75651         Change the following member names in struct re_pattern_buffer.
75652         The old names are still supported if !_REGEX_SOURCE.
75653         The new names are always supported, regardless of _REGEX_SOURCE.
75654         (re_buffer): Renamed from buffer.
75655         (re_allocated): Renamed from allocated.
75656         (re_used): Renamed from used.
75657         (re_syntax): Renamed from syntax.
75658         (re_fastmap): Renamed from fastmap.
75659         (re_translate): Renamed from translate.
75660         (re_can_be_null): Renamed from can_be_null.
75661         (re_regs_allocated): Renamed from regs_allocated.
75662         (re_fastmap_accurate): Renamed from fastmap_accurate.
75663         (re_no_sub): Renamed from no_sub.
75664         (re_not_bol): Renamed from not_bol.
75665         (re_not_eol): Renamed from not_eol.
75666         (re_newline_anchor): Renamed from newline_anchor.
75667
75668         Change the following member names in struct re_registers.
75669         The old names are still supported if !_REGEX_SOURCE.
75670         The new names are always supported, regardless of _REGEX_SOURCE.
75671         (rm_num_regs): Renamed from num_regs.
75672         (rm_start): Renamed from start.
75673         (rm_end): Renamed from end.
75674
75675         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75676         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75677         Prepend __ to parameter names.
75678
75679         Undo yesterday's changes.
75680
75681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75684         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75685         lib/regex.c.
75686
75687 2005-08-24  Jim Meyering  <jim@meyering.net>
75688
75689         Sync from coreutils.
75690         * m4/fcntl-safer.m4: New file.
75691
75692         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75693         and object files for this module.
75694
75695 2005-08-24  Jim Meyering  <jim@meyering.net>
75696
75697         Sync from coreutils.
75698         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75699
75700 2005-08-24  Jim Meyering  <jim@meyering.net>
75701
75702         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75703         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75704
75705 2005-08-24  Jim Meyering  <jim@meyering.net>
75706
75707         * modules/fcntl-safer: New module.
75708         * modules/fts (Depends-on): Add fcntl-safer.
75709         * MODULES.html.sh (File descriptor based Input/Output):
75710         Add fcntl-safer.
75711
75712 2005-08-24  Bruno Haible  <bruno@clisp.org>
75713
75714         Support for unit test modules.
75715         * modules/README: Mention tests modules.
75716         * modules/TEMPLATE-TESTS: New file.
75717         * gnulib-tool: New options --extract-tests-module, --with-tests and
75718         --tests-base (unused for the moment).
75719         (testsbase, inctests): New variables.
75720         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75721         (func_verify_module): Exclude TEMPLATE-TESTS.
75722         (func_verify_nontests_module, func_verify_tests_module): New functions.
75723         (func_get_dependencies): Add implicit dependency for tests modules.
75724         (func_get_tests_module): New function.
75725         (func_modules_transitive_closure): When --with-tests was specified,
75726         include the unit tests as well, unless explicitly avoided.
75727         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75728         (func_emit_tests_Makefile_am): New function.
75729         (func_create_testdir): When --with-tests was specified, emit a
75730         tests/ directory.
75731         * MODULES.html.sh (Future developments): Update.
75732
75733 2005-08-24  Bruno Haible  <bruno@clisp.org>
75734
75735         * modules/tls-tests: New file.
75736         * tests/test-tls.c: New file, from GNU gettext.
75737
75738 2005-08-24  Bruno Haible  <bruno@clisp.org>
75739
75740         * modules/lock-tests: New file.
75741         * tests/test-lock.c: New file, from GNU gettext.
75742
75743 2005-08-24  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/lock.h: Add multiple inclusion guard.
75746         * lib/tls.h: Add multiple inclusion guard.
75747
75748 2005-08-24  Bruno Haible  <bruno@clisp.org>
75749
75750         * gnulib-tool: Add support for the --aux-dir option to
75751         --create-testdir, --create-megatestdir, --test, --megatest.
75752         (func_create_testdir, func_create_megatestdir): Optionally emit a
75753         AC_CONFIG_AUX_DIR directive.
75754         (create-testdir, create-megatestdir, test, megatest): Provide a
75755         default value for $auxdir.
75756
75757 2005-08-24  Bruno Haible  <bruno@clisp.org>
75758
75759         * gnulib-tool (import): Use compound statement instead of subshell
75760         where possible.
75761
75762 2005-08-24  Bruno Haible  <bruno@clisp.org>
75763
75764         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75765
75766 2005-08-24  Bruno Haible  <bruno@clisp.org>
75767
75768         * gnulib-tool (func_version): Update.
75769
75770 2005-08-24  Bruno Haible  <bruno@clisp.org>
75771
75772         * gnulib-tool (func_import, func_create_testdir,
75773         func_create_megatestdir): Quote all autoconf macro arguments.
75774
75775 2005-08-24  Bruno Haible  <bruno@clisp.org>
75776
75777         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75778         option --force, because --force causes the aclocal.m4 of each
75779         subdirectory to be newer than the corresponding config.h.in.
75780
75781 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75784         All contents moved to gl_REGEX.
75785         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75786         assume that it does.
75787
75788 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * lib/regex.h (REG_NOSYS)
75791         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75792         Define, since POSIX requires it as of 2001.
75793         (_REG_ENOSYS)
75794         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75795         New private symbol, used to keep the enum signed in all cases.
75796         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75797         Youngman in
75798         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75799
75800         * lib/regex_internal.c (re_string_skip_chars, register_state):
75801         (calc_state_hash):
75802         Remove forward decls; no longer needed now that we use prototypes.
75803         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75804         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75805         (clean_state_log_if_needed): Likewise.
75806
75807 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * config/srclist.txt: Add glibc bugs 1231-1233.
75810
75811 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         Fix problems reported by Sam Steingold in
75814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75815         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75816         assumed that reg_errcode_t is a signed type, which is not
75817         necessarily true if _XOPEN_SOURCE is not defined.
75818         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75819         since some compilers warn about it otherwise.
75820
75821 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75824         (init_word_char, create_initial_state, duplicate_node_closure):
75825         (fetch_token, peek_token_bracket, build_range_exp):
75826         (build_collating_symbol): Remove forward decls; no longer needed
75827         now that we use prototypes.
75828
75829         * lib/regcomp.c:
75830         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75831         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75832         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75833         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75834         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75835         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75836         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75837         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75838         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75839         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75840         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75841         (build_charclass, build_charclass_op, fetch_number, create_tree):
75842         (create_token_tree, mark_opt_subexp, duplicate_tree):
75843         Use prototypes rather than old-style definitions.
75844
75845         * lib/regex_internal.c:
75846         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75847         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75848         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75849         (re_string_reconstruct, re_string_peek_byte_case):
75850         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75851         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75852         (re_node_set_init_copy, re_node_set_add_intersect):
75853         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75854         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75855         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75856         (re_acquire_state, re_acquire_state_context, register_state):
75857         (create_ci_newstate, create_cd_newstate, free_state):
75858         Likewise.
75859         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75860         re_search_2):
75861         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75862         (re_search_internal, prune_impossible_nodes):
75863         (acquire_init_state_context, check_matching, static):
75864         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75865         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75866         (update_regs, sift_states_backward, build_sifted_states):
75867         (clean_state_log_if_needed, merge_state_array):
75868         (update_cur_sifted_state, add_epsilon_src_nodes):
75869         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75870         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75871         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75872         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75873         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75874         (check_arrival, check_arrival_add_next_nodes):
75875         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75876         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75877         (check_node_accept_bytes, check_node_accept, extend_buffers):
75878         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75879         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75880         (sift_ctx_init):
75881         Likewise.
75882
75883         * lib/regex_internal.h:
75884         (re_string_allocate, re_string_construct, re_string_reconstruct):
75885         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75886         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75887         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75888         (re_string_context_at, re_string_peek_byte_case):
75889         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75890         is defined, since we now use prototypes always.
75891
75892         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75893         C89 or better.  All uses removed.
75894
75895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         * config/srclist.txt: Add glibc bugs 1220-1227.
75898
75899 2005-08-20  Jim Meyering  <jim@meyering.net>
75900
75901         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75902         of unused local, dfa.
75903
75904 2005-08-20  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75907
75908 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75911         (re_node_set_insert_last, re_dfa_add_node):
75912         Rename local variables to avoid GCC shadowing warnings.
75913
75914 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75917         [defined lint]: Suppress bogus uninitialized-variable warnings.
75918
75919         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75920         and let the caller return REG_ESPACE if out of space.  This
75921         removes an uninitialied-variable warning with GCC 4.0.1, and also
75922         avoids taking the address of a local variable.  All callers
75923         changed.
75924
75925 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75928         $LIBCSRC/posix/regexec.c.
75929         Add glibc bug 1217 for regcomp.c.
75930
75931 2005-08-19  Jim Meyering  <jim@meyering.net>
75932
75933         * lib/regexec.c (proceed_next_node): Redo local variables to
75934         avoid GCC shadowing warnings.
75935
75936 2005-08-18  Bruno Haible  <bruno@clisp.org>
75937
75938         * lib/strstr.c (strstr): Fix return value in multibyte case.
75939         * lib/strcasestr.c (strcasestr): Likewise.
75940
75941 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75944
75945 2005-08-17  Jim Meyering  <jim@meyering.net>
75946
75947         Make the %s format (seconds since the epoch) work for a negative
75948         number and when used with a zero-padded field width, e.g. %015s.
75949
75950         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75951         label so that it precedes the code to set `digits'.  Otherwise,
75952         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75953         print `00-22'.  Now, it prints `-0022', as it should.
75954
75955 2005-08-17  Bruno Haible  <bruno@clisp.org>
75956
75957         * modules/strstr (Files): Add m4/mbrtowc.m4.
75958         (Depends-on): Add mbuiter.
75959
75960 2005-08-17  Bruno Haible  <bruno@clisp.org>
75961
75962         * modules/strcasestr: New file.
75963         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75964         strcasestr.
75965
75966 2005-08-17  Bruno Haible  <bruno@clisp.org>
75967
75968         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75969
75970 2005-08-17  Bruno Haible  <bruno@clisp.org>
75971
75972         * modules/mbuiter: New file.
75973         * MODULES.html.sh (Extended multibyte and wide character utilities):
75974         Add mbuiter.
75975
75976 2005-08-17  Bruno Haible  <bruno@clisp.org>
75977
75978         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75979         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75980
75981 2005-08-17  Bruno Haible  <bruno@clisp.org>
75982
75983         * m4/strcasestr.m4: New file.
75984
75985 2005-08-17  Bruno Haible  <bruno@clisp.org>
75986
75987         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75988         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75989
75990 2005-08-17  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/strcasestr.h: New file.
75993         * lib/strcasestr.c: New file.
75994
75995 2005-08-17  Bruno Haible  <bruno@clisp.org>
75996
75997         * lib/strcasecmp.c: Use mbuiter.h.
75998
75999 2005-08-17  Bruno Haible  <bruno@clisp.org>
76000
76001         * lib/mbuiter.h: New file.
76002
76003 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76006         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76007         and gl_GETOPT are both invoked via different paths (as happens
76008         with GNU tar CVS because it uses both argp and getopt), the former
76009         wins.
76010
76011 2005-08-16  Bruno Haible  <bruno@clisp.org>
76012
76013         * modules/tls: New file.
76014         * MODULES.html.sh (Multithreading): Add tls.
76015
76016 2005-08-16  Bruno Haible  <bruno@clisp.org>
76017
76018         * modules/strnlen1: New file.
76019         * MODULES.html.sh (String handling): Add strnlen1.
76020
76021 2005-08-16  Bruno Haible  <bruno@clisp.org>
76022
76023         * modules/strcase (Files): Add m4/mbrtowc.m4.
76024         (Depends-on): Add strnlen1, mbchar.
76025
76026 2005-08-16  Bruno Haible  <bruno@clisp.org>
76027
76028         * modules/mbiter: New file.
76029         * MODULES.html.sh (Extended multibyte and wide character utilities):
76030         Add mbiter.
76031
76032 2005-08-16  Bruno Haible  <bruno@clisp.org>
76033
76034         * modules/mbfile: New file.
76035         * MODULES.html.sh (Extended multibyte and wide character utilities):
76036         Add mbfile.
76037
76038 2005-08-16  Bruno Haible  <bruno@clisp.org>
76039
76040         * modules/mbchar: New file.
76041         * MODULES.html.sh (Extended multibyte and wide character utilities):
76042         New section.
76043
76044 2005-08-16  Bruno Haible  <bruno@clisp.org>
76045
76046         * m4/tls.m4: New file, from GNU gettext.
76047
76048 2005-08-16  Bruno Haible  <bruno@clisp.org>
76049
76050         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76051         always.
76052         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76053
76054 2005-08-16  Bruno Haible  <bruno@clisp.org>
76055
76056         * m4/mbiter.m4: New file.
76057
76058 2005-08-16  Bruno Haible  <bruno@clisp.org>
76059
76060         * m4/mbfile.m4: New file.
76061
76062 2005-08-16  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/mbchar.m4: New file.
76065
76066 2005-08-16  Bruno Haible  <bruno@clisp.org>
76067
76068         * lib/tls.h: New file, from GNU gettext.
76069         * lib/tls.c: New file, from GNU gettext.
76070
76071 2005-08-16  Bruno Haible  <bruno@clisp.org>
76072
76073         * lib/strnlen1.h: New file.
76074         * lib/strnlen1.c: New file.
76075
76076 2005-08-16  Bruno Haible  <bruno@clisp.org>
76077
76078         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76079         (mbi_init): Update.
76080         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76081         NUL byte, not after it.
76082
76083 2005-08-16  Bruno Haible  <bruno@clisp.org>
76084
76085         * lib/strcase.h (strcasecmp): Add note in comments.
76086         * lib/strncasecmp.c: Use code from strcasecmp.c.
76087         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76088         (strcasecmp): Work correctly in multibyte locales.
76089
76090 2005-08-16  Bruno Haible  <bruno@clisp.org>
76091
76092         * lib/mbiter.h: New file.
76093
76094 2005-08-16  Bruno Haible  <bruno@clisp.org>
76095
76096         * lib/mbfile.h: New file.
76097
76098 2005-08-16  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/mbchar.h: New file.
76101         * lib/mbchar.c: New file.
76102
76103 2005-08-16  Bruno Haible  <bruno@clisp.org>
76104
76105         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76106         the valid ones. Makes the comparison operations transitive:
76107         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76108         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76109
76110 2005-08-15  Simon Josefsson  <jas@extundo.com>
76111
76112         * modules/ssize_t (License): Change to 'unlimited'.
76113
76114         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76115
76116 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76119         Add comments for each pending glibc patch.
76120
76121 2005-08-15  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76124         __cplusplus is defined.
76125
76126 2005-08-14  Jim Meyering  <jim@meyering.net>
76127
76128         Sync from coreutils.
76129
76130         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76131         Use the hash-table-based cycle-detection code not just when
76132         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76133         Reported by James Youngman in
76134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76135         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76136         FTS_TIGHT_CYCLE_CHECK.
76137         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76138         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76139         once again.
76140         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76141         * lib/fts.c (fd_safer): Remove decl.
76142         Include fcntl--.h rather than unistd-safer.h
76143         (fts_safe_changedir): Don't call fd_safer; no longer needed
76144         now that we include fcntl--.h.
76145
76146 2005-08-12  Simon Josefsson  <jas@extundo.com>
76147
76148         * modules/getndelim2: Use ssize_t module.
76149         * modules/getnline: Likewise.
76150         * modules/safe-read: Likewise.
76151         * modules/xreadlink: Likewise.
76152
76153         * modules/ssize_t: New file.
76154
76155 2005-08-12  Simon Josefsson  <jas@extundo.com>
76156
76157         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76158
76159 2005-08-12  Simon Josefsson  <jas@extundo.com>
76160
76161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76162         ssize_t.
76163
76164 2005-08-12  Simon Josefsson  <jas@extundo.com>
76165
76166         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76167         readline, getdelim and check_version.
76168         (Support for systems lacking ISO C 99: Sizes of integer types):
76169         Add size_max.
76170
76171 2005-08-12  Bruno Haible  <bruno@clisp.org>
76172
76173         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76174
76175 2005-08-11  Simon Josefsson  <jas@extundo.com>
76176
76177         * modules/readline: New file.
76178
76179         * modules/strnlen (Files): Add strnlen.h.
76180
76181 2005-08-11  Simon Josefsson  <jas@extundo.com>
76182
76183         * m4/readline.m4: New file.
76184
76185 2005-08-11  Simon Josefsson  <jas@extundo.com>
76186
76187         * lib/readline.h, readline.c: New file.
76188
76189 2005-08-11  Simon Josefsson  <jas@extundo.com>
76190
76191         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76192         gl_AVOID.
76193
76194 2005-08-11  Bruno Haible  <bruno@clisp.org>
76195
76196         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76197
76198 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76199
76200         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76201
76202 2005-08-10  Simon Josefsson  <jas@extundo.com>
76203
76204         * tests/test-iconvme.c: New file.
76205
76206 2005-08-10  Simon Josefsson  <jas@extundo.com>
76207
76208         * m4/strnlen.m4: New file.
76209
76210         * m4/strndup.m4: Don't check for strnlen declaration, done in
76211         strnlen.m4.
76212
76213 2005-08-10  Simon Josefsson  <jas@extundo.com>
76214
76215         * lib/strndup.c: Use strnlen.h.
76216
76217         * lib/strnlen.h: New file.
76218
76219 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76220
76221         * README: Typos.
76222
76223 2005-08-02  Simon Josefsson  <jas@extundo.com>
76224
76225         * modules/readline: New file.
76226
76227 2005-08-02  Simon Josefsson  <jas@extundo.com>
76228
76229         * modules/getdelim: New file.
76230
76231         * modules/getline: Rewrite, don't use getndelim2.
76232
76233 2005-08-02  Simon Josefsson  <jas@extundo.com>
76234
76235         * m4/getline.m4: Separate out getdelim stuff into separate module.
76236
76237         * m4/getdelim.m4: New file.
76238
76239 2005-08-02  Simon Josefsson  <jas@extundo.com>
76240
76241         * lib/getline.h, getline.c: Rewrite.
76242
76243         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76244
76245 2005-07-31  Bruno Haible  <bruno@clisp.org>
76246
76247         * lib/lock.h (gl_lock_initializer): New macro.
76248         (gl_lock_define_initialized): Use it.
76249         (gl_rwlock_initializer): New macro.
76250         (gl_rwlock_define_initialized): Use it.
76251         (gl_recursive_lock_initializer): New macro.
76252         (gl_recursive_lock_define_initialized): Use it.
76253
76254 2005-07-30  Karl Berry  <karl@gnu.org>
76255
76256         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76257         Report from Ben Pfaff, regarding getopt.
76258
76259 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76262         normal way.
76263         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76264         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76265         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76266         (gl_GETOPT): Use the new macros.  Most of the implementation
76267         is moved to the new macros.  This is for programs like Emacs
76268         that don't want all the functionality of gl_GETOPT.
76269
76270 2005-07-26  Bruno Haible  <bruno@clisp.org>
76271
76272         * m4/lock.m4: Update from GNU gettext.
76273
76274 2005-07-26  Bruno Haible  <bruno@clisp.org>
76275
76276         * lib/lock.h: Update from GNU gettext.
76277         * lib/lock.c: Update from GNU gettext.
76278
76279 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76282         obsolescent AC_TRY_RUN.  Include the default includes files, for
76283         'exit'.
76284
76285 2005-07-24  Bruno Haible  <bruno@clisp.org>
76286
76287         * modules/visibility: New file.
76288         * MODULES.html.sh (Misc): Add visibility.
76289
76290 2005-07-24  Bruno Haible  <bruno@clisp.org>
76291
76292         * m4/visibility.m4: New file.
76293
76294 2005-07-24  Bruno Haible  <bruno@clisp.org>
76295
76296         * doc/visibility.texi: New file.
76297
76298 2005-07-22  Bruno Haible  <bruno@clisp.org>
76299
76300         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76301         $(ALLOCA_H), redundant through BUILT_SOURCES.
76302         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76303         redundant through BUILT_SOURCES.
76304         * modules/byteswap (Makefile.am): Remove explicit dependency on
76305         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76306         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76307         $(FNMATCH_H), redundant through BUILT_SOURCES.
76308         * modules/getopt (Makefile.am): Remove explicit dependency on
76309         $(GETOPT_H), redundant through BUILT_SOURCES.
76310         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76311         redundant through BUILT_SOURCES.
76312         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76313         redundant through BUILT_SOURCES.
76314         * modules/stdbool (Makefile.am): Remove explicit dependency on
76315         $(STDBOOL_H), redundant through BUILT_SOURCES.
76316         * modules/stdint (Makefile.am): Remove explicit dependency on
76317         $(STDINT_H), redundant through BUILT_SOURCES.
76318         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76319         Remove explicit dependency on $(SYSEXITS_H).
76320         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76321
76322 2005-07-18  Simon Josefsson  <jas@extundo.com>
76323
76324         * lib/check-version.c (check_version): Accept identical versions too.
76325
76326 2005-07-18  Bruno Haible  <bruno@clisp.org>
76327
76328         * modules/lock: New file.
76329         * MODULES.html.sh (Multithreading): New section.
76330
76331 2005-07-18  Bruno Haible  <bruno@clisp.org>
76332
76333         * m4/lock.m4: New file, from GNU gettext.
76334
76335 2005-07-18  Bruno Haible  <bruno@clisp.org>
76336
76337         * lib/lock.h: New file, from GNU gettext.
76338         * lib/lock.c: New file, from GNU gettext.
76339
76340 2005-07-18  Bruno Haible  <bruno@clisp.org>
76341
76342         * lib/lock.h (gl_once_t): New type.
76343         (gl_once_define, gl_once): New macros.
76344         * lib/lock.c (fresh_once): New variable.
76345         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76346         functions.
76347
76348 2005-07-16  Simon Josefsson  <jas@extundo.com>
76349
76350         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76351         workaround, suggested by Bruno.
76352
76353 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         * modules/xalloc (Depends-on): Add xalloc-die.
76356         * modules/xvasprintf (Depends-on): Add xalloc-die.
76357
76358 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76361         with a minor change.
76362
76363 2005-07-15  Bruno Haible  <bruno@clisp.org>
76364
76365         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76366         When using lib/poll.c, define poll as rpl_poll.
76367
76368 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         * modules/argp (Depends-on): Remove unlocked-io.
76371
76372 2005-07-14  Derek Price  <derek@ximbiot.com>
76373
76374         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76375         for glob symlink bug.
76376
76377 2005-07-14  Bruno Haible  <bruno@clisp.org>
76378
76379         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76380         Instead, test for *_unlocked function declarations directly.
76381
76382 2005-07-11  Simon Josefsson  <jas@extundo.com>
76383
76384         * modules/size_max: New file.
76385
76386         * modules/xsize: Depend on size_max module for size_max.m4.
76387
76388 2005-07-11  Simon Josefsson  <jas@extundo.com>
76389
76390         * lib/size_max.h: New file.
76391
76392 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76395         copyright symbol and the year.
76396         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76397         (version_etc_va): Use parameterized copyright notice.
76398         Reword to conform to the current GNU coding standards.
76399
76400 2005-07-11  Karl Berry  <karl@gnu.org>
76401
76402         * doc/gnulib.texi (Quoting): new node.
76403         (Initial import): more info, from Patrice.
76404
76405 2005-07-11  Bruno Haible  <bruno@clisp.org>
76406
76407         * gnulib-tool (func_usage): Document option --avoid.
76408         (Command line options): Handle --avoid.
76409         (func_acceptable): New function.
76410         (func_modules_transitive_closure): Use it.
76411
76412 2005-07-11  Bruno Haible  <bruno@clisp.org>
76413
76414         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76415         Reported by Jim Meyering.
76416
76417 2005-07-10  Bruno Haible  <bruno@clisp.org>
76418
76419         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76420         Needed when size_t is smaller than 'unsigned int'.
76421         Reported by Paul Eggert.
76422
76423 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76424
76425         * modules/argp (Depends-on): Add unlocked-io
76426
76427 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76428
76429         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76430         block of defines.
76431
76432 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76435         fix now.
76436
76437 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76438         and Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76441         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76442
76443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * modules/regex (Files): Add lib/regex_internal.c,
76446         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76447         (Depends-on): Add extensions.
76448         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76449
76450 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76451
76452         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76453         pathconf.
76454         * m4/same.m4 (gl_SAME): Likewise.
76455         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76456
76457         * m4/regex.m4: Adjust to new libc regex implementation.
76458         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76459         all the .c and .h parts of (the new) regex.
76460         Quote the m4 stuff better.
76461         Check for RE_ICASE bug of old gnulib.
76462         Check for REG_STARTEND of recent libc.
76463         Rename local variables from jm_* to gl_*.
76464         Quote operand of "test -f".
76465         Say "recent enough" version of libc, not "version 2".
76466         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76467         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76468         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76469         Remove check for btowc, isascii.
76470         Require AM_LANGINFO_CODESET.
76471
76472 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/regex.c, regex.h: Sync from libc.
76475         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76476         * lib/regexec.c:
76477         New files, synced from libc, except that regex_internal.h
76478         currently has a small porting fix.
76479
76480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76483         regex_internal.c, regexec.c.
76484         Add regex_internal.h too, but as a comment, since the libc version
76485         is currently broken in gnulib mode.
76486
76487 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         Support programs like Emacs that use gnulib but not gettext.
76490         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76491         * modules/gettext-h: New file.
76492         * modules/gettext (Files): Remove lib/gettext.h.
76493         (Depends-on): Add gettext-h.
76494         (Makefile.am): Remove lib_SOURCES.
76495         * modules/argmatch, modules/c-stack, modules/closeout:
76496         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76497         * modules/execute, modules/file-type, modules/getaddrinfo:
76498         * modules/getopt, modules/human, modules/javacomp:
76499         * modules/javaexec, modules/mkdir-p, modules/obstack:
76500         * modules/openat, modules/pagealign_alloc, modules/pipe:
76501         * modules/quotearg, modules/regex, modules/rpmatch:
76502         * modules/unicodeio, modules/userspec, modules/version-etc:
76503         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76504         * modules/xsetenv:
76505         Depend on gettext-h, not gettext.
76506
76507 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76508
76509         * gnulib-tool (func_import): Add support for 'public domain' license.
76510         * modules/alloca, modules/atexit, modules/memmove:
76511         Now public domain, not GPL.
76512         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76513         * modules/realloc, modules/strerror, modules/strtod:
76514         Now LGPL, not GPL.
76515
76516 2005-07-05  Bruno Haible  <bruno@clisp.org>
76517
76518         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76519         autoconf CVS. Needed for mingw.
76520
76521 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         Remove the dependency of the strftime module on the tzset module.
76524         * modules/strftime (Depends-on): Remove dependency on tzset.
76525
76526 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         Remove the dependency of the strftime module on the tzset module.
76529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76530         gl_FUNC_TZSET_CLOBBER.
76531
76532 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         Remove the dependency of the strftime module on the tzset module.
76535         * lib/strftime.c (my_strftime)
76536         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76537         Copy the input structure, to work around some of the bug with
76538         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76539         Solaris releases, you should also use the tzset module, but we won't
76540         require it as a dependency any more since we don't want LGPLed code
76541         to depend on GPLed code.
76542
76543 2005-07-02  Jim Meyering  <jim@meyering.net>
76544
76545         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76546         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76547         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76548         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76549
76550 2005-07-02  Jim Meyering  <jim@meyering.net>
76551
76552         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76553
76554 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76557         declares only 'struct timespec;' (!).
76558
76559 2005-07-01  Jim Meyering  <jim@meyering.net>
76560
76561         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76562         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76563         * lib/save-cwd.c, tempname.c:
76564         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76565         and don't include <sys/file.h>).
76566
76567 2005-06-29  Jim Meyering  <jim@meyering.net>
76568
76569         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76570         type name.  Use the variable name instead.
76571         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76572         Likewise.
76573
76574 2005-06-28  Simon Josefsson  <jas@extundo.com>
76575
76576         * modules/check-version (Files): Add check-version.m4.
76577
76578 2005-06-28  Simon Josefsson  <jas@extundo.com>
76579
76580         * m4/check-version.m4: New file, suggested by Jim Meyering
76581         <jim@meyering.net>.
76582
76583 2005-06-28  Simon Josefsson  <jas@extundo.com>
76584
76585         * lib/check-version.h, lib/check-version.c: New files.
76586
76587 2005-06-28  Simon Josefsson  <jas@extundo.com>
76588
76589         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76590         collision with global variable.  Better indentation.  Don't
76591         increment buffer pointer beyond buffer end.  Based on comments
76592         from Paul Eggert <eggert@cs.ucla.edu>.
76593
76594         * lib/base64.h: Indent.
76595
76596 2005-06-28  Simon Josefsson  <jas@extundo.com>
76597
76598         * doc/gnulib.texi (Library version handling): New section.
76599
76600 2005-06-28  Jim Meyering  <jim@meyering.net>
76601
76602         * check-module (find_included_lib_files): Hard-code another
76603         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76604         but modules/fts-lgpl (correctly) does not list those files.
76605
76606         * modules/canonicalize (Files): Add lib/pathmax.h.
76607
76608 2005-06-25  Simon Josefsson  <jas@extundo.com>
76609
76610         * modules/check-version: New file.
76611
76612 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76615         initializer of struct addrinfo, as an indication that we don't
76616         care how many members the structure has.
76617
76618 2005-06-24  Derek Price  <derek@ximbiot.com>
76619         and Bruno Haible  <bruno@clisp.org>
76620
76621         Remove stat module & update lstat.
76622         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76623         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76624         * m4/stat.m4: Remove this file.
76625
76626 2005-06-24  Derek Price  <derek@ximbiot.com>
76627         and Bruno Haible  <bruno@clisp.org>
76628
76629         Remove stat module & update lstat.
76630         * lib/stat.c: Remove this file...
76631         (slash_aware_lstat): ...moving this content and its support...
76632         * lib/lstat.c (rpl_lstat): ...into here.
76633         * lib/lstat.h: New file.
76634
76635 2005-06-24  Derek Price  <derek@ximbiot.com>
76636         and Bruno Haible  <bruno@clisp.org>
76637
76638         Remove stat module & update lstat.
76639         * config/srclist.txt (libc sources): Remove stat.
76640
76641 2005-06-24  Derek Price  <derek@ximbiot.com>
76642         and Bruno Haible  <bruno@clisp.org>
76643
76644         Remove stat module & update lstat.
76645         * MODULES.html.sh (stat): Remove.
76646         * MODULES.html: Regenerated.
76647         * modules/lstat (Description): Correct function name.
76648         (Files): Add "lstat.h".
76649         (Depends-on): Remove stat, add xalloc, stat-macros.
76650         * modules/stat: Remove this file.
76651         (Include): Add "lstat.h", remove <sys/stat.h>.
76652
76653 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76656         (ranged_convert): Don't save conversion in a temporary struct.
76657         This causes a warning with GCC 4.0.0, and anyway in the typical
76658         case it's not worth the extra 100 bytes or so of code.
76659         (ranged_convert, __mktime_internal): When calling a function via a
76660         pointer P, use P () rather than (*P) (), as we now assume C89 or
76661         better.
76662
76663 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76666         "who -r" failed to give output.  Problem reported by Tim Waugh.
76667
76668         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76669         (xcalloc): Use it to avoid needless tests.
76670         Problem reported by Jim Meyering.
76671
76672 2005-06-20  Derek Price  <derek@ximbiot.com>
76673
76674         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76675         unnecessary for Autoconfs > 2.59c.
76676
76677 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76678
76679         * lib/argp.h (__option_is_short): Check upper limit of
76680         __key. Isprint() requires its argument to have the value
76681         of an unsigned char or EOF.
76682
76683 2005-06-16  Jim Meyering  <jim@meyering.net>
76684
76685         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76686         when either N or S is zero.
76687
76688 2005-06-16  Derek Price  <derek@ximbiot.com>
76689
76690         * m4/bison.m4: Declare YACC & YFLAGS precious.
76691
76692 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76695         multibyte string or pattern, fall back on unibyte matching.
76696         Problem reported by James Youngman.
76697
76698 2005-06-08  Bruno Haible  <bruno@clisp.org>
76699
76700         * modules/csharpcomp: New file.
76701         * MODULES.html.sh (C#): Add csharpcomp.
76702
76703 2005-06-08  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/csharpcomp.m4: New file, from GNU gettext.
76706
76707 2005-06-08  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/csharpcomp.h: New file, from GNU gettext.
76710         * lib/csharpcomp.c: New file, from GNU gettext.
76711         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76712
76713 2005-06-08  Bruno Haible  <bruno@clisp.org>
76714
76715         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76716         warning on mingw.
76717
76718 2005-06-07  Derek Price  <derek@ximbiot.com>
76719
76720         Sync from CVS.
76721         * lib/glob_.h: Indent nested #ifdef.
76722
76723 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         Sync from coreutils.
76726         Use "file name" when talking about file names, instead of "filename"
76727         or "path", as per the GNU coding standards.
76728         * lib/mkdir-p.c: Renamed from makepath.c.
76729         (make_dir_parents): Renamed from make_path.  All callers changed.
76730         * lib/mkdir-p.h: Likewise.  All includers changed.
76731         * lib/filenamecat.c: Renamed from path-concat.c.
76732         (file_name_concat): Renamed from path_concat.  All callers changed.
76733         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76734         * lib/filenamecat.h: Likewise.  All includers changed.
76735         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76736         in comments or local variable names.
76737         * lib/basename.c: Likewise.
76738         * lib/canonicalize.c, canonicalize.h: Likewise.
76739         * lib/dirname.c, dirname.h: Likewise.
76740         * lib/euidaccess.c: Likewise.
76741         * lib/exclude.c: Likewise
76742         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76743         * lib/fsusage.c, fsuage.h: Likewise.
76744         * lib/fts.c, fts_.h: Likewise.
76745         * lib/getcwd.c: Likewise.
76746         * lib/getloadavg.c: Likewise.
76747         * lib/mkstemp.c: Likewise.
76748         * lib/mountlist.c, mountlist.h: Likewise.
76749         * lib/openat.c, openat.h: Likewise.
76750         * lib/readlink-stub.c: Likewise.
76751         * lib/readutmp.c, readutmp.h: Likewise.
76752         * lib/rename.c: Likewise.
76753         * lib/rmdir.c: Likewise.
76754         * lib/same.c: Likewise.
76755         * lib/savedir.c: Likewise.
76756         * lib/stripslash.c: Likewise.
76757         * lib/tempname.c: Likewise.
76758         * lib/xreadlink.c: Likewise.
76759         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76760         All uses changed.
76761         * lib/exclude.h: Likewise.
76762
76763         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76764         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76765         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76766         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76767         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76768         files have been getting away with it for years (MORE/BSD 4.3
76769         is extinct now).
76770         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76771         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76772
76773         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76774         Define to 256, not 255, as per modern POSIX.
76775
76776 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         Sync from coreutils.
76779         Use "file name" when talking about file names, instead of "filename"
76780         or "path", as per the GNU coding standards.
76781         * MODULES.html.sh: mkdir-p renamed from makepath.
76782         filenamecat renamed from path-concat.
76783         * modules/filenamecat: Renamed from modules/path-concat.
76784         (Files): filenamecat.h and filenamecat.c renamed from
76785         path-concat.h and path-concat.c.
76786         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76787         (Include): filenamecat.h, not path-concat.h.
76788         * modules/mkdir-p: Renamed from modules/makepath.
76789         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76790         makepath.c.
76791         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76792         (Include): mkdir-p.h, not makepath.h.
76793
76794 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         Sync from coreutils.
76797         * m4/mkdir-p.m4: Renamed from makepath.m4.
76798         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76799         Rename files from makepath.c to mkdir-p.c, and from
76800         makepath.h to mkdir-p.h.
76801         * m4/filenamecat.m4: Renamed from path-concat.m4.
76802         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76803         Rename files from path-concat.c to filenamecat.c,
76804         and from path-concat.h to filenamecat.h.
76805         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76806         "file name" in local variables or comments.
76807         * m4/rename.m4: Likewise.
76808
76809 2005-06-01  Bruno Haible  <bruno@clisp.org>
76810
76811         * modules/csharpexec: New file.
76812         * MODULES.html.sh (C#): New section.
76813
76814 2005-06-01  Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/csharp.m4: New file, from GNU gettext.
76817         * m4/csharpexec.m4: New file, from GNU gettext.
76818
76819 2005-06-01  Bruno Haible  <bruno@clisp.org>
76820
76821         * lib/csharpexec.h: New file, from GNU gettext.
76822         * lib/csharpexec.c: New file, from GNU gettext.
76823         * lib/csharpexec.sh.in: New file, from GNU gettext.
76824
76825 2005-05-31  Derek Price  <derek@ximbiot.com>
76826             Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         Sync from cvs.
76829         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76830
76831 2005-05-31  Derek Price  <derek@ximbiot.com>
76832             Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         Sync from cvs.
76835         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76836
76837 2005-05-29  Derek Price  <derek@ximbiot.com>
76838
76839         * config/srclist.txt (glob_.h, glob.c): Add these files.
76840
76841 2005-05-29  Derek Price  <derek@ximbiot.com>
76842
76843         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76844         * modules/glob: New file.
76845         * modules/getlogin_r: Add link to POSIX spec in description.
76846
76847 2005-05-29  Derek Price  <derek@ximbiot.com>
76848             Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * m4/glob.m4: New file.
76851
76852 2005-05-29  Derek Price  <derek@ximbiot.com>
76853             Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * lib/glob_.h, lib/glob.c: New files.
76856
76857 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76860         * modules/fts-lgpl (Depends-on): Remove gettext.
76861
76862 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76863
76864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76865         and don't require gt_INTTYPES_PRI.
76866
76867 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76870
76871         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76872         the configuration hassle isn't worth it.
76873         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76874         (LONGEST_MODIFIER, PRIuMAX): Remove.
76875
76876 2005-05-27  Bruno Haible  <bruno@clisp.org>
76877
76878         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76879
76880 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76883         _POSIX_PTHREAD_SEMANTICS for Solaris.
76884
76885 2005-05-25  Derek Price  <derek@ximbiot.com>
76886
76887         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76888
76889 2005-05-25  Derek Price  <derek@ximbiot.com>
76890             Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76893         * lib/getlogin_r.c, getlogin_r.h: New files.
76894
76895 2005-05-25  Bruno Haible  <bruno@clisp.org>
76896             Derek Price  <derek@ximbiot.com>
76897
76898         * lib/getlogin_r.h: Simplify API documentation.
76899
76900 2005-05-23  Derek Price  <derek@ximbiot.com>
76901
76902         * modules/minmax (Files): Add m4/minmax.m4.
76903         (configure.ac): Add gl_MINMAX.
76904
76905 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76908         so that unistd-safer.h (GPL'ed code) need not be included.
76909
76910 2005-05-22  Bruno Haible  <bruno@clisp.org>
76911
76912         * m4/minmax.m4: New file.
76913         Based on a patch by Derek Price <derek@ximbiot.com>.
76914
76915 2005-05-22  Bruno Haible  <bruno@clisp.org>
76916
76917         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76918         (INT64_MIN): Fix definition.
76919         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76920
76921         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76922         NEED_SIGNED_INT_TYPES.
76923
76924         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76925         HAVE_SYSTEM_INTTYPES.
76926
76927 2005-05-22  Bruno Haible  <bruno@clisp.org>
76928
76929         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76930         Also include <sys/param.h> if it defines MIN, MAX.
76931         Based on a patch by Derek Price <derek@ximbiot.com>.
76932
76933 2005-05-21  Jim Meyering  <jim@meyering.net>
76934
76935         * modules/fts (Files): Add m4/inttypes-pri.m4.
76936         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76937
76938 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         New fts module.
76941         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76942         (setup_dir, free_dir): New functions.
76943         (enter_dir, leave_dir): Define trivial
76944         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76945         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76946         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76947         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76948         Move to fts-cycle.c.
76949         (fts_open): Use setup_dir.
76950         (fts_close): Use free_dir.
76951         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76952         This adds a label and some gotos, but the alternatives were messier.
76953         Check for memory allocation failure when entering a dir.
76954         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76955         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76956         (FTS): New member fts_cycle, that is a union that contains the
76957         old active_dir_ht and cycle_state.  All uses changed to mention
76958         fts_cycle.ht and fts_cycle.state.
76959         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76960         fts.c, with the following changes:
76961         (setup_dir, free_dir): New functions.
76962         (enter_dir): Now returns bool.  Return true if successful, false
76963         if memory exhausted.  All callers changed.
76964         Do not bother partly cleaning up on
76965         memory allocation failure; that is free_dir's job.
76966         However, free ad if hash_insert fails, to avoid memory leak.
76967         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76968         fts->fts_options to see which union member to use.
76969
76970 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76973         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76974
76975 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76978
76979 2005-05-20  Jim Meyering  <jim@meyering.net>
76980
76981         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76982         Now a macro, to pacify GCC.
76983
76984 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76985
76986         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76987         of -1.
76988
76989 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76990
76991         * lib/chown.c (rpl_chown): Return -1 on failure.
76992
76993 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76996         Don't check for stddef.h.
76997         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76998         don't use its results.
76999         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77000         since we include them unconditionally.  Don't require
77001         AM_STDBOOL_H, since stdbool is a prerequisite.
77002         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77003         since we assume C89 or better.
77004         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77005         as we don't use their results.
77006         Don't check for fchdir, memmove, memset, strrchr, as we use
77007         them unconditionally.
77008         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77009         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77010
77011 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77012
77013         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77014         Include <stddef.h> unconditionally, since we assume C89 now.
77015         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77016         * lib/fts.c: Include fts_.h first, to check interface.
77017         Do not include intprops.h; no longer needed.
77018         Include cycle-check.h and hash.h, since fts_.h no longer does.
77019         Remove unnecessary casts of closedir to void.
77020         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77021         decide whether to decrement nlinks.
77022         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77023         (FTS): Use struct hash_table * instead of Hash_table, so that
77024         we no longer need to include hash.h here.
77025
77026 2005-05-18  Jim Meyering  <jim@meyering.net>
77027
77028         * modules/dirfd (License): Change to LGPL.  Most of the code
77029         is already in the public domain.
77030
77031 2005-05-18  Jim Meyering  <jim@meyering.net>
77032
77033         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77034         Reported by Yoann Vandoorselaere.
77035
77036 2005-05-17  Jim Meyering  <jim@meyering.net>
77037
77038         * m4/fts.m4: New file, from coreutils.
77039
77040 2005-05-17  Jim Meyering  <jim@meyering.net>
77041
77042         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77043
77044 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         Sync from coreutils.
77047         * m4/unlinkdir.m4: New file.
77048
77049 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         Sync from coreutils.
77052         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77053         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77054         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77055         White space changes only.
77056         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77057         special.
77058         * lib/yesno.c: Include getline.h, not ctype.h.
77059         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77060         Use getline to remove arbitrary restriction on response length.
77061
77062 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77063
77064         * config/srclist-update: Spell out "Street" in FSF postal
77065         mail address; this is the style the FSF seems to prefer.
77066
77067         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77068         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77069         this updates FSF postal mail address.
77070
77071         Sync from coreutils.
77072         * modules/unlinkdir: New file.
77073         * modules/yesno (Depends-on): Add getline.
77074         * MODULES.html.sh (File system functions): Add unlinkdir.
77075
77076 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77079         lib/strsep.h:
77080         Change the initial comment to refer to GPL, not LGPL.
77081         gnulib-tool will change it to LGPL as needed.
77082
77083         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77084         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77085         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77086         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77087         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77088         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77089         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77090         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77091         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77092         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77093         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77094         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77095         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77096         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77097         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77098         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77099         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77100         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77101         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77102         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77103         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77104         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77105         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77106         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77107         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77108         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77109         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77110         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77111         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77112         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77113         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77114         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77115         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77116         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77117         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77118         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77119         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77120         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77121         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77122         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77123         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77124         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77125         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77126         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77127         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77128         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77129         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77130         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77131         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77132         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77133         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77134         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77135         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77136         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77137         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77138         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77139         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77140         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77141         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77142         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77143         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77144         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77145         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77146         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77147         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77148         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77149         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77150         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77151         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77152         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77153         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77154         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77155         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77156         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77157         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77158         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77159         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77160         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77161         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77162         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77163         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77164         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77165         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77166         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77167         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77168         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77169         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77170         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77171         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77172         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77173         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77174         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77175         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77176         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77177         lib/yesno.c, lib/yesno.h:
77178         Update FSF postal mail address.
77179
77180 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77183         tests/test-memmem.c, tests/test-stpncpy.c:
77184         Update FSF postal mail address.
77185
77186 2005-05-13  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77189         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77190         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77191         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77192         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77193         Add support for 64-bit integers in the MSVC compiler.
77194
77195 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77196
77197         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77198
77199 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77200
77201         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77202
77203 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * doc/getdate.texi (General date syntax): Don't say that date
77206         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77207         Problem reported by Nic Ferrier.
77208
77209 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77210
77211         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77212         specified in ai_socktype. Fix invalid ai_protocol
77213         check. ai_protocol is usually set to 0 or depending on
77214         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77215         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77216         ai_socktype / ai_protocol in the returned addrinfo structure.
77217
77218 2005-05-10  Simon Josefsson  <jas@extundo.com>
77219
77220         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77221         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77222
77223 2005-05-10  Karl Berry  <karl@gnu.org>
77224
77225         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77226         (from http://www.gnu.org/licenses).
77227         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77228         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77229         fdl.texi suffices.
77230
77231 2005-05-10  Karl Berry  <karl@gnu.org>
77232
77233         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77234         (COPYING.DOC): remove.
77235
77236         * config/srclist-update: new FSF address.
77237
77238 2005-05-10  Derek Price  <derek@ximbiot.com>
77239
77240         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77241         possible.
77242
77243 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77244             Bruno Haible  <bruno@clisp.org>
77245
77246         * modules/inet_ntop: New file.
77247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77248         inet_ntop.
77249
77250 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77251             Bruno Haible  <bruno@clisp.org>
77252
77253         * m4/inet_ntop.m4: New file.
77254
77255 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77256             Bruno Haible  <bruno@clisp.org>
77257
77258         * lib/inet_ntop.h: New file.
77259         * lib/inet_ntop.c: New file, from glibc with modifications.
77260
77261 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         * modules/time_r (License): Change to LGPL.
77264         * modules/extensions (License): Change to LGPL.  Actually,
77265         the license is more permissive than that, but currently gnulib-tool
77266         doesn't know how to handle more-permissive licenses.
77267
77268         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77269         Problem reported by Dave Love.
77270
77271 2005-05-08  Jim Meyering  <jim@meyering.net>
77272
77273         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77274         blank.
77275
77276 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * modules/argmatch (Depends-on): Add stdbool.
77279         * modules/backupfile (Depends-on): Likewise.
77280         * modules/chdir-long (Depends-on): Likewise.
77281         * modules/closeout (Depends-on): Likewise.
77282         * modules/cycle-check (Depends-on): Likewise.
77283         * modules/dirname (Depends-on): Likewise.
77284         * modules/fnmatch (Depends-on): Likewise.
77285         * modules/fsusage (Depends-on): Likewise.
77286         * modules/fwriteerror (Depends-on): Likewise.
77287         * modules/getcwd (Depends-on): Likewise.
77288         * modules/getloadavg (Depends-on): Likewise.
77289         * modules/hard-locale (Depends-on): Likewise.
77290         * modules/makepath (Depends-on): Likewise.
77291         * modules/mountlist (Depends-on): Likewise.
77292         * modules/nanosleep (Depends-on): Likewise.
77293         * modules/posixtm (Depends-on): Likewise.
77294         * modules/quotearg (Depends-on): Likewise.
77295         * modules/readtokens (Depends-on): Likewise.
77296         * modules/readtokens0 (Depends-on): Likewise.
77297         * modules/readutmp (Depends-on): Likewise.
77298         * modules/save-cwd (Depends-on): Likewise.
77299         * modules/strftime (Depends-on): Likewise.
77300         * modules/userspec (Depends-on): Likewise.
77301         * modules/utimecmp (Depends-on): Likewise.
77302         * modules/xgetcwd (Depends-on): Likewise.
77303         * modules/xnanosleep (Depends-on): Likewise.
77304         * modules/xstrtod (Depends-on): Likewise.
77305         * modules/yesno (Depends-on): Likewise.
77306
77307 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77308
77309         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77310         needless checks.
77311
77312 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         Merge from coreutils.  Among other things,
77315         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77316         * lib/fd-safer.c: New file.
77317         * lib/fcntl-safer.h, open-safer.c: Remove.
77318         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77319         * lib/dup-safer.c: Include unistd-safer.h first.
77320         Don't include errno.h.
77321         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77322         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77323         * lib/file-type.c: Rely on file-type.h change.
77324         * lib/getloadavg.c: Include unistd-safer.h.
77325         (getloadavg): Use safer open.
77326         * lib/getusershell.c: Include "stdio-safer.h".
77327         (getusershell): Use safer fopen.
77328         * lib/long-options.c (long_options): Use NULL rather than 0.
77329         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77330         'free'.
77331         * lib/modechange.c: Likewise.
77332         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77333         (MODE_DONE): New constant.
77334         (struct mode_change): Remove 'next' member.
77335         (make_node_op_equals): New function; like the old one of the
77336         same name, except it allocates an array.
77337         (mode_compile, mode_create_from_ref): Use it.
77338         (mode_compile): Allocate result as an array, not a linked list.
77339         Parse octal string ourself, so that we catch mistakes like "+0".
77340         (mode_adjust): Arg is an array, not a linked list.
77341         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77342         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77343         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77344         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77345         Remove.  This is now stat-macros.h's job.
77346         (talloc): Remove.  All callers replaced by xalloc, so that
77347         our invokers don't have to worry about reporting memory failures.
77348         (make_node_op_equals): Remove.
77349         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77350         New constants.
77351         (struct mode_change): Moved here from modechange.h.
77352         (mode_append_entry): Remove.
77353         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77354         apps to have incorrect behavior.  Use simpler algorithm for head
77355         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77356         Detect more invalid usages rather than having somewhat-random behavior.
77357         Don't insert an "a=" action, as that leads to incorrect behavior.
77358         (mode_compile, mode_create_from_ref): Return NULL on error instead
77359         of an enum, since now there's only one way to have an error.  All
77360         callers changed.
77361         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77362         at the correct time.  Simplify calculation of "+u" and its ilk.
77363         Don't mishandle "+X".
77364         (mode_free): Remove "register" and localize decls.
77365         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77366         (struct mode_change): Move to modechange.c; callers don't
77367         need to see this stuff.
77368         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77369         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77370         (mode_change, mode_adjust): Reflect the new signatures noted above.
77371         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77372         that might redefine system include files.
77373         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77374         (my_usleep): Use NULL rather than (void *) 0.
77375         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77376         Use siginterrupt to specify that system calls should be interrupted.
77377         (rpl_nanosleep): Move initialization of suspended closer to call of
77378         my_usleep.
77379         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77380         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77381         (desirable_utmp_entry): New function.
77382         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77383         using x2nrealloc, to simplify logic.
77384         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77385         size calculation.  Do not assume utmp file is a regular file.
77386         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77387         (READ_UTMP_CHECK_PIDS): New constant.
77388         * lib/save-cwd.c: Include unistd-safer.h.
77389         (save_cwd): Use fd_safer.
77390         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77391         [!_LIBC] Include "stat-macros.h" instead.
77392         * lib/unistd-safer.h (fd_safer): New decl.
77393
77394 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * modules/getloadavg (Depends-on): Add unistd-safer.
77397         * modules/getusershell (Depends-on): Add stdio-safer.
77398         * modules/lstat (Depends-on): Remove xalloc.
77399         * modules/mkstemp (Depends-on): Add stat-macros.
77400         * modules/modechange (Depends-on): Remove xstrtol.
77401         Add stat-macros, xalloc.
77402         * modules/save-cwd (Depends-on): Add unistd-safer.
77403         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77404         * modules/unistd-safer (Files): Add lib/fd-safer.c
77405         (Makefile.am): Remove lib_SOURCES.
77406
77407         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77408         Remove fcntl-safer; unistd-safer supersedes it.
77409
77410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77413         AC_HEADER_STAT.
77414         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77415         (gl_PREREQ_CHOWN): Remove.
77416         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77417         it.  Don't require AC_HEADER_STAT.
77418         (gl_PREREQ_LSTAT): Remove.
77419         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77420         Don't require AC_HEADER_STAT.
77421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77422         (gl_PREREQ_RMDIR): Remove.
77423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77424         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77425         the stat-macros module a prerequisite.
77426         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77427         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77428         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77429         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77430         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77431         variable names.
77432         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77433         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77434         variable prefixes.
77435         * m4/fcntl-safer.m4: Remove.
77436         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77437         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77438         Invoke gl_PREREQ_FD_SAFER.
77439         (gl_PREREQ_FD_SAFER): New macro.
77440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77441         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77442         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77443         Remove duplicate call to AC_LIBOBJ(readutmp).
77444         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77445
77446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77447         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77448
77449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * MODULES.html.sh (Misc): Add byteswap.
77452
77453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77454
77455         * modules/getcwd (Depends-on): Add extensions.
77456         * modules/openat (Depends-on): Likewise.
77457
77458 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77459
77460         * modules/byteswap: New file.
77461
77462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77463
77464         * m4/byteswap.m4: New file.
77465
77466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77467
77468         * lib/byteswap_.h: New file.
77469
77470 2005-04-25  Karl Berry  <karl@gnu.org>
77471
77472         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77473
77474 2005-04-25  Albert Chin  <china@thewrittenword.com>
77475
77476         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77477         Toolkit C bug.
77478
77479 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77480
77481         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77482         (func_ln_if_changed): Remove forcibly for no error message
77483         in case file does not exist.
77484
77485 2005-04-19  Simon Josefsson  <jas@extundo.com>
77486
77487         * gnulib-tool (Options): Make --symlink mean --symbolic.
77488
77489 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77490
77491         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77492
77493 2005-04-16  Simon Josefsson  <jas@extundo.com>
77494
77495         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77496
77497 2005-04-15  Simon Josefsson  <jas@extundo.com>
77498
77499         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77500
77501 2005-04-15  Simon Josefsson  <jas@extundo.com>
77502
77503         * gnulib-tool: Rename --symlink to --symbolic.
77504
77505 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77506
77507         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77508         symbolic links to files instead of copying/moving.  Add --aux-dir,
77509         specifying directory relative --dir where auxiliary build tools
77510         are placed.
77511
77512 2005-04-14  Bruno Haible  <bruno@clisp.org>
77513
77514         * modules/allocsa (License): Change to LGPL.
77515         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77516
77517 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77520         that "UTC +1 second" continues to work.  Problem reported
77521         by Dmitry V. Levin.
77522         (relunit_snumber): New rule.
77523         (relunit): Use it.
77524
77525 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77526
77527         * lib/getdate.y (universal_time_zone_table): New constant.
77528         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77529         universal_time_zone_table.
77530         (lookup_zone): Prefer universal_time_zone_table to
77531         local_time_zone_table, so that "GMT" time stamps are allowed in
77532         London during the summer.  Problem reported by Ian Abbott.
77533
77534 2005-04-12  Jim Meyering  <jim@meyering.net>
77535
77536         * lib/human.c (humblock): Set *options even when returning due to
77537         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77538         warning from gcc-4.
77539
77540 2005-04-09  Jim Meyering  <jim@meyering.net>
77541
77542         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77543         -Wuninitialized: initialize tm0.tm_year.
77544
77545 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77546
77547         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77548         count, since there's no maximum.  All uses changed.
77549         Add member dsts_seen.
77550         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77551         not being INT_MAX.
77552         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77553         Use pc_rels_seen to decide whther a date is absolute.
77554
77555         * lib/getdate.y (number): Don't overwrite year.
77556         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77557         check.
77558
77559 2005-04-02  Simon Josefsson  <jas@extundo.com>
77560
77561         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77562         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77563
77564 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77565
77566         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77567         where no absolute path name can be longer than PATH_MAX.
77568
77569 2005-03-27  Jim Meyering  <jim@meyering.net>
77570
77571         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77572
77573 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77576         "one's complement" -> "ones' complement" in comment, as per Knuth.
77577         "value of type" -> "type or expression" in comment.
77578         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77579
77580 2005-03-26  Jim Meyering  <jim@meyering.net>
77581
77582         Comment nits.
77583         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77584         Correct typos: s/or/of/.
77585
77586 2005-03-26  Jim Meyering  <jim@meyering.net>
77587
77588         * modules/check-include-files: Move to ../ and rename to...
77589         * check-module: ...this.
77590
77591 2005-03-25  Jim Meyering  <jim@meyering.net>
77592
77593         * modules/xvasprintf (Files): Add xalloc.h.
77594
77595 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * modules/gettext (Files): config/config.rpath ->
77598         build-aux/config.rpath
77599         * modules/iconv (Files): Likewise.
77600         Problem reported by Oskar Liljeblad.
77601
77602 2005-03-23  Jim Meyering  <jim@meyering.net>
77603
77604         * modules/check-include-files: New script to check for
77605         missing dependencies, multiple includes, etc.
77606
77607         * modules/c-strtold (Depends-on): Add xalloc.
77608         * modules/c-strtod (Depends-on): Add xalloc.
77609         * modules/hash (Depends-on): Add xalloc.
77610         (Files): Remove lib/xalloc.h.
77611
77612         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77613         * modules/userspec (Files): Add lib/inttostr.h.
77614
77615 2005-03-23  Jim Meyering  <jim@meyering.net>
77616
77617         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77618
77619 2005-03-22  Jim Meyering  <jim@meyering.net>
77620
77621         * modules/stat-macros: New module.
77622         * modules/canonicalize, modules/euidaccess, modules/file-type,
77623         * modules/filemode, modules/lchown, modules/makepath,
77624         * modules/rmdir, modules/stat: Depend on new stat-macros module
77625         rather than listing lib/stat-macros.h manually.
77626         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77627
77628 2005-03-22  Jim Meyering  <jim@meyering.net>
77629
77630         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77631
77632 2005-03-22  Bruno Haible  <bruno@clisp.org>
77633
77634         * config/srclist.txt: Replace target directory 'config' with
77635         'build-aux'.
77636         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77637         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77638         ../build-aux/.
77639
77640 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * modules/chdir-long (Depends-on): Add mempcpy.
77643
77644         * modules/acl, modules/backupfile, modules/c-strtod,
77645         modules/c-strtold, modules/canon-host, modules/canonicalize,
77646         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77647         modules/exclude, modules/exitfail, modules/file-type,
77648         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77649         modules/getdate, modules/getline, modules/getpagesize,
77650         modules/getpass, modules/getugroups, modules/group-member,
77651         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77652         modules/inttostr, modules/long-options, modules/makepath,
77653         modules/md5, modules/memcasecmp, modules/memcoll,
77654         modules/modechange, modules/mountlist, modules/path-concat,
77655         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77656         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77657         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77658         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77659         modules/strftime, modules/strndup, modules/strverscmp,
77660         modules/timespec, modules/unlocked-io, modules/userspec,
77661         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77662         modules/yesno:
77663         Remove lib_SOURCES line from Makefile.am section, as this is now
77664         done automatically by the corresponding Autoconf macro.
77665
77666 2005-03-21  Jim Meyering  <jim@meyering.net>
77667
77668         Changes imported from coreutils.
77669
77670         * lib/cycle-check.c: Don't include xalloc.h.
77671
77672         * lib/path-concat.c: Don't include assert.h.
77673         (path_concat): Remove assertion that would have triggered
77674         for ABASE starting with more than one slash.
77675         Reported by Andreas Schwab.
77676
77677         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77678         properly when ABASE is an absolute file name.
77679         Correct the description of this function.
77680         Include <assert.h>.
77681         Add an assertion and a test driver.
77682         This fixes a bug introduced on 2004-07-02.
77683         Andreas Schwab reported the resulting failure of cp --parents:
77684         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77685
77686 2005-03-21  Jim Meyering  <jim@meyering.net>
77687
77688         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77690
77691 2005-03-21  Jim Meyering  <jim@meyering.net>
77692         and  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77695         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77696         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77697         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77698         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77699         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77700         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77701         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77702         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77703         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77704         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77705         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77706         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77707         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77708         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77709         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77710         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77711         for these modules.
77712
77713 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77716         (which shouldn't happen), generate nothing instead of returning 0
77717         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77718
77719 2005-03-16  Bruno Haible  <bruno@clisp.org>
77720
77721         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77722         HAVE_LONGLONG_64BIT.
77723
77724 2005-03-16  Bruno Haible  <bruno@clisp.org>
77725
77726         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77727         HAVE_LONGLONG_64BIT.
77728
77729 2005-03-16  Bruno Haible  <bruno@clisp.org>
77730
77731         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77732         HAVE_LONGLONG_64BIT.
77733
77734 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77735
77736         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77737         reliably distinguish strftime failure from empty output on POSIX
77738         hosts.
77739
77740 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77743         (iconv_string): Don't guess a size-zero buffer, as that might cause
77744         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77745         result would be 'too large', where 'too large' is (heuristically)
77746         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77747         overflow concerns.  This will prevent some unwanted malloc failures
77748         when the inputs are very large.
77749
77750 2005-03-15  Karl Berry  <karl@gnu.org>
77751
77752         * config/srclist.txt (config.rpath): from gettext.
77753         * config/config.rpath: update.
77754
77755 2005-03-15  Bruno Haible  <bruno@clisp.org>
77756
77757         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77758         to 'negate'.
77759
77760         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77761         variable.
77762
77763         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77764         results.
77765
77766 2005-03-14  Simon Josefsson  <jas@extundo.com>
77767
77768         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77769         <fx@gnu.org>.
77770
77771 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77774         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77775         intprops.h.
77776         * lib/strtol.c: Likewise.
77777
77778 2005-03-14  Jim Meyering  <jim@meyering.net>
77779
77780         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77781         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77782         to be nonzero so that we (and caller) can detect the difference
77783         between a valid zero-length expansion and an error return, even
77784         when the underlying strftime fails before writing anything into
77785         that location.
77786
77787 2005-03-14  Bruno Haible  <bruno@clisp.org>
77788
77789         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77790         Update from GNU gettext 0.14.3.
77791
77792 2005-03-10  Jim Meyering  <jim@meyering.net>
77793
77794         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77795
77796 2005-03-10  Jim Meyering  <jim@meyering.net>
77797
77798         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77799         so that this module works on systems without fchdir.
77800
77801 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77802
77803         Factor int-properties macros into a single file, except for
77804         glibc-related files.
77805         * lib/intprops.h: New file.
77806         * lib/getloadavg.c: Include it instead of limits.h.
77807         (INT_STRLEN_BOUND): Remove.
77808         * lib/human.c: Include intprops.h.
77809         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77810         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77811         302/1000.
77812         * lib/inttostr.h: Include intprops.h instead of limits.h.
77813         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77814         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77815         for consistency with intprops.h.
77816         (time_t_is_integer, twos_complement_arithmetic): Use them.
77817         * lib/sig2str.h: Include <signal.h>, intprops.h.
77818         (INT_STRLEN_BOUND): Remove.
77819         * lib/strftime.c (TYPE_SIGNED): Remove.
77820         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77821         * lib/strtol.c: Adjust comments to match intprops.h.
77822         * lib/userspec.c: Include intprops.h.
77823         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77824         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77825         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77826         instead of rolling our own expressions.
77827         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77828
77829         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77830         instead of int.
77831         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77832         the right thing even if adding 1900 would overflow.  Similarly
77833         for tm_mon + 1 and tm_yday + 1.
77834         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77835         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77836         (DO_SIGNED_NUMBER): New macro.
77837         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77838
77839 2005-03-07  Bruno Haible  <bruno@clisp.org>
77840
77841         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77842
77843 2005-03-07  Bruno Haible  <bruno@clisp.org>
77844
77845         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77846
77847 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77848
77849         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77850         (func_import): Only replace files via --import when they have actually
77851         changed.
77852
77853 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77854
77855         * m4/mmap-anon.m4: New file.
77856         * m4/pagealign_alloc.m4: New file.
77857
77858 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77859             Bruno Haible  <bruno@clisp.org>
77860
77861         * modules/pagealign_alloc: New file.
77862         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77863
77864 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77865             Bruno Haible  <bruno@clisp.org>
77866
77867         * lib/pagealign_alloc.h: New file.
77868         * lib/pagealign_alloc.c: New file.
77869
77870 2005-03-03  Bruno Haible  <bruno@clisp.org>
77871
77872         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77873         Use an all-permissive copyright notice, recommended by RMS.
77874
77875 2005-03-02  Bruno Haible  <bruno@clisp.org>
77876
77877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77878         of AIX, the replacement has to be done only after <string.h> is
77879         included, therefore not in config.h. stpncpy.h does the replacement,
77880         and stpncpy.c uses it.
77881
77882 2005-03-02  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77885         stpncpy.c uses it.
77886
77887 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77890         The workaround isn't strictly needed for POSIX conformance, and
77891         it's too much of a pain to configure and maintain.  We'll ask
77892         people to fix their kernels instead.
77893         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77894         (NANOSLEEP_BUG_WORKAROUND): Remove.
77895         (xnanosleep): Remove the workaround.
77896
77897 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77900         Reported by Derek Price.
77901         (Include): Add "timespec.h".
77902
77903         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77904
77905 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77908         to detect nanosleep bug.
77909
77910 2005-03-01  Bruno Haible  <bruno@clisp.org>
77911
77912         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77913
77914 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * modules/gethrxtime: New file.
77917         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77918         (Depends-on): Add gethrxtime.
77919         (configure.ac): Add gl_XNANOSLEEP.
77920         (Makefile.am): Remove lib_SOURCES line.
77921
77922 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77925         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77926
77927 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77930         * lib/timespec.h (gettime): Return void, since it always
77931         succeeds now.  All uses changed.
77932         * lib/gettime.c (gettime): Likewise.
77933         [HAVE_NANOTIME]: Prefer nanotime.
77934         Assume gettimeofday succeeds, as POSIX requires.
77935         Assime time () succeeds, since other code already does.
77936         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77937         (timespec_subtract): Remove.
77938         (NANOSLEEP_BUG_WORKAROUND): New constant.
77939         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77940         things considerably.  Use it only on GNU/Linux hosts, since the
77941         workaround shouldn't be needed elsewhere.
77942
77943 2005-02-24  Bruno Haible  <bruno@clisp.org>
77944
77945         * modules/gettext (Files): Add m4/glibc2.m4.
77946
77947 2005-02-24  Bruno Haible  <bruno@clisp.org>
77948
77949         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77950         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77951         * m4/progtest.m4:
77952         Update from GNU gettext 0.14.2.
77953         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77954
77955 2005-02-24  Bruno Haible  <bruno@clisp.org>
77956
77957         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77958         * lib/config.charset: Update from GNU gettext 0.14.2.
77959
77960 2005-02-24  Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/gettext.h: Update from GNU gettext 0.14.2.
77963
77964 2005-02-23  Simon Josefsson  <jas@extundo.com>
77965
77966         * m4/iconvme.m4: New file.
77967
77968 2005-02-23  Jim Meyering  <jim@meyering.net>
77969
77970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77971         change.
77972         Thanks to Bruno Haible for catching it.
77973
77974 2005-02-22  Simon Josefsson  <jas@extundo.com>
77975
77976         * modules/iconvme: New file.
77977
77978         * MODULES.html.sh: Add iconvme.
77979
77980 2005-02-22  Simon Josefsson  <jas@extundo.com>
77981
77982         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77983
77984 2005-02-22  Simon Josefsson  <jas@extundo.com>
77985
77986         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77987
77988 2005-02-22  Jim Meyering  <jim@meyering.net>
77989
77990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77991         s/ifndef/ifdef/.
77992
77993 2005-02-20  Neil Conway  <neilc@samurai.com>
77994
77995         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77996         returned by OSX/Darwin if the specified buffer is not large
77997         enough for the hostname.
77998
77999 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78000
78001         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78002         pass it to _help, otherwise the latter coredumps trying to
78003         dereference state.root_argp.
78004
78005 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * modules/chdir-long (Depends-on): Add memrchr.
78008         * modules/memrchr (Files): Add lib/memrchr.h.
78009         (Include): "memrchr.h".
78010
78011 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78012
78013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78014
78015 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78016
78017         * lib/memrchr.h: New file.
78018         * lib/chdir-long.c: Include it.
78019         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78020         Don't bother including stddef.h.
78021
78022 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78025         inclusion.
78026         Include <sys/types.h>, for dev_t.
78027         (ME_DUMMY, ME_REMOTE): Move from here....
78028         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78029         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78030         Dmitry V. Levin.
78031         Include mountlist.h first, to test the interface.
78032
78033 2005-01-29  Bruno Haible  <bruno@clisp.org>
78034
78035         * lib/progname.c (program_name): Initialize.
78036         Needed when linking statically on MacOS X.
78037
78038 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Sync from coreutils.
78041         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78042         (Depends-on): Add c-strtod.
78043         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78044
78045 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         Sync from coreutils.
78048         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78049
78050         Remove files that are specific to coreutils.
78051         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78052
78053 2005-01-28  Bruno Haible  <bruno@clisp.org>
78054
78055         * modules/javacomp: New file.
78056         * MODULES.html.sh (Java): Add javacomp.
78057
78058 2005-01-28  Bruno Haible  <bruno@clisp.org>
78059
78060         * m4/javacomp.m4: New file, from GNU gettext.
78061
78062 2005-01-28  Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/javacomp.sh.in: New file, from GNU gettext.
78065         * lib/javacomp.h: New file, from GNU gettext.
78066         * lib/javacomp.c: New file, from GNU gettext.
78067
78068 2005-01-26  Simon Josefsson  <jas@extundo.com>
78069
78070         * lib/gai_strerror.c: Use GPL in header.
78071
78072 2005-01-26  Bruno Haible  <bruno@clisp.org>
78073
78074         * modules/javaexec: New file.
78075         * MODULES.html.sh (Java): Add javaexec.
78076
78077 2005-01-26  Bruno Haible  <bruno@clisp.org>
78078
78079         * m4/javaexec.m4: New file, from GNU gettext.
78080
78081 2005-01-26  Bruno Haible  <bruno@clisp.org>
78082
78083         * lib/javaexec.sh.in: New file, from GNU gettext.
78084         * lib/javaexec.h: New file, from GNU gettext.
78085         * lib/javaexec.c: New file, from GNU gettext.
78086
78087 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78088
78089         * modules/lchown (Depends-on): Remove lchown.h
78090
78091 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78092
78093         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78094         must be defined if the header file was not found, in order
78095         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78096
78097 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78098
78099         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78100         initializers for struct pentry_state.
78101         (__argp_error): Check return value of __asprintf
78102         (__argp_failure): Translate error message
78103
78104         * lib/argp-parse.c: Removed braces around the expansion of N_()
78105
78106 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78109         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78110         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78111         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78112         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78113         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78114         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78115         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78116         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78117         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78118         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78119         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78120         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78121         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78122         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78123         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78124         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78125         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78126         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78127         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78128         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78129         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78130         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78131         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78132         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78133         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78134         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78135         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78136         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78137         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78138         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78139         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78140         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78141         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78142         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78143         Use an all-permissive copyright notice, recommended by RMS.
78144
78145 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * modules/chdir-long (Depends-on): Remove mempcpy.
78148
78149 2005-01-21  Jim Meyering  <jim@meyering.net>
78150
78151         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78152         same value as for Solaris 9.
78153
78154         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78155         component length.  This included changing the parameter to be
78156         of type `char *' rather than `char const *'.
78157         * lib/chdir-long.h (chdir_long): Update prototype.
78158
78159         * lib/openat.c (fdopendir, fstatat): New functions.
78160         * lib/openat.h: Include headers required for use of DIR and struct
78161         stat.
78162         [AT_SYMLINK_NOFOLLOW]: Define.
78163         (fdopendir, fstatat): Add prototypes.
78164
78165 2005-01-21  Bruno Haible  <bruno@clisp.org>
78166
78167         * modules/classpath: New file.
78168         * MODULES.html.sh (Java): Add classpath.
78169
78170 2005-01-21  Bruno Haible  <bruno@clisp.org>
78171
78172         * lib/classpath.h: New file, from GNU gettext.
78173         * lib/classpath.c: New file, from GNU gettext.
78174
78175 2005-01-20  Simon Josefsson  <jas@extundo.com>
78176
78177         * modules/version-etc-fsf: New file.
78178
78179 2005-01-20  Simon Josefsson  <jas@extundo.com>
78180
78181         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78182         * lib/version-etc.c: Remove version_etc_copyright.
78183         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78184         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78185
78186 2005-01-20  Simon Josefsson  <jas@extundo.com>
78187
78188         * lib/base64.h (isbase64): Add.
78189
78190         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78191         using a unsigned prototype, don't inline.
78192         (base64_decode): Use it.
78193
78194 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78197         it.
78198
78199 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * lib/save-cwd.c (save_cwd): Remove code to support the case
78202         where fchdir is missing or flaky.
78203
78204 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78207
78208 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78211         AC_LIBSOURCES now does this.
78212         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78213         with new ullong_max module.
78214
78215 2005-01-19  Bruno Haible  <bruno@clisp.org>
78216
78217         * modules/sh-quote: New file.
78218         * MODULES.html.sh (Executing programs): Add sh-quote.
78219
78220 2005-01-19  Bruno Haible  <bruno@clisp.org>
78221
78222         * lib/sh-quote.h: New file, from GNU gettext.
78223         * lib/sh-quote.c: New file, from GNU gettext.
78224
78225 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         Merge from coreutils.
78228         * m4/ullong_max.m4: New file.
78229         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78230         (gl_MACROS): Assume localeconv exists.
78231
78232 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         Merge changes from coreutils, as described below in several
78235         changelogs dated today.
78236
78237         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78238         (O_DIRECTORY): Remove; not needed here, since "." must be
78239         a directory.  All uses removed.
78240         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78241         universal on Suns, and we also need to test for IRIX.
78242         Revamp code to use 'if' rather than '#if'.
78243         Avoid unnecessary comparison of cwd->desc to 0.
78244
78245         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78246         for known valid error numbers rather than observed invalid ones.
78247
78248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         * modules/ullong_max: New file.
78251
78252         * modules/chdir-long, modules/openat: New files.
78253         * modules/save-cwd (Depends-on): Depend on chdir-long.
78254         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78255
78256 2005-01-18  Jim Meyering  <jim@meyering.net>
78257
78258         Merge from coreutils.
78259         * m4/chdir-long.m4, m4/openat.m4: New files.
78260         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78261         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78262         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78263         is sane and DOES follow symlinks.  Besides, testing 20 different
78264         systems found no broken chown implementations.
78265         Prompted by a change in rsync's copy of this macro.
78266         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78267
78268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78269
78270         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78271         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78272         NULL-means-set-to-current-time semantics.
78273         Remove temporary file immediately, rather than waiting
78274         for configure's at-exit trap code to do it.
78275
78276 2005-01-18  Jim Meyering  <jim@meyering.net>
78277
78278         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78279
78280         * lib/utimens.c (futimens): Account for the fact that futimes
78281         can also fail with errno == ENOSYS or errno == ENOENT.
78282         Patch from Dmitry V. Levin.
78283
78284         Change the name of the robust chdir function from chdir to chdir_long.
78285         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78286         (restore_cwd): Use chdir_long, not chdir.
78287         * lib/chdir-long.c: Renamed from chdir.c.
78288         * lib/chdir-long.h: Renamed from chdir.h.
78289         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78290         Hurd.
78291
78292 2005-01-18  Bruno Haible  <bruno@clisp.org>
78293
78294         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78295         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78296         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78297         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78298         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78299         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78300         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78301         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78302         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78303         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78304         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78305         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78306         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78307         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78308         Use an all-permissive copyright notice, recommended by RMS.
78309
78310 2005-01-18  Bob Proulx  <bob@proulx.com>
78311
78312         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78313         simplify offsetof() macro construct to avoid compile failure with
78314         native HP-UX 11.0 ANSI C compiler.
78315
78316 2005-01-17  Bruno Haible  <bruno@clisp.org>
78317
78318         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78319         redundant because stpncpy.m4 takes care of it.
78320
78321 2005-01-17  Bruno Haible  <bruno@clisp.org>
78322
78323         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78324
78325 2005-01-17  Bruno Haible  <bruno@clisp.org>
78326
78327         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78328         used.
78329
78330 2005-01-17  Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/fwriteerror.h (fwriteerror): Change specification to include
78333         fclose.
78334         * lib/fwriteerror.c: Include <stdbool.h>.
78335         (fwriteerror): At the end, close the file stream. Record whether
78336         stdout was already closed.
78337
78338 2005-01-17  Bruno Haible  <bruno@clisp.org>
78339
78340         * lib/execute.c (environ): Declare if needed.
78341         * lib/pipe.c (environ): Likewise.
78342         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78343
78344 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78345
78346         * modules/argp: Depend on vsnprintf
78347
78348 2005-01-10  Jim Meyering  <jim@meyering.net>
78349
78350         * modules/closeout (Depends-on): Add atexit.
78351
78352 2005-01-06  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78355
78356 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78359         definitions to be after all include files, to avoid collisions.
78360         Problem reported by Bob Proulx.
78361
78362 2005-01-04  Jim Meyering  <jim@meyering.net>
78363
78364         Changes imported from coreutils.
78365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78366         as the mkstemp template, use a temporary directory and an
78367         8.3-friendly template to avoid trouble on systems like DJGPP.
78368         Reported by Juan M. Guerrero via Stepan Kasal.
78369         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78370         close. Remove the temporary directory right away, rather than waiting
78371         for configure's at-exit trap code to do it.
78372         Suggestion from Stepan Kasal.
78373
78374 2005-01-01  Simon Josefsson  <jas@extundo.com>
78375
78376         * gnulib-tool: Print #include directives when --import'ing.
78377
78378 2004-12-28  Simon Josefsson  <jas@extundo.com>
78379
78380         * tests/test-base64.c: Include required header files.  Remove
78381         unused variables.
78382
78383 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78384
78385         * modules/error (Depends-on): Remove gettext.
78386
78387 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78390         not needed.  This removes a dependency on the gettext module.
78391         [defined _LIBC]: Do not include <libintl.h>; not needed.
78392
78393 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78396         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78397
78398 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78401         HAVE_DECL_STRTOLD.
78402
78403 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * modules/getdate (Depends-on): Remove alloca-opt.
78406
78407 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78408
78409         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78410
78411 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * lib/argp-parse.c: Include <stddef.h>.
78414         (alignof, alignto): New macros.
78415         (parser_init): Don't assume that void * is aligned sufficiently
78416         for struct option.
78417
78418         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78419         need to extend the stack.
78420         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78421         large.
78422
78423 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78424
78425         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78426
78427 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78430         (2004-10-24) change.  Apparently this was a false alarm.
78431
78432         * modules/getdate: Depend on alloca-opt, not alloca.
78433
78434 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78437         Remove now-obsolete comment about AIX.
78438         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78439         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78440         (YYMAXDEPTH): New macro.
78441
78442 2004-12-18  Simon Josefsson  <jas@extundo.com>
78443
78444         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78445
78446 2004-12-18  Bruno Haible  <bruno@clisp.org>
78447
78448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78449
78450 2004-12-18  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/fatal-signal.c (fatal_signals): Make non-const.
78453         (init_fatal_signals): New function.
78454         (uninstall_handlers, install_handlers): Ignore signals that were set to
78455         SIG_IGN.
78456         (at_fatal_signal): Call init_fatal_signals.
78457         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78458         SIG_IGN.
78459         Reported by Paul Eggert.
78460
78461 2004-12-18  Bruno Haible  <bruno@clisp.org>
78462
78463         * doc/alloca.texi: New file.
78464         * doc/alloca-opt.texi: New file.
78465
78466 2004-12-17  Jim Meyering  <jim@meyering.net>
78467
78468         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78469         Otherwise, install-sh could exit with improper exit status when
78470         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78471
78472 2004-12-16  Simon Josefsson  <jas@extundo.com>
78473
78474         * tests/test-base64.c: Add license.
78475
78476 2004-12-15  Stepan Kasal  <address@hidden>
78477
78478         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78479
78480 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         * modules/getcwd (Files): Add m4/d-ino.m4.
78483         Suggested by Mark D. Baushke.
78484
78485 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * lib/getdate.y (textint): New member "negative".
78488         (time_zone_hhmm): New function.
78489         Expect 14 shift-reduce conflicts, not 13.
78490         (o_colon_minutes): New rule.
78491         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78492         (yylex): Set the "negative" member of signed numbers.
78493
78494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * doc/getdate.texi (Time of day items, Time zone items):
78497         Describe new formats +00:00, UTC+00:00.
78498
78499 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78502         spurious "-l"s.  Problem reported by Stepan Kasal.
78503
78504 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78507         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78508
78509 2004-12-04  Simon Josefsson  <jas@extundo.com>
78510
78511         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78512         Vandoorselaere <yoann@prelude-ids.org>.
78513
78514 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         Changes imported from coreutils.
78517         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78518         exist.
78519         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78520
78521 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         Changes imported from coreutils.
78524         * lib/hard-locale.c: Assume <locale.h> exists.
78525         Include "strdup.h".
78526         (GLIBC_VERSION): New macro.
78527         (hard_locale): Assume setlocale exists.
78528         Rewrite to avoid #ifdef.
78529         Use strdup rather than malloc + strcpy.
78530         * lib/human.c: Assume <locale.h> exists.
78531         (human_readable): Assume localeconv exists.
78532
78533 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * modules/hard-locale (Depends-on): Add strdup.
78536
78537 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78538
78539         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78540         convert T2, not T.  (Imported from libc.)
78541
78542 2004-11-30  Simon Josefsson  <jas@extundo.com>
78543
78544         * modules/restrict (License): Change to LGPL.
78545
78546 2004-11-30  Simon Josefsson  <jas@extundo.com>
78547
78548         * m4/restrict.m4: Add copyright and copying conditions.
78549
78550 2004-11-30  Simon Josefsson  <jas@extundo.com>
78551
78552         * m4/base64.m4: New file.
78553
78554 2004-11-30  Simon Josefsson  <jas@extundo.com>
78555
78556         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78557         base64.
78558
78559         * tests/test-base64.c: New file.
78560
78561         * modules/base64: New file.
78562
78563 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78566         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78567
78568         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78569
78570 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78573         (__getcwd.c): Don't restore errno; glibc doesn't.
78574         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78575         first, falling back to our code only if its results look suspicious.
78576         Ensure that the resulting buffer is only as large as necessary.
78577
78578         * lib/readutmp.c: Include readutmp.h first.
78579         Include <errno.h>, since readutmp.h no longer does that.
78580         * lib/readutmp.h: Don't include <errno.h>,
78581         <sys/param.h>, <time.h>; not needed to establish interface.
78582         (errno): Remove decl.
78583         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78584         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78585         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78586
78587 2004-11-28  Simon Josefsson  <jas@extundo.com>
78588
78589         * lib/base64.h, base64.c: New file.
78590
78591 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78592
78593         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78594
78595 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78596
78597         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78598         (Depends-on): Remove pathmax, same.  Add mempcpy.
78599         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78600         (Makefile.am): Append getcwd.h to lib_SOURCES.
78601         (Include): Add getcwd.h.
78602         (Maintainer): Change from Jim Meyering to "all, glibc",
78603         since getdate now uses intended-for-glibc code.
78604         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78605         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78606
78607 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78610         HP's ANSI C compiler.
78611         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78612         Declaring int functions causes warnings on some modern systems and
78613         shouldn't be needed to compile on ancient ones.
78614         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78615         defined.
78616
78617         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78618         with the following changes.
78619         (__set_errno): Parenthesize properly.
78620         Include <stdbool.h>.
78621         (MIN, MAX, MATCHING_INO): New macros.
78622         (__getcwd): Define with prototype, not K&R form.
78623         Use heuristics to allocate default buffer on stack if possible.
78624         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78625         behavior, and to avoid the PATH_MAX limit when computing
78626         ../../../../...
78627         Use MATCHING_INO to compare inode number to file.
78628         Check for arithmetic overflow in size calculations.
78629         Fix bug in reallocation of dot array that caused getcwd to fail
78630         on directories nested deeper than 75.
78631         Be more careful about saving errno on error.
78632         Do not use realloc; use only free+malloc, as this is a bit
78633         more flexible and avoids a needless copy operation.
78634         Do not inspect st_dev and st_ino for symbolic links; POSIX
78635         doesn't specify the latter.
78636         Check for closedir errors.
78637         Avoid needless casts.
78638         Use "#ifdef weak_alias" around weak_alias, to be like other
78639         glibc code.
78640         The following changes to getcwd.c have effect only when used in
78641         gnulib; they have no effect inside glibc proper.
78642         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78643         as alloca isn't used.
78644         (alloca, __alloca): Likewise.
78645         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78646         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78647         unconditionally, as gnulib assumes C89 or better.
78648         Do not include <sys/param.h>.
78649         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78650         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78651         better.
78652         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78653         Include <dirent.h> in a way that is compatible with modern Autoconf.
78654         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78655         New macros, if not already defined.
78656         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78657         Use "_LIBC", not "defined _LIBC", for consistency.
78658         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78659         a mempcpy module.
78660         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78661         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78662         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78663         credit only to Jim Meyering and adjust the copyright dates.
78664         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78665         <stdlib.h>, <unistd.h>, "pathmax.h".
78666         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78667         (INITIAL_BUFFER_SIZE): Remove.
78668         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78669
78670 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78673         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78674         Use the _ONCE methods, for efficiency.
78675         Check for fcntl.h.  In test program, include <errno.h>
78676         and <fcntl.h> if available.  Remove old K&R cruft from
78677         test program.  Check for common errors in GNU/Linux,
78678         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78679         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78681         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78682         name accordingly.
78683         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78684         accommodate new getcwd.c.
78685         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78686         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78687         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78688         that's all we need now.
78689
78690 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78691
78692         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78693         argp-parse.c depends on getopt internals, that means we should
78694         always use our getopt, to be on the safe side.
78695         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78696         order not to spoil the result of an eventual previous invocation
78697         of gl_GETOPT_SUBSTITUTE.
78698
78699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78700
78701         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78702         redefinition warnings. To avoid them, include the defines
78703         in `#if !defined __need_getopt ... #endif'. The only place
78704         where __getopt_argv_const is used is in definitions
78705         of getopt_long and getopt_long_only below, which are as well
78706         protected by `#ifndef __need_getopt'.
78707         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78708         __need_getopt after including <stdio.h> and <unistd.h> These
78709         headers might have defined it.
78710
78711 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78714
78715 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78718         (futimens): New function, which uses futimes if available.
78719         (futimens, utimens): Support timespec==NULL, with same semantics
78720         as utime and utimens.
78721         * lib/utimens.h (futimens): New decl.
78722
78723 2004-11-23  Jim Meyering  <jim@meyering.net>
78724
78725         * lib/getopt_.h: Remove trailing blanks.
78726
78727 2004-11-23  Jim Meyering  <jim@meyering.net>
78728
78729         * lib/__fpending.c: Add comment.
78730
78731 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * modules/canonicalize (Depends-on): Add xreadlink.
78734         Problem reported by James Youngman.
78735
78736 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78739         New macros.
78740         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78741         optopt): Use them instead of invoking ## directly; otherwise, the
78742         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78743
78744 2004-11-19  Bruno Haible  <bruno@clisp.org>
78745
78746         * lib/strtok_r.c: Move comments from here...
78747         * lib/strtok_r.h: ... to here.
78748
78749 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78752         implementations that mishandle size_t overflow.
78753
78754 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78757         might fail.  Problem reported by Yoann Vandoorselaere.
78758         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78759         implementations that mishandle size_t overflow.
78760
78761 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * modules/canon-host (Depends-on): Add strdup.
78764
78765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78768
78769 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * lib/canon-host.c: Include "strdup.h".
78772         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78773         Use strdup instead of malloc/strcpy to duplicate strings.
78774
78775         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78776         (human_space_before_unit): New constant.
78777         * lib/human.c (human_readable): Support it.
78778
78779         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78780         (xgetcwd): Set errno correctly when failing.
78781         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78782         the failure is actually due to a PATH_MAX problem.
78783
78784         Further getopt changes to make it more likely that glibc will
78785         buy the changes back.
78786         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78787         (getopt): Use it, so to preserve glibc semantic
78788         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78789         when compiling for libc.
78790         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78791         (getopt_long, getopt_long_only): Use it.
78792
78793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78794         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78795         (getopt): Argv is now char * const *, as per standard.
78796         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78797         not char *__getopt_argv_const *.
78798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78799         _getopt_long_only_r): Likewise.
78800         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78801         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78802         _getopt_long_r, _getopt_long_only_r): Likewise.
78803         * lib/getopt_.h (__getopt_argv_const): Remove.
78804         (getopt): Argv is now char * const *, as per standard.
78805
78806         * lib/getdate.y (tORDINAL): New token.
78807         (day, relunit): Allow it for relative times.
78808         (relative_time_table): Use tORDINAL for ordinals.
78809
78810 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78813         Document that "second" isn't allowed as an ordinal number.
78814
78815 2004-11-16  Jim Meyering  <jim@meyering.net>
78816
78817         * modules/closeout (Depends-on): Add fpending.
78818
78819 2004-11-15  Jim Meyering  <jim@meyering.net>
78820
78821         * lib/closeout.c: Include "__fpending.h" once again.
78822         Include <stdbool.h>.
78823         (close_stdout): Don't fail just because stdout was closed initially,
78824         since some programs don't write to stdout in the normal course of
78825         operation (other than --version and --help), and we don't want this
78826         function to make e.g. `touch file >&-' fail.
78827         But do fail if it was closed and someone has tried to write to it.
78828         E.g., `printf foo >&-' must fail.
78829
78830 2004-11-13  Jim Meyering  <jim@meyering.net>
78831
78832         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78833
78834 2004-11-12  Simon Josefsson  <jas@extundo.com>
78835
78836         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78837         small doc fix is still pending.
78838
78839 2004-11-11  Simon Josefsson  <jas@extundo.com>
78840
78841         * modules/strtok_r: New file.
78842
78843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78844         strtok_r.
78845
78846 2004-11-11  Simon Josefsson  <jas@extundo.com>
78847
78848         * m4/strtok_r.m4: New file.
78849
78850         * m4/getopt.m4: Replace opterr.
78851
78852 2004-11-11  Simon Josefsson  <jas@extundo.com>
78853
78854         * lib/strtok_r.h, strtok_r.c: New file.
78855
78856 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78859         of replacing opterr, getopt, etc.  This should handle the
78860         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78861
78862 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78865         we can stop lying to compilers about the constness of argv when we
78866         are compiled outside glibc.
78867         (getopt, getopt_long, getopt_long_only): Use it.
78868         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78869         _getopt_internal, getopt): Likewise.
78870         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78871         _getopt_long_only_r): Likewise.
78872         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78873         _getopt_long_r, _getopt_long_only_r): Likewise.
78874
78875         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78876         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78877         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78878         the other external symbols.
78879         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78880         declaration, since the above renaming now works around collisions.
78881
78882 2004-11-11  Jim Meyering  <jim@meyering.net>
78883
78884         * lib/linebreak.c: Remove trailing blanks.
78885         * lib/alloca_.h: Likewise.
78886         * lib/acosl.c: Likewise.
78887         * lib/euidaccess.c: Likewise.
78888         * lib/allocsa.h: Likewise.
78889
78890 2004-11-10  Simon Josefsson  <jas@extundo.com>
78891
78892         * m4/getaddrinfo.m4: New file.
78893
78894 2004-11-10  Simon Josefsson  <jas@extundo.com>
78895
78896         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78897
78898 2004-11-10  Simon Josefsson  <jas@extundo.com>
78899
78900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78901         getaddrinfo.
78902
78903         * modules/getaddrinfo: New file.
78904
78905 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78908
78909 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * lib/mktime.c (SHR): New macro, which is a portable
78912         substitute for >> that should work even on Crays.
78913         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78914         Problem reported by Mark D. Baushke in
78915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78916         * lib/getdate.y (SHR): Likewise.
78917         (tm_diff): Use it.
78918         * lib/strftime.c (SHR): Likewise.
78919         (tm_diff): Use it.
78920         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78921         quote_these_too, so that right shifts are well defined.  All uses
78922         changed.
78923
78924 2004-11-10  Jim Meyering  <jim@meyering.net>
78925
78926         Ensure that no close failure goes unreported.
78927         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78928         return early when it seems there's nothing to flush.
78929         Don't include __fpending.h.
78930
78931 2004-11-10  Jim Meyering  <jim@meyering.net>
78932
78933         * modules/closeout (Depends-on): Remove fpending.
78934
78935 2004-11-10  Jim Meyering  <jim@meyering.net>
78936
78937         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78938
78939 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78942         gl_FUNC_STRFTIME.
78943         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78944         and AC_REQUIRE when possible, to avoid duplicate checks.
78945         Check for <wchar.h>.
78946
78947 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78950
78951 2004-11-09  Bruno Haible  <bruno@clisp.org>
78952
78953         * m4/sockpfaf.m4: New file.
78954
78955 2004-11-05  Bruno Haible  <bruno@clisp.org>
78956
78957         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78958         Reported by Mark D. Baushke <mdb@cvshome.org>.
78959
78960 2004-11-04  Bruno Haible  <bruno@clisp.org>
78961
78962         2004-09-11  Bruno Haible  <bruno@clisp.org>
78963                 * allocsa.valgrind: New file.
78964         2004-02-06  Bruno Haible  <bruno@clisp.org>
78965                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78966                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78967                 Reported by Christopher Seip <chris.seip@hp.com>.
78968
78969 2004-11-04  Bruno Haible  <bruno@clisp.org>
78970
78971         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78972         (Makefile.am): Distribute it.
78973
78974 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78977         with errno == ERANGE if the buffer is too small.
78978         Problem reported by Mark D. Baushke.
78979
78980 2004-11-03  Albert Chin  <china@thewrittenword.com>
78981             Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78984         equivalent, substitute $ac_type for equivalent type rather than
78985         blindly using uint32_t *always* which won't work if uint32_t is not
78986         available.  Define _UINT32_T to work around typedef of uint32_t if
78987         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78988         2.5.1.
78989
78990 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * m4/jm-macros.m4: Sync from coreutils.
78993         (gl_MACROS): Check for mbrlen, for pathchk.
78994         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78995
78996 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * lib/xreadlink.c (MAXSIZE): New macro.
78999         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79000         size does not exceed MAXSIZE.  Avoid cast.
79001         As suggested by Mark D. Baushke in
79002         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79003         if readlink fails with buffer size just under MAXSIZE, try again
79004         with MAXSIZE.
79005
79006 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79009
79010 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79011         and  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79014         (get_date): Overparenthesize to avoid GCC warning.
79015
79016 2004-11-02  Bruno Haible  <bruno@clisp.org>
79017
79018         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79019         returns void.
79020
79021 2004-11-02  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79024         function returns void.
79025
79026 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79029         fflush_unlocked, flockfile, funlockfile, funlockfile,
79030         fputs_unlocked, putc_unlocked.
79031
79032 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79035         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79036         already declared.
79037
79038 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79039
79040         * modules/getdate (Files): Add doc/getdate.texi.
79041         (Depends-on): Add setenv, xalloc.
79042
79043 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         * lib/getdate.y: Add support for TZ="foo" within a date string.
79046         Fix some bugs near time_t boundaries.  Reject dates with
79047         out-of-range components, e.g., "Sept 31".
79048         Include <stdlib.h>, "setenv.h", "xalloc.h".
79049         (ISDIGIT_LOCALE): Remove; unused.
79050         Note that the TZ and time functions used here are not reentrant.
79051         (mktime_ok, get_tz): New functions.
79052         (TZBUFSIZE): New constant.
79053         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79054         This requires that we sometimes generate our own TZ="XXX..." setting.
79055
79056 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * doc/getdate.texi: New file, from coreutils with modifications for
79059         the new TZ parsing.
79060
79061 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79062
79063         * lib/mktime.c (not_equal_tm): Remove redundant check.
79064
79065 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * modules/regex (lib_SOURCES): Add regex.c.
79068         Reported by James Youngman in
79069         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79070
79071 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/getdate.y: Use Bison 1.875 features, and some minor
79074         code cleanups.  This change does not affect semantics.
79075         Don't include <stdlib.h>; no longer needed.
79076         Don't include unlocked-io.h; only the "#if TEST" code uses
79077         stdio, and performance isn't crucial there.
79078         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79079         Bison 1.875 features as described below.
79080         All uses of "PC." replaced by "pc->".
79081         (YYSTYPE): Add a forward declaration.
79082         (yylex, yyerror): Use full prototypes in forward decls.
79083         Use "%pure-parser" rather than obsolescent "%pure_parser".
79084         Use %parse-param and %lex-param instead of obsolescent
79085         YYPARSE_PARAM and YYLEX_PARAM.
79086         (meridian_table, month_and_day_table, time_units_table,
79087         relative_time_table, time_zone_table, military_table,
79088         lookup_zone, lookup_word, get_date):
79089         Use NULL instead of 0 where appropriate.
79090         (to_hour): Avoid abort (), to avoid a dependency on
79091         stdlib.h.
79092         (yyerror, yylex): Now accepts parser_control * arg.
79093         (main) [TEST]: Use '\0' rather than 0 for char.
79094
79095 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79098
79099 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79102         It's now the caller's responsibility to handle the case where
79103         !HAVE_GETPAGESIZE && !defined getpagesize.
79104
79105         * lib/mktime.c (leapyear): Arg is long int, not int.
79106
79107 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79110
79111 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79114         missing.  Problem reported by James Youngman.
79115
79116 2004-10-16  Simon Josefsson  <jas@extundo.com>
79117
79118         * gnulib-tool: Fix comments.  Fix parse problem.
79119         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79120
79121 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79124         implementation of getopt_long.  Problem reported by Alexander Taler in:
79125         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79126
79127 2004-10-15  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool: Untabify. Initialize supplied_libname.
79130         (func_usage): More homogenous output.
79131         (func_modules_transitive_closure, func_modules_to_filelist,
79132         func_emit_lib_Makefile_am): New functions.
79133         (func_import): New function, extracted from big case statement. Use
79134         func_get_license, func_modules_transitive_closure,
79135         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79136         opt_lgpl. Don't use test -a, as it's not portable.
79137         (func_create_testdir): Use func_modules_transitive_closure,
79138         func_modules_to_filelist, func_emit_lib_Makefile_am.
79139
79140 2004-10-15  Bruno Haible  <bruno@clisp.org>
79141
79142         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79143
79144 2004-10-15  Bruno Haible  <bruno@clisp.org>
79145
79146         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79147         the portions belonging to each module.
79148         Suggested by Derek Robert Price <derek@ximbiot.com>.
79149
79150 2004-10-12  Simon Josefsson  <jas@extundo.com>
79151
79152         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79153         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79154         to real functions.
79155
79156 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79157
79158         * modules/vsnprintf: New file.
79159
79160 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79161
79162         * m4/vsnprintf.m4: New file.
79163
79164 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79165
79166         * lib/vsnprintf.h: New file.
79167         * lib/vsnprintf.c: New file.
79168
79169 2004-10-11  Bruno Haible  <bruno@clisp.org>
79170
79171         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79172         vsnprintf.
79173
79174 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79177
79178 2004-10-07  Bruno Haible  <bruno@clisp.org>
79179
79180         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79181         fits into the provided buffer.
79182
79183 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * lib/diacrit.c, diacrit.h: Add GPL notice.
79186
79187         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79188         notice.
79189         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79190         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79191         This avoids a potential constant-folding bug.
79192
79193 2004-10-05  Bruno Haible  <bruno@clisp.org>
79194
79195         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79196         for the declaration of strsep.
79197
79198 2004-10-05  Bruno Haible  <bruno@clisp.org>
79199
79200         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79201
79202 2004-10-04  Simon Josefsson  <jas@extundo.com>
79203
79204         * modules/memmem: New file.
79205         * tests/test-memmem.c: New file.
79206         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79207
79208 2004-10-04  Simon Josefsson  <jas@extundo.com>
79209
79210         * m4/memmem.m4: New file.
79211
79212 2004-10-04  Simon Josefsson  <jas@extundo.com>
79213
79214         * lib/memmem.h: New file.
79215         * lib/memmem.c: New file, taken from glibc.
79216
79217 2004-10-04  Simon Josefsson  <jas@extundo.com>
79218
79219         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79220         '#ifdef USE_UNLOCKED_IO'.
79221
79222 2004-10-04  Simon Josefsson  <jas@extundo.com>
79223
79224         * config/srclist.txt: Add memmem from glibc.
79225
79226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79229
79230         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79231         modules/exclude, modules/getdate, modules/getline,
79232         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79233         modules/getusershell, modules/linebuffer, modules/md5,
79234         modules/mountlist, modules/posixtm, modules/readtokens,
79235         modules/readutmp, modules/regex, modules/sha1,
79236         modules/version-etc, modules/yesno:
79237         Remove dependency on unlocked-io.
79238
79239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79242
79243         * m4/unlocked-io.m4: Add copyright notice.
79244         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79245
79246 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79249         * lib/xmalloc.c (xmemdup): Likewise.
79250         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79251         XFREE): Remove these long-obsolescent macros.
79252         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79253         * lib/xstrdup.c: Remove.
79254
79255         * lib/regex.c (re_comp): Cast gettext return value to char *,
79256         Problem reported by Martin Neitzel via Mark D. Baushke.
79257
79258 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79261         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79262         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79263         regex.c, sha1.c, version-etc.c, yesno.c:
79264         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79265         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79266         the includer's responsibility.
79267
79268         Sync from coreutils.
79269
79270         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79271         points to the start of a string, as the C Standard says the
79272         resulting behavior is undefined.
79273
79274         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79275         simple -> simple_backups, numbered_existing ->
79276         numbered_existing_backups, numbered -> numbered_backups
79277         to avoid shadowing problems.  All uses changed.
79278         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79279         * lib/backupfile.c (check_extension, numbered_backup):
79280         Rename locals to avoid shadowing 'basename'.
79281         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79282         once.
79283
79284         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79285         * lib/.cvsignore: Add getopt.h.
79286
79287 2004-10-04  Bruno Haible  <bruno@clisp.org>
79288
79289         * modules/README: New file.
79290         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79291         not a module.
79292
79293 2004-10-02  Jim Meyering  <jim@meyering.net>
79294
79295         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79296
79297 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79298
79299         * modules/strsep: New file.
79300
79301 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79302
79303         * m4/strsep.m4: New file.
79304
79305 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79306
79307         * lib/strsep.h: New file.
79308         * lib/strsep.c: New file.
79309
79310 2004-10-01  Simon Josefsson  <jas@extundo.com>
79311
79312         * lib/snprintf.c (snprintf): Handle size==0.
79313
79314 2004-10-01  Simon Josefsson  <jas@extundo.com>
79315             Bruno Haible  <bruno@clisp.org>
79316
79317         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79318         (snprintf): Declare 'args'.
79319
79320 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * lib/snprintf.c: Remove comments as to why each header is needed.
79323
79324 2004-10-01  Bruno Haible  <bruno@clisp.org>
79325
79326         * MODULES.html.sh: Add strsep.
79327
79328 2004-09-30  Simon Josefsson  <jas@extundo.com>
79329
79330         * modules/snprintf: New file.
79331
79332 2004-09-30  Simon Josefsson  <jas@extundo.com>
79333
79334         * m4/snprintf.m4: New file.
79335
79336 2004-09-30  Simon Josefsson  <jas@extundo.com>
79337
79338         * lib/snprintf.h, lib/snprintf.c: New files.
79339
79340 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79341
79342         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79343         (hol_entry_help): Never translate an empty string.
79344         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79345         * lib/argp.h (OPTION_NO_TRANS): New option.
79346
79347 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * modules/argp (Maintainer): Replace Simon Josefsson
79350         by Sergey Poznyakoff.
79351
79352 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79355         changes merged back into glibc.
79356
79357 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79360
79361 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79362
79363         * lib/xvasprintf.c: Include xalloc.h.
79364         (xvasprintf): Use xalloc_die, not xmalloc_die.
79365
79366 2004-09-29  Bruno Haible  <bruno@clisp.org>
79367
79368         * modules/alloca-opt: New file, derived from modules/alloca.
79369         * modules/allocsa: Depend on alloca-opt instead of alloca.
79370         * modules/setenv: Likewise.
79371         * modules/vasnprintf: Likewise.
79372         * MODULES.html.sh: Add alloca-opt.
79373
79374 2004-09-28  Simon Josefsson  <jas@extundo.com>
79375
79376         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79377         LGPL, and to replace license template from GPL to LGPL.
79378
79379 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * modules/dummy: Change license to LGPL.
79382
79383 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79386
79387 2004-09-24  Simon Josefsson  <jas@extundo.com>
79388
79389         * modules/minmax (License): Change from GPL to LGPL.
79390
79391 2004-09-23  Simon Josefsson  <jas@extundo.com>
79392
79393         * gnulib-tool (--import): Typo.
79394
79395 2004-09-23  Simon Josefsson  <jas@extundo.com>
79396
79397         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79398
79399 2004-09-22  Bruno Haible  <bruno@clisp.org>
79400
79401         * modules/*: Add 'License' field.
79402         * gnulib-tool: Accept --extract-license option.
79403         (func_get_license): New function.
79404
79405 2004-09-21  Bruno Haible  <bruno@clisp.org>
79406
79407         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79408         Reported by Simon Josefsson.
79409
79410 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79413         gl_AC_TYPE_LONG_LONG.
79414
79415 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79418
79419 2004-09-18  Simon Josefsson  <jas@extundo.com>
79420         and  Paul Eggert  <eggert@cs.ucla.edu>
79421
79422         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79423         calls with autoreconf.  Define GL_LIB.
79424
79425 2004-09-14  Karl Berry  <karl@gnu.org>
79426
79427         * config/srclist.txt: unsync setenv.c, sigh.
79428
79429 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79432         Problem reported by Bruno Haible in:
79433         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79434
79435 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * config/srclist.txt: Comment out argp-pvh.c.
79438
79439 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79442         in case some system header has #define'd it.  Problem reported by
79443         Soeren D. Schulze in
79444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79445
79446 2004-09-09  Karl Berry  <karl@gnu.org>
79447
79448         * regex.[ch]: delete from the root.  These were supposed to be
79449                 synced with emacs cvs, but this has not happened for about
79450                 a year, and anyway nothing else uses emacs regex.[ch].
79451                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79452                 lib/regex[.ch] is untouched.
79453
79454 2004-09-09  Bruno Haible  <bruno@clisp.org>
79455
79456         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79457
79458 2004-09-09  Bruno Haible  <bruno@clisp.org>
79459
79460         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79461         modifications.
79462         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79463
79464 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79465
79466         * modules/xvasprintf: New file.
79467         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79468
79469 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79470
79471         * lib/xvasprintf.h: New file.
79472         * lib/xvasprintf.c: New file.
79473         * lib/xasprintf.c: New file.
79474
79475 2004-09-08  Bruno Haible  <bruno@clisp.org>
79476
79477         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79478
79479 2004-09-08  Bruno Haible  <bruno@clisp.org>
79480
79481         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79482         length is > INT_MAX.
79483         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79484         more.
79485
79486 2004-09-08  Bruno Haible  <bruno@clisp.org>
79487
79488         * lib/stdint_.h: New file, taken from GNU clisp.
79489
79490 2004-09-08  Bruno Haible  <bruno@clisp.org>
79491             Oskar Liljeblad  <oskar@osk.mine.nu>
79492
79493         * modules/stdint: New file.
79494         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79495
79496 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         Import from coreutils.
79499         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79500         strings on unbounded length.  alloca's performance benefits aren't
79501         that important here.
79502         (V_STRDUP): Remove.
79503         (parse_with_separator): New function, with most of the internals
79504         of the old parse_user_spec.  Allow user to omit both user and group,
79505         for compatibility with FreeBSD.
79506         Clone only the user name, not the entire spec.
79507         Do not set *uid, *gid unless entirely successful.
79508         Avoid memory leak in some failing cases.
79509         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79510         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79511         (parse_user_spec): Rewrite to use parse_with_separator.
79512
79513 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * modules/userspec: Don't depend on alloca.
79516
79517 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79520
79521 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79524         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79525         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79526
79527 2004-08-16  Simon Josefsson  <jas@extundo.com>
79528
79529         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79530         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79531         Add --dry-run for --import.
79532         Let user provided command line parameters override configure.ac
79533         settings.
79534
79535 2004-08-12  Simon Josefsson  <jas@extundo.com>
79536
79537         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79538         as discussed with Paul Eggert in threads rooted at
79539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79540         and
79541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79542         Before, the test was empty, and relied on ELIDE_CODE in source
79543         code.)
79544         (gl_PREREQ_GETOPT): New macro.
79545         (gl_GETOPT): Use them.
79546
79547 2004-08-12  Simon Josefsson  <jas@extundo.com>
79548
79549         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79550         * lib/getopt_.h: Renamed from getopt.h.
79551
79552 2004-08-12  Simon Josefsson  <jas@extundo.com>
79553
79554         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79555         Change default library name from libfoo to libgnu.
79556         Now, if you have a configure.ac that says:
79557                 gl_SOURCE_BASE(gl)
79558                 gl_M4_BASE(gl/m4)
79559                 gl_MODULES(error getopt etcetera)
79560                 gl_INIT
79561         you can import all you need by running:
79562                 ../gnulib/gnulib-tool --import
79563
79564         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79565         (Makefile.am): Rewrite, use logic from argz.
79566         (Include): Use <getopt.h> instead of "getopt.h".
79567
79568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79569
79570         * modules/argp (Files): Add m4/unlocked-io.m4.
79571         (Depends-on): Add extensions.
79572
79573 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79576         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79577         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79578         Check for program_invocation_name, program_invocation_short_name,
79579         flockfile, funlockfile, features.h, _getopt_long_only_r.
79580
79581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79584         its complicated substitute.
79585         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79586         and program_invocation_name.
79587         (__argp_basename) [!_LIBC]: Remove; the only use was
79588         replaced by its body.
79589         (__argp_short_program_name): Change condition from
79590         !defined __argp_short_program_name to
79591         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79592         to match argp-namefrob.h.
79593         (__argp_failure): Don't assume strerror_r returns char *.
79594         * lib/argp-parse.c (N_): Define unconditionally.
79595         (argp_default_options): Fill out initializers with 0 to avoid
79596         gcc warnings.
79597
79598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79601         getopt1.c.
79602
79603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         Merge from coreutils.
79606
79607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79608
79609         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79610         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79611
79612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         Merge from coreutils.
79615
79616         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79617         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79618         for Reliant Unix 5.43.
79619
79620         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79621         (union fooround): Use uintmax_t, not long int.
79622         The rest is a merge from libc:
79623         [defined _LIBC]: Include <shlib-compat.h>.
79624         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79625
79626         * lib/settime.c (settime): Recode to avoid warning with
79627         Sun Forte C 6U2.
79628
79629         * lib/strverscmp.c: Convert to UTF-8.
79630
79631 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79634         m4/uintmax_t.m4.
79635
79636 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * modules/xalloc-die: New file.
79639         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79640
79641         * modules/md5 (Files): Add m4/uint32_t.m4.
79642         * modules/sha1: Renamed from modules/sha.
79643         (Files):
79644         Rename lib/sha.h to lib/sha1.h.
79645         Rename lib/sha.c to lib/sha1.c.
79646         Rename m4/sha.m4 to m4/sha1.m4.
79647         (lib_SOURCES): Likewise.
79648         (configure.ac): Rename gl_SHA to gl_SHA1.
79649         (Include): sha.h -> sha1.h.
79650
79651 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79654         * m4/sha1.m4: Renamed from sha.m4.
79655         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79656
79657 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79658
79659         * lib/obstack.h (obstack_empty_p):
79660         Don't assume that chunk->contents is suitably aligned.
79661         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79662         Likewise. Problem reported by Benno in
79663         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79664
79665         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79666         readable.  This could be improved further but it'd take some work.
79667
79668 2004-08-08  Simon Josefsson  <jas@extundo.com>
79669
79670         * modules/xgethostname (Depends-on): Remove exit and error (not
79671         used).
79672
79673         * modules/getpass-gnu: Add getpass.h.
79674         (Depends-on): Add stdbool.
79675         * modules/getpass: Add getpass.h.
79676
79677 2004-08-08  Simon Josefsson  <jas@extundo.com>
79678
79679         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79680         Check getpass declaration.
79681
79682 2004-08-08  Simon Josefsson  <jas@extundo.com>
79683
79684         * lib/xgethostname.c: Don't include error.h (not used).
79685
79686         * lib/getpass.h: Add.
79687         * lib/getpass.c: Include getpass.h first.
79688
79689 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * lib/xalloc-die.c: New file.
79692         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79693         All uses removed.
79694         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79695         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79696         xalloc-die.c.
79697         (_, N_, xalloc_die): Move to xalloc-die.c.
79698         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79699         so that we needn't mess with xalloc_msg_memory_exhausted.
79700
79701         * lib/sha1.h: Renamed from sha.h.
79702         (SHA1_H): Renamed from _SHA_H.
79703         (sha1_ctx): Renamed from sha_ctx.
79704         (sha1_init_ctx): Renamed from sha_init_ctx.
79705         (sha1_process_block): Renamed from sha_process_block.
79706         (sha1_process_bytes): Renamed from sha_process_bytes.
79707         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79708         (sha1_read_ctx): Renamed from sha_read_ctx.
79709         (sha1_stream): Renamed from sha_stream.
79710         (sha1_buffer): Renamed from sha_buffer.
79711         * lib/sha1.c: Likewise; renamed from sha.c.
79712         Do not include <sys/types.h>.
79713         Include <stddef.h> rather than <stdlib.h>.
79714
79715 2004-08-08  Bruno Haible  <bruno@clisp.org>
79716
79717         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79718         FILESYSTEM_PREFIX_LEN.
79719         * lib/progreloc.c: Likewise.
79720         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79721
79722 2004-08-06  Simon Josefsson  <jas@extundo.com>
79723
79724         * modules/progname (Depends-on): Don't depend on stdbool.
79725
79726 2004-08-06  Simon Josefsson  <jas@extundo.com>
79727
79728         * modules/getsubopt: New file.
79729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79730         getsubopt.
79731
79732 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         More merge from coreutils.
79735
79736         * m4/utimens.m4, m4/utimecmp.m4: New files.
79737         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79738         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79739         prereq.m4, sha.m4: Import changes from coreutils.
79740
79741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         More merge from coreutils.
79744         * modules/raise, modules/readtokens0, modules/utimens:
79745         * modules/utimecmp, module/xnanosleep: New files.
79746         * modules/strftime: Add lib/strftime.h.
79747         Change include from <time.h> to "strftime.h".
79748         * modules/yesno: Add lib/yesno.h.
79749         * modules/backupfile: Remove lib/addext.c.
79750         * modules/euidaccess: Add stat-macros.h.
79751         * modules/canonicalize, modules/euidaccess,
79752         modules/filemode, modules/lchown, modules/makepath,
79753         modules/rmdir, modules/stat: Likewise.
79754
79755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         Merge from tar.
79758         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79759         SIZE_MAX is a valid preprocessor constant.
79760         (__argp_basename): Change from "#ifndef _LIBC"
79761         to "#ifndef __argp_short_program_name", so that
79762         we don't compile these functions for tar.
79763
79764         More merges from coreutils.
79765         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79766         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79767         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79768         * lib/addext.c: Remove; no longer needed.
79769         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79770         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79771         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79772         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79773         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79774         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79775         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79776         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79777         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79778         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79779         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79780         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79781         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79782         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79783         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79784         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79785         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79786         Import changes from coreutils.
79787
79788 2004-08-05  Simon Josefsson  <jas@extundo.com>
79789
79790         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79791
79792 2004-08-05  Simon Josefsson  <jas@extundo.com>
79793
79794         * m4/getsubopt.m4: New file.
79795
79796 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         Merge from coreutils.
79799
79800         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79801         * m4/getcwd-path-max.m4: New files.
79802
79803         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79804         FILESYSTEM_PREFIX_LEN ->
79805         FILE_SYSTEM_PREFIX_LEN.
79806         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79807         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79808         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79809         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79810
79811         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79812         prerequisite modules now handle the DOS stuff.
79813         Don't check for unistd.h.
79814
79815 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         Merge from coreutils.
79818
79819         * lib/.gdb-history: Remove; this doesn't belong here.
79820
79821         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79822         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79823         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79824         * lib/getcwd.c: New files.
79825
79826         * lib/dirname.h: Include <stdbool.h>.
79827         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79828         for consistency with POSIX terminology.  All uses changed.
79829         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79830         (strip_trailing_slashes): Use bool for booleans.
79831         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79832
79833         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79834         sometimes returns a positive errno value even when it succeeds.
79835         (print_errno_message) [!LIBC]: Fall back on strerror if
79836         __strerror_r fails.
79837
79838         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79839         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79840         (longest_relative_suffix): New function.
79841         (path_concat): Use it.  Assume first argument is not NULL.
79842         Port to DOS.  Omit redundant separators.
79843         Report an error instead of returning NULL.
79844         Use mempcpy instead of memcpy.
79845         (xpath_concat): Remove: not declared or used.
79846
79847         * lib/same.h: Include <stdbool.h>
79848         (same_name): Return bool, not int.
79849         * lib/same.c (same_name): Likewise.
79850         (errno): Don't declare; we assume C89 or better now.
79851
79852         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79853         if not already defined.
79854
79855         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79856         * lib/dup-safer.c (errno): Likewise.
79857
79858 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         Merge from coreutils.
79861         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79862         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79863         * modules/path-concat: Don't depend on strdup.
79864
79865 2004-08-03  Simon Josefsson  <jas@extundo.com>
79866
79867         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79868         * lib/progname.h: Don't include stdbool.h.
79869
79870 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79873         * MODULES.html.sh (func_all_modules): Remove fatal.
79874
79875 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79878
79879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79882         working.
79883
79884 2004-08-02  Simon Josefsson  <jas@extundo.com>
79885
79886         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79887         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79888         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79889
79890 2004-08-01  Simon Josefsson  <jas@extundo.com>
79891
79892         * lib/xgetdomainname.c: Include stdlib.h, for free().
79893
79894 2004-07-19  Bruno Haible  <bruno@clisp.org>
79895
79896         * MODULES.html.sh (func_all_modules): Add dummy.
79897
79898 2004-07-16  Simon Josefsson  <jas@extundo.com>
79899
79900         * modules/dummy: New file.
79901
79902 2004-07-16  Simon Josefsson  <jas@extundo.com>
79903
79904         * lib/dummy.c: New file.
79905
79906 2004-07-16  Bruno Haible  <bruno@clisp.org>
79907
79908         * lib/backupfile.h: Add extern "C" for C++.
79909         * lib/closeout.h: Likewise.
79910         * lib/copy-file.h: Likewise.
79911         * lib/findprog.h: Likewise.
79912         * lib/full-write.h: Likewise.
79913         * lib/pathname.h: Likewise.
79914         * lib/progname.h: Likewise.
79915         * lib/stpcpy.h: Likewise.
79916         * lib/stpncpy.h: Likewise.
79917         * lib/strcase.h: Likewise.
79918         * lib/strstr.h: Likewise.
79919         * lib/xalloc.h: Likewise.
79920
79921         * lib/mbswidth.h: Add extern "C" for C++.
79922         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79923
79924 2004-07-13  Robert Millan  <robertmh@gnu.org>
79925
79926         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79927
79928 2004-07-09  Simon Josefsson  <jas@extundo.com>
79929
79930         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79931         failed without this.)
79932
79933 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * modules/chown (Files): Add lib/fchown-stub.c, since
79936         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79937
79938 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * lib/fchown-stub.c: New file.
79941
79942 2004-06-24  Jim Meyering  <jim@meyering.net>
79943
79944         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79945
79946 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79947
79948         * modules/argz: Omit "#include".
79949
79950         * MODULES.html.sh (func_all_modules): Add calloc, to match
79951         2004-06-01 addition of calloc module.
79952
79953 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * m4/argz.m4: New file, which is autoupdated from libtool.
79956
79957 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79958
79959         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79960         libtool.
79961
79962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * config/srclist-update: Don't insist on "USA." before the
79965         close-comment, as libtool omits the period and puts the */ on a
79966         separate line.
79967         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79968         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79969
79970 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79971
79972         * modules/argz: New file.
79973         * MODULES.html.sh (func_all_modules): Add argz.
79974
79975 2004-06-12  Jim Meyering  <jim@meyering.net>
79976         and  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * modules/hash (Files): Add lib/xalloc.h.
79979         * modules/pipe (Depends-on): Add wait-process.
79980         * modules/stat (Depends-on): Add xalloc.
79981         * modules/userspec (Files): Add lib/userspec.h.
79982         * modules/xstrto
79983
79984         Upgrade from gettext-0.13.
79985         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79986         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79987         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79988
79989 2004-06-10  Jim Meyering  <jim@meyering.net>
79990
79991         * lib/calloc.c: New file.
79992
79993 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * lib/getdate.y (yylex): Allow space between sign and number.
79996         Problem reported by Dan Jacobson.
79997
79998 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         Merge from coreutils CVS.
80001
80002         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80003         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80004         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80005         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80006         xstrtol.m4: Fix copyright date and/or serial number.
80007
80008         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80009         See if we need an fchown replacement.
80010         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80011         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80012         and use the replacement function if we detect either defect.
80013
80014         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80015         gl_UTIMECMP.
80016
80017 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80018         and  Jim Meyering  <jim@meyering.net>
80019
80020         Merge from coreutils CVS.
80021
80022         * lib/stat-macros.h: New file, with contents from file-type.h
80023         and coreutils' system.h.
80024         * lib/file-type.c: Include "stat-macros.h".
80025         * lib/file-type.h (file_type): Move all macro definitions to new file,
80026         stat-macros.h.
80027
80028         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80029         Wrap old code with this conditional.
80030         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80031         function that does not dereference symlinks.
80032         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80033
80034         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80035         dependency problems.
80036         (xreadlink): Accept new arg SIZE, for efficiency.
80037         All decls and uses changed.
80038         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80039
80040         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80041         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80042
80043         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80044         sysexits.h.
80045
80046 2004-06-01  Jim Meyering  <jim@meyering.net>
80047
80048         * m4/calloc.m4: New file.
80049
80050 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80053         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80054         Also, fix a typo in a diagnostic.
80055
80056 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80059         or AC_FUNC_REALLOC.
80060
80061 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80064         macros to be defined.
80065         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80066         the allocator returns NULL because the requested size is zero.
80067
80068 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80071         var.  Add comment explaining why libc still defines it.  This
80072         merges the following patch from glibc:
80073         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80074
80075 2004-05-20  Andreas Schwab  <schwab@suse.de>
80076
80077         * m4/free.m4: Replace free if it not known to work, not the other
80078         way round.
80079
80080 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80083         present in glibc since revision 1.1 of this file.
80084         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80085         obstack_alignment_mask, obstack_alloc, obstack_base,
80086         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80087         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80088         obstack_grow0, obstack_init, obstack_int_grow,
80089         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80090         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80091         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80092         nonexistent functions.
80093
80094 2004-05-18  Karl Berry  <karl@gnu.org>
80095
80096         * config/srclist.txt: break link for vasnprintf.c.
80097
80098 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         Port obstack to the AS/400, where pointers are 16 bytes wide and
80101         you cannot cast an integer to a valid pointer.  This patch is
80102         currently waiting to be integrated into glibc; see
80103         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80104
80105         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80106         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80107         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80108         (struct obstack): temp member is now a union of a pointer and
80109         an integer, instead of an integer.  All integer uses changed.
80110         This does not affect the physical layout of struct obstack,
80111         except on hosts (like the AS/400) where the size or alignment of
80112         void * is greater than that of ptrdiff_t.
80113         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80114         __STDC__)]: Store temporary in pointer member of union, not
80115         integer member.
80116         * lib/obstack.c: Include <stddef.h>, for offsetof.
80117         (struct fooalign): Remove; it doesn't need a name.
80118         (union fooround): Change double to long double, and add void *.
80119         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80120         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80121         not a macro.  Hence the values are always int; so remove all
80122         casts-to-int in uses.
80123
80124 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80127         we can get this patch merged into glibc.
80128
80129 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80130             Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * m4/argp: Depend on alloca.
80133
80134 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80135             Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80138         freecoding.
80139
80140 2004-05-17  Bruno Haible  <bruno@clisp.org>
80141
80142         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80143         precision that consists of a '.' followed by an empty digit string.
80144         Patch by Tor Lillqvist <tml@iki.fi>.
80145
80146 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80147
80148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80149         for backward compatibility with older code.  We need our own
80150         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80151         it under some other name, and our alloca.h will define it.
80152
80153 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80154             Derek Price  <derek@ximbiot.com>
80155
80156         * lib/alloca.c: Include <alloca.h>, to get our interface.
80157         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80158         include <alloca.h> first.  Use C89 prototype for alloca; this
80159         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80160         Use #elif for simplicity, since we can assume C89 now.
80161         Don't try to source the system alloca.h since it will not be found
80162         and to prevent recursively including its replacement.
80163         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80164         * lib/regex.c: Likewise.
80165
80166 2004-05-16  Derek Price  <derek@ximbiot.com>
80167             Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         getline cleanup.  This changes the getndelim2 API: both order of
80170         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80171         no delimiter).
80172
80173         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80174         interface does that.
80175         (getline): Always use getdelim, so that we don't have two
80176         copies of this code.
80177         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80178         if available.
80179         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80180         (GETNDELIM2_MAXIMUM): New macro.
80181         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80182         instead of the old practice of delim2==0.  All callers changed.
80183         Return -1 on overflow, instead of returning junk.
80184         Do not set *linesize unless allocation succeeds.
80185         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80186         that we include sys/types.h.
80187         * lib/getnline.h: Likewise.
80188         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80189         (getndelim2): Reorder arguments.
80190         * lib/getnline.c (getnline, getndelim):
80191         Don't discard the NMAX argument.
80192         (getnline): Invoke getndelim, to avoid code duplication.
80193         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80194         of (size_t) -1 by callers of the getnline family.
80195
80196 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80199         Check for gettimeofday.
80200         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80201         Check for settimeofday, stime.
80202
80203 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * lib/nanosleep.c (suspended): Change its type from int to
80206         sig_atomic_t volatile.
80207         (first_call): Make it private to rpl_nanosleep, and have it
80208         be zero initially as that's a bit faster.
80209         (my_usleep): Round up fractional times instead of truncating them,
80210         as this is the usual meaning for 'sleep'.
80211
80212         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80213         doesn't work.
80214         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80215         (ENOSYS): Define if not defined.
80216         (settime): Fall back on stime if it exists and settimeofday fails.
80217         But don't bother with fallbacks if a method fails with errno == EPERM.
80218
80219 2004-05-11  Jim Meyering  <jim@meyering.net>
80220
80221         Prior to this change, the save_cwd caller required read access to the
80222         current directory on most systems (ones with the fchdir function).
80223
80224         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80225         fails, try write-only, and finally, resort to using xgetcwd.
80226
80227 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * lib/obstack.c, obstack.h: Import changes from libc.
80230
80231 2004-04-28  Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80234         also implicitly appends .exe to executables.
80235         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80236         accepts Windows pathnames.
80237         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80238         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80239         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80240         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80241         Reported by Derek Robert Price <derek@ximbiot.com>.
80242
80243 2004-04-21  Karl Berry  <karl@gnu.org>
80244
80245         * config/srclist.txt (localcharset.c): break sync.
80246
80247 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80248
80249         * m4/host-os.m4: Add a copyright notice.
80250
80251 2004-04-20  Jim Meyering  <jim@meyering.net>
80252
80253         Change UTILS_ to gl_ in AC_DEFINE'd names.
80254         Change utils_- and jm_-prefixed variables, too.
80255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80256         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80257         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80258
80259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80260         Don't emit trailing blanks.
80261         Also rename jm_-prefixed variables to have gl_ prefix.
80262
80263         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80264         Also rename jm_-prefixed variables to have gl_ prefix.
80265
80266         * m4/jm-macros.m4: Reflect the renamings.
80267         * m4/prereq.m4: Likewise.
80268
80269 2004-04-20  Jim Meyering  <jim@meyering.net>
80270
80271         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80272         memory.
80273
80274 2004-04-20  Jim Meyering  <jim@meyering.net>
80275             Bruno Haible  <bruno@clisp.org>
80276
80277         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80278         memory when realloc fails.
80279
80280 2004-04-19  Jim Meyering  <jim@meyering.net>
80281
80282         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80283         now that readutmp.c may call `free (0)'.
80284
80285 2004-04-19  Bruno Haible  <bruno@clisp.org>
80286
80287         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80288         * m4/inttypes_h.m4: Likewise.
80289         * m4/stdint_h.m4: Likewise.
80290         * m4/intmax_t.m4: Likewise.
80291         * m4/uintmax_t.m4: Likewise.
80292
80293 2004-04-18  Jim Meyering  <jim@meyering.net>
80294
80295         * m4/prereq.m4: Don't forbid jm_ prefix.
80296
80297         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80298         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80299         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80300         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80301         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80302         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80303         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80304         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80305         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80306         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80307         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80308         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80309         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80310         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80311         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80312         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80313         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80314         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80315         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80316
80317 2004-04-18  Jim Meyering  <jim@meyering.net>
80318
80319         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80320         failure, don't leak memory and do call END_UTMP_ENT.
80321
80322 2004-04-16  Jim Meyering  <jim@meyering.net>
80323
80324         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80325         coreutils' stat program.
80326         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80327
80328 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80329
80330         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80331         C89.
80332         (CHAR_BIT): Remove, since we assume C89.
80333         Include <stdint.h> if available, as per current Autoconf CVS advice.
80334
80335 2004-03-31  Jim Meyering  <jim@meyering.net>
80336
80337         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80338         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80339         * m4/xalloc.m4: Likewise.
80340
80341 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80342
80343         Merge from coreutils.
80344
80345         * m4/inttostr.m4: New file.
80346         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80347         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80348         Require gl_CLOCK_TIME.
80349         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80350
80351 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80352
80353         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80354         not bool, to be more consistent with Unix conventions.
80355         Suggested by Bruno Haible.
80356
80357         Merge from coreutils.
80358
80359         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80360         * lib/umaxtostr.c: New files.
80361
80362         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80363         the usual <time.h> dance.
80364         (get_date): Change signature to support fractional time stamps.
80365         All callers changed.
80366         * lib/getdate.y: Include "getdate.h" first, as we can now
80367         assume C89 and don't need to worry about 'const'.
80368         Similarly, include "unlocked-io.h" near start, not in middle.
80369         Include <limits.h>.
80370         (textint.value): Use long int rather than int.
80371         (textint.digits): Use size_t rather than int.
80372         (BILLION, LOG10_BILLION): New constants.
80373         (parser_control): New member rel_ns.  Members day_ordinal,
80374         time_zone, month, day, hour, minutes, rel_year, rel_month,
80375         rel_day, rel_hour, rel_minutes, rel_seconds
80376         are now long int, not int.  Member seconds is now struct timespec,
80377         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80378         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80379         not int.
80380         (%union.intval): Now long int, not int.
80381         New member timespec.
80382         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80383         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80384         (spec): Now is a timespec or an item list.
80385         (timespec, items): New nonterminals.
80386         (time, rel, relunit, number, get_date):
80387         Add support for fractional seconds.
80388         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80389         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80390         (to_hour): First arg is now long int, not int.
80391         (to_year): Returns long int, not int.
80392         Don't treat year -70 like 70.
80393         (tm_diff): Returns long int, not int.
80394         (lookup_word): Use bool instead of int when appropriate.
80395         (yylex): Use size_t for count, not int.
80396         Detect overflow when parsing large integer constants.
80397         Add support for fractions.
80398         (get_date): Make pointers 'const' if possible.
80399         Use more-portable code to detect integer overflow.
80400         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80401         Don't use ctime; it's not reliable if the year has >4 digits.
80402
80403         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80404         This is for compatibility with BSD.
80405
80406         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80407         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80408         From coreutils' system.h.
80409
80410         * lib/userspec.c: Don't include "posixver.h".
80411         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80412         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80413         compatible extension.  Simplify code by removing a boolean int
80414         that was always nonzero if a string was nonnull.
80415
80416 2004-03-30  Jim Meyering  <jim@meyering.net>
80417
80418         Merge from coreutils.
80419
80420         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80421         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80422         on some systems one must include <grp.h> before it.
80423         Reported by Christian Krackowizer.
80424
80425 2004-03-30  Jim Meyering  <jim@meyering.net>
80426
80427         Merge from coreutils.
80428
80429         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80430
80431         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80432         an empty input stream.
80433
80434         * lib/readtokens.c: Include <stdbool.h>.
80435         (readtoken): Use `size_t' rather than int/long.
80436         All callers adjusted.
80437         Use `bool' rather than `int' where appropriate.
80438         Use memset rather than an explicit loop.
80439         Use x2nrealloc rather than xrealloc.
80440         Allow the use of `\0' as a delimiter.
80441         (readtokens): Likewise.
80442         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80443
80444 2004-03-30  Jim Meyering  <jim@meyering.net>
80445
80446         * m4/realloc.m4: Remove file, since now it does no more than
80447         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80448         the `configure.ac' section of module/realloc.
80449         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80450
80451 2004-03-30  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80454         nonnull.
80455
80456 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80457
80458         Merge changes to getloadavg.c from coreutils and Emacs.
80459
80460         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80461         Define to an expression, not to the empty string.
80462         Include cloexec.h and xalloc.h.
80463         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80464         Use set_cloexec_flag rather than rolling our own.
80465         * lib/cloexec.c, lib/cloexec.h: New files.
80466
80467 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80468
80469         * m4/cloexec.m4: New file.
80470
80471 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80472
80473         * lib/getopt.h: Sync with libc CVS.
80474
80475 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80476             Bruno Haible  <bruno@clisp.org>
80477
80478         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80479         mbswidth.
80480
80481 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80482             Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/mbswidth.h: Include <wchar.h> only if
80485         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80486         <wchar.h>.
80487         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80488
80489 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80490
80491         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80492         Sync with libc CVS.
80493         * lib/getopt_int.h: New file, also synced from libc.
80494
80495 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80496
80497         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80498         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80499         Bring back getopt.c, getopt.h, getopt1.c.
80500
80501 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80502
80503         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80504         All uses changed.  Check for sa_sigaction member; this fixes
80505         a bug first reported by Jason Andrade in
80506         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80507
80508 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80509
80510         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80511         '#if' expressions.  Unlike the code it replaces, it does not
80512         depend on (defined _SC_PAGESIZE).  However, it does depend on
80513         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80514         first reported by Jason Andrade in
80515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80516
80517 2004-02-25  Simon Josefsson  <jas@extundo.com>
80518
80519         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80520
80521 2004-02-25  Simon Josefsson  <jas@extundo.com>
80522
80523         * lib/strdup.h: New file.
80524         * lib/strdup.c: Include it.
80525         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80526         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80527
80528 2004-02-23  Karl Berry  <karl@gnu.org>
80529
80530         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80531         (from fencepost.gnu.org:/gd/gnuorg).
80532
80533 2004-02-23  Karl Berry  <karl@gnu.org>
80534
80535         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80536         * config/srclist.txt: add maintain/standards documents.
80537
80538 2004-02-18  Bruno Haible  <bruno@clisp.org>
80539
80540         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80541         Reported by Derek Robert Price <derek@ximbiot.com>.
80542
80543 2004-02-16  Karl Berry  <karl@gnu.org>
80544
80545         * config/mkinstalldirs, install-sh: update from automake.
80546
80547 2004-02-06  Karl Berry  <karl@gnu.org>
80548
80549         * m4/po.m4: update from gettext 0.14.1.
80550
80551 2004-02-06  Karl Berry  <karl@gnu.org>
80552
80553         * lib/config.charset: update from gettext 0.14.1.
80554
80555 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80556
80557         Add comments and code, prompted by suggestions from Bruno Haible
80558         for sh-quote.
80559         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80560         describing the enum quoting_style values.
80561         * lib/quotearg.c (quotearg_alloc): New function.
80562         (quotearg_buffer_restyled): Treat lone { and } as special.
80563         Treat = as special.  Work around bug with older shells
80564         that "see" a '\' that is really the 2nd byte of a multibyte char.
80565         Quote empty string with shell_quoting_style.
80566
80567 2004-02-03  Bruno Haible  <bruno@clisp.org>
80568
80569         * m4/pipe.m4: New file, from GNU gettext.
80570
80571 2004-02-03  Bruno Haible  <bruno@clisp.org>
80572
80573         * lib/pipe.h: New file, from GNU gettext.
80574         * lib/pipe.c: New file, from GNU gettext.
80575
80576 2004-01-27  Bruno Haible  <bruno@clisp.org>
80577
80578         * m4/execute.m4: New file, from GNU gettext.
80579
80580 2004-01-27  Bruno Haible  <bruno@clisp.org>
80581
80582         * lib/execute.h: New file, from GNU gettext.
80583         * lib/execute.c: New file, from GNU gettext.
80584         * lib/w32spawn.h: New file, from GNU gettext.
80585
80586 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80587
80588         Merge from diffutils.
80589
80590         * lib/file-type.c (file_type): Add typed memory objects.
80591         * lib/file-type.h (S_TYPEISTMO): New macro.
80592
80593         * lib/c-stack.h (c_stack_action): Remove argv argument.
80594         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80595         (die): Don't calculate message unless segv_action returns.
80596         (get_stack_location, min_address_from_argv, max_address_from_argv,
80597         volatile stack_base, volatile_stack_size): Remove.
80598         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80599         that every segmentation violation is a stack overflow.  (Ouch!)
80600         See Debian bug 136249 (still outstanding) for more info about why
80601         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80602
80603 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80604
80605         Exit-status fix from coreutils.
80606
80607         Use exit_failure consistently in place of EXIT_FAILURE,
80608         so that program exit statuses are consistent on failure.
80609
80610         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80611         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80612         * lib/argmatch.h: Comment fix to match the above.
80613         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80614         Now a macro referring to exit_failure, instead of a separate
80615         variable.  Include "exitfail.h" to get it.
80616         * lib/xstrtol.h: Include "exitfail.h".
80617         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80618
80619         * lib/long-options.c (parse_long_options): Use prototype
80620         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80621         for clarity.
80622
80623 2004-01-21  Jim Meyering  <jim@meyering.net>
80624
80625         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80626         so as not to conflict with a different-sized __mktime_internal
80627         function in GNU libc.
80628         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80629         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80630
80631 2004-01-20  Karl Berry  <karl@gnu.org>
80632
80633         * config/config.guess: update from config.
80634
80635         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80636
80637 2004-01-20  Bruno Haible  <bruno@clisp.org>
80638
80639         Safer stack allocation.
80640         * lib/setenv.c: Include allocsa.h.
80641         (alloca): Remove fallback definition.
80642         (freea): Remove macro.
80643         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80644         instead of freea.
80645
80646 2004-01-20  Bruno Haible  <bruno@clisp.org>
80647
80648         * m4/eealloc.m4: New file, from GNU gettext.
80649
80650 2004-01-20  Bruno Haible  <bruno@clisp.org>
80651
80652         * m4/allocsa.m4: New file, from GNU gettext.
80653
80654 2004-01-20  Bruno Haible  <bruno@clisp.org>
80655
80656         * lib/xallocsa.h: New file, from GNU gettext.
80657         * lib/xallocsa.c: New file, from GNU gettext.
80658
80659 2004-01-20  Bruno Haible  <bruno@clisp.org>
80660
80661         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80662
80663 2004-01-20  Bruno Haible  <bruno@clisp.org>
80664
80665         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80666         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80667         specially.
80668
80669 2004-01-20  Bruno Haible  <bruno@clisp.org>
80670
80671         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80672         patch.
80673
80674 2004-01-20  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80677
80678 2004-01-20  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/eealloc.h: New file.
80681
80682 2004-01-20  Bruno Haible  <bruno@clisp.org>
80683
80684         * lib/binary-io.h: Avoid warnings on Cygwin.
80685
80686 2004-01-20  Bruno Haible  <bruno@clisp.org>
80687
80688         * lib/allocsa.h: New file, from GNU gettext.
80689         * lib/allocsa.c: New file, from GNU gettext.
80690
80691 2004-01-18  Karl Berry  <karl@gnu.org>
80692
80693         * doc/gpl.texi, doc/lgpl.texi: new files.
80694
80695 2004-01-18  Karl Berry  <karl@gnu.org>
80696
80697         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80698         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80699
80700 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80701
80702         Merge from coreutils.
80703
80704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80705         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80706         (gl_DEFAULT_POSIX2_VERSION): Move
80707         the documentation from 'configure' into 'config.hin',
80708         so that 'configure --help' isn't burdened by it and
80709         we don't have to worry about its formatting there.
80710         Reword the documentation so that it's more succinct
80711         and can be run together into a single paragraph.
80712         * m4/same.m4 (gl_SAME): Check for pathconf.
80713
80714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80715
80716         Merge from coreutils.
80717
80718         * lib/posixver.c: Include posixver.h.
80719
80720         * lib/same.c: Include <stdbool.h>, <limits.h>.
80721         (_POSIX_NAME_MAX): Define if not defined.
80722         (MIN): New macro.
80723         (same_name): If file names are silently truncated, report
80724         that the file names are the same if they are the same after
80725         the silent truncation.
80726
80727         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80728         conversion function.
80729         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80730         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80731         longer needed.
80732
80733 2004-01-15  Jim Meyering  <jim@meyering.net>
80734
80735         Merge from coreutils.
80736
80737         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80738         if no library is required.
80739         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80740         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80741         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80742         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80743         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80744         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80745         value, $ac_cv_search_crypt, if it's "none required".
80746         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80747         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80748         not gl_FUNC_GETLOADAVG.
80749         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80750         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80751
80752 2004-01-15  Jim Meyering  <jim@meyering.net>
80753
80754         Merge from coreutils.
80755
80756         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80757         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80758         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80759
80760         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80761         optional configure-time default.
80762
80763         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80764
80765         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80766
80767 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80768
80769         Merge from coreutils.
80770
80771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80772         value, $ac_cv_search_nanosleep, if it's "none required".
80773
80774 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80775
80776         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80777         with like-named macro in fnmatch.c.
80778         (EXT): Use an internal constant instead.
80779
80780         Merge fnmatch patches from glibc.
80781         * lib/fnmatch.c (mbsinit): Remove define.
80782         Add libc_hidden_ver (__fnmatch, fnmatch).
80783         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80784         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80785
80786 2004-01-14  Karl Berry  <karl@gnu.org>
80787
80788         * config/install-sh: update from automake.
80789
80790 2004-01-13  Karl Berry  <karl@gnu.org>
80791
80792         * config/install-sh: update from automake.
80793
80794 2004-01-09  Karl Berry  <karl@gnu.org>
80795
80796         * config/install-sh: update from automake.
80797
80798 2004-01-05  Karl Berry  <karl@gnu.org>
80799
80800         * config/config.{sub,guess}: update from config.
80801
80802 2003-12-31  Karl Berry  <karl@gnu.org>
80803
80804         * config/depcomp: update from automake.
80805
80806 2003-12-14  Karl Berry  <karl@gnu.org>
80807
80808         * lib/config.charset: update from gettext-runtime.
80809
80810 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80811
80812         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80813         Bug reported by Alfred M. Szmidt.
80814
80815 2003-12-03  Bruno Haible  <bruno@clisp.org>
80816
80817         * m4/gettext.m4: Upgrade from gettext-0.13.
80818         * m4/po.m4: Upgrade from gettext-0.13.
80819         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80820         * m4/intmax.m4: New file, from gettext-0.13.
80821         * m4/printf-posix.m4: New file, from gettext-0.13.
80822
80823 2003-11-29  Karl Berry  <karl@gnu.org>
80824
80825         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80826
80827 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80828             Bruno Haible  <bruno@clisp.org>
80829
80830         * lib/printf-parse.h: Don't include sys/types.h.
80831         (ARG_NONE): New macro.
80832         (char_directive): Change type of *arg_index fields to size_t.
80833         * lib/printf-parse.c: Don't include sys/types.h.
80834         (SSIZE_MAX): Remove macro.
80835         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80836         Remove unnecessary overflow check.
80837         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80838         fields.
80839
80840 2003-11-25  Bruno Haible  <bruno@clisp.org>
80841
80842         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80843
80844 2003-11-25  Bruno Haible  <bruno@clisp.org>
80845
80846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80847         gt_TYPE_SSIZE_T.
80848
80849 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80850
80851         * modules/alloca: Remove dependency on xalloc.
80852
80853 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80854
80855         * lib/alloca.c: Remove dependency on xalloc module.
80856         (xalloc_die): Remove.
80857         (memory_full) [!defined emacs]: New macro.
80858         [!defined emacs]: Don't include xalloc.h.
80859         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80860         address arithmetic overflows.  Change datatypes a bit to avoid
80861         unnecessary casts.
80862
80863 2003-11-22  Jim Meyering  <jim@meyering.net>
80864
80865         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80866         s/size/size_t/.
80867
80868 2003-11-21  Karl Berry  <karl@gnu.org>
80869
80870         * config/config.{sub,guess}: update from config.
80871
80872 2003-11-18  Karl Berry  <karl@gnu.org>
80873
80874         * config/config.{sub,guess}: update from config.
80875
80876         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80877
80878 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80879
80880         * README: Mention that S+T cannot overflow if S is the size of
80881         an existing object and T is sufficiently small.
80882
80883 2003-11-17  Jim Meyering  <jim@meyering.net>
80884
80885         On systems without utime and without a utimes function capable of
80886         dealing with a NULL struct utimbuf* argument, this utime replacement
80887         could -- in unusual circumstances -- leak a file descriptor.
80888         * lib/utime.c: Include <unistd.h> and <errno.h>.
80889         (utime_null): Be sure to close `fd' and to preserve errno.
80890         Reported by Geoff Collyer via Arnold Robbins.
80891
80892 2003-11-17  Bruno Haible  <bruno@clisp.org>
80893
80894         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80895         (Depends-on): Add xsize.
80896
80897 2003-11-17  Bruno Haible  <bruno@clisp.org>
80898
80899         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80900
80901 2003-11-17  Bruno Haible  <bruno@clisp.org>
80902
80903         * lib/vasnprintf.c (alloca): Remove fallback definition.
80904         (freea): Remove definition.
80905         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80906         Reported by Paul Eggert.
80907
80908 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80909             Bruno Haible  <bruno@clisp.org>
80910
80911         Protect against address arithmetic overflow.
80912         * lib/printf-args.h: Include stddef.h.
80913         (arguments): Change type of field 'count' to size_t.
80914         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80915         'unsigned int' where appropriate.
80916         * lib/printf-parse.h: Include sys/types.h.
80917         (char_directive): Change type of *arg_index fields to ssize_t.
80918         (char_directives): Change type of fields 'count', max_*_length to
80919         size_t.
80920         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80921         (SSIZE_MAX): Define fallback value.
80922         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80923         instead of 'int' where appropriate. Check a_allocated, d_allocated
80924         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80925         * lib/vasnprintf.c: Include xsize.h.
80926         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80927         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80928         overflow. Avoid wraparound when converting a width or precision from
80929         decimal to binary.
80930
80931 2003-11-16  Bruno Haible  <bruno@clisp.org>
80932
80933         Update from GNU gettext.
80934         * lib/printf-parse.c: Generalize to it can be compiled for wide
80935         strings.
80936         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80937         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80938         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80939         SNPRINTF): New macros.
80940         Don't include <alloca.h> if the file is used inside libintl.
80941         (local_wcslen): New function, for Solaris 2.5.1.
80942         (VASNPRINTF): Use it instead of wcslen.
80943
80944 2003-11-16  Bruno Haible  <bruno@clisp.org>
80945
80946         * lib/xsize.h (xmax): New function.
80947         (xsum, xsum3, xsum4): Declare as "pure" functions.
80948
80949 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80950
80951         * modules/xalloc (Files): Undo latest change, since xalloc.h
80952         no longer needs SIZE_MAX or PTRDIFF_MAX.
80953
80954 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80955
80956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80957         gl_PTRDIFF_MAX.
80958
80959 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80960
80961         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80962         "return", to pacify some unknown compiler.  Problem reported
80963         by Joerg Schilling.
80964
80965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80966
80967         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80968         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80969         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80970         heuristic is just as accurate as far as we know, and it removes a
80971         dependency on size_max.m4 and ptrdiff_max.m4.
80972
80973 2003-11-11  Bruno Haible  <bruno@clisp.org>
80974
80975         * modules/xsize (Files): Add m4/size_max.m4.
80976         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80977
80978 2003-11-11  Bruno Haible  <bruno@clisp.org>
80979
80980         * m4/size_max.m4: New file.
80981         * m4/ptrdiff_max.m4: New file.
80982         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80984         (gl_XALLOC): Invoke it.
80985
80986 2003-11-11  Bruno Haible  <bruno@clisp.org>
80987
80988         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80989         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80990         defined.
80991
80992 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80993
80994         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80995         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80996         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80997         From Bruno Haible.
80998         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80999         not (size_t) -1, since it's defined here.
81000
81001 2003-11-09  Karl Berry  <karl@gnu.org>
81002
81003         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81004
81005 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81006
81007         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81008         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81009         Reject sizes of exactly SIZE_MAX bytes.
81010         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81011         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81012
81013 2003-11-05  Bruno Haible  <bruno@clisp.org>
81014
81015         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81016         SIZE_MAX defined in <limits.h> on Solaris.
81017
81018 2003-11-04  Jim Meyering  <jim@meyering.net>
81019
81020         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81021         variable names, rather than @VAR@.
81022         * modules/poll: Likewise.
81023
81024 2003-11-04  Bruno Haible  <bruno@clisp.org>
81025
81026         * modules/xsize: New file.
81027         * modules/linebreak: Depend on xsize.
81028         * MODULES.html.sh (func_all_modules): Add xsize.
81029
81030 2003-11-04  Bruno Haible  <bruno@clisp.org>
81031
81032         * m4/xsize.m4: New file.
81033
81034 2003-11-04  Bruno Haible  <bruno@clisp.org>
81035
81036         * lib/xsize.h: New file.
81037         * lib/linebreak.c: Include xsize.h.
81038         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81039         argument for overflow.
81040         Suggested by Paul Eggert.
81041
81042 2003-11-03  Karl Berry  <karl@gnu.org>
81043
81044         * config/config.{guess,sub}: update from config.
81045
81046 2003-11-03  Jim Meyering  <jim@meyering.net>
81047
81048         * modules/userspec (lib_SOURCES): Add userspec.h.
81049         (Include): Add "userspec.h".
81050         Improve description.
81051
81052 2003-11-03  Jim Meyering  <jim@meyering.net>
81053
81054         * lib/userspec.c: Include "userspec.h".
81055         * lib/userspec.h: New file.
81056
81057 2003-11-03  Bruno Haible  <bruno@clisp.org>
81058
81059         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81060
81061 2003-11-03  Bruno Haible  <bruno@clisp.org>
81062
81063         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81064         available, to avoid (extremely rare) race condition.
81065         Suggested by Paul Eggert.
81066
81067 2003-11-02  Karl Berry  <karl@gnu.org>
81068
81069         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81070
81071 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81072
81073         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81074         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81075         (read_filesystem_list): Set and use me_type_malloced.
81076         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81077         whatever the type happens to be), for brevity and consistency.
81078         Check for size calculation overflow on Alphas running OSF/1.
81079
81080 2003-10-31  Jim Meyering  <jim@meyering.net>
81081
81082         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81083
81084         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81085
81086 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81087             Bruno Haible  <bruno@clisp.org>
81088
81089         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81090         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81091
81092 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81093
81094         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81095         netbsd*-gnu*.  Suggested by Robert Millan.
81096
81097 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81098
81099         * modules/group-member: Depend on stdbool.
81100
81101 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81102
81103         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81104
81105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81106
81107         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81108         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81109         after the 'gnu' in these cases.  This fixes some bugs in the
81110         previous change, and is based on suggestions by Robert Millan.
81111
81112 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81113
81114         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81115         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81116         no longer needed.
81117         * lib/quotearg.c (quotearg_n_options): Use it.
81118         * lib/group-member.c: Include <stdbool.h>.
81119         (free_group_info): Arg is now const *; don't free arg.
81120         (get_group_info): Now returns bool and accepts struct group_info *,
81121         rather than returning a malloc'ed struct group_info *.
81122         All uses changed.  Check for overflow in internal size calculation.
81123
81124         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81125         rather than xmalloc/xrealloc.
81126         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81127         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81128         conformance bug: the old code used a pointer after freeing the
81129         storage that it addressed.
81130         * lib/hash.c (hash_initialize): Simplify the code by using
81131         xalloc_oversized rather than doing it by hand.
81132         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81133         the buffer preserved.  Use free and xmalloc instead.
81134         * lib/quotearg.c (quotearg_n_options): Likewise.
81135         Use a simpler test for size overflow.  Don't use xalloc_oversized
81136         because unsigned int might be wider than size_t (!); this suggests
81137         that we should switch from unsigned int to size_t for slot numbers.
81138
81139 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81140
81141         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81142         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81143         NetBSD kernels.  Requested by Richard Stallman.
81144
81145 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81146
81147         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81148         to allocate the returned structure.  Do not allocate a subarray,
81149         as x2nrealloc will do that.
81150         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81151         instead of xnrealloc.
81152         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81153
81154 2003-10-27  Bruno Haible  <bruno@clisp.org>
81155
81156         * lib/stdbool_.h: Better support for BeOS.
81157
81158 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81159
81160         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81161         now uses inline.
81162
81163 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81164
81165         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81166         callers that want to do their own size-overflow checking.  Include
81167         <stdbool.h>, since xalloc_oversized returns bool.
81168         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81169         to use xalloc_oversized.
81170
81171         Add two functions x2realloc, x2nrealloc, for programs that grow
81172         arrays dynamically by doubling their sizes.
81173         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81174         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81175         New functions.
81176
81177         Port to C99 semantics for 'inline' of external functions.
81178         Bug reported by Bruno Haible.
81179         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81180         with the old contents of xnmalloc.
81181         (xnmalloc, xmalloc): Use it.
81182         (xnrealloc_inline): New static inline function,
81183         with the old contents of xnrealloc.
81184         (xnrealloc, xrealloc): Use it.
81185
81186         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81187         that.
81188
81189 2003-10-26  Karl Berry  <karl@gnu.org>
81190
81191         * config/srclist.txt (COPYING.DOC): no longer available from
81192         /gd/gnuorg; don't know where the ultimate source is.
81193
81194 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81195
81196         Fix several address-calculation bugs in the hash modules,
81197         plus some minor code cleanup.
81198
81199         * lib/hash.h: Include <stdbool.h>, for bool.
81200         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81201         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81202         hash_get_n_entries, hash_get_max_bucket_length,
81203         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81204         hash_rehash): Use size_t rather than unsigned.
81205         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81206         hash_get_n_buckets_used, hash_get_n_entries,
81207         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81208         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81209         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81210         Likewise.
81211         (SIZE_MAX): Define if not defined.
81212         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81213         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81214         hash_print):
81215         Use const * when possible.
81216         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81217         (check_tuning): Fix bug: if tuning parameters were very close to
81218         0 or 1, rounding errors could have caused subscript violations.
81219         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81220         (hash_initialize): Add 'fail:' label
81221         to free table and return NULL, and use it to simplify code.
81222         Use calloc rather than clearing the storage ourself.
81223         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81224         buffer size calculations.
81225         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81226         Include <stddef.h>, for size_t.
81227         * lib/hash-pjw.c (hash_pjw): Likewise.
81228         Switch to method described by Bruno Haible.
81229         Include <limits.h>, for CHAR_BIT.
81230         (SIZE_BITS): New macro.
81231
81232 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81233
81234         * m4/getline.m4 (AM_FUNC_GETLINE):
81235         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81236         hosts.  Problem reported by Derek Robert Price in
81237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81238         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81239         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81240
81241 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81242
81243         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81244         ceiling the allocation at NMAX bytes rather than silently
81245         discarding input bytes before NMAX is reached.  This makes
81246         a difference only if NMAX exceeds SIZE_MAX / 2.
81247
81248         * lib/obstack.c: Merge from glibc.
81249         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81250         Add libc_hidden_def (_obstack_newchunk).
81251         (_obstack_free) [! defined _LIBC]: Remove.
81252         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81253         a clone of the function body.
81254         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81255         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81256
81257         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81258         glibc.
81259         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81260         arg to memcpy.
81261
81262         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81263         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81264         Don't use lvalue casts, as GCC plans to remove support for them
81265         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81266         was also present in the non-GCC version, indicating that this
81267         code had always been buggy and had never been widely used.
81268         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81269         Use the fast variant of each macro, rather than copying the
81270         definiens of the fast variant; that way, we'll be more likely to
81271         catch future bugs in the fast variants.
81272
81273 2003-10-20  Bruno Haible  <bruno@clisp.org>
81274
81275         * modules/wait-process: New file.
81276         * MODULES.html.sh (func_all_modules): Add wait-process.
81277
81278 2003-10-20  Bruno Haible  <bruno@clisp.org>
81279
81280         * m4/wait-process.m4: New file.
81281
81282 2003-10-20  Bruno Haible  <bruno@clisp.org>
81283
81284         * lib/wait-process.h: New file, from GNU gettext.
81285         * lib/wait-process.c: New file, from GNU gettext.
81286
81287 2003-10-19  Jim Meyering  <jim@meyering.net>
81288
81289         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81290         HPUX 10.20.
81291
81292 2003-10-18  Karl Berry  <karl@gnu.org>
81293
81294         * config/config.guess: update from config.
81295
81296 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81297
81298         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81299         (getgroups): First arg is int, not size_t.
81300         Don't let 'free' mangle errno.
81301
81302 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81303
81304         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81305
81306 2003-10-16  Karl Berry  <karl@gnu.org>
81307
81308         * config/config.{guess,sub}: update from config.
81309
81310 2003-10-16  Jim Meyering  <jim@meyering.net>
81311
81312         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81313         memcpy.
81314
81315 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81316
81317         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81318         (SIZE_MAX): Remove.
81319         (new_exclude, add_exclude_file): Initial size no longer needs to
81320         be a power of 2.
81321         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81322         our own address arithmetic overflow checking.
81323
81324         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81325         (fnmatch): Do not alloca more than 2000 wide characters;
81326         instead, use malloc for large buffers.
81327         Check for address arithmetic overflow, and return -1
81328         with errno set to ENOMEM in that case.
81329         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81330         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81331         instead, return -1.  Check for address arithmetic overflow.
81332
81333 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81334
81335         Handle invalid suffixes and overflow independently, so that
81336         callers can treat them independently as needed.  Fix some bugs in
81337         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81338         suffix for a human-readable blocksize.  The major caller-visible
81339         change is the addition of a new
81340         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81341         that both overflow and suffix chars were found.
81342
81343         * lib/human.c (humblock): Don't check separately for invalid suffix
81344         char; that is xstrtoumax's job (now that its bug is fixed).
81345         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81346         INTMAX_MAX]: New macros.
81347         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81348         TYPE_MAXIMUM): New macros.
81349         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81350         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81351         if overflow occurs, as it's what __strtol does and it's more useful
81352         in practice.
81353         (__xstrtol): If __strtol reports some error other than ERANGE,
81354         reflect it to the caller as LONGINT_INVALID.  If it reports
81355         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81356         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81357         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81358         value.
81359         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81360         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81361         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81362         [defined UINTMAX_MAX]: New macros.
81363
81364 2003-10-14  Bruno Haible  <bruno@clisp.org>
81365
81366         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81367
81368 2003-10-14  Bruno Haible  <bruno@clisp.org>
81369
81370         * m4/sig_atomic_t: New file, from GNU gettext.
81371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81372
81373 2003-10-14  Bruno Haible  <bruno@clisp.org>
81374
81375         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81376         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81377         Also use volatile where needed.
81378
81379 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81380
81381         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81382         Change maintainer from Bruno Haible to 'all'.
81383
81384 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81385
81386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81387
81388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81389
81390         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81391         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81392         and define in terms of the other primitives.
81393         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81394         (SIZE_MAX): Define if not already defined.
81395         (array_size_overflow): New function.
81396         (xalloc_die): Abort instead of exiting if 'error' returns.
81397         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81398         (xmalloc, xrealloc): Use them.
81399         (xcalloc): Check for address arithmetic overflow.
81400         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81401         a bit faster than strcpy.
81402
81403 2003-10-10  Simon Josefsson  <jas@extundo.com>
81404
81405         * modules/argp (Depends-on): Add restrict and strcase.
81406
81407 2003-10-10  Simon Josefsson  <jas@extundo.com>
81408
81409         * m4/argp.m4: Add AC_C_INLINE.
81410
81411 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81412
81413         Merge getpass from libc, plus a few fixes.
81414
81415         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81416         Include <stdbool.h>.
81417         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81418         __fsetlocking to empty.
81419         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81420         do include <bits/libc-lock.h>.
81421         Do not include <fcntl.h>; not needed.
81422         [_LIBC]: Include <wchar.h>.
81423         (NOTCANCEL_MODE): New macro.
81424         (flockfile, funlockfile) [_LIBC]: New macros.
81425         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81426         [!_LIBC]: New macros.
81427         (call_fclose): New function.
81428         (getpass): Use it.  Save tty stream separately; this simplifies the
81429         code and makes it more reliable if stdin happens to equal stdout.
81430         Invoke __fsetlocking on tty.
81431         Handle thread cancellation if needed.
81432         Namespace cleanup (use __tcgetattr, __getline).
81433         Use bool for Booleans.
81434         [USE_IN_LIBIO]: Handle wide streams.
81435         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81436         stream might go where.
81437
81438         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81439         doesn't have to include <stdio.h> before us.
81440         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81441         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81442         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81443         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81444         if not declared, so that we can use getpass.c code from libc without
81445         rewriting it.
81446         (flockfile, ftrylockfile, funlockfile): New macros.
81447
81448 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81449
81450         * modules/getpass: Depend on stdbool.
81451
81452 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81453
81454         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81455
81456 2003-10-07  Karl Berry  <karl@gnu.org>
81457
81458         * config/config.{guess,sub}: update from config.
81459
81460 2003-10-06  Jim Meyering  <jim@meyering.net>
81461             Bruno Haible  <bruno@clisp.org>
81462
81463         This lets translators provide better translations for the
81464         "Written by ..." part of --version output.
81465         * lib/version-etc.h: Include stdarg.h.
81466         (version_etc_copyright): Declare as readonly.
81467         (version_etc): Make this function variadic with a NULL-terminated list
81468         of author name strings.
81469         (version_etc_va): New declaration.
81470         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81471         (version_etc_copyright): Declare as readonly.
81472         (version_etc_va): New function. Provide a different translatable string
81473         for each possible number of authors < 10. Abbreviate when there are 10
81474         authors or more.
81475         (version_etc): Make this function variadic. Call version_etc_va.
81476         Suggestion from Gary V. Vaughan.
81477
81478         * lib/long-options.h (parse_long_options): Change prototype: the
81479         authors string is moved to the end and becomes variadic.
81480         * lib/long-options.c: Include stdarg.h.
81481         (parse_long_options): Make this function variadic, too.
81482         Call version_etc_va, not version_etc.
81483
81484 2003-10-06  Bruno Haible  <bruno@clisp.org>
81485
81486         * modules/version-etc-2: Remove file.
81487         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81488
81489 2003-10-06  Bruno Haible  <bruno@clisp.org>
81490
81491         * modules/fatal-signal: New file.
81492         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81493
81494 2003-10-06  Bruno Haible  <bruno@clisp.org>
81495
81496         * m4/fatal-signal.m4: New file.
81497         * m4/signalblocking.m4: New file, from GNU gettext.
81498
81499 2003-10-06  Bruno Haible  <bruno@clisp.org>
81500
81501         * lib/version-etc-2.h: Remove file.
81502         * lib/version-etc-2.c: Remove file.
81503
81504 2003-10-06  Bruno Haible  <bruno@clisp.org>
81505
81506         * lib/fatal-signal.h: New file, from GNU gettext.
81507         * lib/fatal-signal.c: New file, from GNU gettext.
81508
81509 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81510
81511         * README: Rework advice for preventing empty .o files.
81512         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81513         not <sys/types.h>.
81514
81515 2003-10-04  Karl Berry  <karl@gnu.org>
81516
81517         * lib/argp*: update from libc.
81518
81519 2003-10-04  Karl Berry  <karl@gnu.org>
81520
81521         * config/config.{guess,sub}: update from config.
81522
81523 2003-10-02  Bruno Haible  <bruno@clisp.org>
81524
81525         * modules/lchown (Include): Add lchown.h.
81526         * modules/time_r (Include): Use "..." syntax.
81527         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81528
81529 2003-10-01  Simon Josefsson  <jas@extundo.com>
81530
81531         * MODULES.html.sh (func_all_modules): Move gethostname from section
81532         'based on' to section 'lacking' POSIX:2001.
81533
81534 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81535
81536         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81537         to output mode on the same stream.
81538
81539 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81540
81541         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81542         Fix arg typo in previous patch.
81543
81544 2003-09-28  Jim Meyering  <jim@meyering.net>
81545
81546         * lib/error.c: Correct cpp indentation.
81547
81548 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81549
81550         * modules/free: New file.
81551
81552 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81553
81554         * m4/free.m4: New file.
81555
81556 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81557
81558         * lib/minmax.h (MIN, MAX)
81559         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81560         Omit the special code that used __typeof__, since we worry that
81561         it could be more trouble than it's worth.  See:
81562         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81563         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81564
81565         * lib/free.c: New file.
81566
81567 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81568
81569         Trivial fixes to Makefile.am parts of module listings.
81570         * modules/strstr: Append strstr.h to lib_SOURCES.
81571         * modules/strcase: Likewise, for strcase.h.
81572
81573 2003-09-27  Karl Berry  <karl@gnu.org>
81574
81575         * config/mkinstalldirs: update from automake.
81576
81577 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81578
81579         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81580         (error_tail): Do not loop, reallocating temporary buffer, since
81581         the output cannot contain more wide characters than the input
81582         contains bytes, the size must be big enough already.  This avoids
81583         one potential size overflow calculation.  Check for size overflow
81584         when calculating temporary buffer size.  Free temporary buffer
81585         when done, if it was allocated with malloc; this plugs a memory
81586         leak.  Remove casts from void * to pointers, that are no longer
81587         needed now that we're assuming C89 or better.
81588
81589         Merge error changes from glibc.
81590
81591         * lib/error.c, error.h: Update copyright notice header to match glibc.
81592         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81593         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81594         Disable cancellation while printing error.
81595         * lib/error.h: Prepend __ to parameter names.
81596
81597 2003-09-26  Jim Meyering  <jim@meyering.net>
81598
81599         * lib/error.c (error_tail): Move some declarations
81600         into inner scope where the local variables are used.
81601
81602 2003-09-26  Bruno Haible  <bruno@clisp.org>
81603
81604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81605         stpncpy().
81606         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81607
81608 2003-09-26  Bruno Haible  <bruno@clisp.org>
81609
81610         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81611         (stpncpy): Define as alias for gnu_stpncpy.
81612         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81613
81614 2003-09-25  Simon Josefsson  <jas@extundo.com>
81615
81616         * lib/xgetdomainname.h: New file.
81617         * lib/xgetdomainname.c: New file.
81618
81619 2003-09-25  Simon Josefsson  <jas@extundo.com>
81620             Bruno Haible  <bruno@clisp.org>
81621
81622         * modules/getdomainname: New file.
81623         * modules/xgetdomainname: New file.
81624         * MODULES.html.sh (func_all_modules): Add getdomainname,
81625         xgetdomainname.
81626
81627 2003-09-25  Simon Josefsson  <jas@extundo.com>
81628             Bruno Haible  <bruno@clisp.org>
81629
81630         * m4/getdomainname.m4: New file.
81631
81632 2003-09-25  Simon Josefsson  <jas@extundo.com>
81633             Bruno Haible  <bruno@clisp.org>
81634
81635         * lib/getdomainname.h: New file.
81636         * lib/getdomainname.c: New file.
81637
81638 2003-09-25  Karl Berry  <karl@gnu.org>
81639
81640         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81641
81642 2003-09-25  Karl Berry  <karl@gnu.org>
81643
81644         * config/install-sh: update from automake.
81645
81646 2003-09-25  Bruno Haible  <bruno@clisp.org>
81647
81648         * modules/version-etc-2: New file, from modules/version-etc with
81649         modifications.
81650         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81651
81652 2003-09-25  Bruno Haible  <bruno@clisp.org>
81653
81654         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81655         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81656
81657 2003-09-24  Simon Josefsson  <jas@extundo.com>
81658
81659         * modules/xgethostname: Add xgethostname.h.
81660
81661 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81662
81663         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81664         the buffer associated with the argument.  Bug reported by
81665         Simon Josefsson.
81666
81667 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81668
81669         * README: Document assumptions that 'int' is at least 32 bits
81670         wide, that integer arithmetic is 2's complement without overflow,
81671         that there are no holes in integer values, that adding sizes of
81672         two nonoverlapping objects can't overflow, and that all-bits-zero
81673         yields scalar zero.  Fix spelling and capitalization typos.
81674
81675 2003-09-19  Karl Berry  <karl@gnu.org>
81676
81677         * lib/argp.h: update from libc.
81678
81679 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81680
81681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81682         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81683         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81684
81685 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81686
81687         * gnulib-tool: Use "test -h", not "test -L", for portability
81688         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81689         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81690         (sed_extract_prog): Issue s commands one-by-one, rather than
81691         using \| in one s command.
81692
81693 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81694
81695         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81696         input error, instead of returning NULL the next time we are called
81697         (and therefore losing track of errno).
81698
81699 2003-09-16  Bruno Haible  <bruno@clisp.org>
81700
81701         * gnulib-tool (func_create_testdir): Warn about duplicated
81702         dependencies.
81703
81704 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81705
81706         * modules/argmatch, modules/fatal, modules/obstack,
81707         modules/xalloc, modules/xgethostname: Sort dependencies by
81708         importance, not alphabetically.
81709
81710 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81711
81712         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81713         fails, so that the caller gets the proper errno.
81714
81715         * lib/readutmp.c (read_utmp): Likewise.
81716         Check for fstat error.  Close stream and free storage
81717         when failing.
81718
81719 2003-09-14  Karl Berry  <karl@gnu.org>
81720
81721         * config/srclist.txt (strdup.c): disable for c89 changes.
81722
81723 2003-09-14  Jim Meyering  <jim@meyering.net>
81724
81725         * lib/getloadavg.c: Correct cpp indentation.
81726         * lib/strdup.c: Likewise.
81727         * lib/vasnprintf.c: Likewise.
81728
81729 2003-09-14  Bruno Haible  <bruno@clisp.org>
81730
81731         * modules/fwriteerror: New file.
81732         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81733
81734 2003-09-14  Bruno Haible  <bruno@clisp.org>
81735
81736         * lib/fwriteerror.h: New file.
81737         * lib/fwriteerror.c: New file.
81738
81739 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81740
81741         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81742         modules/xgethostname, modules/xalloc: Depend on exit.
81743
81744 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81745
81746         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81747
81748         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81749         and AC_MINIX, too, so that their extensions are available.
81750
81751         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81752         This macro has been superseded by gl_BACKUPFILE.
81753
81754         More patches to assume C89 or better.
81755
81756         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81757
81758         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81759         unconditionally.
81760         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81761         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81762         Include <string.h>, <stdlib.h> unconditionally.
81763         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81764         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81765         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81766         headers or for string.h.
81767         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81768         or strtoul.
81769
81770         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81771         headers.
81772         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81773         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81774         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81775         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81777         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81778         memcpy, memset.
81779         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81780         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81781         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81782         strtol.
81783         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81784         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81786         strtoul.
81787
81788 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81789
81790         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81791         * lib/obstack.c [!defined _LIBC]: Likewise.
81792         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81793         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81794         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81795
81796         More changes to assume C89 or better.
81797
81798         * lib/error.c (error_tail): Assume vprintf.
81799
81800         * lib/argmatch.c (getenv): Remove decl.
81801         * lib/progreloc.c (get_full_program_name): Define via prototype.
81802         * lib/setenv.c (clearenv): Likewise.
81803         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81804         needed.
81805         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81806         (malloc, memcpy): Remove decls.
81807         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81808         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81809         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81810         (memcpy): Remove macro.
81811         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81812         (__P): Remove.  All uses removed.
81813         (PTR): Remove.  All uses changed to void *.
81814         (CHAR_BIT, NULL): Remove.
81815         (spaces, zeros, memset_space, memset_zero)
81816         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81817         Remove.
81818         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81819         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81820         Define with prototype.
81821         Remove now-unnecessary prototype decl.
81822         (extra_args_spec): Assume ANSI C.  All uses changed.
81823         (extra_args_spec_iso): Remove.
81824         (my_strftime, emacs_strftimeu): Define via prototype.
81825         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81826         unconditionally.
81827         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81828         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81829         (strtoul, strtol): Remove decls.
81830         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81831         LONG_MAX): Remove.
81832         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81833         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81834         (LOCALE_PARAM_PROTO): New macro.
81835         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81836         (INTERNAL (strtol), strtol): Define with a prototype.
81837         (PARAMS): Remove.  All uses removed.
81838         * lib/tempname.c: Include <string.h> unconditionally.
81839         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81840         * lib/xgethostname.c (main): Define with a prototype.
81841         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81842         Include <stdlib.h> unconditionally.
81843         (calloc, malloc, realloc, free): Remove decls.
81844         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81845         Include <stdlib.h> unconditionally.  Sort include file names.
81846         (strtod): Remove.
81847         (xstrtod): Define with a prototype.
81848         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81849         (strtol, strtoul): Remove decls.
81850
81851 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81852
81853         More patches to assume C89 or better.
81854         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81855         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81856         string.h, memchr, STDC_HEADERS.
81857
81858 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81859
81860         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81861         Include <stdlib.h>, <string.h> unconditionally.
81862         Remove now-unnecessary cast to char *.
81863         * lib/strnlen.c: Include <string.h> unconditionally.
81864         * lib/yesno.c (yesno): Define with a prototype.
81865
81866 2003-09-11  Bruno Haible  <bruno@clisp.org>
81867
81868         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81869
81870 2003-09-10  Jim Meyering  <jim@meyering.net>
81871
81872         * lib/error.c: Correct indentation of cpp directives.
81873
81874 2003-09-10  Bruno Haible  <bruno@clisp.org>
81875
81876         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81877         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81878         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81879         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81880         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81881         <stdlib.h> and <string.h> checks.
81882         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81883         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81884
81885 2003-09-10  Bruno Haible  <bruno@clisp.org>
81886
81887         * lib/strcspn.c: Include <string.h> unconditionally.
81888         * lib/strpbrk.c: Include <string.h> unconditionally.
81889         * lib/strstr.c: Include <string.h> unconditionally.
81890         * lib/unicodeio.c: Include <string.h> unconditionally.
81891         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81892         * lib/unsetenv.c: Likewise.
81893         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81894         * lib/yesno.c: Include <stdlib.h> unconditionally.
81895         (rpmatch): Add prototype.
81896
81897 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81898
81899         More patches to assume C89 or better.
81900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81901         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81902         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81903         or for string.h.
81904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81905         stdlib.h.
81906         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81907         C headers.
81908         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81909         string.h.
81910         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81911         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81912         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81913         or for string.h.
81914         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81915         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81916         C headers.
81917         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81918         memcpy.
81919         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81920         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81921         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81922         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81923         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81924         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81925         string.h, free.
81926         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81927         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81928         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81929         C headers, or for string.h.
81930         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81931         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81932         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81933         headers, memory.h, stdlib.h, string.h, strings.h.
81934         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81935         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81936         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81937         strchr.
81938         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81939         headers, memory.h, string.h.
81940         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81941         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81942         free.
81943         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81944         headers.
81945         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81946         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81947         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81948         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81949         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81950
81951 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81952
81953         More K&R removal.
81954
81955         * lib/acosl.c (main): Use a prototype.
81956         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81957         tanl.c: Likewise.
81958
81959         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81960
81961         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81962         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81963         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81964         with a prototype.
81965         * lib/getopt.c (const): Remove macro.
81966         Include <string.h> unconditionally.
81967         (my_index): Remove; all uses changed to strchr.
81968         (strlen): Remove decl.
81969         (exchange): Remove forward decl; no longer needed.
81970         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81971         Define with prototype.
81972         * lib/getopt1.c (const): Remove macro.
81973         (getopt_long, getopt_long_only, main): Define with prototype.
81974
81975         * lib/getugroups.c: Include <string.h> unconditionally.
81976
81977         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81978         (getusershell, setusershell, endusershell, readname, main):
81979         Define with prototypes.
81980
81981         * lib/group-member.c: Include group-member.h first.
81982         Include <stdlib.h> unconditionally.
81983
81984         * lib/hard-locale.c: Include hard-locale.h first.
81985         Include <stdlib.h>, <string.h> unconditionally.
81986
81987         * lib/hash.c (free, malloc): Remove decls.
81988         Include <stdlib.h> unconditionally.
81989
81990         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81991         (getenv): Do not declare.
81992
81993         * lib/idcache.c: Include <string.h> unconditionally.
81994
81995         * lib/long-options.c: Include long-options.h first, to test interface.
81996         Include <stdlib.h> unconditionally.
81997
81998         * lib/makepath.c: Include makepath.h first, to test interface.
81999         Include <stdlib.h> and <string.h> unconditionally.
82000
82001         * lib/linebuffer.c: Include <stdlib.h>.
82002         (free): Remove decl.
82003
82004         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82005         stddef.h. rpl_malloc returns void *, not char *.
82006         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82007         prototype.
82008
82009         * lib/md5.h: Include <limits.h> unconditionally.
82010         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82011         (__P): Remove; all uses removed.
82012         * lib/md5.c: Include "md5.h" first.
82013         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82014         md5_buffer, md5_process_bytes, md5_process_block):
82015         Define with prototypes.
82016         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82017         * lib/sha.c: Include "sha.h" first.
82018         Include <stdlib.h>, <string.h> unconditionally.
82019
82020         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82021         * lib/memcmp.c (__ptr_t): Likewise.
82022         * lib/memrchr.c (__ptr_t): Likewise.
82023         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82024         Include <string.h> unconditionally.
82025         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82026         * lib/memchr.c: Include <stdlib.h> unconditionally.
82027         * lib/memchr.c (LONG_MAX): Remove.
82028         * lib/memrchr.c (LONG_MAX): Likewise.
82029         * lib/memchr.c (__memchr): Define via a prototype.
82030         * lib/memrchr.c (__memrchr): Likewise.
82031         * lib/memcmp.c (__P): Remove, and remove all uses.
82032         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82033         Remove forward decls; no longer needed.
82034         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82035         Use types required by C89 in prototype.
82036
82037         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82038         * lib/savedir.c: Likewise.
82039         * lib/mkdir.c (free): Remove decl.
82040         * lib/rmdir.c (rmdir): Define with a prototype.
82041         * lib/savedir.c: Include savedir.h first, to test interface.
82042
82043         * lib/mktime.c (STDC_HEADERS): Remove.
82044         Include <stdlib.h>, <string.h> unconditionally.
82045
82046         * lib/modechange.c: Include <stdlib.h> unconditionally.
82047         (malloc): Remove decl.
82048
82049         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82050         (free): Remove decl.
82051
82052         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82053         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82054         (This type really should be intptr_t, but that's a C99ism.)
82055         (_obstack_memcpy): Remove: all uses changed to memcpy.
82056         Include <string.h> unconditionally.
82057         (struct obstack): Assume __STDC__ for types of members
82058         chunkfun, freefun, extra_arg.
82059         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82060         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82061         obstack_begin, obstack_specify_allocation,
82062         obstack_specify_allocation_with_arg, obstack_chunkfun,
82063         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82064         Remove unprototyped decls and the macros that use them.
82065         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82066         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82067         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82068         (defined __STDC__ && __STDC__)]:
82069         Remove nonprototyped code.
82070         Include <stdlib.h> unconditionally.
82071         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82072         _obstack_allocated_p, _obstack_free, obstack_free,
82073         _obstack_memory_used, print_and_abort):
82074         Define using prototypes.
82075         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82076         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82077         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82078         obstack_next_free, obstack_object_size, obstack_room) [0]:
82079         Remove unused, unprototyped code.
82080
82081         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82082
82083         * lib/physmem.c (physmem_total, physmem_available, main): Define
82084         with prototypes.
82085
82086         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82087         (main): Define with a prototype.
82088
82089         * lib/posixver.c (getenv): Remove decl.
82090
82091         * lib/putenv.c (malloc): Returns void *, not char *.
82092         Include <string.h> unconditionally.
82093         (strchr, memcpy, NULL): Do not define.
82094
82095         * lib/readtokens.c: Include readtokens.h first, to test interface.
82096         Include <stdlib.h>, <string.h> unconditionally.
82097         (init_tokenbuffer): Define with a prototype.
82098
82099         * lib/regex.c (PARAMS): Remove.  All uses removed.
82100         All uses of _RE_ARGS removed, too.
82101         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82102         unconditionally.
82103         (bzero): Assume memset exists.
82104         (memcmp, memcpy, NULL): Remove.
82105         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82106         char, or assignments to local vars of type signed char.
82107         (init_syntax_once, PREFIX(extract_number_and_incr),
82108         PREFIX(print_partial_compiled_pattern),
82109         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82110         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82111         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82112         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82113         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82114         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82115         wcs_compile_range, byte_compile_range, truncate_wchar,
82116         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82117         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82118         count_mbs_length, wcs_re_match_2_internal,
82119         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82120         PREFIX(alt_match_null_string_p),
82121         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82122         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82123         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82124         now-unnecessary declaration, if any.
82125         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82126         regcomp, regexec):
82127         Remove now-unnecessary casts among pointer types.
82128         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82129
82130         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82131         (free): Remove decl.
82132
82133         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82134
82135         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82136         (free): Remove decl.
82137
82138         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82139         * lib/xgetcwd.c: Likewise.
82140
82141         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82142         (free): Remove decl.
82143
82144         * lib/strchrnul.c (strchrnul): Define with a prototype.
82145         Fix bug: c_in was not converted to char before searching.
82146
82147         The following changes are not K&R related:
82148
82149         * lib/group-member.h: Include <sys/types.h>, so that this file is
82150         self-contained.
82151         * lib/makepath.h: Likewise.
82152
82153         * lib/getusershell.c (readname, default_index, line_size, readname):
82154         Use size_t, not int, for sizes.
82155         (readname): If the size overflows, report an error instead of
82156         looping forever.
82157
82158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82159
82160         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82161         libc.
82162
82163 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82164
82165         * README: New section: portability guidelines.
82166
82167 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82168
82169         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82170         C89 spec.
82171
82172 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82173
82174         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82175
82176 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82177
82178         Assume C89 or better; remove K&R cruft.
82179         A few of these changes were first proposed by Derek Robert Price
82180         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82181
82182         * lib/addext.c: Include <string.h> unconditionally.
82183         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82184         Don't declare getenv or malloc.
82185
82186         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82187         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82188         (NULL): Remove.
82189         (find_stack_direction, alloca): Use prototypes.
82190
82191         * lib/atexit.c (atexit): Define using a prototype.
82192
82193         * lib/basename.c, dirname.c, stripslash.c:
82194         Include <string.h> unconditionally.
82195
82196         * lib/bcopy.c: Include <stddef.h>.
82197         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82198
82199         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82200
82201         * lib/error.h (error, error_at_line, error_print_progname)
82202         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82203         * lib/error.c: Include error.h first, to check interface.
82204         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82205         (VA_START): Remove; all uses changeed to va_start.
82206         (exit, strerror): Remove decls.
82207         (error_print_progname): Prototype uncondionally.
82208         Don't include <errno.h>; no longer needed.
82209         (private_strerror): Remove.
82210         (error_tail): Always define.
82211         (error, error_at_line): Assume C89 or better; always use prototypes.
82212         * lib/fatal.c: Include "fatal.h" first, to test interface.
82213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82214         (VA_START): Remove; all uses changed to va_start.
82215         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82216         this case.
82217         (exit): Remove decl.
82218         (fatal): Prototype unconditionally.  Assume va_start works.
82219         Abort at end, to pacify gcc.
82220
82221         * lib/euidaccess.c (main): Define with a prototype.
82222
82223         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82224
82225         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82226
82227         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82228         prototypes.
82229         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82230         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82231         (getenv): Remove decl.
82232         (fnmatch): Define using a prototype.
82233         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82234         (FCT): Define using a prototype.
82235
82236         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82237
82238         * lib/gethostname.c: Include <stddef.h>.
82239         (gethostname): Define with prototype.  Length is size_t, not int.
82240
82241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82242
82243         Assume C89 or better; remove K&R cruft.
82244         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82245         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82246         string.h, getenv, malloc.
82247         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82248         headers.
82249         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82250         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82251         do not check for strerror.
82252         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82253         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82254         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82255         do not check for doprnt or vprintf.
82256         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82257         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82258
82259 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82260
82261         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82262         getversion.c should have been removed then, but was accidentally
82263         preserved.
82264
82265         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82266         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82267
82268 2003-09-08  Karl Berry  <karl@gnu.org>
82269
82270         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82271                 config, forget about prep.
82272
82273         * config/depcomp, missing: update from automake.
82274
82275 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82276
82277         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82278         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82279
82280 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82281
82282         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82283         copy_tm_result.  Bug reported by Simon Josefsson in
82284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82285
82286 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82287
82288         * m4/time_r.m4: New file.
82289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82290         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82291         is. Check for timegm declaration.
82292         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82293         Do not check for gmtime_r.
82294         Replace mktime if __mktime_internal does not exist and if mktime
82295         hasn't been replaced already.
82296
82297 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82298
82299         * lib/time_r.c, lib/time_r.h: New files.
82300
82301         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82302         __localtime_r.
82303         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82304         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82305
82306         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82307         __gmtime_r.
82308         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82309         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82310         Include <time_r.h>.
82311
82312         * lib/timegm.c: Switch to glibc implementation, with the following
82313         changes:
82314         [defined HAVE_CONFIG_H]: Include <config.h>.
82315         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82316         (__mktime_internal) [!defined _LIBC]: New decl.
82317         (__gmtime_r) [!defined _LIBC]: New macro and function.
82318         (timegm): Use a prototype, since gnulib assumes C89.
82319         Do not bother declaring tmp to be const, as it's not really usefu.
82320         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82321         (timegm): Declare only if HAVE_DECL_TIMEGM.
82322
82323 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82324
82325         * MODULES.html.sh (func_all_modules): Add time_r.
82326         * modules/time_r: New file.
82327         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82328         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82329
82330 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82331
82332         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82333         Bug reported by Lute Kamstra in
82334         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82335
82336         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82337         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82338         course with correspondingly smaller numbers for tomorrow and
82339         yesterday.  From Tadayoshi Funaba.  Originally installed into
82340         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82341         coreutils merge?).
82342
82343 2003-08-31  Simon Josefsson  <jas@extundo.com>
82344
82345         * modules/timegm: New file.
82346         * MODULES.html.sh (func_all_modules): Add timegm.
82347
82348 2003-08-31  Simon Josefsson  <jas@extundo.com>
82349
82350         * m4/timegm.m4: New file.
82351
82352 2003-08-31  Simon Josefsson  <jas@extundo.com>
82353
82354         * lib/timegm.h: New file.
82355         * lib/timegm.c: New file.  Based on
82356         wget-1.8.2/src/http.c:mktime_from_utc.
82357
82358 2003-08-31  Karl Berry  <karl@gnu.org>
82359
82360         * lib/argp.h: update from libc.
82361
82362 2003-08-28  Bruno Haible  <bruno@clisp.org>
82363
82364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82365         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82366         followed by '#define fnmatch fnmatch_posix' gives an error.
82367
82368 2003-08-28  Bruno Haible  <bruno@clisp.org>
82369
82370         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82371         warning on QNX, which defines O_BINARY to 000000.
82372
82373 2003-08-27  Jim Meyering  <jim@meyering.net>
82374
82375         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82376         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82377         would fail after 32.  Reported by Danny Levinson.  Details here:
82378         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82379
82380 2003-08-24  Bruno Haible  <bruno@clisp.org>
82381
82382         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82383         MSVC7 <stdio.h> is included later.
82384
82385 2003-08-22  Simon Josefsson  <jas@extundo.com>
82386
82387         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82388
82389 2003-08-20  Karl Berry  <karl@gnu.org>
82390
82391         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82392
82393 2003-08-20  Bruno Haible  <bruno@clisp.org>
82394
82395         * modules/progname: New file.
82396         * MODULES.html.sh (func_all_modules): Add progname.
82397
82398 2003-08-20  Bruno Haible  <bruno@clisp.org>
82399
82400         * lib/progname.h: New file, from GNU gettext.
82401         * lib/progname.c: New file, from GNU gettext.
82402         * lib/progreloc.c: New file, from GNU gettext.
82403
82404 2003-08-19  Jim Meyering  <jim@meyering.net>
82405
82406         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82407         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82408
82409 2003-08-19  Bruno Haible  <bruno@clisp.org>
82410
82411         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82412         more.
82413
82414 2003-08-19  Bruno Haible  <bruno@clisp.org>
82415
82416         * lib/xstrdup.c: Assume <string.h> exists.
82417
82418 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82419
82420         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82421         in makefile rules.
82422
82423 2003-08-18  Jim Meyering  <jim@meyering.net>
82424
82425         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82426         * m4/lib-ld.m4: Likewise.
82427
82428 2003-08-18  Jim Meyering  <jim@meyering.net>
82429
82430         * lib/setenv.h: Indent nested cpp directive.
82431         * lib/vasnprintf.c: Remove trailing blanks.
82432
82433 2003-08-17  Simon Josefsson  <jas@extundo.com>
82434
82435         * modules/xstrndup: New file.
82436         * MODULES.html.sh (func_all_modules): Add xstrndup.
82437
82438 2003-08-17  Simon Josefsson  <jas@extundo.com>
82439
82440         * modules/argp: Fix autoconf macro name. Add more dependencies.
82441
82442 2003-08-17  Simon Josefsson  <jas@extundo.com>
82443
82444         * m4/xstrndup.m4: New file.
82445
82446 2003-08-17  Simon Josefsson  <jas@extundo.com>
82447
82448         * m4/argp.m4: New file.
82449
82450 2003-08-17  Simon Josefsson  <jas@extundo.com>
82451             Bruno Haible  <bruno@clisp.org>
82452
82453         * lib/xstrndup.h: New file.
82454         * lib/xstrndup.c: New file.
82455
82456 2003-08-17  Bruno Haible  <bruno@clisp.org>
82457
82458         * modules/strndup (Files, Include): Add lib/strndup.h.
82459
82460 2003-08-17  Bruno Haible  <bruno@clisp.org>
82461
82462         * modules/euidaccess (Files): Add lib/euidaccess.h.
82463
82464 2003-08-17  Bruno Haible  <bruno@clisp.org>
82465
82466         * lib/strndup.h: New file.
82467
82468 2003-08-17  Bruno Haible  <bruno@clisp.org>
82469
82470         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82471         like AC_GNU_SOURCE.
82472         * modules/extensions (configure.ac): Comment out the invocation of
82473         gl_USE_SYSTEM_EXTENSIONS.
82474
82475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82476
82477         Merges from coreutils, etc.
82478         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82479         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82480         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82481         fixing a typo.
82482         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82483         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82484
82485 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82486
82487         Document merge from coreutils.
82488         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82489         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82490         * modules/utime: Add m4/utimes-null.m4.
82491
82492 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82493
82494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82495         space, undoing this 2003-08-12 change:
82496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82497
82498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82499
82500         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82501         strtoul.c from libc, undoing this 2003-08-12 change:
82502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82503
82504 2003-08-16  Jim Meyering  <jim@meyering.net>
82505
82506         Merges from coreutils.
82507         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82508         prefix.  Adjust cache variables similarly.  Create 500 rather than
82509         just 300 files, to exercise bug on Darwin6.5, too.
82510         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82511         $missing_dir.
82512         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82513         AM_SYS_POSIX_TERMIOS.
82514         Reported by mkc@mathdogs.com.
82515         Also change use of $am_cv_sys_posix_termios
82516         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82517         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82518         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82519         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82520         in /proc/mounts until it finds one with matching device number.  This
82521         is unnecessary when the FILE argument *is* a mount point.  No stat call
82522         is necessary in that case.  So, disable the statvfs-testing code on
82523         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82524         as RedHat bug# 84846.
82525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82526         to 1MB, so as not to render systems with no stack size limit (e.g.,
82527         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82528         Include <unistd.h>.  On some systems,
82529         it is required for the definition of _SC_PAGESIZE.
82530
82531 2003-08-16  Jim Meyering  <jim@meyering.net>
82532
82533         Merge from coreutils.
82534         * lib/xstrtoimax.c: #else #if -> #elif.
82535         * lib/xstrtoumax.c: Likewise.
82536
82537 2003-08-16  Jim Meyering  <jim@meyering.net>
82538
82539         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82540         * m4/utimes.m4: Removed.
82541         * m4/utimes-null.m4: Renamed from utimes.m4.
82542
82543         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82544         to 1MB, so as not to render systems with no stack size limit (e.g.,
82545         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82546         Include <unistd.h>.  On some systems,
82547         it is required for the definition of _SC_PAGESIZE.
82548
82549 2003-08-16  Jim Meyering  <jim@meyering.net>
82550         and Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         Merges from coreutils, etc.
82553
82554         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82555         using the latest version from cvs.  This avoids problems with #line
82556         directives using a vendor (Sun) compiler.
82557         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82558         Don't set GETGROUPS_LIB here; now it's
82559         done via getgroups.m4's wrapper function.
82560         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82561         rather than just in sh-util/configure.in, so that the
82562         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82563         same.
82564         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82565         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82566         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82567         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82568         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82569         Remove code that is now done by the newly-required macros.
82570         Append $(EXEEXT) to DF_PROG.
82571         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82572         Do not invoke or require the following here,
82573         since prereq.m4 or some gnulib .m4 now does this for us:
82574         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82575         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82576         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82577         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82578         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82579         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82580         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82581         AC_FUNC_OBSTACK.
82582         Do not replace the following functions, as this is now the job
82583         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82584         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82585         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82586         atexit getpass, strdup, getpagesize.
82587         Replace 'raise'.
82588         Do not check for the following functions, as this is now the job
82589         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82590         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82591         setregid.
82592         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82593         Check for sys/sysctl.h.
82594         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82595         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82596         of checking for ssize_t ourselves.
82597
82598         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82599         Require every macro that gnulib/modules/* suggests for us.
82600         (jm_PREREQ_ADDEXT): New macro.
82601         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82602         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82603
82604         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82605         (gl_PHYSMEM): Use it.
82606         Also check for `table' function.
82607         Check for new headers and functions.
82608         Add check for sys/sysmp.h.
82609         With suggestions from Kaveh Ghazi.
82610         Ignore headers that are present but cannot be compiled.  This
82611         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82612         C 5.4.
82613
82614 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82615
82616         Document merge from coreutils.
82617         * modules/userspec: Depend on posixver.
82618         * modules/strftime: Depend on tzset.
82619
82620 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82621
82622         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82623         rather than tab, after '#' in shell-script copyright notices.
82624         Suggested by Bruno Haible.
82625
82626 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82627
82628         * config/srclist-update: Use three spaces, rather than tab, after '#'
82629         in shell-script copyright notices.  Suggested by Bruno Haible.
82630         Remove unnecessary parenthesization in regular expression.
82631
82632 2003-08-15  Jim Meyering  <jim@meyering.net>
82633
82634         Merge from coreutils.
82635         * lib/xgethostname.c: Include <stdlib.h>.
82636         (xghostname): Don't exit for anything other than memory-related
82637         failure; just return NULL.
82638         * lib/userspec.c: Include "posixver.h".
82639         (parse_user_spec): Accept `.' as a separator only
82640         in pre-POSIX-200112 mode.
82641         * lib/strtoimax.c: Use #elif rather than #else #if.
82642         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82643         Remove function, now that we can rely on a working tzset function.
82644         [!_LIBC]: Ensure that the required autoconf test has been run.
82645         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82646         Use underlying_strftime for %r.
82647         * lib/sha.c: Merge in some clean-up and optimization changes from
82648         glibc.
82649         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82650         Ensure that it is a multiple of 64.
82651         Rearrange loop exit tests so as to avoid performing an
82652         additional fread after encountering an error or EOF.
82653         * lib/realloc.c: Update copyright date.
82654
82655 2003-08-15  Jim Meyering  <jim@meyering.net>
82656         and Paul Eggert  <eggert@twinsun.com>
82657
82658         Merge from coreutils.
82659         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82660         member but strut utmpx does not.  Needed for AIX 4.3.3.
82661         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82662
82663 2003-08-15  Jim Meyering  <jim@meyering.net>
82664         and Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         Merges from coreutils, etc.
82667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82668         Require gl_FUNC_TZSET_CLOBBER.
82669         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82670         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82671         members.
82672
82673 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82674
82675         Help the merge from coreutils.
82676         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82677         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82678         * m4/tzset.m4: Use it too.
82679
82680 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82681
82682         * modules/tzset: New file.
82683
82684 2003-08-14  Jim Meyering  <jim@meyering.net>
82685
82686         Merges from coreutils.
82687         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82688         variable names, rather than @FNMATCH_H@.
82689         * modules/alloca: Likewise for $(ALLOCA_H).
82690
82691         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82692         the three copies of the literal target, `fnmatch.h'.
82693         * modules/alloca (alloca.h): Likewise.
82694
82695 2003-08-14  Jim Meyering  <jim@meyering.net>
82696
82697         Merge from coreutils.
82698         * m4/tzset.m4: New file.
82699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82700         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82701         otherwise, AIX 5.1 systems would end up using the latter.
82702         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82703         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82704         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82705         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82706
82707 2003-08-14  Jim Meyering  <jim@meyering.net>
82708
82709         Merge from coreutils.
82710         * lib/obstack.h: Whitespace changes.
82711         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82712         and xcalloc return values.
82713         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82714         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82715         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82716         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82717         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82718         error from mntctl.
82719         Use mntctl's return value to drive the entry-processing loop, since
82720         we can't rely on the value of the vmt_length member in the last
82721         entry.  On some systems doing so could result in exhausting
82722         virtual memory.  Based in part on a patch from Mike Jetzer.
82723
82724 2003-08-14  Jim Meyering  <jim@meyering.net>
82725         and Paul Eggert  <eggert@twinsun.com>
82726
82727         Merges from coreutils, plus other fixes.
82728         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82729         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82730         for credits and details.  Thanks to Kaveh Ghazi for helping
82731         to keep these files in sync.
82732         (ARRAY_SIZE): Define it.
82733         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82734         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82735         (memcasecmp): Don't assume size_t fits in unsigned int.
82736         Remove casts and duplicate code.
82737         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82738         (memcpy): Remove definition.
82739         Merge in some clean-up and optimization changes from glibc.
82740         [BLOCKSIZE]: Move definition to top of file.
82741         Ensure that it is a multiple of 64.
82742         Rearrange loop exit tests so as to avoid performing an
82743         additional fread after encountering an error or EOF.
82744         * lib/md5.h (md5_uintptr): Define.
82745         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82746         return to the initial working directory.  Preserve errno
82747         for caller.
82748         * lib/idcache.c: Include "xalloc.h".
82749         (xmalloc, xrealloc): Remove decls.
82750         (getuser): Remove casts no longer required in C89.
82751         * lib/human.c: Include stdio.h, for sprintf.
82752         * lib/group-member.c: Include "xalloc.h".
82753         (xmalloc, xrealloc): Remove decls.
82754         (get_group_info): Remove casts no longer required in C89.
82755         * lib/getusershell.c (readname): Remove casts no longer required in
82756         C89.
82757         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82758         * lib/getline.c: Whitespace fix, from coreutils.
82759
82760 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82761
82762         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82763         Check for isascii.
82764
82765         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82766         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82767         Undo previous (whitespace-only) change.
82768
82769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82770
82771         * lib/exclude.c: Include <ctype.h>
82772         (IN_CTYPE_DOMAIN): New macro.
82773         (is_space): New fn.
82774         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82775         and empty lines.
82776
82777         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82778         Undo previous (whitespace-only) change.
82779
82780 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82781
82782         * config/srclist-update: Change update back to the old behavior,
82783         leaving whitespace alone.  Use one 'sed' command rather than a
82784         pipeline.
82785         (fixlicense): Now a variable, not a function.
82786         (remove_trailing_blanks): Remove.
82787         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82788         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82789         Undo previous (whitespace-only) change.
82790
82791 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82792
82793         Merge from coreutils.
82794         * modules/euidaccess: Add lib_SOURCES, include for new
82795         file euidaccess.h
82796
82797 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82798
82799         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82800         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82801         Normalize leading white space and remove trailing white space.
82802
82803         Merge from coreutils
82804         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82805
82806         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82807         0.12.1.  These files are now being upgraded automatically by
82808         ../config/srclist-update.
82809
82810 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82811
82812         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82813         Normalize leading white space and remove trailing white space.
82814         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82815         notice, as per ../config/srclist-update.
82816
82817         Merge from coreutils.
82818         * lib/euidaccess.h: New file.
82819         * lib/euidaccess.c: Include it.
82820         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82821         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82822         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82823
82824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82825
82826         * config/srclist-update: Add copyright notice.
82827         (remove_id_lines, remove_trailing_blanks): New constants.
82828         (fixfile): Use them to normalize spacing a bit in copied files.
82829         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82830         Normalize leading white space and remove trailing white space.
82831
82832         * config/texinfo.tex: Sync with texinfo.
82833
82834         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82835         strtoul.c from libc, to merge coreutils whitespace changes.
82836
82837         * config/srclist.txt: Get the following m4 files from gettext:
82838         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82839         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82840         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82841         wint_t.m4.
82842
82843 2003-08-12  Karl Berry  <karl@gnu.org>
82844
82845         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82846         been made.
82847
82848 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82849
82850         * modules/gnu-source, m4/gnu-source.m4:
82851         Remove; we're assuming Autoconf 2.54 or later now.
82852         Suggested by Bruno Haible.
82853         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82854
82855 2003-08-11  Bruno Haible  <bruno@clisp.org>
82856
82857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82858
82859 2003-08-11  Bruno Haible  <bruno@clisp.org>
82860
82861         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82862         (vasnprintf): Use it instead of wcslen.
82863
82864 2003-08-11  Bruno Haible  <bruno@clisp.org>
82865
82866         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82867         value to ensure that _Bool promotes to int. Use #define for _Bool when
82868         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82869
82870 2003-08-10  Karl Berry  <karl@gnu.org>
82871
82872         * lib/regex.h: update from libc (whitespace fix).
82873
82874 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82875
82876         Merge some files from coreutils.  These changes were
82877         originally made by Jim Meyering.
82878         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82879         many older Unixes require this.
82880         * lib/alloca.c (alloca): Remove cast to argument of free;
82881         no longer needed in C89.
82882         * lib/alloca_.h, regex.h: Fix white space to match
82883         what GNU indent does.
82884
82885 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82886
82887         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82888         apparently Emacs's Unicode mode got confused before my 2003-08-05
82889         checkin.
82890
82891 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82892
82893         * m4/extensions.m4: New file.
82894         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82895         Require gl_USE_SYSTEM_EXTENSIONS.
82896         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82897         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82898
82899 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82900
82901         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82902         * modules/extensions, modules/gnu-source: New files.
82903         * modules/timespec, modules/unlocked-io: Depend on extensions.
82904
82905 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82906
82907         * modules/restrict: New file.
82908         * MODULES.html.sh (func_all_modules): Add restrict.
82909         * modules/regex: Depend on restrict.
82910
82911 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82912
82913         * m4/restrict.m4: New file.
82914         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82915
82916 2003-08-07  Bruno Haible  <bruno@clisp.org>
82917
82918         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82919         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82920
82921 2003-08-07  Bruno Haible  <bruno@clisp.org>
82922
82923         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82924         makes the module 'getndelim2' compatible with the module 'getline'.
82925
82926 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82927
82928         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82929         byte with "\201" to avoid glitches when editing that source file
82930         with multi-gnome-terminal.
82931
82932 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82933
82934         * lib/bumpalloc.h: Remove.
82935
82936 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82937
82938         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82939         * modules/bumpalloc: Remove.
82940
82941 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82942
82943         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82944         GNU coding style.
82945
82946         Merge from coreutils.
82947         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82948         1. From glibc.
82949         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82950         from Karl Berry, implemented by Jim Meyering.
82951         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82952         from Dmitry V. Levin.
82953         Remove anachronistic cast of xrealloc.
82954         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82955         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82956         type. Otherwise, it wouldn't compile with at least /bin/cc on
82957         ymp-cray-unicos9.0.2.X.
82958         Combine two mostly-identical uses of alloca into one.
82959         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82960
82961 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82962
82963         [From Emacs.]
82964
82965         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82966         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82967         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82968         obsolete NLIST_NAME_UNION.
82969         [__GNU__]: Undef BSD and FSCALE.
82970         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82971
82972 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82973
82974         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82975         an enum type, so that it's guaranteed to promote to int.  See:
82976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82977
82978 2003-08-03  Karl Berry  <karl@gnu.org>
82979
82980         * config/depcomp: update from automake.
82981
82982 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82983
82984         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82985         (strerror): Don't assume that a printable int fits in 14 bytes.
82986
82987 2003-07-31  Bruno Haible  <bruno@clisp.org>
82988
82989         * modules/getpass-gnu: New file.
82990         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82991
82992 2003-07-31  Bruno Haible  <bruno@clisp.org>
82993
82994         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82995
82996 2003-07-24  Karl Berry  <karl@gnu.org>
82997
82998         * config/missing: update from automake.
82999
83000 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83001             Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83004         * lib/getline.c (getline, getdelim): Likewise.
83005         Remove _GNU_SOURCE define; now it's defined in config.h through
83006         m4/getline.m4.
83007
83008 2003-07-23  Karl Berry  <karl@gnu.org>
83009
83010         * config/config.sub: update from prep.
83011
83012 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83013
83014         * modules/xalloc (Depends-on): Add exitfail.
83015         * modules/xmemcoll: Likewise.
83016
83017 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83018
83019         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83020         over-parenthesization in macros.
83021
83022         Sync with coreutils.
83023
83024         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83025         required by C99.
83026
83027         Use `exit_failure' for xalloc and xmemcoll instead of their own
83028         private exit-failure variables.
83029         * lib/xalloc.h (xalloc_exit_failure): Remove.
83030         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83031         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83032         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83033         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83034         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83035
83036 2003-07-20  Jim Meyering  <jim@meyering.net>
83037
83038         * modules/closeout (Depends-on): Add exitfail.
83039         Suggestion from Bruno Haible.
83040
83041 2003-07-19  Karl Berry  <karl@gnu.org>
83042
83043         * config/config.sub: update from prep.
83044
83045 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83046
83047         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83048         Remove.
83049         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83050         to test that it can stand by itself.  Include "exitfail.h".
83051         Clients should set exit_failure instead.
83052         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83053
83054 2003-07-18  Bruno Haible  <bruno@clisp.org>
83055
83056         * modules/getndelim2: New file.
83057         * modules/getline: Share files with module getndelim2.
83058         * modules/getnline: Depend on getndelim2 instead of sharing files with
83059         it. Add getnline.c to lib_SOURCES.
83060         * MODULES.html.sh (func_all_modules): Add getndelim2.
83061
83062 2003-07-18  Bruno Haible  <bruno@clisp.org>
83063
83064         * m4/getndelim2.m4: New file.
83065         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83066         invoke gl_PREREQ_GETNDELIM2.
83067         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83068         gl_PREREQ_GETNDELIM2.
83069         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83070         gl_GETNDELIM2.
83071
83072 2003-07-18  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/getndelim2.h: New file.
83075         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83076         getndelim2.h.
83077         (getndelim2): Make non-static. Change return type to ssize_t.
83078         * lib/getline.h: Change argument names.
83079         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83080         * lib/getnline.c: Include getndelim2.h.
83081
83082 2003-07-18  Andreas Schwab  <schwab@suse.de>
83083
83084         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83085
83086 2003-07-17  Karl Berry  <karl@gnu.org>
83087
83088         * config/config.sub: update from prep.
83089
83090 2003-07-17  Bruno Haible  <bruno@clisp.org>
83091
83092         * modules/getnline: New file.
83093         * modules/getline: Add lib/getndelim2.c to source file list.
83094         * MODULES.html.sh (func_all_modules): Add getnline.
83095
83096 2003-07-17  Bruno Haible  <bruno@clisp.org>
83097
83098         * m4/getnline.m4: New file.
83099
83100 2003-07-17  Bruno Haible  <bruno@clisp.org>
83101
83102         * m4/Makefile.am.in: Remove file.
83103         * m4/Makefile.am: Remove file.
83104         * m4/Makefile.in: Remove file.
83105
83106 2003-07-17  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/getnline.h: New file.
83109         * lib/getnline.c: New file.
83110         * lib/getndelim2.c: New file, extracted from getline.c.
83111         (getndelim2): Renamed from getdelim2, with added nmax argument.
83112         * lib/getline.c: Include getndelim2.c.
83113         (getdelim2): Moved out to getndelim2.c.
83114         (getline, getdelim): Update.
83115
83116 2003-07-17  Bruno Haible  <bruno@clisp.org>
83117
83118         * lib/Makefile.am: Remove file.
83119         * lib/Makefile.in: Remove file.
83120
83121 2003-07-17  Bruno Haible  <bruno@clisp.org>
83122
83123         * configure.in: Remove file.
83124         * Makefile.in: Remove file.
83125
83126 2003-07-17  Bruno Haible  <bruno@clisp.org>
83127
83128         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83129
83130 2003-07-16  Karl Berry  <karl@gnu.org>
83131
83132         * config/srclist-update: was running fixlicense twice, which caused
83133                 texinfo.tex to be nullified for some reason.  Simplify,
83134                 $gplsrc is no longer needed as far as I can see?
83135
83136 2003-07-16  Jim Meyering  <jim@meyering.net>
83137
83138         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83139
83140 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83141
83142         * config/srclist.txt: Get the following files from gettext-runtime/intl
83143         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83144         ref-del.sin.  From Bruno Haible.
83145         * config/srclist-update (fixfile): Change grep pattern again, since the
83146         previous fix didn't work (there was another trailing $).  Use
83147         '[$]' to escape the $s.
83148
83149 2003-07-15  Karl Berry  <karl@gnu.org>
83150
83151         * lib/vasnprintf.c: update from gettext.
83152
83153 2003-07-15  Karl Berry  <karl@gnu.org>
83154
83155         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83156         gets expanded when surrounded by '$'.
83157
83158 2003-07-15  Jim Meyering  <jim@meyering.net>
83159
83160         * modules/save-cwd: Don't depend on error.  From Derek Price.
83161
83162 2003-07-15  Jim Meyering  <jim@meyering.net>
83163
83164         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83165
83166 2003-07-14  Simon Josefsson  <jas@extundo.com>
83167
83168         * modules/mempcpy: New file.
83169         * MODULES.html.sh (func_all_modules): Add mempcpy.
83170
83171 2003-07-14  Simon Josefsson  <jas@extundo.com>
83172
83173         * m4/mempcpy.m4: New file.
83174
83175 2003-07-14  Simon Josefsson  <jas@extundo.com>
83176
83177         * lib/mempcpy.h: New file.
83178         * lib/mempcpy.c: New file.
83179
83180 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83181
83182         * modules/getdate, modules/posixtm: Depend on mktime.
83183
83184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83185
83186         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83187         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83188         unicodeio.c, unicodeio.h, unlocked-io.h:
83189         Switch from LGPL to GPL.
83190
83191 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83192
83193         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83194         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83195         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83196         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83197         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83198         updated automatically by ../config/srclist-update.  This changes
83199         their license from LPGL to GPL.
83200
83201 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83202
83203         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83204         assumed to refer to the root of the most recent stable gettext version.
83205         * config/srclistvars.sh: Add defaults for eggert.
83206         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83207         Match "This program" as well as "The program".  This is needed
83208         for gettext.
83209
83210 2003-07-14  Jim Meyering  <jim@meyering.net>
83211
83212         Don't emit diagnostics.  Let callers do that.
83213         * lib/save-cwd.c: Don't include "error.h".
83214         (save_cwd): Don't call error.  Ensure that errno is valid
83215         when returning nonzero.
83216
83217         * lib/save-cwd.h (restore_cwd): Update prototype.
83218         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83219         Simplify.  Don't call error upon failure.  Let callers do that.
83220         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83221         when auditing is enabled.  But don't bother updating the #if.
83222
83223 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83224
83225         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83226         it breaks C++ compilation.
83227         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83228
83229 2003-07-10  Simon Josefsson  <jas@extundo.com>
83230
83231         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83232
83233 2003-07-10  Jim Meyering  <jim@meyering.net>
83234
83235         * m4/clock_time.m4: Remove trailing blank.
83236         * m4/intmax_t.m4: Likewise.
83237
83238 2003-07-10  Jim Meyering  <jim@meyering.net>
83239
83240         * lib/vasnprintf.c: Remove trailing blanks.
83241         Make cpp indentation consistent.
83242
83243 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83244
83245         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83246         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83247         Switch from LGPL to GPL.
83248
83249 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83250
83251         * config/srclist.txt: Sort sublists.  Add
83252         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83253         that differ from gnulib for one reason or another; we'd like this list
83254         to be smaller but for now let's document what we have.
83255
83256 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83257
83258         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83259         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83260         and sweeter "eval x=$x".
83261         * config/srclist.txt: Get lib/argp* from glibc.
83262
83263 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83264
83265         * lib/mktime.c: Fix some boundary cases and remove need for floating
83266         point.
83267
83268         Issue a compile-time diagnostic if time_t is floating point, or if
83269         two's complement arithmetic is not in effect, or if arithmetic
83270         right shift does not propagate the sign.  These assumptions were
83271         all in the original code but they weren't checked.
83272
83273         (TIME_T_MIDPOINT, verify): New macros.
83274         (__isleap): Remove; it has integer overflow problems.
83275         (leapyear): New function, without those problems.
83276         (ydhms_tm_diff): Remove; splitting into two parts.
83277         (ydhms_diff): New function, containing the arithmetic part of
83278         the old ydhms_tm_diff function.  Issue a compile-time
83279         diagnostic if we are not using C99 integer division.
83280         Avoid casts when possible.
83281         (guess_time_tm): New function, containing the checking part of
83282         the old ydhms_tm_diff function.  Return the new value, rather than
83283         the difference between it and the old.  Accept a new argument T
83284         so that *T specifies the old value.  Check for overflow in the result.
83285
83286         (__mktime_internal): Use a time_t offset, not a long int offset.
83287         This undoes the 2003-06-04 change, which is no longer needed now
83288         that we have better overflow checking.
83289         (localtime_offset): Likewise.
83290
83291         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83292         and long are 64-bit but int is only 32-bit.
83293         (ydhms_diff): Use long int to store year1 and yday1.
83294         Issue a compile-time diagnostic if long int is not wide enough.
83295
83296         (__mktime_internal): Use long int to store adjusted year and yday.
83297         Use plain C rather than preprocessor commands, if that doesn't
83298         affect efficiency.
83299         Check for overflow (and try to repair) after each probe
83300         rather than checking only at the very end.  This avoids some bugs
83301         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83302         does not equal GMT offset at maximum time).
83303         Use integer to check for overflow rather than floating point; this
83304         is more portable to non-IEEE hosts, and is a tad faster.
83305         When we detect that we are oscillating between two values,
83306         don't check whether tm_isdst has the requested value, since
83307         we already know the answer.  When tm_isdst has the wrong value,
83308         use a different heuristic to find the right one, based on the
83309         extreme values actually observed in practice in tz2003a,
83310         rather than the (overly optimistic) "previous 3 calendar quarters".
83311
83312         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83313         "T const" to accommodate glibc style.
83314         (check_result): Use less-confusing report format.  "long" -> "long int.
83315         (main): Likewise.
83316         Don't loop if the iteration overflows time_t.
83317         Allow a negative step in the iteration.
83318
83319 2003-07-06  Karl Berry  <karl@gnu.org>
83320
83321         * config/depcomp: update from automake.
83322         * config/config.sub: update from prep.
83323
83324 2003-07-03  Karl Berry  <karl@gnu.org>
83325
83326         * config/config.guess: update from prep.
83327
83328 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83329
83330         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83331         xreadlink.c now includes it unconditionally.
83332
83333 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83334
83335         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83336         having it depend on HAVE_SYS_TYPES_H.
83337
83338 2003-07-01  Bruno Haible  <bruno@clisp.org>
83339
83340         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83341         <sys/types.h> should be sufficient.
83342         Reported by Paul Eggert.
83343
83344 2003-06-26  Karl Berry  <karl@gnu.org>
83345
83346         * config/depcomp: update from automake.
83347
83348 2003-06-26  Bruno Haible  <bruno@clisp.org>
83349
83350         * modules/human: Depend on module stdbool.
83351
83352 2003-06-25  Bruno Haible  <bruno@clisp.org>
83353
83354         * modules/readlink: New file.
83355         * modules/xreadlink: Depend on it.
83356         * MODULES.html.sh (func_all_modules): Add readlink.
83357
83358 2003-06-25  Bruno Haible  <bruno@clisp.org>
83359
83360         * m4/readlink.m4: New file.
83361
83362 2003-06-25  Bruno Haible  <bruno@clisp.org>
83363
83364         * lib/readlink.c: New file.
83365
83366 2003-06-22  Karl Berry  <karl@gnu.org>
83367
83368         * config/srclist.txt: update mkinstalldirs from automake.
83369         * config/mkinstalldirs: update.
83370
83371 2003-06-22  Bruno Haible  <bruno@clisp.org>
83372
83373         Portability to mingw32.
83374         * m4/ssize_t.m4: New file, from GNU gettext.
83375         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83376         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83377
83378 2003-06-22  Bruno Haible  <bruno@clisp.org>
83379
83380         * modules/safe-read: Add m4/ssize_t.m4.
83381         * modules/xreadlink: Add m4/ssize_t.m4.
83382
83383 2003-06-20  Bruno Haible  <bruno@clisp.org>
83384
83385         Assume C89, so PARAMS isn't needed.
83386         * lib/unicodeio.h (PARAMS): Remove.
83387         * lib/unicodeio.c: Don't use PARAMS.
83388
83389 2003-06-18  Karl Berry  <karl@gnu.org>
83390
83391         * config/config.{guess,sub}: update from prep.
83392
83393 2003-06-18  Jim Meyering  <jim@meyering.net>
83394
83395         Merge changes from coreutils.
83396         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83397         Remove explicit declarations of xmalloc and realloc.
83398         Include xalloc.h.
83399         (read_utmp): Remove anachronistic cast of xmalloc.
83400
83401 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83402
83403         Assume C89, so PARAMS isn't needed.
83404         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83405         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83406         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83407         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83408         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83409         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83410         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83411         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83412         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83413         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83414         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83415         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83416         no longer needed. Anyway, config.h should always be included before any
83417         other file.
83418
83419 2003-06-11  Simon Josefsson  <jas@extundo.com>
83420
83421         * modules/sysexits: New file.
83422         * MODULES.html.sh (func_all_modules): Add sysexits.
83423
83424 2003-06-11  Simon Josefsson  <jas@extundo.com>
83425
83426         * lib/sysexit_.h: New file.
83427
83428 2003-06-11  Derek Price  <derek@ximbiot.com>
83429
83430         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83431         necessary.
83432
83433 2003-06-11  Bruno Haible  <bruno@clisp.org>
83434
83435         * m4/sysexits.m4: New file.
83436
83437 2003-06-10  Simon Josefsson  <jas@extundo.com>
83438
83439         * lib/argp.h: New file, from glibc.
83440         * lib/argp-ba.c: New file, from glibc.
83441         * lib/argp-eexst.c: New file, from glibc.
83442         * lib/argp-fmtstream.c: New file, from glibc.
83443         * lib/argp-fmtstream.h: New file, from glibc.
83444         * lib/argp-fs-xinl.c: New file, from glibc.
83445         * lib/argp-help.c: New file, from glibc.
83446         * lib/argp-namefrob.h: New file, from glibc.
83447         * lib/argp-parse.c: New file, from glibc.
83448         * lib/argp-pv.c: New file, from glibc.
83449         * lib/argp-pvh.c: New file, from glibc.
83450         * lib/argp-xinl.c: New file, from glibc.
83451
83452 2003-06-10  Simon Josefsson  <jas@extundo.com>
83453
83454         * modules/strchrnul: New file.
83455
83456 2003-06-10  Simon Josefsson  <jas@extundo.com>
83457
83458         * modules/argp: New file.
83459
83460 2003-06-10  Simon Josefsson  <jas@extundo.com>
83461
83462         * m4/strchrnul.m4: New file.
83463
83464 2003-06-10  Simon Josefsson  <jas@extundo.com>
83465
83466         * lib/strchrnul.h: New file.
83467         * lib/strchrnul.c: New file.
83468
83469 2003-06-10  Bruno Haible  <bruno@clisp.org>
83470
83471         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83472
83473 2003-06-07  Karl Berry  <karl@gnu.org>
83474
83475         * config/config.{guess,sub}: update from prep.
83476
83477 2003-06-07  Jim Meyering  <jim@meyering.net>
83478
83479         * modules/strtod: Use $(...) notation, not @...@ for
83480         AC_REPLACE'd variables.
83481         * modules/localcharset: Likewise.
83482
83483 2003-06-07  Jim Meyering  <jim@meyering.net>
83484
83485         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83486         in place of my name in the copyright comment.
83487         Remove definition and uses of __P.
83488
83489         From coreutils.
83490         * lib/stat.c: Don't declare xmalloc explicitly.
83491         Instead, include "xalloc.h".
83492         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83493         xrealloc, and xcalloc return values.
83494         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83495         Improve comment.
83496         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83497
83498 2003-06-07  Bruno Haible  <bruno@clisp.org>
83499
83500         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83501         avoid AC_CONFIG_LINKS.
83502         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83503         fnmatch.h, to avoid AC_CONFIG_LINKS.
83504         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83505
83506 2003-06-07  Bruno Haible  <bruno@clisp.org>
83507
83508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83509         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83510         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83511         directory.
83512         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83513         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83514         directory.
83515
83516 2003-06-06  Jim Meyering  <jim@meyering.net>
83517
83518         Merge from coreutils.
83519         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83520         Consolidate declarations and initializations of *_base* locals.
83521
83522         Merge from coreutils.
83523         This avoids a core dump on systems without GNU putenv,
83524         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83525         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83526         (unsetenv): New static function, from GNU libc.
83527         (rpl_putenv): Use it.
83528
83529         * lib/modechange.c: Remove trailing blanks.
83530
83531         Merge from coreutils.
83532         * lib/fsusage.c: Remove declaration of statfs.
83533         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83534
83535         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83536
83537 2003-06-06  Jim Meyering  <jim@meyering.net>
83538
83539         * lib/stdbool_.h: Renamed from stdbool.h.in.
83540
83541 2003-06-06  Jim Meyering  <jim@meyering.net>
83542             Bruno Haible  <bruno@clisp.org>
83543
83544         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83545         Adjust Makefile.am snippet not to redirect directly to target.
83546         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83547
83548 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83549
83550         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83551         mismatch, look in future quarters as well as past.  This fixes a
83552         bug when processing fall-backwards gaps immediately after a long
83553         period of daylight-saving time.
83554
83555         * lib/mktime.c: Assume freestanding C89 or better.
83556         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83557         (__P): Remove; not used.
83558         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83559         (mktime, not_equal_tm, print_tm, check_result,
83560         main): Use prototypes.  Use const * where appropriate.
83561         (main): Fix typo in testing code that uncovered by above changes.
83562         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83563
83564 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83565
83566         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83567         locale.h, localeconv.  This merges changes from coreutils.
83568
83569         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83570         It can be removed after the next Autoconf is released.
83571         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83572         needed.
83573
83574 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83575
83576         * lib/mktime.c: Fix Debian bug 177940
83577         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83578         (localtime_offset): Now long int, not time_t, because we want it
83579         to be guaranteed to be signed.  All uses changed.
83580         (__mktime_internal): If overflow would occur when adding offset,
83581         don't add it.
83582
83583         Merge 'human' changes from coreutils.  Rewrite to support
83584         locale-specific notations like thousands separators.
83585         * lib/human.c: Simplify authorship notice.
83586         Include human.h immediately after config.h.
83587         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83588         <limits.h>: Do not include, since human.h does.
83589         (SIZE_MAX, UINTMAX_MAX): New macros.
83590         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83591         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83592         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83593         (power_letter): Renamed from suffixes.
83594         (generate_suffix_backwards): Remove.
83595         (adjust_value): Now takes int style (because of human.h changes)
83596         and long double value (for greater precision on some platforms).
83597         (group_number): New function.
83598         (human_readable): Use it.  Use integer options, not enum.
83599         Put the options before the sizes in the arg list.
83600         Support all the new options.
83601         The old human_readable function has been removed;
83602         use inttostr.h instead.
83603         (human_readable, default_block_size, humblock):
83604         Use uintmax_t, not int, for block sizes.
83605         (human_readable_inexact, block_size_types): Remove.
83606         (block_size_opts): New constant.
83607         (human_options): Renamed from human_block_size, with new signature
83608         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83609         * lib/human.h: Add copyright and authorship notice.
83610         Include <limits.h> and <stdbool.h> unconditionally.
83611         (PARAMS): Remove.  All uses removed.
83612         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83613         (enum human_inexact_style): Remove tag; now a nameless enum.
83614         (human_floor, human_ceiling, human_round_to_even): Now have
83615         values 2, 0, 1 rather than -1, 1, 0.
83616         (human_group_digits, human_suppress_point_zero, human_autoscale,
83617         human_base_1024, human_SI, human_B): New constants.
83618         (human_readable_inexact, human_block_size): Remove.
83619         (human_readable): Size args are now uintmax_t, not int.
83620         (human_options): New decl.
83621
83622         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83623         unnecessary now that we assume C89 or better.  This change
83624         imported from coreutils.
83625
83626         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83627         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83628         in the 2003-05-30 sync from glibc.
83629
83630         .h files should stand alone, but we shouldn't include <sys/types.h>
83631         if we can get away with just <stddef.h>.
83632
83633         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83634         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83635         rather than <sys/types.h>, as we merely need size_t.
83636         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83637         to get size_t.
83638         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83639         Include <stdio.h>, to get FILE.
83640         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83641         memcasecmp.h has included <stddef.h> and all we need is size_t.
83642         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83643         our interface, instead of including <sys/types.h>
83644
83645 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83646
83647         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83648         now, as glibc mktime is buggy on non-glibc systems.
83649
83650 2003-06-03  Karl Berry  <karl@gnu.org>
83651
83652         * config/config.sub: update from prep.
83653
83654 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83655
83656         [from coreutils]
83657         Fix some minor time-related bugs with POSIX time arguments.
83658         Some valid time stamps were being rejected (notably -1, and
83659         time stamps before 1900 on 64-bit hosts).  And some invalid
83660         time stamps were being accepted, e.g. September 31.
83661
83662         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83663         that we can return (time_t) -1 successfully.
83664         * lib/posixtm.c: Likewise.
83665         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83666         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83667         (t): Remove static var.
83668         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83669         of static var.  All uses changed.
83670         (year): Do not reject years before 1900; they can occur with
83671         64-bit time_t.
83672         (posix_time_parse): Do not check for out-of-range components;
83673         that is now the caller's responsibility, since our checks were
83674         only approximations.
83675         (posixtime): Use mktime to check for out-of-range components,
83676         since it knows them exactly.
83677         If mktime returns (time_t) -1, check whether an error actually occurred
83678         by invoking localtime on -1.
83679         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83680         posixtime failures better.
83681         Improve the test data (in comments only).
83682
83683 2003-06-02  Karl Berry  <karl@gnu.org>
83684
83685         * config/mkinstalldirs (version): new variable.
83686         (--version): new option.
83687         (usage): improve message.
83688
83689 2003-05-30  Karl Berry  <karl@gnu.org>
83690
83691         * lib/mktime.c: update from libc.
83692
83693 2003-05-30  Bruno Haible  <bruno@clisp.org>
83694
83695         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83696         * config/config.rpath: Upgrade to gettext-0.12.1.
83697
83698 2003-05-30  Bruno Haible  <bruno@clisp.org>
83699
83700         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83701         * m4/nls.m4: New file, from gettext-0.12.1.
83702         * m4/po.m4: New file, from gettext-0.12.1.
83703         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83704
83705 2003-05-30  Bruno Haible  <bruno@clisp.org>
83706
83707         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83708         * lib/localcharset.h: Likewise.
83709         * lib/localcharset.c: Likewise.
83710
83711 2003-05-29  Karl Berry  <karl@gnu.org>
83712
83713         * config/config.rpath: update from gettext.
83714
83715 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83716
83717         Assume the headers required for C89 freestanding compilers.
83718         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83719         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83720         * m4/human.m4 (gl_HUMAN): Likewise.
83721         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83722         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83723         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83724         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83726         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83727
83728 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83729
83730         Assume the headers required for C89 freestanding compilers.
83731         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83732         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83733         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83734         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83735         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83736         define, since <limits.h> is guaranteed to do that.
83737         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83738         * lib/exclude.c: Include <stdbool.h> unconditionally.
83739         * lib/tempname.c: Include <stddef.h> unconditionally.
83740         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83741         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83742         <stddef.h> does that.
83743         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83744         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83745         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83746         needed.
83747         * lib/xstrtol.c: Likewise.
83748         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83749         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83750
83751         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83752         warnings on some platforms.
83753
83754         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83755         arbitrarily.
83756
83757 2003-05-26  Jim Meyering  <jim@meyering.net>
83758
83759         Merge in a change from coreutils:
83760         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83761         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83762         that condition, rather than `-1' which is slightly misleading.
83763         Change the name of the cache variable to have the gl_ prefix.
83764         Prompted by a patch from Richard Dawe for DJGPP.
83765
83766 2003-05-24  Karl Berry  <karl@gnu.org>
83767
83768         * config/config.guess: update from prep.
83769
83770 2003-05-22  Karl Berry  <karl@gnu.org>
83771
83772         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83773
83774 2003-05-20  Karl Berry  <karl@gnu.org>
83775
83776         * config/config.guess: update from prep.
83777
83778 2003-05-18  Karl Berry  <karl@gnu.org>
83779
83780         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83781         might actually be set by the user.
83782
83783         * config/depcomp, install-sh, mdate-sh: update from automake.
83784
83785 2003-05-17  Bruno Haible  <bruno@clisp.org>
83786
83787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83788         invalid expansion for AC_EGREP_CPP.
83789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83790         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83791         Suggested by Akim Demaille <akim@epita.fr> in
83792         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83793
83794 2003-05-12  Jim Meyering  <jim@meyering.net>
83795
83796         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83797         the space-padded-by-default conversion specifiers, %e, %k, %l.
83798
83799 2003-05-12  Bruno Haible  <bruno@clisp.org>
83800
83801         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83802         the string is longer than 4 KB.
83803
83804 2003-05-11  Karl Berry  <karl@gnu.org>
83805
83806         * config/config.{guess,sub}: update from prep.
83807
83808 2003-05-09  Bruno Haible  <bruno@clisp.org>
83809
83810         * modules/error: Add m4/strerror_r.m4 to file list.
83811
83812 2003-05-03  Bruno Haible  <bruno@clisp.org>
83813
83814         Upgrade to Unicode-4.0.
83815         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83816         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83817         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83818         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83819         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83820         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83821         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83822         Change width of U+E0100..U+E01EF from 1 to 0.
83823
83824 2003-04-25  Jim Meyering  <jim@meyering.net>
83825
83826         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83827         of type size_t, not int.
83828
83829 2003-04-25  Bruno Haible  <bruno@clisp.org>
83830
83831         * lib/copy-file.c: Include <stddef.h>, for size_t.
83832
83833 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83834
83835         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83836         code which expansion is under static control.  Patch imported from
83837         Akim Demaille's patch to Bison; see
83838         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83839
83840 2003-04-14  Bruno Haible  <bruno@clisp.org>
83841
83842         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83843
83844 2003-04-11  Jim Meyering  <jim@meyering.net>
83845
83846         Merge changes from Coreutils.
83847
83848         2003-03-22  Jim Meyering  <jim@meyering.net>
83849
83850         * lib/strftime.c (widen): Cast alloca return value to proper type.
83851
83852         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83853
83854         From GNU libc.
83855         * lib/strftime.c (my_strftime): Handle very large width
83856         specifications for numeric values correctly.  Improve checks for
83857         overflow.
83858
83859         2003-01-19  Jim Meyering  <jim@meyering.net>
83860
83861         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83862         definitions.
83863         (nl_get_alt_digit) [! defined my_strftime]: Define.
83864         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83865         _nl_get_alt_digit and _nl_get_walt_digit.
83866
83867         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83868         libc. These changes have no effect outside of _LIBC.
83869
83870 2003-04-10  Bruno Haible  <bruno@clisp.org>
83871
83872         * modules/findprog: New file.
83873         * MODULES.html.sh (func_all_modules): Add it.
83874
83875 2003-04-10  Bruno Haible  <bruno@clisp.org>
83876
83877         * m4/findprog.m4: New file.
83878         * m4/eaccess.m4: New file.
83879
83880 2003-04-10  Bruno Haible  <bruno@clisp.org>
83881
83882         * lib/findprog.h: New file, from GNU gettext.
83883         * lib/findprog.c: New file, from GNU gettext.
83884
83885 2003-04-05  Jim Meyering  <jim@meyering.net>
83886
83887         Merge changes from Coreutils.
83888
83889         * lib/exclude.h (PARAMS): Remove definition and uses.
83890         * lib/exclude.c: Remove uses of `PARAMS'.
83891
83892         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83893         Add test-cases for DOS filenames. Declare program_name.
83894         (main): Set up program_name.  Patch by Rich Dawe.
83895
83896         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83897         error from mntctl.
83898         Use mntctl's return value to drive the entry-processing loop, since
83899         we can't rely on the value of the vmt_length member in the last
83900         entry.  On some systems doing so could result in exhausting
83901         virtual memory.  Based in part on a patch from Mike Jetzer.
83902
83903 2003-04-04  Bruno Haible  <bruno@clisp.org>
83904
83905         * modules/linebreak: New file.
83906         * MODULES.html.sh (func_all_modules): Add it.
83907
83908 2003-04-04  Bruno Haible  <bruno@clisp.org>
83909
83910         * m4/linebreak.m4: New file.
83911
83912 2003-04-04  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/linebreak.h: New file, from GNU gettext.
83915         * lib/linebreak.c: New file, from GNU gettext with slight
83916         modifications.
83917         * lib/lbrkprop.h: New file, from GNU gettext.
83918
83919 2003-04-03  Bruno Haible  <bruno@clisp.org>
83920
83921         * modules/utf8-ucs4: New file.
83922         * modules/utf16-ucs4: New file.
83923         * modules/ucs4-utf8: New file.
83924         * modules/ucs4-utf16: New file.
83925         * MODULES.html.sh (func_all_modules): Add them.
83926
83927 2003-04-03  Bruno Haible  <bruno@clisp.org>
83928
83929         * m4/utf-ucs4.m4: New file.
83930         * m4/ucs4-utf.m4: New file.
83931
83932 2003-04-03  Bruno Haible  <bruno@clisp.org>
83933
83934         * lib/utf8-ucs4.h: New file, from GNU gettext.
83935         * lib/utf16-ucs4.h: New file, from GNU gettext.
83936         * lib/ucs4-utf8.h: New file, from GNU gettext.
83937         * lib/ucs4-utf16.h: New file, from GNU gettext.
83938
83939 2003-04-02  Bruno Haible  <bruno@clisp.org>
83940
83941         * modules/binary-io: New file.
83942         * MODULES.html.sh (func_all_modules): Add it.
83943
83944 2003-04-02  Bruno Haible  <bruno@clisp.org>
83945
83946         * lib/binary-io.h: New file, from GNU gettext.
83947
83948 2003-04-01  Bruno Haible  <bruno@clisp.org>
83949
83950         * modules/pathname: New file.
83951         * MODULES.html.sh (func_all_modules): Add it.
83952
83953 2003-04-01  Bruno Haible  <bruno@clisp.org>
83954
83955         * lib/pathname.h: New file, from GNU gettext.
83956         * lib/concatpath.c: New file, from GNU gettext.
83957
83958 2003-03-30  Bruno Haible  <bruno@clisp.org>
83959
83960         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83961
83962 2003-03-30  Bruno Haible  <bruno@clisp.org>
83963
83964         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83965         function chown() doesn't exist.
83966
83967 2003-03-28  Bruno Haible  <bruno@clisp.org>
83968
83969         * modules/copy-file: New file.
83970         * MODULES.html.sh (func_all_modules): Add it.
83971
83972 2003-03-28  Bruno Haible  <bruno@clisp.org>
83973
83974         * m4/copy-file.m4: New file.
83975
83976 2003-03-28  Bruno Haible  <bruno@clisp.org>
83977
83978         * lib/copy-file.h: New file, from GNU gettext.
83979         * lib/copy-file.c: New file, from GNU gettext.
83980
83981 2003-03-18  Jim Meyering  <jim@meyering.net>
83982
83983         * lib/quote.c (quote_n): Fix typo in comment.
83984
83985 2003-03-18  Bruno Haible  <bruno@clisp.org>
83986
83987         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83988         checking.
83989         * m4/onceonly_2_57.m4: Likewise.
83990
83991 2003-03-17  Bruno Haible  <bruno@clisp.org>
83992
83993         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83994         (m4_quote): Remove macro.
83995         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83996
83997 2003-03-14  Jim Meyering  <jim@meyering.net>
83998
83999         Merge changes from Coreutils.
84000         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84001         to be const, in order to avoid warnings.
84002         (obstack_room): Likewise.
84003         (obstack_empty_p): Likewise.
84004
84005 2003-03-14  Bruno Haible  <bruno@clisp.org>
84006
84007         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84008         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84009
84010 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84011
84012         Merge changes from Bison.
84013         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84014         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84015         when compiling Bison 1.875's `bitset bset = obstack_alloc
84016         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84017         * lib/hash.c: Include <stdbool.h> unconditionally.
84018
84019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84020
84021         * m4/onceonly.m4 (m4_quote): New macro.
84022         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84023         Quote AC_FOREACH variable-expansions properly.
84024
84025 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84026
84027         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84028
84029 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84030
84031         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84032         Reported by Bruce Becker; see:
84033         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84034
84035 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84036             Bruno Haible  <bruno@clisp.org>
84037
84038         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84039         Reported by John Hughes, see
84040         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84041
84042 2003-02-20  Bruno Haible  <bruno@clisp.org>
84043
84044         * MODULES.html.sh (func_all_modules): Add poll.
84045
84046 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84047
84048         * modules/poll: New file.
84049
84050 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84051
84052         * lib/poll_.h: New file.
84053         * lib/poll.c: New file.
84054
84055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84056
84057         * m4/poll.m4: New file.
84058
84059 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84060
84061         * modules/mathl: New file.
84062
84063 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84064
84065         * lib/mathl.h: New file.
84066         * lib/acosl.c: New file.
84067         * lib/asinl.c: New file.
84068         * lib/atanl.c: New file.
84069         * lib/ceill.c: New file.
84070         * lib/cosl.c: New file.
84071         * lib/expl.c: New file.
84072         * lib/floorl.c: New file.
84073         * lib/frexpl.c: New file.
84074         * lib/ldexpl.c: New file.
84075         * lib/logl.c: New file.
84076         * lib/sincosl.c: New file.
84077         * lib/sinl.c: New file.
84078         * lib/sqrtl.c: New file.
84079         * lib/tanl.c: New file.
84080         * lib/trigl.c: New file.
84081         * lib/trigl.h: New file.
84082
84083 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84084
84085         * m4/mathl.m4: New file.
84086
84087 2003-02-18  Bruno Haible  <bruno@clisp.org>
84088
84089         * MODULES.html.sh (func_all_modules): Add mathl.
84090
84091 2003-02-17  Bruno Haible  <bruno@clisp.org>
84092
84093         * modules/mkdtemp: New module.
84094         * MODULES.html.sh (func_all_modules): Add it.
84095
84096 2003-02-17  Bruno Haible  <bruno@clisp.org>
84097
84098         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84099
84100 2003-02-17  Bruno Haible  <bruno@clisp.org>
84101
84102         * lib/mkdtemp.h: New file, from GNU gettext.
84103         * lib/mkdtemp.c: New file, from GNU gettext.
84104
84105 2003-02-02  Jim Meyering  <jim@meyering.net>
84106
84107         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84108         e.g. glibc-2.2.93.
84109
84110 2003-01-31  Bruno Haible  <bruno@clisp.org>
84111
84112         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84113         'rpl_rename'.
84114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84115         'rpl_strnlen'.
84116         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84117         'rpl_strtod'.
84118         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84119         'rpl_utime'.
84120
84121 2003-01-31  Bruno Haible  <bruno@clisp.org>
84122
84123         * lib/rename.c: #undef rename before defining rpl_rename.
84124         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84125
84126 2003-01-30  Bruno Haible  <bruno@clisp.org>
84127
84128         * modules/vasnprintf, modules/vasprintf: New modules.
84129         * MODULES.html.sh (func_all_modules): Add them.
84130
84131 2003-01-30  Bruno Haible  <bruno@clisp.org>
84132
84133         * m4/signed.m4: New file, from GNU gettext.
84134         * m4/longdouble.m4: New file, from GNU gettext.
84135         * m4/wchar_t.m4: New file, from GNU gettext.
84136         * m4/wint_t.m4: New file, from GNU gettext.
84137         * m4/vasnprintf.m4: New file.
84138         * m4/vasprintf.m4: New file.
84139
84140 2003-01-30  Bruno Haible  <bruno@clisp.org>
84141
84142         * lib/printf-args.h: New file, from GNU gettext.
84143         * lib/printf-args.c: New file, from GNU gettext.
84144         * lib/printf-parse.h: New file, from GNU gettext.
84145         * lib/printf-parse.c: New file, from GNU gettext.
84146         * lib/vasnprintf.h: New file, from GNU gettext.
84147         * lib/vasnprintf.c: New file, from GNU gettext.
84148         * lib/asnprintf.c: New file, from GNU gettext.
84149         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84150         * lib/vasprintf.c: New file, from GNU gettext.
84151         * lib/asprintf.c: New file, from GNU gettext.
84152
84153 2003-01-29  Bruno Haible  <bruno@clisp.org>
84154
84155         * modules/stpncpy: New module.
84156         * MODULES.html.sh (func_all_modules): Add it.
84157
84158 2003-01-29  Bruno Haible  <bruno@clisp.org>
84159
84160         * m4/stpncpy.m4: New file.
84161
84162 2003-01-29  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84165         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84166
84167 2003-01-28  Bruno Haible  <bruno@clisp.org>
84168
84169         * modules/c-ctype: New module.
84170         * MODULES.html.sh (func_all_modules): Add it.
84171
84172 2003-01-28  Bruno Haible  <bruno@clisp.org>
84173
84174         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84175         Paul Eggert.
84176         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84177         Paul Eggert.
84178
84179 2003-01-27  Bruno Haible  <bruno@clisp.org>
84180
84181         * modules/xsetenv: New module.
84182         * MODULES.html.sh (func_all_modules): Add it.
84183
84184 2003-01-27  Bruno Haible  <bruno@clisp.org>
84185
84186         * lib/xsetenv.h: New file, from GNU gettext.
84187         * lib/xsetenv.c: New file, from GNU gettext.
84188
84189 2003-01-23  Jim Meyering  <jim@meyering.net>
84190
84191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84192         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84193
84194 2003-01-23  Bruno Haible  <bruno@clisp.org>
84195
84196         * modules/minmax: New module.
84197         * MODULES.html.sh (func_all_modules): Add it.
84198
84199 2003-01-23  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84202         Eggert.
84203
84204 2003-01-22  Bruno Haible  <bruno@clisp.org>
84205
84206         * modules/exit: New module.
84207         * MODULES.html.sh (func_all_modules): Add it.
84208
84209 2003-01-22  Bruno Haible  <bruno@clisp.org>
84210
84211         * lib/exit.h: New file, from GNU gettext.
84212
84213 2003-01-19  Bruno Haible  <bruno@clisp.org>
84214
84215         * gnulib-tool: Recognize option --extract-maintainer.
84216         (func_get_maintainer): New function.
84217         * modules/*: Add Maintainer entry.
84218
84219 2003-01-16  Jim Meyering  <jim@meyering.net>
84220
84221         * m4/regex.m4: The `regex' struct is both input and output.
84222         Initialize it before each use.  Patch by Tim Waugh.
84223
84224 2003-01-16  Bruno Haible  <bruno@clisp.org>
84225
84226         * MODULES.html.sh: Add a table of contents. Add the module name as
84227         leftmost column. Add hyperlinks.
84228
84229 2003-01-15  Bruno Haible  <bruno@clisp.org>
84230
84231         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84232
84233 2003-01-15  Bruno Haible  <bruno@clisp.org>
84234
84235         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84236         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84237         suffix.
84238
84239 2003-01-15  Bruno Haible  <bruno@clisp.org>
84240
84241         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84242
84243 2003-01-15  Bruno Haible  <bruno@clisp.org>
84244
84245         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84246         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84247
84248 2003-01-14  Jim Meyering  <jim@meyering.net>
84249
84250         * lib/same.c (same_name): Tweak a comment.
84251
84252 2003-01-14  Bruno Haible  <bruno@clisp.org>
84253
84254         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84255         when a string comparison is sufficient.
84256
84257 2003-01-14  Bruno Haible  <bruno@clisp.org>
84258
84259         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84260         'unsigned int'.
84261
84262 2003-01-14  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/hash-pjw.c: Add comment about low quality of this function.
84265
84266 2003-01-13  Bruno Haible  <bruno@clisp.org>
84267
84268         * modules/stpcpy: Distribute lib/stpcpy.h.
84269         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84270
84271 2003-01-13  Bruno Haible  <bruno@clisp.org>
84272
84273         * modules/*: Add a description.
84274         * modules/strpbrk: Fix Makefile.am snippet.
84275         * modules/strtoimax: Fix dependencies.
84276         * modules/strtoumax: Likewise.
84277
84278 2003-01-13  Bruno Haible  <bruno@clisp.org>
84279
84280         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84281         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84282         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84283
84284 2003-01-13  Bruno Haible  <bruno@clisp.org>
84285
84286         * gnulib-tool (func_create_testdir): Store config/* files in the main
84287         directory.
84288         * config.rpath: Move to ...
84289         * config/config.rpath: ... here.
84290         * modules/gettext: Contains config/config.rpath, not config.rpath.
84291         * modules/iconv: Likewise.
84292
84293 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84294
84295         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84296         to avoid collisions with libcurses and libreadline.
84297
84298         * m4/getstr.m4: Remove.
84299         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84300
84301 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84302
84303         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84304         to avoid collisions with libcurses and libreadline.
84305
84306         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84307         * lib/getstr.h, getstr.c: Remove.
84308         * lib/getline.c: Include "getline.h", to check interface.
84309         Move body of old getstr.c here: this defines MIN_CHUNK and
84310         declares getdelim2, which is renamed from getstr.
84311         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84312
84313         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84314         All uses changed.
84315         * lib/linebuffer.h: Likewise.
84316         (readline): Remove backward-compatibility macro.
84317
84318 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84319
84320         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84321         to avoid collisions with libcurses and libreadline.
84322         * getstr: Remove.
84323         * MODULES.html.sh: Remove getstr.
84324         * modules/getline: Depend on unlocked-io, not getstr.
84325
84326 2003-01-12  Jim Meyering  <jim@meyering.net>
84327
84328         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84329
84330 2003-01-10  Bruno Haible  <bruno@clisp.org>
84331
84332         * modules/alloca: Change Makefile.am requirements. Simplify Include
84333         requirements. Add lib/alloca_.h to file list.
84334
84335 2003-01-10  Bruno Haible  <bruno@clisp.org>
84336
84337         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84338
84339 2003-01-10  Bruno Haible  <bruno@clisp.org>
84340
84341         * lib/alloca_.h: New file.
84342         * lib/getdate.y: Unconditionally include alloca.h.
84343         * lib/makepath.c: Likewise.
84344         * lib/setenv.c: Likewise.
84345         * lib/userspec.c: Likewise.
84346
84347 2003-01-09  Karl Berry  <karl@gnu.org>
84348
84349         * MODULES.html.sh: include `dirname $0` in PATH, to find
84350         gnulib-tool.
84351
84352 2003-01-09  Bruno Haible  <bruno@clisp.org>
84353
84354         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84355         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84356
84357 2003-01-09  Bruno Haible  <bruno@clisp.org>
84358
84359         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84360
84361 2003-01-09  Bruno Haible  <bruno@clisp.org>
84362
84363         * lib/stdbool.h.in: New file.
84364
84365 2003-01-09  Bruno Haible  <bruno@clisp.org>
84366
84367         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84368         * MODULES.html.sh: Likewise.
84369
84370 2003-01-08  Jim Meyering  <jim@meyering.net>
84371
84372         * lib/full-write.c: Undefine and define-away `const' after inclusion
84373         of errno.h, not before.  Suggestion from Bruno Haible.
84374
84375 2003-01-08  Bruno Haible  <bruno@clisp.org>
84376
84377         * modules/full-read: Depend on full-write.
84378
84379 2003-01-08  Bruno Haible  <bruno@clisp.org>
84380
84381         * lib/safe-read.c: Include specification header first, to ensure its
84382         selfcontainedness.
84383         * lib/full-write.c: Likewise.
84384
84385 2003-01-07  Jim Meyering  <jim@meyering.net>
84386
84387         * lib/full-write.c: Rework so that it may serve to define full_read,
84388         too.
84389         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84390
84391 2003-01-07  Bruno Haible  <bruno@clisp.org>
84392
84393         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84394         <inttypes.h>.
84395         * lib/xstrtol.h: Likewise.
84396         * lib/xstrtoimax.c: Likewise.
84397         * lib/xstrtoumax.c: Likewise.
84398         * lib/human.h: Likewise.
84399
84400         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84401         on systems that have <inttypes.h> but not <stdint.h>.
84402
84403 2003-01-07  Bruno Haible  <bruno@clisp.org>
84404
84405         * MODULES.html.sh: Add copyright notice.
84406         (missed_files): Omit CVS directory entries.
84407         (func_module): Make it work with sed-3.02.
84408         * MODULES.txt: Remove file.
84409
84410 2003-01-06  Jim Meyering  <jim@meyering.net>
84411
84412         * lib/version-etc.c: Update year in translatable copyright string.
84413
84414 2003-01-03  Karl Berry  <karl@gnu.org>
84415
84416         * config/config.{guess,sub}: update from prep.
84417
84418 2003-01-02  Karl Berry  <karl@gnu.org>
84419
84420         * doc/COPYING.DOC: belatedly updated to 1.2.
84421
84422 2003-01-01  Karl Berry  <karl@gnu.org>
84423
84424         * gnulib-tool (func_verify_module): report module name $module in
84425         error message, not $1.
84426         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84427         be created, only if it doesn't exist.
84428         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84429
84430 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84431
84432         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84433
84434 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84435
84436         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84437         memcmp if strcoll doesn't work.
84438
84439 2002-12-31  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84442         nonempty.
84443
84444 2002-12-31  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/memcoll.c (STRCOLL): New macro.
84447         (memcoll): Use it.
84448
84449 2002-12-31  Bruno Haible  <bruno@clisp.org>
84450
84451         * lib/localcharset.h: New file.
84452         * lib/localcharset.c: Include it.
84453         * lib/unicodeio.c: Likewise.
84454
84455 2002-12-31  Bruno Haible  <bruno@clisp.org>
84456
84457         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84458         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84459
84460 2002-12-31  Bruno Haible  <bruno@clisp.org>
84461
84462         * lib/getline.h: Include <stddef.h>, for size_t.
84463
84464         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84465         * lib/unicodeio.c: Don't include <stddef.h>.
84466
84467 2002-12-31  Bruno Haible  <bruno@clisp.org>
84468
84469         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84470         HAVE_TM_ZONE.
84471
84472 2002-12-24  Karl Berry  <karl@gnu.org>
84473
84474         * config/config.guess: update from prep.
84475
84476 2002-12-24  Bruno Haible  <bruno@clisp.org>
84477
84478         General infrasructure.
84479         * m4/README: Rewritten.
84480         * m4/onceonly.m4: New file.
84481         * m4/onceonly_2_57.m4: New file.
84482
84483         Module atexit.
84484         * m4/atexit.m4: New file.
84485
84486         Module strtod.
84487         * m4/strtod.m4: New file.
84488
84489         Module strtol.
84490         * m4/strtol.m4: New file.
84491
84492         Module strtoul.
84493         * m4/strtoul.m4: New file.
84494
84495         Module memchr.
84496         * m4/memchr.m4: New file.
84497
84498         Module memcmp.
84499         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84500         (jm_FUNC_MEMCMP): Invoke it.
84501
84502         Module memcpy.
84503         * m4/memcpy.m4: New file.
84504
84505         Module memmove.
84506         * m4/memmove.m4: New file.
84507
84508         Module memset.
84509         * m4/memset.m4: New file.
84510
84511         Module strcspn.
84512         * m4/strcspn.m4: New file.
84513
84514         Module strpbrk.
84515         * m4/strpbrk.m4: New file.
84516
84517         Module strstr.
84518         * m4/strstr.m4: New file.
84519
84520         Module strerror.
84521         * m4/strerror.m4: New file.
84522
84523         Module mktime.
84524         * m4/mktime.m4: Renamed from jm-mktime.m4.
84525         (gl_PREREQ_MKTIME): New macro.
84526         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84527
84528         Module malloc.
84529         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84530         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84531         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84532
84533         Module realloc.
84534         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84535         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84536         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84537
84538         Module strftime.
84539         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84541         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84542         gl_TM_GMTOFF.
84543         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84544
84545         Module xalloc.
84546         * m4/xalloc.m4: New file.
84547
84548         Module alloca.
84549         * m4/alloca.m4: New file.
84550
84551         Module putenv.
84552         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84553         (jm_FUNC_PUTENV): Invoke it.
84554
84555         Module setenv.
84556         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84557         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84558         when invoked twice.
84559         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84560         gt_FUNC_SETENV.
84561
84562         Module memrchr.
84563         * m4/memrchr.m4: New file.
84564
84565         Module stpcpy.
84566         * m4/stpcpy.m4: New file.
84567
84568         Module strcase.
84569         * m4/strcase.m4: New file.
84570
84571         Module strdup.
84572         * m4/strdup.m4: New file.
84573
84574         Module strnlen.
84575         * m4/strnlen.m4: New file.
84576
84577         Module strndup.
84578         * m4/strndup.m4: New file.
84579
84580         Module xstrtod.
84581         * m4/xstrtod.m4: New file.
84582
84583         Module xstrtol.
84584         * m4/xstrtol.m4: New file.
84585
84586         Module getdate.
84587         * m4/getdate.m4: New file.
84588
84589         Module unlocked-io.
84590         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84591         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84592         * m4/jm-glibc-io.m4n: Remove file.
84593
84594         Module long-options.
84595         * m4/long-options.m4: New file.
84596
84597         Module md5.
84598         * m4/md5.m4: New file.
84599
84600         Module sha.
84601         * m4/sha.m4: New file.
84602
84603         Module getstr.
84604         * m4/getstr.m4: New file.
84605
84606         Module getline.
84607         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84608         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84609         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84610         simply getline. Infoke gl_PREREQ_GETLINE.
84611
84612         Module obstack.
84613         * m4/obstack.m4: New file.
84614
84615         Module hash.
84616         * m4/hash.m4: New file.
84617
84618         Module readtokens.
84619         * m4/readtokens.m4: New file.
84620
84621         Module strverscmp.
84622         * m4/strverscmp.m4: New file.
84623
84624         Module stdbool.
84625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84626         OSF/1.
84627
84628         Module strtoll.
84629         * m4/strtoll.m4: New file.
84630
84631         Module strtoull.
84632         * m4/strtoull.m4: New file.
84633
84634         Module strtoimax.
84635         * m4/strtoimax.m4: New file.
84636
84637         Module strtoumax.
84638         * m4/strtoumax.m4: New file.
84639
84640         Module xstrtoimax.
84641         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84642         jm_AC_PREREQ_XSTRTOIMAX.
84643         Moved the strtol prerequisites to strtol.m4.
84644         Moved the strtoll prerequisites to strtoll.m4.
84645         Moved the strtoimax prerequisites to strtoimax.m4.
84646
84647         Module xstrtoumax.
84648         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84649         jm_AC_PREREQ_XSTRTOUMAX.
84650         Moved the strtoul prerequisites to strtoul.m4.
84651         Moved the strtoull prerequisites to strtoull.m4.
84652         Moved the strtoumax prerequisites to strtoumax.m4.
84653
84654         Module chown.
84655         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84656         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84657
84658         Module dup2.
84659         * m4/dup2.m4: New file.
84660
84661         Module ftruncate.
84662         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84663         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84664
84665         Module getgroups.
84666         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84667         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84668
84669         Module gettimeofday.
84670         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84671         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84672         gl_PREREQ_GETTIMEOFDAY.
84673
84674         Module mkdir.
84675         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84676         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84677
84678         Module mkstemp.
84679         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84680         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84681         jm_AC_TYPE_UINTMAX_T.
84682         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84683
84684         Module stat.
84685         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84686         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84687
84688         Module lstat.
84689         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84690         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84691
84692         Module timespec.
84693         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84694         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84695         * m4/st_mtim.m4: Indentation.
84696
84697         Module nanosleep.
84698         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84699         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84700         gl_PREREQ_NANOSLEEP.
84701
84702         Module regex.
84703         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84704         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84705         (gl_REGEX): New macro.
84706
84707         Module rename.
84708         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84709         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84710
84711         Module rmdir.
84712         * m4/rmdir.m4: New file.
84713
84714         Module utime.
84715         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84716         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84717         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84718
84719         Module dirname.
84720         * m4/dirname.m4: New file.
84721
84722         Module getopt.
84723         * m4/getopt.m4: New file.
84724
84725         Module unistd-safer.
84726         * m4/unistd-safer.m4: New file.
84727
84728         Module fnmatch.
84729         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84730         declaration.
84731         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84732         (gl_FUNC_FNMATCH_POSIX): New macro.
84733         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84734         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84735         simply fnmatch.
84736
84737         Module exclude.
84738         * m4/exclude.m4: New file.
84739
84740         Module human.
84741         * m4/human.m4: New file.
84742
84743         Module acl.
84744         * m4/acl.m4: Nop.
84745
84746         Module backupfile.
84747         * m4/backupfile.m4: New file.
84748         * m4/d-ino.m4: Indentation.
84749
84750         Module fsusage.
84751         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84752         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84753         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84754
84755         Module dirfd.
84756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84757         requirements.
84758
84759         Module euidaccess.
84760         * m4/euidaccess.m4: New file.
84761
84762         Module file-type.
84763         * m4/file-type.m4: New file.
84764
84765         Module fileblocks.
84766         * m4/fileblocks.m4: New file.
84767
84768         Module filemode.
84769         * m4/filemode.m4: New file.
84770
84771         Module isdir.
84772         * m4/isdir.m4: New file.
84773
84774         Module lchown.
84775         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84776         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84777
84778         Module makepath.
84779         * m4/makepath.m4: New file.
84780
84781         Module modechange.
84782         * m4/modechange.m4: New file.
84783
84784         Module mountlist.
84785         * m4/mountlist.m4: New file.
84786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84787         Indentation.
84788
84789         Module path-concat.
84790         * m4/path-concat.m4: New file.
84791
84792         Module pathmax.
84793         * m4/pathmax.m4: New file.
84794
84795         Module same.
84796         * m4/same.m4: New file.
84797
84798         Module save-cwd.
84799         * m4/save-cwd.m4: New file.
84800
84801         Module savedir.
84802         * m4/savedir.m4: New file.
84803
84804         Module xgetcwd.
84805         * m4/xgetcwd.m4: New file.
84806         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84807
84808         Module xreadlink.
84809         * m4/xreadlink.m4: New file.
84810
84811         Module safe-read.
84812         * m4/safe-read.m4: New file.
84813
84814         Module safe-write.
84815         * m4/safe-write.m4: New file.
84816
84817         Module closeout.
84818         * m4/closeout.m4: New file.
84819
84820         Module stdio-safer.
84821         * m4/stdio-safer.m4: New file.
84822
84823         Module getpass.
84824         * m4/getpass.m4: New file.
84825
84826         Module getugroups.
84827         * m4/getugroups.m4: New file.
84828
84829         Module group-member.
84830         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84831         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84832
84833         Module idcache.
84834         * m4/idcache.m4: New file.
84835
84836         Module userspec.
84837         * m4/userspec.m4: New file.
84838
84839         Module gettime.
84840         * m4/clock_time.m4: New file.
84841         * m4/gettime.m4: New file.
84842
84843         Module settime.
84844         * m4/settime.m4: New file.
84845
84846         Module posixtm.
84847         * m4/posixtm.m4: New file.
84848
84849         Module gethostname.
84850         * m4/gethostname.m4: New file.
84851
84852         Module canon-host.
84853         * m4/canon-host.m4: New file.
84854
84855         Module gettext.
84856         * m4/codeset.m4: New file, from gettext-0.11.5.
84857         * m4/gettext.m4: New file, from gettext-0.11.5.
84858         * m4/glibc21.m4: New file, from gettext-0.11.5.
84859         * m4/iconv.m4: New file, from gettext-0.11.5.
84860         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84861         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84862         * m4/inttypes.m4: New file, from gettext-0.11.5.
84863         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84864         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84865         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84866         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84867         * m4/lib-link.m4: New file, from gettext-0.11.5.
84868         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84869         * m4/progtest.m4: New file, from gettext-0.11.5.
84870         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84871         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84872         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84873
84874         Module localcharset.
84875         * m4/localcharset.m4: New file.
84876
84877         Module hard-locale.
84878         * m4/hard-locale.m4: New file.
84879
84880         Module mbswidth.
84881         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84882         onceonly macros.
84883         * m4/mbrtowc.m4: Add comment.
84884
84885         Module memcasecmp.
84886         * m4/memcasecmp.m4: New file.
84887
84888         Module memcoll.
84889         * m4/memcoll.m4: New file.
84890
84891         Module unicodeio.
84892         * m4/unicodeio.m4: New file.
84893
84894         Module rpmatch.
84895         * m4/rpmatch.m4: New file.
84896
84897         Module yesno.
84898         * m4/yesno.m4: New file.
84899
84900         Module exitfail.
84901         * m4/exitfail.m4: New file.
84902
84903         Module c-stack.
84904         * m4/c-stack.m4 (gl_C_STACK): New macro.
84905         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84906
84907         Module error.
84908         * m4/error.m4 (gl_ERROR): New macro.
84909         (jm_PREREQ_ERROR): Use onceonly macros.
84910
84911         Module fatal.
84912         * m4/fatal.m4: New file.
84913
84914         Module getloadavg.
84915         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84916         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84917
84918         Module getpagesize.
84919         * m4/getpagesize.m4: New file.
84920
84921         Module getusershell.
84922         * m4/getusershell.m4: New file.
84923
84924         Module physmem.
84925         * m4/physmem.m4: New file.
84926
84927         Module posixver.
84928         * m4/posixver.m4: New file.
84929
84930         Module quotearg.
84931         * m4/quotearg.m4: New file.
84932
84933         Module quote.
84934         * m4/quote.m4: New file.
84935
84936         Module readutmp.
84937         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84938
84939         Module sig2str.
84940         * m4/sig2str.m4: New file.
84941
84942         Other.
84943         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84944         ulonglong.m4.
84945         * m4/intmax_t.m4: New file.
84946         * m4/d-type.m4: Indentation.
84947         * m4/jm-macros.m4: Update.
84948         * m4/prereq.m4 (jm_PREREQ): Update.
84949         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84950         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84951         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84952         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84953         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84954         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84955         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84956         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84957         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84958         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84959         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84960         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84961         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84962         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84963         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84964         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84965         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84966         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84967         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84968
84969 2002-12-24  Bruno Haible  <bruno@clisp.org>
84970
84971         * MODULES.txt: Update according to m4/ changes.
84972
84973         Module gettext.
84974         * config.rpath: New file, from gettext-0.11.5.
84975
84976         * modules/*: New module descriptions.
84977         * gnulib-tool: New file.
84978         * MODULES.html.sh: New file.
84979
84980 2002-12-21  Karl Berry  <karl@gnu.org>
84981
84982         * doc/fdl.texi: update to version 1.2.
84983
84984 2002-12-19  Karl Berry  <karl@gnu.org>
84985
84986         * config/config.guess: update from prep.
84987
84988 2002-12-18  Bruno Haible  <bruno@clisp.org>
84989
84990         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84991         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84992
84993 2002-12-17  Bruno Haible  <bruno@clisp.org>
84994
84995         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84996         stdlib.h, string.h.
84997
84998 2002-12-17  Bruno Haible  <bruno@clisp.org>
84999
85000         * lib/canon-host.c (strdup): Remove unused declaration.
85001
85002         * lib/fsusage.c: Include full_read.h.
85003         (get_fs_usage): Use full_read instead of safe_read.
85004
85005         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85006
85007 2002-12-12  Karl Berry  <karl@gnu.org>
85008
85009         * config/config.guess: update from prep.
85010
85011 2002-12-11  Bruno Haible  <bruno@clisp.org>
85012
85013         * m4/setenv.m4: New file, from gettext-0.11.5.
85014
85015 2002-12-11  Bruno Haible  <bruno@clisp.org>
85016
85017         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85018         not unsetenv().
85019         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85020         modifications:
85021
85022         2002-12-11  Bruno Haible  <bruno@clisp.org>
85023
85024                 * setenv.c (alloca): Fall back to malloc.
85025                 (freea): New macro.
85026                 (setenv): Use freea() to free memory allocated with alloca().
85027
85028         2002-11-13  Bruno Haible  <bruno@clisp.org>
85029
85030                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85031                 function declarations.
85032                 * unsetenv.c (unsetenv): Likewise.
85033
85034         2002-03-04  Bruno Haible  <bruno@clisp.org>
85035
85036                 Portability to AIX 4.3.3.
85037                 * unsetenv.c: New file, extracted from setenv.c.
85038                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85039
85040         2001-12-20  Bruno Haible  <bruno@clisp.org>
85041
85042                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85043                 use malloc instead. For SunOS 4.
85044
85045         2001-12-11  Bruno Haible  <bruno@clisp.org>
85046
85047                 * setenv.c: Declare alloca.
85048                 (compar_fn_t): New typedef.
85049                 (KNOWN_VALUE, STORE_VALUE): Use it.
85050
85051         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85052         setenv.h.
85053
85054 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85055
85056         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85057         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85058         Choose values that are less likely to collide with system fnmatch
85059         options.
85060         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85061         defined (e.g., a pure POSIX system).
85062         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85063         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85064
85065 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85066
85067         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85068         a pain in practice to deal with generated m4 files.  This change
85069         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85070
85071         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85072         and jm-glibc-io.m4, as they are no longer a special case.
85073         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85074         kludge and the auto-generation stuff.  Check only whether the
85075         functions are declared, not whether they exist, since older hosts
85076         that don't declare the functions can't use the optimization anyway.
85077
85078 2002-12-06  Jim Meyering  <jim@meyering.net>
85079
85080         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85081
85082         Merge in changes from libc's misc/error.c, in preparation
85083         for the merge of gnulib's changes back into libc.
85084
85085         * lib/error.c (_): Define only if not already defined.
85086         Move definition to follow all #include directives.
85087         Include unlocked-io.h only if !_LIBC.
85088         [_LIBC]: Include <libio/libioP.h>.
85089         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85090         (fflush): Tweak definition to use INTUSE.
85091         (putc): Define.
85092
85093 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85094
85095         * lib/alloca.c [defined emacs]: Include "lisp.h".
85096         (xalloc_die) [defined emacs]: New macro.
85097         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85098         [! defined emacs]: Include <xalloc.h>.
85099         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85100         (pointer): Typedef to POINTER_TYPE *.
85101         (malloc): Remove decl; we now always use xmalloc.
85102         (alloca): Use old-style definition, since Emacs needs this.
85103         Check for arithmetic overflow when computing combined size.
85104
85105 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85106
85107         Do not generate unlocked-io.h automatically, since it's easier to
85108         maintain it by hand.
85109
85110         * lib/unlocked-io.h: New file, from GNU diffutils,
85111         but with proper copyright notice and attribution.
85112         * lib/gen-uio: Remove.
85113         * lib/Makefile.am: Add copyright notice.
85114         (libfetish_a_SOURCES): Add unlocked-io.h.
85115         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85116         (DISTCLEANFILES, io_functions): Remove macros.
85117         (EXTRA_DIST): Remove gen_uio.
85118         (unlocked-io.h): Remove rule.
85119
85120 2002-12-04  Jim Meyering  <jim@meyering.net>
85121
85122         Reflect the fact that stat.c and lstat.c are no longer generated.
85123         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85124         (DISTCLEANFILES): Likewise.
85125         (EXTRA_DIST): Likewise.
85126         (all_local): Don't depend on stat.c or lstat.c.
85127         (stat.c, lstat.c): Remove rules.
85128         (EXTRA_DIST): Remove xstat.in.
85129
85130         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85131         * lib/stat.c: New file.  Contents mostly from xstat.in.
85132         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85133         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85134
85135         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85136         too.
85137         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85138
85139 2002-12-03  Jim Meyering  <jim@meyering.net>
85140
85141         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85142         but not semantics, to minimize the differences between these two files.
85143         (safe_read): Change comment to mention SAFE_READ_ERROR.
85144
85145         * lib/safe-read.c (IS_EINTR): Define.
85146         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85147
85148 2002-12-02  Jim Meyering  <jim@meyering.net>
85149
85150         * lib/safe-read.c (EINTR): Define.
85151         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85152         (INT_MAX): Provide fallback.
85153         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85154
85155         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85156
85157 2002-12-02  Bruno Haible  <bruno@clisp.org>
85158
85159         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85160         Define, taken from safe-read.c.
85161         (INT_MAX): Provide fallback.
85162         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85163         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85164
85165         * lib/safe-read.c (EINTR): Remove definition.
85166         (safe_read): Don't use EINTR if it is absent.
85167
85168 2002-12-01  Jim Meyering  <jim@meyering.net>
85169
85170         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85171         zero.
85172         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85173
85174 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85175
85176         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85177         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85178         with `if (! (value < limit)) abort ();', for readability.
85179
85180 2002-11-26  Karl Berry  <karl@gnu.org>
85181
85182         * lib/strdup.c: copy from libc again, with jim's ok.
85183         * lib/.cppi-disable: re-add strdup.c
85184
85185 2002-11-25  Karl Berry  <karl@gnu.org>
85186
85187         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85188         instead of "strtol.c".
85189
85190 2002-11-25  Karl Berry  <karl@gnu.org>
85191
85192         * config/install-sh: update from automake for variable quoting, $0 in
85193         error msgs, etc.
85194
85195         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85196         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85197         entry.
85198
85199 2002-11-25  Jim Meyering  <jim@meyering.net>
85200
85201         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85202
85203 2002-11-24  Karl Berry  <karl@gnu.org>
85204
85205         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85206         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85207
85208 2002-11-24  Jim Meyering  <jim@meyering.net>
85209
85210         Update from coreutils:
85211
85212         * lib/mktime.c: Merge in changes from libc.
85213
85214         Avoid a link-time failure on some Linux systems.
85215         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85216         (otherwise).
85217         (__mon_yday): Declare with the STATIC attribute.
85218         (__mktime_internal): Likewise.
85219         Based on a report from Greg Schafer.
85220
85221 2002-11-23  Jim Meyering  <jim@meyering.net>
85222
85223         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85224         Use `unsigned', not `int', as type of index.
85225
85226         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85227
85228         * lib/fsusage.c: Remove unneeded parentheses around operands of
85229         `defined'.
85230
85231 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85232
85233         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85234         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85235         so that we can be included first.
85236         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85237         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85238         No need to include stddef.h or sys/types.h any more.
85239         Surround local include files with "", not "<>".
85240         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85241         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85242         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85243         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85244         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85245         (ISPRINT): Remove; no longer needed now that we assume C89.
85246
85247         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85248         Preserve errno.
85249
85250         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85251         quotearg_char): Use SIZE_MAX rather than
85252         (size_t) -1 when we are talking about "infinity".
85253
85254         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85255
85256 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85257
85258         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85259         hint that one should use `if (! x) abort ();' rather than `assert
85260         (x);', and anyway it's one less thing to worry about configuring.
85261         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85262         hash_rehash, hash_insert): Use abort rather than assert.
85263
85264 2002-11-22  Bruno Haible  <bruno@clisp.org>
85265
85266         * lib/safe-read.h: Assume C89. Add comments.
85267         (safe_read): Change return type to size_t.
85268         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85269         byte counts > SSIZE_MAX correctly.
85270         * lib/safe-write.h: New file.
85271         * lib/safe-write.c: New file.
85272         * lib/full-read.h: New file.
85273         * lib/full-read.c: New file.
85274         * lib/full-write.h: Assume C89. Add comments.
85275         * lib/full-write.c: Include safe-write.h.
85276         (full_write): Rewritten to use safe_write.
85277         Suggested by Jim Meyering and Paul Eggert.
85278
85279 2002-11-21  Jim Meyering  <jim@meyering.net>
85280
85281         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85282
85283         Merge in changes from the coreutils.
85284
85285         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85286         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85287         <stdint.h>.
85288         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85289         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85290         int.  Work more efficiently if X is the same width as uintmax_t.
85291         Do not compare X to -1, to avoid bogus compiler warning.
85292         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85293         Don't assume that f_frsize and f_bsize are the same type.
85294
85295         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85296         warning on FreeBSD.
85297
85298         * lib/makepath.c (make_path): Restore umask *before* creating the final
85299         component.
85300         (make_path): Minor reformatting.
85301
85302         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85303         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85304         HAVE_MALLOC/HAVE_REALLOC.
85305
85306         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85307         dummy ones.  At least on GNU/Linux systems, `auto' means something
85308         else.
85309         From Michael Stone.
85310
85311 2002-11-21  Bruno Haible  <bruno@clisp.org>
85312
85313         Remove case insensitive option matching.
85314         * lib/argmatch.h (argcasematch): Remove declaration.
85315         (ARGCASEMATCH): Remove macro.
85316         (__xargmatch_internal): Remove case_sensitive argument.
85317         (XARGMATCH): Update.
85318         (XARGCASEMATCH): Remove macro.
85319         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85320         case_sensitive argument.
85321         (argcasematch): Remove function.
85322         (__xargmatch_internal): Remove case_sensitive argument.
85323         (main): Use XARGMATCH instead of XARGCASEMATCH.
85324
85325         * lib/xmalloc.c: Change compile-time error message. Add comment about
85326         required autoconf version.
85327
85328 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85329
85330         Merge argmatch cleanups from Bison.  Assume C89.
85331
85332         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85333         Include stdlib.h, for EXIT_FAILURE.
85334         Always include <string.h>, since we assume C89.
85335         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85336         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85337         Include <stddef.h> instead, since it's all we need for size_t.
85338         (PARAMS): Remove.  All uses removed.
85339         (ARRAY_CARDINALITY): Do not bother to #undef.
85340         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85341         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85342         Remove unnecessary parentheses.
85343         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85344         Insert necessary parentheses.
85345         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85346         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85347
85348 2002-11-19  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85351         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85352
85353         * lib/mbswidth.h (PARAMS): Remove macro.
85354         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85355         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85356
85357         * lib/gcd.h (PARAMS): Remove macro.
85358         (gcd): Use ANSI C function declarations.
85359         * lib/gcd.c (gcd): Likewise.
85360
85361 2002-11-15  Bruno Haible  <bruno@clisp.org>
85362
85363         * lib/strcspn.c: Include <stddef.h>.
85364         (strcspn): Use ANSI C function declaration. Change return type to
85365         size_t. Use NULL.
85366         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85367         (strpbrk): Use NULL.
85368         * lib/strpbrk.h (PARAMS): Remove macro.
85369         (strpbrk): Use ANSI C function declaration.
85370         * lib/strstr.c: Don't include <sys/types.h>.
85371         * lib/strstr.h (PARAMS): Remove macro.
85372         (strstr): Use ANSI C function declarations.
85373
85374 2002-11-14  Karl Berry  <karl@gnu.org>
85375
85376         * config/mkinstalldirs: `do' on separate line, instead of
85377         `for var; do'.
85378
85379 2002-11-06  Bruno Haible  <bruno@clisp.org>
85380
85381         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85382         * lib/gcd.c (gcd): Likewise.
85383
85384 2002-11-05  Bruno Haible  <bruno@clisp.org>
85385
85386         * lib/gcd.h: New file, from gettext-0.11.5.
85387         * lib/gcd.c: New file, from gettext-0.11.5.
85388
85389 2002-11-05  Bruno Haible  <bruno@clisp.org>
85390
85391         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85392         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85393         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85394         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85395
85396         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85397         <libintl.h>.
85398         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85399         <libintl.h>.
85400
85401         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85402         * lib/human.c: Include gettext.h instead of <libintl.h>.
85403         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85404         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85405         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85406         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85407         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85408         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85409         (textdomain): Remove definition.
85410         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85411
85412         * lib/long-options.c: Remove include of <libintl.h> and definition of
85413         _.
85414         * lib/same.c: Remove include of <libintl.h> and definition of _.
85415
85416 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85417
85418         * lib/config.charset: A few additions for Solaris.
85419
85420 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85421
85422         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85423         * lib/localcharset.c (locale_charset): Declare as extern "C".
85424
85425 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85426
85427         * lib/config.charset: msdos in uk_UA uses CP1125.
85428
85429 2002-11-04  Bruno Haible  <bruno@clisp.org>
85430
85431         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85432         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85433         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85434         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85435         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85436
85437 2002-11-04  Bruno Haible  <bruno@clisp.org>
85438
85439         * lib/localcharset.c (locale_charset): Don't return an empty string.
85440
85441 2002-11-04  Bruno Haible  <bruno@clisp.org>
85442
85443         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85444         aliases.
85445
85446 2002-11-04  Bruno Haible  <bruno@clisp.org>
85447
85448         * lib/config.charset: Update for newest glibc. Add canonical names
85449         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85450
85451 2002-11-04  Bruno Haible  <bruno@clisp.org>
85452
85453         * lib/config.charset: Add support for NetBSD.
85454
85455 2002-11-04  Bruno Haible  <bruno@clisp.org>
85456
85457         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85458
85459 2002-11-01  Bruno Haible  <bruno@clisp.org>
85460
85461         * configure.in: Add AC_CONFIG_AUX_DIR call.
85462         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85463         test/Makefile.
85464         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85465
85466 2002-09-28  Karl Berry  <karl@gnu.org>
85467
85468         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85469         installed automake until the next release, since changes have been
85470         made.
85471
85472 2002-09-25  Karl Berry  <karl@gnu.org>
85473
85474         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85475         * lib/getopt*: copy from libc/posix.
85476         * lib/gettext.h: copy from gettext.
85477         * lib/.cppi-disable: add strdup.c, gettext.h.
85478
85479 2002-09-25  Karl Berry  <karl@gnu.org>
85480
85481         * config/srclist.txt: enable gettext.h check.
85482         * config/config.{guess,sub}: update from prep.
85483         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85484                 from automake 1.6.3.
85485         See srclist*.
85486
85487 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85488
85489         * regex.c (PATFETCH): Remove the translating fetch.
85490         (PATFETCH_RAW): Rename to PATFETCH.
85491         (set_image_of_range): New fun.
85492         (SET_RANGE_TABLE_WORK_AREA): Use it.
85493         (regex_compile): Don't translate the pattern chars so eagerly.
85494         Only do it when inserting an `exactn' bytecode or when handling
85495         a char-range.
85496         (mutually_exclusive_p): Avoid empty statement.
85497
85498 2002-07-06  Jim Meyering  <meyering@lucent.com>
85499
85500         * m4/README: Don't mention Makefile.am.in.
85501         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85502
85503 2002-07-01  Jim Meyering  <meyering@lucent.com>
85504
85505         * lib/c-stack.c: Include sys/time.h.
85506         From Volker Borchert.
85507
85508 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85509
85510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85511
85512 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85513
85514         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85515         New macro.  Use it uniformly instead of
85516         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85517         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85518         reported by Vin Shelton.
85519
85520 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85521
85522         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85523         Do not assume SA_SIGINFO behavior.
85524         Bug reported by Jim Meyering on NetBSD 1.5.2.
85525
85526 2002-06-22  Jim Meyering  <meyering@lucent.com>
85527
85528         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85530
85531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85532         now that configure.ac uses AC_GNU_SOURCE.
85533         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85534         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85535
85536         Update to latest tools.  Suggestions from Paul Eggert.
85537         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85538         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85539         * m4/fnmatch.m4: Likewise.
85540         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85541         to AC_HEADER_STDBOOL
85542
85543 2002-06-22  Jim Meyering  <meyering@lucent.com>
85544
85545         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85546         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85547
85548 2002-06-22  Jim Meyering  <meyering@lucent.com>
85549
85550         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85551
85552         * lib/exitfail.c, exitfail.h: Likewise.
85553         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85554
85555         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85556         of fnmatch.h.
85557         (EXTRA_DIST): Add fnmatch_loop.c.
85558         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85559
85560         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85561         * lib/fnmatch.c: Update from diffutils-2.8.2.
85562         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85563         * lib/fnmatch.h: Remove file.
85564
85565 2002-06-21  Jim Meyering  <meyering@lucent.com>
85566
85567         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85568         * m4/mbrtowc.m4: Likewise.
85569
85570         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85571         * m4/mbswidth.m4: Reflect name change:
85572         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85574
85575         * m4/lib-link.m4: Update from gettext-0.11.2.
85576         * m4/gettext.m4: Likewise.
85577
85578         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85579         From Alfred M. Szmidt.
85580
85581 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/file-type.h: Report an error if neither S_ISREG nor
85584         S_IFREG is defined, instead of using a test specific to glibc
85585         2.2.  This should be safe, since POSIX requires S_ISREG and
85586         Unix Version 7 had S_IFREG.  We don't need to check for
85587         <sys/types.h> since we don't use any symbols that it defines.
85588
85589 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85590
85591         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85592         $@-t, so that each temporary file name is unique and valid in the first
85593         8 characters, for operation under DOS.
85594
85595 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85596
85597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85598
85599 2002-06-15  Jim Meyering  <meyering@lucent.com>
85600
85601         Work even with DJGPP 2.03, which lacks support for symlinks.
85602         From Richard Dawe.
85603         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85604         is defined.
85605         * lib/lchown.c (S_ISLNK): Likewise.
85606
85607 2002-06-15  Jim Meyering  <meyering@lucent.com>
85608
85609         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85610         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85611         have been included before this file.
85612
85613 2002-06-14  Jim Meyering  <meyering@lucent.com>
85614
85615         * lib/file-type.h: Use the version from diffutils-2.8.2.
85616         * lib/file-type.c: Likewise.
85617
85618 2002-06-07  Jim Meyering  <meyering@lucent.com>
85619
85620         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85621         They're needed at least for NetBSD 1.5.2.
85622         ($statxfs_includes): Include those same headers.
85623         ($statxfs_includes): Include sys/vfs.h if available.
85624         ($statxfs_includes): Likewise for sys/statvfs.h.
85625         Check for the following members in both structs statfs and statvfs:
85626         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85627
85628 2002-06-01  Jim Meyering  <meyering@lucent.com>
85629
85630         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85631         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85632
85633 2002-05-28  Jim Meyering  <meyering@lucent.com>
85634
85635         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85636         Reported by Volker Borchert.
85637
85638 2002-05-27  Jim Meyering  <meyering@lucent.com>
85639
85640         Fix a problem seen only on nonconforming systems whereby ls.c's
85641         use of localtime, and then of gettimeofday would cause trouble:
85642         the localtime call used to initialize rpl_gettimeofday's save
85643         mechanism would clobber ls's current local time information so
85644         that in any long listing the first file would always be listed
85645         with date 1970-01-01.  Analysis by Volker Borchert.
85646
85647         * lib/gettimeofday.c (localtime): Undefine.
85648         (rpl_localtime): New function.
85649
85650 2002-05-27  Jim Meyering  <meyering@lucent.com>
85651
85652         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85653         localtime.
85654
85655         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85656         use the replacement function; it wouldn't resolve at link time.
85657         Reported by Volker Borchert.
85658
85659 2002-05-22  Jim Meyering  <meyering@lucent.com>
85660
85661         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85662         file-type.h.
85663         * lib/file-type.h: New file.
85664         * lib/file-type.c (file_type): New file/function.  Extracted from
85665         diffutils.
85666
85667 2002-04-30  Jim Meyering  <meyering@lucent.com>
85668
85669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85670
85671 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85672
85673         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85674
85675 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85676
85677         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85678         Do not check for alloca.h (no longer used) or stdbool.h (was never
85679         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85680
85681 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85682
85683         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85684
85685 2002-04-29  Jim Meyering  <meyering@lucent.com>
85686
85687         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85688         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85689         Use AC_FUNC_STRNLEN here instead.
85690
85691         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85692         With autoconf-2.53a, it's part of AC_PROG_CC.
85693
85694 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85695
85696         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85697         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85698
85699 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85700
85701         * lib/sig2str.h, lib/sig2str.c: New files.
85702         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85703
85704 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85705
85706         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85707         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85708         of 127, since 64 is the largest conceivable number for ancient
85709         nonstandard hosts.
85710         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85711
85712 2002-04-28  Jim Meyering  <meyering@lucent.com>
85713
85714         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85715
85716 2002-04-24  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85719         (jm_PREREQ): Use it.
85720
85721         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85722         mach/mach.h fcntl.h.
85723         Check for this function: setlocale.
85724
85725 2002-04-24  Jim Meyering  <meyering@lucent.com>
85726
85727         * lib/gettext.h: New file, from Gettext.
85728         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85729         (libfetish_a_SOURCES): Add gettext.h.
85730
85731 2002-04-16  Jim Meyering  <meyering@lucent.com>
85732
85733         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85734         ut_pid, ut_id, ut_exit.
85735
85736 2002-04-16  Jim Meyering  <meyering@lucent.com>
85737
85738         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85739         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85740         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85741
85742 2002-04-12  Jim Meyering  <meyering@lucent.com>
85743
85744         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85745         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85746         existence of the getmntinfo function.  Needed for Darwin 5.3.
85747
85748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85749         This is necessary at least on Darwin 5.3.
85750
85751         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85752         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85753         strnlen.o in the library, and that makes some versions of ranlib
85754         object.
85755
85756 2002-04-12  Jim Meyering  <meyering@lucent.com>
85757
85758         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85759
85760 2002-04-09  Jim Meyering  <meyering@lucent.com>
85761
85762         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85763         to be more precise.  Rather than saying we're checking whether the
85764         function `works', say what we're testing.
85765         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85766         Reported by Bruno Haible.
85767
85768 2002-03-10  Jim Meyering  <meyering@lucent.com>
85769
85770         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85771         Suggestion from Santiago Vila.
85772
85773 2002-03-08  Jim Meyering  <meyering@lucent.com>
85774
85775         * lib/rename.c: Mention that this wrapper is needed also on
85776         mips-dec-ultrix4.4 systems.
85777
85778 2002-03-02  Jim Meyering  <meyering@lucent.com>
85779
85780         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85781         not HAVE_CLOCK_SETTIME.
85782
85783 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85784
85785         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85786         Check for clock_settime.
85787
85788 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85789
85790         * lib/nanosleep.h: Rename to....
85791         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85792
85793         * lib/gettime.c: New file.
85794         * lib/settime.c: New file.
85795         * lib/stime.c: Remove.
85796
85797         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85798         timespec.h.  Remove nanosleep.h.
85799
85800 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85801
85802         * m4/acl.m4: New file.
85803         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85804         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85805
85806 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85807
85808         * lib/acl.c, lib/acl.h: New files.
85809         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85810
85811 2002-02-24  Jim Meyering  <meyering@lucent.com>
85812
85813         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85814         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85815         cause trouble.  Reported by Nelson Beebe.
85816
85817 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85818
85819         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85820         compilers that don't know that xalloc_die never returns.
85821
85822 2002-02-20  Jim Meyering  <meyering@lucent.com>
85823
85824         * lib/getdate.c: Regenerate using bison-1.33.
85825
85826 2002-02-17  Jim Meyering  <meyering@lucent.com>
85827
85828         * config/config.guess (main): Don't use `head -1'; it's no longer
85829         portable. Use `sed 1q' instead.
85830
85831 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85832
85833         * m4/codeset.m4: Upgrade to gettext-0.11.
85834         * m4/gettext.m4: Upgrade to gettext-0.11.
85835         * m4/glibc21.m4: Upgrade to gettext-0.11.
85836         * m4/iconv.m4: Upgrade to gettext-0.11.
85837         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85838         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85839         * m4/lib-ld.m4: New file, from gettext-0.11.
85840         * m4/lib-link.m4: New file, from gettext-0.11.
85841         * m4/lib-prefix.m4: New file, from gettext-0.11.
85842         * m4/progtest.m4: Upgrade to gettext-0.11.
85843
85844 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85845
85846         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85847         (jm_PREREQ): Use it.
85848
85849 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85850
85851         * lib/posixver.c, lib/posixver.h: New files.
85852         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85853
85854 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85855             Bruno Haible  <bruno@clisp.org>
85856
85857         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85858         (fwrite_success_callback): New declaration.
85859         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85860         print_unicode_char. Call failure callback instead of error.
85861         (fwrite_success_callback): New function.
85862         (exit_failure_callback): New function.
85863         (fallback_failure_callback): New function.
85864         (print_unicode_char): Call unicode_to_mb.
85865
85866 2002-01-26  Jim Meyering  <meyering@lucent.com>
85867
85868         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85869         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85870
85871 2002-01-26  Jim Meyering  <meyering@lucent.com>
85872
85873         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85874
85875 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85876
85877         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85878
85879 2002-01-22  Jim Meyering  <meyering@lucent.com>
85880
85881         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85882         Otherwise, some versions of automake would omit the rule that makes
85883         Makefile from Makefile.in.
85884
85885 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85886
85887         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85888         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85889         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85890         (memcoll): Set errno to zero if there is no error.
85891
85892         * lib/quotearg.c (quotearg_buffer_restyled):
85893         Fix bug with quoting buffers containing NUL when backslashing escapes.
85894         This bug was exposed by the other changes in this patch.
85895         (quotearg_n_options): New arg ARGSIZE.
85896         All callers changed.
85897         (quoting_options_from_style): New function.
85898         (quotearg_n_style): Use it.
85899         (quotearg_n_style_mem): New function.
85900
85901         * lib/quotearg.h (quotearg_n_style_mem): New function.
85902
85903 2002-01-19  Jim Meyering  <meyering@lucent.com>
85904
85905         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85906         Remove useless quotes: DF_PROG="df".
85907         * m4/strnlen.m4: New file.
85908
85909 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85910
85911         * lib/backupfile.c (ISDIGIT): Comment fix.
85912         * lib/getdate.y (ISDIGIT): Likewise.
85913         * lib/posixtm.c (ISDIGIT, year): Likewise.
85914         * lib/strverscmp.c (ISDIGIT): Likewise.
85915         * lib/userspec.c (ISDIGIT): Likewise.
85916
85917 2002-01-16  Jim Meyering  <meyering@lucent.com>
85918
85919         * lib/getdate.y: Add three semicolons, each just before a closing
85920         brace. Bison (as of version 1.31) no longer papers over that mistake.
85921
85922 2002-01-05  Jim Meyering  <meyering@lucent.com>
85923
85924         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85925
85926 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85927
85928         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85929         not silently exit merely because the output buffer happens to
85930         have nothing pending.
85931
85932 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85933
85934         See the big note in ../ChangeLog.
85935         * lib/human.c (suffixes): Prefer K to k for 1024.
85936         (generate_suffix_backwards): New function.
85937         (human_readable_inexact): Use it.
85938         * lib/xstrtol.c (__xstrtol): If there is no number but there
85939         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85940         Accept 'K' as well as 'k'.
85941
85942 2001-12-15  Jim Meyering  <meyering@lucent.com>
85943
85944         * lib/regex.h (__restrict_arr): Update from libc.
85945
85946         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85947         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85948         (STREQ): Define.
85949
85950 2001-12-14  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85953         Suggestion from Bruno Haible.
85954
85955 2001-12-10  Jim Meyering  <meyering@lucent.com>
85956
85957         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85958         xrealloc, Instead, include "xalloc.h".
85959         (initbuffer): Don't cast xmalloc return value to char*.
85960         (readline): Reword comment.
85961         Don't cast xrealloc return value to char*
85962         Return NULL, not 0.
85963
85964 2001-12-09  Jim Meyering  <meyering@lucent.com>
85965
85966         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85967         about `signed and unsigned type in conditional expression'.
85968         * lib/posixtm.c (posix_time_parse): Likewise.
85969
85970         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85971
85972         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85973         to avoid a pedantic warning.
85974
85975         * lib/getstr.c: Don't include assert.h.
85976         (getstr): Remove warning-evoking assertions.
85977         Return -1 if offset parameter is out of bounds.
85978         Change the type of a local from int to size_t.
85979
85980         * lib/strftime.c (my_strftime_localtime_r): Include this function
85981         definition in the `#if ! HAVE_TM_GMTOFF' block.
85982
85983         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85984         Include xalloc.h instead.
85985
85986 2001-12-02  Jim Meyering  <meyering@lucent.com>
85987
85988         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85989         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85990         included.
85991
85992         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85993         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85994
85995 2001-11-30  Akim Demaille  <akim@epita.fr>
85996
85997         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85998         before being defined.
85999
86000 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86001
86002         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86003         First arg is int, not unsigned.
86004         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86005         (SIZE_MAX, UINT_MAX): New macros.
86006         (quotearg_n_options): Abort if N is negative.
86007         Avoid overflow check on hosts where size_t is 64 bits and int
86008         is 32 bits, as overflow is impossible there.
86009         Fix off-by-one typo that caused unnecessary reallocation.
86010
86011 2001-11-27  Jim Meyering  <meyering@lucent.com>
86012
86013         * lib/tempname.c: Merge with version from libc.
86014         * lib/regex.c: Likewise.
86015
86016         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86017         systems for which STDC_HEADERS is 0, it was not included, resulting in
86018         a warning about an integer-to-pointer conversion problem with getenv.
86019         Reported by Volker Borchert.
86020
86021 2001-11-26  Jim Meyering  <meyering@lucent.com>
86022
86023         * lib/gtod.h: Remove file.
86024         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86025         * lib/gettimeofday.c: Don't include gtod.h.
86026         (GTOD_init): Remove function.
86027         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86028         Suggestion from Volker Borchert.
86029
86030 2001-11-23  Jim Meyering  <meyering@lucent.com>
86031
86032         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86033         it.
86034         * lib/hash.c (struct hash_table): Define it here instead.
86035
86036 2001-11-22  Jim Meyering  <meyering@lucent.com>
86037
86038         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86039
86040 2001-11-20  Jim Meyering  <meyering@lucent.com>
86041
86042         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86043         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86044
86045 2001-11-19  Jim Meyering  <meyering@lucent.com>
86046
86047         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86048         directory.  Use "conftestXXXXXX" as the template.
86049         Suggestion from Paul Eggert.
86050
86051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86052         immediately, so the test doesn't mistakenly hit the max-open-files
86053         limit.
86054
86055 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86056
86057         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86058         (TEMPORARIES): New macro.
86059         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86060         removes an artificial limitation (e.g. HP-UX 10.20, where
86061         TMP_MAX is 17576).
86062
86063 2001-11-18  Jim Meyering  <meyering@lucent.com>
86064
86065         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86066
86067 2001-11-18  Jim Meyering  <meyering@lucent.com>
86068
86069         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86070         on SunOS 4.
86071
86072         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86073         files will be created before anything else.
86074
86075 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86076
86077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86078         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86079
86080 2001-11-17  Jim Meyering  <meyering@lucent.com>
86081
86082         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86083         Prompted by a report from Bob Proulx.
86084
86085         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86086         Instead, require UTILS_FUNC_MKSTEMP.
86087
86088 2001-11-17  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86091         Now, that's done as part of AC_FUNC_STRTOD.
86092
86093 2001-11-17  Jim Meyering  <meyering@lucent.com>
86094
86095         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86096         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86097         rather than group writable.  Patch by Juan F. Codagnone.
86098
86099         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86100         xrealloc, Instead, include "xalloc.h".
86101
86102         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86103         Remove explicit declarations of xmalloc, xrealloc,
86104         and xstrdup.  Instead, include "xalloc.h".
86105
86106         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86107         unlocked-io.h.
86108         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86109         Likewise.
86110         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86111
86112         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86113         Reported by Padraig Brady.
86114
86115         * lib/mkstemp.c: #undef mkstemp.
86116         Include config.h.
86117         (rpl_mkstemp): Rename from mkstemp.
86118         Protoize.
86119
86120 2001-11-16  Jim Meyering  <meyering@lucent.com>
86121
86122         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86123         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86124         determine the amount of total physical memory, use pstat_getstatic.
86125         HPUX-11 doesn't define _SC_PHYS_PAGES.
86126         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86127         If sysconf couldn't be used to determine the amount of available
86128         physical memory, use both pstat_getstatic and pstat_getdynamic.
86129         Based on a patch from Bob Proulx.
86130
86131 2001-11-10  Jim Meyering  <meyering@lucent.com>
86132
86133         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86134         (jm_PREREQ): Use it.
86135
86136 2001-11-09  Jim Meyering  <meyering@lucent.com>
86137
86138         * m4/jm-macros.m4: Require autoconf-2.52f.
86139         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86140         Use these AC_-prefixed names, not the AM_-prefixed ones.
86141
86142         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86143
86144 2001-11-05  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86147
86148 2001-11-04  Jim Meyering  <meyering@lucent.com>
86149
86150         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86151         $DEFS.
86152
86153 2001-11-03  Jim Meyering  <meyering@lucent.com>
86154
86155         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86156         of AC_DEFUN.
86157
86158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86159         know the name of the variable in the macro definition.
86160
86161 2001-11-03  Jim Meyering  <meyering@lucent.com>
86162
86163         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86164         in argmatch_to_argument call.
86165
86166         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86167         argument.
86168
86169         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86170         e.g., a fault due to an attempt to free a NULL pointer.
86171
86172 2001-11-01  Jim Meyering  <meyering@lucent.com>
86173
86174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86175         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86176
86177 2001-11-01  Jim Meyering  <meyering@lucent.com>
86178
86179         * lib/dirfd.c, lib/dirfd.h: New files.
86180         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86181
86182         * lib/hash.c (hash_print) [TESTING]: Clean up.
86183
86184 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86185
86186         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86187         to avoid a warning if -Wall.
86188
86189 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86190
86191         * README: New file
86192         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86193         (per RMS's instructions, this is now the canonical source)
86194         * lgpl/, gpl/: New directories.
86195
86196 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86197
86198         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86199
86200 2001-10-21  Jim Meyering  <meyering@lucent.com>
86201
86202         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86203         this code would end up calling gettext even in packages built
86204         with --disable-nls.
86205         * lib/getopt.c (_): Likewise.
86206         * lib/regex.c (_): Likewise.
86207
86208 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86209
86210         * m4/error.m4 (jm_PREREQ_ERROR):
86211         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86212         AC_FUNC_STRERROR_R does that.
86213         Check for strerror declaration.
86214
86215         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86216         are supposed to have them these days.
86217         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86218         Merge changes from latest Autoconf CVS.
86219         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86220         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86221         POSIX decided to standardize on the int flavor of strerror_r.
86222
86223 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86224
86225         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86226         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86227         Use strerror_r that is only a macro, even if it is not a function.
86228         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86229         (private_strerror): Use prototypes, not old-style function definition.
86230         (print_errno_message): New function.
86231         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86232         char*-flavored one.
86233         (error_tail, error, error_at_line): Use it.
86234
86235 2001-10-11  Jim Meyering  <meyering@lucent.com>
86236
86237         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86238         and quote_n (1, ... to avoid clobbering a buffer.
86239
86240 2001-10-05  Jim Meyering  <meyering@lucent.com>
86241
86242         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86243         hash-pjw.h.
86244         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86245         * lib/hash-pjw.h: New file.
86246
86247 2001-09-30  Jim Meyering  <meyering@lucent.com>
86248
86249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86250         `struct fsstat' has the `f_fstypename' member.
86251         Use that to define FS_TYPE, which is now used to make
86252         the getfsstat link test tighter.
86253
86254 2001-09-30  Jim Meyering  <meyering@lucent.com>
86255
86256         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86257         Include <sys/ucred.h>, for Apple Darwin.
86258         Include sys/mount.h and sys/fs_types.h only if available.
86259         (FS_TYPE): Define.
86260         (read_filesystem_list): Use FS_TYPE.
86261
86262 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86263
86264         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86265         a boolean context.
86266
86267 2001-09-29  Jim Meyering  <meyering@lucent.com>
86268
86269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86270         [one-argument getmntent function]): Include stdio.h before mntent.h.
86271         SunOS 4.1.x needs it for the declaration of `FILE'.
86272         Patch by Volker Borchert.
86273
86274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86275         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86276         sys/fs_types.h, and make the link-test for getfsstat guard #include
86277         directives with appropriate #if HAVE_*_H tests so that we can
86278         detect getfsstat on Apple Darwin1.3.7 systems.
86279         Reported by Nelson Beebe.
86280         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86281
86282 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86283
86284         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86285         #defines strtoimax.  Also treat the other strto* functions
86286         like strtoimax.
86287
86288         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86289         Check for strtoul and strtoumax,
86290         as those declarations are made even in the signed case.
86291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86292         Likewise, for strtol and strtoimax.
86293
86294 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86295
86296         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86297         #defines strtoimax.  Also treat the other strto* functions
86298         like strtoimax.
86299
86300         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86301         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86302         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86303
86304 2001-09-26  Jim Meyering  <meyering@lucent.com>
86305
86306         Most macros in unlocked-io.h had the wrong number of arguments.
86307         * lib/gen-uio: New script.
86308         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86309         * lib/unlocked-io.hin: Remove file.
86310         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86311         rather than trying to embed it here.
86312         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86313         Reported by Padraig Brady.
86314
86315 2001-09-25  Volker Borchert  <bt@teknon.de>
86316
86317         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86318         `result'.
86319
86320 2001-09-24  Jim Meyering  <meyering@lucent.com>
86321
86322         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86323
86324 2001-09-23  Jim Meyering  <meyering@lucent.com>
86325
86326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86327         instead of the mere test for existence of mntent.h.  The latter
86328         would get a false-positive on AIX 3.4 systems.
86329         In the outer getmntent if-block, don't die if neither of the getmntent
86330         tests succeeds.  Instead, just fall through and continue with the
86331         remaining tests.
86332
86333 2001-09-23  Jim Meyering  <meyering@lucent.com>
86334
86335         * lib/mountlist.c: Remove useless parentheses in #if directives.
86336         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86337         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86338
86339 2001-09-22  Jim Meyering  <meyering@lucent.com>
86340
86341         * m4/gettext.m4: New file.  From gettext.
86342         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86343         * m4/progtest.m4: Likewise
86344         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86345         * m4/glibc21.m4: Likewise.
86346
86347         * m4/libintl.m4: Remove.  No longer used.
86348
86349 2001-09-22  Jim Meyering  <meyering@lucent.com>
86350
86351         * lib/localcharset.c: Update from latest gettext.
86352         * lib/config.charset: Likewise.
86353
86354 2001-09-20  Jim Meyering  <meyering@lucent.com>
86355
86356         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86357         strtoimax.
86358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86359         strtoumax.
86360
86361 2001-09-20  Jim Meyering  <meyering@lucent.com>
86362
86363         * lib/xstrtol.c (strtoimax): Guard declaration with
86364         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86365         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86366         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86367         (strtoumax): Likewise, for completeness (it wasn't necessary).
86368
86369 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86370
86371         * lib/strtoimax.c (HAVE_LONG_LONG):
86372         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86373         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86374         to work around bug in IBM C compiler.
86375
86376 2001-09-17  Jim Meyering  <meyering@lucent.com>
86377
86378         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86379         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86380         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86381         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86382         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86383         whenever the right hand side need not be expanded by the shell.
86384
86385 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86386
86387         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86388         library.  It's not correct, as some older glibcs are buggy.
86389         fnmatch wasn't fixed until glibc 2.2.
86390
86391         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86392         special shell magic here.
86393
86394 2001-09-16  Jim Meyering  <meyering@lucent.com>
86395
86396         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86397         * m4/jm-macros.m4: Require it.
86398
86399 2001-09-16  Jim Meyering  <meyering@lucent.com>
86400
86401         * lib/mkdir.c: New file.
86402
86403 2001-09-15  Jim Meyering  <meyering@lucent.com>
86404
86405         * m4/jm-macros.m4: Check for help2man.
86406
86407 2001-09-11  Jim Meyering  <meyering@lucent.com>
86408
86409         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86410         The body, by Paul Eggert, was moved here from configure.in.
86411         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86412
86413 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86414
86415         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86416         (jm_PREREQ): Use it.
86417
86418 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86419
86420         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86421         Use ssize_t, not int, to store result of readlink.
86422         Check for ssize_t overflow as well as size_t overflow,
86423         as POSIX says the result of readlink is implementation-defined
86424         when ssize_t overflows.
86425         Remove unnecessary cast to char*.
86426         Use free+malloc instead of realloc, as the storage doesn't need
86427         to be preserved and it's clearer and can be more efficient that way.
86428         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86429         * lib/xreadlink.h (xreadlink): Update prototype.
86430
86431 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86432
86433         * lib/xgetcwd.c: Revert some of the previous change; intead,
86434         fix the HAVE_GETCWD_NULL code to behave more like the
86435         !HAVE_GETCWD_NULL code used to.
86436
86437         Include "xalloc.h".
86438         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86439         invoke xalloc_die.
86440
86441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86442
86443         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86444         sys/param.h, as pathmax.h includes them.
86445
86446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86447
86448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86449         (jm_PREREQ_XGETCWD): New macro.
86450
86451         * m4/getcwd.m4: New file.
86452
86453 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86454
86455         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86456         like the HAVE_GETCWD_NULL code.
86457         Include pathmax.h if not HAVE_GETCWD.
86458         Do not include xalloc.h.
86459         (INITIAL_BUFFER_SIZE): New symbol.
86460         Do not use xmalloc / xrealloc, since the caller is responsible for
86461         handling errors.  Preserve errno around `free' during failure.
86462         Do not overrun buffer when using getwd.
86463
86464 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86465
86466         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86467         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86468         getcwd (NULL, 0).
86469
86470 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86471
86472         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86473         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86474         spotted by Jim Meyering.
86475
86476 2001-09-03  Jim Meyering  <meyering@lucent.com>
86477
86478         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86479         failure.
86480
86481 2001-09-02  Jim Meyering  <meyering@lucent.com>
86482
86483         * lib/error.c: Update from GNU libc.
86484
86485 2001-09-01  Jim Meyering  <meyering@lucent.com>
86486
86487         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86488         Used by df.
86489
86490 2001-09-01  Jim Meyering  <meyering@lucent.com>
86491
86492         * lib/xreadlink.c: New file.
86493         * lib/xreadlink.h: New file.
86494         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86495         xreadlink.h.
86496
86497         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86498         doesn't conflict with sparc Solaris 7's definition in
86499         /usr/include/sys/int_types.h.
86500
86501         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86502         files.
86503         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86504         and strncasecmp as r-values.  Unixware didn't have declarations.
86505
86506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86507
86508         * lib/xstrtol.h: Add copyright notice.
86509         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86510         LONGINT_INVALID_SUFFIX_CHAR.
86511
86512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86513
86514         * lib/xstrtol.c (strtoimax): New decl.
86515
86516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86517
86518         * lib/xgetcwd.c: Don't include pathmax.h.
86519         Include stdlib.h and unistd.h if available.
86520         Include xalloc.h.
86521         (xmalloc, xstrdup, free): Remove decls.
86522         (xgetcwd): Don't assume sizes fit in unsigned.
86523         Check for overflow when computing sizes.
86524         Simplify reallocation code.
86525
86526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86527
86528         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86529         a directory's st_size can have an arbitrary value, so the old
86530         usage could waste an arbitrary amount of memory.  All uses
86531         changed.
86532         * lib/savedir.h: Update prototype.
86533
86534 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86535
86536         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86537
86538         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86539         old strtoimax.c.
86540
86541         Also, make the following further changes to make this file's
86542         configuration more similar to that of strtol.c:
86543         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86544         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86545         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86546         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86547         changed to signed values.
86548
86549         And make the following changes as well:
86550         Fix copyright notice, as 1999 was missing.
86551         (verify): New macro.
86552         (strtoimax): Check sizes at compile-time, not run-time.
86553         Prefer strtol to strtoll if both work.
86554         (main): Remove; it was not that useful and was a pain to maintain.
86555
86556         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86557
86558 2001-08-31  Jim Meyering  <meyering@lucent.com>
86559
86560         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86561         Use an initial, malloc'd, buffer of length 128 rather than
86562         a statically allocated one of length 1024.
86563
86564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86565
86566         Simplify code, partly by assuming autoconf 2.52 semantics.
86567
86568         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86569
86570         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86571         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86572         All uses removed.
86573         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86574         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86575         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86576         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86577         jm_AC_HEADER_INTTYPES_H.
86578         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86579
86580         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86581
86582         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86583         Quote first arg of AC_DEFUN.
86584         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86585         since they are needed to parse the include file even if we need
86586         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86587         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86588         but with opposite signedness.
86589
86590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86591
86592         Merge 'exclude' changes from tar 1.13.22.
86593         This fixes one or two unlikely storage allocation overflow bugs,
86594         but doesn't change user-visible behavior otherwise.
86595
86596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86597
86598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86599         (jm_PREREQ_EXCLUDE): New macro.
86600
86601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86602
86603         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86604         tm to be declared.
86605
86606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86607
86608         * lib/hash.c: Remove '2001' from copyright notice.
86609
86610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86611
86612         * lib/full-write.h: New file.
86613         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86614         * lib/full-write.c: Correct credits, as cccp.c no longer
86615         exists and anyway it was so heavily changed from the old cccp
86616         code as to be unrecognizable.  Include full-write.h.
86617         (full_write): Return size_t, with short writes meaning failure.
86618         All callers changed.  This fixes a bug with large buffers
86619         on 64-bit hosts.
86620         * lib/utime.c: Include full-write.h.
86621
86622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86623
86624         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86625         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86626         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86627         Include if available.
86628         (<xalloc.h>): Include
86629         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86630         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86631         collide with FNM macros.
86632         (struct patopts): New struct.
86633         (struct exclude): Use it, as exclude patterns now come with options.
86634         (new_exclude): Support above changes.
86635         (new_exclude, add_exclude_file):
86636         Initial size must now be a power of two to simplify overflow checking.
86637         (free_exclude, fnmatch_no_wildcards): New function.
86638         (excluded_filename): No longer requires options arg, as the options
86639         are determined by add_exclude.  Now returns bool, not int.
86640         (excluded_filename, add_exclude):
86641         Add support for the fancy new exclusion options.
86642         (add_exclude, add_exclude_file): Now takes int options arg.
86643         Check for arithmetic overflow when computing sizes.
86644         (add_exclude_file): xrealloc might modify errno, so don't
86645         realloc until after errno might be used.
86646
86647         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86648         New macros.
86649         (free_exclude): New decl.
86650         (add_exclude, add_exclude_file): Now takes int options arg.
86651         (excluded_filename): No longer requires options arg, as the options
86652         are determined by add_exclude.  Now returns bool, not int.
86653
86654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86655
86656         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86657
86658 2001-08-27  Jim Meyering  <meyering@lucent.com>
86659
86660         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86661
86662         * lib/version-etc.c (N_): Remove definition.
86663         Revert most of last change.
86664         Instead, simply don't mark the `Copyright...' string for translation.
86665         Based on advice from Paul Eggert.
86666
86667         * lib/strtoxmax.c: Tweak comment.
86668
86669 2001-08-26  Jim Meyering  <meyering@lucent.com>
86670
86671         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86672
86673         * m4/xstrtoimax.m4: New file.
86674         * m4/xstrtoumax.m4: Add comments explaining why we
86675         AC_REPLACE_FUNCS(strtol).
86676
86677 2001-08-26  Jim Meyering  <meyering@lucent.com>
86678
86679         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86680         of copyright with `%s' so translators don't get an untranslated
86681         message in 2002.
86682         (COPYRIGHT_YEAR): Define.
86683         (version_etc): Use fprintf rather than fputs.
86684         Suggestion from Ulrich Drepper.
86685
86686         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86687
86688         * lib/strtoll.c: New file, from GNU libc.
86689         * lib/xstrtoimax.c: New file.
86690
86691         * lib/xstrtol.h: Add xstrtoimax.
86692         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86693         * lib/strtoimax.c: New file.  Likewise, but first define
86694         STRTOUXMAX_SIGNED.
86695
86696         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86697         ...
86698         * lib/strtoxmax.c: ... then renamed to this.
86699
86700 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86701
86702         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86703         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86704         (jm_AC_TYPE_INTMAX_T): New macro.
86705         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86706
86707         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86708
86709         * m4/longlong.m4: Renamed from ulonglong.m4.
86710         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86711         * m4/uintmax_t.m4: Removed.
86712
86713 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86714
86715         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86716         Port to Solaris 8, where 'sed' requires a space after the 'r'
86717         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86718         Redirect output to $tmp just once.
86719
86720 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86721
86722         * lib/addext.c (<errno.h>): Include.
86723         (errno): Declare if not defined.
86724         (addext): Work correctly when pathconf returns -1 and leaves
86725         errno alone because there is no limit.  Also, work even if
86726         pathconf returns a value greater than SIZE_MAX.
86727
86728 2001-08-12  Jim Meyering  <meyering@lucent.com>
86729
86730         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86731         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86732         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86733         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86734         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86735         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86736         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86737         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86738         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86739         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86740         utime.m4, utimes.m4, xstrtoumax.m4:
86741         Quote the first argument in each use of AC_DEFUN.
86742
86743 2001-08-12  Jim Meyering  <meyering@lucent.com>
86744
86745         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86746         Simply `return getcwd (NULL, 0);'.
86747         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86748         Use 1300 as initial value for length, not PATH_MAX.
86749
86750         * lib/pathmax.h: Clean up cpp syntax.
86751
86752 2001-08-12  Jim Meyering  <meyering@lucent.com>
86753
86754         * lib/gettimeofday.c: New file.
86755         * lib/gtod.h: New file.
86756         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86757
86758 2001-08-05  Jim Meyering  <meyering@lucent.com>
86759
86760         * m4/jm-macros.m4: Require autoconf-2.52.
86761
86762 2001-08-04  Jim Meyering  <meyering@lucent.com>
86763
86764         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86765         stmt, to get in sync with glibc.
86766
86767 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86768
86769         The following changes are from gettext 0.10.39 as maintained by
86770         Bruno Haible.
86771
86772         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86773         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86774         with inverted sense.  All uses changed.
86775
86776         * lib/mbswidth.c: Don't include <limits.h>.
86777         Include <stdlib.h> and <string.h> unconditionally.
86778         (iswcntrl, mbsinit, ISCNTRL): New macros.
86779         (mbsnwidth): Use K&R style function declarations.
86780         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86781         can optimize it when MB_CUR_MAX == 1.
86782         The width of control characters is zero, not 1.
86783
86784 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86785
86786         The following changes are from gettext 0.10.39 as maintained by
86787         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86788
86789         * m4/codeset.m4: Upgrade to serial AM1.
86790         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86791         all uses changed.  Quote first arg of AC_DEFUN.
86792         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86793
86794         * m4/iconv.m4: Upgrade to serial AM2.
86795         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86796         Add --with-libconv-prefix.
86797         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86798         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86799         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86800         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86801         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86802
86803         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86804         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86805         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86806         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86807         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86808         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86810         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86811         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86812
86813         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86814         string.h any more.
86815
86816         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86817         not the default value.
86818
86819         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86821         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86822         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86823         Also check for iswcntrl, used for wcwidth fallback.
86824         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86825         to Autoconf 2.13.
86826
86827 2001-08-03  Jim Meyering  <meyering@lucent.com>
86828
86829         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86830         as it was in the original.  Reported by Paul Eggert.
86831
86832 2001-07-16  Jim Meyering  <meyering@lucent.com>
86833
86834         * m4/gettimeofday.m4: New file.
86835         Prompted by a report from Bernhard Baehr.
86836
86837 2001-07-15  Jim Meyering  <meyering@lucent.com>
86838
86839         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86840         stuff. Now it's in ../Makefile.cfg.
86841
86842 2001-07-15  Jim Meyering  <meyering@lucent.com>
86843
86844         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86845         (BUILT_SOURCES): Add unlocked-io.h.
86846         (io_functions): Define.
86847         (unlocked-io.h): New rule.
86848         (DISTCLEANFILES): Add unlocked-io.h.
86849         (all-local): Depend on unlocked-io.h, to ensure it is created.
86850
86851         * lib/unlocked-io.hin: New file
86852
86853         * lib/regex.c: Update from glibc.
86854
86855 2001-07-05  Jim Meyering  <meyering@lucent.com>
86856
86857         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86858         recommendation.
86859         (libfetish_a_SOURCES): Put all .h files here instead.
86860         Remove a thus-exposed (better checks in automake) duplicate and
86861         two unnecessary .h files.
86862
86863 2001-07-04  Jim Meyering  <meyering@lucent.com>
86864
86865         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86866         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86867         distcheck failure.
86868
86869 2001-07-02  Jim Meyering  <meyering@lucent.com>
86870
86871         The following changes were prompted by suggestions from Bruno Haible.
86872
86873         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86874         is now generated.
86875         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86876         definition of EXTRA_DIST.
86877         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86878         ensure that the generated file is created/updated whenever the list
86879         of $(unlocked_functions) is changed.
86880         (jm-glibc-io.m4): New rule.
86881         (unlocked-io.h): New rule -- currently unused.
86882
86883 2001-06-24  Jim Meyering  <meyering@lucent.com>
86884
86885         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86886         unmatched right bracket, rather than kludging it with an extra,
86887         falsely-matching quote in a comment.  Patch by Akim Demaille.
86888
86889 2001-06-11  Jim Meyering  <meyering@lucent.com>
86890
86891         * lib/regex.c: Update from GNU libc.
86892
86893 2001-05-27  Jim Meyering  <meyering@lucent.com>
86894
86895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86896         Check for ut_type in struct utmp.
86897
86898 2001-05-27  Jim Meyering  <meyering@lucent.com>
86899
86900         * lib/readutmp.h (UT_TYPE): Define.
86901
86902 2001-05-24  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/argmatch.c: Include "quote.h".
86905         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86906         quote function.  Reported by Göran Uddeborg.
86907
86908 2001-05-22  Jim Meyering  <meyering@lucent.com>
86909
86910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86911         now that we use the package-supplied version unconditionally.
86912         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86913
86914 2001-05-21  Jim Meyering  <meyering@lucent.com>
86915
86916         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86917         shell syntax errors.
86918
86919 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86920
86921         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86922
86923 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86924
86925         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86926         Don't bother to check library strftime, since
86927         we'll be using our own my_strftime function anyway.
86928         Define my_strftime instead of strftime.
86929
86930 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86931
86932         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86933         which is not yet declared.
86934
86935 2001-05-15  Jim Meyering  <meyering@lucent.com>
86936
86937         * m4/regex.m4: Use proper quoting so brackets appear in the test
86938         program.
86939         Reported by, and with help from, Bruno Haible.
86940
86941 2001-05-13  Jim Meyering  <meyering@lucent.com>
86942
86943         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86944         undefined.
86945
86946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86947
86948         dirname code cleanup.  base_name now behaves more compatibly
86949         with POSIX basename when given file names that have trailing
86950         slashes, and similarly for dir_name.  Add new primitives
86951         base_len and dir_len.  Put the directory-name-related decls
86952         into dirname.h.
86953
86954         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86955         * lib/backupfile.c (base_name): Likewise.
86956         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86957         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86958         * lib/makepath.c (strip_trailing_slashes): Likewise.
86959         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86960         ISSLASH): Likewise.
86961         * lib/rename.c (strip_trailing_slashes): Likewise.
86962         * lib/same.c (base_name): Likewise.
86963         * lib/stripslash.c (ISSLASH): Likewise.
86964
86965         * lib/addext.c: Include <dirname.h> after size_t is defined.
86966         * lib/backupfile.c: Likewise.
86967
86968         * lib/addext.c (addext): Use base_len to trim redundant
86969         trailing slashes instead of doing it ourselves.
86970         But do not trim the last slash if it is not redundant.
86971
86972         * lib/backupfile.c (find_backup_file_name,
86973         max_backup_version): Use base_len instead of rolling it ourselves.
86974         Handle the case of "" and (on DOS) "C:" correctly.
86975
86976         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86977         needed. Include <string.h>, <dirname.h>.
86978         (base_name): Allow file names ending in slashes, other than names
86979         that are all slashes.  In this case, return the basename followed
86980         by the slashes.  This is more general, and can be used in places
86981         where the original base_name purposely had an assertion failure.
86982         (base_len): New function.
86983
86984         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86985         Do not include <assert.h>; no longer needed.
86986         Include xalloc.h.
86987         (memrchr): Remove decl.
86988         (dir_name_r): Remove.
86989         (dir_len): Renamed from dirlen.  All callers changed.
86990         Rewrite in terms of base_name, for simplicity and consistency.
86991         (dir_name): Never return NULL.  All callers changed.
86992         Do not include <stdlib.h> in test program; no longer needed.
86993         return 0; is fine for test program.
86994
86995         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86996         New macros.
86997         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86998
86999         * lib/path-concat.c (path_concat): Use base_len to compute
87000         base length, not strlen; this means we cannot rely on memcpy
87001         to null-terminate.
87002
87003         * lib/same.c (STREQ): Remove.
87004         (same_name): Handle the case where the basename ends in trailing '/'.
87005
87006         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87007         a slash was stripped.  Do not strip the last slash after a
87008         file system prefix.
87009
87010 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87011
87012         * lib/Makefile.am (libfetish_a_SOURCES):
87013         Add strftime.c, since we now compile it on all hosts.
87014
87015         * lib/strftime.c (my_strftime):
87016         Define to nstrftime if emacs, but only if my_strftime is not defined.
87017         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87018         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87019         Add one more extra argument: a nanoseconds value.
87020         All uses changed.
87021         (ns): New macro.
87022         (my_strftime function): Add %N format.
87023         (emacs_strftimeu): Renamed from emacs_strftime,
87024         with extra ut argument.
87025
87026 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87027
87028         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87029
87030 2001-04-21  Jim Meyering  <meyering@lucent.com>
87031
87032         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87033         doesn't interfere.
87034
87035 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87036
87037         * m4/ftruncate.m4: Check for chsize.
87038         Link with ftruncate.o unconditionally if ftruncate is missing.
87039         This was required when cross-compiling to i586-mingw32msvc.
87040
87041 2001-04-08  Jim Meyering  <meyering@lucent.com>
87042
87043         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87044         recomputed; that's necessary when the offset spans a DST transition.
87045         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87046
87047 2001-04-02  Jim Meyering  <meyering@lucent.com>
87048
87049         * lib/regex.h, regex.c: Update from GNU libc.
87050
87051 2001-03-24  Jim Meyering  <meyering@lucent.com>
87052
87053         * m4/jm-macros.m4: Require autoconf-2.49d.
87054
87055 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87056
87057         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87058
87059 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87060
87061         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87062
87063 2001-03-17  Jim Meyering  <meyering@lucent.com>
87064
87065         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87066         now that the version in autoconf is equivalent.
87067         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87068
87069         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87070         Suggestion from Akim Demaille.
87071
87072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87073         (jm_PREREQ_TEMPNAME): New function.
87074
87075 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87076
87077         * lib/tempname.c (uint64_t): Define to uintmax_t if
87078         not defined, and if UINT64_MAX is not defined.
87079         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87080         Reported by John David Anglin.
87081
87082 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87083
87084         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87085         resolve alias if codeset is empty.
87086         * lib/config.charset (BeOS): Use wildcard syntax.
87087
87088 2001-03-13  Jim Meyering  <meyering@lucent.com>
87089
87090         * lib/path-concat.c (path_concat)
87091         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87092         concatenating e.g., `C:' and `foo'.
87093         From Bruno Haible.
87094
87095 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87096
87097         * lib/localcharset.c (locale_charset): Don't use
87098         setlocale(LC_CTYPE,NULL). Don't return NULL.
87099         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87100
87101 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87102
87103         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87104         support for DOS/DJGPP.
87105
87106 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87107
87108         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87109         lacks mkstemp.  Compile our own tempname.c if we compile our own
87110         mkstemp.c, as mkstemp relies on tempname.
87111
87112 2001-03-01  Jim Meyering  <meyering@lucent.com>
87113
87114         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87115         AH_VERBATIM really does output its argument verbatim.
87116
87117 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87118
87119         * lib/Makefile.am (libfetish_a_SOURCES):
87120         Add dup-safer.c, fopen-safer.c.
87121         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87122
87123         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87124         * lib/unistd-safer.h: New files.
87125
87126 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87127
87128         The mkstemp replacement is taken from glibc 2.2.2, with some
87129         portability fixes for use outside glibc, as follows:
87130
87131         * lib/tempname.c (struct_stat64): New macro.
87132         (direxists, __gen_tempname): Use it.
87133         This avoids a portability problem with Solaris 8.
87134
87135         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87136         (<stddef.h>, <stdint.h>, <string.h>):
87137         Include only if STDC_HEADERS || _LIBC.
87138         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87139         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87140         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87141         (__set_errno): Define this macro if <errno.h> doesn't.
87142         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87143         Define these macros if <stdio.h> doesn't.
87144         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87145         Define these macros if <sys/stat.h>
87146         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87147         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87148         __xstat64): Define if not _LIBC.
87149         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87150         (__gen_tempname): Invoke gettimeofday only if
87151         HAVE_GETTIMEOFDAY || _LIBC;
87152         otherwise, fall back on plain "time".
87153         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87154
87155         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87156
87157         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87158
87159 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87160
87161         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87162
87163 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87164
87165         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87167         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87169
87170 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87171
87172         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87173         Remove workaround macros for hosts that have mbrtowc but not
87174         mbstate_t, as we now insist on proper declarations for both
87175         before using mbrtowc.
87176
87177 2001-02-17  Jim Meyering  <meyering@lucent.com>
87178
87179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87180         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87181         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87182         UnixWare 7.1.1.
87183
87184         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87185         rather than AC_CACHE_VAL.
87186
87187 2001-02-17  Jim Meyering  <meyering@lucent.com>
87188
87189         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87190         around included file name.
87191
87192         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87193
87194         * lib/strftime.c: Update from GNU libc (the only changes were to
87195         comments).
87196
87197 2001-02-17  Jim Meyering  <meyering@lucent.com>
87198
87199         * lib/regex.c: Update from libc.
87200
87201 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87202
87203         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87204         clash.
87205
87206 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87207
87208         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87209         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87210         Reported by Mark Hounschell via Paul Eggert.
87211
87212 2001-02-07  Jim Meyering  <meyering@lucent.com>
87213
87214         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87215
87216 2001-02-05  Jim Meyering  <meyering@lucent.com>
87217
87218         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87219         it includes the patch required for `large file' support with at least
87220         HP-UX's 10.20 /bin/cc.
87221
87222 2001-02-03  Jim Meyering  <meyering@lucent.com>
87223
87224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87225         AS_IF, now that it works once again (mysteriously).
87226         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87227
87228 2001-01-30  Jim Meyering  <meyering@lucent.com>
87229
87230         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87231         * m4/chown.m4: Rename conftestchown to conftest.chown.
87232         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87233         s/conftestdir2/conftest.d2/.
87234         * m4/utimes.m4: s/conftestdata/conftest.data/
87235         Inspired by Pavel Roskin's change in autoconf.
87236
87237 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87238
87239         * lib/config.charset: Update for FreeBSD 4.2.
87240
87241 2001-01-27  Jim Meyering  <meyering@lucent.com>
87242
87243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87244         a use of AS_IF.
87245         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87246
87247 2001-01-26  Jim Meyering  <meyering@lucent.com>
87248
87249         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87250         quotearg.c includes it.
87251
87252 2001-01-26  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/quotearg.c: Include stddef.h.
87255         * lib/quote.c: Include stddef.h.
87256         Reported by Axel Kittenberger.
87257
87258         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87259         line in double quotes so that it evokes a better diagnostic.
87260         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87261         Reported by Axel Kittenberger.
87262
87263 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87264
87265         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87266         as if it was a `charset'.
87267
87268 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87269
87270         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87271         has const.
87272
87273 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87274
87275         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87276         to avoid a warning.  Add back 'const' to inptr.
87277
87278 2001-01-20  Jim Meyering  <meyering@lucent.com>
87279
87280         Be sure that headers are checked before used in code compiled
87281         for the type checks.
87282         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87283         In place of that, invoke jm_CHECK_ALL_TYPES.
87284         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87285         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87286         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87287         The check for ssize_t was mistakenly run before the test for unistd.h.
87288
87289         The configure-time check for stdbool.h was missing.
87290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87291         (jm_PREREQ_HASH): New function.
87292
87293 2001-01-17  Jim Meyering  <meyering@lucent.com>
87294
87295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87296         for autoconf-2.49c.
87297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87298
87299 2001-01-16  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87302         From Bruno Haible.
87303
87304 2001-01-14  Jim Meyering  <meyering@lucent.com>
87305
87306         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87307         foo and bar.  Create conftestdir/ in the script, not in the C code.
87308         Remove directories in the script, not in the C code.
87309         Remove conftestdir{,2} before trying to create the directory.
87310         Make the entire configure script fail if the mkdir fails.
87311
87312 2001-01-14  Jim Meyering  <meyering@lucent.com>
87313
87314         * lib/rename.c: New file.  From Volker Borchert.
87315         Include stdlib.h, string.h or strings.h, and xalloc.h.
87316         Use strip_trailing_slashes rather than open-coding it.
87317
87318 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87319
87320         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87321
87322 2001-01-03  Jim Meyering  <meyering@lucent.com>
87323
87324         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87325         of local `inptr' to avoid warning with some system declarations of
87326         iconv.
87327
87328 2001-01-02  Volker Borchert  <bt@teknon.de>
87329
87330         * m4/rename.m4: New file.
87331         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87332
87333 2001-01-01  Jim Meyering  <meyering@lucent.com>
87334
87335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87336         even on systems with utmpx.h.  It's necessary for the declaration of
87337         utmp's ut_user member.  Reported by Andreas Jaeger.
87338
87339         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87340         available. They are required for the declarations of getgrgid and
87341         getpwuid resp.
87342         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87343         Reported by Andreas Jaeger.
87344
87345 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87346
87347         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87348         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87349         so `make install' also works in VPATH builds.
87350
87351 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87352
87353         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87354         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87355         can be used in subdirectories.
87356
87357 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/modechange.c: Do not assume that mode_t uses the
87360         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87361         the other-execute bit of FOO even if S_IXOTH != 1.
87362
87363         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87364         WOTH, XOTH, ALLM): New macros.
87365         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87366          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87367         Use them.
87368         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87369         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87370         (mode_compile):
87371         No need to use uintmax_t; unsigned long is long enough.
87372         Don't bother to get suffix since we don't use it.
87373
87374 2000-12-26  Jim Meyering  <meyering@lucent.com>
87375
87376         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87377         better with autoheader.
87378
87379 2000-12-24  Jim Meyering  <meyering@lucent.com>
87380
87381         * lib/hash.c (is_prime): Return explicit boolean values.
87382         (hash_get_first): Return NULL to appease Irix5.6's 89.
87383         Reported by Nelson Beebe.
87384
87385 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87386
87387         * lib/localcharset.c (locale_charset): Add support for Win32.
87388
87389 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/physmem.h, lib/physmem.c: New files.
87392
87393         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87394         (noinst_HEADERS): Add physmem.h.
87395
87396         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87397         't' for compatibility with Solaris 8 sort.
87398
87399 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87400
87401         * lib/config.charset: Add support for BeOS.
87402
87403 2000-12-17  Jim Meyering  <meyering@lucent.com>
87404
87405         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87406         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87407
87408 2000-12-16  Jim Meyering  <meyering@lucent.com>
87409
87410         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87411         N and M) would have treated it like `chown N:N FILE'.
87412
87413         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87414
87415 2000-12-16  Jim Meyering  <meyering@lucent.com>
87416
87417         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87418         SHELLS_FILE to a file name that's useful on djgpp systems.
87419         Include stdlib.h.
87420         (ADDITIONAL_DEFAULT_SHELLS): Define.
87421         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87422         Based mostly on a patch from Prashant TR.
87423
87424 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87425
87426         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87427         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87428         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87429
87430 2000-12-08  Andreas Schwab  <schwab@suse.de>
87431
87432         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87433         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87434
87435 2000-12-07  Jim Meyering  <meyering@lucent.com>
87436
87437         * lib/stripslash.c (ISSLASH): Define.
87438         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87439         `/'.
87440         From Prashant TR.
87441
87442         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87443         (dir_name_r): Declare this function as static.
87444         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87445         manifest itself on a name containing a mix of slashes and
87446         backslashes.
87447         Make this function work with names starting with a DOS-style
87448         drive letter and colon prefix.
87449         (dir_name): Append `.' if necessary.
87450         Based mostly on patches from Prashant TR and Eli Zaretskii.
87451
87452         * lib/dirname.h (dir_name_r): Remove prototype.
87453
87454 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87455
87456         * m4/off_t-format.m4: Remove this file.
87457         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87458
87459 2000-12-06  Jim Meyering  <meyering@lucent.com>
87460
87461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87462         replacement strtoull, we may well need the replacement strtoul, too.
87463         Check for declarations of strtoul and strtoull.
87464         Check for strtol.  Mainly as a cue to cause automake to include
87465         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87466         Check for limits.h -- strtol.c needs it.
87467
87468 2000-12-05  Jim Meyering  <meyering@lucent.com>
87469
87470         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87471
87472 2000-12-04  Jim Meyering  <meyering@lucent.com>
87473
87474         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87475         Also include memory.h, stdlib.h, unistd.h if appropriate.
87476         Reported by Andreas Jaeger (conflicting declaration of malloc).
87477
87478 2000-12-02  Jim Meyering  <meyering@lucent.com>
87479
87480         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87481         * m4/jm-macros.m4 (jm_MACROS): require it.
87482
87483 2000-12-02  Jim Meyering  <meyering@lucent.com>
87484
87485         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87486
87487 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87488
87489         * lib/memrchr.c: Include <config.h> before any system include file.
87490
87491 2000-11-30  Jim Meyering  <meyering@lucent.com>
87492
87493         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87494
87495 2000-11-30  Jim Meyering  <meyering@lucent.com>
87496
87497         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87498
87499 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87500
87501         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87502
87503 2000-11-26  Jim Meyering  <meyering@lucent.com>
87504
87505         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87506
87507 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87508
87509         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87510         size of (size_t) -1; it's not portable.
87511
87512 2000-11-17  Jim Meyering  <meyering@lucent.com>
87513
87514         * lib/strstr.c: Update from GNU libc.
87515
87516 2000-11-17  Akim Demaille  <akim@epita.fr>
87517
87518         * lib/obstack.h: Formatting changes.
87519         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87520         prevent type checking.
87521         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87522         cast the value to (void *): assigning a `foo *' to a `void *'
87523         variable is valid.
87524         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87525
87526 2000-11-16  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87529
87530 2000-11-11  Jim Meyering  <meyering@lucent.com>
87531
87532         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87533
87534 2000-11-10  Jim Meyering  <meyering@lucent.com>
87535
87536         * lib/obstack.h: Update from GNU libc.
87537         * lib/obstack.c: Likewise.
87538
87539 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87540
87541         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87542
87543 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87544
87545         * lib/getusershell.c (setusershell): Use rewind rather than
87546         fseek/fseeko, to avoid configuration hassles with fseeko.
87547         Don't bother opening SHELLS_FILE if shellstream is NULL;
87548         it's not necessary.
87549
87550 2000-11-05  Jim Meyering  <meyering@lucent.com>
87551
87552         * lib/makepath.h (make_dir): Declare.
87553         * lib/makepath.c (make_dir): Remove `static' attribute.
87554         Tweak a comment.
87555
87556 2000-11-04  Jim Meyering  <meyering@lucent.com>
87557
87558         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87559
87560 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87561
87562         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87563         last one in a bucket, advance to the next bucket.
87564
87565 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87566
87567         * lib/fnmatch.c: Do not comment out all the code if we are using
87568         the GNU C library, because in some cases we are replacing buggy
87569         code in the GNU C library itself.
87570
87571 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87572
87573         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87574         (regex_compile): Catch bogus \(\1\).
87575
87576 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87577
87578         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87579         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87580         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87581
87582 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87583
87584         * lib/error.h, getline.h, modechange.h:
87585         Remove "2000" from Copyright line, as the file hasn't been
87586         changed this year other than in the copyright notice.
87587
87588         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87589         was changed this year.
87590
87591 2000-10-29  Jim Meyering  <meyering@lucent.com>
87592
87593         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87594         renaming.
87595         * m4/ls-mntd-fs.m4: Likewise
87596
87597 2000-10-29  Jim Meyering  <meyering@lucent.com>
87598
87599         * lib/xstat.in: Fix grammar in comment.
87600
87601 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87602
87603         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87604         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87605         doesn't define __restrict_arr.
87606
87607 2000-10-28  Jim Meyering  <meyering@lucent.com>
87608
87609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87610         (jm_PREREQ_MEMCHR): New function.
87611
87612 2000-10-28  Jim Meyering  <meyering@lucent.com>
87613
87614         * lib/memchr.c: Update from libc.
87615         Adjust for portability:
87616         [HAVE_STDLIB_H]: Include stdlib.h.
87617         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87618         Undef __memchr, too.
87619         [!weak_alias]: Define __memchr to memchr.
87620
87621         * lib/regex.c: Update from libc.
87622         * lib/regex.h: Likewise.
87623         * lib/getopt1.c: Likewise.
87624         * lib/memcmp.c: Likewise.
87625
87626         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87627         Avoid using fseek, when possible -- it's broken by design.
87628         Patch by Ulrich Drepper.
87629
87630 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87631
87632         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87633         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87634         Giving in to popular pressure to shut up the compiler with casts.
87635
87636 2000-10-26  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/strftime.c: Update from libc.
87639
87640 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87641
87642         * regex.c: More `unsigned char' -> `re_char' changes.
87643         Also change several `int' into `re_wchar_t'.
87644         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87645         (PUSH_FAILURE_POINTER): Don't cast any more.
87646         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87647         We want GCC to complain, since this piece of code makes
87648         re_match non-reentrant, which *should* be fixed.
87649         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87650         (EXTEND_BUFFER): Use RETALLOC.
87651         (SET_LIST_BIT): Don't cast.
87652         (re_wchar_t): New type.
87653         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87654         that those two functions will always properly return.
87655         (IMMEDIATE_QUIT_CHECK): Cast to void.
87656         (analyse_first): Use recursion rather than an explicit stack.
87657         (re_compile_fastmap): Can't fail anymore.
87658         (re_search_2): Don't check re_compile_fastmap for failure.
87659         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87660         Now also sets the new value (passed in a new argument).
87661         (re_match_2_internal): Use it.
87662         Also, use a new var `reg' of type size_t when looping through regs
87663         rather than reuse the inappropriate `mcnt'.
87664
87665 2000-10-25  Jim Meyering  <meyering@lucent.com>
87666
87667         * lib/obstack.c: Update from libc.
87668
87669 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87670
87671         * regex.c (regex_compile): Change the way of handling a range from
87672         a char less than 256 to a char not less than 256.
87673
87674 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87675
87676         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87677         NT-Emacs only.
87678         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87679         so that re_search functions only quit when callers expect them to.
87680
87681 2000-10-23  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87684         wrong.  That set_locale call must not have any side effects.
87685         From Paul Eggert.
87686
87687 2000-10-22  Jim Meyering  <meyering@lucent.com>
87688
87689         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87690         [CYCLIC]: Remove now-unused definition.
87691
87692         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87693         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87694         Suggestion from Ulrich Drepper.
87695
87696 2000-10-21  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87699         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87701
87702 2000-10-21  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/dirname.c (memrchr): Declare if necessary.
87705         (dir_name): Remove the restriction that there be no
87706         trailing slashes.  Now, this code skips past them, effectively
87707         ignoring them.
87708         [TEST_DIRNAME] (main): New unit tests.
87709
87710         * lib/memrchr.c: New file from GNU libc.
87711         Undef __memrchr, too.
87712         [!weak_alias]: Define __memrchr to memrchr.
87713         Guard weak_alias use with `#ifdef weak_alias'.
87714
87715 2000-10-21  Jim Meyering  <meyering@lucent.com>
87716
87717         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87718         (dir_name): Use dir_name_r.
87719         * lib/dirname.h (dir_name_r): Declare it.
87720
87721 2000-10-17  Jim Meyering  <meyering@lucent.com>
87722
87723         * lib/quote.h (PARAMS): Define and use.
87724         Reported by Akim Demaille.
87725
87726         * lib/getopt.c: Update from libc.
87727
87728 2000-10-16  Jim Meyering  <meyering@lucent.com>
87729
87730         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87731         setlocale.
87732         From Jan Fedak.
87733
87734 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87735
87736         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87737
87738 2000-09-25  Jim Meyering  <meyering@lucent.com>
87739
87740         * lib/md5.h (rol): Define (from GnuPG).
87741
87742         * lib/sha.c: Give credit (GnuPG) where due.
87743         (M): Use rol rather than open-coding it.
87744         Add a FIXME comment.
87745
87746 2000-09-21  Jim Meyering  <meyering@lucent.com>
87747
87748         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87749         Reported by Michael Stone.
87750
87751 2000-09-20  Jim Meyering  <meyering@lucent.com>
87752
87753         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87754         (noinst_HEADERS): Add sha.h.
87755         Based on code from Scott G. Miller and from GnuPG.
87756
87757 2000-09-18  Jim Meyering  <meyering@lucent.com>
87758
87759         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87760         LIBS. Otherwise, everyone ends up linking with -lelf for some
87761         configurations.
87762         Reported by Mike Stone.
87763
87764 2000-09-15  Jim Meyering  <meyering@lucent.com>
87765
87766         * lib/regex.c: Update from libc.
87767
87768 2000-09-10  Jim Meyering  <meyering@lucent.com>
87769
87770         * lib/getopt.c (_getopt_internal): Update from glibc.
87771
87772 2000-09-09  Jim Meyering  <meyering@lucent.com>
87773
87774         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87775         think it should be used as a general replacement for isascii.
87776         * lib/fnmatch.c: Likewise.
87777         * lib/mbswidth.c: Likewise
87778         * lib/regex.c: Likewise.
87779
87780         Don't use atoi.
87781         * lib/userspec.c: Include sys/param.h and limits.h.
87782         Include xstrtol.h.
87783         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87784         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87785         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87786         UID, GID.  Check range.
87787
87788 2000-09-06  Jim Meyering  <meyering@lucent.com>
87789
87790         * lib/getopt.c (_getopt_internal): Update from glibc.
87791
87792 2000-08-30  Jim Meyering  <meyering@lucent.com>
87793
87794         * lib/strftime.c: Merge in changes from GNU libc.
87795
87796 2000-08-26  Jim Meyering  <meyering@lucent.com>
87797
87798         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87799         * m4/fpending.m4: New file.
87800
87801 2000-08-26  Jim Meyering  <meyering@lucent.com>
87802
87803         * lib/closeout.c: Include "__fpending.h".
87804         (close_stdout_status): Return right away if there's nothing to flush.
87805
87806         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87807         * lib/__fpending.c: New file.
87808         * lib/__fpending.h: New file.
87809
87810 2000-08-20  Jim Meyering  <meyering@lucent.com>
87811
87812         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87813         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87814         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87815
87816 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87817
87818         Improve fileutils installation on systems where running
87819         programs (like install) can't be unlinked.
87820         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87821         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87822
87823 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87824
87825         Standardize on "memory exhausted" instead of "Memory exhausted"
87826         or "virtual memory exhausted".
87827         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87828         "virtual memory exhausted".
87829         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87830         our own message.
87831         * lib/userspec.c (parse_user_spec): Likewise.
87832         * lib/bumpalloc.h: comment fix
87833         * lib/same.c, userspec.c: Include xalloc.h.
87834
87835         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87836         not char *const and pointing to a constant array.
87837         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87838         (xrealloc): Comment fix.
87839
87840         * lib/userspec.c (parse_user_spec):
87841         Don't translate a message until just before returning,
87842         to avoid unnecessary translation.
87843
87844 2000-08-07  Jim Meyering  <meyering@lucent.com>
87845
87846         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87847         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87848         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87849         getgroups.c, gethostname.c, getopt.h, group-member.c,
87850         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87851         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87852         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87853         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87854         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87855         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87856         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87857         yesno.c: Back out Copyright date changes for each file with no change
87858         this year.  This eases coordination with other programs using the same
87859         source code modules.  From Paul Eggert.
87860
87861 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87862
87863         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87864         not char, for compatibility with glibc 2.1.3 strftime.c.
87865
87866 2000-08-03  Greg McGary  <greg@mcgary.org>
87867
87868         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87869         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87870         (EXTEND_BUFFER): Use them.
87871
87872 2000-08-01  Jim Meyering  <meyering@lucent.com>
87873
87874         * lib/dirname.c (ISSLASH): Define.
87875         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87876         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87877         both `\' and `/' may be use as path separators.
87878         Based on a patch from Prashant TR.
87879
87880 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87881
87882         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87883         slot vector a constant, since it might get modified.
87884
87885 2000-07-31  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/xmalloc.c: Use `virtual memory exhausted', not
87888         `Memory exhausted'.
87889         * lib/obstack.c (print_and_abort): Likewise.
87890
87891 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87892
87893         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87894         buffer, so that the caller can always quote one small
87895         component of a "memory exhausted" message in slot 0.
87896         From a suggestion by Jim Meyering.
87897
87898 2000-07-30  Jim Meyering  <meyering@lucent.com>
87899
87900         * lib/makepath.c (make_path): Quote the other instance, too.
87901
87902         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87903         (STATIC_BUF_SIZE): Define.
87904         (quotearg_n_options): Use only statically allocated storage when
87905         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87906         than STATIC_BUF_SIZE.
87907
87908 2000-07-29  Jim Meyering  <meyering@lucent.com>
87909
87910         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87911         * lib/dirname.c (dir_name): Likewise.
87912
87913         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87914         `/'.
87915
87916         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87917         (dir_name): Assert that there are no trailing slashes.
87918
87919 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87920
87921         * lib/mbswidth.h (mbswidth): Add a flags argument.
87922         (mbswidth): New declaration.
87923         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87924         * lib/mbswidth.c (mbswidth): Add a flags argument.
87925         (mbsnwidth): New function.
87926
87927 2000-07-24  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87930
87931 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87932
87933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87934
87935 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87936
87937         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87938         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87939         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87940         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87941         invoke multibyte primitives.
87942
87943 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87944
87945         * lib/quotearg.c:
87946         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87947         so that mbstate_t is always defined.
87948
87949         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87950         be 1 in at least one GCC installation, and this configuration
87951         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87952         performance on hosts that have mbrtowc but have only unibyte
87953         locales, but I assume these hosts are rare.
87954
87955 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87956
87957         * lib/mbswidth.c (_XOPEN_SOURCE):
87958         Don't define; this causes problems on Solaris 7.
87959         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87960
87961 2000-07-23  Jim Meyering  <meyering@lucent.com>
87962
87963         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87964         too: getgrgid, getpwuid, getuid.
87965
87966 2000-07-23  Jim Meyering  <meyering@lucent.com>
87967
87968         * lib/basename.c (base_name): Add an assertion.
87969
87970 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87971
87972         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87973         shadow its mbsinit function.
87974
87975 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87976
87977         * lib/mbswidth.h: New file.
87978         * lib/mbswidth.c: New file.
87979         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87980         (noinst_HEADERS): Add mbswidth.h.
87981
87982 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87983
87984         * lib/config.charset: Add support for FreeBSD. Improve support for
87985         HP-UX and IRIX 6.
87986
87987 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87988
87989         * m4/mbswidth.m4: New file.
87990         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87991
87992 2000-07-15  Jim Meyering  <meyering@lucent.com>
87993
87994         * lib/makepath.c: Include quote.h.
87995         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87996         corresponding argument in a `quote (...)' call.
87997         Give better diagnostics.
87998
87999         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88000         (noinst_HEADERS): Add quote.h.
88001
88002         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88003         from tar's src/misc.c.
88004         * lib/quote.h: New file.  Prototypes for same.
88005
88006 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88007
88008         From a suggestion by Bruno Haible.
88009         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88010         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88011         to decide whether to define the BeOS workaround macro;
88012         this adjusts to the change to AC_MBSTATE_T.
88013
88014 2000-07-14  Jim Meyering  <meyering@lucent.com>
88015
88016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88017         jm_AC_TYPE_UINTMAX_T.
88018
88019 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88020
88021         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88022
88023         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88024         quotearg_buffer_restyled): Add support for
88025         clocale_quoting_style.  Undo previous change to
88026         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88027         and "{RIGHT QUOTATION MARK}" msgids.
88028
88029 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88030
88031         From a suggestion by Bruno Haible.
88032         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88033         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88034         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88035         and mbstate_t, to a single-part test that simply defines mbstate_t.
88036         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88037         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88038
88039 2000-07-10  Jim Meyering  <meyering@lucent.com>
88040
88041         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88042
88043         * m4/gnu-source.m4: Output to confdefs.h directly.
88044         Suggestion from Akim Demaille.
88045
88046 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88047
88048         The old behavior of quoting `like this' doesn't look good with
88049         newer, ISO-style fonts.  See:
88050         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88051
88052         Instead, quote "like this" by default.  Let the translator
88053         tailor the locale-specific quoting behavior by providing
88054         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88055
88056         * lib/quotearg.c (N_): New macro.
88057         (gettext_default): New function.
88058         (quotearg_buffer_restyled): Use
88059         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88060         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88061
88062 2000-07-09  Jim Meyering  <meyering@lucent.com>
88063
88064         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88065         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88066
88067         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88069
88070 2000-07-09  Jim Meyering  <meyering@lucent.com>
88071
88072         * lib/Most files: Update copyright dates to include 2000.
88073
88074 2000-07-08  Jim Meyering  <meyering@lucent.com>
88075
88076         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88077         if not defined.
88078         (xgethostname): Remove now-unnecessary #ifdef.
88079         Move declaration of `err' into loop where it's used.
88080
88081 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88082         and Bruno Haible  <haible@clisp.cons.org>
88083
88084         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88085         only if the test for an object-type mbstate_t fails.  This
88086         prevents us from mistakenly reporting that mbstate_t is a
88087         system object type after we "#define mbstate_t int" to work
88088         around its lack.
88089
88090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88091         and Bruno Haible  <haible@clisp.cons.org>
88092
88093         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88094
88095 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88096
88097         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88098         to strerror_r.
88099         Include <ctype.h> for use of isalpha.
88100
88101 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88102
88103         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88104         by allocating a larger buffer. Test the gethostname return value for
88105         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88106         returns an error and ENAMETOOLONG isn't defined.
88107
88108 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88109
88110         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88111         dimension.
88112
88113 2000-07-04  Jim Meyering  <meyering@lucent.com>
88114
88115         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88116         of the deprecated AC_CHECKING.
88117
88118 2000-07-04  Jim Meyering  <meyering@lucent.com>
88119
88120         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88121         Reported by Bruno Haible.
88122
88123 2000-07-04  Jim Meyering  <meyering@lucent.com>
88124
88125         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88126         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88127         lacks mbrtowc.
88128
88129 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88130
88131         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88132         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88133
88134 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88135         and Bruno Haible  <haible@clisp.cons.org>
88136
88137         * lib/quotearg.c (mbrtowc):
88138         Assign to *pwc, and return 1 only if result is nonzero.
88139         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88140
88141 2000-07-03  Jim Meyering  <meyering@lucent.com>
88142
88143         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88144
88145 2000-07-03  Jim Meyering  <meyering@lucent.com>
88146
88147         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88148         This is necessary to get a definition of e.g., UTMP_FILE on
88149         HP-UX 10.20.
88150         From Bob Proulx.
88151
88152 2000-07-02  Jim Meyering  <meyering@lucent.com>
88153
88154         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88155
88156         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88157         AC_LIBOBJ(function_name).
88158         * m4/chown.m4: Likewise.
88159         * m4/fnmatch.m4: Likewise.
88160         * m4/ftruncate.m4: Likewise.
88161         * m4/getgroups.m4: Likewise.
88162         * m4/getline.m4: Likewise.
88163         * m4/group-member.m4: Likewise.
88164         * m4/jm-macros.m4: Likewise.
88165         * m4/lstat.m4: Likewise.
88166         * m4/malloc.m4: Likewise.
88167         * m4/memcmp.m4: Likewise.
88168         * m4/nanosleep.m4: Likewise.
88169         * m4/putenv.m4: Likewise.
88170         * m4/realloc.m4: Likewise.
88171         * m4/regex.m4: Likewise.
88172         * m4/stat.m4: Likewise.
88173         * m4/strftime.m4: Likewise.
88174
88175 2000-07-02  Jim Meyering  <meyering@lucent.com>
88176
88177         * lib/quotearg.c (mbstate_t): Don't define here.
88178
88179 2000-07-02  Jim Meyering  <meyering@lucent.com>
88180
88181         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88182
88183 2000-07-01  Jim Meyering  <meyering@lucent.com>
88184
88185         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88186
88187 2000-07-01  Jim Meyering  <meyering@lucent.com>
88188
88189         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88190         problem.
88191
88192 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88193
88194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88195         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88196
88197 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88198
88199         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88200         per change in ../m4/ls-mntd-fs.m4.
88201         (read_filesystem_list): Ignore symbolic links.
88202
88203 2000-06-29  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88206         for declaration of strcmp.
88207
88208         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88209
88210         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88211         Avoid warning by casting result to `char *' to remove `const'.
88212
88213 2000-06-28  Jim Meyering  <meyering@lucent.com>
88214
88215         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88216         included by quotearg.c, for which we perform this test.  From
88217         Bruno Haible.
88218
88219 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88220
88221         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88223         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88224
88225 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88226
88227         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88228
88229 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88230
88231         savedir now sets errno on failure and invokes xmalloc to get memory.
88232         Fix a couple of other minor bugs while we're at it.
88233
88234         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88235         (NAMLEN): Remove macro.
88236         (malloc, realloc): Remove decls.
88237         (stpcpy): Likewise.
88238         ("xalloc.h"): Include.
88239         (NAME_SIZE_DEFAULT): New macro.
88240         (savedir): Use xmalloc / xrealloc to allocate memory.
88241         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88242         Skip "" directory entries.
88243         Use strlen to calculate directory entry length, since the old method
88244         is rarely used these days and isn't worth supporting.
88245         Don't use a pointer after freeing it.
88246         Check for integer overflow when calculating allocation size.
88247         Use memcpy to copy entries, instead of stpcpy.
88248         Set errno properly when returning NULL.
88249         Check for readdir error.
88250
88251 2000-06-26  Jim Meyering  <meyering@lucent.com>
88252
88253         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88254
88255 2000-06-25  Jim Meyering  <meyering@lucent.com>
88256
88257         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88258         Linux header bug when _XOPEN_SOURCE is defined to 500.
88259
88260 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88261
88262         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88263         deficiency.
88264
88265 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88266
88267         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88268         Include xalloc.h.
88269         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88270
88271 2000-06-24  Jim Meyering  <meyering@lucent.com>
88272
88273         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88274         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88275         for which strerror does return char*, but which lacks a conveniently
88276         accessible declaration of the function.  If the compile-test says
88277         strerror_r doesn't work, then resort to a `run'-test that works on
88278         BeOS and segfaults on DEC Unix.
88279
88280 2000-06-24  Jim Meyering  <meyering@lucent.com>
88281
88282         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88283
88284 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88285
88286         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88288
88289 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88290
88291         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88292         (mbrtowc, mbstate_t): Define substitutes if
88293         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88294         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88295         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88296
88297 2000-06-23  Jim Meyering  <meyering@lucent.com>
88298
88299         * m4/afs.m4: Add missing AC_MSG_RESULT.
88300         Reported by Bruno Haible.
88301
88302         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88303         Suggestion from Bruno Haible.
88304
88305 2000-06-23  Jim Meyering  <meyering@lucent.com>
88306
88307         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88308
88309 2000-06-21  Jim Meyering  <meyering@lucent.com>
88310
88311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88312
88313 2000-06-21  Jim Meyering  <meyering@lucent.com>
88314
88315         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88316         (noinst_HEADERS): Add getstr.h.
88317
88318         * lib/getline.c (getstr): Move into a separate file.
88319         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88320         the following changes: new parameter, delim2; both delim[12]
88321         parameters have type `int', not `char'.  The latter would lose
88322         with 8-bit delimiters.
88323         * lib/getstr.h: New file.
88324
88325 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88326
88327         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88328         than 1024, return a memory chunk of least possible size, instead
88329         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88330         Use free/xmalloc instead of xrealloc to avoid copying for very long
88331         paths.
88332
88333 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88334
88335         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88336         the empty string.
88337
88338 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88339
88340         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88341         address, not strdup.  Include <stdlib.h> and don't declare free().
88342
88343 2000-06-19  Jim Meyering  <meyering@lucent.com>
88344
88345         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88346
88347 2000-06-18  Jim Meyering  <meyering@lucent.com>
88348
88349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88350
88351         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88352         `checking whether...' message to be consistent with that of the
88353         lstat test.
88354
88355 2000-06-18  Jim Meyering  <meyering@lucent.com>
88356
88357         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88358         Besides, these days every porting target provides a mkdir function.
88359
88360         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88361         needed. (this snippet comes from src/system.h).
88362
88363 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88364
88365         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88366
88367 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88368
88369         * lib/human.c (adjust_value): New function.
88370         (human_readable_inexact): Apply rounding style even when
88371         printing approximate values.
88372
88373 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88374
88375         * lib/human.c (human_readable_inexact): Allow an input block
88376         size that is not a multiple of the output block size, and vice versa.
88377         Reported by Piergiorgio Sartor.
88378
88379 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88380
88381         * lib/getdate.y (get_date): Apply relative times after time
88382         zone indicator, not before.  Reported by Todd A. Jacobs.
88383
88384 2000-06-13  Jim Meyering  <meyering@lucent.com>
88385
88386         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88387
88388         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88389
88390 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88391
88392         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88393
88394 2000-06-12  Jim Meyering  <meyering@lucent.com>
88395
88396         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88397         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88398         optional argument.
88399         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88400         the optional argument, `lib'.
88401
88402 2000-06-08  Jim Meyering  <meyering@lucent.com>
88403
88404         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88405
88406 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88407
88408         Rewrite largefile configuration so that we don't need to run
88409         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88410         AC_CANONICAL_HOST in configure.in -- jmm]
88411
88412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88413         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88414         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88415         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88416         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88417         All uses changed.
88418         Instead of inspecting the output of getconf, try to compile the
88419         test program without and with the macro definition.
88420         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88421         for getconf.  Instead, check for the needed flags by compiling
88422         test programs.
88423
88424 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88425
88426         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88427
88428 2000-06-04  Jim Meyering  <meyering@lucent.com>
88429
88430         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88431         SunOS 4.1.4 for which gid_t is an unsigned type.
88432
88433 2000-06-03  Jim Meyering  <meyering@lucent.com>
88434
88435         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88436         now that autoconf requires that.
88437
88438         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88439         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88440         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88441
88442 2000-06-03  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88445
88446 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * m4/glibc21.m4: New file.
88449         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88450
88451 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88452
88453         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88454         newer, don't install charset.alias.
88455         * lib/config.charset: Change the Linux/glibc rules so they become empty
88456         on glibc-2.1 or newer.
88457
88458 2000-06-02  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/mountlist.c: Back out last change.  Instead, do this...
88461         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88462         me_dummy member using the same `ignore'-testing code.
88463         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88464         fs_type strings.
88465         From Mark D. Roth.
88466
88467 2000-05-29  Jim Meyering  <meyering@lucent.com>
88468
88469         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88470         mounts with the `ignore' attribute.  Based on a patch from
88471         Mark D. Roth.
88472
88473 2000-05-28  Jim Meyering  <meyering@lucent.com>
88474
88475         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88476         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88477         * m4/stat.m4: Likewise.
88478         * m4/lstat.m4: Likewise.
88479         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88480
88481         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88482         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88483
88484 2000-05-26  Jim Meyering  <meyering@lucent.com>
88485
88486         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88487
88488 2000-05-24  Jim Meyering  <meyering@lucent.com>
88489
88490         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88491         autoconf requires that.
88492         * m4/lib-check.m4: Likewise.
88493         * m4/jm-macros.m4: Likewise.
88494         * m4/strftime.m4: Likewise.
88495
88496         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88497         AC_CHECK_DECLS, now that autoconf requires that.
88498
88499 2000-05-22  Jim Meyering  <meyering@lucent.com>
88500
88501         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88502         * m4/lstat.m4: Likewise.
88503
88504 2000-05-22  Jim Meyering  <meyering@lucent.com>
88505
88506         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88507
88508 2000-05-20  Jim Meyering  <meyering@lucent.com>
88509
88510         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88511         (jm_PREREQ): Use it.
88512
88513 2000-05-18  Jim Meyering  <meyering@lucent.com>
88514
88515         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88516         back, too, since it may have been modified by allocate_entry.
88517         (hash_delete): Rewrite to use neither the assignment operator
88518         nor the comma operator in an if-expression.
88519
88520 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/closeout.c:
88523         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88524         Remove; no longer needed.
88525         "quotearg.h": Add include.
88526         (file_name): Do not bother to explicitly initialize to NULL; it's less
88527         efficient on some hosts.
88528         (close_stdout_status): Remove test as to whether stdout was already
88529         closed; it breaks for the case "echo x | sort >&-".
88530         Quote file name colons.
88531         Do not assume that _("write error") lacks format strings.
88532
88533 2000-05-15  Jim Meyering  <meyering@lucent.com>
88534
88535         * lib/version-etc.c (version_etc_copyright): Update the copyright
88536         string used in all --version output.
88537
88538 2000-05-14  Jim Meyering  <meyering@lucent.com>
88539
88540         * lib/closeout.c (close_stdout_set_file_name): New function.
88541         (close_stdout_status): Use new file-scoped global.
88542         Return right away if fstat says the stdout file descriptor is invalid.
88543         * lib/closeout.h (close_stdout_set_file_name): Declare.
88544
88545 2000-05-10  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88548         (close_stdout_set_status): New function.
88549         * lib/closeout.h (close_stdout_set_status): Declare.
88550
88551 2000-05-09  Jim Meyering  <meyering@lucent.com>
88552
88553         * m4/gettext.m4: Rename this...
88554         * m4/libintl.m4: ...to this.
88555
88556 2000-05-08  Jim Meyering  <meyering@lucent.com>
88557
88558         * lib/long-options.c: Don't include closeout.h.
88559         (parse_long_options): Don't call close_stdout for --version.
88560
88561 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88562
88563         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88564         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88565         2.1.3 bug.  This avoids a clash when files like regex.c define
88566         _GNU_SOURCE.
88567
88568 2000-05-06  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88571         (AC_REPLACE_FUNCS): Add strnlen.
88572
88573         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88574         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88575
88576         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88577         AC_SEARCH_LIBS call for nanosleep.
88578         (LIB_NANOSLEEP): Set and AC_SUBST.
88579
88580 2000-05-06  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/strnlen.c: Undefine __strnlen and strnlen.
88583         [!weak_alias]: Define __strnlen to strnlen.
88584
88585         * lib/atexit.c: New file, from libiberty.
88586
88587 2000-05-06  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/closeout.c (close_stdout_status): Also check for errors on the
88590         stderr stream.
88591
88592 2000-05-05  Jim Meyering  <meyering@lucent.com>
88593
88594         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88595         AC_SEARCH_LIBS call for clock_gettime.
88596         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88597
88598         * m4/search-libs.m4: Update from autoconf.
88599
88600         su doesn't work on Solaris 2.6.
88601         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88602         <shadow.h>.  Reported by Dragos Harabor.
88603
88604 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88605
88606         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88607         memcpy instead of xmalloc, xrealloc, path_concat.
88608         (locale_charset): Treat empty environment variables as absent.
88609         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88610
88611 2000-05-04  Jim Meyering  <meyering@lucent.com>
88612
88613         * lib/getopt.c: Update from glibc.
88614         * lib/obstack.c: Likewise.
88615         * lib/obstack.h: Likewise.
88616         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88617         file
88618
88619         * lib/regex.h: Likewise.
88620         * lib/strndup.c: Likewise.
88621         * lib/strnlen.c: New file, from glibc.
88622
88623 2000-05-03  Jim Meyering  <meyering@lucent.com>
88624
88625         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88626
88627 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88628
88629         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88630         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88631         compile-time test, rather than inspecting host and OS, to
88632         decide whether to define _LARGEFILE_SOURCE.
88633
88634 2000-05-01  Jim Meyering  <meyering@lucent.com>
88635
88636         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88637
88638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88639         Based on a patch from Bruno Haible.
88640
88641 2000-05-01  Jim Meyering  <meyering@lucent.com>
88642
88643         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88644
88645 2000-04-29  Jim Meyering  <meyering@lucent.com>
88646
88647         * lib/path-concat.c: Declare strdup only if it's not defined.
88648         * lib/canon-host.c: Likewise.
88649
88650 2000-04-28  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88653         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88654         is included first, then limits.h is included by locale.h by libintl.h.
88655         From John David Anglin.
88656
88657 2000-04-25  Jim Meyering  <meyering@lucent.com>
88658
88659         * lib/makepath.c (S_IRWXUGO): Define.
88660         (make_path): Always perform explicit chmod if MODE specifies any
88661         of the `special' permission bits.  Prompted by a bug report against
88662         install from Mate Wierdl and Joost van Baal.
88663
88664 2000-04-18  Jim Meyering  <meyering@lucent.com>
88665
88666         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88667         (jm_PREREQ): Use it.
88668
88669 2000-04-18  Jim Meyering  <meyering@lucent.com>
88670
88671         * lib/README: New file.
88672
88673         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88674         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88675
88676 2000-04-17  Jim Meyering  <meyering@lucent.com>
88677
88678         Get it right :-)
88679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88680         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88681         Suggestion from Akim Demaille.
88682
88683 2000-04-17  Jim Meyering  <meyering@lucent.com>
88684
88685         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88686         the definition of it to rpl_strftime also defined-away the system's
88687         declaration.
88688
88689 2000-04-15  Jim Meyering  <meyering@lucent.com>
88690
88691         Use `C' to denote so-called `contiguous' files, the same way
88692         that tar does.
88693         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88694         (ftypelet): Use S_ISCTG.
88695         From Michael Deutschmann.
88696
88697 2000-04-14  Jim Meyering  <meyering@lucent.com>
88698
88699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88700         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88701         clobbered.
88702
88703 2000-04-14  Jim Meyering  <meyering@lucent.com>
88704
88705         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88706
88707 2000-04-13  Jim Meyering  <meyering@lucent.com>
88708
88709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88710         AH_VERBATIM to insert required #ifndef into config.h.in.
88711         Suggestion from Akim Demaille.
88712
88713 2000-04-12  Jim Meyering  <meyering@lucent.com>
88714
88715         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88716         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88717         Christian Krackowizer.
88718
88719         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88720         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88721         (AC_SYS_LARGEFILE): Require.
88722         (AM_C_PROTOTYPES): Require.
88723
88724 2000-04-08  Jim Meyering  <meyering@lucent.com>
88725
88726         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88727         names don't conflict.  Reported by Eli Zaretskii.
88728
88729 2000-04-07  Jim Meyering  <meyering@lucent.com>
88730
88731         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88732         sys/types.h, to work around system header problems on AIX 3.2.5.
88733         From Bruno Haible.
88734
88735 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88736
88737         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88738         bug.  Deal with the different error behavior of Irix iconv.
88739
88740 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88741
88742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88743         IRIX if the installer said otherwise.
88744
88745 2000-04-05  Jim Meyering  <meyering@lucent.com>
88746
88747         Portability tweaks required for ultrix4.3.
88748         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88749         (jm_CHECK_DECLS): Add getutent to the list of functions.
88750         (_jm_DECL_HEADERS): Add utmpx.h.
88751         From John David Anglin.
88752
88753         * m4/strftime.m4: Back out the 2000-04-02 change.
88754         Instead of that change, simply undefine putenv in the test program.
88755
88756 2000-04-05  Jim Meyering  <meyering@lucent.com>
88757
88758         Portability tweaks required for ultrix4.3.
88759         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88760         getutent.
88761         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88762         * lib/canon-host.c: Declare strdup.
88763         * lib/path-concat.c: Likewise.
88764         From John David Anglin.
88765
88766 2000-04-04  Jim Meyering  <meyering@lucent.com>
88767
88768         Be more DOS 8.3-friendly.
88769         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88770         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88771         * lib/Makefile.am: Reflect renaming.
88772         Reported by Eli Zaretskii.
88773
88774         Use a temporary file name that won't clash with `charset.alias'
88775         in the DOS 8.3 name space.
88776         * lib/Makefile.am (charset_tmp): Define.
88777         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88778         (uninstall-local): Likewise.
88779         Reported by Eli Zaretskii.
88780
88781 2000-04-03  Jim Meyering  <meyering@lucent.com>
88782
88783         * m4/gettext.m4: Fix typo in comment.
88784
88785         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88786         textutils/configure.in).  Suggestion from Paul Eggert.
88787         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88788
88789 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88790
88791         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88792         variable in the shell rather than using putenv, which isn't
88793         portable.  This avoids the configure-time inter-test dependency
88794         on the potentially-renamed putenv function.
88795
88796 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88797
88798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88799         before checking struct stat.st_blksize, so that
88800         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88801
88802 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88803
88804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88805         since strftime.c uses HAVE_STRFTIME to decide whether to use
88806         the underlying strftime.
88807
88808 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88809
88810         * lib/time/strftime.c (my_strftime): Make sure we call the system
88811         strftime, not ourselves, when invoking the underlying strftime.
88812
88813 2000-03-24  Jim Meyering  <meyering@lucent.com>
88814
88815         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88816         (charset_alias): Define.
88817         (install-exec-local): Factor out common code.
88818         (uninstall-local): Split lines longer than 80.
88819         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88820         (SUFFIXES): Define.
88821         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88822         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88823
88824 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88825
88826         * lib/config.charset: Output a line containing "Packages using this
88827         file".
88828         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88829         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88830         ref-del.sed): New rules.
88831
88832 2000-03-17  Jim Meyering  <meyering@lucent.com>
88833
88834         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88835         Otherwise, include <strings.h>
88836
88837 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88838
88839         * lib/unicodeio.c (utf8_wctomb): New function.
88840         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88841         format instead of in UCS-4 with platform dependent endianness.
88842
88843 2000-03-10  Jim Meyering  <meyering@lucent.com>
88844
88845         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88846         From Marco Franzen.
88847
88848 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88849
88850         * lib/savedir.c (savedir): Work even if directory size is
88851         negative; this can happen with some screwy NFS configurations.
88852
88853 2000-03-06  Jim Meyering  <meyering@lucent.com>
88854
88855         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88856         if it's NULL (because we ran out of memory).  From Bruno Haible.
88857
88858 2000-03-05  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/localcharset.c ("path-concat.h"): Include.
88861         (get_charset_aliases): Use path_concat instead of ANSI string
88862         concatenation.
88863
88864         * lib/unicodeio.h (PARAMS): Define.
88865         Use it to guard prototype.
88866
88867 2000-03-04  Jim Meyering  <meyering@lucent.com>
88868
88869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88870         for lib/localcharset.c.
88871
88872 2000-03-04  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88875         installing into it.
88876         (uninstall-local): Uncomment this rule so `make distcheck' works
88877         once again.
88878
88879         * lib/unicodeio.c (<errno.h>): Include it.
88880         (errno): Declare if not defined.
88881
88882         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88883
88884         * lib/config.charset: New version, incorporating remarks from a linux
88885         i18n mailing list.  From Bruno Haible.
88886
88887 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88888
88889         * m4/codeset.m4: New file.
88890         * m4/iconv.m4: New file.
88891         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88892
88893 2000-03-03  Jim Meyering  <meyering@lucent.com>
88894
88895         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88896
88897 2000-03-02  Jim Meyering  <meyering@lucent.com>
88898
88899         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88900         the messages come out on separate lines.
88901
88902         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88903         rather than jm_CHECK_DECLARATIONS.
88904         * m4/decl.m4: Remove now-unused file.
88905
88906         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88907         geteuid.
88908
88909 2000-03-02  Jim Meyering  <meyering@lucent.com>
88910
88911         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88912
88913 2000-03-01  Jim Meyering  <meyering@lucent.com>
88914
88915         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88916         * lib/unicodeio.c: Likewise.
88917
88918 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88919
88920         * lib/config.charset: New file.
88921         * lib/localcharset.c: New file.
88922         * lib/unicodeio.h, lib/unicodeio.c: New files.
88923         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88924         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88925         (noinst_HEADERS): Add unicodeio.h.
88926         (all-local, install-exec-local, charset.alias): New targets.
88927
88928 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88929
88930         * lib/quotearg.c (ALERT_CHAR): New macro.
88931         (quotearg_buffer_restyled): Use it.
88932
88933 2000-02-27  Jim Meyering  <meyering@lucent.com>
88934
88935         * m4/check-decl.m4: Add getenv to the list.
88936
88937 2000-02-27  Jim Meyering  <meyering@lucent.com>
88938
88939         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88940         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88941
88942         * lib/backupfile.c: Guard inclusion of stdlib.h with
88943         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88944         Declare malloc if needed.
88945
88946         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88947         `#ifndef HAVE_DECL..'
88948         now that autoconf always defines the HAVE_DECL_ symbols.
88949         * lib/human.c: Likewise.
88950         * lib/same.c: Likewise.
88951         * lib/strtoumax.c: Likewise.
88952
88953         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88954         declaration check was not run.
88955         * lib/hash.c: Likewise.
88956         * lib/human.c: Likewise.
88957         * lib/same.c: Likewise.
88958         * lib/strtoumax.c: Likewise.
88959
88960         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88961         `.', then first look up the entire `.'-containing string as a login
88962         name.
88963
88964 2000-02-23  Jim Meyering  <meyering@lucent.com>
88965
88966         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88967         in place of my hack.
88968
88969 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88970
88971         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88972         (textint): New typedef.
88973         (parser_control): Member year changed from int to textint.
88974         All uses changed.
88975         (YYSTYPE): Removed; replaced by %union with int and textint members.
88976         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88977         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88978         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88979         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88980         (date, number, to_year): Use width of number in digits, not its value,
88981         to determine whether it's a 2-digit year, or a 2-digit time.
88982         (yylex): Store number of digits of numeric tokens.
88983         Reported by John Kendall.
88984
88985         (parser_control): Changed from struct parser_control to typedef (for
88986         consistency).  All uses changed.
88987
88988         (tID): Removed; not used.
88989         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88990
88991 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88994         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88995
88996 2000-02-12  Jim Meyering  <meyering@lucent.com>
88997
88998         * lib/userspec.c (ISDIGIT): Define it.
88999         (isdigit): Remove definition.
89000         (is_number): Use ISDIGIT, not isdigit.
89001         <libintl.h>: Include.
89002         (_ and N_): Define.
89003         (parse_user_spec): Mark translatable strings.
89004
89005 2000-02-10  Jim Meyering  <meyering@lucent.com>
89006
89007         With these changes, nanosleep.[ch] are finally enough like the other
89008         lib/* replacement files to compile on a few more losing systems.
89009
89010         * lib/nanosleep.h: Don't include config.h.
89011         Remove prototype from declaration of nanosleep.
89012         (PARAMS): Remove now-unneeded definition.
89013         * lib/nanosleep.c: #undef nanosleep.
89014         (rpl_nanosleep): Rename from nanosleep.
89015
89016 2000-02-10  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89019         gnu_nanosleep to rpl_nanosleep.
89020
89021 2000-02-09  Jim Meyering  <meyering@lucent.com>
89022
89023         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89024         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89025
89026 2000-02-08  Akim Demaille  <akim@epita.fr>
89027
89028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89029         `[' and `]' and remove uses of `changequote'.
89030         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89031         (AC_SYS_LARGEFILE): Likewise.
89032         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89033         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89034         of changequote.
89035         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89036         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89037         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89038         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89039
89040 2000-02-05  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89043         Remove explicit use of AC_HEADER_TIME.  It is required by
89044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89045         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89046         in autoconf whereby the expansion of the latter ended up preceding
89047         the expansion of its prerequisite, AC_HEADER_TIME.
89048         Reported by Volker Borchert.
89049
89050 2000-02-03  Jim Meyering  <meyering@lucent.com>
89051
89052         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89053
89054 2000-02-03  Jim Meyering  <meyering@lucent.com>
89055
89056         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89057         rather than with `#if HAVE_UTMPNAME'.
89058
89059 2000-02-02  Jim Meyering  <meyering@lucent.com>
89060
89061         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89062         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89063         Reported by Eli Zaretskii.
89064
89065 2000-02-01  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89068
89069 2000-01-31  Jim Meyering  <meyering@lucent.com>
89070
89071         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89072         functions.  Add the time.h and sys/time.h headers along with the
89073         AC_REQUIRE'ment of AC_HEADER_TIME.
89074
89075 2000-01-31  Jim Meyering  <meyering@lucent.com>
89076
89077         * lib/nanosleep.h (nanosleep): Guard declaration with
89078         `#if ! HAVE_DECL_NANOSLEEP'.
89079         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89080         the declaration in that vendor's sys/timers.h.
89081         Reported by Christian Krackowizer.
89082
89083         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89084         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89085         (ISPRINT): Likewise.
89086         Reported by Tom Tromey.
89087
89088 2000-01-30  Jim Meyering  <meyering@lucent.com>
89089
89090         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89091
89092         * m4/prereq.m4 (utmp_includes): Define.
89093         Check for ut_user and ut_name members in both struct utmpx
89094         and struct utmp.
89095
89096 2000-01-30  Jim Meyering  <meyering@lucent.com>
89097
89098         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89099         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89100         header files where only utmpx.ut_user is declared.
89101
89102         * lib/readutmp.h (UT_USER): Define.
89103
89104 2000-01-29  Jim Meyering  <meyering@lucent.com>
89105
89106         * m4/lib-check.m4: New file containing library-related checks from
89107         fileutils and sh-utils (textutils had none).
89108
89109 2000-01-28  Jim Meyering  <meyering@lucent.com>
89110
89111         * m4/perl.m4: Change format of warning message to look more like that
89112         from the missing script.  Suggestion from François Pinard.
89113
89114 2000-01-25  Jim Meyering  <meyering@lucent.com>
89115
89116         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89117         well as time.h in the compile check.
89118         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89119         Fix typo in cross-compiling case: s/yes/no/.
89120
89121 2000-01-23  Jim Meyering  <meyering@lucent.com>
89122
89123         * m4/jm-macros.m4: Move df-related tests here from
89124         fileutils/configure.in
89125
89126         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89127         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89128
89129         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89130         s/space/ac_fsusage_space/.
89131         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89132
89133         * m4/ftruncate.m4: New file (derived from part of
89134         fileutils/configure.in).
89135         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89136         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89137
89138         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89139         AC_SUBST these here, rather than just in sh-util/configure.in, so
89140         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89141         all the same.
89142         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89143         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89144         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89145         (AC_SUBST(POW_LIBM)): Likewise.
89146         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89147
89148 2000-01-23  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89151         obstack.c.
89152
89153 2000-01-22  Jim Meyering  <meyering@lucent.com>
89154
89155         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89156
89157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89158
89159         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89160         configure.in
89161         (AC_CHECK_HEADERS): Likewise for sh-utils.
89162         (AC_CHECK_HEADERS): Likewise for textutils.
89163         Merge the three lists of headers.
89164
89165         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89166         from fileutils' configure.in.
89167
89168         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89169         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89170         check-decl.m4.
89171
89172         * m4/check-decl.m4: Use #if rather than #ifdef.
89173         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89174         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89175         (_jm_DECL_HEADERS): Define new function.
89176         (jm_CHECK_DECLARATIONS): Require it.
89177
89178 2000-01-22  Jim Meyering  <meyering@lucent.com>
89179
89180         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89181         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89182         Required for some AIX systems.  Reported by Christian Krackowizer.
89183         [TESTING] (main): New function.
89184
89185         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89186         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89187         letters.
89188
89189         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89190         iswprint.
89191
89192         * lib/strverscmp.c (ISDIGIT): Define.
89193         (strverscmp): Use ISDIGIT, not isdigit.
89194
89195 2000-01-19  Jim Meyering  <meyering@lucent.com>
89196
89197         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89198         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89199         defines `struct timespec' in <sys/time.h>
89200
89201         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89202         Thanks to Akim for explaining.
89203
89204 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89205
89206         * lib/nanosleep.c (nanosleep):
89207         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89208         POSIX.1 doesn't require SA_INTERRUPT and some systems
89209         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89210         it's been part of POSIX.1 since day 1 (in 1988).
89211
89212 2000-01-17  Jim Meyering  <meyering@lucent.com>
89213
89214         * lib/interlock: Remove unused file.  Reported by François Pinard.
89215
89216 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89217
89218         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89219         alert, backslash, formfeed, and vertical tab unnecessarily in
89220         shell quoting style.
89221
89222 2000-01-16  Jim Meyering  <meyering@lucent.com>
89223
89224         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89225         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89226         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89227         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89228
89229 2000-01-16  Jim Meyering  <meyering@lucent.com>
89230
89231         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89232         because the latter didn't work.
89233
89234 2000-01-15  Jim Meyering  <meyering@lucent.com>
89235
89236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89237         (AC_REPLACE_FUNCS): Add memcpy and memset.
89238         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89239         Add strpbrk.
89240         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89241
89242 2000-01-12  Jim Meyering  <meyering@lucent.com>
89243
89244         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89245         (jm_PREREQ): Use it.
89246         (jm_PREREQ_READUTMP): New macro.
89247         (jm_PREREQ): Use it.
89248
89249 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89250
89251         Quote multibyte characters correctly.
89252         * m4/c-bs-a.m4: New file.
89253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89254         (jm_PREREQ): Use it.
89255
89256 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89257
89258         * m4/uintmax_t.m4: Port to autoconf 2.13.
89259
89260 2000-01-08  Jim Meyering  <meyering@ascend.com>
89261
89262         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89263         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89264
89265 2000-01-04  Jim Meyering  <meyering@ascend.com>
89266
89267         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89268         jm_STRUCT_DIRENT_D_TYPE.
89269         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89270         jm_STRUCT_DIRENT_D_INO.
89271         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89272         jm_STRUCT_UTIMBUF.
89273         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89274         renamings.
89275         * m4/utime.m4: Likewise.
89276
89277         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89278         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89279
89280 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89281
89282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89283         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89284
89285 2000-01-02  Jim Meyering  <meyering@ascend.com>
89286
89287         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89288         remember if this is necessary.
89289
89290 1999-12-26  Jim Meyering  <meyering@ascend.com>
89291
89292         * m4/jm-macros.m4: Use it here.
89293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89294
89295 1999-12-23  Jim Meyering  <meyering@ascend.com>
89296
89297         * m4/jm-macros.m4: Check for clock_gettime (moved from
89298         fileutils/configure.in)
89299         Check for gettimeofday.
89300
89301 1999-12-20  Jim Meyering  <meyering@ascend.com>
89302
89303         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89304         autoconf-2.14a-1999-12-20.
89305
89306 1999-12-19  Jim Meyering  <meyering@ascend.com>
89307
89308         * m4/lstat-slash.m4: New file.
89309         * m4/jm-macros.m4: Use the new macro:
89310         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89311
89312 1999-12-07  Jim Meyering  <meyering@ascend.com>
89313
89314         * m4/perl.m4: Require that File::Compare be available, too.
89315         Too many systems seem to lack it.
89316
89317         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89318         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89319
89320 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89321
89322         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89323         problem with the QNX 4.25 shell, which doesn't propagate exit
89324         status of failed commands inside shell assignments.
89325
89326 1999-11-17  Jim Meyering  <meyering@ascend.com>
89327
89328         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89329
89330 1999-11-07  Jim Meyering  <meyering@ascend.com>
89331
89332         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89333
89334 1999-11-06  Jim Meyering  <meyering@ascend.com>
89335
89336         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89337         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89338
89339 1999-11-05  Jim Meyering  <meyering@ascend.com>
89340
89341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89342         configure.in of textutils, fileutils, and sh-utils into this one
89343         (shared between those packages) file.
89344         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89345         AC_STRUCT_ST_BLKSIZE.
89346
89347 1999-11-03  Jim Meyering  <meyering@ascend.com>
89348
89349         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89350         of AC_CHECK_TYPE checks includes unistd.h.
89351         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89352         Suggestion from Akim Demaille.
89353
89354 1999-10-30  Jim Meyering  <meyering@ascend.com>
89355
89356         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89357         m4-quoted string.
89358         * m4/ls-mntd-fs.m4: Likewise.
89359         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89360         * m4/jm-winsz1.m4: Likewise.
89361
89362         * m4/const.m4: Remove file, since the fix made it into the experimental
89363         version of autoconf.
89364         * m4/mktime.m4: Likewise.
89365
89366         * m4/check-type.m4: Remove file, now that the latest version of
89367         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89368
89369         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89370         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89371         AC_CHECK_TYPE.
89372
89373 1999-10-04  Jim Meyering  <meyering@ascend.com>
89374
89375         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89376
89377 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89378
89379         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89380         2.95.1 bug with HP-UX 10.20.
89381
89382 1999-09-17  Jim Meyering  <meyering@ascend.com>
89383
89384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89385         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89386         due to missing strdup (against sh-utils-2.0).
89387
89388 1999-08-29  Jim Meyering  <meyering@ascend.com>
89389
89390         * m4/jm-macros.m4: Require jm_BISON.
89391         * m4/bison.m4: New file.
89392
89393 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89394
89395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89396         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89397
89398 1999-08-05  Jim Meyering  <meyering@ascend.com>
89399
89400         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89401         to avoid conflicts with `conftest' on 8+3 filesystems.
89402         Suggestion from Eli Zaretskii.
89403
89404 1999-08-04  Jim Meyering  <meyering@ascend.com>
89405
89406         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89407         fileutils and sh-utils (textutils's getline test was inadequate).
89408         (AM_FUNC_GETLINE): Run this test.
89409         (AC_CHECK_FUNCS): Check for getdelim.
89410         Reported by Bob Proulx.
89411
89412 1999-08-02  Jim Meyering  <meyering@ascend.com>
89413
89414         * m4/jm-macros.m4: Add a comment.
89415
89416 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89417
89418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89419         <inttypes.h> defines strtoumax as a macro (and not as a
89420         function).
89421
89422 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89423
89424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89425         that we can shift, multiply and divide unsigned long long
89426         values; Ultrix cc can't do it.
89427
89428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89429
89430         * m4/mktime.m4: New file, which is a preview of what should appear
89431         in the next public autoconf release.
89432
89433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89434
89435         * m4/lfs.m4: Remove this file.
89436         * m4/largefile.m4: New file.  It contains the old contents of
89437         lfs.m4, except that all names with prefix AC_LFS have been
89438         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89439         compatible with future autoconf versions.  Also, some minor m4
89440         quoting problems have been fixed.
89441
89442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89443
89444         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89445         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89446         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89447         and simplify the shell code.
89448
89449 1999-08-01  Jim Meyering  <meyering@ascend.com>
89450
89451         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89452         m4.
89453
89454 1999-07-20  Jim Meyering  <meyering@ascend.com>
89455
89456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89457
89458 1999-07-15  Jim Meyering  <meyering@ascend.com>
89459
89460         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89461
89462 1999-05-22  Jim Meyering  <meyering@ascend.com>
89463
89464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89465
89466 1999-05-20  Jim Meyering  <meyering@ascend.com>
89467
89468         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89469         Add a colon after each `then' in case $4 is empty.
89470
89471 1999-05-16  Jim Meyering  <meyering@ascend.com>
89472
89473         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89474
89475 1999-05-10  Jim Meyering  <meyering@ascend.com>
89476
89477         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89478
89479         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89480         AC_FUNC_MKTIME.
89481
89482 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89483
89484         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89485
89486 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89487
89488         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89489         not CPPFLAGS, so that linking works correctly in IRIX.
89490
89491 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89492
89493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89494
89495 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89496
89497         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89498         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89500         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89502
89503         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89504
89505 1999-04-20  Jim Meyering  <meyering@ascend.com>
89506
89507         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89508         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89509         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89510
89511 1999-04-18  Jim Meyering  <meyering@ascend.com>
89512
89513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89514         * m4/jm-macros.m4: Use it.
89515
89516 1999-04-06  Jim Meyering  <meyering@ascend.com>
89517
89518         * m4/strftime.m4: Remove test for %f.
89519
89520 1999-03-29  Jim Meyering  <meyering@ascend.com>
89521
89522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89523         superset of the AC_TYPE_* checks in the textutils, fileutils,
89524         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89525         AC_TYPE_PID_T.
89526
89527 1999-03-28  Jim Meyering  <meyering@ascend.com>
89528
89529         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89530         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89531         replaced e.g., in the *.sh files of the sh-utils.
89532
89533 1999-03-20  Jim Meyering  <meyering@ascend.com>
89534
89535         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89536         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89537         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89538
89539 1999-03-19  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89542
89543 1999-03-12  Jim Meyering  <meyering@ascend.com>
89544
89545         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89546
89547 1999-03-07  Jim Meyering  <meyering@ascend.com>
89548
89549         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89550         declared.
89551
89552 1999-02-17  Jim Meyering  <meyering@ascend.com>
89553
89554         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89555         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89556
89557 1999-02-07  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/group-member.m4: New file -- extracted from sh-utils'
89560         configure.in.
89561
89562         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89563         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89564
89565 1999-02-06  Jim Meyering  <meyering@ascend.com>
89566
89567         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89568         * m4/fnmatch.m4: Likewise.
89569         * m4/getgroups.m4: Likewise.
89570         * m4/lstat.m4: Likewise.
89571         * m4/malloc.m4: Likewise.
89572         * m4/putenv.m4: Likewise.
89573         * m4/realloc.m4: Likewise.
89574         * m4/regex.m4: Likewise.
89575         * m4/stat.m4: Likewise.
89576         * m4/strftime.m4: Likewise.
89577         Suggestion from Alain Magloire.
89578
89579         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89580         * m4/fnmatch.m4: Likewise.
89581         * m4/getgroups.m4: Likewise.
89582         * m4/getline.m4: Likewise.
89583         * m4/lstat.m4: Likewise.
89584         * m4/malloc.m4: Likewise.
89585         * m4/memcmp.m4: Likewise.
89586         * m4/putenv.m4: Likewise.
89587         * m4/realloc.m4: Likewise.
89588         * m4/regex.m4: Likewise.
89589         * m4/stat.m4: Likewise.
89590         * m4/strftime.m4: Likewise.
89591         Suggestion from Alain Magloire.
89592
89593         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89594         an argument.
89595
89596         * m4/regex.m4: Add a run-time Test for proper operation of
89597         re_compile_pattern.
89598
89599 1999-01-31  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89602
89603 1999-01-30  Jim Meyering  <meyering@ascend.com>
89604
89605         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89606
89607         * m4/jm-mktime.m4: Make this a wrapper around the official
89608         AM_FUNC_MKTIME rather than my private copy, now that the official one
89609         is up to date.
89610         * m4/mktime.m4: Remove file.
89611
89612         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89613         * m4/uptime.m4: Likewise.
89614         * m4/uintmax_t.m4: Likewise.
89615
89616 1999-01-28  Jim Meyering  <meyering@ascend.com>
89617
89618         * m4/jm-macros.m4: Use jm_AFS.
89619         * m4/afs.m4: New file (from fileutils' configure.in).
89620
89621         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89622         * m4/chown.m4: Likewise.
89623         * m4/d-ino.m4: Likewise.
89624         * m4/d-type.m4: Likewise.
89625         * m4/fnmatch.m4: Likewise.
89626         * m4/getgroups.m4: Likewise.
89627         * m4/gettext.m4: Likewise.
89628         * m4/jm-mktime.m4: Likewise.
89629         * m4/jm-winsz2.m4: Likewise.
89630         * m4/lcmessage.m4: Likewise.
89631         * m4/ls-mntd-fs.m4: Likewise.
89632         * m4/malloc.m4: Likewise.
89633         * m4/memcmp.m4: Likewise.
89634         * m4/putenv.m4: Likewise.
89635         * m4/realloc.m4: Likewise.
89636         * m4/st_mtim.m4: Likewise.
89637         * m4/strftime.m4: Likewise.
89638
89639 1999-01-16  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89642         (ARGMATCH_DIE_DECL): Define.
89643
89644 1999-01-12  Jim Meyering  <meyering@ascend.com>
89645
89646         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89647         Reported by Lars Hecking.
89648
89649 1999-01-10  Jim Meyering  <meyering@ascend.com>
89650
89651         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89652         gross kludge.
89653         * m4/inttypes_h.m4: Likewise.
89654         * m4/lstat.m4: Likewise.
89655         * m4/malloc.m4: Likewise.
89656         * m4/readdir.m4: Likewise.
89657         * m4/realloc.m4: Likewise.
89658         * m4/st_dm_mode.m4: Likewise.
89659         * m4/stat.m4: Likewise.
89660         * m4/utimbuf.m4: Likewise.
89661         * m4/utimes.m4: Likewise.
89662
89663         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89664         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89665         comments in config.h.in are meaningful.
89666
89667         * m4/jm-macros.m4: Require autoconf-2.13 here.
89668
89669         * m4/regex.m4: By default, don't use the included regex.c on systems
89670         with glibc 2.  Suggestion from Uli Drepper.
89671
89672 1999-01-02  Jim Meyering  <meyering@ascend.com>
89673
89674         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89675
89676 1998-12-18  Jim Meyering  <meyering@ascend.com>
89677
89678         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89679         Based on a suggestion from Lars Hecking.
89680
89681 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89682
89683         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89684
89685 1998-11-16  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/lfs.m4: Double-quote the `uname...` expression.
89688
89689 1998-11-14  Jim Meyering  <meyering@ascend.com>
89690
89691         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89692         * m4/stat.m4: Likewise.
89693
89694 1998-11-03  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89697         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89698
89699 1998-10-18  Jim Meyering  <meyering@ascend.com>
89700
89701         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89702
89703 1998-10-17  Jim Meyering  <meyering@ascend.com>
89704
89705         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89706         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89707         calls for those previously hard-coded headers.  Instead, take a new
89708         parameter.
89709         (jm_CHECK_DECLARATIONS): Reflect interface change.
89710         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89711         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89712
89713         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89714
89715 1998-10-14  Jim Meyering  <meyering@ascend.com>
89716
89717         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89718         instead of "TZ=America/Vancouver".  From Paul Eggert.
89719
89720 1998-10-11  Jim Meyering  <meyering@ascend.com>
89721
89722         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89723         This adds a test for a recently added compatibility fix for mktime.c.
89724         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89725
89726 1998-09-27  Jim Meyering  <meyering@ascend.com>
89727
89728         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89729
89730         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89731         ../configure.in, including a change from Gordon Matzigkeit to allow
89732         cross-compiling for the Hurd.
89733
89734         * m4/glibc.m4: New file/macro to test for the GNU C Library
89735         versions 1 and 2.  From Gordon Matzigkeit.
89736         Indent.
89737
89738 1998-09-21  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89741
89742 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89743
89744         Port nanosecond-resolution times to UnixWare 2.1.2 and
89745         pedantic Solaris 2.6.
89746
89747         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89748         AC_STRUCT_ST_MTIM.
89749         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89750         Generate name of ns member, instead of just 1 or undef.
89751         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89752
89753 1998-08-15  Jim Meyering  <meyering@ascend.com>
89754
89755         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89756         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89757         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89758         instead of jm_TYPE_SSIZE_T.
89759
89760 1998-08-12  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89763
89764 1998-08-02  Jim Meyering  <meyering@ascend.com>
89765
89766         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89767         in acconfig.h manually.
89768
89769 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89770
89771         * m4/st_mtim.m4: New file.
89772
89773 1998-07-28  Jim Meyering  <meyering@ascend.com>
89774
89775         * m4/utimes.m4: Undef stat.
89776
89777 1998-07-25  Jim Meyering  <meyering@ascend.com>
89778
89779         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89780         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89781
89782 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89783
89784         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89785         uid and gid actually remain unchanged.
89786
89787 1998-07-07  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89790
89791 1998-07-04  Jim Meyering  <meyering@ascend.com>
89792
89793         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89794         to prove that this macro can be used in packages without regex.c.
89795
89796 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89797
89798         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89799         is to be used.
89800
89801 1998-07-03  Jim Meyering  <meyering@ascend.com>
89802
89803         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89804
89805         * m4/gettext.m4: New file -- from gettext-0.10.35.
89806         * m4/lcmessage.m4: Likewise.
89807         * m4/progtest.m4: Likewise.
89808
89809         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89810         * m4/jm-macros.m4: Require the new macro.
89811
89812 1998-06-29  Jim Meyering  <meyering@ascend.com>
89813
89814         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89815         for the definition of NGROUPS (used in a system header included
89816         by sys/mount.h).
89817
89818 1998-06-28  Jim Meyering  <meyering@ascend.com>
89819
89820         * m4/ls-mntd-fs.m4: New file.
89821         * m4/fstypename.m4: New file.
89822
89823         * m4/jm-macros.m4: Require the new macro.
89824         * m4/jm-glibc-io.m4: New file.
89825
89826 1998-05-19  Jim Meyering  <meyering@ascend.com>
89827
89828         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89829         * m4/lchown.m4: New file.
89830
89831         * m4/Makefile.am.in: New file.
89832         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89833
89834 1998-05-14  Jim Meyering  <meyering@ascend.com>
89835
89836         * m4/Makefile.am (EXTRA_DIST): Add them.
89837         * m4/jm-macros.m4: New file.
89838         * m4/utimbuf.m4: New file.
89839
89840 1998-05-12  Jim Meyering  <meyering@ascend.com>
89841
89842         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89843
89844 1998-05-11  Jim Meyering  <meyering@ascend.com>
89845
89846         * m4/isc-posix.m4: New file.
89847
89848 1998-05-10  Jim Meyering  <meyering@ascend.com>
89849
89850         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89851
89852 1998-05-09  Jim Meyering  <meyering@ascend.com>
89853
89854         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89855         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89856         with automake.
89857
89858         * m4/ssize_t.m4: New file.
89859         * m4/mktime.m4: Remove file -- the new automake has this now.
89860
89861 1998-04-26  Jim Meyering  <meyering@ascend.com>
89862
89863         * m4/assert.m4: New file.
89864         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89865
89866 1998-04-05  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89869         (jm_PREREQ): Use it here.
89870
89871 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89872
89873         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89874         in acconfig.h.
89875
89876 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89877
89878         * m4/prereq.m4: New file.
89879         * m4/error.m4: New file.
89880         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89881
89882 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89883
89884         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89885         cache-check for the same variable -- that defeated the purpose of
89886         the test; the test program was never run.  This was a problem only
89887         on systems with losing getline functions -- HP-UX 10.20 is one.
89888         Reported by Bjorn Helgaas.
89889
89890 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89891
89892         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89893
89894 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89895
89896         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89897
89898         * m4/const.m4: New file.  Use an initializer in this declaration
89899         typedef int charset[2]; const charset x;
89900         Reported by Bob Glickstein.
89901
89902 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89903
89904         * m4/chown.m4: Fix reversed types on -1 args to chown.
89905         From Kaveh Ghazi.
89906
89907 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89908
89909         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89910         Add lseek and memchr.
89911
89912         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89913         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89914         have a 20-character limit on names.
89915
89916 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89917
89918         * m4/inttypes_h.m4: New file.
89919         * m4/uintmax_t.m4: New file.
89920         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89921
89922
89923         -----
89924
89925         Local Variables:
89926         coding: utf-8
89927         End:
89928
89929         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89930
89931         Copying and distribution of this file, with or without
89932         modification, are permitted provided the copyright notice
89933         and this notice are preserved.