Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
[gnulib.git] / ChangeLog
1 2011-11-27  Bruno Haible  <bruno@clisp.org>
2
3         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5         HAVE_OPENDIR is 0.
6         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7         HAVE_CLOSEDIR is 0.
8         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9         is 0.
10         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11
12 2011-11-27  Bruno Haible  <bruno@clisp.org>
13
14         getcwd: Fix bug from 2011-08-17.
15         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
16         platforms that need it.
17         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
18         code of 4 to be a failure, not a success. This ensures that
19         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
20
21 2011-11-27  Bruno Haible  <bruno@clisp.org>
22
23         binary-io tests: Avoid test failure on mingw when libtool is used.
24         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
25         Don't verify the size of t-bin-out1.tmp here.
26         * tests/test-binary-io.sh: Verify it here.
27         Reported by Simon Josefsson.
28
29 2011-11-26  Bruno Haible  <bruno@clisp.org>
30
31         Fix conflict between two instantiations of module 'unistd'.
32         * gnulib-tool (func_emit_autoconf_snippet): Substitute
33         ${include_guard_prefix} also in the autoconf snippet.
34         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
35         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
36         GNULIB_UNISTD_H_GETOPT.
37         * modules/getopt-posix (configure.ac): Set the
38         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
39         * modules/getopt-gnu (configure.ac): Likewise.
40         * modules/unistd (Makefile.am): Change the substitution value of
41         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
42         Reported by Simon Josefsson.
43
44 2011-11-25  Bruno Haible  <bruno@clisp.org>
45
46         pagealign_alloc: Doc and comments.
47         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
48         module.
49         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
50
51 2011-11-25  Jim Meyering  <meyering@redhat.com>
52
53         test-update-copyright.sh: avoid false-positive failure
54         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
55         around false positive failure on Cygwin/Windows.  The latter was
56         matching erroneously-created files with names like
57         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
58
59 2011-11-25  Simon Josefsson  <simon@josefsson.org>
60
61         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
62         * m4/valgrind-tests.m4: Check that the parameters that will be
63         used works, not just a subset of them.  Reported by Bruno Haible
64         <bruno@clisp.org>.
65
66 2011-11-24  Jim Meyering  <meyering@redhat.com>
67
68         test-stdalign.c: comment out long double tests
69         * tests/test-stdalign.c: Don't try to reduce alignment of long double
70         variables.  That provokes errors like this from gcc-4.7.0 20111124:
71         error: '_Alignas' specifiers cannot reduce alignment of \
72         'static_longdouble_alignas'.
73
74 2011-11-22  Jim Meyering  <meyering@redhat.com>
75
76         init.sh: make "compare /dev/null FILE" output more readable
77         * tests/init.sh (compare_): Document the preferred order of arguments.
78         (emit_diff_u_header_): New function.
79         (compare_dev_null_): Emit a simulated diff, rather than just the
80         contents of the unexpected file.  Suggestion from Bruno Haible.
81
82 2011-11-21  Jim Meyering  <meyering@redhat.com>
83             Eric Blake  <eblake@redhat.com>
84
85         init.sh: work around OSF/1 5.1's mishandling of /dev/null
86         * tests/init.sh: Make our compare function slightly more portable.
87         Reported by Bruno Haible in
88         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
89
90 2011-11-21  Simon Josefsson  <simon@josefsson.org>
91
92         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
93         before using it, in code that ends up in config.h.
94
95 2011-11-20  Bruno Haible  <bruno@clisp.org>
96
97         getcwd: Work around getcwd bug on AIX 5..7.
98         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
99         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
100         Use a different value for gl_cv_func_getcwd_path_max. Move the
101         definition of HAVE_PARTLY_WORKING_GETCWD from here...
102         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
103         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
104         Define HAVE_MINIMALLY_WORKING_GETCWD.
105         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
106         where it is not even minimally working, that is, on AIX.
107         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
108         m4/getcwd-path-max.m4.
109         (main): Update exit code computation.
110         * doc/posix-functions/getcwd.texi: Mention list of platforms where
111         getcwd does not handle long file names.
112
113 2011-11-20  Bruno Haible  <bruno@clisp.org>
114
115         getcwd: Fix bug from 2009-09-10.
116         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
117         like "no".
118
119 2011-11-20  Simon Josefsson  <simon@josefsson.org>
120
121         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
122
123 2011-11-20  Bruno Haible  <bruno@clisp.org>
124
125         fma tests: Avoid shadowing local variables.
126         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
127         expected.
128
129 2011-11-20  Bruno Haible  <bruno@clisp.org>
130
131         copysignf tests: Fix.
132         * tests/test-copysignf.c: Fix signature check.
133
134 2011-11-20  Bruno Haible  <bruno@clisp.org>
135
136         fma: Remove unused code.
137         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
138         unused macros.
139
140 2011-11-20  Bruno Haible  <bruno@clisp.org>
141
142         sethostname: Fix doc about AIX.
143         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
144         sethostname; it has it.
145
146         sethostname: Mention more portability problems.
147         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
148         problem.
149         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
150
151 2011-11-19  Bruno Haible  <bruno@clisp.org>
152
153         Depend on module fcntl-h when AT_FDCWD is used.
154         * modules/utimens (Depends-on): Add fcntl-h.
155         * modules/areadlinkat (Depends-on): Likewise.
156         * modules/areadlinkat-with-size (Depends-on): Likewise.
157         * modules/faccessat (Depends-on): Likewise.
158         * modules/fchmodat (Depends-on): Likewise.
159         * modules/fchownat (Depends-on): Likewise.
160         * modules/getcwd (Depends-on): Likewise.
161         * modules/mkdirat (Depends-on): Likewise.
162         * modules/mkfifoat (Depends-on): Likewise.
163         * modules/readlinkat (Depends-on): Likewise.
164         * modules/symlinkat (Depends-on): Likewise.
165         * modules/dup2-tests (Depends-on): Likewise.
166         * modules/fdutimensat-tests (Depends-on): Likewise.
167         * modules/futimens-tests (Depends-on): Likewise.
168
169 2011-11-19  Bruno Haible  <bruno@clisp.org>
170
171         euidaccess: Update a comment.
172         * lib/euidaccess.c: Update comment about platforms with faccessat.
173
174 2011-11-19  Bruno Haible  <bruno@clisp.org>
175
176         openat: Fix file list.
177         * modules/openat (Files): Remove lib/at-func.c.
178
179 2011-11-19  Bruno Haible  <bruno@clisp.org>
180
181         fstatat: Simplify.
182         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
183         gnulib should define rpl_fstatat, there is a
184         "#define fstatat rpl_fstatat" in <sys/stat.h>.
185
186 2011-11-19  Bruno Haible  <bruno@clisp.org>
187
188         Ensure 'inline' can be used in tests/test-utimens-common.h.
189         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
190         * modules/futimens-tests (configure.ac): Likewise.
191         * modules/utimens-tests (configure.ac): Likewise.
192         * modules/utimensat-tests (configure.ac): Likewise.
193
194 2011-11-19  Simon Josefsson  <simon@josefsson.org>
195
196         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
197         not hash_insert0.
198         (hash_insert_if_absent): Doc fix.
199
200 2011-11-19  Simon Josefsson  <simon@josefsson.org>
201
202         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
203
204 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
205
206         test-getcwd: disambiguate exit status
207         * tests/test-getcwd.c (test_long_name): Return 0..7.
208         (main): Exit with an unambiguous exit status.  The old
209         code yielded a mysterious mixture of two failure codes.
210
211         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
212         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
213         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
214         rpl_fstatat or fstatat.  This should fix the other problem
215         reported by Kai Habel in
216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
217         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
219         and I reproduced it on a Solaris 8 host we still have in production.
220
221 2011-11-18  Jim Meyering  <meyering@redhat.com>
222
223         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
224         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
225         Add a sentence to the comment.
226         (hash_insert0): New function that simply calls hash_insert_if_absent.
227         * lib/hash.h (hash_insert_if_absent): Declare it.
228         (hash_insert0): Add deprecation attribute.
229         (_GL_ATTRIBUTE_DEPRECATED): Define.
230         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
231         not hash_insert0.
232         * NEWS: Mention it, even though it's not really an incompatible change.
233
234 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
235
236         openat: avoid compilation failure due to lack of <errno.h> inclusion
237         * lib/openat.c: Include <errno.h>.
238
239 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
240
241         * modules/getcwd (Depends-on): Add fdopendir.
242         This fixes one of the two problems reported by Kai Habel in
243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
244
245         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
246         stdalign problem reported by Ian Beckwith in
247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
248         * modules/crypto/gc-arcfour (Depends-on):
249         Depend conditionally on crypto/arcfour.
250         * modules/crypto/gc-arctwo (Depends-on):
251         Depend conditionally on crypto/arctwo.
252         * modules/crypto/gc-des (Depends-on):
253         Depend conditionally on crypto/des.
254         * modules/crypto/gc-hmac-md5 (Depends-on):
255         Depend conditionally on crypto/hmac-md5.
256         * modules/crypto/gc-hmac-sha1 (Depends-on):
257         Depend conditionally on crypto/hmac-sha1.
258         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
259         * modules/crypto/gc-md4 (Depends-on):
260         Depend conditionally on crypto/md4.
261         * modules/crypto/gc-md5 (Depends-on):
262         Depend conditionally on crypto/md5.
263         * modules/crypto/gc-rijndael (Depends-on):
264         Depend conditionally on crypto/rijndael.
265         * modules/crypto/gc-sha1 (Depends-on):
266         Depend conditionally on crypto/sha1.
267         * modules/crypto/gc-arcfour:
268         * modules/crypto/gc-arctwo:
269         * modules/crypto/gc-des:
270         * modules/crypto/gc-hmac-md5:
271         * modules/crypto/gc-hmac-sha1:
272         * modules/crypto/gc-md2:
273         * modules/crypto/gc-md4:
274         * modules/crypto/gc-md5:
275         * modules/crypto/gc-rijndael:
276         * modules/crypto/gc-sha1:
277         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
278         now that the conditional dependencies do the work for us.
279
280 2011-11-17  Jim Meyering  <meyering@redhat.com>
281
282         tests: factor st_ctime-comparison out of two headers
283         * tests/test-utimens-common.h (ctime_compare): Define.
284         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
285         * tests/test-lutimens.h (test_lutimens): Likewise.
286         * tests/test-utimens.h (test_utimens): Likewise.
287
288         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
289         Invoke the test program via an init.sh-using wrapper.
290         * tests/test-getcwd.sh: New file.
291         * modules/getcwd-tests (Files): Add it.
292         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
293
294 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
295
296         gitlog-to-changelog: support multi-author commits.
297         The FSF cares about keeping track of all authors of patches to its
298         projects, but Git doesn't provide obvious support for multi-author
299         changesets. Consensus seems to be forming around the use of extra
300         Signed-off-by inspired lines in the log message formatted as
301         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
302         multi-author commits between version control systems.
303         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
304         log message and output in standard ChangeLog multi-author format.
305         Reported by Peter Rosin <peda@lysator.liu.se>
306
307 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
308             Bruno Haible  <bruno@clisp.org>
309
310         Fix some modules' file list.
311         * modules/fstatat (Files): Add m4/lstat.m4.
312         * modules/openat (Files): Likewise.
313         * modules/unlinkat (Files): Likewise.
314
315 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
316
317         maint.mk: fix tight-scope.mk generation in VPATH builds.
318         * top/maint.mk (tight-scope.mk): Make sure to prefix file
319         reference with $(srcdir) so that the file is found correctly even
320         when running `make syntax-check' in a VPATH build.
321
322 2011-11-13  Bruno Haible  <bruno@clisp.org>
323             Jim Meyering  <meyering@redhat.com>
324
325         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
326         * tests/init.sh (compare): Remove "No differences encountered" or
327         synonymous output from the 'diff' program.
328
329 2011-11-13  Bruno Haible  <bruno@clisp.org>
330
331         Makefile: Tweak indentation.
332         * Makefile: Use tab as first character in every line that contains rule
333         commands.
334
335 2011-11-13  Bruno Haible  <bruno@clisp.org>
336
337         Syntax check for copyright statements.
338         * check-copyright: New file.
339         * Makefile (sc_check_copyright): New rule.
340
341 2011-11-13  Simon Josefsson  <simon@josefsson.org>
342
343         * build-aux/git-version-gen: Add --prefix to configure the tag
344         match string.
345
346 2011-11-13  Simon Josefsson  <simon@josefsson.org>
347
348         * build-aux/git-version-gen: Add --help and --version.
349
350 2011-11-12  Jim Meyering  <meyering@redhat.com>
351
352         revamp the other test-exclude?.sh scripts to use init.sh, too
353         * tests/test-exclude1.sh: Use init.sh.
354         * tests/test-exclude2.sh: Likewise.
355         * tests/test-exclude3.sh: Likewise.
356         * tests/test-exclude4.sh: Likewise.
357         * tests/test-exclude5.sh: Likewise.
358         * tests/test-exclude6.sh: Likewise.
359         * tests/test-exclude7.sh: Likewise.
360         * tests/test-exclude8.sh: Likewise.
361         * modules/exclude-tests (Files): List init.sh.
362
363         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
364         These shell scripts ignored failure of the binary test-exclude,
365         so making the latter return 77 didn't cause them to be skipped.
366         * tests/test-exclude5.sh: Exit with test-exclude's error status
367         when that program fails.  Revamp to use init.sh.
368         * tests/test-exclude2.sh: Likewise.
369
370         test-exclude: fix a typo
371         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
372
373 2011-11-11  Bruno Haible  <bruno@clisp.org>
374
375         obstack: Fix compilation error on MSVC 9.
376         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
377
378 2011-11-11  Jim Meyering  <meyering@redhat.com>
379
380         test-exclude: skip tests rather than failing on deficient systems
381         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
382         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
383         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
384         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
385
386 2011-11-10  Bruno Haible  <bruno@clisp.org>
387
388         ptsname_r test: Avoid gcc warning on glibc systems.
389         * tests/test-ptsname_r.c (null_ptr): New function.
390         (test_errors): Use it.
391
392 2011-11-10  Bruno Haible  <bruno@clisp.org>
393
394         ptsname_r: Avoid compilation error on OSF/1 5.1.
395         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
397         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
398         function is not declared or incompatibly declared.
399         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
400         * modules/ptsname_r (Depends-on, configure.ac): Update.
401         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
402
403 2011-11-10  Bruno Haible  <bruno@clisp.org>
404
405         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
406         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
407         When cross-compiling, guess yes on all platforms except AIX.
408         Reported by Ludovic Courtès <ludo@gnu.org>.
409
410 2011-11-09  Bruno Haible  <bruno@clisp.org>
411
412         ptsname_r tests: Fix bugs.
413         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
414         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
415
416 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
417
418         fstatat: work with cross-compilation
419         Problem reported by Ludovic Courtès in
420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
421         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
422         "cross-compiling" and assume the bug is present.  Replace
423         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
424         an inverted sense, to be more conservative about our assumptions.
425         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
426
427 2011-11-09  Bruno Haible  <bruno@clisp.org>
428
429         Improve MODULES.html output.
430         * modules/mkfifoat (Description): Use the word "function".
431         * modules/readlinkat (Description): Likewise.
432         * modules/symlinkat (Description): Likewise.
433
434 2011-11-09  Eric Blake  <eblake@redhat.com>
435
436         ptsname_r-tests: new test module
437         * modules/ptsname_r-tests: New module.
438         * tests/test-ptsname_r.c: New file.
439
440         ptsname_r: new module
441         * modules/ptsname_r: New module.
442         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
443         * lib/ptsname.c (__ptsname_r): Split...
444         * lib/ptsname_r.c: ...into new file.
445         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
446         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
447         * modules/stdlib (Makefile.am): Substitute witnesses.
448         * lib/stdlib.in.h (ptsname_r): Declare it.
449         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
450         * MODULES.html.sh (Misc): Likewise.
451         * modules/ptsname (Depends-on): Alter dependency.
452         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
453
454 2011-11-09  Jim Meyering  <meyering@redhat.com>
455
456         announce-gen: be more concise when there's only one URL+tarball
457         * build-aux/announce-gen (get_tool_versions): When you distribute
458         only one type of tarball, combine the first two "Here are..."
459         sections and make the key-checking grammar independent of
460         how many tarballs there are.
461
462 2011-11-09  Eric Blake  <eblake@redhat.com>
463
464         openpty: provide a stub on mingw
465         * lib/pty.in.h (includes): Provide forward declarations.
466         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
467
468         raise: fix mingw handling of SIGPIPE
469         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
470
471 2011-11-08  Bruno Haible  <bruno@clisp.org>
472
473         More conditional dependencies.
474         * modules/faccessat (Depends-on): Add conditions.
475         * modules/fchmodat (Depends-on): Likewise.
476         * modules/fchownat (Depends-on): Likewise.
477         * modules/fstatat (Depends-on): Likewise.
478         * modules/mkfifoat (Depends-on): Likewise.
479         * modules/readlinkat (Depends-on): Likewise.
480         * modules/symlinkat (Depends-on): Likewise.
481         * modules/unlinkat (Depends-on): Likewise.
482         * modules/utimensat (Depends-on): Likewise.
483         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
484         * modules/linkat (Depends-on): Refine the conditions.
485         * modules/renameat (Depends-on): Likewise.
486
487 2011-11-08  Bruno Haible  <bruno@clisp.org>
488
489         faccessat: Move AC_LIBOBJ invocation to module description.
490         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
491         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
492         invocation from here...
493         * modules/faccessat (configure.ac): ... to here. Invoke
494         gl_PREREQ_FACCESSAT.
495
496 2011-11-08  Bruno Haible  <bruno@clisp.org>
497
498         faccessat: Simplify autoconf macro.
499         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
500         gl_FUNC_EUIDACCESS.
501
502 2011-11-08  Bruno Haible  <bruno@clisp.org>
503
504         renameat: Fix dependencies.
505         * modules/renameat (Depends-on): Add stdbool.
506
507 2011-11-08  Bruno Haible  <bruno@clisp.org>
508
509         mkfifoat: Fix module description.
510         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
511         not gl_UNISTD_MODULE_INDICATOR.
512
513 2011-11-08  Bruno Haible  <bruno@clisp.org>
514
515         fstatat: Remove unused dependency.
516         * modules/fstatat (Depends-on): Remove fstat.
517
518 2011-11-08  Simon Josefsson  <simon@josefsson.org>
519
520         GNUmakefile: behave when Makefile is missing.
521         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
522
523 2011-11-08  Bruno Haible  <bruno@clisp.org>
524
525         openat: Conditionalize dependencies.
526         * lib/openat.c: Reduce the scope of some #includes.
527         * modules/openat (Depends-on): Add conditions.
528
529 2011-11-07  Jim Meyering  <meyering@redhat.com>
530
531         maint.mk: extract GPG key ID without using a temporary file
532         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
533         without using a temporary file.  Based on a suggestion from Werner Koch
534         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
535
536 2011-11-07  Eric Blake  <eblake@redhat.com>
537
538         grantpt: fix typo
539         * lib/stdlib.in.h (grantpt): Check correct function.
540
541         maint.mk: silence new syntax check
542         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
543
544 2011-11-06  Bruno Haible  <bruno@clisp.org>
545
546         Doc about floating-point and math API.
547         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
548         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
549
550 2011-11-06  Bruno Haible  <bruno@clisp.org>
551
552         stdalign tests: Skip the test when compiled by Sun C.
553         * tests/test-stdalign.c (main): Skip the test on Sun C.
554
555 2011-11-06  Bruno Haible  <bruno@clisp.org>
556
557         ansi-c++-opt: Complete the 2011-06-05 change.
558         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
559         does not support namespaces, set the variable to "no", not to ":".
560
561 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
562
563         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
564
565 2011-11-06  Bruno Haible  <bruno@clisp.org>
566
567         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
568         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
569         (minus_zerol) [HP-UX]: New macro.
570         (unary_minus) [HP-UX]: New function.
571         (copysignl) [HP-UX]: Use unary_minus function.
572
573 2011-11-06  Bruno Haible  <bruno@clisp.org>
574
575         ldexp, ldexpf, ldexpl: Enhance tests.
576         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
577         and tests/test-ldexpl.c.
578         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
579         LDEXP, MIN_EXP, MAX_EXP): New macros.
580         Include test-ldexp.h.
581         (main): Just call test_function.
582         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
583         infinity.h, nan.h.
584         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
585         MAX_EXP): New macros.
586         Include test-ldexp.h.
587         (x, y): Remove variables.
588         (main): Just call test_function.
589         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
590         infinity.h, nan.h.
591         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
592         MAX_EXP): New macros.
593         Include test-ldexp.h.
594         (x, y): Remove variables.
595         (main): Just call test_function.
596         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
597         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
598         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
599         (Depends-on): Add isnand-nolibm, signbit, float.
600         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
601         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
602         (Depends-on): Add isnanf-nolibm, signbit, float.
603
604 2011-11-06  Bruno Haible  <bruno@clisp.org>
605
606         math tests: Cosmetics.
607         * tests/test-math-c++.cc: Reorder declarations.
608
609 2011-11-05  Bruno Haible  <bruno@clisp.org>
610
611         fma*: Simplify test.
612         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
613         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
614
615         Tests for module 'fmal'.
616         * modules/fmal-tests: New file.
617         * tests/test-fmal1.c: New file.
618         * tests/test-fmal2.c: New file.
619
620         New module 'fmal'.
621         * lib/math.in.h (fmal): New declaration.
622         * lib/fmal.c: New file.
623         * m4/fmal.m4: New file.
624         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
626         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
627         REPLACE_FMAL.
628         * modules/fmal: New file.
629         * doc/posix-functions/fmal.texi: Mention the new module and the various
630         bugs.
631
632         Tests for module 'fmaf'.
633         * modules/fmaf-tests: New file.
634         * tests/test-fmaf1.c: New file.
635         * tests/test-fmaf2.c: New file.
636
637         New module 'fmaf'.
638         * lib/math.in.h (fmaf): New declaration.
639         * lib/fmaf.c: New file.
640         * m4/fmaf.m4: New file.
641         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
643         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
644         REPLACE_FMAF.
645         * modules/fmaf: New file.
646         * doc/posix-functions/fmaf.texi: Mention the new module and the various
647         bugs.
648
649         Tests for module 'fma'.
650         * modules/fma-tests: New file.
651         * tests/test-fma1.c: New file.
652         * tests/test-fma1.h: New file.
653         * tests/test-fma2.c: New file.
654         * tests/test-fma2.h: New file.
655
656         New module 'fma'.
657         * lib/math.in.h (fma): New declaration.
658         * lib/fma.c: New file.
659         * m4/fma.m4: New file.
660         * m4/fegetround.m4: New file.
661         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
663         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
664         REPLACE_FMA.
665         * modules/fma: New file.
666         * doc/posix-functions/fma.texi: Mention the new module and the various
667         bugs.
668
669         Extend gl_MATHFUNC.
670         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
671         Support 'void' as argument type.
672         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
673
674 2011-11-05  Jim Meyering  <meyering@redhat.com>
675
676         maint.mk: also prohibit inclusion of dirent.h without use
677         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
678
679 2011-11-05  Bruno Haible  <bruno@clisp.org>
680
681         ldexpl tests: Avoid test failure on MSVC 9.
682         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
683         value. Needed in order to enforce the conversion from a value greater
684         than LDBL_MAX to Infinity.
685
686 2011-11-05  Bruno Haible  <bruno@clisp.org>
687
688         New modules 'at-internal', 'openat-h', split off from module 'openat'.
689         * modules/at-internal: New file, extracted from modules/openat.
690         * modules/openat-h: New file.
691         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
692         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
693         * modules/openat (Description): Add reference to POSIX function.
694         (Files): Remove lib/openat.h, lib/openat-proc.c.
695         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
696         intprops, unistd.
697         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
698         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
699         gl_FCNTL_MODULE_INDICATOR.
700         (Include): Remove unistd.h, openat.h.
701         * modules/areadlinkat (Files): Add lib/at-func.c.
702         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
703         openat-die, openat-h, save-cwd.
704         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
705         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
706         openat-die, openat-h, save-cwd, unistd.
707         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
708         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
709         openat-h, save-cwd. Remove fcntl-h, openat.
710         * modules/fchmodat (Files): Remove lib/openat.h.
711         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
712         openat, stdbool, unistd.
713         * modules/fchownat (Files): Remove lib/openat.h.
714         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
715         openat, stdbool, sys_stat.
716         * modules/fdopendir (Files): Remove lib/openat-priv.h,
717         lib/openat-proc.c.
718         (Depends-on): Add at-internal.
719         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
720         * modules/fstatat (Files): Remove lib/openat.h.
721         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
722         stdbool, unistd.
723         * modules/fts (Depends-on): Add openat-h.
724         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
725         openat.
726         * modules/mkdirat (Files): Remove lib/openat.h.
727         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
728         openat, stdbool, sys_stat.
729         * modules/mkfifoat (Files): Add lib/at-func.c.
730         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
731         openat-h, save-cwd. Remove fcntl-h, openat.
732         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
733         * modules/readlinkat (Files): Add lib/at-func.c.
734         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
735         openat-h, save-cwd. Remove fcntl-h, openat.
736         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
737         openat.
738         * modules/selinux-at (Files): Add lib/at-func.c.
739         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
740         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
741         * modules/symlinkat (Files): Add lib/at-func.c.
742         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
743         openat-h, save-cwd. Remove fcntl-h, openat.
744         * modules/unlinkat (Files): Remove lib/openat.h.
745         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
746         stdbool.
747         * modules/utimensat (Files): Add lib/at-func.c.
748         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
749         openat-die, openat-h, save-cwd.
750         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
751         * modules/fdutimensat-tests (Depends-on): Add openat.
752         * modules/fstatat-tests (Depends-on): Add openat-h.
753         * modules/readlinkat-tests (Depends-on): Add openat.
754         * modules/symlinkat-tests (Depends-on): Add openat.
755
756 2011-11-05  Bruno Haible  <bruno@clisp.org>
757
758         openat: Include <stdbool.h>.
759         * lib/openat.c: Include <stdbool.h>.
760
761 2011-11-04  Bruno Haible  <bruno@clisp.org>
762
763         fchownat, renameat, unlinkat: Fix dependencies.
764         * modules/fchownat (Depends-on): Add fstatat.
765         * modules/renameat (Depends-on): Likewise.
766         * modules/unlinkat (Depends-on): Likewise.
767
768 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
769
770         openat: remove direct dependency on dirent
771         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
772         and hasn't been needed ever since fdopendir was split into its own
773         module on 2009-08-31.
774         * modules/openat (Depends-on): Remove dirent.
775
776 2011-11-04  Bruno Haible  <bruno@clisp.org>
777
778         renameat: Optimize code size.
779         * modules/renameat (configure.ac): Don't compile at-func2.c if
780         REPLACE_RENAMEAT is 1.
781
782 2011-11-04  Bruno Haible  <bruno@clisp.org>
783
784         openat tests: Fix file list.
785         * modules/openat-tests (Files): Add tests/test-open.h.
786
787 2011-11-04  Bruno Haible  <bruno@clisp.org>
788
789         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
790         * modules/fchmodat (Depends-on): Add openat-die.
791         * modules/fchownat (Depends-on): Likewise.
792         * modules/linkat (Depends-on): Likewise.
793         * modules/renameat (Depends-on): Likewise.
794         * modules/openat (Depends-on): Add dirent.
795
796 2011-11-04  Jim Meyering  <meyering@redhat.com>
797
798         at-func*.c: fix comments
799         * lib/at-func2.c: Correct/improve first-line comment.
800         * lib/at-func.c: Correct grammar in first-line comment.
801
802 2011-11-04  Bruno Haible  <bruno@clisp.org>
803
804         New module 'mkdirat', split off from module 'openat'.
805         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
806         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
807         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
808         * modules/mkdirat: New file, extracted from modules/openat.
809         * modules/openat (Files): Remove lib/mkdirat.c.
810         (Depends-on): Remove mkdir.
811         (configure.ac): Remove AC_LIBOBJ of mkdirat.
812         (Include): Remove <sys/stat.h>.
813         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
814         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
815         tests/test-mkdir.h.
816         (Depends-on): Remove ignore-value.
817         (Makefile.am): Remove rules for test-mkdirat.
818         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
819         of module 'openat'.
820         * NEWS: Mention the change.
821
822 2011-11-04  Bruno Haible  <bruno@clisp.org>
823
824         closedir: Avoid warning on mingw.
825         * lib/closedir.c: Include <unistd.h>.
826
827 2011-11-04  Bruno Haible  <bruno@clisp.org>
828
829         New module 'fstatat', split off from module 'openat'.
830         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
831         defined.
832         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
834         gl_FUNC_FSTATAT.
835         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
836         * modules/fstatat: New file, extracted from modules/openat.
837         * modules/openat (Files): Remove lib/fstatat.c.
838         (Depends-on): Remove lstat.
839         (configure.ac): Remove AC_LIBOBJ of fstatat.
840         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
841         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
842         tests/test-lstat.h, tests/test-stat.h.
843         (Depends-on): Remove getcwd-lgpl.
844         (Makefile.am): Remove rules for test-fstatat.
845         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
846         of module 'openat'.
847         * NEWS: Mention the change.
848         * modules/getcwd (Depends-on): Add fstatat.
849         * modules/linkat (Depends-on): Likewise.
850         * modules/mkfifoat-tests (Depends-on): Likewise.
851         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
852
853 2011-11-03  Bruno Haible  <bruno@clisp.org>
854
855         New module 'unlinkat', split off from module 'openat'.
856         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
857         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
858         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
859         * modules/unlinkat: New file, extracted from modules/openat. Correct
860         the dependency conditions.
861         * modules/openat (Files): Remove lib/unlinkat.c.
862         (Depends-on): Remove rmdir, unlink.
863         (configure.ac): Remove AC_LIBOBJ of unlinkat.
864         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
865         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
866         tests/test-rmdir.h, tests/test-unlink.h.
867         (Depends-on): Remove unlinkdir.
868         (Makefile.am): Remove rules for test-unlinkat.
869         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
870         of module 'openat'.
871         * NEWS: Mention the change.
872         * modules/linkat-tests (Depends-on): Add unlinkat.
873         * modules/mkfifoat-tests (Depends-on): Likewise.
874         * modules/readlinkat-tests (Depends-on): Likewise.
875
876 2011-11-02  Bruno Haible  <bruno@clisp.org>
877
878         New module 'fchmodat', split off from module 'openat'.
879         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
880         defined.
881         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
883         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
884         * modules/fchmodat: New file, extracted from modules/openat.
885         * modules/openat (Files): Remove lib/fchmodat.c.
886         (configure.ac): Remove AC_LIBOBJ of fchmodat.
887         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
888         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
889         (Makefile.am): Remove rules for test-fchmodat.
890         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
891         of module 'openat'.
892         * NEWS: Mention the change.
893
894 2011-11-02  Jim Meyering  <meyering@redhat.com>
895
896         putenv: indent #definition of "environ" to placate cppi
897         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
898
899         gitlog-to-changelog: provide a ChangeLog-repair mechanism
900         Git logs are often treated as immutable, because editing them
901         changes the SHA1 checksums of all descendants.  Thus, errors in
902         git logs tend to stay there forever.  However, when we generate
903         a ChangeLog file -- typically for distribution -- from that git log,
904         we can actually make corrections in the generated file.  The key
905         lies in recording in machine-readable/applicable form the desired
906         corrections.  See --help for description and an example.
907         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
908         (usage): Describe it; alphabetize option descriptions.
909         (main): Honor the new option, carefully.
910
911 2011-11-01  Jim Meyering  <meyering@redhat.com>
912
913         gitlog-to-changelog: avoid an infloop
914         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
915         that ends up being empty.
916
917 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
918
919         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
920         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
921         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
922         contains (possibly-quoted) backslashes.  This should avoid
923         all-too-common shell bugs if COMPLICATED contains backslashes in
924         the "wrong" places.  Reported by David Evans in
925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
926         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
927         because we want ASCII ranges.  Is there some reason we don't use
928         the C locale everywhere in this script?
929         (func_module, top level): Avoid unwanted pathname expansion when
930         $repo_url_prefix or $repo_url_suffix_repl contain shell
931         metacharacters like '?' and '*'.
932
933 2011-11-01  Bruno Haible  <bruno@clisp.org>
934
935         fchownat: Improve description.
936         * modules/fchownat (Description): Add link to function.
937
938 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
939
940         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
941         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
943         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
944
945 2011-11-01  Bruno Haible  <bruno@clisp.org>
946
947         alignof: Avoid collision with stdalign module.
948         * lib/alignof.h (alignof): Remove macro.
949         * NEWS: Mention the change.
950         Reported by Paul Eggert.
951
952 2011-11-01  Bruno Haible  <bruno@clisp.org>
953
954         New module 'fchownat', split off from module 'openat'.
955         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
956         defined.
957         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
958         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
959         invoke gl_FUNC_FCHOWNAT.
960         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
961         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
962         * modules/fchownat: New file, extracted from modules/openat.
963         * modules/openat (Files): Remove lib/fchownat.c.
964         (Depends-on): Remove lchown.
965         (configure.ac): Remove AC_LIBOBJ of fchownat.
966         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
967         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
968         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
969         (Depends-on): Remove mgetgroups, usleep, stat-time.
970         (configure.ac): Remove test for getegid.
971         (Makefile.am): Remove rules for test-fchownat.
972         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
973         of module 'openat'.
974         * NEWS: Mention the change.
975
976 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
977
978         stdalign: port better to MSVC and to Sun C 5.11
979         This fixes some of the problems reported by Bruno Haible in
980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
981         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
982         shortcomings of MSVC and of Sun C 5.11.
983         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
984         around __declspec arg.
985         * modules/stdalign-tests (Files): Add tests/macros.h.
986         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
987         Include macros.h, for ASSERT.
988         (DECLARE_ALIGNED): Remove.
989         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
990         to catch bug), and to 1 if not (simplifies the rest of the code).
991         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
992         (CHECK_AUTO): Remove.
993         (CHECK_ALIGNED): Check only the alignment of the static vars,
994         since auto var alignment isn't supported by Sun C 5.11.
995         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
996         ASSERT failures are easier to diagnose.
997
998 2011-10-31  Bruno Haible  <bruno@clisp.org>
999
1000         doc about some IRIX 5.3 problems.
1001         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1002         on IRIX 5.3.
1003         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1004         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1005         5.3.
1006         * doc/posix-functions/grantpt.texi: Likewise.
1007         * doc/posix-functions/unlockpt.texi: Likewise.
1008         * doc/posix-functions/lgamma.texi: Likewise.
1009         * doc/posix-functions/nextafter.texi: Likewise.
1010         * doc/posix-functions/remainder.texi: Likewise.
1011         * doc/posix-functions/select.texi: Mention misplaced declaration on
1012         IRIX 5.3.
1013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1014
1015 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1016
1017         gitlog-to-changelog: fix git-log invocation.
1018         git-log mishandles date strings before 1970-01-01 UTC, and there is
1019         no use to specify --since=1970-01-01 by default anyway.
1020         * build-aux/gitlog-to-changelog: By default, when no --since option
1021         was given, do not specify explicit --since option to git-log.
1022
1023 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1024
1025         gitlog-to-changelog: new option --append-dot.
1026         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1027         first non-blank line of each commit message terminated with a dot.
1028
1029 2011-10-30  Bruno Haible  <bruno@clisp.org>
1030
1031         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1032         * lib/ffsl.h: Include <config.h>.
1033         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1034
1035 2011-10-30  Jim Meyering  <meyering@redhat.com>
1036
1037         GNUmakefile: reenable "make syntax-check" for most projects
1038         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1039         build-aux variable", "syntax-check" would do nothing but succeed with
1040         the "No version control files detected..." diagnostic (unless you
1041         happened to override _build-aux via cfg.mk).
1042         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1043         to precede inclusion of maint.mk.  Otherwise, these variables would
1044         be used undefined in any project that does not override the default.
1045
1046 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1047
1048         gitlog-to-changelog: treat a message with only blank lines as empty.
1049         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1050         trailing blank lines before the code that issues a warning about an
1051         empty commit message.
1052
1053 2011-10-30  Jim Meyering  <meyering@redhat.com>
1054
1055         test-parse-datetime.c: avoid new DST-related false positive test failure
1056         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1057         based on the time/date we'll convert, not the current time.
1058         Otherwise, the moment we cross a DST boundary like today's in
1059         Europe, (CEST to CET), that offset ends up being one hour off.
1060
1061 2011-10-27  Bruno Haible  <bruno@clisp.org>
1062
1063         fstat: Tweak documentation.
1064         * modules/fstat (Description): More precise description.
1065
1066 2011-10-27  Bruno Haible  <bruno@clisp.org>
1067
1068         Update documentation regarding 'largefile' module.
1069         * doc/posix-functions/fstat.texi: Tweak wording.
1070         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1071         problems with huge directories and/or small ino_t types.
1072         * doc/posix-functions/readdir.texi: Likewise.
1073         * doc/posix-functions/rewinddir.texi: Likewise.
1074
1075 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1076
1077         maint.mk: don't maintain a second build-aux variable.
1078         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1079         depends on GNUmakefile, which already maintains a cfg.mk
1080         overridable $(_build-aux) for projects with a non-standard
1081         build-aux directory location, although without the $(srcdir)
1082         prefix.  Use that variable consistently instead of introducing a
1083         second one.  Adjust all call sites.
1084
1085 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1086
1087         Add stdalign module and use it in other modules.
1088         This is based on a previous proposal by Bruno Haible
1089         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1090
1091         stdalign: new module
1092         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1093         * modules/stdalign: New files.
1094         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1095         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1096
1097         stdalign-tests: new module
1098         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1099
1100         argp: use stdalign
1101         * lib/argp-parse.c: Include <stdalign.h>.
1102         (alignof): Remove.
1103         * modules/argp (Depends-on): Add stdalign.
1104
1105         crypto libraries: use stdalign
1106         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1107         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1108         Do not include <stdlib.h> twice, in md4.c.
1109         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1110         because we are accessing a pointer's bit-pattern, not a size.
1111         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1112         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1113         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1114         * modules/crypto/sha512: Likewise.
1115
1116         sys_socket: use stdalign, not alignof
1117         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1118         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1119
1120 2011-10-27  Bruno Haible  <bruno@clisp.org>
1121
1122         raise test: Avoid a test failure on Linux/MIPS.
1123         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1124         because 99 is a valid signal on Linux/MIPS.
1125
1126 2011-10-27  Bruno Haible  <bruno@clisp.org>
1127
1128         nonblocking tests: Fix test failure on Linux/MIPS.
1129         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1130         Set to 270000.
1131
1132 2011-10-27  Bruno Haible  <bruno@clisp.org>
1133
1134         utimensat: Work around problem on Linux/hppa.
1135         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1136         values.
1137         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1138
1139 2011-10-25  Jim Meyering  <meyering@redhat.com>
1140
1141         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1142         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1143         after symbols like NULL, size_t, etc.
1144         Reported by Alfred M. Szmidt.
1145
1146         maint.mk: exempt ENODATA from a syntax-check rule
1147         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1148         from the sc_prohibit_always-defined_macros syntax-check rule.
1149         Add a comment.  See this for more details:
1150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1151
1152 2011-10-23  Jim Meyering  <meyering@redhat.com>
1153
1154         fts: close parent dir FD before returning from post-traversal fts_read
1155         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1156         unlink A, even though an FD open on A remained.  This is suboptimal
1157         (holding a file descriptor open longer than needed), but otherwise not
1158         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1159         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1160         that represents a real problem: it causes the removal of A to fail
1161         with e.g., "rm: cannot remove `A': Device or resource busy"
1162
1163         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1164         directory file descriptors.  After completing the final, FTS_DP,
1165         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1166         cache, but then proceeded to add a new FD to it via the subsequent
1167         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1168         final file descriptor would be closed only via fts_close's call to
1169         fd_ring_clear.  Now, it is usually closed earlier, via the final
1170         FTS_DP-returning fts_read call.
1171         * lib/fts.c (restore_initial_cwd): New function, converted from
1172         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1173         Update callers.
1174         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1175         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1176
1177 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1178             Bruno Haible  <bruno@clisp.org>
1179             Jim Meyering  <jim@meyering.net>
1180
1181         readme-release: improve safety of release prep instructions.
1182         * README-release: Don't git pull all branches when only master
1183         is needed for the release process.
1184         Run make maintainer-clean before changing trees and merging.
1185         Don't try to run ./configure right after git pull in case files
1186         that influence the bootstrap process have changed, move the
1187         ./configure step to after running ./bootstrap.
1188         Don't bootstrap "one last time"... it's the first time!
1189
1190 2011-10-22  Bruno Haible  <bruno@clisp.org>
1191
1192         errno, strerror-override: Support for MSVC 10.
1193         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1194         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1195         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1196         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1197         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1198         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1199         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1200         Assign values compatible with MSVC 10.
1201         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1202         New macros.
1203         (GNULIB_defined_EWINSOCK): New macro.
1204         * lib/strerror-override.c (strerror_override): Update accordingly.
1205         * lib/strerror-override.h: Likewise.
1206         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1207         longer equal to the corresponding errno value.
1208         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1209
1210 2011-10-22  Bruno Haible  <bruno@clisp.org>
1211
1212         perror: Recognize when test program crashes.
1213         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1214         strerror, set gl_cv_func_perror_works to no.
1215         Reported by Daniel Richard G. <skunk@iskunk.org>.
1216
1217         perror: Fix indentation.
1218         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1219
1220 2011-10-22  Bruno Haible  <bruno@clisp.org>
1221
1222         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1223         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1224         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1225         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1226         functions, not as a macro.
1227         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1228         macros.
1229         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1230         absence of macro.
1231         Suggested by Eric Blake.
1232         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1233
1234 2011-10-21  Bruno Haible  <bruno@clisp.org>
1235
1236         relocatable-prog-wrapper: Don't leave object files behind.
1237         * build-aux/install-reloc: Re-synchronize list of .o files to be
1238         removed with list of compilation units.
1239
1240 2011-10-20  Bruno Haible  <bruno@clisp.org>
1241
1242         openpty, posix_openpt: Remove code duplication.
1243         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1244         * lib/openpty.c: Include <stdlib.h>.
1245         (openpty): Use posix_openpt on all platforms except IRIX.
1246         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1247
1248 2011-10-20  Bruno Haible  <bruno@clisp.org>
1249
1250         unlockpt: Detect invalid argument.
1251         * lib/unlockpt.c: Include <fcntl.h>.
1252         (unlockpt): Check whether fd is valid, using fcntl().
1253         * modules/unlockpt (Depends-on): Add fcntl-h.
1254
1255 2011-10-20  Bruno Haible  <bruno@clisp.org>
1256
1257         openpty: Avoid compilation error on AIX 6.1.
1258         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1259
1260 2011-10-20  Bruno Haible  <bruno@clisp.org>
1261
1262         posix_openpt: Support for OpenBSD.
1263         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1264         (posix_openpt) [OpenBSD]: New code.
1265         * lib/grantpt.c: Include <fcntl.h>.
1266         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1267         * modules/grantpt (Depends-on): Add fcntl-h.
1268
1269 2011-10-20  Bruno Haible  <bruno@clisp.org>
1270
1271         posix_openpt test: Coding style.
1272         * tests/test-posix_openpt.c: Use GNU coding style.
1273
1274 2011-10-20  Bruno Haible  <bruno@clisp.org>
1275
1276         grantpt: Support --avoid=pt_chown.
1277         * modules/grantpt (Files): Add lib/pty-private.h.
1278
1279 2011-10-20  Bruno Haible  <bruno@clisp.org>
1280
1281         posix_openpt: Fix autoconf macro.
1282         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1283         unneeded check for _getpty.
1284
1285 2011-10-20  Bruno Haible  <bruno@clisp.org>
1286
1287         openpty: Update comments.
1288         * lib/openpty.c: Add comments about Minix.
1289
1290 2011-10-19  Eric Blake  <eblake@redhat.com>
1291
1292         openpty: relax license
1293         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1294
1295         pt_chown: use configmake to simplify build
1296         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1297
1298         ptsname and others: relax license
1299         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1300         * modules/unlockpt (License): Likewise.
1301         * modules/pt_chown (License): Likewise.
1302         * modules/ptsname (License): Likewise.
1303         * modules/ttyname_r (License): Likewise.
1304
1305 2011-10-19  Jim Meyering  <meyering@redhat.com>
1306
1307         posix_openpt: remove spurious #endif
1308         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1309
1310 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1311
1312         maint.mk: Respect $(build_aux) in web-manual rule.
1313         * top/maint.mk (web-manual): Find gen-announce script in user's
1314         $(build_aux) directory instead of hard-coding 'build-aux'.
1315
1316 2011-10-19  Bruno Haible  <bruno@clisp.org>
1317
1318         posix_openpt: Fix compilation error.
1319         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1320         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1321         Mention the openpty module as an alternative.
1322
1323 2011-10-19  Bruno Haible  <bruno@clisp.org>
1324
1325         Support for old NeXTstep 3.3 frexp().
1326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1327         execution time of the test to 5 seconds.
1328         Reported by Daniel Richard G. <skunk@iskunk.org>.
1329
1330 2011-10-19  Bruno Haible  <bruno@clisp.org>
1331
1332         Support for old NeXTstep 3.3 sed.
1333         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1334         part, use /.../, not \|...|. Escape periods in the header file name.
1335         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1336         Reported by Daniel Richard G. <skunk@iskunk.org>.
1337
1338 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1339
1340         Support for old NeXTstep 3.3 gcc.
1341         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1342         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1343         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1344         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1345         * lib/regex.h (_Restrict_arr_): Likewise.
1346         * lib/regex_internal.h (re_token_t): Likewise.
1347         * lib/regexec.c (check_node_accept_bytes): Likewise.
1348         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1349
1350 2011-10-18  Eric Blake  <eblake@redhat.com>
1351
1352         posix_openpt: new module
1353         * modules/posix_openpt: New module.
1354         * m4/posix_openpt.m4: New file.
1355         * lib/posix_openpt.c: Likewise.
1356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1357         (gl_STDLIB_H_DEFAULTS): Set defaults.
1358         * modules/stdlib (Makefile.am): Substitute macros.
1359         * lib/stdlib.in.h (posix_openpt): Declare.
1360         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1361         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1362         * modules/posix_openpt-tests: New test module.
1363         * tests/test-posix_openpt.c: New test.
1364
1365 2011-10-15  Bruno Haible  <bruno@clisp.org>
1366
1367         xstrtoll: Fix compilation failure.
1368         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1369         from lib/strtol.c.
1370         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1371         some platforms.
1372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1373
1374 2011-10-15  Bruno Haible  <bruno@clisp.org>
1375
1376         vasnprintf: Optimize bit search operation.
1377         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1379         gl_DOUBLE_EXPONENT_LOCATION.
1380         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1381         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1382         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1383         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1384         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1385         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1386         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1387         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1388         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1389
1390 2011-10-15  Bruno Haible  <bruno@clisp.org>
1391
1392         vasnprintf: Fix comments.
1393         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1394
1395 2011-10-14  Bruno Haible  <bruno@clisp.org>
1396
1397         Tests for module 'integer_length_ll'.
1398         * modules/integer_length_ll-tests: New file.
1399         * tests/test-integer_length_ll.c: New file.
1400
1401         New module 'integer_length_ll'.
1402         * lib/integer_length_ll.c: New file.
1403         * modules/integer_length_ll: New file.
1404
1405 2011-10-14  Bruno Haible  <bruno@clisp.org>
1406
1407         Tests for module 'integer_length_l'.
1408         * modules/integer_length_l-tests: New file.
1409         * tests/test-integer_length_l.c: New file.
1410
1411         New module 'integer_length_l'.
1412         * lib/integer_length_l.c: New file.
1413         * modules/integer_length_l: New file.
1414
1415 2011-10-14  Bruno Haible  <bruno@clisp.org>
1416
1417         Tests for module 'integer_length'.
1418         * modules/integer_length-tests: New file.
1419         * tests/test-integer_length.c: New file.
1420
1421         New module 'integer_length'.
1422         * lib/integer_length.h: New file.
1423         * lib/integer_length.c: New file.
1424         * modules/integer_length: New file.
1425
1426 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1427
1428         popen: Fix dependency conditions.
1429         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1430
1431 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1432
1433         perror: Fix autoconf test.
1434         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1435         <stdlib.h> and <string.h>.
1436
1437 2011-10-14  Bruno Haible  <bruno@clisp.org>
1438
1439         ffsl: Optimize on 64-bit platforms.
1440         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1441         unrolling.
1442
1443 2011-10-13  Bruno Haible  <bruno@clisp.org>
1444
1445         ffsl: Optimize on 32-bit platforms.
1446         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1447         use ffs() without a loop.
1448
1449         ffsl, ffsll: Optimize for GCC.
1450         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1451         * lib/ffsl.c (GCC_BUILTIN): New macro.
1452         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1453
1454 2011-10-13  Bruno Haible  <bruno@clisp.org>
1455
1456         ffs, bcopy, memset: Support symbol renaming via config.h.
1457         * lib/ffs.c: Include <config.h>.
1458         * lib/bcopy.c: Likewise.
1459         * lib/memset.c: Likewise.
1460
1461 2011-10-10  Bruno Haible  <bruno@clisp.org>
1462
1463         atanl: Simplify for platforms where 'long double' == 'double'.
1464         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1465         alternative implementation.
1466         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1467         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1468         * modules/atanl (Depends-on): Add atan. Update conditions.
1469
1470 2011-10-10  Bruno Haible  <bruno@clisp.org>
1471
1472         acosl: Simplify for platforms where 'long double' == 'double'.
1473         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1474         alternative implementation.
1475         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1476         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1477         * modules/acosl (Depends-on): Add acos. Update conditions.
1478
1479 2011-10-10  Bruno Haible  <bruno@clisp.org>
1480
1481         asinl: Simplify for platforms where 'long double' == 'double'.
1482         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1483         alternative implementation.
1484         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1485         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1486         * modules/asinl (Depends-on): Add asin. Update conditions.
1487
1488 2011-10-10  Bruno Haible  <bruno@clisp.org>
1489
1490         tanl: Simplify for platforms where 'long double' == 'double'.
1491         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1492         implementation.
1493         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1494         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1495         * modules/tanl (Depends-on): Add tan. Update conditions.
1496         (configure.ac): Don't compile trigl.c if
1497         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1498
1499 2011-10-10  Bruno Haible  <bruno@clisp.org>
1500
1501         cosl: Simplify for platforms where 'long double' == 'double'.
1502         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1503         implementation.
1504         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1505         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1506         * modules/cosl (Depends-on): Add cos. Update conditions.
1507         (configure.ac): Don't compile sincosl.c and trigl.c if
1508         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1509
1510 2011-10-10  Bruno Haible  <bruno@clisp.org>
1511
1512         sinl: Simplify for platforms where 'long double' == 'double'.
1513         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1514         implementation.
1515         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1516         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1517         * modules/sinl (Depends-on): Add sin. Update conditions.
1518         (configure.ac): Don't compile sincosl.c and trigl.c if
1519         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1520
1521 2011-10-10  Bruno Haible  <bruno@clisp.org>
1522
1523         logl: Simplify for platforms where 'long double' == 'double'.
1524         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1525         implementation.
1526         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1527         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1528         * modules/logl (Depends-on): Add log. Update conditions.
1529
1530 2011-10-10  Bruno Haible  <bruno@clisp.org>
1531
1532         expl: Simplify for platforms where 'long double' == 'double'.
1533         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1534         implementation.
1535         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1536         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1537         * modules/expl (Depends-on): Add exp. Update conditions.
1538
1539 2011-10-10  Bruno Haible  <bruno@clisp.org>
1540
1541         sqrtl: Simplify for platforms where 'long double' == 'double'.
1542         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1543         alternative implementation.
1544         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1545         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1546         * modules/sqrtl (Depends-on): Update conditions.
1547
1548 2011-10-10  Bruno Haible  <bruno@clisp.org>
1549
1550         ldexpl: Simplify for platforms where 'long double' == 'double'.
1551         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1552         alternative implementation.
1553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1554         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1555         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1556
1557 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1558
1559         ffsll: set correct witness
1560         * modules/ffsll (configure.ac): Fix typo.
1561
1562 2011-10-10  Bruno Haible  <bruno@clisp.org>
1563
1564         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1565         * lib/printf-frexpl.c: Include <config.h>.
1566         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1567         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1568         second time.
1569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1570         gl_LONG_DOUBLE_VS_DOUBLE.
1571         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1572         conditions.
1573
1574 2011-10-10  Bruno Haible  <bruno@clisp.org>
1575
1576         frexpl: Simplify for platforms where 'long double' == 'double'.
1577         * lib/frexpl.c: Include <config.h>.
1578         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1579         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1580         time.
1581         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1582         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1583         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1584         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1585         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1586         conditions.
1587
1588 2011-10-10  Jim Meyering  <meyering@redhat.com>
1589
1590         test-renameat: don't leave behind a temporary file
1591         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1592           ERROR: files left in build directory after distclean:
1593           ./gltests/test-renameat.too
1594           make[1]: *** [distcleancheck] Error 1
1595         Reported by Tom G. Christensen.
1596
1597 2011-10-09  Bruno Haible  <bruno@clisp.org>
1598
1599         rint: Determine RINT_LIBM correctly on AIX 7.
1600         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1601         directly, not only through a function pointer. Also accept an optional
1602         4th argument with extra code.
1603         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1604         rintf() call by gcc when optimizing.
1605
1606         mathfunc.m4: Refactor.
1607         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1608         m4 variable.
1609
1610 2011-10-09  Bruno Haible  <bruno@clisp.org>
1611
1612         rintl: Simplify for platforms where 'long double' == 'double'.
1613         * lib/rintl.c: Include <config.h>.
1614         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1615         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1616         time.
1617         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1618         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1619         * modules/rintl (Depends-on): Add rint. Update conditions.
1620
1621 2011-10-09  Bruno Haible  <bruno@clisp.org>
1622
1623         roundl: Simplify for platforms where 'long double' == 'double'.
1624         * lib/roundl.c: Include <config.h>.
1625         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1626         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1627         time.
1628         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1629         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1630         * modules/roundl (Depends-on): Add round. Update conditions.
1631
1632 2011-10-09  Bruno Haible  <bruno@clisp.org>
1633
1634         truncl: Simplify for platforms where 'long double' == 'double'.
1635         * lib/truncl.c: Include <config.h>.
1636         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1637         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1638         time.
1639         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1640         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1641         * modules/truncl (Depends-on): Add trunc. Update conditions.
1642
1643 2011-10-09  Bruno Haible  <bruno@clisp.org>
1644
1645         ceill: Simplify for platforms where 'long double' == 'double'.
1646         * lib/ceill.c: Include <config.h>.
1647         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1648         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1649         time.
1650         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1651         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1652         * modules/ceill (Depends-on): Add ceil. Update conditions.
1653
1654 2011-10-09  Bruno Haible  <bruno@clisp.org>
1655
1656         floorl: Simplify for platforms where 'long double' == 'double'.
1657         * lib/floorl.c: Include <config.h>.
1658         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1659         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1660         time.
1661         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1662         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1663         * modules/floorl (Depends-on): Add floor. Update conditions.
1664
1665 2011-10-09  Bruno Haible  <bruno@clisp.org>
1666
1667         rint: Fix ordering constraints.
1668         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1669         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1670         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1671
1672 2011-10-09  Bruno Haible  <bruno@clisp.org>
1673
1674         copysignl: Simplify for platforms where 'long double' == 'double'.
1675         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1676         alternative.
1677         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1678         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1679         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1680
1681 2011-10-09  Bruno Haible  <bruno@clisp.org>
1682
1683         Tests for module 'rintl'.
1684         * modules/rintl-tests: New file.
1685         * tests/test-rintl.c: New file.
1686
1687         New module 'rintl'.
1688         * lib/math.in.h (rintl): New declaration.
1689         * lib/rintl.c: New file.
1690         * m4/rintl.m4: New file.
1691         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1693         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1694         * modules/rintl: New file.
1695         * tests/test-math-c++.cc: Check the declaration of rintl.
1696         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1697         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1698         * doc/posix-functions/rintl.texi: Mention the new module.
1699
1700 2011-10-09  Bruno Haible  <bruno@clisp.org>
1701
1702         Tests for module 'rintf'.
1703         * modules/rintf-tests: New file.
1704         * tests/test-rintf.c: New file.
1705
1706         New module 'rintf'.
1707         * lib/math.in.h (rintf): New declaration.
1708         * lib/rintf.c: New file.
1709         * m4/rintf.m4: New file.
1710         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1712         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1713         * modules/rintf: New file.
1714         * tests/test-math-c++.cc: Check the declaration of rintf.
1715         * doc/posix-functions/rintf.texi: Mention the new module.
1716
1717 2011-10-09  Bruno Haible  <bruno@clisp.org>
1718
1719         rint: Support for MSVC.
1720         * lib/math.in.h (rint): New declaration.
1721         * lib/rint.c: New file.
1722         * m4/rint.m4: New file.
1723         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1725         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1726         * modules/rint (Description): Fix.
1727         (Files): Add lib/rint.c, m4/rint.m4.
1728         (Depends-on): Add math.
1729         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1730         gl_MATH_MODULE_INDICATOR.
1731         * tests/test-math-c++.cc: Check the declaration of rint.
1732         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1733         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1734         * doc/posix-functions/rint.texi: Mention the replacement provided by
1735         the module.
1736
1737         rint tests: More tests.
1738         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1739         minus-zero.h, infinity.h, nan.h.
1740         (main): Skip the test if the current rounding mode is not standard. Add
1741         tests for negative numbers, minus zero, infinity, NaN.
1742         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1743         tests/nan.h.
1744         (Depends-on): Add isnand-nolibm.
1745
1746 2011-10-09  Bruno Haible  <bruno@clisp.org>
1747
1748         Tests for module 'copysignl'.
1749         * modules/copysignl-tests: New file.
1750         * tests/test-copysignl.c: New file.
1751
1752         New module 'copysignl'.
1753         * lib/math.in.h (copysignl): New declaration.
1754         * lib/copysignl.c: New file.
1755         * m4/copysignl.m4: New file.
1756         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1758         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1759         HAVE_COPYSIGNL.
1760         * modules/copysignl: New file.
1761         * tests/test-math-c++.cc: Check the declaration of copysignl.
1762         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1763         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1764         * doc/posix-functions/copysignl.texi: Mention the new module.
1765
1766 2011-10-09  Bruno Haible  <bruno@clisp.org>
1767
1768         Tests for module 'copysignf'.
1769         * modules/copysignf-tests: New file.
1770         * tests/test-copysignf.c: New file.
1771
1772         New module 'copysignf'.
1773         * lib/math.in.h (copysignf): New declaration.
1774         * lib/copysignf.c: New file.
1775         * m4/copysignf.m4: New file.
1776         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1778         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1779         HAVE_COPYSIGNF.
1780         * modules/copysignf: New file.
1781         * tests/test-math-c++.cc: Check the declaration of copysignf.
1782         * doc/posix-functions/copysignf.texi: Mention the new module.
1783
1784 2011-10-09  Bruno Haible  <bruno@clisp.org>
1785
1786         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1788         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1791         gl_SIGNAL_H_DEFAULTS.
1792
1793 2011-10-09  Bruno Haible  <bruno@clisp.org>
1794
1795         poll: Make macro safer.
1796         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1797         ac_cv_header_poll_h is not set.
1798
1799 2011-10-09  Bruno Haible  <bruno@clisp.org>
1800
1801         copysign: Provide replacement.
1802         * lib/math.in.h (copysign): New declaration.
1803         * lib/copysign.c: New file.
1804         * m4/copysign.m4: New file.
1805         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1807         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1808         HAVE_COPYSIGN.
1809         * modules/copysign (Description): Clarify.
1810         (Files): Add lib/copysign.c, m4/copysign.m4.
1811         (Depends-on): Add math, signbit.
1812         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1813         gl_MATH_MODULE_INDICATOR.
1814         * tests/test-math-c++.cc: Check the declaration of copysign.
1815         * doc/posix-functions/copysign.texi: Mention the effects of the module
1816         on Minix and MSVC.
1817
1818 2011-10-09  Bruno Haible  <bruno@clisp.org>
1819
1820         isinf: Ensure macro on AIX 5.1.
1821         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1822         macro.
1823         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1824
1825 2011-10-09  Bruno Haible  <bruno@clisp.org>
1826
1827         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1828         * modules/snprintf-posix-tests (configure.ac): Require
1829         gl_LONG_DOUBLE_VS_DOUBLE.
1830         * modules/sprintf-posix-tests (configure.ac): Likewise.
1831         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1832         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1833         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1834         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1835         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1836         tests on platforms where 'long double' is the same as 'double'.
1837         * tests/test-sprintf-posix.h (test_function): Likewise.
1838         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1839         * tests/test-vasprintf-posix.c (test_function): Likewise.
1840
1841         *printf: Fix for platforms where 'long double' == 'double'.
1842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1843         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1844         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1845         * modules/fprintf-posix (Files): Likewise.
1846         * modules/obstack-printf-posix (Files): Likewise.
1847         * modules/snprintf-posix (Files): Likewise.
1848         * modules/sprintf-posix (Files): Likewise.
1849         * modules/vasnprintf (Files): Likewise.
1850         * modules/vasnprintf-posix (Files): Likewise.
1851         * modules/vasprintf-posix (Files): Likewise.
1852         * modules/vdprintf-posix (Files): Likewise.
1853         * modules/vfprintf-posix (Files): Likewise.
1854         * modules/vsnprintf-posix (Files): Likewise.
1855         * modules/vsprintf-posix (Files): Likewise.
1856         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1857         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1858         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1859         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1860         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1861         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1862         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1863
1864         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1865         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1866         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1867         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1868         'long double'.
1869         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1870
1871         isinf: Fix for platforms where 'long double' == 'double'.
1872         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1873         Don't blindly assume 80-bit 'long double'.
1874
1875         isfinite: Fix for platforms where 'long double' == 'double'.
1876         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1877         Don't blindly assume 80-bit 'long double'.
1878
1879         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1880         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1881         * modules/isfinite-tests (configure.ac): Require
1882         gl_LONG_DOUBLE_VS_DOUBLE.
1883         * modules/isinf-tests (configure.ac): Likewise.
1884         * modules/isnan-tests (configure.ac): Likewise.
1885         * modules/isnanl-tests (configure.ac): Likewise.
1886         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1887         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1888         tests on platforms where 'long double' is the same as 'double'.
1889         * tests/test-isinf.c (test_isinfl): Likewise.
1890         * tests/test-isnan.c (test_long_double): Likewise.
1891         * tests/test-isnanl.h (main): Likewise.
1892
1893 2011-10-08  Bruno Haible  <bruno@clisp.org>
1894
1895         Tests for module 'tanhf'.
1896         * modules/tanhf-tests: New file.
1897         * tests/test-tanhf.c: New file.
1898
1899         New module 'tanhf'.
1900         * lib/math.in.h (tanhf): New declaration.
1901         * lib/tanhf.c: New file.
1902         * m4/tanhf.m4: New file.
1903         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1905         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1906         * modules/tanhf: New file.
1907         * tests/test-math-c++.cc: Check the declaration of tanhf.
1908         * doc/posix-functions/tanhf.texi: Mention the new module.
1909
1910         tanh: Use a .m4 file.
1911         * m4/tanh.m4: New file.
1912         * modules/tanh (Files): Add it.
1913         (configure.ac): Just invoke gl_FUNC_TANH.
1914
1915 2011-10-08  Bruno Haible  <bruno@clisp.org>
1916
1917         Tests for module 'coshf'.
1918         * modules/coshf-tests: New file.
1919         * tests/test-coshf.c: New file.
1920
1921         New module 'coshf'.
1922         * lib/math.in.h (coshf): New declaration.
1923         * lib/coshf.c: New file.
1924         * m4/coshf.m4: New file.
1925         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1927         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1928         * modules/coshf: New file.
1929         * tests/test-math-c++.cc: Check the declaration of coshf.
1930         * doc/posix-functions/coshf.texi: Mention the new module.
1931
1932         cosh: Use a .m4 file.
1933         * m4/cosh.m4: New file.
1934         * modules/cosh (Files): Add it.
1935         (configure.ac): Just invoke gl_FUNC_COSH.
1936
1937 2011-10-08  Bruno Haible  <bruno@clisp.org>
1938
1939         Tests for module 'sinhf'.
1940         * modules/sinhf-tests: New file.
1941         * tests/test-sinhf.c: New file.
1942
1943         New module 'sinhf'.
1944         * lib/math.in.h (sinhf): New declaration.
1945         * lib/sinhf.c: New file.
1946         * m4/sinhf.m4: New file.
1947         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1949         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1950         * modules/sinhf: New file.
1951         * tests/test-math-c++.cc: Check the declaration of sinhf.
1952         * doc/posix-functions/sinhf.texi: Mention the new module.
1953
1954         sinh: Use a .m4 file.
1955         * m4/sinh.m4: New file.
1956         * modules/sinh (Files): Add it.
1957         (configure.ac): Just invoke gl_FUNC_SINH.
1958
1959 2011-10-08  Bruno Haible  <bruno@clisp.org>
1960
1961         Tests for module 'atan2f'.
1962         * modules/atan2f-tests: New file.
1963         * tests/test-atan2f.c: New file.
1964
1965         New module 'atan2f'.
1966         * lib/math.in.h (atan2f): New declaration.
1967         * lib/atan2f.c: New file.
1968         * m4/atan2f.m4: New file.
1969         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1971         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1972         * modules/atan2f: New file.
1973         * tests/test-math-c++.cc: Check the declaration of atan2f.
1974         * doc/posix-functions/atan2f.texi: Mention the new module.
1975
1976         atan2: Use a .m4 file.
1977         * m4/atan2.m4: New file.
1978         * modules/atan2 (Files): Add it.
1979         (configure.ac): Just invoke gl_FUNC_ATAN2.
1980
1981 2011-10-08  Bruno Haible  <bruno@clisp.org>
1982
1983         Tests for module 'atanf'.
1984         * modules/atanf-tests: New file.
1985         * tests/test-atanf.c: New file.
1986
1987         New module 'atanf'.
1988         * lib/math.in.h (atanf): New declaration.
1989         * lib/atanf.c: New file.
1990         * m4/atanf.m4: New file.
1991         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1993         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1994         * modules/atanf: New file.
1995         * tests/test-math-c++.cc: Check the declaration of atanf.
1996         * doc/posix-functions/atanf.texi: Mention the new module.
1997
1998         atan: Use a .m4 file.
1999         * m4/atan.m4: New file.
2000         * modules/atan (Files): Add it.
2001         (configure.ac): Just invoke gl_FUNC_ATAN.
2002
2003 2011-10-08  Bruno Haible  <bruno@clisp.org>
2004
2005         Tests for module 'acosf'.
2006         * modules/acosf-tests: New file.
2007         * tests/test-acosf.c: New file.
2008
2009         New module 'acosf'.
2010         * lib/math.in.h (acosf): New declaration.
2011         * lib/acosf.c: New file.
2012         * m4/acosf.m4: New file.
2013         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2015         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2016         * modules/acosf: New file.
2017         * tests/test-math-c++.cc: Check the declaration of acosf.
2018         * doc/posix-functions/acosf.texi: Mention the new module.
2019
2020         acos: Use a .m4 file.
2021         * m4/acos.m4: New file.
2022         * modules/acos (Files): Add it.
2023         (configure.ac): Just invoke gl_FUNC_ACOS.
2024
2025 2011-10-08  Bruno Haible  <bruno@clisp.org>
2026
2027         Tests for module 'asinf'.
2028         * modules/asinf-tests: New file.
2029         * tests/test-asinf.c: New file.
2030
2031         New module 'asinf'.
2032         * lib/math.in.h (asinf): New declaration.
2033         * lib/asinf.c: New file.
2034         * m4/asinf.m4: New file.
2035         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2037         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2038         * modules/asinf: New file.
2039         * tests/test-math-c++.cc: Check the declaration of asinf.
2040         * doc/posix-functions/asinf.texi: Mention the new module.
2041
2042         asin: Use a .m4 file.
2043         * m4/asin.m4: New file.
2044         * modules/asin (Files): Add it.
2045         (configure.ac): Just invoke gl_FUNC_ASIN.
2046
2047 2011-10-08  Bruno Haible  <bruno@clisp.org>
2048
2049         Tests for module 'tanf'.
2050         * modules/tanf-tests: New file.
2051         * tests/test-tanf.c: New file.
2052
2053         New module 'tanf'.
2054         * lib/math.in.h (tanf): New declaration.
2055         * lib/tanf.c: New file.
2056         * m4/tanf.m4: New file.
2057         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2059         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2060         * modules/tanf: New file.
2061         * tests/test-math-c++.cc: Check the declaration of tanf.
2062         * doc/posix-functions/tanf.texi: Mention the new module.
2063
2064         tan: Use a .m4 file.
2065         * m4/tan.m4: New file.
2066         * modules/tan (Files): Add it.
2067         (configure.ac): Just invoke gl_FUNC_TAN.
2068
2069 2011-10-08  Bruno Haible  <bruno@clisp.org>
2070
2071         Tests for module 'cosf'.
2072         * modules/cosf-tests: New file.
2073         * tests/test-cosf.c: New file.
2074
2075         New module 'cosf'.
2076         * lib/math.in.h (cosf): New declaration.
2077         * lib/cosf.c: New file.
2078         * m4/cosf.m4: New file.
2079         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2081         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2082         * modules/cosf: New file.
2083         * tests/test-math-c++.cc: Check the declaration of cosf.
2084         * doc/posix-functions/cosf.texi: Mention the new module.
2085
2086         cos: Use a .m4 file.
2087         * m4/cos.m4: New file.
2088         * modules/cos (Files): Add it.
2089         (configure.ac): Just invoke gl_FUNC_COS.
2090
2091 2011-10-08  Bruno Haible  <bruno@clisp.org>
2092
2093         Tests for module 'sinf'.
2094         * modules/sinf-tests: New file.
2095         * tests/test-sinf.c: New file.
2096
2097         New module 'sinf'.
2098         * lib/math.in.h (sinf): New declaration.
2099         * lib/sinf.c: New file.
2100         * m4/sinf.m4: New file.
2101         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2103         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2104         * modules/sinf: New file.
2105         * tests/test-math-c++.cc: Check the declaration of sinf.
2106         * doc/posix-functions/sinf.texi: Mention the new module.
2107
2108         sin: Use a .m4 file.
2109         * m4/sin.m4: New file.
2110         * modules/sin (Files): Add it.
2111         (configure.ac): Just invoke gl_FUNC_SIN.
2112
2113 2011-10-08  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'powf'.
2116         * modules/powf-tests: New file.
2117         * tests/test-powf.c: New file.
2118
2119         New module 'powf'.
2120         * lib/math.in.h (powf): New declaration.
2121         * lib/powf.c: New file.
2122         * m4/powf.m4: New file.
2123         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2125         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2126         * modules/powf: New file.
2127         * tests/test-math-c++.cc: Check the declaration of powf.
2128         * doc/posix-functions/powf.texi: Mention the new module.
2129
2130         pow: Use a .m4 file.
2131         * m4/pow.m4: New file.
2132         * modules/pow (Files): Add it.
2133         (configure.ac): Just invoke gl_FUNC_POW.
2134
2135 2011-10-08  Bruno Haible  <bruno@clisp.org>
2136
2137         Tests for module 'log10f'.
2138         * modules/log10f-tests: New file.
2139         * tests/test-log10f.c: New file.
2140
2141         New module 'log10f'.
2142         * lib/math.in.h (log10f): New declaration.
2143         * lib/log10f.c: New file.
2144         * m4/log10f.m4: New file.
2145         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2147         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2148         * modules/log10f: New file.
2149         * tests/test-math-c++.cc: Check the declaration of log10f.
2150         * doc/posix-functions/log10f.texi: Mention the new module.
2151
2152         log10: Use a .m4 file.
2153         * m4/log10.m4: New file.
2154         * modules/log10 (Files): Add it.
2155         (configure.ac): Just invoke gl_FUNC_LOG10.
2156
2157 2011-10-08  Bruno Haible  <bruno@clisp.org>
2158
2159         Tests for module 'logf'.
2160         * modules/logf-tests: New file.
2161         * tests/test-logf.c: New file.
2162
2163         New module 'logf'.
2164         * lib/math.in.h (logf): New declaration.
2165         * lib/logf.c: New file.
2166         * m4/logf.m4: New file.
2167         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2169         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2170         * modules/logf: New file.
2171         * tests/test-math-c++.cc: Check the declaration of logf.
2172         * doc/posix-functions/logf.texi: Mention the new module.
2173
2174         log: Use a .m4 file.
2175         * m4/log.m4: New file.
2176         * modules/log (Files): Add it.
2177         (configure.ac): Just invoke gl_FUNC_LOG.
2178
2179 2011-10-08  Bruno Haible  <bruno@clisp.org>
2180
2181         Tests for module 'expf'.
2182         * modules/expf-tests: New file.
2183         * tests/test-expf.c: New file.
2184
2185         New module 'expf'.
2186         * lib/math.in.h (expf): New declaration.
2187         * lib/expf.c: New file.
2188         * m4/expf.m4: New file.
2189         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2191         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2192         * modules/expf: New file.
2193         * tests/test-math-c++.cc: Check the declaration of expf.
2194         * doc/posix-functions/expf.texi: Mention the new module.
2195
2196         exp: Use a .m4 file.
2197         * m4/exp.m4: New file.
2198         * modules/exp (Files): Add it.
2199         (configure.ac): Just invoke gl_FUNC_EXP.
2200
2201 2011-10-08  Bruno Haible  <bruno@clisp.org>
2202
2203         Tests for module 'sqrtf'.
2204         * modules/sqrtf-tests: New file.
2205         * tests/test-sqrtf.c: New file.
2206
2207         New module 'sqrtf'.
2208         * lib/math.in.h (sqrtf): New declaration.
2209         * lib/sqrtf.c: New file.
2210         * m4/sqrtf.m4: New file.
2211         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2213         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2214         * modules/sqrtf: New file.
2215         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2216         * doc/posix-functions/sqrtf.texi: Mention the new module.
2217
2218 2011-10-08  Bruno Haible  <bruno@clisp.org>
2219
2220         Tests: Avoid link failures w.r.t. libintl.
2221         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2222         $(LIBINTL).
2223         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2224         $(LIBINTL).
2225         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2226         against $(LIBINTL).
2227         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2228         $(LIBINTL).
2229         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2230         $(LIBINTL).
2231         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2232
2233 2011-10-08  Bruno Haible  <bruno@clisp.org>
2234
2235         pow tests: Defeat compiler optimizations.
2236         * tests/test-pow.c (main): Assign arguments to x and y before use.
2237
2238 2011-10-08  Bruno Haible  <bruno@clisp.org>
2239
2240         gnulib-tool: Improve last commit.
2241         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2242         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2243         ignore dependencies that are not among the modules list.
2244
2245 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2246
2247         gnulib-tool: don't follow dependencies to avoided modules
2248         This fixes a bug that is related to the previous one.
2249         * gnulib-tool (func_modules_transitive_closure)
2250         (func_emit_autoconf_snippets):
2251         Check whether a dependency is acceptable before using it.
2252         (--extract-dependencies): Report an error if --avoid is also used,
2253         since this combination of options is not yet supported.
2254
2255         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2256         Problem reported by Peter Dyballa in
2257         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2258         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2259         when echoing "$condition".
2260
2261 2011-10-07  Bruno Haible  <bruno@clisp.org>
2262
2263         Fix documentation about math functions on MacOS X.
2264         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2265         MacOS X 10.5.
2266         * doc/posix-functions/fdim.texi: Likewise.
2267         * doc/posix-functions/feclearexcept.texi: Likewise.
2268         * doc/posix-functions/fegetenv.texi: Likewise.
2269         * doc/posix-functions/fegetround.texi: Likewise.
2270         * doc/posix-functions/feholdexcept.texi: Likewise.
2271         * doc/posix-functions/feraiseexcept.texi: Likewise.
2272         * doc/posix-functions/fesetenv.texi: Likewise.
2273         * doc/posix-functions/fesetround.texi: Likewise.
2274         * doc/posix-functions/fetestexcept.texi: Likewise.
2275         * doc/posix-functions/feupdateenv.texi: Likewise.
2276         * doc/posix-functions/fmax.texi: Likewise.
2277         * doc/posix-functions/fmin.texi: Likewise.
2278         * doc/posix-functions/log2.texi: Likewise.
2279         * doc/posix-functions/modff.texi: Likewise.
2280         * doc/posix-functions/nan.texi: Likewise.
2281         * doc/posix-functions/nanf.texi: Likewise.
2282         * doc/posix-functions/nextafterf.texi: Likewise.
2283         * doc/posix-functions/remquo.texi: Likewise.
2284
2285 2011-10-07  Bruno Haible  <bruno@clisp.org>
2286
2287         modff: Drop assumption about library that defines modff.
2288         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2289         AC_CHECK_FUNCS.
2290         * modules/modff (Files): Add m4/mathfunc.m4.
2291
2292 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2293
2294         raise tests: Avoid a GCC warning.
2295         * tests/test-raise.c (handler): Use _Noreturn.
2296
2297 2011-10-07  Bruno Haible  <bruno@clisp.org>
2298
2299         Tests for module 'ldexpf'.
2300         * modules/ldexpf-tests: New file.
2301         * tests/test-ldexpf.c: New file.
2302
2303         New module 'ldexpf'.
2304         * lib/math.in.h (ldexpf): New declaration.
2305         * lib/ldexpf.c: New file.
2306         * m4/ldexpf.m4: New file.
2307         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2309         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2310         * modules/ldexpf: New file.
2311         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2312         * doc/posix-functions/ldexpf.texi: Mention the new module.
2313
2314 2011-10-06  Bruno Haible  <bruno@clisp.org>
2315
2316         frexpf: Work around problems on IRIX and mingw.
2317         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2319         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2320         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2321         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2322         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2323         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2324
2325 2011-10-06  Bruno Haible  <bruno@clisp.org>
2326
2327         fabsf: Drop assumption about library that defines fabsf.
2328         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2329         AC_CHECK_FUNCS.
2330         * modules/fabsf (Files): Add m4/mathfunc.m4.
2331
2332 2011-10-06  Bruno Haible  <bruno@clisp.org>
2333
2334         frexpf: Drop assumption about library that defines frexpf.
2335         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2336         'int *', 'float *', 'long double *', 'float', 'long double'.
2337         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2338         AC_CHECK_FUNCS.
2339         * modules/frexpf (Files): Add m4/mathfunc.m4.
2340
2341         Tests for module 'frexpf'.
2342         * modules/frexpf-tests: New file.
2343         * tests/test-frexpf.c: New file.
2344
2345         New module 'frexpf'.
2346         * lib/math.in.h (frexpf): New declaration.
2347         * lib/frexpf.c: New file.
2348         * m4/frexpf.m4: New file.
2349         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2351         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2352         * modules/frexpf: New file.
2353         * tests/test-math-c++.cc: Check the declaration of frexpf.
2354         * doc/posix-functions/frexpf.texi: Mention the new module.
2355
2356 2011-10-06  Bruno Haible  <bruno@clisp.org>
2357
2358         math: Sort function declarations of math.in.h.
2359         * lib/math.in.h (frexp, logb): Move declarations.
2360
2361 2011-10-05  Bruno Haible  <bruno@clisp.org>
2362
2363         Tests for module 'modff'.
2364         * modules/modff-tests: New file.
2365         * tests/test-modff.c: New file.
2366
2367         New module 'modff'.
2368         * lib/math.in.h (modff): New declaration.
2369         * lib/modff.c: New file.
2370         * m4/modff.m4: New file.
2371         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2373         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2374         * modules/modff: New file.
2375         * tests/test-math-c++.cc: Check the declaration of modff.
2376         * doc/posix-functions/modff.texi: Mention the new module.
2377
2378         modf tests: Make test sharper.
2379         * tests/test-modf.c (main): Strengthen upper bound.
2380
2381         modf: Use a .m4 file.
2382         * m4/modf.m4: New file.
2383         * modules/modf (Files): Add it.
2384         (configure.ac): Just invoke gl_FUNC_MODF.
2385
2386 2011-10-05  Bruno Haible  <bruno@clisp.org>
2387
2388         Tests for module 'fmodf'.
2389         * modules/fmodf-tests: New file.
2390         * tests/test-fmodf.c: New file.
2391
2392         New module 'fmodf'.
2393         * lib/math.in.h (fmodf): New declaration.
2394         * lib/fmodf.c: New file.
2395         * m4/fmodf.m4: New file.
2396         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2398         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2399         * modules/fmodf: New file.
2400         * tests/test-math-c++.cc: Check the declaration of fmodf.
2401         * doc/posix-functions/fmodf.texi: Mention the new module.
2402
2403         fmod: Use a .m4 file.
2404         * m4/fmod.m4: New file.
2405         * modules/fmod (Files): Add it.
2406         (configure.ac): Just invoke gl_FUNC_FMOD.
2407
2408 2011-10-05  Bruno Haible  <bruno@clisp.org>
2409
2410         Tests for module 'fabsf'.
2411         * modules/fabsf-tests: New file.
2412         * tests/test-fabsf.c: New file.
2413
2414         New module 'fabsf'.
2415         * lib/math.in.h (fabsf): New declaration.
2416         * lib/fabsf.c: New file.
2417         * m4/fabsf.m4: New file.
2418         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2420         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2421         * modules/fabsf: New file.
2422         * tests/test-math-c++.cc: Check the declaration of fabsf.
2423         * doc/posix-functions/fabsf.texi: Mention the new module.
2424
2425         fabs: Use a .m4 file.
2426         * m4/fabs.m4: New file.
2427         * modules/fabs (Files): Add it.
2428         (configure.ac): Just invoke gl_FUNC_FABS.
2429
2430 2011-10-05  Jim Meyering  <meyering@redhat.com>
2431
2432         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2433         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2434         ls -lL regression introduced in coreutils-8.12, it does so at the
2435         cost of an additional stat call in the common case.  Besides, now
2436         that the kernel change that prompted commit 95f7c57f has been reverted
2437         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2438         we have no use for commit 95f7c57f, "file-has-acl: use
2439         acl_extended_file_nofollow if available".
2440
2441 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2442
2443         file-has-acl: revert unintended change in behavior of ls -L
2444         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2445         derived from...
2446         (file_has_acl): ...code here.  Call it.
2447         This problem was introduced with 2011-07-22 commit 95f7c57f,
2448         "file-has-acl: use acl_extended_file_nofollow if available".
2449         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2450
2451 2011-10-03  Bruno Haible  <bruno@clisp.org>
2452
2453         poll: Avoid link errors on MSVC.
2454         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2455         * modules/poll (Depends-on): Add sockets.
2456         (Link): New section.
2457         * NEWS: Mention the change.
2458         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2459         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2460         $(LIB_POLL) instead of $(LIBSOCKET).
2461
2462 2011-10-03  Bruno Haible  <bruno@clisp.org>
2463
2464         sys_select tests: Fix link error on MSVC 9.
2465         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2466         with $(LIB_SELECT) instead of $(LIBSOCKET).
2467
2468 2011-10-03  Bruno Haible  <bruno@clisp.org>
2469
2470         sys_select: Fix compilation error on mingw.
2471         * lib/sys_select.in.h: On native Windows, include <io.h>.
2472
2473 2011-10-03  Bruno Haible  <bruno@clisp.org>
2474
2475         wmemset: Support for MSVC.
2476         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2477         whether wmemset() exists.
2478
2479 2011-10-03  Bruno Haible  <bruno@clisp.org>
2480
2481         wmemmove: Support for MSVC.
2482         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2483         whether wmemmove() exists.
2484
2485 2011-10-03  Bruno Haible  <bruno@clisp.org>
2486
2487         wmemcpy: Support for MSVC.
2488         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2489         whether wmemcpy() exists.
2490
2491 2011-10-03  Bruno Haible  <bruno@clisp.org>
2492
2493         wmemcmp: Support for MSVC.
2494         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2495         whether wmemcmp() exists.
2496
2497 2011-10-03  Bruno Haible  <bruno@clisp.org>
2498
2499         wmemchr: Support for MSVC.
2500         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2501         whether wmemchr() exists.
2502
2503 2011-10-03  Bruno Haible  <bruno@clisp.org>
2504
2505         glthread/*, strsignal: Support for MSVC.
2506         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2507         including <winsock.h> on MSVC 9.
2508         * lib/glthread/lock.h: Likewise.
2509         * lib/glthread/thread.h: Likewise.
2510         * lib/glthread/tls.h: Likewise.
2511         * lib/glthread/yield.h: Likewise.
2512         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2513         if HAVE_UNISTD_H is false.
2514         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2515
2516 2011-10-03  Bruno Haible  <bruno@clisp.org>
2517
2518         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2519         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2520         Set to 100000.
2521
2522 2011-10-03  Bruno Haible  <bruno@clisp.org>
2523
2524         acl: Fix specification.
2525         * lib/file-has-acl.c (file_has_acl): Fix specification.
2526
2527 2011-10-03  Bruno Haible  <bruno@clisp.org>
2528
2529         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2530         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2531         (compute_curr_prefix, shared_library_fullname,
2532         find_shared_library_fullname, get_shared_library_fullname, relocate):
2533         Use it together with PIC && INSTALLDIR.
2534         Reported by <jojelino@gmail.com>
2535         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2536
2537 2011-10-01  Jim Meyering  <meyering@redhat.com>
2538
2539         maint.mk: adjust a release-related rule not to require use of gzip
2540         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2541         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2542         projects that build only .tar.xz files.  Also fix an erroneous test.
2543
2544         test-linkat: don't leave behind a temporary file
2545         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2546         Otherwise, coreutils' "make distcheck" would fail with this:
2547           Only in /c/cu/tests/torture/coreutils/test/\
2548             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2549           make[2]: *** [my-distcheck] Error 1
2550
2551         float, math: add omitted file
2552         * lib/itold.c: Add file, required for yesterday's float change.
2553
2554 2011-10-01  Bruno Haible  <bruno@clisp.org>
2555
2556         isinf: Fix for OpenBSD/x86.
2557         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2558         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2559         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2560
2561 2011-10-01  Bruno Haible  <bruno@clisp.org>
2562
2563         isfinite: Fix syntax error in configure test.
2564         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2565
2566         isfinite: Fix typo.
2567         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2568         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2569
2570 2011-10-01  Bruno Haible  <bruno@clisp.org>
2571
2572         nonblocking tests: Fix test failure on Linux/IA-64.
2573         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2574         Set to 270000.
2575
2576 2011-10-01  Bruno Haible  <bruno@clisp.org>
2577
2578         mkfifoat tests: Fix a test failure on mingw.
2579         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2580         with error ENOSYS.
2581
2582 2011-09-30  Bruno Haible  <bruno@clisp.org>
2583
2584         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2585         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2586         'long double'. Set REPLACE_ITOLD.
2587         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2588         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2589         * lib/itold.c: New file.
2590         * modules/float (Files): Add lib/itold.c.
2591         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2592         (Makefile.am): Substitute REPLACE_ITOLD.
2593         * modules/math (Depends-on): Add float.
2594         (Makefile.am): Substitute REPLACE_ITOLD.
2595         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2596         * doc/posix-headers/math.texi: Likewise.
2597         * doc/posix-functions/logl.texi: Likewise.
2598
2599 2011-09-30  Bruno Haible  <bruno@clisp.org>
2600
2601         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2602         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2603         Set to 140000.
2604
2605 2011-09-30  Bruno Haible  <bruno@clisp.org>
2606
2607         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2608         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2609         invocation, say "right after AC_PROG_CC_STDC", not "right after
2610         AC_PROG_CC".
2611         Reported by Gary V. Vaughan <gary@gnu.org>.
2612
2613 2011-09-30  Bruno Haible  <bruno@clisp.org>
2614
2615         Centralize C99 requirement.
2616         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2617         * modules/stdarg (configure.ac-early): Invoke it instead of
2618         AC_PROG_CC_STDC.
2619         Reported by Gary V. Vaughan and Paul Eggert.
2620
2621 2011-09-29  Bruno Haible  <bruno@clisp.org>
2622
2623         float: Fix LDBL_MAX value on Linux/PowerPC.
2624         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2625         on Linux/PowerPC.
2626         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2627         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2628         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2629         platform.
2630         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2631
2632 2011-09-29  Bruno Haible  <bruno@clisp.org>
2633
2634         doc: Improve doc about gl_EARLY.
2635         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2636         AC_PROG_CC_STDC invocation.
2637         Reported by Gary V. Vaughan <gary@gnu.org>.
2638
2639 2011-09-28  Bruno Haible  <bruno@clisp.org>
2640
2641         fgetc, fputc, fread, fwrite tests: Fix link error.
2642         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2643         on non-MSVC platforms.
2644         * tests/test-fputc.c (main): Likewise.
2645         * tests/test-fread.c (main): Likewise.
2646         * tests/test-fwrite.c (main): Likewise.
2647         Reported by Jim Meyering.
2648
2649 2011-09-27  Bruno Haible  <bruno@clisp.org>
2650
2651         fputc, fwrite tests: Avoid test failure on MSVC.
2652         * tests/test-fgetc.c: Include msvc-inval.h.
2653         (main): Invoke gl_msvc_inval_ensure_handler.
2654         * tests/test-fputc.c: Include msvc-inval.h.
2655         (main): Invoke gl_msvc_inval_ensure_handler.
2656         * tests/test-fread.c: Include msvc-inval.h.
2657         (main): Invoke gl_msvc_inval_ensure_handler.
2658         * tests/test-fwrite.c: Include msvc-inval.h.
2659         (main): Invoke gl_msvc_inval_ensure_handler.
2660         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2661         * modules/fputc-tests (Depends-on): Likewise.
2662         * modules/fread-tests (Depends-on): Likewise.
2663         * modules/fwrite-tests (Depends-on): Likewise.
2664
2665 2011-09-27  Bruno Haible  <bruno@clisp.org>
2666
2667         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2668         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2669         (raise): Remove older, duplicated declaration.
2670         (_gl_raise_SIGPIPE): New declaration.
2671         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2672         (rpl_raise): Remove function.
2673         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2674         a gnulib-defined SIGPIPE here.
2675         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2676         'sigprocmask' has detected missing signal-blocking and the module
2677         'sigpipe' is enabled.
2678         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2679
2680 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2681
2682         base64-tests: avoid memory leak
2683         * tests/test-base64.c (main): Plug memory leak.
2684
2685         base32: new module
2686         * modules/base32: New module.
2687         * lib/base32.c: New file.
2688         * lib/base32.h: Likewise.
2689         * m4/base32.m4: Likewise.
2690         * modules/base32-tests: New test.
2691         * tests/test-base32.c: Likewise.
2692         * MODULES.html.sh (Misc): Mention it.
2693
2694 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2695
2696         gnulib: use more-standard license notice wording
2697         * gnulib-tool (func_emit_copyright_notice): When emitting a
2698         license notice into a file, use the standard wording as suggested
2699         by the current information for GNU maintainers, except say "file"
2700         rather than "program".  The new wording gives a license version
2701         number, which addresses an issue raised by Glenn Morris in
2702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2703         * m4/onceonly.m4: Use that same wording here, too.
2704
2705         dup2: minor simplification
2706         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2707         as lib/dup2.c no longer uses 'inline'.
2708
2709 2011-09-25  Bruno Haible  <bruno@clisp.org>
2710
2711         strings: Fix compilation error on MSVC.
2712         * lib/strings.in.h: Include <stddef.h> for size_t.
2713
2714 2011-09-25  Bruno Haible  <bruno@clisp.org>
2715
2716         fflush et al.: Document limitation on MSVC.
2717         * doc/posix-functions/fflush.texi: Document possible crash in handling
2718         mode other than DEFAULT_HANDLING.
2719         * doc/posix-functions/fgetc.texi: Likewise.
2720         * doc/posix-functions/fputc.texi: Likewise.
2721         * doc/posix-functions/fread.texi: Likewise.
2722         * doc/posix-functions/fwrite.texi: Likewise.
2723
2724 2011-09-25  Bruno Haible  <bruno@clisp.org>
2725
2726         msvc-inval: Allow three invalid parameter handling modes.
2727         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2728         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2729         macros.
2730         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2731         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2732         SANE_LIBRARY_HANDLING as a no-op.
2733         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2734         <stdlib.h>.
2735         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2736
2737 2011-09-25  Bruno Haible  <bruno@clisp.org>
2738
2739         msvc-inval: Make handler multithread-safe.
2740         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2741         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2742         declarations.
2743         (gl_msvc_inval_current): New declaration.
2744         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2745         Operate on the structure returned by gl_msvc_inval_current().
2746         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2747         Remove varaiables.
2748         (tls_index, tls_initialized): New variables.
2749         (not_per_thread): New variable.
2750         (gl_msvc_inval_current): New function.
2751         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2752         returned by gl_msvc_inval_current().
2753
2754 2011-09-25  Bruno Haible  <bruno@clisp.org>
2755
2756         msvc-inval: Install handler globally.
2757         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2758         !_MSC_VER.
2759         (gl_msvc_invalid_parameter_handler): Remove declaration.
2760         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2761         declarations.
2762         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2763         Install the handler globally, don't uninstall it.
2764         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2765         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2766         currently valid, call RaiseException instead.
2767         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2768         for !_MSC_VER.
2769
2770 2011-09-25  Bruno Haible  <bruno@clisp.org>
2771
2772         strerror_r-posix: Fix for MSVC 9.
2773         * lib/strerror_r.c (local_snprintf): New function.
2774         (snprintf): Define to local_snprintf, not to _snprintf.
2775
2776 2011-09-25  Bruno Haible  <bruno@clisp.org>
2777
2778         ftruncate: Support for MSVC 9.
2779         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2780         (chsize_nothrow): New function.
2781         (chsize): Redefine as a macro.
2782         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2783         * modules/ftruncate (Depends-on): Add msvc-inval.
2784
2785 2011-09-25  Bruno Haible  <bruno@clisp.org>
2786
2787         New module 'fstat'.
2788         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2789         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2790         * lib/fchdir.c (rpl_fstat): Remove function.
2791         * m4/fstat.m4: New file.
2792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2794         declared.
2795         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2796         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2797         * modules/fstat: New file.
2798         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2799         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2800         is set.
2801         * doc/posix-functions/fstat.texi: Mention the new module and the
2802         problem on MSVC.
2803         * NEWS: Mention the change.
2804         * modules/acl (Depends-on): Add fstat.
2805         * modules/chdir-safer (Depends-on): Likewise.
2806         * modules/chown (Depends-on): Likewise.
2807         * modules/copy-file (Depends-on): Likewise.
2808         * modules/fchdir (Depends-on): Likewise.
2809         * modules/fdopendir (Depends-on): Likewise.
2810         * modules/fopen (Depends-on): Likewise.
2811         * modules/fts (Depends-on): Likewise.
2812         * modules/getcwd (Depends-on): Likewise.
2813         * modules/isapipe (Depends-on): Likewise.
2814         * modules/linkat (Depends-on): Likewise.
2815         * modules/lseek (Depends-on): Likewise.
2816         * modules/mkdir-p (Depends-on): Likewise.
2817         * modules/open (Depends-on): Likewise.
2818         * modules/openat (Depends-on): Likewise.
2819         * modules/read-file (Depends-on): Likewise.
2820         * modules/renameat (Depends-on): Likewise.
2821         * modules/utimens (Depends-on): Likewise.
2822
2823 2011-09-25  Bruno Haible  <bruno@clisp.org>
2824
2825         linkat: Fix compilation on MSVC 9.
2826         * lib/linkat.c: Don't include <stdint.h>.
2827
2828 2011-09-25  Bruno Haible  <bruno@clisp.org>
2829
2830         fclose: Support for MSVC 9.
2831         * lib/fclose.c: Include msvc-inval.h.
2832         (fclose_nothrow): New function.
2833         (rpl_fclose): Use it.
2834         * modules/fclose (Depends-on): Add msvc-inval.
2835         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2836
2837 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2838
2839         dup2: minor simplifications
2840         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2841         that it's a performance win.
2842         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2843         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2844
2845 2011-09-24  Jim Meyering  <meyering@redhat.com>
2846
2847         test-futimens: avoid a warning from gcc -Wshadow
2848         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2849         to avoid a shadowing warning.
2850
2851 2011-09-24  Bruno Haible  <bruno@clisp.org>
2852
2853         fdopen: Support for MSVC 9.
2854         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2855         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2856         * lib/fdopen.c: Include msvc-inval.h.
2857         (fdopen_nothrow): New function.
2858         (rpl_fdopen): Use it.
2859         * modules/fdopen (Depends-on): Add msvc-inval.
2860         * modules/fclose-tests (Depends-on): Add fdopen.
2861         * modules/fflush-tests (Depends-on): Likewise.
2862         * modules/fgetc-tests (Depends-on): Likewise.
2863         * modules/fputc-tests (Depends-on): Likewise.
2864         * modules/fread-tests (Depends-on): Likewise.
2865         * modules/freopen-tests (Depends-on): Likewise.
2866         * modules/fseeko-tests (Depends-on): Likewise.
2867         * modules/ftello-tests (Depends-on): Likewise.
2868         * modules/fwrite-tests  (Depends-on): Likewise.
2869         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2870
2871 2011-09-24  Bruno Haible  <bruno@clisp.org>
2872
2873         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2874         * modules/fgetc-tests (Depends-on): Add unistd.
2875         * modules/fputc-tests (Depends-on): Likewise.
2876         * modules/fread-tests (Depends-on): Likewise.
2877         * modules/fwrite-tests (Depends-on): Likewise.
2878
2879 2011-09-24  Bruno Haible  <bruno@clisp.org>
2880
2881         dup: Simplify autoconf test.
2882         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2883         on gl_MSVC_INVAL's result.
2884
2885 2011-09-24  Bruno Haible  <bruno@clisp.org>
2886
2887         Tests for function fwrite().
2888         * modules/fwrite-tests: New file.
2889         * tests/test-fwrite.c: New file.
2890         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2891
2892         Tests for function fread().
2893         * modules/fread-tests: New file.
2894         * tests/test-fread.c: New file.
2895         * modules/stdio-tests (Depends-on): Add fread-tests.
2896
2897         Activate fputc tests.
2898         * modules/stdio-tests (Depends-on): Add fputc-tests.
2899
2900         Enhance fgetc, fputc tests.
2901         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2902         * tests/test-fputc.c (main): Likewise.
2903
2904 2011-09-24  Bruno Haible  <bruno@clisp.org>
2905
2906         write: Support for MSVC 9.
2907         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2908         is not 1.
2909         * lib/write.c (write_nothrow): New function.
2910         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2911         not 1. Use write_nothrow.
2912         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2913         invalid parameter handler.
2914         (gl_PREREQ_WRITE): New macro.
2915         * modules/write (Depends-on): Add msvc-inval.
2916         (configure.ac): Invoke gl_PREREQ_WRITE.
2917         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2918
2919 2011-09-24  Bruno Haible  <bruno@clisp.org>
2920
2921         read: Fix last commit.
2922         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2923
2924 2011-09-24  Bruno Haible  <bruno@clisp.org>
2925
2926         dup2: Fix last commit.
2927         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2928         (rpl_dup2): Disable fcntl workaround on native Windows.
2929
2930         sigprocmask: Make code safer.
2931         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2932         section that changes macro definitions for this compilation unit.
2933
2934 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         dup2: clarify by coalescing Windows-specific material
2937         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2938         "msvc-nothrow.h"' to the Windows-specific section, so that the
2939         Emacs source need not contain these include files.
2940         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2941         Windows-specific fixes into this function rather than just the
2942         nothrow fix, as this shortens and clarifies the code.  Always
2943         define as a function, as that's a bit cleaner than having it be
2944         sometimes a function and sometimes a macro.
2945         (rpl_dup2): Move the Windows-specific stuff out of here and into
2946         ms_windows_dup2.  Don't protect the Haiku-related fix with
2947         "#if !defined __linux__", as the same code also works around
2948         a Linux kernel bug, and it doesn't add any system calls on any
2949         platform.  Add comment about FreeBSD 6.1.
2950
2951         sigprocmask: move #include directive
2952         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2953         Windows-specific section, so that the Emacs source need not
2954         contain msvc-inval.h.
2955
2956 2011-09-23  Bruno Haible  <bruno@clisp.org>
2957
2958         read: Support for MSVC 9.
2959         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2960         is not 1.
2961         * lib/read.c (read_nothrow): New function.
2962         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2963         read_nothrow.
2964         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2965         invalid parameter handler.
2966         (gl_PREREQ_READ): New macro.
2967         * modules/read (Depends-on): Add msvc-inval.
2968         (configure.ac): Invoke gl_PREREQ_READ.
2969         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2970
2971 2011-09-23  Bruno Haible  <bruno@clisp.org>
2972
2973         close: Support for MSVC 9.
2974         * lib/close.c: Include <errno.h>, msvc-inval.h.
2975         (close_nothrow): New function.
2976         (rpl_close): Use it.
2977         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2978         invalid parameter handler.
2979         * modules/close (Depends-on): Add msvc-inval.
2980         * modules/dup2-tests (Depends-on): Add close.
2981         * modules/dup3-tests (Depends-on): Likewise.
2982         * modules/fcntl-tests (Depends-on): Likewise.
2983         * modules/spawn-pipe-tests (Depends-on): Likewise.
2984         * modules/unistd-safer-tests (Depends-on): Likewise.
2985         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2986
2987 2011-09-23  Bruno Haible  <bruno@clisp.org>
2988
2989         New module 'dup'.
2990         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2991         Allow replacement.
2992         * lib/dup.c: New file.
2993         * lib/fchdir.c (rpl_dup): Remove function.
2994         * m4/dup.m4: New file.
2995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2996         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2997         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2998         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2999         * modules/dup: New file.
3000         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3001         'dup' module is in use.
3002         * modules/fdopendir (Depends-on): Add dup.
3003         * modules/fdutimensat-tests (Depends-on): Likewise.
3004         * modules/fts (Depends-on): Likewise.
3005         * modules/futimens-tests (Depends-on): Likewise.
3006         * modules/posix_spawnp-tests (Depends-on): Likewise.
3007         * modules/unistd-safer-tests (Depends-on): Likewise.
3008         * modules/utimens-tests (Depends-on): Likewise.
3009         * doc/posix-functions/dup.texi: Mention the new module and the problem
3010         on MSVC.
3011
3012 2011-09-23  Bruno Haible  <bruno@clisp.org>
3013
3014         getdtablesize: Support for MSVC 9.
3015         * lib/getdtablesize.c: Include msvc-inval.h.
3016         (_setmaxstdio_nothrow): New function.
3017         (_setmaxstdio): Redefine it.
3018         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3019         * modules/getdtablesize (Depends-on): Add msvc-inval.
3020         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3021
3022 2011-09-23  Bruno Haible  <bruno@clisp.org>
3023
3024         signal-h: Rename from signal.
3025         * modules/signal-h: Renamed from modules/signal.
3026         * modules/pthread_sigmask (Depends-on): Update.
3027         * modules/raise (Depends-on): Likewise.
3028         * modules/sigaction (Depends-on): Likewise.
3029         * modules/sigpipe (Depends-on): Likewise.
3030         * modules/sigprocmask (Depends-on): Likewise.
3031         * modules/sys_select (Depends-on): Likewise.
3032         * modules/signal-h-tests: Renamed from modules/signal-tests.
3033         (Files, Depends-on, Makefile.am): Update.
3034         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3035         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3036         (Files, Makefile.am): Update.
3037         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3038         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3039         * modules/signal: New placeholder file.
3040         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3041         * doc/posix-headers/signal.texi: Update.
3042         * NEWS: Mention the change.
3043
3044 2011-09-23  Bruno Haible  <bruno@clisp.org>
3045
3046         sigprocmask: Avoid crashes through signal() on MSVC 9.
3047         * lib/sigprocmask.c: Include msvc-inval.h.
3048         (signal_nothrow): New function.
3049         (signal): Redefine it.
3050         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3051         * modules/sigprocmask (Depends-on): Add msvc-inval.
3052         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3053
3054 2011-09-23  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'raise'.
3057         * modules/raise-tests: New file.
3058         * tests/test-raise.c: New file.
3059
3060         raise: Support for MSVC.
3061         * lib/signal.in.h (raise): New declaration.
3062         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3063         for native Windows platforms.
3064         * m4/raise.m4: New file.
3065         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3066         HAVE_RAISE, REPLACE_RAISE.
3067         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3068         REPLACE_RAISE.
3069         * modules/raise (Status, Notice): Remove fields.
3070         (Files): Add m4/raise.m4.
3071         (Depends-on): Add signal, msvc-inval.
3072         (configure.ac): Use the common idioms.
3073         (Maintainer): Add me.
3074         * tests/test-signal-c++.cc: Check the signature of raise.
3075         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3076
3077 2011-09-23  Bruno Haible  <bruno@clisp.org>
3078
3079         pipe2: Fix compilation on pre-C99 compilers.
3080         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3081
3082 2011-09-23  Bruno Haible  <bruno@clisp.org>
3083
3084         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3085         * lib/msvc-nothrow.h: New file.
3086         * lib/msvc-nothrow.c: New file.
3087         * m4/msvc-nothrow.m4: New file.
3088         * modules/msvc-nothrow: New file.
3089         * lib/dup2.c: Include msvc-nothrow.h.
3090         (rpl_dup2): No need to protect _get_osfhandle call here.
3091         * lib/accept4.c: Include msvc-nothrow.h.
3092         * lib/error.c: Likewise.
3093         * lib/fcntl.c: Likewise.
3094         * lib/lseek.c: Likewise.
3095         * lib/nonblocking.c: Likewise.
3096         * lib/poll.c: Likewise.
3097         * lib/read.c: Likewise.
3098         * lib/select.c: Likewise.
3099         * lib/sockets.h: Likewise.
3100         * lib/sockets.c: Likewise.
3101         * lib/stdio-read.c: Likewise.
3102         * lib/stdio-write.c: Likewise.
3103         * lib/write.c: Likewise.
3104         * lib/w32sock.h: Likewise.
3105         * lib/w32spawn.h: Likewise.
3106         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3107         * lib/fsync.c: Likewise.
3108         * lib/isapipe.c: Likewise.
3109         * modules/dup2 (Depends-on): Add msvc-nothrow.
3110         * modules/accept4 (Depends-on): Likewise.
3111         * modules/error (Depends-on): Likewise.
3112         * modules/fcntl (Depends-on): Likewise.
3113         * modules/lseek (Depends-on): Likewise.
3114         * modules/nonblocking (Depends-on): Likewise.
3115         * modules/poll (Depends-on): Likewise.
3116         * modules/read (Depends-on): Likewise.
3117         * modules/select (Depends-on): Likewise.
3118         * modules/sockets (Depends-on): Likewise.
3119         * modules/sigpipe (Depends-on): Likewise.
3120         * modules/write (Depends-on): Likewise.
3121         * modules/accept (Depends-on): Likewise.
3122         * modules/bind (Depends-on): Likewise.
3123         * modules/connect (Depends-on): Likewise.
3124         * modules/gethostname (Depends-on): Likewise.
3125         * modules/getpeername (Depends-on): Likewise.
3126         * modules/getsockname (Depends-on): Likewise.
3127         * modules/getsockopt (Depends-on): Likewise.
3128         * modules/ioctl (Depends-on): Likewise.
3129         * modules/listen (Depends-on): Likewise.
3130         * modules/recv (Depends-on): Likewise.
3131         * modules/recvfrom (Depends-on): Likewise.
3132         * modules/send (Depends-on): Likewise.
3133         * modules/sendto (Depends-on): Likewise.
3134         * modules/setsockopt (Depends-on): Likewise.
3135         * modules/shutdown (Depends-on): Likewise.
3136         * modules/socket (Depends-on): Likewise.
3137         * modules/execute (Depends-on): Likewise.
3138         * modules/spawn-pipe (Depends-on): Likewise.
3139         * modules/flock (Depends-on): Likewise.
3140         * modules/fsync (Depends-on): Likewise.
3141         * modules/isapipe (Depends-on): Likewise.
3142         * tests/test-cloexec.c: Include msvc-nothrow.h.
3143         * tests/test-dup-safer.c: Likewise.
3144         * tests/test-dup2.c: Likewise.
3145         * tests/test-dup3.c: Likewise.
3146         * tests/test-fcntl.c: Likewise.
3147         * tests/test-pipe.c: Likewise.
3148         * tests/test-pipe2.c: Likewise.
3149         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3150         * modules/unistd-safer-tests (Depends-on): Likewise.
3151         * modules/dup2-tests (Depends-on): Likewise.
3152         * modules/dup3-tests (Depends-on): Likewise.
3153         * modules/fcntl-tests (Depends-on): Likewise.
3154         * modules/pipe-posix-tests (Depends-on): Likewise.
3155         * modules/pipe2-tests (Depends-on): Likewise.
3156
3157 2011-09-23  Bruno Haible  <bruno@clisp.org>
3158
3159         dup2: Make code more maintainable.
3160         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3161         (rpl_dup2): Use it.
3162         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3163         * modules/dup2 (configure.ac): Invoke it.
3164         Reported by Paul Eggert.
3165
3166 2011-09-23  Bruno Haible  <bruno@clisp.org>
3167
3168         msvc-inval: Fix compilation error.
3169         * lib/msvc-inval.h: Include <excpt.h>.
3170
3171 2011-09-23  Bruno Haible  <bruno@clisp.org>
3172
3173         mkdir: Tweak for MSVC 9.
3174         * lib/sys_stat.in.h: Update comments.
3175         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3176
3177         Tests for module 'chdir'.
3178         * modules/chdir-tests: New file.
3179         * tests/test-chdir.c: New file.
3180
3181         New module 'chdir'.
3182         * modules/chdir: New file.
3183         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3184         (chdir): New declaration.
3185         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3186         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3187         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3188         * tests/test-unistd-c++.cc: Check signature of chdir.
3189         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3190         * modules/chdir-long (Depends-on): Add chdir.
3191         * modules/fchdir (Depends-on): Likewise.
3192         * modules/rename (Depends-on): Likewise.
3193         * modules/savewd (Depends-on): Likewise.
3194
3195         rmdir: Support for mingw, MSVC 9.
3196         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3197         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3198
3199         getcwd: Tweak for MSVC 9.
3200         * lib/unistd.in.h: Update comments.
3201         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3202
3203 2011-09-22  Bruno Haible  <bruno@clisp.org>
3204
3205         strerror_r-posix: Avoid a link error on MSVC.
3206         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3207         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3208
3209 2011-09-22  Bruno Haible  <bruno@clisp.org>
3210
3211         select: Avoid link errors on MSVC.
3212         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3213         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3214         * modules/pselect (Link): Likewise.
3215         * NEWS: Mention the change.
3216         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3217         test-select-stdin against $(LIB_SELECT).
3218         * modules/pselect-tests (Makefile.am): Link test-pselect against
3219         $(LIB_SELECT).
3220
3221 2011-09-22  Bruno Haible  <bruno@clisp.org>
3222
3223         select: Avoid compilation error on MSVC.
3224         * lib/select.c: Don't include <stdbool.h>.
3225
3226 2011-09-21  Bruno Haible  <bruno@clisp.org>
3227
3228         Consolidate all uses of PATH_MAX in *.m4 files.
3229         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3230         macros.
3231         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3232         and gl_PATHMAX_SNIPPET.
3233         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3235         * modules/chdir-long (Files): Add m4/pathmax.m4.
3236         * modules/getcwd (Files): Likewise.
3237
3238 2011-09-21  Bruno Haible  <bruno@clisp.org>
3239
3240         ftruncate: Un-deprecate, concentrate on Win32 support.
3241         * modules/ftruncate (Status, Notice): Remove sections.
3242         (Depends-on): Add largefile.
3243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3244         non-mingw platforms.
3245         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3246         include <io.h>.
3247         * modules/perror-tests (Depends-on): Add ftruncate.
3248         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3249         'ftruncate' module.
3250
3251 2011-09-21  Bruno Haible  <bruno@clisp.org>
3252
3253         Add dependencies to new dirent related modules.
3254         * modules/opendir (Depends-on): Add closedir.
3255         * modules/getcwd (Depends-on): Add opendir, closedir.
3256         * modules/dirent-safer-tests (Depends-on): Likewise.
3257         * modules/fdopendir-tests (Depends-on): Likewise.
3258         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3259         * modules/renameat-tests (Depends-on): Likewise.
3260
3261 2011-09-21  Bruno Haible  <bruno@clisp.org>
3262
3263         opendir: Avoid compilation error on mingw.
3264         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3265         * modules/opendir (Depends-on): Add unistd.
3266
3267 2011-09-21  Bruno Haible  <bruno@clisp.org>
3268
3269         ftruncate tests: Avoid a test failure on mingw.
3270         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3271
3272 2011-09-21  Bruno Haible  <bruno@clisp.org>
3273
3274         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3275         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3276         native Windows.
3277
3278 2011-09-21  Bruno Haible  <bruno@clisp.org>
3279
3280         New module 'fdopen'.
3281         * lib/stdio.in.h (fdopen): New declaration.
3282         * lib/fdopen.c: New file.
3283         * m4/fdopen.m4: New file.
3284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3285         REPLACE_FDOPEN.
3286         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3287         REPLACE_FDOPEN.
3288         * modules/fdopen: New file.
3289         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3290         * tests/test-stdio-c++.cc: Check signature of fdopen.
3291         * doc/posix-functions/fdopen.texi: Mention the new module.
3292
3293 2011-09-21  Bruno Haible  <bruno@clisp.org>
3294
3295         unlockpt tests: Avoid test failure on NetBSD 5.1.
3296         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3297         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3298
3299 2011-09-21  Bruno Haible  <bruno@clisp.org>
3300
3301         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3302         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3303         * tests/test-getlogin_r.c (main): Likewise.
3304
3305 2011-09-20  Bruno Haible  <bruno@clisp.org>
3306
3307         time tests: Don't require pid_t.
3308         * doc/posix-headers/time.texi: Revert last change.
3309         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3310         * tests/test-time.c: Comment out the check for pid_t.
3311
3312 2011-09-20  Bruno Haible  <bruno@clisp.org>
3313
3314         fsync tests: Avoid a test failure on mingw.
3315         * tests/test-fsync.c (main): Allow a failure with EIO.
3316
3317 2011-09-20  Bruno Haible  <bruno@clisp.org>
3318
3319         euidaccess: Update comments.
3320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3321
3322 2011-09-20  Bruno Haible  <bruno@clisp.org>
3323
3324         Ensure EBADF returns for socket functions on mingw.
3325         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3326         descriptor is invalid.
3327         * lib/bind.c (rpl_bind): Likewise.
3328         * lib/connect.c (rpl_connect): Likewise.
3329         * lib/getpeername.c (rpl_getpeername): Likewise.
3330         * lib/getsockname.c (rpl_getsockname): Likewise.
3331         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3332         * lib/listen.c (rpl_listen): Likewise.
3333         * lib/recv.c (rpl_recv): Likewise.
3334         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3335         * lib/send.c (rpl_send): Likewise.
3336         * lib/sendto.c (rpl_sendto): Likewise.
3337         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3338         * lib/shutdown.c (rpl_shutdown): Likewise.
3339
3340 2011-09-20  Bruno Haible  <bruno@clisp.org>
3341
3342         select tests: EBADF tests.
3343         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3344         test_bad_fd): New functions.
3345         (test_function): Invoke also test_bad_fd.
3346
3347 2011-09-20  Bruno Haible  <bruno@clisp.org>
3348
3349         Tests for module 'posix_spawn_file_actions_addopen.
3350         * modules/posix_spawn_file_actions_addopen-tests: New file.
3351         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3352
3353         Tests for module 'posix_spawn_file_actions_adddup2'.
3354         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3355         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3356
3357         Tests for module 'posix_spawn_file_actions_addclose'.
3358         * modules/posix_spawn_file_actions_addclose-tests: New file.
3359         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3360
3361 2011-09-20  Bruno Haible  <bruno@clisp.org>
3362
3363         Tests for module 'unlockpt'.
3364         * modules/unlockpt-tests: New file.
3365         * tests/test-unlockpt.c: New file.
3366         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3367
3368         Tests for module 'grantpt'.
3369         * modules/grantpt-tests: New file.
3370         * tests/test-grantpt.c: New file.
3371         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3372
3373 2011-09-20  Bruno Haible  <bruno@clisp.org>
3374
3375         freopen tests: EBADF tests.
3376         * tests/test-freopen.c: Include errno.h, unistd.h.
3377         (main): Add tests for EBADF, commented out for the moment.
3378
3379         fclose tests: EBADF tests.
3380         * tests/test-fclose.c (main): Add tests for EBADF.
3381
3382         fflush tests: EBADF tests.
3383         * tests/test-fflush.c: Include errno.h, macros.h.
3384         (main): Add tests for EBADF.
3385
3386         ftello tests: EBADF tests.
3387         * tests/test-ftello4.sh: New file.
3388         * tests/test-ftello4.c: New file.
3389         * modules/ftello-tests (Files): Add them.
3390         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3391
3392         fseeko tests: EBADF tests.
3393         * tests/test-fseeko4.sh: New file.
3394         * tests/test-fseeko4.c: New file.
3395         * modules/fseeko-tests (Files): Add them.
3396         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3397
3398         Tests for function fputc().
3399         * modules/fputc-tests: New file.
3400         * tests/test-fputc.c: New file.
3401         * modules/stdio-tests (Depends-on): Add fputc-tests.
3402
3403         Tests for function fgetc().
3404         * modules/fgetc-tests: New file.
3405         * tests/test-fgetc.c: New file.
3406         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3407
3408         Tests for function fdopen().
3409         * modules/fdopen-tests: New file.
3410         * tests/test-fdopen.c: New file.
3411         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3412
3413         Tests for module 'vdprintf'.
3414         * modules/vdprintf-tests: New file.
3415         * tests/test-vdprintf.c: New file.
3416
3417         Tests for module 'dprintf'.
3418         * modules/dprintf-tests: New file.
3419         * tests/test-dprintf.c: New file.
3420
3421 2011-09-20  Bruno Haible  <bruno@clisp.org>
3422
3423         Tests for module 'ioctl'.
3424         * modules/ioctl-tests: New file.
3425         * tests/test-ioctl.c: New file.
3426
3427 2011-09-20  Bruno Haible  <bruno@clisp.org>
3428
3429         fcntl tests: EBADF tests.
3430         * tests/test-fcntl.c (main): Add more tests for EBADF.
3431
3432 2011-09-20  Bruno Haible  <bruno@clisp.org>
3433
3434         utimensat tests: EBADF tests.
3435         * tests/test-utimensat.c (main): Add tests for EBADF.
3436
3437         renameat tests: EBADF tests.
3438         * tests/test-renameat.c (main): Add tests for EBADF.
3439
3440         mkfifoat tests: EBADF tests.
3441         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3442
3443         readlinkat tests: EBADF tests.
3444         * tests/test-readlinkat.c (main): Add tests for EBADF.
3445
3446         symlinkat tests: EBADF tests.
3447         * tests/test-symlinkat.c (main): Add tests for EBADF.
3448
3449         linkat tests: EBADF tests.
3450         * tests/test-linkat.c (main): Add tests for EBADF.
3451
3452         Tests for module 'faccessat'.
3453         * modules/faccessat-tests: New file.
3454         * tests/test-faccessat.c: New file.
3455
3456         fdopendir tests: EBADF tests.
3457         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3458
3459         openat tests: EBADF tests.
3460         * tests/test-fchownat.c (main): Add tests for EBADF.
3461         * tests/test-fstatat.c (main): Likewise.
3462         * tests/test-mkdirat.c (main): Likewise.
3463         * tests/test-openat.c (main): Likewise.
3464         * tests/test-unlinkat.c (main): Likewise.
3465         * tests/test-fchmodat.c: New file.
3466         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3467         (Makefile.am): Also run 'test-fchmodat'.
3468
3469 2011-09-20  Bruno Haible  <bruno@clisp.org>
3470
3471         utimens, futimens, fdutimensat tests: EBADF tests.
3472         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3473
3474         Tests for function fstat().
3475         * modules/fstat-tests: New file.
3476         * tests/test-fstat.c: New file.
3477         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3478
3479 2011-09-20  Bruno Haible  <bruno@clisp.org>
3480
3481         test-ttyname_r tests: EBADF tests.
3482         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3483
3484         Tests for module 'isatty'.
3485         * modules/isatty-tests: New file.
3486         * tests/test-isatty.c: New file.
3487
3488         Tests for module 'write'.
3489         * modules/write-tests: New file.
3490         * tests/test-write.c: New file.
3491
3492         Tests for module 'read'.
3493         * modules/read-tests: New file.
3494         * tests/test-read.c: New file.
3495
3496         pwrite tests: EBADF tests.
3497         * tests/test-pwrite.c (main): Add tests for EBADF.
3498
3499         pread tests: EBADF tests.
3500         * tests/test-pread.c (main): Add tests for EBADF.
3501
3502         lseek tests: EBADF tests.
3503         * tests/test-lseek.c (main): Add more tests for EBADF.
3504
3505         Tests for module 'ftruncate'.
3506         * modules/ftruncate-tests: New file.
3507         * tests/test-ftruncate.sh: New file.
3508         * tests/test-ftruncate.c: New file.
3509
3510         fsync tests: EBADF tests.
3511         * tests/test-fsync.c (main): Add more tests for EBADF.
3512
3513         fdatasync tests: EBADF tests.
3514         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3515
3516         Tests for module 'fchown'.
3517         * modules/fchown-tests: New file.
3518         * tests/test-fchown.c: New file.
3519
3520         Tests for module 'fchmod'.
3521         * modules/fchmod-tests: New file.
3522         * tests/test-fchmod.c: New file.
3523
3524         fchdir tests: EBADF tests.
3525         * tests/test-fchdir.c (main): Add more tests for EBADF.
3526
3527         dup2 tests: EBADF tests.
3528         * tests/test-dup2.c (main): Add more tests for EBADF.
3529
3530         Tests for module 'dup'.
3531         * modules/dup-tests: New file.
3532         * tests/test-dup.c: New file.
3533
3534         Tests for module 'close'.
3535         * modules/close-tests: New file.
3536         * tests/test-close.c: New file.
3537
3538 2011-09-20  Bruno Haible  <bruno@clisp.org>
3539
3540         Tests for module 'shutdown'.
3541         * modules/shutdown-tests: New file.
3542         * tests/test-shutdown.c: New file.
3543
3544         Tests for module 'setsockopt'.
3545         * modules/setsockopt-tests: New file.
3546         * tests/test-setsockopt.c: New file.
3547
3548         Tests for module 'sendto'.
3549         * modules/sendto-tests: New file.
3550         * tests/test-sendto.c: New file.
3551
3552         Tests for module 'send'.
3553         * modules/send-tests: New file.
3554         * tests/test-send.c: New file.
3555
3556         Tests for module 'recvfrom'.
3557         * modules/recvfrom-tests: New file.
3558         * tests/test-recvfrom.c: New file.
3559
3560         Tests for module 'recv'.
3561         * modules/recv-tests: New file.
3562         * tests/test-recv.c: New file.
3563
3564         Tests for module 'listen'.
3565         * modules/listen-tests: New file.
3566         * tests/test-listen.c: New file.
3567
3568         Tests for module 'getsockopt'.
3569         * modules/getsockopt-tests: New file.
3570         * tests/test-getsockopt.c: New file.
3571
3572         Tests for module 'getsockname'.
3573         * modules/getsockname-tests: New file.
3574         * tests/test-getsockname.c: New file.
3575
3576         Tests for module 'getpeername'.
3577         * modules/getpeername-tests: New file.
3578         * tests/test-getpeername.c: New file.
3579
3580         Tests for module 'connect'.
3581         * modules/connect-tests: New file.
3582         * tests/test-connect.c: New file.
3583
3584         Tests for module 'bind'.
3585         * modules/bind-tests: New file.
3586         * tests/test-bind.c: New file.
3587
3588         accept4 tests: Fix for native Windows.
3589         * tests/test-accept4.c: Include sockets.h.
3590         (main): Invoke gl_sockets_startup.
3591         * modules/accept4-tests (Depends-on): Add sockets.
3592
3593         accept tests: Fix for native Windows.
3594         * tests/test-accept.c: Include sockets.h.
3595         (main): Invoke gl_sockets_startup.
3596         * modules/accept-tests (Depends-on): Add sockets.
3597
3598 2011-09-19  Bruno Haible  <bruno@clisp.org>
3599
3600         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3601         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3602         do...while(0).
3603         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3604         Suggested by Paul Eggert.
3605
3606 2011-09-19  Bruno Haible  <bruno@clisp.org>
3607
3608         sched: Ensure pid_t is defined.
3609         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3610         not define pid_t.
3611         * lib/sched.in.h: Include <sys/types.h>.
3612         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3614
3615 2011-09-19  Bruno Haible  <bruno@clisp.org>
3616
3617         msvc-inval: Ensure the entire expansion is a single statement.
3618         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3619         of braces.
3620
3621 2011-09-19  Jim Meyering  <meyering@redhat.com>
3622
3623         tests: use printf, not echo in init.sh's warn_ function
3624         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3625         misbehave when given strings containing a backslash or starting
3626         with e.g., -n.  James Youngman suggested setting IFS.
3627
3628 2011-09-19  Eric Blake  <eblake@redhat.com>
3629
3630         futimens: enhance test
3631         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3632         closed non-negative fd.
3633
3634         date: accept 'hence' as opposite of 'ago'
3635         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3636         * tests/test-parse-datetime.c (main): Enhance test.
3637         Suggested by Jesse Wilson.
3638
3639 2011-09-19  Jim Meyering  <meyering@redhat.com>
3640
3641         getcwd: don't fail in a deep directory on a system without openat
3642         Before this change, getcwd would fail when called from a directory
3643         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3644         the non-openat implementation used "..", "../..", "../../..", etc.
3645         to access ancestor directories.  With too many, that string would
3646         be longer than PATH_MAX.
3647         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3648         using gnulib's openat replacement.
3649         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3650         we're using the replacement function.
3651
3652 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3653
3654         maint.mk: avoid warnings from perl about missing files
3655         * top/maint.mk (def_sym_regex): Ignore files listed in
3656         $(gl_other_headers_) that do not exist, say because a project
3657         does not use a corresponding module.
3658
3659 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3660
3661         stat: use pathmax.h only if needed
3662         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3663         This is better for Emacs, which does not have a mingw port and
3664         therefore can avoid the pathmax module.
3665
3666         utimens: remove dependency on dup2
3667         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3668         to work around the Linux kernel bug.
3669         * modules/utimens (Depends-on): Remove dup2.
3670
3671 2011-09-18  Bruno Haible  <bruno@clisp.org>
3672
3673         inet_ntop, inet_pton: Look for it also in libresolv.
3674         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3675         libnsl, search for it in libresolv.
3676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3677         Needed on Solaris 7.
3678
3679 2011-09-18  Bruno Haible  <bruno@clisp.org>
3680
3681         accept, accept4 tests: Avoid link error on Solaris.
3682         * modules/accept-tests (Makefile.am): Link test-accept against
3683         $(LIBSOCKET).
3684         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3685         $(LIBSOCKET).
3686
3687         accept4: Avoid link error on Solaris.
3688         * modules/accept4 (Link): New section.
3689
3690         socket functions: Avoid link errors on Solaris.
3691         * modules/accept (Depends-on): Add socketlib.
3692         (Link): New section.
3693         * modules/bind (Depends-on): Add socketlib.
3694         (Link): New section.
3695         * modules/connect (Depends-on): Add socketlib.
3696         (Link): New section.
3697         * modules/getpeername (Depends-on): Add socketlib.
3698         (Link): New section.
3699         * modules/getsockname (Depends-on): Add socketlib.
3700         (Link): New section.
3701         * modules/getsockopt (Depends-on): Add socketlib.
3702         (Link): New section.
3703         * modules/listen (Depends-on): Add socketlib.
3704         (Link): New section.
3705         * modules/recv (Depends-on): Add socketlib.
3706         (Link): New section.
3707         * modules/recvfrom (Depends-on): Add socketlib.
3708         (Link): New section.
3709         * modules/send (Depends-on): Add socketlib.
3710         (Link): New section.
3711         * modules/sendto (Depends-on): Add socketlib.
3712         (Link): New section.
3713         * modules/setsockopt (Depends-on): Add socketlib.
3714         (Link): New section.
3715         * modules/shutdown (Depends-on): Add socketlib.
3716         (Link): New section.
3717         * modules/socket (Depends-on): Add socketlib.
3718         (Link): New section.
3719
3720 2011-09-18  Bruno Haible  <bruno@clisp.org>
3721
3722         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3723         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3724         than 5 seconds.
3725         * modules/ptsname-tests (configure.ac): Test for alarm.
3726
3727 2011-09-18  Bruno Haible  <bruno@clisp.org>
3728
3729         posix_spawn_file_actions_add*: Fix module dependencies.
3730         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3731         posix_spawn_file_actions_init.
3732         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3733         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3734
3735 2011-09-18  Bruno Haible  <bruno@clisp.org>
3736
3737         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3738         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3739         * tests/test-renameat.c (main): Likewise.
3740
3741 2011-09-18  Bruno Haible  <bruno@clisp.org>
3742
3743         Tests for module 'accept4'.
3744         * modules/accept4-tests: New file.
3745         * tests/test-accept4.c: New file.
3746
3747 2011-09-18  Bruno Haible  <bruno@clisp.org>
3748
3749         Tests for module 'accept'.
3750         * modules/accept-tests: New file.
3751         * tests/test-accept.c: New file.
3752
3753 2011-09-18  Bruno Haible  <bruno@clisp.org>
3754
3755         dup2: Support for MSVC.
3756         * lib/dup2.c: Include msvc-inval.h.
3757         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3758         _get_osfhandle calls.
3759         * modules/dup2 (Depends-on): Add msvc-inval.
3760         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3761
3762         New module 'msvc-inval'.
3763         * lib/msvc-inval.h: New file.
3764         * lib/msvc-inval.c: New file.
3765         * m4/msvc-inval.m4: New file.
3766         * modules/msvc-inval: New file.
3767
3768 2011-09-17  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'pclose'.
3771         * modules/pclose-tests: New file.
3772
3773         New module 'pclose'.
3774         * lib/stdio.in.h (pclose): New declaration.
3775         * lib/pclose.c: New file.
3776         * m4/pclose.m4: New file.
3777         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3778         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3779         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3780         * modules/pclose: New file.
3781         * modules/popen-tests (Depends-on): Add pclose.
3782         * modules/popen-safer-tests (Depends-on): Likewise.
3783         * doc/posix-functions/pclose.texi: Mention the new module.
3784
3785 2011-09-17  Bruno Haible  <bruno@clisp.org>
3786
3787         popen: Support for MSVC.
3788         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3789         * lib/popen.c (popen): Provide alternate definition for native Windows.
3790         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3792         * modules/popen (Depends-on, configure.ac): Update condition.
3793         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3794         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3795         fixed.
3796
3797 2011-09-17  Bruno Haible  <bruno@clisp.org>
3798
3799         isnanl, isnand, isnanf: Work around MSVC bug.
3800         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3801
3802 2011-09-17  Bruno Haible  <bruno@clisp.org>
3803
3804         sys_socket tests: Fix recent mistake.
3805         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3806
3807 2011-09-17  Bruno Haible  <bruno@clisp.org>
3808
3809         putenv: Support for MSVC.
3810         * modules/putenv (Depends-on): Add environ.
3811         * lib/putenv.c (environ): Disable declaration.
3812         * lib/unistd.in.h: Update comment.
3813
3814 2011-09-17  Bruno Haible  <bruno@clisp.org>
3815
3816         math: Avoid macro redefinition warnings on MSVC.
3817         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3818         Undefine before redefining.
3819
3820 2011-09-17  Bruno Haible  <bruno@clisp.org>
3821
3822         doc: Mention functions which are declared as macros.
3823         * doc/posix-functions/*[fl].texi: Mention that some functions are
3824         defined as macros with arguments only.
3825
3826 2011-09-17  Bruno Haible  <bruno@clisp.org>
3827
3828         Add dependencies to new dirent related modules.
3829         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3830         * modules/fts (Depends-on): Likewise.
3831         * modules/glob (Depends-on): Likewise.
3832         * modules/savedir (Depends-on): Likewise.
3833         * modules/scandir (Depends-on): Likewise.
3834         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3835         * modules/fdopendir (Depends-on): Add opendir.
3836
3837 2011-09-17  Bruno Haible  <bruno@clisp.org>
3838
3839         inet_pton: Support for MSVC on Windows Vista or newer.
3840         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3841         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3842         HAVE_DECL_INET_PTON is defined.
3843         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3844         On platforms with <winsock2.h>, test whether inet_pton is declared in
3845         <ws2tcpip.h>. If so, arrange to replace it.
3846         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3847         REPLACE_INET_PTON.
3848         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3849         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3850         (Depends-on, configure.ac): Update condition.
3851         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3852
3853 2011-09-17  Bruno Haible  <bruno@clisp.org>
3854
3855         inet_ntop: Support for MSVC on Windows Vista or newer.
3856         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3857         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3858         HAVE_DECL_INET_NTOP is defined.
3859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3860         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3861         <ws2tcpip.h>. If so, arrange to replace it.
3862         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3863         REPLACE_INET_NTOP.
3864         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3865         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3866         (Depends-on, configure.ac): Update condition.
3867         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3868
3869 2011-09-16  Eric Blake  <eblake@redhat.com>
3870
3871         test-fsync: yet another enhancement
3872         * tests/test-fsync.c (main): Also test behavior on read-only text
3873         file.
3874
3875 2011-09-16  Bruno Haible  <bruno@clisp.org>
3876
3877         Enhance fsync, fdatasync tests.
3878         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3879         * tests/test-fdatasync.c (main): Likewise.
3880
3881 2011-09-16  Bruno Haible  <bruno@clisp.org>
3882
3883         Support for MSVC compiler: Ensure mode_t gets defined.
3884         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3885         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3887         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3888         * tests/test-fcntl-h.c: Check that mode_t is defined.
3889         * tests/test-sys_stat.c: Likewise.
3890         * tests/test-sys_types.c: Likewise.
3891         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3892         * doc/posix-headers/sys_stat.texi: Likewise.
3893         * doc/posix-headers/sys_types.texi: Likewise.
3894
3895 2011-09-16  Bruno Haible  <bruno@clisp.org>
3896
3897         sys_stat: Support for MSVC.
3898         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3899         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3900         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3901         MSVC.
3902
3903 2011-09-16  Bruno Haible  <bruno@clisp.org>
3904
3905         Support for MSVC compiler: Ensure off_t gets defined.
3906         * lib/unistd.in.h: Include <sys/types.h>.
3907         * tests/test-fcntl-h.c: Check that off_t is defined.
3908         * tests/test-sys_stat.c: Likewise.
3909         * tests/test-sys_types.c: Likewise.
3910
3911 2011-09-16  Eric Blake  <eblake@redhat.com>
3912
3913         fdatasync: port to Solaris
3914         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3915         * modules/fdatasync (Link): Document it.
3916         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3917
3918         fdatasync: port to MacOS X 10.7
3919         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3920         declared.
3921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3922         * modules/unistd (Makefile.am): Substitute it.
3923         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3924         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3925
3926         fdatasync: minor improvements
3927         * modules/fdatasync (Depends-on): Add condition for fsync.
3928         * lib/fdatasync.c (fdatasync): Add comment.
3929         * tests/test-unistd-c++.cc: Test fdatasync.
3930
3931         unistd: update refs to newer POSIX
3932         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3933         Suggested by Bruno Haible.
3934
3935         fdatasync: new module
3936         * modules/fsync (Description): Document difference to fdatasync.
3937         * modules/fdatasync: New module.
3938         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3939         * lib/fdatasync.c (fdatasync): Likewise.
3940         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3941         defaults.
3942         * modules/unistd (Makefile.am): Set witnesses.
3943         * lib/unistd.in.h (fdatasync): Declare.
3944         * MODULES.html.sh: Document it.
3945         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3946         * modules/fdatasync-tests: New test.
3947         * tests/test-fdatasync.c: Likewise.
3948
3949 2011-09-16  Eric Blake  <eblake@redhat.com>
3950
3951         test-fsync: enhance tests
3952         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3953         * tests/test-fsync.c (main): Enhance test.
3954
3955 2011-09-15  Bruno Haible  <bruno@clisp.org>
3956
3957         Support for MSVC compiler: Ensure ssize_t gets defined.
3958         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3959         * doc/posix-headers/stdio.texi: Likewise.
3960         * modules/stdio (Depends-on): Add ssize_t.
3961         * modules/sys_socket (Depends-on): Likewise.
3962         * modules/sys_types (Depends-on): Likewise.
3963         * modules/sys_uio (Depends-on): Likewise.
3964         * modules/unistd (Depends-on): Likewise.
3965         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3966         * tests/test-sys_types.c: Check that ssize_t is defined.
3967
3968 2011-09-14  Bruno Haible  <bruno@clisp.org>
3969
3970         Avoid using #, the m4 comment starter character, near brackets.
3971         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3972         delimiter character in sed expressions.
3973         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3974         Suggested by Eric Blake.
3975
3976         Properly quote AC_CHECK_DECLS' 4th argument.
3977         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3978         argument.
3979         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3980         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3982         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3983         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3984         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3986         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3987         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3989         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3990         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3991         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3992         * m4/isinf.m4 (gl_ISINF): Likewise.
3993         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3994         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3996         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3999         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4000         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4001         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4002         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4003         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4006         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4008         Reported by Eric Blake.
4009
4010         Properly quote AC_CHECK_DECL's 4th argument.
4011         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4012         argument.
4013         * m4/argp.m4 (gl_ARGP): Likewise.
4014         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4015         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4016         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4017         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4018         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4019         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4021         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4022         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4023         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4024         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4025         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4026         Reported by Eric Blake.
4027
4028 2011-09-14  Eric Blake  <eblake@redhat.com>
4029
4030         opendir: avoid compile warning
4031         * lib/opendir.c (includes): Always include errno.h.
4032         Reported by Tatsuro MATSUOKA.
4033
4034 2011-09-14  Jim Meyering  <meyering@redhat.com>
4035
4036         maint.mk: sc_tight_scope: propagate failure from sub-make
4037         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4038         Reported by Martin von Gagern.
4039
4040 2011-09-13  Bruno Haible  <bruno@clisp.org>
4041
4042         tempname: Support for MSVC.
4043         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4044         MSVC.
4045         * modules/tempname (Depends-on): Add fcntl-h.
4046
4047 2011-09-13  Bruno Haible  <bruno@clisp.org>
4048
4049         sys_time: Support for MSVC.
4050         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4051         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4052         include <winsock2.h>.
4053         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4054         function declarations that collide with POSIX.
4055         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4056         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4057
4058 2011-09-13  Bruno Haible  <bruno@clisp.org>
4059
4060         stat: Support for MSVC.
4061         * lib/stat.c: Include pathmax.h.
4062         * modules/stat (Depends-on): Add pathmax.
4063
4064         pathmax: Support for native Windows.
4065         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4066
4067 2011-09-12  Bruno Haible  <bruno@clisp.org>
4068
4069         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4070         * lib/dirent.in.h (struct dirent): New type.
4071         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4072         DT_WHT): New macros.
4073         (DIR): New type.
4074         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4075         (readdir, rewinddir): New declarations.
4076         * lib/dirent-private.h: New file.
4077         * lib/opendir.c: New file.
4078         * lib/readdir.c: New file.
4079         * lib/rewinddir.c: New file.
4080         * lib/closedir.c: New file.
4081         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4082         * m4/opendir.m4: New file.
4083         * m4/readdir.m4: New file.
4084         * m4/rewinddir.m4: New file.
4085         * m4/closedir.m4: New file.
4086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4087         REPLACE_CLOSEDIR here.
4088         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4089         readdir, rewinddir are declared.
4090         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4091         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4092         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4093         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4094         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4095         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4096         * modules/opendir: New file.
4097         * modules/readdir: New file.
4098         * modules/rewinddir: New file.
4099         * modules/closedir: New file.
4100         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4101         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4102         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4103         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4104         * NEWS: Mention the 'fchdir' change.
4105
4106 2011-09-11  Bruno Haible  <bruno@clisp.org>
4107
4108         asm-underscore.m4: Support for MSVC.
4109         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4110         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4111
4112 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4113
4114         Doc about crypt functions.
4115         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4116         needing for _GNU_SOURCE to get crypt.
4117         * doc/posix-functions/encrypt.texi: Likewise.
4118         * doc/posix-functions/setkey.texi: Likewise.
4119
4120 2011-09-11  Bruno Haible  <bruno@clisp.org>
4121
4122         doc: Update regarding MSVC 9.
4123         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4124         tested".
4125         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4126         * doc/posix-headers/*.texi: Likewise.
4127         * doc/pastposix-functions/*.texi: Likewise.
4128         * doc/glibc-functions/*.texi: Likewise.
4129         * doc/glibc-headers/*.texi: Likewise.
4130
4131 2011-09-11  Bruno Haible  <bruno@clisp.org>
4132
4133         unistd et al.: Don't assume <unistd.h> exists.
4134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4135         does not exist.
4136         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4137         exist. But include <stdlib.h>.
4138         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4139         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4140         symlink() does not exist.
4141         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4142         include <io.h> instead.
4143         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4145         include <direct.h> instead.
4146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4148         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4149         <io.h> instead.
4150         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4151         correctly if the system does not have hard links.
4152         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4153         <direct.h> instead.
4154         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4155         it when looking for function declarations.
4156         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4157         <direct.h> and <io.h> instead.
4158         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4159
4160 2011-09-11  Bruno Haible  <bruno@clisp.org>
4161
4162         strcase: Support for MSVC.
4163         * modules/strcase (Status, Notice): Remove obsoletion mark.
4164         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4165         * doc/posix-functions/strncasecmp.texi: Likewise.
4166
4167         strings: Don't assume <strings.h> exists.
4168         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4169         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4170         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4171         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4172
4173 2011-09-11  Bruno Haible  <bruno@clisp.org>
4174
4175         dirent: Don't assume <dirent.h> exists.
4176         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4177         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4178         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4179         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4180
4181 2011-09-11  Bruno Haible  <bruno@clisp.org>
4182
4183         Fix wint_t on MSVC.
4184         * lib/wchar.in.h (wint_t): On MSVC, override it.
4185         * lib/wctype.in.h (wint_t): Likewise.
4186         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4187         MSVC.
4188         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4189         * doc/posix-headers/wctype.texi: Likewise.
4190
4191 2011-09-11  Bruno Haible  <bruno@clisp.org>
4192
4193         sys_types: Fix typo.
4194         * lib/sys_types.in.h: Fix typo in comment.
4195         Reported by Paul Eggert.
4196
4197         Support for MSVC compiler: Ensure size_t gets defined.
4198         * modules/strings (Depends-on): Add 'sys_types'.
4199         * modules/sys_uio (Depends-on): Likewise.
4200         * lib/sys_uio.in.h: Update comment.
4201
4202         C++ tests for module 'sys_types'.
4203         * modules/sys_types-c++-tests: New file.
4204         * tests/test-sys_types-c++.cc: New file.
4205
4206         Tests for module 'sys_types'.
4207         * modules/sys_types-tests: New file.
4208         * tests/test-sys_types.c: New file.
4209
4210         New module 'sys_types'.
4211         * lib/sys_types.in.h: New file.
4212         * m4/sys_types_h.m4: New file.
4213         * modules/sys_types: New file.
4214         * doc/posix-headers/sys_types.texi: Mention the new module and the
4215         size_t problem on MSVC 9.
4216
4217 2011-09-11  Bruno Haible  <bruno@clisp.org>
4218
4219         Support for MSVC compiler: Avoid division by a literal 0.
4220         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4221         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4222         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4223         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4224         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4225         * tests/infinity.h: New file.
4226         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4227         on MSVC.
4228         * tests/test-ceilf1.c: Include infinity.h.
4229         (main): Use Infinityf.
4230         * tests/test-ceil1.c: Include infinity.h.
4231         (main): Use Infinityd.
4232         * tests/test-ceill.c: Include infinity.h.
4233         (main): Use Infinityl.
4234         * tests/test-dprintf-posix.c: Include infinity.h.
4235         (test_function): Use Infinityd.
4236         * tests/test-floorf1.c: Include infinity.h.
4237         (main): Use Infinityf.
4238         * tests/test-floor1.c: Include infinity.h.
4239         (main): Use Infinityd.
4240         * tests/test-floorl.c: Include infinity.h.
4241         (main): Use Infinityl.
4242         * tests/test-fprintf-posix.c: Include infinity.h.
4243         (test_function): Use Infinityd.
4244         * tests/test-frexp.c: Include infinity.h.
4245         (main): Use Infinityd.
4246         * tests/test-frexpl.c: Include infinity.h.
4247         (main): Use Infinityl.
4248         * tests/test-isfinite.c: Include infinity.h.
4249         (test_isfinitef): Use Infinityf.
4250         (test_isfinited): Use Infinityd.
4251         (test_isfinitel): Use Infinityl.
4252         * tests/test-isinf.c: Include infinity.h.
4253         (test_isinff): Use Infinityf.
4254         (test_isinfd): Use Infinityd.
4255         (test_isinfl): Use Infinityl.
4256         * tests/test-isnan.c: Include infinity.h.
4257         (test_float): Use Infinityf.
4258         (test_double): Use Infinityd.
4259         (test_long_double): Use Infinityl.
4260         * tests/test-isnanf.h: Include infinity.h.
4261         (main): Use Infinityf.
4262         * tests/test-isnand.h: Include infinity.h.
4263         (main): Use Infinityd.
4264         * tests/test-isnanl.h: Include infinity.h.
4265         (main): Use Infinityl.
4266         * tests/test-ldexpl.c: Include infinity.h.
4267         (main): Use Infinityl.
4268         * tests/test-printf-posix.h: Include infinity.h.
4269         (test_function): Use Infinityd.
4270         * tests/test-roundf1.c: Include infinity.h.
4271         (main): Use Infinityf.
4272         * tests/test-round1.c: Include infinity.h.
4273         (main): Use Infinityd.
4274         * tests/test-roundl.c: Include infinity.h.
4275         (main): Use Infinityl.
4276         * tests/test-signbit.c: Include infinity.h.
4277         (test_signbitf): Use Infinityf.
4278         (test_signbitd): Use Infinityd.
4279         (test_signbitl): Use Infinityl.
4280         * tests/test-snprintf-posix.h: Include infinity.h.
4281         (test_function): Use Infinityd, Infinityl.
4282         * tests/test-sprintf-posix.h: Include infinity.h.
4283         (test_function): Use Infinityd, Infinityl.
4284         * tests/test-truncf1.c: Include infinity.h.
4285         (main): Use Infinityf.
4286         * tests/test-trunc1.c: Include infinity.h.
4287         (main): Use Infinityd.
4288         * tests/test-truncl.c: Include infinity.h.
4289         (main): Use Infinityl.
4290         * tests/test-vasnprintf-posix.c: Include infinity.h.
4291         (test_function): Use Infinityd, Infinityl.
4292         * tests/test-vasprintf-posix.c: Include infinity.h.
4293         (test_function): Use Infinityd, Infinityl.
4294         * modules/ceilf-tests (Files): Add tests/infinity.h.
4295         * modules/ceil-tests (Files): Likewise.
4296         * modules/ceill-tests (Files): Likewise.
4297         * modules/dprintf-posix-tests (Files): Likewise.
4298         * modules/floorf-tests (Files): Likewise.
4299         * modules/floor-tests (Files): Likewise.
4300         * modules/floorl-tests (Files): Likewise.
4301         * modules/fprintf-posix-tests (Files): Likewise.
4302         * modules/frexp-tests (Files): Likewise.
4303         * modules/frexp-nolibm-tests (Files): Likewise.
4304         * modules/frexpl-tests (Files): Likewise.
4305         * modules/frexpl-nolibm-tests (Files): Likewise.
4306         * modules/isfinite-tests (Files): Likewise.
4307         * modules/isinf-tests (Files): Likewise.
4308         * modules/isnan-tests (Files): Likewise.
4309         * modules/isnanf-tests (Files): Likewise.
4310         * modules/isnanf-nolibm-tests (Files): Likewise.
4311         * modules/isnand-tests (Files): Likewise.
4312         * modules/isnand-nolibm-tests (Files): Likewise.
4313         * modules/isnanl-tests (Files): Likewise.
4314         * modules/isnanl-nolibm-tests (Files): Likewise.
4315         * modules/ldexpl-tests (Files): Likewise.
4316         * modules/printf-posix-tests (Files): Likewise.
4317         * modules/roundf-tests (Files): Likewise.
4318         * modules/round-tests (Files): Likewise.
4319         * modules/roundl-tests (Files): Likewise.
4320         * modules/signbit-tests (Files): Likewise.
4321         * modules/snprintf-posix-tests (Files): Likewise.
4322         * modules/sprintf-posix-tests (Files): Likewise.
4323         * modules/truncf-tests (Files): Likewise.
4324         * modules/trunc-tests (Files): Likewise.
4325         * modules/truncl-tests (Files): Likewise.
4326         * modules/vasnprintf-posix-tests (Files): Likewise.
4327         * modules/vasprintf-posix-tests (Files): Likewise.
4328         * modules/vdprintf-posix-tests (Files): Likewise.
4329         * modules/vfprintf-posix-tests (Files): Likewise.
4330         * modules/vprintf-posix-tests (Files): Likewise.
4331         * modules/vsnprintf-posix-tests (Files): Likewise.
4332         * modules/vsprintf-posix-tests (Files): Likewise.
4333         * modules/xprintf-posix-tests (Files): Likewise.
4334
4335 2011-09-11  Bruno Haible  <bruno@clisp.org>
4336
4337         Ensure pid_t gets defined.
4338         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4339         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4340         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4341         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4342         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4343         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4344         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4345         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4346         * tests/test-fcntl-h.c: Check that pid_t is defined.
4347         * tests/test-sched.c: Likewise.
4348         * tests/test-termios.c: Likewise.
4349         * tests/test-time.c: Likewise.
4350         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4351         * doc/posix-headers/signal.texi: Likewise.
4352         * doc/posix-headers/sys_types.texi: Likewise.
4353         * doc/posix-headers/time.texi: Likewise.
4354
4355 2011-09-11  Bruno Haible  <bruno@clisp.org>
4356
4357         acl: Fix compilation on Solaris 10 (older version).
4358         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4359         of ACE_EVERYONE.
4360         * lib/set-mode-acl.c (qset_acl): Likewise.
4361         Reported by Christian Jullien <eligis@orange.fr>.
4362
4363 2011-09-10  Bruno Haible  <bruno@clisp.org>
4364
4365         iconv, unsetenv: Add support for MSVC compiler.
4366         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4367         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4368
4369 2011-09-10  Bruno Haible  <bruno@clisp.org>
4370
4371         *printf: Add support for MSVC compiler.
4372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4373         handles the exception caused by the %n directive. When cross-compiling,
4374         guess no on native Windows.
4375         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4376         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4377         emulate it through vsnprintf.
4378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4379         * doc/posix-functions/dprintf.texi: Update documentation regarding
4380         MSVC 9.
4381         * doc/posix-functions/fprintf.texi: Likewise.
4382         * doc/posix-functions/printf.texi: Likewise.
4383         * doc/posix-functions/snprintf.texi: Likewise.
4384         * doc/posix-functions/sprintf.texi: Likewise.
4385         * doc/posix-functions/swprintf.texi: Likewise.
4386         * doc/posix-functions/vdprintf.texi: Likewise.
4387         * doc/posix-functions/vfprintf.texi: Likewise.
4388         * doc/posix-functions/vprintf.texi: Likewise.
4389         * doc/posix-functions/vsnprintf.texi: Likewise.
4390         * doc/posix-functions/vsprintf.texi: Likewise.
4391         * doc/glibc-functions/asprintf.texi: Likewise.
4392         * doc/glibc-functions/obstack_printf.texi: Likewise.
4393         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4394         * doc/glibc-functions/vasprintf.texi: Likewise.
4395
4396 2011-09-10  Bruno Haible  <bruno@clisp.org>
4397
4398         nocrash: Add support for native Windows.
4399         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4400
4401 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4402             Bruno Haible  <bruno@clisp.org>
4403
4404         absolute-header, include-next: Add support for MSVC compiler.
4405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4406         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4407         directory separator in #line directives.
4408         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4409         recognize also backslash as directory separator in #line directives.
4410
4411 2011-09-08  Jim Meyering  <meyering@redhat.com>
4412
4413         maint.mk: mark the post-release commit log with "maint: " prefix
4414         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4415         one-line commit-log summary.
4416
4417 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4418             Bruno Haible  <bruno@clisp.org>
4419
4420         Doc about crypt functions.
4421         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4422         systems.
4423         * doc/posix-functions/encrypt.texi: Likewise.
4424         * doc/posix-functions/setkey.texi: Likewise.
4425
4426 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4427
4428         * lib/gc.h: Fix copyright header.
4429
4430 2011-09-07  Bruno Haible  <bruno@clisp.org>
4431
4432         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4433         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4434         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4435
4436 2011-09-07  Bruno Haible  <bruno@clisp.org>
4437
4438         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4439         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4440         * lib/freopen.c: Likewise.
4441         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4442         * lib/lstat.c: Likewise.
4443         * lib/stat.c: Likewise.
4444         * lib/open.c: Use different syntax for include of <fcntl.h>.
4445         * lib/openat.c: Include fcntl.h again, explicitly.
4446
4447 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4448
4449         parse-datetime: document the newly accepted format
4450         * doc/parse-datetime.texi (Combined date and time of day items):
4451         New section.
4452
4453 2011-09-06  Bruno Haible  <bruno@clisp.org>
4454
4455         acl: Fix a test failure on newer Solaris 10 with ZFS.
4456         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4457         ENOSYS as no ACL.
4458         Reported by Jim Meyering.
4459
4460 2011-09-06  Bruno Haible  <bruno@clisp.org>
4461
4462         acl: Update for AIX >= 5.3 with NFS.
4463         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4464         ENOSYS as no ACL.
4465
4466         acl: Fix a test failure on AIX >= 5.3 with NFS.
4467         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4468         as no ACL.
4469
4470 2011-09-06  Bruno Haible  <bruno@clisp.org>
4471
4472         acl: Fix a test failure on IRIX 6.5 with NFS.
4473         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4474         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4475         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4476         * lib/copy-acl.c (qcopy_acl): Likewise.
4477
4478 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         openat: port to AIX 7.1 with large files
4481         AIX 7.1 does a "#define openat open64at" if large files are in use,
4482         so we can't simply #undef openat.  Use the orig_openat trick (similar
4483         to orig_open in lib/open.c) to work around the problem.  Problem
4484         reported by Kevin Brott for GNU tar, in the thread containing
4485         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4486         * lib/openat.c (__need_system_fcntl_h): Define first.
4487         Include <fcntl.h> and <sys/types.h> before undefining.
4488         (orig_openat) [HAVE_OPENAT]: New inline function.
4489         (openat) [HAVE_OPENAT]: Do not undef.
4490         (rpl_openat): Use orig_openat, not openat.
4491
4492 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4493             Bruno Haible  <bruno@clisp.org>
4494
4495         acl: Avoid errors on NonStop Kernel.
4496         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4497         ENOTSUP errors.
4498
4499 2011-09-05  Bruno Haible  <bruno@clisp.org>
4500
4501         acl: Clean up Solaris code.
4502         * lib/acl-internal.h: Remove no-op #if.
4503         * lib/file-has-acl.c: Likewise.
4504         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4505         * lib/copy-acl.c (qcopy_acl): Likewise.
4506
4507 2011-09-05  Bruno Haible  <bruno@clisp.org>
4508
4509         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4510         binaries built on the original Solaris 10.
4511         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4512         trivial.
4513
4514 2011-09-05  Bruno Haible  <bruno@clisp.org>
4515
4516         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4517         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4518         10.
4519         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4520         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4521         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4522         instead of acl_get, facl_get, acl_set, facl_set.
4523
4524 2011-09-05  Bruno Haible  <bruno@clisp.org>
4525
4526         copy-file: Try unit tests on more file systems.
4527         * tests/test-copy-file-1.sh: New file.
4528         * tests/test-copy-file-2.sh: New file.
4529         * modules/copy-file-tests (Files): Add them.
4530         (Makefile.am): Add them to TESTS.
4531
4532         acl: Try unit tests on more file systems.
4533         * tests/test-file-has-acl-1.sh: New file.
4534         * tests/test-file-has-acl-2.sh: New file.
4535         * tests/test-set-mode-acl-1.sh: New file.
4536         * tests/test-set-mode-acl-2.sh: New file.
4537         * tests/test-copy-acl-1.sh: New file.
4538         * tests/test-copy-acl-2.sh: New file.
4539         * modules/acl-tests (Files): Add them.
4540         (Makefile.am): Add them to TESTS.
4541
4542 2011-09-04  Bruno Haible  <bruno@clisp.org>
4543
4544         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4545         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4546         10.
4547         (OLD_ALLOW, OLD_DENY): New macros.
4548         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4549         ACE_ACCESS_ALLOWED_ACE_TYPE.
4550         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4551         ACE_ACCESS_DENIED_ACE_TYPE.
4552         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4553         (NEW_ACE_EXECUTE): Fix value.
4554         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4555         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4556         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4557         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4558         NEW_ACE_SYNCHRONIZE): New macros.
4559         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4560         instead of acl_fromtext, acl_set, facl_set.
4561         Fixes a coreutils/tests/cp/perm failure.
4562
4563 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         openat: test for fstatat (..., 0) bug
4566         Further testing with tar suggests that fstatat (..., 0)
4567         does not work in general, on AIX 7.1; see
4568         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4569         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4570         replacement fstatat (which is what older AIX releases were using
4571         anyway).
4572         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4573         use is now changed to orig_fstatat.  This was probably the right
4574         thing to do anyway.
4575         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4576         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4577         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4578         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4579         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4580         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4581         if the bug is found.
4582
4583         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4584         This tests for another fstatat bug on AIX 7.1:
4585         fstatat (AT_FDCWD, ..., 0) does not work.  See
4586         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4587         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4588         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4589         (rpl_fstatat): Adjust so that it works around either (or both)
4590         bugs if present.
4591         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4592
4593 2011-09-03  Karl Berry  <karl@gnu.org>
4594
4595         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4596         in index entries.
4597
4598 2011-09-02  Bruno Haible  <bruno@clisp.org>
4599
4600         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4601         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4602         values of AR, ARFLAGS, RANLIB.
4603         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4604
4605 2011-09-02  Bruno Haible  <bruno@clisp.org>
4606
4607         Find 'ar' program that fits with --host argument.
4608         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4609
4610 2011-09-02  Bruno Haible  <bruno@clisp.org>
4611
4612         tests: init.sh: Support any non-GNU diff.
4613         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4614         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4615         Solaris 8.
4616
4617 2011-09-02  Bruno Haible  <bruno@clisp.org>
4618
4619         tests: init.sh: work also with any non-GNU diff that supports -u
4620         * tests/init.sh: Relax check for diff -u support.
4621         Rather than checking for GNU diff via --version, simply check
4622         for support for -u itself.  Useful at least on OpenBSD 4.9,
4623         AIX 7.1, IRIX 6.5, and Solaris 10.
4624
4625 2011-09-01  Bruno Haible  <bruno@clisp.org>
4626
4627         strtoimax, strtoumax: Document problem on HP-UX 11.
4628         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4629         * doc/posix-functions/strtoumax.texi: Likewise.
4630
4631 2011-09-01  Bruno Haible  <bruno@clisp.org>
4632
4633         strtoumax: Avoid link error on OSF/1 with DTK cc.
4634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4635         defined as a function.
4636         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4637         strtoumax is defined, not whether it is declared.
4638
4639 2011-09-01  Bruno Haible  <bruno@clisp.org>
4640
4641         strtoimax: Avoid link error on OSF/1 with DTK cc.
4642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4643         defined as a function.
4644         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4645         strtoimax is defined, not whether it is declared.
4646
4647 2011-09-01  Bruno Haible  <bruno@clisp.org>
4648
4649         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4650         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4651         as a function.
4652         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4653         whether it is declared.
4654
4655 2011-09-01  Bruno Haible  <bruno@clisp.org>
4656
4657         imaxabs: Avoid link error on OSF/1 with DTK cc.
4658         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4659         as a function.
4660         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4661         whether it is declared.
4662
4663 2011-09-01  Bruno Haible  <bruno@clisp.org>
4664
4665         Tests for module 'strtoumax'.
4666         * modules/strtoumax-tests: New file.
4667         * tests/test-strtoumax.c: New file.
4668
4669         Tests for module 'strtoimax'.
4670         * modules/strtoimax-tests: New file.
4671         * tests/test-strtoimax.c: New file.
4672
4673         Tests for module 'imaxdiv'.
4674         * modules/imaxdiv-tests: New file.
4675         * tests/test-imaxdiv.c: New file.
4676
4677         Tests for module 'imaxabs'.
4678         * modules/imaxabs-tests: New file.
4679         * tests/test-imaxabs.c: New file.
4680
4681 2011-09-01  Bruno Haible  <bruno@clisp.org>
4682
4683         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4685         pthread_create.
4686
4687 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4688
4689         openat: work around AIX 7.1 fstatat issue
4690         This should fix the problem that was not properly fixed
4691         in the previous change, dated 2011-08-30.
4692         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4693         __need_system_stat_h defined.
4694         (orig_fstatat) [HAVE_FSTATAT]: New function.
4695         (rpl_fstatat): Go back to the old way of doing things,
4696         except call orig_fstatat instead of fstatat.
4697         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4698         Remove unnecessary check whether fstatat fills in st_size etc.
4699
4700 2011-09-01  Bruno Haible  <bruno@clisp.org>
4701
4702         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4703         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4704         just include the system's header.
4705
4706 2011-08-31  Jim Meyering  <meyering@redhat.com>
4707
4708         tests: avoid spurious assertion failure in test-float.c on ppc64
4709         * tests/test-float.c (test_long_double): Comment out an assertion,
4710         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4711         with gcc-4.4.4.
4712
4713         maint: indent with spaces, not TABs
4714         I need to get in the habit of running gnulib's "make check".
4715         Both of these would have been caught.
4716         * m4/largefile.m4: Indent with spaces, not TABs.
4717         * lib/parse-datetime.y (iso_8601_time): Likewise.
4718         Spotted by Pádraig Brady.
4719
4720         test-parse-datetime.c: accommodate a relatively strict gcc warning
4721         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4722         to avoid a warning from gcc's -Werror=missing-declarations.
4723         Insert a few spaces-before-funcall-parenthesis.
4724
4725 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4726
4727         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4728         The parser now accepts ISO 8601 date-time strings with "T" as the
4729         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4730         with a space between the date and time strings.  Now it also parses
4731         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4732         variants like "2004-02-29T16:21:42.333-07:00"
4733         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4734         of day representation using the 'T' separator character.
4735         * doc/parse-datetime.texi (General date syntax): replace use of
4736         deprecated --iso-8601 option with --rfc-3339 in example of date
4737         command output formats that can be parsed.
4738         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4739         lib/parse-datetime.y.
4740         (gmt_offset): New function.
4741         (main): Add additional test cases to validate ISO8601 extended
4742         date and time of day parsing.
4743
4744 2011-08-31  Bruno Haible  <bruno@clisp.org>
4745
4746         freopen: Documentation.
4747         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4748         name.
4749         Reported by Claudio Bley <claudio.bley@gmail.com>.
4750
4751 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4752
4753         freopen: Don't crash if the filename argument is NULL.
4754         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4755         NULL.
4756
4757 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4758
4759         openat: work around AIX 7.1 fstatat bug
4760         Problem reported by Kevin Brott for GNU tar, in the thread containing
4761         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4762         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4763         FSTATAT_ST_SIZE_ETC_BROKEN.
4764         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4765         rpl_fstatat.
4766         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4767         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4768         AC_CHECK_FUNCS_ONCE for fstatat.
4769         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4770         fchmodat, mkdirat, openat and unlinkat.
4771
4772 2011-08-30  Bruno Haible  <bruno@clisp.org>
4773
4774         Avoid endless recursions if config.h includes some header files.
4775         * lib/fopen.c (__need_FILE): Define already before including config.h.
4776         * lib/freopen.c (__need_FILE): Likewise.
4777         * lib/open.c (__need_system_fcntl_h): Likewise.
4778         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4779         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4780         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4781
4782 2011-08-25  Karl Berry  <karl@gnu.org>
4783
4784         * config/srclist.txt (ylwrap): new try.
4785         * build-aux/ylwrap: new file.
4786
4787 2011-08-23  Bruno Haible  <bruno@clisp.org>
4788
4789         tmpdir: Use a good default directory on native Windows.
4790         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4791         (P_tmpdir): Default to _P_tmpdir on native Windows.
4792         (path_search): On native Windows, try the value returned by GetTempPath
4793         before trying P_tmpdir.
4794         * modules/tmpdir (Depends-on): Add pathmax.
4795         Suggested by John Darrington <john@darrington.wattle.id.au>.
4796
4797 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4798
4799         doc: fix typo in README-release
4800         * top/README-release: Capitalize first word of a sentence.
4801
4802 2011-08-19  Jim Meyering  <meyering@redhat.com>
4803
4804         fts: do not exhaust memory when processing million-entry directories
4805         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4806         directory would require about 256*N bytes of memory.  Thus, it was
4807         easy to construct a directory too large to be processed by any of
4808         those tools.  With this change, fts' maximum memory utilization is
4809         now limited to around 30MB.
4810         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4811         (fts_read): When we've processed the final entry (i.e., when
4812         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4813         using the parent entry to read any remaining entries.  Dispatch
4814         depending on what fts_build returns:
4815         - NULL+stop, aka failure: stop
4816         - NULL otherwise: move up in the dir hierarchy
4817         - non-NULL: handle this new entry
4818         (fts_build): Declare and use new local, continue_readdir.
4819         Prepare to be called from fts_read, when the entries
4820         from a partially-read directory have just been exhausted.
4821         In that case, we'll skip the opendir and instead use the parent's
4822         fts_dirp and derive dir_fd from that.
4823         Finally, in the readdir loop, if we read max_entries entries,
4824         exit the loop ensuring *not* to call closedir.  This is required
4825         so that fts_dirp can be reused on a subsequent call.
4826         Prompted by Ben England's report of memory exhaustion in find
4827         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4828
4829         maint: fts: move decl of `dp' down into while loop; split a long line
4830         * lib/fts.c (fts_build): No semantic change.
4831
4832         fts: add/use new struct member, fts_dirp
4833         We are about to use this to manage any directory with
4834         too many entries to read all of them into memory at once.
4835         To do that, we'll need to save the DIR* pointer in each
4836         affected FTSENT struct.
4837         * lib/fts_.h: Include <dirent.h>.
4838         (struct FTSENT) [fts_dirp]: New member.
4839         * lib/fts.c (closedir_and_clear): Define.
4840         Use it in place of closedir so that we are sure to
4841         clear the new fts_dirp member when done with it.
4842         (fts_alloc): Initialize the new member.
4843         (fts_lfree): Free, if needed.
4844
4845         maint: fts: give __opendir2 a new parameter and rename
4846         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4847         than surreptitiously using sole caller's "dir_fd".
4848         (fts_opendir): Rename from __opendir2.
4849
4850         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4851         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4852
4853         maint: fts.c: correct off-by-one indentation
4854         * lib/fts.c (fts_build): Correct indentation, change style
4855         of a couple of block comments, and bracing style.
4856
4857         maint: fts.c: move __opendir2 #define "up" out of function body
4858         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4859
4860         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4861         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4862         out for a long time and besides was useful only on BSD systems.
4863
4864 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         regex: port to Stratus OpenVOS
4867         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4868         define to empty, rather than attempting nonportable optimizations.
4869         Problem reported by Paul Green in:
4870         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4871         and fix suggested by Eric Blake in:
4872         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4873
4874 2011-08-17  Eric Blake  <eblake@redhat.com>
4875
4876         getcwd: fix test failures on mingw
4877         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4878         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4879         test if long directory cannot be created, and allow mingw errno.
4880
4881         getcwd-lgpl: fix m4 to match relaxed test for BSD
4882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4883         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4884         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4885         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4886         signature problem.
4887
4888         getcwd: fix compilation on mingw64
4889         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4890         getcwd.
4891         Reported by Marc-André Lureau.
4892
4893         pipe2: silence compiler warning
4894         * lib/pipe2.c (pipe2): Hide label if it is not used.
4895
4896 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4897
4898         relocatable-prog: fix link error
4899         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4900         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4901         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4902         into modules/relocatable-lib without noticing that
4903         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4904         also needs to build relocatable.c.
4905
4906 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4907
4908         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4910         shell code: it contained a 'break' that was not in a loop.
4911         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4912         via a shell-language loop; this may have been true in old Autoconf
4913         versions, but it's not true in Autoconf 2.68.  I found this bug
4914         when testing coreutils git on Solaris 8, whose shell complains
4915         about the syntax error.
4916
4917 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4918
4919         * lib/base64.c: Fix comment to reference RFC 4648.
4920         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4921         <gvtulder@gmail.com>.
4922
4923 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4924
4925         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4926
4927         po/Makefile.in.in: fix make -q problem
4928         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4929         rule, since there's no file named 'check-macro-version' and its
4930         use as a file breaks make -q.
4931         (all): Don't depend on check-macro-version.
4932         (CHECK_MACRO_VERSION): New macro.
4933         (stamp-po): Use it.
4934
4935         configmake: fix make -q problem
4936         * modules/configmake (configmake.h): Update configmake.h's time stamp
4937         even if the file does not change.  Otherwise, 'make -q' fails.
4938         Problem reported by Simon Josefsson in
4939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4940
4941 2011-08-11  Jim Meyering  <meyering@redhat.com>
4942
4943         git-version-gen: correct the advice in a comment
4944         * build-aux/git-version-gen: Correct comment.
4945         Don't recommend to list .tarball-version in .gitignore.
4946
4947 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4948
4949         base64: fix off-by-one buffer size bug
4950         Problem and (trivial) fix reported by Gijs van Tulder in
4951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4952         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4953         * tests/test-base64.c (main): Catch the bug.
4954
4955 2011-08-10  Eric Blake  <eblake@redhat.com>
4956
4957         closein: correct comments
4958         * lib/closein.c (close_stdin): Improve comments.
4959
4960 2011-08-09  Bruno Haible  <bruno@clisp.org>
4961
4962         More tests for 'fseeko'.
4963         * tests/test-fseeko3.c: New file, from Eric Blake.
4964         * tests/test-fseeko3.sh: New file.
4965         * modules/fseeko-tests (Files): Add them.
4966         (TESTS): Add test-fseeko3.sh.
4967         (check_PROGRAMS): Add test-fseeko3.
4968
4969 2011-08-09  Eric Blake  <eblake@redhat.com>
4970
4971         fseeko: remove unneeded hack
4972         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4973
4974         fseeko: fix bug on glibc
4975         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4976         Reported by John W. Eaton.
4977
4978 2011-08-08  Bruno Haible  <bruno@clisp.org>
4979
4980         unictype/base: Fix interoperability with preinstalled libunistring.
4981         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4982         Reported by Simon Josefsson.
4983
4984 2011-08-08  Bruno Haible  <bruno@clisp.org>
4985
4986         iswblank: Detect declaration correctly.
4987         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4988         AC_CHECK_DECLS invocation.
4989
4990 2011-08-08  Bruno Haible  <bruno@clisp.org>
4991
4992         tcgetsid: Detect declaration correctly.
4993         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4994         AC_CHECK_DECLS invocation.
4995         Reported by Simon Josefsson.
4996
4997 2011-08-08  Eric Blake  <eblake@redhat.com>
4998
4999         largefile: fix typo that regressed large file support
5000         * modules/largefile (configure.ac-early): Fix section name.
5001
5002 2011-08-06  Karl Berry  <karl@gnu.org>
5003
5004         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5005         a separate module.
5006
5007 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5008
5009         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5010         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5011         get prototype for free.
5012
5013 2011-08-04  Bruno Haible  <bruno@clisp.org>
5014
5015         Tests for module 'pathmax'.
5016         * modules/pathmax-tests: New file.
5017         * tests/test-pathmax.c: New file.
5018
5019         canonicalize-lgpl: Support larger filenames on the Hurd.
5020         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5021         Reported by Paul Eggert.
5022
5023         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5024         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5025         * lib/chdir-long.h: Include pathmax.h.
5026         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5027         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5028         (PATH_MAX): Remove code that is done by pathmax.h.
5029         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5030         * lib/tmpfile.c: Add a comment.
5031         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5032         * modules/chdir-long (Depends-on): Add pathmax.
5033         * modules/getcwd (Depends-on): Add pathmax.
5034         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5035         is not defined.
5036         * doc/posix-headers/limits.texi: Mention the pathmax module.
5037         * NEWS: Mention the change.
5038
5039 2011-08-02  Bruno Haible  <bruno@clisp.org>
5040
5041         pthread_sigmask: Actually use results of gl_THREADLIB.
5042         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5043         gl_THREADLIB, not gl_[]THREADLIB.
5044         Reported by Eric Blake.
5045
5046 2011-08-02  Jim Meyering  <meyering@redhat.com>
5047
5048         maint.mk: relax the default _gl_TS_function_match regexp
5049         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5050         space between function name and "(" in an "extern" declaration.
5051         That would fail to match a decl with no space there: extern void foo();
5052
5053 2011-07-31  Iain Nicol  <iain@thenicols.net>
5054
5055         git-version-gen: document that EXTRA_DIST must include .version
5056         * build-aux/git-version-gen: In the how-to-use comment, document
5057         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5058         will fail when run from an unpacked distribution tarball.
5059
5060 2011-08-01  Bruno Haible  <bruno@clisp.org>
5061
5062         wctype-h: Fix last change.
5063         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5064         REPLACE_TOWLOWER to 0.
5065         Reported by Sam Steingold <sds@gnu.org>.
5066
5067 2011-07-31  Bruno Haible  <bruno@clisp.org>
5068
5069         frexpl: Update autoconf test.
5070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5071         according to changes of 2011-06-20.
5072
5073 2011-07-31  Bruno Haible  <bruno@clisp.org>
5074
5075         sys_utsname: Add support for Minix.
5076         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5077         <sys/utsname.h>.
5078         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5079         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5080
5081 2011-07-31  Bruno Haible  <bruno@clisp.org>
5082
5083         strings: Add support for Minix.
5084         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5085         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5086         * doc/posix-headers/strings.texi: Document the Minix problem.
5087
5088 2011-07-31  Bruno Haible  <bruno@clisp.org>
5089
5090         wctype-h: Add support for Minix.
5091         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5092         REPLACE_TOWLOWER.
5093         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5094         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5095         REPLACE_ISWCNTRL.
5096
5097 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5100         This is a performance improvement for 64-bit hosts: it causes the
5101         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5102
5103 2011-07-31  Bruno Haible  <bruno@clisp.org>
5104
5105         stdioext: Add support for Minix.
5106         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5107         * lib/fpurge.c (fpurge): Likewise.
5108         * lib/freadahead.c (freadahead): Likewise.
5109         * lib/freadable.c (freadable): Likewise.
5110         * lib/freading.c (freading): Likewise.
5111         * lib/freadptr.c (freadptr): Likewise.
5112         * lib/freadseek.c (freadptrinc): Likewise.
5113         * lib/fseeko.c (rpl_fseeko): Likewise.
5114         * lib/fseterr.c (fseterr): Likewise.
5115         * lib/fwritable.c (fwritable): Likewise.
5116         * lib/fwriting.c (fwriting): Likewise.
5117         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5118         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5119
5120 2011-07-31  Bruno Haible  <bruno@clisp.org>
5121
5122         errno: Port to Minix.
5123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5124         ECONNABORTED are defined.
5125         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5126         GNULIB_defined_ECONNABORTED): New macros.
5127         * lib/strerror-override.h (strerror_override): Test also
5128         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5129         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5130         ECONNABORTED.
5131         * doc/posix-headers/errno.texi: Mention the Minix problem.
5132
5133 2011-07-31  Bruno Haible  <bruno@clisp.org>
5134
5135         Work around declaration collisions on Minix.
5136         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5137         defined, set REPLACE_MBSINIT.
5138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5139         defined, set REPLACE_MBRTOWC.
5140         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5141         set REPLACE_MBRLEN.
5142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5143         defined, set REPLACE_MBSRTOWCS.
5144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5145         defined, set REPLACE_WCRTOMB.
5146         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5147         defined, set REPLACE_WCSRTOMBS.
5148
5149 2011-07-31  Bruno Haible  <bruno@clisp.org>
5150
5151         Add support for Minix with ACK compiler.
5152         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5153         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5154         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5155
5156 2011-07-31  Bruno Haible  <bruno@clisp.org>
5157
5158         Documentation about Minix.
5159         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5160         * doc/glibc-headers/*.texi: Likewise.
5161         * doc/posix-functions/*.texi: Likewise.
5162         * doc/glibc-functions/*.texi: Likewise.
5163
5164 2011-07-31  Bruno Haible  <bruno@clisp.org>
5165
5166         snippet/warn-on-use: Fix indentation.
5167         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5168
5169 2011-07-25  Jim Meyering  <meyering@redhat.com>
5170
5171         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5172         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5173         commands.
5174
5175 2011-07-27  Jim Meyering  <meyering@redhat.com>
5176
5177         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5178         * top/maint.mk (gl_extract_significant_defines_): Now that
5179         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5180         gnulib/lib/signal.in.h, and now that we recommend to
5181         define-if-undefined those two symbols in application code,
5182         we must filter them out of the "significant" list.
5183         This avoids a "make syntax-check" failure in coreutils.
5184
5185 2011-07-26  Eric Blake  <eblake@redhat.com>
5186
5187         warnings: add comments about previous patch
5188         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5189         * m4/include_next.m4: Likewise.
5190         * m4/warn-on-use.m4: Likewise.
5191         * m4/warnings.m4: Likewise, and simplify use.
5192         Suggested by Stefano Lattarini.
5193
5194         include-next, warnings: support older autoconf
5195         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5196         AS_VAR_PUSHDEF in a way that works with older autoconf.
5197         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5198         Reported by Daniel P. Berrange.
5199
5200 2011-07-25  Bruno Haible  <bruno@clisp.org>
5201
5202         fseek, ftell: Fix doc.
5203         * doc/posix-functions/fseek.texi: Reword statement about
5204         AC_SYS_LARGEFILE.
5205         * doc/posix-functions/ftell.texi: Likewise.
5206
5207 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5208             Bruno Haible  <bruno@clisp.org>
5209
5210         Add dependencies to the 'largefile' module.
5211         * modules/fopen (Depends-on): Add 'largefile'.
5212         * modules/freopen (Depends-on): Likewise.
5213         * modules/fseeko (Depends-on): Likewise.
5214         * modules/ftello (Depends-on): Likewise.
5215         * modules/glob (Depends-on): Likewise.
5216         * modules/lseek (Depends-on): Likewise.
5217         * modules/lstat (Depends-on): Likewise.
5218         * modules/mkostemp (Depends-on): Likewise.
5219         * modules/mkostemps (Depends-on): Likewise.
5220         * modules/mkstemp (Depends-on): Likewise.
5221         * modules/mkstemps (Depends-on): Likewise.
5222         * modules/open (Depends-on): Likewise.
5223         * modules/openat (Depends-on): Likewise.
5224         * modules/pread (Depends-on): Likewise.
5225         * modules/pwrite (Depends-on): Likewise.
5226         * modules/scandir (Depends-on): Likewise.
5227         * modules/stat (Depends-on): Likewise.
5228         * modules/tmpfile (Depends-on): Likewise.
5229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5230         since the containing module now depends on the largefile module.
5231         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5232         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5233         off_t is fixed by gnulib.
5234         * doc/posix-functions/freopen.texi: Likewise.
5235         * doc/posix-functions/fseeko.texi: Likewise.
5236         * doc/posix-functions/fstatat.texi: Likewise.
5237         * doc/posix-functions/ftello.texi: Likewise.
5238         * doc/posix-functions/glob.texi: Likewise.
5239         * doc/posix-functions/lseek.texi: Likewise.
5240         * doc/posix-functions/lstat.texi: Likewise.
5241         * doc/posix-functions/mkstemp.texi: Likewise.
5242         * doc/posix-functions/open.texi: Likewise.
5243         * doc/posix-functions/openat.texi: Likewise.
5244         * doc/posix-functions/pread.texi: Likewise.
5245         * doc/posix-functions/pwrite.texi: Likewise.
5246         * doc/posix-functions/scandir.texi: Likewise.
5247         * doc/posix-functions/stat.texi: Likewise.
5248         * doc/posix-functions/tmpfile.texi: Likewise.
5249         * doc/glibc-functions/mkostemp.texi: Likewise.
5250         * doc/glibc-functions/mkostemps.texi: Likewise.
5251         * doc/glibc-functions/mkstemps.texi: Likewise.
5252
5253 2011-07-25  Bruno Haible  <bruno@clisp.org>
5254
5255         fcntl: Move AC_LIBOBJ invocation to module description.
5256         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5257         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5258
5259         fcntl: Remove call-in from fchdir.m4.
5260         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5262
5263         dup3: Remove potential call-in from fchdir.m4.
5264         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5266
5267         dup2: Move AC_LIBOBJ invocation to module description.
5268         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5269         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5270         Don't invoke AC_LIBOBJ.
5271         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5272
5273         dup2: Remove call-in from fchdir.m4.
5274         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5276
5277         fclose: Move AC_LIBOBJ invocation to module description.
5278         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5279         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5280         to 1.
5281         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5282
5283         fclose: Remove call-in from close.m4.
5284         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5285         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5286
5287         close: Move AC_LIBOBJ invocation to module description.
5288         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5289         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5290         1.
5291         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5292
5293         close: Remove call-in from fchdir.m4.
5294         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5296
5297         open: Move AC_LIBOBJ invocation to module description.
5298         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5299         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5300         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5301
5302         open: Remove call-in from fchdir.m4.
5303         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5305
5306         fchdir: Start to remove gl_REPLACE_* idiom.
5307         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5308         (gl_FUNC_FCHDIR): Invoke it.
5309
5310 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5311
5312         * lib/ftell.c (ftell): Comment out cast.
5313
5314         close: use gl_REPLACE_FCLOSE only if defined
5315         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5316         is defined.  The close module doesn't depend on the fclose module
5317         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5319         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5320
5321 2011-07-24  Jim Meyering  <meyering@redhat.com>
5322
5323         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5324         * tests/test-select.h (test_function): Declare as "static".
5325
5326 2011-07-24  Bruno Haible  <bruno@clisp.org>
5327
5328         doc: Mention the effects of AC_SYS_LARGEFILE.
5329         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5330         on this function.
5331         * doc/posix-functions/aio_error.texi: Likewise.
5332         * doc/posix-functions/aio_fsync.texi: Likewise.
5333         * doc/posix-functions/aio_read.texi: Likewise.
5334         * doc/posix-functions/aio_return.texi: Likewise.
5335         * doc/posix-functions/aio_suspend.texi: Likewise.
5336         * doc/posix-functions/aio_write.texi: Likewise.
5337         * doc/posix-functions/fgetpos.texi: Likewise.
5338         * doc/posix-functions/fopen.texi: Likewise.
5339         * doc/posix-functions/freopen.texi: Likewise.
5340         * doc/posix-functions/fsetpos.texi: Likewise.
5341         * doc/posix-functions/fstatvfs.texi: Likewise.
5342         * doc/posix-functions/ftruncate.texi: Likewise.
5343         * doc/posix-functions/ftw.texi: Likewise.
5344         * doc/posix-functions/getrlimit.texi: Likewise.
5345         * doc/posix-functions/glob.texi: Likewise.
5346         * doc/posix-functions/lio_listio.texi: Likewise.
5347         * doc/posix-functions/lockf.texi: Likewise.
5348         * doc/posix-functions/mkstemp.texi: Likewise.
5349         * doc/posix-functions/mmap.texi: Likewise.
5350         * doc/posix-functions/nftw.texi: Likewise.
5351         * doc/posix-functions/openat.texi: Likewise.
5352         * doc/posix-functions/opendir.texi: Likewise.
5353         * doc/posix-functions/posix_fadvise.texi: Likewise.
5354         * doc/posix-functions/posix_fallocate.texi: Likewise.
5355         * doc/posix-functions/pread.texi: Likewise.
5356         * doc/posix-functions/pwrite.texi: Likewise.
5357         * doc/posix-functions/readdir.texi: Likewise.
5358         * doc/posix-functions/readdir_r.texi: Likewise.
5359         * doc/posix-functions/rewinddir.texi: Likewise.
5360         * doc/posix-functions/scandir.texi: Likewise.
5361         * doc/posix-functions/seekdir.texi: Likewise.
5362         * doc/posix-functions/setrlimit.texi: Likewise.
5363         * doc/posix-functions/statvfs.texi: Likewise.
5364         * doc/posix-functions/telldir.texi: Likewise.
5365         * doc/posix-functions/tmpfile.texi: Likewise.
5366         * doc/posix-functions/truncate.texi: Likewise.
5367         * doc/glibc-functions/fallocate.texi: Likewise.
5368         * doc/glibc-functions/fstatfs.texi: Likewise.
5369         * doc/glibc-functions/fts_children.texi: Likewise.
5370         * doc/glibc-functions/fts_read.texi: Likewise.
5371         * doc/glibc-functions/getdirentries.texi: Likewise.
5372         * doc/glibc-functions/mkostemp.texi: Likewise.
5373         * doc/glibc-functions/mkostemps.texi: Likewise.
5374         * doc/glibc-functions/mkstemps.texi: Likewise.
5375         * doc/glibc-functions/preadv.texi: Likewise.
5376         * doc/glibc-functions/pwritev.texi: Likewise.
5377         * doc/glibc-functions/sendfile.texi: Likewise.
5378         * doc/glibc-functions/statfs.texi: Likewise.
5379
5380 2011-07-24  Bruno Haible  <bruno@clisp.org>
5381
5382         doc: Fix typo.
5383         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5384
5385 2011-07-24  Bruno Haible  <bruno@clisp.org>
5386
5387         doc: Mention fsusage.
5388         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5389
5390 2011-07-24  Bruno Haible  <bruno@clisp.org>
5391
5392         doc: Mention new glibc headers and functions.
5393         * doc/glibc-headers/gshadow.texi: New file.
5394         * doc/glibc-functions/endsgent.texi: New file.
5395         * doc/glibc-functions/fgetsgent.texi: New file.
5396         * doc/glibc-functions/fgetsgent_r.texi: New file.
5397         * doc/glibc-functions/getsgent.texi: New file.
5398         * doc/glibc-functions/getsgent_r.texi: New file.
5399         * doc/glibc-functions/getsgnam.texi: New file.
5400         * doc/glibc-functions/getsgnam_r.texi: New file.
5401         * doc/glibc-functions/putsgent.texi: New file.
5402         * doc/glibc-functions/setsgent.texi: New file.
5403         * doc/glibc-functions/sgetsgent.texi: New file.
5404         * doc/glibc-functions/sgetsgent_r.texi: New file.
5405         * doc/glibc-functions/malloc_info.texi: New file.
5406         * doc/glibc-functions/preadv.texi: New file.
5407         * doc/glibc-functions/pwritev.texi: New file.
5408         * doc/glibc-functions/register_printf_modifier.texi: New file.
5409         * doc/glibc-functions/register_printf_specifier.texi: New file.
5410         * doc/glibc-functions/register_printf_type.texi: New file.
5411         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5412         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5413         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5414         * doc/glibc-functions/pthread_getname_np.texi: New file.
5415         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5416         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5417         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5418         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5419         * doc/glibc-functions/pthread_setname_np.texi: New file.
5420         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5421         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5422         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5423         * doc/glibc-functions/qsort_r.texi: New file.
5424         * doc/glibc-functions/quick_exit.texi: New file.
5425         * doc/glibc-functions/syncfs.texi: New file.
5426         * doc/gnulib.texi: Include them.
5427         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5428         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5429         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5430         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5431         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5432         * doc/glibc-functions/execvpe.texi: Likewise.
5433
5434 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         ftell: don't include <unistd.h>
5437         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5438         guaranteed to define off_t, and the ftell module depends on the
5439         stdio module.
5440
5441         ftell: do not assume wraparound signed arithmetic
5442         * lib/ftell.c: Include <limits.h>.
5443         (ftell): Don't assume wraparound signed arithmetic.
5444
5445 2011-07-24  Bruno Haible  <bruno@clisp.org>
5446
5447         close: No longer depend on module 'fclose'.
5448         * modules/close (Depends-on): Remove fclose.
5449         * NEWS: Mention the change.
5450         Suggested by Sam Steingold <sds@gnu.org>.
5451
5452 2011-07-24  Bruno Haible  <bruno@clisp.org>
5453
5454         fsusage: Enable large volume support on AIX >= 5.2.
5455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5456         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5457         instead of STAT_STATVFS.
5458         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5459
5460         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5462         f_blocks field only on MacOS X.
5463
5464         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5466         * modules/fsusage (Depends-on): Add largefile.
5467
5468 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5469
5470         * README: Modernize discussion of signed integers.
5471         Assuming overflow wraparound is no longer safe.
5472         Mention ones' complement and signed magnitude.
5473
5474 2011-07-22  Bruno Haible  <bruno@clisp.org>
5475
5476         select tests, pselect tests: Refactor.
5477         * tests/test-select.h: New file, extracted from tests/test-select.c.
5478         (select_fn): New type.
5479         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5480         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5481         test_pipe): Add my_select argument.
5482         (test_function): Renamed from main. Add my_select argument.
5483         * tests/test-select.c: Move most code to tests/test-select.h. Include
5484         test-select.h.
5485         * modules/select-tests (Files): Add tests/test-select.h.
5486         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5487         (my_select, main): New functions.
5488         * modules/pselect-tests (Files): Add tests/test-select.h,
5489         tests/macros.h, tests/signature.h.
5490         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5491         (configure.ac): Check for <sys/wait.h>.
5492
5493 2011-07-22  Bruno Haible  <bruno@clisp.org>
5494
5495         sys_select tests: Check the signature of FD_*.
5496         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5497         signature tests from here...
5498         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5499         here.
5500         * modules/sys_select-tests (Files): Add tests/signature.h.
5501
5502 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5503
5504         largefile: new module, replacing large-inode
5505         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5506         * MODULES.html.sh: Add largefile, remove large-inode.
5507         * modules/largefile, m4/largefile.m4: New files.
5508         * modules/large-inode, m4/large-inode.m4: Remove.
5509
5510         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5511         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5512         implementations that use only 32 bits to count blocks.
5513         On typical hosts with 1024-byte blocks, this fails with file
5514         systems as small as 4 TiB.  Problem reported by Herb Wartens
5515         <http://debbugs.gnu.org/9140> and this should also fix a similar
5516         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5517
5518         large-inode: New module
5519         * MODULES.html.sh: Add it.
5520         * modules/large-inode, m4/large-inode.m4: New files.
5521
5522         extensions: Enable extensions on MacOS X 10.5 and later.
5523         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5524
5525 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5526
5527         file-has-acl: use acl_extended_file_nofollow if available
5528         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5529         (acl_extended_file): New macro.
5530         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5531         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5532
5533 2011-07-21  Bruno Haible  <bruno@clisp.org>
5534
5535         Declare system functions in a way that works with C++.
5536         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5537         declare fdopendir as extern "C".
5538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5539         declare frexpl as extern "C".
5540         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5541         declare gai_strerror as extern "C".
5542         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5543         programs, declare gai_strerror as extern "C".
5544         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5545         declare getlogin_r as extern "C".
5546         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5547         as extern "C".
5548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5549         declare ldexpl as extern "C".
5550         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5551         as extern "C".
5552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5553         program, declare getmntinfo as extern "C".
5554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5555         stpncpy as extern "C".
5556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5557         program, declare __xpg_strerror_r as extern "C".
5558         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5559         strndup as extern "C".
5560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5561         declare memset and bzero as extern "C".
5562         Reported by Sam Steingold <sds@gnu.org>.
5563
5564 2011-07-12  Jim Meyering  <meyering@redhat.com>
5565
5566         maint.mk: prohibit inclusion of "verify.h" without use
5567         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5568
5569 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5570
5571         timer-time: A new module to check for timer_settime()
5572         * m4/timer_time.m4: Check for the posix function.
5573         * modules/timer-time: Add the new module.
5574         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5575         Mention it.
5576
5577 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5578             Bruno Haible  <bruno@clisp.org>
5579
5580         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5582         not defined, assume POSIX threads and look for pthread_sigmask in
5583         $LIBS, without changing $CPPFLAGS.
5584
5585 2011-07-19  Bruno Haible  <bruno@clisp.org>
5586
5587         strstr: Update cross-compilation guess.
5588         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5589         CPUs, guess no, in view of glibc
5590         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5591         Suggested by Eric Blake. Reported by Reuben Thomas.
5592
5593 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5594
5595         getopt-gnu: suppress core dumps from detection code
5596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5597         to suppress core dumps that may well occur on glibc systems.
5598         * modules/getopt-gnu: Depend on nocrash.
5599
5600 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5601
5602         pthread_sigmask: ensure usleep is declared
5603         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5604         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5605
5606 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         doc: Document NonStop portability issues.
5609         * doc/posix-functions/sigaction.texi (sigaction):
5610         * doc/posix-headers/signal.texi (signal.h):
5611         Document NonStop.  See Joachim Schmitz in
5612         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5613
5614 2011-07-15  Bruno Haible  <bruno@clisp.org>
5615
5616         ffsl, ffsll: Avoid unportable behaviour.
5617         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5618
5619 2011-07-15  Bruno Haible  <bruno@clisp.org>
5620
5621         ffs: More tests.
5622         * tests/test-ffs.c (NBITS): New macro.
5623         (main): Add more tests.
5624         * tests/test-ffsl.c (NBITS): New macro.
5625         (main): Add more tests.
5626         * tests/test-ffsll.c (NBITS): New macro.
5627         (main): Add more tests.
5628
5629 2011-07-15  Eric Blake  <eblake@redhat.com>
5630
5631         ffsl, ffsll: new modules
5632         * modules/ffsl: New file.
5633         * modules/ffsll: Likewise.
5634         * m4/ffsl.m4: Likewise.
5635         * m4/ffsll.m4: Likewise.
5636         * lib/ffsl.c: Likewise.
5637         * lib/ffsl.h: Likewise.
5638         * lib/ffsll.c: Likewise.
5639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5640         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5641         * modules/string (Makefile.am): Substitute witnesses.
5642         * lib/strings.in.h (ffsl, ffsll): Declare.
5643         * modules/ffsl-tests: New test file.
5644         * modules/ffsll-tests: Likewise.
5645         * tests/test-ffsl.c: Likewise.
5646         * tests/test-ffsll.c: Likewise.
5647         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5648         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5649         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5650
5651         ffs: fix m4 prerequisite
5652         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5653
5654         ffs: avoid undefined behavior
5655         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5656         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5657         Reported by Bruno Haible.
5658
5659 2011-07-12  Bruno Haible  <bruno@clisp.org>
5660
5661         pthread_sigmask: Rely on module 'threadlib'.
5662         * modules/pthread_sigmask (Depends-on): Add threadlib.
5663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5664         is defined.
5665
5666 2011-07-12  Bruno Haible  <bruno@clisp.org>
5667
5668         regex: Depend on module 'strcase'.
5669         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5670
5671 2011-07-12  Jim Meyering  <meyering@redhat.com>
5672
5673         warn-on-use: fix typo in file name
5674         * modules/snippet/warn-on-use (Files): Correct file name:
5675         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5676
5677 2011-07-12  Bruno Haible  <bruno@clisp.org>
5678
5679         strings: Document module.
5680         * doc/posix-headers/strings.texi: Mention module 'strings'.
5681
5682 2011-07-12  Bruno Haible  <bruno@clisp.org>
5683
5684         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5685         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5686         (Files, Makefile.am): Update.
5687         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5688         * modules/stdlib (Depends-on): Update.
5689
5690 2011-07-12  Bruno Haible  <bruno@clisp.org>
5691
5692         * NEWS: Mention the changes.
5693
5694         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5695         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5696         (Files, Makefile.am): Update.
5697         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5698         * modules/arpa_inet (Depends-on): Update.
5699         * modules/ctype (Depends-on): Update.
5700         * modules/dirent (Depends-on): Update.
5701         * modules/fcntl-h (Depends-on): Update.
5702         * modules/glob (Depends-on): Update.
5703         * modules/iconv-h (Depends-on): Update.
5704         * modules/inttypes-incomplete (Depends-on): Update.
5705         * modules/langinfo (Depends-on): Update.
5706         * modules/locale (Depends-on): Update.
5707         * modules/math (Depends-on): Update.
5708         * modules/netdb (Depends-on): Update.
5709         * modules/poll-h (Depends-on): Update.
5710         * modules/pty (Depends-on): Update.
5711         * modules/search (Depends-on): Update.
5712         * modules/signal (Depends-on): Update.
5713         * modules/spawn (Depends-on): Update.
5714         * modules/stdio (Depends-on): Update.
5715         * modules/stdlib (Depends-on): Update.
5716         * modules/string (Depends-on): Update.
5717         * modules/strings (Depends-on): Update.
5718         * modules/sys_file (Depends-on): Update.
5719         * modules/sys_ioctl (Depends-on): Update.
5720         * modules/sys_select (Depends-on): Update.
5721         * modules/sys_socket (Depends-on): Update.
5722         * modules/sys_stat (Depends-on): Update.
5723         * modules/sys_time (Depends-on): Update.
5724         * modules/sys_times (Depends-on): Update.
5725         * modules/sys_utsname (Depends-on): Update.
5726         * modules/sys_wait (Depends-on): Update.
5727         * modules/termios (Depends-on): Update.
5728         * modules/time (Depends-on): Update.
5729         * modules/unistd (Depends-on): Update.
5730         * modules/wchar (Depends-on): Update.
5731         * modules/wctype-h (Depends-on): Update.
5732         * MODULES.html.sh (Support for building libraries and executables):
5733         Update.
5734
5735         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5736         * modules/snippet/unused-parameter: Renamed from
5737         modules/unused-parameter.
5738         (Files, Makefile.am): Update.
5739         * build-aux/snippet/unused-parameter.h: Renamed from
5740         build-aux/unused-parameter.h.
5741         * modules/selinux-h (Depends-on): Update.
5742         * modules/unistr/base (Depends-on): Update.
5743         * MODULES.html.sh (Core language properties): Update.
5744
5745         Rename module 'link-warning' to 'snippet/link-warning'.
5746         * modules/snippet/link-warning: Renamed from modules/link-warning.
5747         (Files, Makefile.am): Update.
5748         * build-aux/snippet/link-warning.h: Renamed from
5749         build-aux/link-warning.h.
5750         * MODULES.html.sh (Support for building libraries and executables):
5751         Update.
5752
5753         Rename module 'c++defs' to 'snippet/c++defs'.
5754         * modules/snippet/c++defs: Renamed from modules/c++defs.
5755         (Files, Makefile.am): Update.
5756         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5757         * modules/arpa_inet (Depends-on): Update.
5758         * modules/ctype (Depends-on): Update.
5759         * modules/dirent (Depends-on): Update.
5760         * modules/fcntl-h (Depends-on): Update.
5761         * modules/glob (Depends-on): Update.
5762         * modules/iconv-h (Depends-on): Update.
5763         * modules/langinfo (Depends-on): Update.
5764         * modules/locale (Depends-on): Update.
5765         * modules/math (Depends-on): Update.
5766         * modules/netdb (Depends-on): Update.
5767         * modules/poll-h (Depends-on): Update.
5768         * modules/pty (Depends-on): Update.
5769         * modules/search (Depends-on): Update.
5770         * modules/signal (Depends-on): Update.
5771         * modules/spawn (Depends-on): Update.
5772         * modules/stdio (Depends-on): Update.
5773         * modules/stdlib (Depends-on): Update.
5774         * modules/string (Depends-on): Update.
5775         * modules/strings (Depends-on): Update.
5776         * modules/sys_ioctl (Depends-on): Update.
5777         * modules/sys_select (Depends-on): Update.
5778         * modules/sys_socket (Depends-on): Update.
5779         * modules/sys_stat (Depends-on): Update.
5780         * modules/sys_time (Depends-on): Update.
5781         * modules/sys_wait (Depends-on): Update.
5782         * modules/termios (Depends-on): Update.
5783         * modules/time (Depends-on): Update.
5784         * modules/unistd (Depends-on): Update.
5785         * modules/wchar (Depends-on): Update.
5786         * modules/wctype-h (Depends-on): Update.
5787
5788         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5789         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5790         (Files, Makefile.am): Update.
5791         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5792         * modules/argv-iter (Depends-on): Update.
5793         * modules/arpa_inet (Depends-on): Update.
5794         * modules/dirent (Depends-on): Update.
5795         * modules/fcntl-h (Depends-on): Update.
5796         * modules/fnmatch (Depends-on): Update.
5797         * modules/getopt-posix (Depends-on): Update.
5798         * modules/glob (Depends-on): Update.
5799         * modules/iconv-h (Depends-on): Update.
5800         * modules/inttypes-incomplete (Depends-on): Update.
5801         * modules/locale (Depends-on): Update.
5802         * modules/math (Depends-on): Update.
5803         * modules/netdb (Depends-on): Update.
5804         * modules/search (Depends-on): Update.
5805         * modules/signal (Depends-on): Update.
5806         * modules/spawn (Depends-on): Update.
5807         * modules/stdio (Depends-on): Update.
5808         * modules/stdlib (Depends-on): Update.
5809         * modules/string (Depends-on): Update.
5810         * modules/strings (Depends-on): Update.
5811         * modules/sys_socket (Depends-on): Update.
5812         * modules/sys_stat (Depends-on): Update.
5813         * modules/sys_time (Depends-on): Update.
5814         * modules/sys_times (Depends-on): Update.
5815         * modules/sys_utsname (Depends-on): Update.
5816         * modules/time (Depends-on): Update.
5817         * modules/unistd (Depends-on): Update.
5818         * modules/wchar (Depends-on): Update.
5819         * MODULES.html.sh (Support for building libraries and executables):
5820         Update.
5821
5822 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5823
5824         Improvements on _Noreturn and related modules.
5825
5826         modules/_Exit-tests: test _Noreturn too
5827         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5828         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5829         (main): Use them.
5830
5831         stdnoreturn, stdnoreturn-tests: remove modules
5832         They're not needed here and a bit premature for use elsewhere.  See
5833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5834         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5835         * tests/test-stdnoreturn.c: Remove files.
5836         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5837         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5838         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5839         and using noreturn.
5840         * modules/openat, modules/sigpipe-die, modules/xalloc:
5841         * modules/xmemdup0, modules/xstrtol:
5842         Remove dependency on stdnoreturn.
5843
5844         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5845         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5846         Reparenthesize to avoid GCC warning.
5847         Support Microsoft's syntax.
5848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5849
5850         _Noreturn-tests: remove module
5851         * modules/_Noreturn-tests: Remove.
5852         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5853         * tests/test-_Noreturn.c: Remove.
5854         * tests/test-stdnoreturn.c: Merge from the old
5855         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5856
5857 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         _Noreturn, stdnoreturn, and related modules.
5860
5861         * top/maint.mk: Adjust to new noreturn support.
5862         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5863         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5864
5865         xalloc: use stdnoreturn.h
5866         * lib/xalloc.h: Include <stdnoreturn.h>.
5867         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5868         * modules/xalloc (Depends-on): Add stdnoreturn.
5869
5870         xstrtol: use stdnoreturn.h
5871         * lib/xstrtol.h: Include <stdnoreturn.h>.
5872         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5873         * modules/xstrtol (Depends-on): Add stdnoreturn.
5874
5875         xmemdup0: use stdnoreturn.h
5876         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5877         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5878         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5879
5880         sigpipe-die: use stdnoreturn.h
5881         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5882         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5883         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5884
5885         openat: use stdnoreturn.h
5886         * lib/openat.h: Include <stdnoreturn.h>.
5887         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5888         * modules/openat (Depends-on): Add stdnoreturn.
5889
5890         * lib/openat-die.c (openat_save_fail): Modernize comment.
5891
5892         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5893
5894         * lib/glthread/thread.h: Modernize comment.
5895
5896         obstack: use _Noreturn
5897         * lib/obstack.c (__attribute__): Remove macro.
5898         (print_and_abort): Use _Noreturn.
5899
5900         c-stack: use _Noreturn
5901         * lib/c-stack.c (die, overflow_handler, segv_handler):
5902         Use _Noreturn rather than __attribute__((noreturn)).
5903
5904         argmatch-tests, exclude_tests: use _Noreturn
5905         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5906         Remove.
5907         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5908
5909         stdlib: use _Noreturn
5910         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5911         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5912         * modules/stdlib (Depends-on): Add _Noreturn.
5913         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5914
5915         stdnoreturn-tests: new module
5916         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5917
5918         stdnoreturn: new module
5919         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5920         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5921
5922         _Noreturn-tests: new module
5923         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5924
5925         _Noreturn: new module
5926         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5927         New section, mentioning it.
5928         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5929
5930         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5931
5932 2011-07-11  Eric Blake  <eblake@redhat.com>
5933
5934         ffs: new module
5935         * modules/ffs: New file.
5936         * m4/ffs.m4: Likewise.
5937         * lib/ffs.c: Likewise.
5938         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5939         * modules/strings (Makefile.am): Substitute witness.
5940         (Depends-on): Add c++defs.
5941         * lib/strings.in.h (ffs): Declare.
5942         * modules/ffs-tests: New test file.
5943         * tests/test-ffs.c: Test new module.
5944         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5945         * doc/posix-functions/ffs.texi (ffs): Likewise.
5946
5947         regex: avoid compiler warning
5948         * lib/regex.c (includes): Include <strings.h>, for use of
5949         strcasecmp in regcomp.c.
5950         Reported by Joachim Schmitz.
5951
5952 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5953
5954         stdint: respect system's intmax_t if INTMAX_MAX
5955         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5956         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5957         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5958         long but int64_t is long long, and where we will clash with the
5959         system intmax_t if we override it.  See
5960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5961         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5962         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5963         similarly for UINTMAX_C.
5964
5965 2011-07-08  Bruno Haible  <bruno@clisp.org>
5966
5967         pthread_sigmask tests: Avoid a compiler warning.
5968         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5969         non-zero.
5970
5971         sigprocmask tests: A better way to avoid a compiler warning.
5972         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5973         (main): Complain if system() returns non-zero.
5974         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5975
5976 2011-07-08  Bruno Haible  <bruno@clisp.org>
5977
5978         pthread_sigmask: Work around IRIX bug.
5979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5980         bug.
5981         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5982         there may be unblocked pending signals.
5983         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5984
5985 2011-07-08  Bruno Haible  <bruno@clisp.org>
5986
5987         pthread_sigmask: Work around Cygwin bug.
5988         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5989         bug.
5990         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5991         the system's pthread_sigmask function.
5992         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5993
5994 2011-07-08  Bruno Haible  <bruno@clisp.org>
5995
5996         pthread_sigmask: Work around bug in single-threaded implementation.
5997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5998         FreeBSD, HP-UX, Solaris bug.
5999         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6000         * lib/pthread_sigmask.c: Include <stddef.h>.
6001         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6002         the system's pthread_sigmask function.
6003         * modules/pthread_sigmask (configure.ac): Invoke
6004         gl_PREREQ_PTHREAD_SIGMASK.
6005         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6006         HP-UX, Solaris.
6007
6008 2011-07-08  Eric Blake  <eblake@redhat.com>
6009
6010         test-sigprocmask: avoid compiler warning
6011         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6012         * tests/test-sigprocmask.c (main): Use it to silence warning.
6013         Reported by Jim Meyering.
6014
6015         test-snprintf: avoid compiler warning
6016         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6017         * tests/test-vsnprintf.c (main): Likewise.
6018         Reported by Jim Meyering.
6019
6020 2011-07-08  Bruno Haible  <bruno@clisp.org>
6021
6022         Tests for module 'pthread_sigmask'.
6023         * modules/pthread_sigmask-tests: New file.
6024         * tests/test-pthread_sigmask1.c: New file, based on
6025         tests/test-sigprocmask.c.
6026         * tests/test-pthread_sigmask2.c: New file.
6027
6028 2011-07-08  Jim Meyering  <meyering@redhat.com>
6029
6030         test-getopt.h: avoid warning about an unused variable
6031         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6032
6033 2011-07-07  Jim Meyering  <meyering@redhat.com>
6034
6035         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6036         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6037         now that it no longer contains leading TABs.
6038         Remove unused "url=FIXME" statement.
6039
6040 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6041
6042         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6044         When gl_THREADLIB is not in use, assume that the POSIX sematics
6045         are desired.  This is better for Emacs, which uses POSIX semantics
6046         on GNUish and/or POSIXish platforms, and does not use threads at
6047         all otherwise.
6048
6049         pthread_sigmask: fix typo when testing for libraries
6050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6051         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6052
6053 2011-07-08  Eric Blake  <eblake@redhat.com>
6054
6055         fts: introduce FTS_NOATIME
6056         * lib/fts_.h (FTS_NOATIME): New bit flag.
6057         (FTS_OPTIONMASK): Adjust.
6058         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6059         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6060
6061 2011-07-08  Bruno Haible  <bruno@clisp.org>
6062
6063         Tests for module 'thread'.
6064         * modules/thread-tests: New file.
6065         * tests/test-thread_self.c: New file.
6066         * tests/test-thread_create.cc: New file.
6067
6068 2011-07-08  Bruno Haible  <bruno@clisp.org>
6069
6070         thread: Avoid gcc warnings when using gl_thread_self().
6071         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6072         'void *'.
6073         (gl_thread_self_pointer): Update.
6074
6075 2011-07-07  Bruno Haible  <bruno@clisp.org>
6076
6077         signal-c++-tests: Check declaration of pthread_sigmask.
6078         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6079         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6080         $(LIB_PTHREAD_SIGMASK).
6081
6082 2011-07-07  Bruno Haible  <bruno@clisp.org>
6083
6084         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6085         * lib/signal.in.h (pthread_sigmask): Override if
6086         REPLACE_PTHREAD_SIGMASK is 1.
6087         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6088         REPLACE_PTHREAD_SIGMASK.
6089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6090         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6091         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6092         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6093         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6094
6095 2011-07-07  Bruno Haible  <bruno@clisp.org>
6096
6097         pthread_sigmask: Ensure declaration in <signal.h>.
6098         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6099         include <pthread.h>.
6100         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6101         problem.
6102
6103 2011-07-07  Bruno Haible  <bruno@clisp.org>
6104
6105         pthread_sigmask: Document the module.
6106         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6107
6108 2011-07-07  Bruno Haible  <bruno@clisp.org>
6109
6110         pthread_sigmask: Follow gnulib conventions.
6111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6112         gl_PTHREAD_SIGMASK.
6113         * modules/pthread_sigmask (configure.ac): Update.
6114
6115 2011-07-07  Bruno Haible  <bruno@clisp.org>
6116
6117         pthread_sigmask: Make declaration C++ safe.
6118         * lib/signal.in.h: In two special conditions, just do an #include_next.
6119         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6120         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6121         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6122         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6123         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6124         not REPLACE_PTHREAD_MASK.
6125         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6126         not REPLACE_PTHREAD_MASK.
6127         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6128
6129 2011-07-07  Bruno Haible  <bruno@clisp.org>
6130
6131         pthread_sigmask: Fix return value.
6132         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6133         * lib/pthread_sigmask.c: New file.
6134         * modules/pthread_sigmask (Files): Add it.
6135         (configure.ac): Invoke AC_LIBOBJ.
6136
6137 2011-07-07  Eric Blake  <eblake@redhat.com>
6138
6139         getopt: more portable argv creation
6140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6141         const, use char arrays rather than strings.
6142         Suggested by Paul Eggert.
6143
6144 2011-07-07  Bruno Haible  <bruno@clisp.org>
6145
6146         Tests for module 'sigprocmask'.
6147         * modules/sigprocmask-tests: New file.
6148         * tests/test-sigprocmask.c: New file.
6149
6150 2011-07-07  Bruno Haible  <bruno@clisp.org>
6151
6152         float tests: Tweak.
6153         * tests/test-float.c (main): Tweak skip message.
6154
6155 2011-07-07  Eric Blake  <eblake@redhat.com>
6156
6157         getopt: avoid compiler warning during configure
6158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6159         assigning string literals to non-const pointer.
6160
6161         getopt-gnu: avoid crash in glibc getopt
6162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6163         * tests/test-getopt.h (test_getopt): Enhance test.
6164         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6165         * doc/posix-functions/getopt.texi (getopt): Document it.
6166         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6167         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6168         Likewise.
6169
6170 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6171
6172         getopt: handle W; without long options in getopt [BZ #12922]
6173         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6174         but no long options are defined, just return 'W'.
6175
6176 2011-07-07  Bruno Haible  <bruno@clisp.org>
6177
6178         Avoid literal tabs.
6179         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6180         variable containing a tab instead of a literal tab.
6181         Reported by Jim Meyering.
6182
6183 2011-07-07  Bruno Haible  <bruno@clisp.org>
6184
6185         Comments.
6186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6187
6188 2011-07-06  Bruno Haible  <bruno@clisp.org>
6189
6190         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6191         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6192         <winsock2.h>.
6193         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6194         lib/sys_socket.in.h.
6195         (close, gethostname): Hide declarations from <winsock2.h>.
6196         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6197         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6198         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6199         (select): Don't override if gnulib's <sys/select.h> was already
6200         included.
6201         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6202         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6203         setsockopt, shutdown, select): Tweak indentation.
6204
6205 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6208         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6209         in an application that does not use the sys_select module.
6210
6211 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6212
6213         poll: do not return 0 on timeout=-1
6214         * lib/poll.c: Loop with yield if no events occured
6215
6216 2011-07-06  Eric Blake  <eblake@redhat.com>
6217
6218         pthread_sigmask: always replace when not using pthread
6219         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6220         replacement when using some threading other than pthread.  Fix
6221         logic bug.
6222
6223 2011-07-06  Bruno Haible  <bruno@clisp.org>
6224
6225         Comments.
6226         * m4/printf.m4: Update comments about mingw.
6227
6228 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6229
6230         sys_select: define sigset_t more portably
6231         * lib/sys_select.in.h: Always include <sys/types.h>, since
6232         we now need sigset_t and mingw defines it there.
6233         Include <signal.h> before split inclusion guard, to avoid
6234         mishaps on Solaris, whose <signal.h> eventually includes us.
6235         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6236         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6237         which come from ...
6238         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6239         gl_CHECK_TYPE_SIGSET_T.
6240         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6241         does the real work.
6242         * modules/sys_select (Depends-on): Add 'signal'.
6243
6244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6245         Suggested by Bruno Haible.
6246
6247         pselect: Use pthread_sigmask, not sigprocmask.
6248         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6249         multithreaded apps better than sigprocmask does.
6250         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6251         sigprocmask directly.
6252
6253 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6256         Don't #undef,  since we don't need any underlying pselect.
6257         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6258         (Depends-on): Add select.
6259         (Link): Add $(LIBSOCKET).
6260         These changes suggested by Bruno Haible.
6261
6262         pselect: document better
6263         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6264         * doc/posix-functions/pselect.texi (pselect): Document new module.
6265
6266         pthread_sigmask: new module
6267         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6268         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6269         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6270         This is done only as a macro; I don't know how well that'll
6271         work for C++.  Move <sys/types.h> include before the include_next,
6272         to avoid mishap on Solaris.
6273         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6274         * modules/signal (Makefile.am): Substitute the check's results.
6275         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6276
6277         test-pselect: new module
6278         * modules/pselect-tests, tests/test-pselect.c: New files.
6279         * tests/test-select.c, tests/test-sys_select-c++.cc:
6280         If TEST_PSELECT is defined, test pselect instead of testing select.
6281
6282         * tests/test-sys_select.c (sigset_t): Test for it, too.
6283         Suggested by Bruno Haible.
6284
6285 2011-07-05  Eric Blake  <eblake@redhat.com>
6286
6287         snprintf: guarantee %1$d, for libintl
6288         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6289         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6290         * doc/posix-functions/snprintf.texi (snprintf): Update.
6291         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6292         * tests/test-snprintf.c (main): Enhance test.
6293         * tests/test-vsnprintf.c (main): Likewise.
6294
6295 2011-07-05  Jim Meyering  <meyering@redhat.com>
6296
6297         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6298         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6299         per Bruno's request, to accommodate this idiom (no space after "#")
6300         even when the function is inside an #if block:
6301         char *
6302         gets (char *s)
6303         #undef gets
6304         {
6305           ...
6306         }
6307
6308 2011-07-04  Jim Meyering  <meyering@redhat.com>
6309
6310         maint: indent with spaces, not TABs, and add a rule to check this
6311         * tests/test-userspec.c: Indent with spaces, not TABs.
6312         * tests/test-argp.c: Likewise.
6313         * tests/test-c-stack2.sh: Likewise.
6314         * tests/test-parse-duration.sh: Likewise
6315         * m4/strtod.m4: Likewise.
6316         * m4/alloca.m4: Likewise.
6317         * m4/pselect.m4: Likewise.
6318         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6319
6320 2011-07-03  Jim Meyering  <meyering@redhat.com>
6321
6322         maint.mk: correct omissions in prohibit_argmatch_without_use check
6323         This rule would mistakenly report that argmatch.h is included without
6324         use even when both the argmatch and invalid_arg macro were used.
6325         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6326         of argmatch and invalid_arg.
6327
6328 2011-07-03  Bruno Haible  <bruno@clisp.org>
6329
6330         Comments about EINTR.
6331         * lib/safe-read.h: Explain the purpose of this module.
6332         * lib/safe-write.h: Likewise.
6333         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6334         module.
6335         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6336         module.
6337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6338
6339 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6340
6341         xnanosleep: Rewrite to use new dtotimespec module.
6342         It has the conversion code that used to be in xnanosleep.
6343         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6344         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6345         (TIME_T_MAX): Remove.
6346         (xnanosleep): Rewrite in terms of dtotimespec.
6347         * modules/xnanosleep (Depends-on): Add dtotimespec.
6348         Remove intprops, stdbool.
6349
6350         timespec-add, timespec-sub: new modules
6351         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6352         * lib/timespec-add.c, lib/timespec-sub.c:
6353         * modules/timespec-add, modules/timespec-sub: New files.
6354
6355         dtotimespec: new module
6356         * lib/timespec.h (dtotimespec): New decl.
6357         * lib/dtotimespec.c, modules/dtotimespec: New files.
6358
6359         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6360
6361         pselect: new module
6362         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6363         (pselect): New decls.
6364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6365         since the standard pselect decl uses 'restrict'.
6366         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6367         HAVE_PSELECT, REPLACE_PSELECT.
6368         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6369         HAVE_PSELECT, REPLACE_PSELECT.
6370         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6371
6372         sys_select: don't depend on sys_socket
6373         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6375         This fix works on GNU and GNU-like platforms, but has not been tested
6376         on native Windows.
6377         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6379         gl_HEADER_SYS_SOCKET.
6380         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6381         gl_PREREQ_SYS_H_WINSOCK2.
6382
6383 2011-06-29  Eric Blake  <eblake@redhat.com>
6384
6385         pipe2: fix C89 compile problem
6386         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6387         Reported by Bruno Haible.
6388
6389         pipe, pipe2: don't corrupt fd on error
6390         * lib/pipe.c (pipe): Leave fd unchanged on error.
6391         * lib/pipe2.c (pipe2): Likewise.
6392         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6393         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6394
6395 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6396
6397         mmap-anon: do not use regular expressions inadvertently
6398         * m4/mmap-anon.m4: Remove trailing period from strings sought
6399         in the output.
6400
6401 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6402
6403         nanosleep: fix integer overflow problem
6404         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6405         arithmetic wraps around on overflow.
6406
6407         nanosleep: simplify carrying
6408         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6409         first call to the underyling nanosleep, not for the last one.
6410         This doesn't fix any bugs, but it simplifies the computation of
6411         the remaining delay.  Found while auditing integer overflow issues.
6412
6413         dup2: remove test for existence of fcntl
6414         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6415         "#if HAVE_FCNTL", in the configure-time test program.
6416         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6417         and therefore speeds up "configure" a bit.  Found while
6418         adding the dup2 module to Emacs.
6419
6420 2011-06-24  Eric Blake  <eblake@redhat.com>
6421
6422         maint.mk: enhance useless header checks
6423         * top/maint.mk (_sc_header_without_use): Check both include
6424         styles.
6425         (sc_prohibit_assert_without_use)
6426         (sc_prohibit_close_stream_without_use)
6427         (sc_prohibit_getopt_without_use)
6428         (sc_prohibit_quotearg_without_use)
6429         (sc_prohibit_quote_without_use)
6430         (sc_prohibit_long_options_without_use)
6431         (sc_prohibit_inttostr_without_use)
6432         (sc_prohibit_ignore_value_without_use)
6433         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6434         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6435         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6436         (sc_prohibit_hash_pjw_without_use)
6437         (sc_prohibit_safe_read_without_use)
6438         (sc_prohibit_argmatch_without_use)
6439         (sc_prohibit_canonicalize_without_use)
6440         (sc_prohibit_root_dev_ino_without_use)
6441         (sc_prohibit_openat_without_use)
6442         (sc_prohibit_c_ctype_without_use)
6443         (sc_prohibit_signal_without_use)
6444         (sc_prohibit_stdio--_without_use)
6445         (sc_prohibit_stdio-safer_without_use)
6446         (sc_prohibit_strings_without_use)
6447         (sc_prohibit_intprops_without_use)
6448         (sc_prohibit_stddef_without_use)
6449         (sc_prohibit_xfreopen_without_use): Update clients.
6450
6451 2011-06-24  Jim Meyering  <meyering@redhat.com>
6452
6453         syntax-check: keep one maint.mk rule in sync with its header
6454         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6455         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6456         I prefer to avoid temporary files here, so use <(...), but that
6457         is not supported by /bin/sh, so...
6458         (SHELL): Define to /bin/bash.
6459
6460 2011-06-24  Eric Blake  <eblake@redhat.com>
6461
6462         maint.mk: update sc_prohibit_intprops_without_use
6463         * top/maint.mk (_intprops_names): Match recent changes.
6464
6465 2011-06-24  Bruno Haible  <bruno@clisp.org>
6466
6467         strerror-override: No-op tweak.
6468         * lib/strerror-override.h (strerror_override): Reorder conditions,
6469         for consistency with lib/strerror-override.c.
6470
6471 2011-06-23  Eric Blake  <eblake@redhat.com>
6472
6473         maint.mk: test further PATH_MAX issues
6474         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6475         (sc_prohibit_path_max_allocation): ...and also test alloca.
6476         Suggested by Jim Meyering.
6477
6478 2011-06-22  Eric Blake  <eblake@redhat.com>
6479
6480         maint.mk: add syntax-check to avoid char[PATH_MAX]
6481         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6482
6483         stat: be robust to PATH_MAX definition
6484         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6485         * modules/stat (Depends-on): Add verify.
6486
6487         link: work around IRIX bug
6488         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6489         * lib/link.c (rpl_link): Work around it.
6490         * tests/test-link.h (test_link): Enhance test.
6491         * doc/posix-functions/link.texi (link): Document the bug.
6492
6493         getopt: silence clang warning
6494         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6495         dereference.
6496         Reported by Gustavo Martin Domato.
6497
6498 2011-06-22  Jim Meyering  <meyering@redhat.com>
6499
6500         bootstrap: do not insert a blank line into each .gitignore file
6501         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6502
6503 2011-06-21  Eric Blake  <eblake@redhat.com>
6504
6505         perror: test for output mismatch
6506         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6507         perror on IRIX.
6508
6509         strerror_r: fix OpenBSD behavior on out-of-range
6510         * lib/strerror_r.c (strerror_r): Always use maximal string.
6511         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6512
6513         strerror_r: fix OpenBSD behavior on 0
6514         * lib/strerror-override.c (strerror_override): Also override 0
6515         when needed.
6516         * lib/strerror-override.h (strerror_override): Likewise.
6517         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6518         earlier.
6519         * lib/strerror_r.c (strerror_r): Likewise.
6520         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6521         behavior...
6522         (gl_FUNC_STRERROR_0): ...into new macro.
6523         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6524         is overridden.
6525         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6526         * modules/strerror-override (Files): Add strerror.m4.
6527         (configure.ac): Also provide override for 0 when needed.
6528         * doc/posix-functions/strerror.texi (strerror): Document this.
6529         * doc/posix-functions/perror.texi (perror): Likewise.
6530
6531         perror: adjust array size
6532         * modules/perror (Depends-on): Add strerror-override.
6533         * lib/perror.c (perror): Use it to avoid magic number.
6534
6535         strerror-override: reduce size
6536         * lib/strerror-override.c (strerror_override): Use fewer lines.
6537
6538 2011-06-20  Bruno Haible  <bruno@clisp.org>
6539
6540         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6541         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6542
6543 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6544
6545         alloca: port to compilers that can optimize like GCC 4.6.0
6546         * lib/alloca.c (find_stack_direction): New signature, taken from
6547         Autoconf git.  This works with GCC 4.6.0.  This code should never
6548         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6549         be used with other compilers that optimize as well as GCC 4.6.0 does.
6550         (alloca): Adjust to new signature.
6551         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6552         New macro, which patches Autoconf in a similar way.
6553
6554         c-stack: stop worrying about stack direction
6555         * lib/c-stack.c (find_stack_direction): Remove.
6556         (segv_handler): Don't worry about stack direction growth, as it's
6557         too much of a pain to configure this correctly, given how compilers
6558         are optimizing-away our stack-growth detection code.  Instead, assume
6559         that any access to just before or just after the stack is OK.
6560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6561         Don't require AC_FUNC_ALLOCA; no longer needed.
6562
6563 2011-06-20  Eric Blake  <eblake@redhat.com>
6564
6565         test-stat: don't allocate PATH_MAX bytes
6566         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6567         PATH_MAX-sized buffer.
6568         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6569         * modules/stat-tests (Depends-on): Likewise.
6570         * tests/test-fstatat.c (includes): Drop pathmax.h.
6571         * tests/test-stat.c (includes): Likewise.
6572         Reported by Bruno Haible.
6573
6574 2011-06-20  Bruno Haible  <bruno@clisp.org>
6575
6576         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6577         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6578         * lib/float.c: New file.
6579         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6580         REPLACE_FLOAT_LDBL.
6581         * modules/float (Files): Add lib/float.c.
6582         (configure.ac): Invoke AC_LIBOBJ.
6583         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6584
6585 2011-06-20  Bruno Haible  <bruno@clisp.org>
6586
6587         Tests for module 'float'.
6588         * modules/float-tests: New file.
6589         * tests/test-float.c: New file.
6590
6591 2011-06-19  Bruno Haible  <bruno@clisp.org>
6592
6593         isinf: Coding style.
6594         * lib/isinf.c: Use GNU coding style.
6595
6596 2011-06-19  Bruno Haible  <bruno@clisp.org>
6597
6598         linkat test: Avoid test failure on AIX 7.1.
6599         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6600         * tests/test-link.h (test_link): Likewise.
6601
6602 2011-06-19  Bruno Haible  <bruno@clisp.org>
6603
6604         pread test: Avoid test failure on OpenBSD 4.9.
6605         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6606
6607 2011-06-19  Bruno Haible  <bruno@clisp.org>
6608
6609         sprintf-posix: Fix test failure on AIX 7.1.
6610         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6611         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6612         on AIX.
6613         * doc/posix-functions/fprintf.texi: Likewise.
6614         * doc/posix-functions/printf.texi: Likewise.
6615         * doc/posix-functions/snprintf.texi: Likewise.
6616         * doc/posix-functions/sprintf.texi: Likewise.
6617         * doc/posix-functions/vdprintf.texi: Likewise.
6618         * doc/posix-functions/vfprintf.texi: Likewise.
6619         * doc/posix-functions/vprintf.texi: Likewise.
6620         * doc/posix-functions/vsnprintf.texi: Likewise.
6621         * doc/posix-functions/vsprintf.texi: Likewise.
6622
6623 2011-06-19  Bruno Haible  <bruno@clisp.org>
6624
6625         roundl-ieee: Fix test failure on AIX 7.1.
6626         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6627         * doc/posix-functions/roundl.texi: Mention problem with negative
6628         arguments.
6629
6630 2011-06-19  Bruno Haible  <bruno@clisp.org>
6631
6632         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6633         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6634         * doc/posix-functions/round.texi: Mention problem with negative
6635         arguments.
6636         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6637
6638 2011-06-19  Bruno Haible  <bruno@clisp.org>
6639
6640         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6641         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6642         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6643         * doc/posix-functions/roundf.texi: Mention problem with negative
6644         arguments.
6645         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6646
6647 2011-06-19  Bruno Haible  <bruno@clisp.org>
6648
6649         ceilf-ieee: Work around bug on MacOS X 10.5.
6650         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6651
6652         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6653         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6654         IEEE compliant, avoid compiler optimizations.
6655         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6656         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6657         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6658         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6659         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6660         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6661         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6663         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6664         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6665
6666 2011-06-19  Bruno Haible  <bruno@clisp.org>
6667
6668         ceilf-ieee: Work around bug on AIX 7.1.
6669         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6670         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6671
6672 2011-06-19  Bruno Haible  <bruno@clisp.org>
6673
6674         ceil-ieee: Work around bug on AIX 7.1.
6675         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6676         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6677
6678 2011-06-18  Bruno Haible  <bruno@clisp.org>
6679
6680         fsync test: Avoid test failure on MacOS X and AIX.
6681         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6682         EINVAL.
6683
6684 2011-06-18  Bruno Haible  <bruno@clisp.org>
6685
6686         openat, fdopendir tests: Fix link errors.
6687         * modules/openat-tests (Depends-on): Add progname.
6688         * modules/fdopendir-tests (Depends-on): Likewise.
6689         * tests/test-fchownat.c: Include progname.h.
6690         (main): Call set_program_name.
6691         * tests/test-fstatat.c: Include progname.h.
6692         (main): Call set_program_name.
6693         * tests/test-mkdirat.c: Include progname.h.
6694         (main): Call set_program_name.
6695         * tests/test-openat.c: Include progname.h.
6696         (main): Call set_program_name.
6697         * tests/test-unlinkat.c: Include progname.h.
6698         (main): Call set_program_name.
6699         * tests/test-fdopendir.c: Include progname.h.
6700         (main): Call set_program_name.
6701
6702 2011-06-18  Bruno Haible  <bruno@clisp.org>
6703
6704         Doc update.
6705         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6706         HP-UX.
6707         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6708
6709 2011-06-18  Bruno Haible  <bruno@clisp.org>
6710
6711         getcwd tests: Avoid compilation error on HP-UX 11.31.
6712         * modules/getcwd-tests (Depends-on): Add pathmax.
6713         * tests/test-getcwd.c: Include pathmax.h.
6714
6715 2011-06-18  Bruno Haible  <bruno@clisp.org>
6716
6717         isfinite, isinf: Fix link error on AIX 6 and 7.
6718         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6719         needed, also test the macro with a 'float' argument.
6720         * m4/isinf.m4 (gl_ISINF): Likewise.
6721
6722 2011-06-18  Bruno Haible  <bruno@clisp.org>
6723
6724         getloadavg: Don't clobber LIBS. Regression from previous commit.
6725         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6726         AC_CHECK_LIB from here...
6727         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6728         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6729         gl_func_getloadavg_done.
6730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6731
6732 2011-06-18  Bruno Haible  <bruno@clisp.org>
6733
6734         clean-temp: Improve documentation.
6735         * lib/clean-temp.h: Explain better how to use this module.
6736         Reported by John Darrington <john@darrington.wattle.id.au>.
6737
6738 2011-06-17  Bruno Haible  <bruno@clisp.org>
6739
6740         pread, pwrite: Avoid cc warning on AIX.
6741         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6742         (pwrite): Likewise.
6743
6744 2011-06-17  Bruno Haible  <bruno@clisp.org>
6745
6746         spawn-pipe tests: Fix link error.
6747         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6749
6750 2011-06-17  Bruno Haible  <bruno@clisp.org>
6751
6752         Tests: Remove unnecessary dependency.
6753         * modules/canonicalize-tests (Depends-on): Remove progname.
6754         * modules/chown-tests (Depends-on): Likewise.
6755         * modules/dirname-tests (Depends-on): Likewise.
6756         * modules/fdopendir-tests (Depends-on): Likewise.
6757         * modules/fdutimensat-tests (Depends-on): Likewise.
6758         * modules/hash-tests (Depends-on): Likewise.
6759         * modules/lchown-tests (Depends-on): Likewise.
6760         * modules/linkat-tests (Depends-on): Likewise.
6761         * modules/renameat-tests (Depends-on): Likewise.
6762         * modules/spawn-pipe-tests (Depends-on): Likewise.
6763         * modules/utimensat-tests (Depends-on): Likewise.
6764
6765 2011-06-17  Bruno Haible  <bruno@clisp.org>
6766
6767         spawn-pipe tests: Fix link error.
6768         * tests/test-spawn-pipe-child.c: Undefine fflush.
6769
6770 2011-06-17  Bruno Haible  <bruno@clisp.org>
6771
6772         Fix tests link errors.
6773         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6774         * modules/chown-tests (Makefile.am): Don't link test-chown with
6775         LIBINTL.
6776         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6777         LIBINTL.
6778         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6779         LIBINTL.
6780         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6781         LIBINTL.
6782
6783 2011-06-16  Bruno Haible  <bruno@clisp.org>
6784
6785         crypto/gc-sha1: Fix recent regression.
6786         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6787         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6788
6789         crypto/gc-md5: Fix recent regression.
6790         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6791
6792         crypto/gc-md4: Fix recent regression.
6793         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6794         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6795
6796         crypto/gc-arctwo: Fix recent regression.
6797         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6798         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6799
6800         crypto/gc-rijndael: Fix recent regression.
6801         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6802         (configure.ac): Invoke AC_LIBOBJ here.
6803         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6805
6806         crypto/gc-hmac-sha1: Fix recent regression.
6807         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6808         (configure.ac): Invoke AC_LIBOBJ here.
6809         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6811
6812         crypto/gc-hmac-md5: Fix recent regression.
6813         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6814         (configure.ac): Invoke AC_LIBOBJ here.
6815         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6817
6818         crypto/gc-des: Fix recent regression.
6819         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6820         (configure.ac): Invoke AC_LIBOBJ here.
6821         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6823
6824         crypto/gc-arcfour: Fix recent regression.
6825         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6826         (configure.ac): Invoke AC_LIBOBJ here.
6827         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6829
6830 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6831
6832         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6833         After the 2011-05-21 change, this macro requires
6834         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6835         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6836
6837 2011-06-16  Bruno Haible  <bruno@clisp.org>
6838
6839         fprintftime: Move AC_LIBOBJ invocations to module description.
6840         * m4/fprintftime.m4: Remove file.
6841         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6842         (configure.ac): Remove gl_FPRINTFTIME call.
6843         (Makefile.am): Augment lib_SOURCES.
6844         Reported by Jim Meyering.
6845
6846 2011-06-16  Bruno Haible  <bruno@clisp.org>
6847
6848         tmpfile-safer: Finish 2011-05-23 commit.
6849         * m4/stdio-safer.m4: Really remove file.
6850         Reported by Jim Meyering.
6851
6852 2011-06-16  Bruno Haible  <bruno@clisp.org>
6853
6854         syntax-check: Fix typo.
6855         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6856         printf-posix.m4.
6857         Reported by Jim Meyering.
6858
6859 2011-06-13  Jim Meyering  <meyering@redhat.com>
6860
6861         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6862         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6863
6864 2011-05-23  Bruno Haible  <bruno@clisp.org>
6865
6866         yesno: Move AC_LIBOBJ invocations to module description.
6867         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6868         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6869
6870 2011-05-23  Bruno Haible  <bruno@clisp.org>
6871
6872         xstrtol: Move AC_LIBOBJ invocations to module description.
6873         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6874         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6875
6876 2011-05-23  Bruno Haible  <bruno@clisp.org>
6877
6878         xstrtold: Move AC_LIBOBJ invocations to module description.
6879         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6880         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6881
6882 2011-05-23  Bruno Haible  <bruno@clisp.org>
6883
6884         xstrtod: Move AC_LIBOBJ invocations to module description.
6885         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6886         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         xnanosleep: Move AC_LIBOBJ invocations to module description.
6891         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6892         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6893
6894 2011-05-23  Bruno Haible  <bruno@clisp.org>
6895
6896         xgetcwd: Move AC_LIBOBJ invocations to module description.
6897         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6898         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6899
6900 2011-05-23  Bruno Haible  <bruno@clisp.org>
6901
6902         xalloc: Move AC_LIBOBJ invocations to module description.
6903         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6904         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6905
6906 2011-05-23  Bruno Haible  <bruno@clisp.org>
6907
6908         write-any-file: Move AC_LIBOBJ invocations to module description.
6909         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6910         invocation.
6911         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6912
6913 2011-05-23  Bruno Haible  <bruno@clisp.org>
6914
6915         utimens: Move AC_LIBOBJ invocations to module description.
6916         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6917         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6918
6919 2011-05-23  Bruno Haible  <bruno@clisp.org>
6920
6921         utimecmp: Move AC_LIBOBJ invocations to module description.
6922         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6923         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6924
6925 2011-05-23  Bruno Haible  <bruno@clisp.org>
6926
6927         userspec: Move AC_LIBOBJ invocations to module description.
6928         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6929         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6930
6931 2011-05-23  Bruno Haible  <bruno@clisp.org>
6932
6933         unlinkdir: Move AC_LIBOBJ invocations to module description.
6934         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6935         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6936
6937 2011-05-23  Bruno Haible  <bruno@clisp.org>
6938
6939         unistd-safer: Move AC_LIBOBJ invocations to module description.
6940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6941         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         tempname: Move AC_LIBOBJ invocations to module description.
6946         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6947         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6948
6949 2011-05-23  Bruno Haible  <bruno@clisp.org>
6950
6951         strftime: Move AC_LIBOBJ invocations to module description.
6952         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6953         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6954
6955 2011-05-23  Bruno Haible  <bruno@clisp.org>
6956
6957         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6958         * m4/stdlib-safer.m4: Remove file.
6959         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6960         (configure.ac): Remove gl_STDLIB_SAFER call.
6961         (Makefile.am): Augment lib_SOURCES.
6962
6963 2011-05-23  Bruno Haible  <bruno@clisp.org>
6964
6965         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6966         * m4/stdio-safer.m4: Remove file.
6967         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6968         (configure.ac): Remove gl_TMPFILE_SAFER call.
6969         (Makefile.am): Augment lib_SOURCES.
6970
6971 2011-05-23  Bruno Haible  <bruno@clisp.org>
6972
6973         popen-safer: Move AC_LIBOBJ invocations to module description.
6974         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6975         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6976         (configure.ac): Remove gl_POPEN_SAFER call.
6977         (Makefile.am): Augment lib_SOURCES.
6978
6979 2011-05-23  Bruno Haible  <bruno@clisp.org>
6980
6981         freopen-safer: Move AC_LIBOBJ invocations to module description.
6982         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6983         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6984         (configure.ac): Remove gl_FREOPEN_SAFER call.
6985         (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         fopen-safer: Move AC_LIBOBJ invocations to module description.
6990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6991         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6992         (configure.ac): Remove gl_FOPEN_SAFER call.
6993         (Makefile.am): Augment lib_SOURCES.
6994
6995 2011-05-23  Bruno Haible  <bruno@clisp.org>
6996
6997         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6998         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6999         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7000
7001 2011-05-23  Bruno Haible  <bruno@clisp.org>
7002
7003         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7004         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7005         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7006
7007 2011-05-23  Bruno Haible  <bruno@clisp.org>
7008
7009         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7010         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7011         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         settime: Move AC_LIBOBJ invocations to module description.
7016         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7017         * modules/settime (Makefile.am): Augment lib_SOURCES.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         savedir: Move AC_LIBOBJ invocations to module description.
7022         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7023         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         save-cwd: Move AC_LIBOBJ invocations to module description.
7028         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7029         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7030
7031 2011-05-23  Bruno Haible  <bruno@clisp.org>
7032
7033         same: Move AC_LIBOBJ invocations to module description.
7034         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7035         * modules/same (Makefile.am): Augment lib_SOURCES.
7036
7037 2011-05-23  Bruno Haible  <bruno@clisp.org>
7038
7039         safe-write: Move AC_LIBOBJ invocations to module description.
7040         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7041         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7042         instead of gl_SAFE_WRITE.
7043         (Makefile.am): Augment lib_SOURCES.
7044
7045 2011-05-23  Bruno Haible  <bruno@clisp.org>
7046
7047         safe-read: Move AC_LIBOBJ invocations to module description.
7048         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7049         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7050         of gl_SAFE_READ.
7051         (Makefile.am): Augment lib_SOURCES.
7052
7053 2011-05-23  Bruno Haible  <bruno@clisp.org>
7054
7055         safe-alloc: Move AC_LIBOBJ invocations to module description.
7056         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7057         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7058
7059 2011-05-23  Bruno Haible  <bruno@clisp.org>
7060
7061         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7062         * m4/rijndael.m4: Remove file.
7063         * modules/crypto/rijndael (Files): Remove it.
7064         (configure.ac): Remove gl_RIJNDAEL call.
7065         (Makefile.am): Augment lib_SOURCES.
7066
7067 2011-05-23  Bruno Haible  <bruno@clisp.org>
7068
7069         readtokens: Move AC_LIBOBJ invocations to module description.
7070         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7071         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         read-file: Move AC_LIBOBJ invocations to module description.
7076         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7077         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7078         of gl_FUNC_READ_FILE.
7079         (Makefile.am): Augment lib_SOURCES.
7080
7081 2011-05-23  Bruno Haible  <bruno@clisp.org>
7082
7083         quotearg: Move AC_LIBOBJ invocations to module description.
7084         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7085         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-23  Bruno Haible  <bruno@clisp.org>
7088
7089         quote: Move AC_LIBOBJ invocations to module description.
7090         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7091         * modules/quote (Makefile.am): Augment lib_SOURCES.
7092
7093 2011-05-23  Bruno Haible  <bruno@clisp.org>
7094
7095         posixver: Move AC_LIBOBJ invocations to module description.
7096         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7097         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7098
7099 2011-05-23  Bruno Haible  <bruno@clisp.org>
7100
7101         posixtm: Move AC_LIBOBJ invocations to module description.
7102         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7103         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         physmem: Move AC_LIBOBJ invocations to module description.
7108         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7109         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7110
7111 2011-05-23  Bruno Haible  <bruno@clisp.org>
7112
7113         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7114         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7115         invocation.
7116         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7117
7118 2011-05-23  Bruno Haible  <bruno@clisp.org>
7119
7120         mpsort: Move AC_LIBOBJ invocations to module description.
7121         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7122         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7123
7124 2011-05-23  Bruno Haible  <bruno@clisp.org>
7125
7126         modechange: Move AC_LIBOBJ invocations to module description.
7127         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7128         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7129
7130 2011-05-23  Bruno Haible  <bruno@clisp.org>
7131
7132         mkdir-p: Move AC_LIBOBJ invocations to module description.
7133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7134         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7135
7136 2011-05-23  Bruno Haible  <bruno@clisp.org>
7137
7138         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7139         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7140         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7141
7142 2011-05-23  Bruno Haible  <bruno@clisp.org>
7143
7144         mgetgroups: Move AC_LIBOBJ invocations to module description.
7145         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7146         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7147
7148 2011-05-23  Bruno Haible  <bruno@clisp.org>
7149
7150         memxor: Move AC_LIBOBJ invocations to module description.
7151         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7152         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7153
7154 2011-05-23  Bruno Haible  <bruno@clisp.org>
7155
7156         memcoll: Move AC_LIBOBJ invocations to module description.
7157         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7158         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7159
7160 2011-05-23  Bruno Haible  <bruno@clisp.org>
7161
7162         memcasecmp: Move AC_LIBOBJ invocations to module description.
7163         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7164         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7165
7166 2011-05-23  Bruno Haible  <bruno@clisp.org>
7167
7168         crypto/md5: Move AC_LIBOBJ invocations to module description.
7169         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7170         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7171
7172 2011-05-23  Bruno Haible  <bruno@clisp.org>
7173
7174         crypto/md4: Move AC_LIBOBJ invocations to module description.
7175         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7176         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7177
7178 2011-05-23  Bruno Haible  <bruno@clisp.org>
7179
7180         crypto/md2: Move AC_LIBOBJ invocations to module description.
7181         * m4/md2.m4: Remove file.
7182         * modules/crypto/md2 (Files): Remove it.
7183         (configure.ac): Remove gl_MD2 call.
7184         (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         long-options: Move AC_LIBOBJ invocations to module description.
7189         * m4/long-options.m4: Remove file.
7190         * modules/long-options (Files): Remove it.
7191         (configure.ac): Remove gl_LONG_OPTIONS call.
7192         (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         i-ring: Move AC_LIBOBJ invocations to module description.
7197         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7198         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         idcache: Move AC_LIBOBJ invocations to module description.
7203         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7204         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7205
7206 2011-05-23  Bruno Haible  <bruno@clisp.org>
7207
7208         human: Move AC_LIBOBJ invocations to module description.
7209         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7210         * modules/human (Makefile.am): Augment lib_SOURCES.
7211
7212 2011-05-23  Bruno Haible  <bruno@clisp.org>
7213
7214         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7215         * m4/hmac-sha1.m4: Remove file.
7216         * modules/crypto/hmac-sha1 (Files): Remove it.
7217         (configure.ac): Remove gl_HMAC_SHA1 call.
7218         (Makefile.am): Augment lib_SOURCES.
7219
7220 2011-05-23  Bruno Haible  <bruno@clisp.org>
7221
7222         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7223         * m4/hmac-md5.m4: Remove file.
7224         * modules/crypto/hmac-md5 (Files): Remove it.
7225         (configure.ac): Remove gl_HMAC_MD5 call.
7226         (Makefile.am): Augment lib_SOURCES.
7227
7228 2011-05-23  Bruno Haible  <bruno@clisp.org>
7229
7230         hash: Move AC_LIBOBJ invocations to module description.
7231         * m4/hash.m4: Remove file.
7232         * modules/hash (Files): Remove it.
7233         (configure.ac): Remove gl_HASH call.
7234         (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         hard-locale: Move AC_LIBOBJ invocations to module description.
7239         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7240         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7241
7242 2011-05-23  Bruno Haible  <bruno@clisp.org>
7243
7244         getugroups: Move AC_LIBOBJ invocations to module description.
7245         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7246         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         gettime: Move AC_LIBOBJ invocations to module description.
7251         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7252         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         getndelim2: Move AC_LIBOBJ invocations to module description.
7257         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7258         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7259
7260 2011-05-23  Bruno Haible  <bruno@clisp.org>
7261
7262         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7263         * m4/gc-pbkdf2-sha1.m4: Remove file.
7264         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7265         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7266         (Makefile.am): Augment lib_SOURCES.
7267
7268 2011-05-23  Bruno Haible  <bruno@clisp.org>
7269
7270         fts: Move AC_LIBOBJ invocations to module description.
7271         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7272         * modules/fts (configure.ac): ... to here.
7273
7274 2011-05-23  Bruno Haible  <bruno@clisp.org>
7275
7276         file-type: Move AC_LIBOBJ invocations to module description.
7277         * m4/file-type.m4: Remove file.
7278         * modules/file-type (Files): Remove it.
7279         (configure.ac): Remove gl_FILE_TYPE call.
7280         (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         filenamecat*: Respect rules for use of AC_LIBOBJ.
7285         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7286         Remove AC_LIBOBJ invocation.
7287         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7288         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7289
7290 2011-05-23  Bruno Haible  <bruno@clisp.org>
7291
7292         filemode: Move AC_LIBOBJ invocations to module description.
7293         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7294         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         openat-safer: Move AC_LIBOBJ invocations to module description.
7299         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7300         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7301
7302 2011-05-23  Bruno Haible  <bruno@clisp.org>
7303
7304         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7306         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7307
7308 2011-05-23  Bruno Haible  <bruno@clisp.org>
7309
7310         exclude: Move AC_LIBOBJ invocations to module description.
7311         * m4/exclude.m4: Remove file.
7312         * modules/exclude (Files): Remove it.
7313         (configure.ac): Remove gl_EXCLUDE call.
7314         (Makefile.am): Augment lib_SOURCES.
7315
7316 2011-05-23  Bruno Haible  <bruno@clisp.org>
7317
7318         dirname*: Respect rules for use of AC_LIBOBJ.
7319         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7320         invocations.
7321         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7322         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7323
7324 2011-05-23  Bruno Haible  <bruno@clisp.org>
7325
7326         dirent-safer: Move AC_LIBOBJ invocations to module description.
7327         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7328         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         crypto/des: Move AC_LIBOBJ invocations to module description.
7333         * m4/des.m4: Remove file.
7334         * modules/crypto/des (Files): Remove it.
7335         (configure.ac): Remove gl_DES call.
7336         (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         cycle-check: Move AC_LIBOBJ invocations to module description.
7341         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7342         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         c-strtold: Move AC_LIBOBJ invocations to module description.
7347         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7348         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         c-strtod: Move AC_LIBOBJ invocations to module description.
7353         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7354         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7355
7356 2011-05-23  Bruno Haible  <bruno@clisp.org>
7357
7358         crc: Move AC_LIBOBJ invocations to module description.
7359         * m4/crc.m4: Remove file.
7360         * modules/crc (Files): Remove it.
7361         (configure.ac): Remove gl_CRC call.
7362         (Makefile.am): Augment lib_SOURCES.
7363
7364 2011-05-23  Bruno Haible  <bruno@clisp.org>
7365
7366         close-stream: Move AC_LIBOBJ invocations to module description.
7367         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7368         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7369
7370 2011-05-23  Bruno Haible  <bruno@clisp.org>
7371
7372         closeout: Move AC_LIBOBJ invocations to module description.
7373         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7374         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7375
7376 2011-05-23  Bruno Haible  <bruno@clisp.org>
7377
7378         closein: Move AC_LIBOBJ invocations to module description.
7379         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7380         * modules/closein (Makefile.am): Augment lib_SOURCES.
7381
7382 2011-05-23  Bruno Haible  <bruno@clisp.org>
7383
7384         cloexec: Move AC_LIBOBJ invocations to module description.
7385         * m4/cloexec.m4: Remove file.
7386         * modules/cloexec (Files): Remove it.
7387         (configure.ac): Remove gl_CLOEXEC call.
7388         (Makefile.am): Augment lib_SOURCES.
7389
7390 2011-05-23  Bruno Haible  <bruno@clisp.org>
7391
7392         check-version: Move AC_LIBOBJ invocations to module description.
7393         * m4/check-version.m4: Remove file.
7394         * modules/check-version (Files): Remove it.
7395         (configure.ac): Remove gl_CHECK_VERSION call.
7396         (Makefile.am): Augment lib_SOURCES.
7397
7398 2011-05-23  Bruno Haible  <bruno@clisp.org>
7399
7400         chdir-safer: Move AC_LIBOBJ invocations to module description.
7401         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7402         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7403
7404 2011-05-23  Bruno Haible  <bruno@clisp.org>
7405
7406         canonicalize: Move AC_LIBOBJ invocations to module description.
7407         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7408         AC_LIBOBJ invocation.
7409         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         canon-host: Move AC_LIBOBJ invocations to module description.
7414         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7415         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7416         instead of gl_CANON_HOST.
7417         (Makefile.am): Augment lib_SOURCES.
7418
7419 2011-05-23  Bruno Haible  <bruno@clisp.org>
7420
7421         backupfile: Move AC_LIBOBJ invocations to module description.
7422         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7423         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         argmatch: Move AC_LIBOBJ invocations to module description.
7428         * m4/argmatch.m4: Remove file.
7429         * modules/argmatch (Files): Remove it.
7430         (configure.ac): Remove gl_ARGMATCH call.
7431         (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7436         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7437         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7442         * m4/arcfour.m4: Remove file.
7443         * modules/crypto/arcfour (Files): Remove it.
7444         (configure.ac): Remove gl_ARCFOUR call.
7445         (Makefile.am): Augment lib_SOURCES.
7446
7447 2011-05-22  Bruno Haible  <bruno@clisp.org>
7448
7449         write: Move AC_LIBOBJ invocations to module description.
7450         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7451         * modules/write (configure.ac): ... to here.
7452
7453 2011-05-22  Bruno Haible  <bruno@clisp.org>
7454
7455         wmemset: Move AC_LIBOBJ invocations to module description.
7456         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7457         here...
7458         * modules/wmemset (configure.ac): ... to here.
7459
7460 2011-05-22  Bruno Haible  <bruno@clisp.org>
7461
7462         wmemmove: Move AC_LIBOBJ invocations to module description.
7463         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7464         here...
7465         * modules/wmemmove (configure.ac): ... to here.
7466
7467 2011-05-22  Bruno Haible  <bruno@clisp.org>
7468
7469         wmemcpy: Move AC_LIBOBJ invocations to module description.
7470         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7471         here...
7472         * modules/wmemcpy (configure.ac): ... to here.
7473
7474 2011-05-22  Bruno Haible  <bruno@clisp.org>
7475
7476         wmemcmp: Move AC_LIBOBJ invocations to module description.
7477         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7478         here...
7479         * modules/wmemcmp (configure.ac): ... to here.
7480
7481 2011-05-22  Bruno Haible  <bruno@clisp.org>
7482
7483         wmemchr: Move AC_LIBOBJ invocations to module description.
7484         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7485         here...
7486         * modules/wmemchr (configure.ac): ... to here.
7487
7488 2011-05-22  Bruno Haible  <bruno@clisp.org>
7489
7490         wcswidth: Move AC_LIBOBJ invocations to module description.
7491         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7492         here...
7493         * modules/wcswidth (configure.ac): ... to here.
7494
7495 2011-05-22  Bruno Haible  <bruno@clisp.org>
7496
7497         wcwidth: Respect rules for use of AC_LIBOBJ.
7498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7499         invocation from here...
7500         * modules/wcwidth (configure.ac): ... to here.
7501         (Depends-on): Update conditions.
7502
7503 2011-05-22  Bruno Haible  <bruno@clisp.org>
7504
7505         wctype: Move AC_LIBOBJ invocations to module description.
7506         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7507         invocation from here...
7508         * modules/wctype (configure.ac): ... to here.
7509         (Depends-on): Update conditions.
7510
7511 2011-05-22  Bruno Haible  <bruno@clisp.org>
7512
7513         wctrans: Move AC_LIBOBJ invocations to module description.
7514         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7515         invocation from here...
7516         * modules/wctrans (configure.ac): ... to here.
7517
7518 2011-05-22  Bruno Haible  <bruno@clisp.org>
7519
7520         wctomb: Move AC_LIBOBJ invocations to module description.
7521         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7522         invocations from here...
7523         * modules/wctomb (configure.ac): ... to here.
7524
7525 2011-05-22  Bruno Haible  <bruno@clisp.org>
7526
7527         wctob: Move AC_LIBOBJ invocations to module description.
7528         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7529         gl_PREREQ_WCTOB invocations from here...
7530         * modules/wctob (configure.ac): ... to here.
7531         (Depends-on): Update conditions.
7532
7533 2011-05-22  Bruno Haible  <bruno@clisp.org>
7534
7535         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7536         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7537         here...
7538         * modules/wcsxfrm (configure.ac): ... to here.
7539
7540 2011-05-22  Bruno Haible  <bruno@clisp.org>
7541
7542         wcstok: Move AC_LIBOBJ invocations to module description.
7543         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7544         * modules/wcstok (configure.ac): ... to here.
7545
7546 2011-05-22  Bruno Haible  <bruno@clisp.org>
7547
7548         wcsstr: Move AC_LIBOBJ invocations to module description.
7549         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7550         * modules/wcsstr (configure.ac): ... to here.
7551
7552 2011-05-22  Bruno Haible  <bruno@clisp.org>
7553
7554         wcsspn: Move AC_LIBOBJ invocations to module description.
7555         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7556         * modules/wcsspn (configure.ac): ... to here.
7557
7558 2011-05-22  Bruno Haible  <bruno@clisp.org>
7559
7560         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7561         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7562         gl_PREREQ_WCSRTOMBS invocations from here...
7563         * modules/wcsrtombs (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         wcsrchr: Move AC_LIBOBJ invocations to module description.
7568         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7569         here...
7570         * modules/wcsrchr (configure.ac): ... to here.
7571
7572 2011-05-22  Bruno Haible  <bruno@clisp.org>
7573
7574         wcspbrk: Move AC_LIBOBJ invocations to module description.
7575         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7576         here...
7577         * modules/wcspbrk (configure.ac): ... to here.
7578
7579 2011-05-22  Bruno Haible  <bruno@clisp.org>
7580
7581         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7582         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7583         gl_PREREQ_WCSNRTOMBS invocations from here...
7584         * modules/wcsnrtombs (configure.ac): ... to here.
7585
7586 2011-05-22  Bruno Haible  <bruno@clisp.org>
7587
7588         wcsnlen: Move AC_LIBOBJ invocations to module description.
7589         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7590         here...
7591         * modules/wcsnlen (configure.ac): ... to here.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         wcsncpy: Move AC_LIBOBJ invocations to module description.
7596         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7597         here...
7598         * modules/wcsncpy (configure.ac): ... to here.
7599
7600 2011-05-22  Bruno Haible  <bruno@clisp.org>
7601
7602         wcsncmp: Move AC_LIBOBJ invocations to module description.
7603         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7604         here...
7605         * modules/wcsncmp (configure.ac): ... to here.
7606
7607 2011-05-22  Bruno Haible  <bruno@clisp.org>
7608
7609         wcsncat: Move AC_LIBOBJ invocations to module description.
7610         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7611         here...
7612         * modules/wcsncat (configure.ac): ... to here.
7613
7614 2011-05-22  Bruno Haible  <bruno@clisp.org>
7615
7616         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7617         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7618         from here...
7619         * modules/wcsncasecmp (configure.ac): ... to here.
7620
7621 2011-05-22  Bruno Haible  <bruno@clisp.org>
7622
7623         wcslen: Move AC_LIBOBJ invocations to module description.
7624         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7625         * modules/wcslen (configure.ac): ... to here.
7626
7627 2011-05-22  Bruno Haible  <bruno@clisp.org>
7628
7629         wcsdup: Move AC_LIBOBJ invocations to module description.
7630         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7631         * modules/wcsdup (configure.ac): ... to here.
7632
7633 2011-05-22  Bruno Haible  <bruno@clisp.org>
7634
7635         wcscspn: Move AC_LIBOBJ invocations to module description.
7636         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7637         here...
7638         * modules/wcscspn (configure.ac): ... to here.
7639
7640 2011-05-22  Bruno Haible  <bruno@clisp.org>
7641
7642         wcscpy: Move AC_LIBOBJ invocations to module description.
7643         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7644         * modules/wcscpy (configure.ac): ... to here.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         wcscoll: Move AC_LIBOBJ invocations to module description.
7649         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7650         here...
7651         * modules/wcscoll (configure.ac): ... to here.
7652
7653 2011-05-22  Bruno Haible  <bruno@clisp.org>
7654
7655         wcscmp: Move AC_LIBOBJ invocations to module description.
7656         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7657         * modules/wcscmp (configure.ac): ... to here.
7658
7659 2011-05-22  Bruno Haible  <bruno@clisp.org>
7660
7661         wcschr: Move AC_LIBOBJ invocations to module description.
7662         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7663         * modules/wcschr (configure.ac): ... to here.
7664
7665 2011-05-22  Bruno Haible  <bruno@clisp.org>
7666
7667         wcscat: Move AC_LIBOBJ invocations to module description.
7668         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7669         * modules/wcscat (configure.ac): ... to here.
7670
7671 2011-05-22  Bruno Haible  <bruno@clisp.org>
7672
7673         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7674         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7675         here...
7676         * modules/wcscasecmp (configure.ac): ... to here.
7677
7678 2011-05-22  Bruno Haible  <bruno@clisp.org>
7679
7680         wcrtomb: Move AC_LIBOBJ invocations to module description.
7681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7682         invocations from here...
7683         * modules/wcrtomb (configure.ac): ... to here.
7684
7685 2011-05-22  Bruno Haible  <bruno@clisp.org>
7686
7687         wcpncpy: Move AC_LIBOBJ invocations to module description.
7688         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7689         here...
7690         * modules/wcpncpy (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         wcpcpy: Move AC_LIBOBJ invocations to module description.
7695         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7696         * modules/wcpcpy (configure.ac): ... to here.
7697
7698 2011-05-22  Bruno Haible  <bruno@clisp.org>
7699
7700         waitpid: Move AC_LIBOBJ invocations to module description.
7701         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7702         invocation from here...
7703         * modules/waitpid (configure.ac): ... to here.
7704
7705 2011-05-22  Bruno Haible  <bruno@clisp.org>
7706
7707         utimensat: Move AC_LIBOBJ invocations to module description.
7708         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7709         here...
7710         * modules/utimensat (configure.ac): ... to here.
7711
7712 2011-05-22  Bruno Haible  <bruno@clisp.org>
7713
7714         usleep: Move AC_LIBOBJ invocations to module description.
7715         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7716         here...
7717         * modules/usleep (configure.ac): ... to here.
7718
7719 2011-05-22  Bruno Haible  <bruno@clisp.org>
7720
7721         unlockpt: Move AC_LIBOBJ invocations to module description.
7722         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7723         gl_PREREQ_UNLOCKPT invocations from here...
7724         * modules/unlockpt (configure.ac): ... to here.
7725
7726 2011-05-22  Bruno Haible  <bruno@clisp.org>
7727
7728         unlink: Respect rules for use of AC_LIBOBJ.
7729         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7730         * modules/unlink (configure.ac): ... to here.
7731
7732 2011-05-22  Bruno Haible  <bruno@clisp.org>
7733
7734         uname: Move AC_LIBOBJ invocations to module description.
7735         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7737         here...
7738         * modules/uname (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         ttyname_r: Move AC_LIBOBJ invocations to module description.
7743         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7744         gl_PREREQ_TTYNAME_R invocations from here...
7745         * modules/ttyname_r (configure.ac): ... to here.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         tsearch: Move AC_LIBOBJ invocations to module description.
7750         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7751         invocations from here...
7752         * modules/tsearch (configure.ac): ... to here.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         towctrans: Move AC_LIBOBJ invocations to module description.
7757         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7758         AC_LIBOBJ invocation from here...
7759         * modules/towctrans (configure.ac): ... to here.
7760
7761 2011-05-22  Bruno Haible  <bruno@clisp.org>
7762
7763         tmpfile: Move AC_LIBOBJ invocations to module description.
7764         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7765         invocations from here...
7766         * modules/tmpfile (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         times: Move AC_LIBOBJ invocations to module description.
7771         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7772         * modules/times (configure.ac): ... to here.
7773
7774 2011-05-22  Bruno Haible  <bruno@clisp.org>
7775
7776         time_r: Move AC_LIBOBJ invocations to module description.
7777         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7778         invocations from here...
7779         * modules/time_r (configure.ac): ... to here.
7780
7781 2011-05-22  Bruno Haible  <bruno@clisp.org>
7782
7783         timegm: Move AC_LIBOBJ invocations to module description.
7784         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7785         invocations from here...
7786         * modules/timegm (configure.ac): ... to here.
7787
7788 2011-05-22  Bruno Haible  <bruno@clisp.org>
7789
7790         tcgetsid: Move AC_LIBOBJ invocations to module description.
7791         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7792         and gl_PREREQ_TCGETSID invocations from here...
7793         * modules/tcgetsid (configure.ac): ... to here.
7794         (Depends-on): Update conditions.
7795
7796 2011-05-22  Bruno Haible  <bruno@clisp.org>
7797
7798         symlinkat: Move AC_LIBOBJ invocations to module description.
7799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7800         here...
7801         * modules/symlinkat (configure.ac): ... to here.
7802
7803 2011-05-22  Bruno Haible  <bruno@clisp.org>
7804
7805         symlink: Move AC_LIBOBJ invocations to module description.
7806         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7807         here...
7808         * modules/symlink (configure.ac): ... to here.
7809
7810 2011-05-22  Bruno Haible  <bruno@clisp.org>
7811
7812         strverscmp: Move AC_LIBOBJ invocations to module description.
7813         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7815         from here...
7816         * modules/strverscmp (configure.ac): ... to here.
7817
7818 2011-05-22  Bruno Haible  <bruno@clisp.org>
7819
7820         strtok_r: Move AC_LIBOBJ invocations to module description.
7821         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7822         and gl_PREREQ_STRTOK_R invocations from here...
7823         * modules/strtok_r (configure.ac): ... to here.
7824         (Depends-on): Update conditions.
7825
7826 2011-05-22  Bruno Haible  <bruno@clisp.org>
7827
7828         strtoumax: Move AC_LIBOBJ invocations to module description.
7829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7831         from here...
7832         * modules/strtoumax (configure.ac): ... to here.
7833
7834 2011-05-22  Bruno Haible  <bruno@clisp.org>
7835
7836         strtoimax: Move AC_LIBOBJ invocations to module description.
7837         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7839         from here...
7840         * modules/strtoimax (configure.ac): ... to here.
7841
7842 2011-05-22  Bruno Haible  <bruno@clisp.org>
7843
7844         strtoull: Move AC_LIBOBJ invocations to module description.
7845         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7846         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7847         from here...
7848         * modules/strtoull (configure.ac): ... to here.
7849
7850 2011-05-22  Bruno Haible  <bruno@clisp.org>
7851
7852         strtoll: Move AC_LIBOBJ invocations to module description.
7853         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7855         here...
7856         * modules/strtoll (configure.ac): ... to here.
7857
7858 2011-05-22  Bruno Haible  <bruno@clisp.org>
7859
7860         strtoul: Move AC_LIBOBJ invocations to module description.
7861         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7862         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7863         * modules/strtoul (configure.ac): ... to here.
7864
7865 2011-05-22  Bruno Haible  <bruno@clisp.org>
7866
7867         strtol: Move AC_LIBOBJ invocations to module description.
7868         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7869         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7870         * modules/strtol (configure.ac): ... to here.
7871
7872 2011-05-22  Bruno Haible  <bruno@clisp.org>
7873
7874         strtod: Move AC_LIBOBJ invocations to module description.
7875         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7876         invocations from here...
7877         * modules/strtod (configure.ac): ... to here.
7878
7879 2011-05-22  Bruno Haible  <bruno@clisp.org>
7880
7881         strstr*: Move AC_LIBOBJ invocations to module description.
7882         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7883         invocations from here...
7884         * modules/strstr-simple (configure.ac): ... to here.
7885         * modules/strstr (configure.ac): ... and here.
7886
7887 2011-05-22  Bruno Haible  <bruno@clisp.org>
7888
7889         strsignal: Move AC_LIBOBJ invocations to module description.
7890         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7891         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7892         * modules/strsignal (configure.ac): ... to here.
7893         (Depends-on): Update conditions.
7894
7895 2011-05-22  Bruno Haible  <bruno@clisp.org>
7896
7897         strsep: Move AC_LIBOBJ invocations to module description.
7898         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7899         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7900         here...
7901         * modules/strsep (configure.ac): ... to here.
7902
7903 2011-05-22  Bruno Haible  <bruno@clisp.org>
7904
7905         strptime: Move AC_LIBOBJ invocations to module description.
7906         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7907         gl_PREREQ_STRPTIME invocations from here...
7908         * modules/strptime (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         strpbrk: Move AC_LIBOBJ invocations to module description.
7913         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7915         here...
7916         * modules/strpbrk (configure.ac): ... to here.
7917
7918 2011-05-22  Bruno Haible  <bruno@clisp.org>
7919
7920         strnlen: Move AC_LIBOBJ invocations to module description.
7921         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7922         invocations from here...
7923         * modules/strnlen (configure.ac): ... to here.
7924
7925 2011-05-22  Bruno Haible  <bruno@clisp.org>
7926
7927         strndup: Move AC_LIBOBJ invocations to module description.
7928         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7929         invocations from here...
7930         * modules/strndup (configure.ac): ... to here.
7931         (Depends-on): Update conditions.
7932
7933 2011-05-22  Bruno Haible  <bruno@clisp.org>
7934
7935         strncat: Move AC_LIBOBJ invocations to module description.
7936         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7937         invocations from here...
7938         * modules/strncat (configure.ac): ... to here.
7939
7940 2011-05-22  Bruno Haible  <bruno@clisp.org>
7941
7942         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7943         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7944         invocations from here...
7945         * modules/strdup (configure.ac): ... to here.
7946         * modules/strdup-posix (configure.ac): ... and here.
7947
7948 2011-05-22  Bruno Haible  <bruno@clisp.org>
7949
7950         strcspn: Move AC_LIBOBJ invocations to module description.
7951         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7953         here...
7954         * modules/strcspn (configure.ac): ... to here.
7955
7956 2011-05-22  Bruno Haible  <bruno@clisp.org>
7957
7958         strchrnul: Move AC_LIBOBJ invocations to module description.
7959         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7960         gl_PREREQ_STRCHRNUL invocations from here...
7961         * modules/strchrnul (configure.ac): ... to here.
7962
7963 2011-05-22  Bruno Haible  <bruno@clisp.org>
7964
7965         strcasestr*: Move AC_LIBOBJ invocations to module description.
7966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7967         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7968         * modules/strcasestr-simple (configure.ac): ... to here.
7969         * modules/strcasestr (configure.ac): ... and here.
7970
7971 2011-05-22  Bruno Haible  <bruno@clisp.org>
7972
7973         strcase: Move AC_LIBOBJ invocations to module description.
7974         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7975         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7976         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7977         gl_PREREQ_STRNCASECMP invocations from here...
7978         * modules/strcase (configure.ac): ... to here.
7979
7980 2011-05-22  Bruno Haible  <bruno@clisp.org>
7981
7982         stpncpy: Move AC_LIBOBJ invocations to module description.
7983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7984         here...
7985         * modules/stpncpy (configure.ac): ... to here.
7986
7987 2011-05-22  Bruno Haible  <bruno@clisp.org>
7988
7989         stpcpy: Move AC_LIBOBJ invocations to module description.
7990         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7992         here...
7993         * modules/stpcpy (configure.ac): ... to here.
7994
7995 2011-05-21  Bruno Haible  <bruno@clisp.org>
7996
7997         stat: Move AC_LIBOBJ invocations to module description.
7998         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7999         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8000         here...
8001         * modules/stat (configure.ac): ... to here.
8002
8003 2011-05-21  Bruno Haible  <bruno@clisp.org>
8004
8005         sleep: Move AC_LIBOBJ invocations to module description.
8006         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8007         * modules/sleep (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         signbit: Move AC_LIBOBJ invocations to module description.
8012         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8013         * modules/signbit (configure.ac): ... to here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         sigprocmask: Move AC_LIBOBJ invocations to module description.
8018         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8019         gl_PREREQ_SIGPROMASK invocations from here...
8020         * modules/sigprocmask (configure.ac): ... to here.
8021
8022 2011-05-21  Bruno Haible  <bruno@clisp.org>
8023
8024         sigaction: Move AC_LIBOBJ invocations to module description.
8025         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8026         gl_PREREQ_SIGACTION invocations from here...
8027         * modules/sigaction (configure.ac): ... to here.
8028
8029 2011-05-21  Bruno Haible  <bruno@clisp.org>
8030
8031         sig2str: Move AC_LIBOBJ invocations to module description.
8032         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8034         here...
8035         * modules/sig2str (configure.ac): ... to here.
8036
8037 2011-05-21  Bruno Haible  <bruno@clisp.org>
8038
8039         setlocale: Move AC_LIBOBJ invocations to module description.
8040         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8041         gl_PREREQ_SETLOCALE invocations from here...
8042         * modules/setlocale (configure.ac): ... to here.
8043
8044 2011-05-21  Bruno Haible  <bruno@clisp.org>
8045
8046         unsetenv: Move AC_LIBOBJ invocations to module description.
8047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8048         and gl_PREREQ_UNSETENV invocations from here...
8049         * modules/unsetenv (configure.ac): ... to here.
8050         (Depends-on): Update.
8051
8052 2011-05-21  Bruno Haible  <bruno@clisp.org>
8053
8054         setenv: Move AC_LIBOBJ invocations to module description.
8055         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8056         here...
8057         * modules/setenv (configure.ac): ... to here.
8058
8059 2011-05-21  Bruno Haible  <bruno@clisp.org>
8060
8061         selinux-h: Move AC_LIBOBJ invocations to module description.
8062         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8063         AC_LIBOBJ invocation from here...
8064         * modules/selinux-h (configure.ac): ... to here.
8065
8066 2011-05-21  Bruno Haible  <bruno@clisp.org>
8067
8068         select: Respect rules for use of AC_LIBOBJ.
8069         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8070         here...
8071         * modules/select (configure.ac): ... to here.
8072
8073 2011-05-21  Bruno Haible  <bruno@clisp.org>
8074
8075         scandir: Move AC_LIBOBJ invocations to module description.
8076         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8077         invocations from here...
8078         * modules/scandir (configure.ac): ... to here.
8079
8080 2011-05-21  Bruno Haible  <bruno@clisp.org>
8081
8082         rpmatch: Move AC_LIBOBJ invocations to module description.
8083         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8085         here...
8086         * modules/rpmatch (configure.ac): ... to here.
8087
8088 2011-05-21  Bruno Haible  <bruno@clisp.org>
8089
8090         rmdir: Respect rules for use of AC_LIBOBJ.
8091         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8092         * modules/rmdir (configure.ac): ... to here.
8093
8094 2011-05-21  Bruno Haible  <bruno@clisp.org>
8095
8096         renameat: Move AC_LIBOBJ invocations to module description.
8097         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8098         here...
8099         * modules/renameat (configure.ac): ... to here.
8100
8101 2011-05-21  Bruno Haible  <bruno@clisp.org>
8102
8103         rename: Respect rules for use of AC_LIBOBJ.
8104         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8105         here...
8106         * modules/rename (configure.ac): ... to here.
8107
8108 2011-05-21  Bruno Haible  <bruno@clisp.org>
8109
8110         remove: Move AC_LIBOBJ invocations to module description.
8111         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8112         here...
8113         * modules/remove (configure.ac): ... to here.
8114
8115 2011-05-21  Bruno Haible  <bruno@clisp.org>
8116
8117         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8118         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8119         macro.
8120         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8121         * modules/relocatable-lib (configure.ac): ... to here.
8122         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8123         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8124
8125 2011-05-21  Bruno Haible  <bruno@clisp.org>
8126
8127         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8128         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8129         here...
8130         * modules/relocatable-prog (configure.ac): ... to here.
8131
8132 2011-05-21  Bruno Haible  <bruno@clisp.org>
8133
8134         regex: Move AC_LIBOBJ invocations to module description.
8135         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8136         invocations from here...
8137         * modules/regex (configure.ac): ... to here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         realloc-*: Move AC_LIBOBJ invocations to module description.
8142         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8143         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8144         AC_LIBOBJ invocations from here...
8145         * modules/realloc-gnu (configure.ac): ... to here.
8146         * modules/realloc-posix (configure.ac): ... and here.
8147
8148 2011-05-21  Bruno Haible  <bruno@clisp.org>
8149
8150         readutmp: Move AC_LIBOBJ invocations to module description.
8151         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8152         * modules/readutmp (configure.ac): ... to here.
8153
8154 2011-05-21  Bruno Haible  <bruno@clisp.org>
8155
8156         readlinkat: Move AC_LIBOBJ invocations to module description.
8157         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8158         here...
8159         * modules/readlinkat (configure.ac): ... to here.
8160
8161 2011-05-21  Bruno Haible  <bruno@clisp.org>
8162
8163         readlink: Move AC_LIBOBJ invocations to module description.
8164         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8165         gl_PREREQ_READLINK invocations from here...
8166         * modules/readlink (configure.ac): ... to here.
8167
8168 2011-05-21  Bruno Haible  <bruno@clisp.org>
8169
8170         readline: Move AC_LIBOBJ invocations to module description.
8171         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8172         gl_PREREQ_READLINE invocations from here...
8173         * modules/readline (configure.ac): ... to here.
8174
8175 2011-05-21  Bruno Haible  <bruno@clisp.org>
8176
8177         read: Move AC_LIBOBJ invocations to module description.
8178         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8179         * modules/read (configure.ac): ... to here.
8180
8181 2011-05-21  Bruno Haible  <bruno@clisp.org>
8182
8183         rawmemchr: Move AC_LIBOBJ invocations to module description.
8184         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8186         from here...
8187         * modules/rawmemchr (configure.ac): ... to here.
8188
8189 2011-05-21  Bruno Haible  <bruno@clisp.org>
8190
8191         random_r: Move AC_LIBOBJ invocations to module description.
8192         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8193         gl_PREREQ_RANDOM_R invocations from here...
8194         * modules/random_r (configure.ac): ... to here.
8195
8196 2011-05-21  Bruno Haible  <bruno@clisp.org>
8197
8198         pwrite: Move AC_LIBOBJ invocations to module description.
8199         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8200         * modules/pwrite (configure.ac): ... to here.
8201
8202 2011-05-21  Bruno Haible  <bruno@clisp.org>
8203
8204         putenv: Move AC_LIBOBJ invocations to module description.
8205         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8206         * modules/putenv (configure.ac): ... to here.
8207
8208 2011-05-21  Bruno Haible  <bruno@clisp.org>
8209
8210         login_tty: Move AC_LIBOBJ invocations to module description.
8211         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8212         * modules/login_tty (configure.ac): ... to here.
8213
8214 2011-05-21  Bruno Haible  <bruno@clisp.org>
8215
8216         openpty: Move AC_LIBOBJ invocations to module description.
8217         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8218         * modules/openpty (configure.ac): ... to here.
8219
8220 2011-05-21  Bruno Haible  <bruno@clisp.org>
8221
8222         forkpty: Move AC_LIBOBJ invocations to module description.
8223         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8224         * modules/forkpty (configure.ac): ... to here.
8225
8226 2011-05-21  Bruno Haible  <bruno@clisp.org>
8227
8228         ptsname: Move AC_LIBOBJ invocations to module description.
8229         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8230         invocations from here...
8231         * modules/ptsname (configure.ac): ... to here.
8232
8233 2011-05-21  Bruno Haible  <bruno@clisp.org>
8234
8235         pread: Move AC_LIBOBJ invocations to module description.
8236         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8237         * modules/pread (configure.ac): ... to here.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8242         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8243         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8244         * modules/posix_spawn (configure.ac): ... to here.
8245         * modules/posix_spawnp (configure.ac): ... and here.
8246
8247 2011-05-21  Bruno Haible  <bruno@clisp.org>
8248
8249         popen: Move AC_LIBOBJ invocations to module description.
8250         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8251         invocations from here...
8252         * modules/popen (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         poll: Move AC_LIBOBJ invocations to module description.
8257         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8258         invocations from here...
8259         * modules/poll (configure.ac): ... to here.
8260
8261 2011-05-21  Bruno Haible  <bruno@clisp.org>
8262
8263         pipe-posix: Move AC_LIBOBJ invocations to module description.
8264         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8265         * modules/pipe-posix (configure.ac): ... to here.
8266
8267 2011-05-21  Bruno Haible  <bruno@clisp.org>
8268
8269         openat: Respect rules for use of AC_LIBOBJ.
8270         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8271         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8272         * modules/openat (configure.ac): ... to here.
8273
8274 2011-05-21  Bruno Haible  <bruno@clisp.org>
8275
8276         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8277         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8278         invocation from here...
8279         * modules/obstack-printf (configure.ac): ... to here.
8280         * modules/obstack-printf-posix (configure.ac): ... and here.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8285         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8286         from here...
8287         * modules/nl_langinfo (configure.ac): ... to here.
8288
8289 2011-05-21  Bruno Haible  <bruno@clisp.org>
8290
8291         nanosleep: Move AC_LIBOBJ invocations to module description.
8292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8293         gl_PREREQ_NANOSLEEP invocations from here...
8294         * modules/nanosleep (configure.ac): ... to here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         mountlist: Move AC_LIBOBJ invocations to module description.
8299         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8300         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8301         * modules/mountlist (configure.ac): ... to here.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         mktime: Respect rules for use of AC_LIBOBJ.
8306         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8307         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8308         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8309         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8310         * modules/mktime (configure.ac): ... to here.
8311         * modules/mktime-internal (configure.ac): ... and here.
8312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8313
8314 2011-05-21  Bruno Haible  <bruno@clisp.org>
8315
8316         mkstemps: Move AC_LIBOBJ invocations to module description.
8317         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8318         here...
8319         * modules/mkstemps (configure.ac): ... to here.
8320
8321 2011-05-21  Bruno Haible  <bruno@clisp.org>
8322
8323         mkstemp: Move AC_LIBOBJ invocations to module description.
8324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8325         gl_PREREQ_MKSTEMP invocations from here...
8326         * modules/mkstemp (configure.ac): ... to here.
8327
8328 2011-05-21  Bruno Haible  <bruno@clisp.org>
8329
8330         mkostemps: Move AC_LIBOBJ invocations to module description.
8331         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8332         here...
8333         * modules/mkostemps (configure.ac): ... to here.
8334
8335 2011-05-21  Bruno Haible  <bruno@clisp.org>
8336
8337         mkostemp: Move AC_LIBOBJ invocations to module description.
8338         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8339         gl_PREREQ_MKOSTEMP invocations from here...
8340         * modules/mkostemp (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         mknod: Move AC_LIBOBJ invocations to module description.
8345         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8346         * modules/mknod (configure.ac): ... to here.
8347
8348 2011-05-21  Bruno Haible  <bruno@clisp.org>
8349
8350         mkfifoat: Move AC_LIBOBJ invocations to module description.
8351         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8352         here...
8353         * modules/mkfifoat (configure.ac): ... to here.
8354
8355 2011-05-21  Bruno Haible  <bruno@clisp.org>
8356
8357         mkfifo: Respect rules for use of AC_LIBOBJ.
8358         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8359         here...
8360         * modules/mkfifo (configure.ac): ... to here.
8361
8362 2011-05-21  Bruno Haible  <bruno@clisp.org>
8363
8364         mkdtemp: Move AC_LIBOBJ invocations to module description.
8365         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8366         invocations from here...
8367         * modules/mkdtemp (configure.ac): ... to here.
8368
8369 2011-05-21  Bruno Haible  <bruno@clisp.org>
8370
8371         mkdir: Move AC_LIBOBJ invocations to module description.
8372         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8373         * modules/mkdir (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         memset: Move AC_LIBOBJ invocations to module description.
8378         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8380         here...
8381         * modules/memset (configure.ac): ... to here.
8382
8383 2011-05-21  Bruno Haible  <bruno@clisp.org>
8384
8385         memrchr: Move AC_LIBOBJ invocations to module description.
8386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8387         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8388         here...
8389         * modules/memrchr (configure.ac): ... to here.
8390
8391 2011-05-21  Bruno Haible  <bruno@clisp.org>
8392
8393         mempcpy: Move AC_LIBOBJ invocations to module description.
8394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8396         here...
8397         * modules/mempcpy (configure.ac): ... to here.
8398
8399 2011-05-21  Bruno Haible  <bruno@clisp.org>
8400
8401         memmove: Move AC_LIBOBJ invocations to module description.
8402         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8404         here...
8405         * modules/memmove (configure.ac): ... to here.
8406
8407 2011-05-21  Bruno Haible  <bruno@clisp.org>
8408
8409         memmem*: Move AC_LIBOBJ invocations to module description.
8410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8411         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8412         here...
8413         (gl_FUNC_MEMMEM): ... and here...
8414         * modules/memmem-simple (configure.ac): ... to here.
8415         * modules/memmem (configure.ac): ... and here.
8416
8417 2011-05-21  Bruno Haible  <bruno@clisp.org>
8418
8419         memcpy: Move AC_LIBOBJ invocations to module description.
8420         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8422         here...
8423         * modules/memcpy (configure.ac): ... to here.
8424
8425 2011-05-21  Bruno Haible  <bruno@clisp.org>
8426
8427         memcmp: Simplify autoconf macro.
8428         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8429         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8430         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         memcmp: Move AC_LIBOBJ invocations to module description.
8435         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8436         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8437         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8438         * modules/memcmp (configure.ac): ... to here.
8439         (Depends-on): Update conditions.
8440
8441 2011-05-21  Bruno Haible  <bruno@clisp.org>
8442
8443         memchr: Respect rules for use of AC_LIBOBJ.
8444         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8445         invocations from here...
8446         * modules/memchr (configure.ac): ... to here.
8447
8448 2011-05-21  Bruno Haible  <bruno@clisp.org>
8449
8450         mbtowc: Move AC_LIBOBJ invocations to module description.
8451         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8452         invocations from here...
8453         * modules/mbtowc (configure.ac): ... to here.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8459         gl_PREREQ_MBSRTOWCS invocations from here...
8460         * modules/mbsrtowcs (configure.ac): ... to here.
8461
8462 2011-05-21  Bruno Haible  <bruno@clisp.org>
8463
8464         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8465         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8466         gl_PREREQ_MBSNRTOWCS invocations from here...
8467         * modules/mbsnrtowcs (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         mbsinit: Move AC_LIBOBJ invocations to module description.
8472         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8473         invocations from here...
8474         * modules/mbsinit (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         mbrlen: Move AC_LIBOBJ invocations to module description.
8479         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8480         invocations from here...
8481         * modules/mbrlen (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         mbrtowc: Respect rules for use of AC_LIBOBJ.
8486         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8487         invocations from here...
8488         * modules/mbrtowc (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         malloc-*: Move AC_LIBOBJ invocations to module description.
8493         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8494         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8495         AC_LIBOBJ invocations from here...
8496         * modules/malloc-gnu (configure.ac): ... to here.
8497         * modules/malloc-posix (configure.ac): ... and here.
8498
8499 2011-05-21  Bruno Haible  <bruno@clisp.org>
8500
8501         lstat, openat: Respect rules for use of AC_LIBOBJ.
8502         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8503         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8504         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8505         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8506         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8507         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8508         here.
8509         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         lseek: Move AC_LIBOBJ invocations to module description.
8514         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8515         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8516         * modules/lseek (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         linkat: Move AC_LIBOBJ invocations to module description.
8521         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8522         here...
8523         * modules/linkat (configure.ac): ... to here.
8524
8525 2011-05-21  Bruno Haible  <bruno@clisp.org>
8526
8527         link: Respect rules for use of AC_LIBOBJ.
8528         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8529         * modules/link (configure.ac): ... to here.
8530
8531 2011-05-21  Bruno Haible  <bruno@clisp.org>
8532
8533         lchown: Move AC_LIBOBJ invocations to module description.
8534         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8535         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8536         * modules/lchown (configure.ac): ... to here.
8537
8538 2011-05-21  Bruno Haible  <bruno@clisp.org>
8539
8540         iswctype: Move AC_LIBOBJ invocations to module description.
8541         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8542         here...
8543         * modules/iswctype (configure.ac): ... to here.
8544
8545 2011-05-21  Bruno Haible  <bruno@clisp.org>
8546
8547         iswblank: Move AC_LIBOBJ invocations to module description.
8548         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8549         here...
8550         * modules/iswblank (configure.ac): ... to here.
8551
8552 2011-05-21  Bruno Haible  <bruno@clisp.org>
8553
8554         atanl: Move AC_LIBOBJ invocations to module description.
8555         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8556         * modules/atanl (configure.ac): ... to here.
8557
8558 2011-05-21  Bruno Haible  <bruno@clisp.org>
8559
8560         acosl: Move AC_LIBOBJ invocations to module description.
8561         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8562         * modules/acosl (configure.ac): ... to here.
8563
8564 2011-05-21  Bruno Haible  <bruno@clisp.org>
8565
8566         asinl: Respect rules for use of AC_LIBOBJ.
8567         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8568         * modules/asinl (configure.ac): ... to here.
8569
8570 2011-05-21  Bruno Haible  <bruno@clisp.org>
8571
8572         tanl: Move AC_LIBOBJ invocations to module description.
8573         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8574         * modules/tanl (configure.ac): ... to here.
8575
8576 2011-05-21  Bruno Haible  <bruno@clisp.org>
8577
8578         cosl: Move AC_LIBOBJ invocations to module description.
8579         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8580         * modules/cosl (configure.ac): ... to here.
8581
8582 2011-05-21  Bruno Haible  <bruno@clisp.org>
8583
8584         sinl: Move AC_LIBOBJ invocations to module description.
8585         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8586         * modules/sinl (configure.ac): ... to here.
8587
8588 2011-05-21  Bruno Haible  <bruno@clisp.org>
8589
8590         logl: Move AC_LIBOBJ invocations to module description.
8591         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8592         * modules/logl (configure.ac): ... to here.
8593
8594 2011-05-21  Bruno Haible  <bruno@clisp.org>
8595
8596         expl: Move AC_LIBOBJ invocations to module description.
8597         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8598         * modules/expl (configure.ac): ... to here.
8599
8600 2011-05-21  Bruno Haible  <bruno@clisp.org>
8601
8602         roundl: Move AC_LIBOBJ invocations to module description.
8603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8604         * modules/roundl (configure.ac): ... to here.
8605
8606 2011-05-21  Bruno Haible  <bruno@clisp.org>
8607
8608         round: Move AC_LIBOBJ invocations to module description.
8609         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8610         * modules/round (configure.ac): ... to here.
8611
8612 2011-05-21  Bruno Haible  <bruno@clisp.org>
8613
8614         roundf: Move AC_LIBOBJ invocations to module description.
8615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8616         * modules/roundf (configure.ac): ... to here.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         truncl: Move AC_LIBOBJ invocations to module description.
8621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8622         * modules/truncl (configure.ac): ... to here.
8623
8624 2011-05-21  Bruno Haible  <bruno@clisp.org>
8625
8626         trunc: Move AC_LIBOBJ invocations to module description.
8627         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8628         * modules/trunc (configure.ac): ... to here.
8629
8630 2011-05-21  Bruno Haible  <bruno@clisp.org>
8631
8632         truncf: Move AC_LIBOBJ invocations to module description.
8633         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8634         * modules/truncf (configure.ac): ... to here.
8635
8636 2011-05-21  Bruno Haible  <bruno@clisp.org>
8637
8638         ceill: Move AC_LIBOBJ invocations to module description.
8639         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8640         * modules/ceill (configure.ac): ... to here.
8641
8642 2011-05-21  Bruno Haible  <bruno@clisp.org>
8643
8644         ceil: Move AC_LIBOBJ invocations to module description.
8645         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8646         * modules/ceil (configure.ac): ... to here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         ceilf: Move AC_LIBOBJ invocations to module description.
8651         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8652         * modules/ceilf (configure.ac): ... to here.
8653
8654 2011-05-21  Bruno Haible  <bruno@clisp.org>
8655
8656         floorl: Respect rules for use of AC_LIBOBJ.
8657         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8658         * modules/floorl (configure.ac): ... to here.
8659
8660 2011-05-21  Bruno Haible  <bruno@clisp.org>
8661
8662         floor: Respect rules for use of AC_LIBOBJ.
8663         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8664         * modules/floor (configure.ac): ... to here.
8665
8666 2011-05-21  Bruno Haible  <bruno@clisp.org>
8667
8668         floorf: Move AC_LIBOBJ invocations to module description.
8669         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8670         * modules/floorf (configure.ac): ... to here.
8671
8672 2011-05-20  Bruno Haible  <bruno@clisp.org>
8673
8674         sqrtl: Respect rules for use of AC_LIBOBJ.
8675         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8676         * modules/sqrtl (configure.ac): ... to here.
8677
8678 2011-05-20  Bruno Haible  <bruno@clisp.org>
8679
8680         ldexpl: Respect rules for use of AC_LIBOBJ.
8681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8682         * modules/ldexpl (configure.ac): ... to here.
8683
8684 2011-05-20  Bruno Haible  <bruno@clisp.org>
8685
8686         frexpl*: Respect rules for use of AC_LIBOBJ.
8687         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8688         invocation from here...
8689         * modules/frexpl (configure.ac): ... to here.
8690         * modules/frexpl-nolibm (configure.ac): ... and here.
8691
8692 2011-05-20  Bruno Haible  <bruno@clisp.org>
8693
8694         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8695         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8696         invocation from here...
8697         * modules/frexp (configure.ac): ... to here.
8698         * modules/frexp-nolibm (configure.ac): ... and here.
8699
8700 2011-05-20  Bruno Haible  <bruno@clisp.org>
8701
8702         isnan: Respect rules for use of AC_LIBOBJ.
8703         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8704         invocations here.
8705         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8706         REPLACE_ISNAN.
8707         * modules/isnand (configure.ac): Likewise.
8708         * modules/isnanl (configure.ac): Likewise.
8709
8710 2011-05-20  Bruno Haible  <bruno@clisp.org>
8711
8712         isnanl*: Respect rules for use of AC_LIBOBJ.
8713         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8714         invocation from here...
8715         * modules/isnanl (configure.ac): ... to here.
8716         * modules/isnanl-nolibm (configure.ac): ... and here.
8717
8718 2011-05-20  Bruno Haible  <bruno@clisp.org>
8719
8720         isnand*: Move AC_LIBOBJ invocations to module description.
8721         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8722         invocation from here...
8723         * modules/isnand (configure.ac): ... to here.
8724         * modules/isnand-nolibm (configure.ac): ... and here.
8725
8726 2011-05-20  Bruno Haible  <bruno@clisp.org>
8727
8728         isnanf*: Move AC_LIBOBJ invocations to module description.
8729         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8730         invocation from here...
8731         * modules/isnanf (configure.ac): ... to here.
8732         * modules/isnanf-nolibm (configure.ac): ... and here.
8733
8734 2011-05-20  Bruno Haible  <bruno@clisp.org>
8735
8736         isnan*: Separate the AC_LIBOBJ invocations.
8737         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8738         AC_LIBOBJ invocation.
8739         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8740         here.
8741         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8742         AC_LIBOBJ invocation.
8743         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8744         here.
8745         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8746         AC_LIBOBJ invocation.
8747         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8748         here.
8749         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8750
8751 2011-05-08  Bruno Haible  <bruno@clisp.org>
8752
8753         isinf: Move AC_LIBOBJ invocations to module description.
8754         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8755         * modules/isinf (configure.ac): ... to here.
8756
8757 2011-05-08  Bruno Haible  <bruno@clisp.org>
8758
8759         isfinite: Move AC_LIBOBJ invocations to module description.
8760         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8761         * modules/isfinite (configure.ac): ... to here.
8762
8763 2011-05-08  Bruno Haible  <bruno@clisp.org>
8764
8765         isblank: Move AC_LIBOBJ invocations to module description.
8766         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8767         here...
8768         * modules/isblank (configure.ac): ... to here.
8769
8770 2011-05-08  Bruno Haible  <bruno@clisp.org>
8771
8772         isapipe: Move AC_LIBOBJ invocations to module description.
8773         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8774         gl_PREREQ_ISAPIPE invocations from here...
8775         * modules/isapipe (configure.ac): ... to here.
8776         (Depends-on): Update condition.
8777
8778 2011-05-08  Bruno Haible  <bruno@clisp.org>
8779
8780         ioctl: Move AC_LIBOBJ invocations to module description.
8781         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8782         invocations from here...
8783         * modules/ioctl (configure.ac): ... to here.
8784         (Depends-on): Update condition.
8785
8786 2011-05-08  Bruno Haible  <bruno@clisp.org>
8787
8788         imaxdiv: Move AC_LIBOBJ invocations to module description.
8789         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8790         invocations from here...
8791         * modules/imaxdiv (configure.ac): ... to here.
8792
8793 2011-05-08  Bruno Haible  <bruno@clisp.org>
8794
8795         imaxabs: Move AC_LIBOBJ invocations to module description.
8796         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8797         invocations from here...
8798         * modules/imaxabs (configure.ac): ... to here.
8799
8800 2011-05-08  Bruno Haible  <bruno@clisp.org>
8801
8802         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8804         AC_LIBOBJ invocations from here...
8805         * modules/getaddrinfo (configure.ac): ... to here.
8806         (Depends-on): Add conditions.
8807
8808 2011-05-08  Bruno Haible  <bruno@clisp.org>
8809
8810         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8811         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8812         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8813         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8814         (gl_PREREQ_INET_PTON): ... from here.
8815         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8816         gl_PREREQ_INET_PTON here.
8817         (Depends-on): Update condition.
8818
8819 2011-05-08  Bruno Haible  <bruno@clisp.org>
8820
8821         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8822         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8823         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8824         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8825         (gl_PREREQ_INET_NTOP): ... from here.
8826         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8827         gl_PREREQ_INET_NTOP here.
8828         (Depends-on): Update condition.
8829
8830 2011-05-08  Bruno Haible  <bruno@clisp.org>
8831
8832         iconv_open: Move AC_LIBOBJ invocations to module description.
8833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8834         AC_LIBOBJ invocations from here...
8835         * modules/iconv_open (configure.ac): ... to here.
8836
8837 2011-05-08  Bruno Haible  <bruno@clisp.org>
8838
8839         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8840         If module 'iconv_open' is among the main modules and module
8841         'iconv_open-utf' is among the tests dependencies, then
8842         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8843         return the special iconv_t values. Therefore iconv() and iconv_close()
8844         must support these special iconv_t values, already in lib, not only in
8845         tests.
8846         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8848         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8849         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8850         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8851         (Depends-on): Add the dependencies of iconv_open-utf.
8852         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8853         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8854         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8855
8856 2011-05-08  Bruno Haible  <bruno@clisp.org>
8857
8858         group-member: Move AC_LIBOBJ invocations to module description.
8859         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8860         gl_PREREQ_GROUP_MEMBER invocations from here...
8861         * modules/group-member (configure.ac): ... to here.
8862
8863 2011-05-08  Bruno Haible  <bruno@clisp.org>
8864
8865         grantpt: Move AC_LIBOBJ invocations to module description.
8866         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8867         invocations from here...
8868         * modules/grantpt (configure.ac): ... to here.
8869
8870 2011-05-08  Bruno Haible  <bruno@clisp.org>
8871
8872         glob: Move AC_LIBOBJ invocations to module description.
8873         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8874         from here...
8875         * modules/glob (configure.ac): ... to here.
8876
8877 2011-05-08  Bruno Haible  <bruno@clisp.org>
8878
8879         getusershell: Move AC_LIBOBJ invocations to module description.
8880         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8881         Move AC_LIBOBJ invocation from here...
8882         * modules/getusershell (configure.ac): ... to here.
8883         (Depends-on): Update condition.
8884
8885 2011-05-08  Bruno Haible  <bruno@clisp.org>
8886
8887         gettimeofday: Move AC_LIBOBJ invocations to module description.
8888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8889         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8890         gl_PREREQ_GETTIMEOFDAY invocations from here...
8891         * modules/gettimeofday (configure.ac): ... to here.
8892
8893 2011-05-08  Bruno Haible  <bruno@clisp.org>
8894
8895         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8896         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8897         just gl_FUNC_TZSET.
8898         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8899         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8901         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8902
8903 2011-05-08  Bruno Haible  <bruno@clisp.org>
8904
8905         getsubopt: Move AC_LIBOBJ invocations to module description.
8906         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8907         gl_PREREQ_GETSUBOPT invocations from here...
8908         * modules/getsubopt (configure.ac): ... to here.
8909
8910 2011-05-08  Bruno Haible  <bruno@clisp.org>
8911
8912         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8913         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8914         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8915         * modules/getpass-gnu (configure.ac): ... to here.
8916
8917 2011-05-08  Bruno Haible  <bruno@clisp.org>
8918
8919         getpass: Move AC_LIBOBJ invocations to module description.
8920         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8921         gl_PREREQ_GETPASS invocations from here...
8922         * modules/getpass (configure.ac): ... to here.
8923
8924 2011-05-08  Bruno Haible  <bruno@clisp.org>
8925
8926         getpagesize: Move AC_LIBOBJ invocations to module description.
8927         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8928         from here...
8929         * modules/getpagesize (configure.ac): ... to here.
8930
8931 2011-05-08  Bruno Haible  <bruno@clisp.org>
8932
8933         getopt: Move AC_LIBOBJ invocations to module description.
8934         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8935         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8936         invocations from here...
8937         * modules/getopt-gnu (configure.ac): ... to here.
8938         * modules/getopt-posix (configure.ac): ... and here.
8939         (Depends-on): Update condition.
8940
8941 2011-05-08  Bruno Haible  <bruno@clisp.org>
8942
8943         getopt, argp: Respect rules for use of AC_LIBOBJ.
8944         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8945         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8946         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8947         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8948
8949 2011-05-08  Bruno Haible  <bruno@clisp.org>
8950
8951         getlogin_r: Move AC_LIBOBJ invocations to module description.
8952         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8953         gl_PREREQ_GETLOGIN_R invocations from here...
8954         * modules/getlogin_r (configure.ac): ... to here.
8955
8956 2011-05-08  Bruno Haible  <bruno@clisp.org>
8957
8958         getlogin: Move AC_LIBOBJ invocations to module description.
8959         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8960         here...
8961         * modules/getlogin (configure.ac): ... to here.
8962
8963 2011-05-08  Bruno Haible  <bruno@clisp.org>
8964
8965         getloadavg: Move AC_LIBOBJ invocations to module description.
8966         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8967         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8968         * modules/getloadavg (configure.ac): ... to here.
8969
8970 2011-05-08  Bruno Haible  <bruno@clisp.org>
8971
8972         gethrxtime: Move AC_LIBOBJ invocations to module description.
8973         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8974         LIB_GETHRXTIME from here...
8975         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8976         invocations from here...
8977         * modules/gethrxtime (configure.ac): ... to here.
8978
8979 2011-05-08  Bruno Haible  <bruno@clisp.org>
8980
8981         gethostname: Move AC_LIBOBJ invocations to module description.
8982         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8983         gl_PREREQ_GETHOSTNAME invocations from here...
8984         * modules/gethostname (configure.ac): ... to here.
8985
8986 2011-05-08  Bruno Haible  <bruno@clisp.org>
8987
8988         getgroups: Move AC_LIBOBJ invocations to module description.
8989         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8990         here...
8991         * modules/getgroups (configure.ac): ... to here.
8992
8993 2011-05-08  Bruno Haible  <bruno@clisp.org>
8994
8995         getdtablesize: Move AC_LIBOBJ invocations to module description.
8996         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8997         invocation from here...
8998         * modules/getdtablesize (configure.ac): ... to here.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         getdomainname: Move AC_LIBOBJ invocations to module description.
9003         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9004         gl_PREREQ_GETDOMAINNAME invocations from here...
9005         * modules/getdomainname (configure.ac): ... to here.
9006
9007 2011-05-08  Bruno Haible  <bruno@clisp.org>
9008
9009         getline: Move AC_LIBOBJ invocations to module description.
9010         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9011         invocations from here...
9012         * modules/getline (configure.ac): ... to here.
9013
9014 2011-05-08  Bruno Haible  <bruno@clisp.org>
9015
9016         getline: Simplify.
9017         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9018         It's already handled through the module dependency.
9019
9020 2011-05-08  Bruno Haible  <bruno@clisp.org>
9021
9022         getdelim: Move AC_LIBOBJ invocations to module description.
9023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9024         and gl_PREREQ_GETDELIM invocations from here...
9025         * modules/getdelim (configure.ac): ... to here.
9026         (Depends-on): Fix condition.
9027
9028 2011-05-08  Bruno Haible  <bruno@clisp.org>
9029
9030         getcwd: Move AC_LIBOBJ invocations to module description.
9031         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9032         invocations from here...
9033         * modules/getcwd (configure.ac): ... to here.
9034
9035 2011-05-08  Bruno Haible  <bruno@clisp.org>
9036
9037         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9038         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9039         here...
9040         * modules/getcwd-lgpl (configure.ac): ... to here.
9041
9042 2011-05-07  Bruno Haible  <bruno@clisp.org>
9043
9044         crypto/gc: Move AC_LIBOBJ invocations to module description.
9045         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9046         * modules/crypto/gc (configure.ac): ... to here.
9047
9048 2011-05-07  Bruno Haible  <bruno@clisp.org>
9049
9050         fwriting: Move AC_LIBOBJ invocations to module description.
9051         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9052         here...
9053         * modules/fwriting (configure.ac): ... to here.
9054
9055 2011-05-07  Bruno Haible  <bruno@clisp.org>
9056
9057         fwritable: Move AC_LIBOBJ invocations to module description.
9058         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9059         here...
9060         * modules/fwritable (configure.ac): ... to here.
9061
9062 2011-05-07  Bruno Haible  <bruno@clisp.org>
9063
9064         futimens: Move AC_LIBOBJ invocations to module description.
9065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9066         here...
9067         * modules/futimens (configure.ac): ... to here.
9068
9069 2011-05-07  Bruno Haible  <bruno@clisp.org>
9070
9071         ftruncate: Move AC_LIBOBJ invocations to module description.
9072         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9073         gl_PREREQ_FTRUNCATE invocations from here...
9074         * modules/ftruncate (configure.ac): ... to here.
9075
9076 2011-05-07  Bruno Haible  <bruno@clisp.org>
9077
9078         fsync: Move AC_LIBOBJ invocations to module description.
9079         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9080         invocations from here...
9081         * modules/fsync (configure.ac): ... to here.
9082
9083 2011-05-07  Bruno Haible  <bruno@clisp.org>
9084
9085         fsusage: Move AC_LIBOBJ invocations to module description.
9086         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9087         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9088         * modules/fsusage (configure.ac): ... to here.
9089
9090 2011-05-07  Bruno Haible  <bruno@clisp.org>
9091
9092         freopen: Move AC_LIBOBJ invocations to module description.
9093         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9094         invocations from here...
9095         * modules/freopen (configure.ac): ... to here.
9096
9097 2011-05-07  Bruno Haible  <bruno@clisp.org>
9098
9099         free: Move AC_LIBOBJ invocations to module description.
9100         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9101         invocations from here...
9102         * modules/free (configure.ac): ... to here.
9103
9104 2011-05-07  Bruno Haible  <bruno@clisp.org>
9105
9106         freadable: Move AC_LIBOBJ invocations to module description.
9107         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9108         here...
9109         * modules/freadable (configure.ac): ... to here.
9110
9111 2011-05-07  Bruno Haible  <bruno@clisp.org>
9112
9113         fpurge: Move AC_LIBOBJ invocations to module description.
9114         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9115         invocations from here...
9116         * modules/fpurge (configure.ac): ... to here.
9117
9118 2011-05-07  Bruno Haible  <bruno@clisp.org>
9119
9120         fpending: Move AC_LIBOBJ invocations to module description.
9121         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9122         gl_FUNC_FPENDING.
9123         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9124         invocations from here...
9125         * modules/fpending (configure.ac): ... to here.
9126
9127 2011-05-07  Bruno Haible  <bruno@clisp.org>
9128
9129         fopen: Move AC_LIBOBJ invocations to module description.
9130         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9131         invocations from here...
9132         * modules/fopen (configure.ac): ... to here.
9133
9134 2011-05-07  Bruno Haible  <bruno@clisp.org>
9135
9136         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9137         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9138         gl_FUNC_FNMATCH_POSIX.
9139         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9140         invocations from here...
9141         * modules/fnmatch (configure.ac): ... to here.
9142         * modules/fnmatch-gnu (configure.ac): ... and here.
9143
9144 2011-05-07  Bruno Haible  <bruno@clisp.org>
9145
9146         flock: Move AC_LIBOBJ invocations to module description.
9147         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9148         invocations from here...
9149         * modules/flock (configure.ac): ... to here.
9150
9151 2011-05-07  Bruno Haible  <bruno@clisp.org>
9152
9153         fileblocks: Move AC_LIBOBJ invocations to module description.
9154         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9155         gl_PREREQ_FILEBLOCKS invocations from here...
9156         * modules/fileblocks (configure.ac): ... to here.
9157
9158 2011-05-06  Bruno Haible  <bruno@clisp.org>
9159
9160         fflush: Move AC_LIBOBJ invocations to module description.
9161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9162         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9163         invocations from here...
9164         * modules/fflush (configure.ac): ... to here.
9165
9166 2011-05-06  Bruno Haible  <bruno@clisp.org>
9167
9168         fdopendir: Move AC_LIBOBJ invocations to module description.
9169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9170         here...
9171         * modules/fdopendir (configure.ac): ... to here.
9172         (Depends-on): Improve conditions.
9173
9174 2011-05-06  Bruno Haible  <bruno@clisp.org>
9175
9176         _Exit: Move AC_LIBOBJ invocations to module description.
9177         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9178         invocations from here...
9179         * modules/_Exit (configure.ac): ... to here.
9180
9181 2011-05-21  Bruno Haible  <bruno@clisp.org>
9182
9183         euidaccess: Respect rules for use of AC_LIBOBJ.
9184         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9186         from here...
9187         * modules/euidaccess (configure.ac): ... to here.
9188
9189 2011-05-06  Bruno Haible  <bruno@clisp.org>
9190
9191         error: Move AC_LIBOBJ invocations to module description.
9192         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9193         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9194         invocations from here...
9195         * modules/error (configure.ac): ... to here.
9196
9197 2011-05-06  Bruno Haible  <bruno@clisp.org>
9198
9199         duplocale: Move AC_LIBOBJ invocations to module description.
9200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9201         gl_PREREQ_DUPLOCALE invocations from here...
9202         * modules/duplocale (configure.ac): ... to here.
9203
9204 2011-05-05  Bruno Haible  <bruno@clisp.org>
9205
9206         dirfd: Move AC_LIBOBJ invocations to module description.
9207         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9208         gl_FUNC_DIRFD.
9209         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9210         here...
9211         * modules/dirfd (configure.ac): ... to here.
9212         (Depends-on): Fix condition.
9213
9214 2011-05-05  Bruno Haible  <bruno@clisp.org>
9215
9216         chown: Respect rules for use of AC_LIBOBJ.
9217         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9218         * modules/chown (configure.ac): ... to here.
9219
9220 2011-05-05  Bruno Haible  <bruno@clisp.org>
9221
9222         chdir-long: Move AC_LIBOBJ invocations to module description.
9223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9224         gl_PREREQ_CHDIR_LONG invocations from here...
9225         * modules/chdir-long (configure.ac): ... to here.
9226
9227 2011-05-05  Bruno Haible  <bruno@clisp.org>
9228
9229         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9230         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9231         from here...
9232         * modules/canonicalize-lgpl (configure.ac): ... to here.
9233
9234 2011-05-05  Bruno Haible  <bruno@clisp.org>
9235
9236         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9237         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9238         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9239         REPLACE_CALLOC.
9240         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9241         * modules/calloc-gnu (configure.ac): Likewise.
9242
9243 2011-05-05  Bruno Haible  <bruno@clisp.org>
9244
9245         btowc: Move AC_LIBOBJ invocations to module description.
9246         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9247         invocations from here...
9248         * modules/btowc (configure.ac): ... to here.
9249
9250 2011-05-21  Bruno Haible  <bruno@clisp.org>
9251
9252         atexit: Move AC_LIBOBJ invocations to module description.
9253         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9255         here...
9256         * modules/atexit (configure.ac): ... to here.
9257
9258 2011-05-05  Bruno Haible  <bruno@clisp.org>
9259
9260         atoll: Move AC_LIBOBJ invocations to module description.
9261         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9262         invocations from here...
9263         * modules/atoll (configure.ac): ... to here.
9264
9265 2011-05-05  Bruno Haible  <bruno@clisp.org>
9266
9267         argz: Move AC_LIBOBJ invocations to module description.
9268         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9269         * modules/argz (configure.ac): ... to here.
9270
9271 2011-05-05  Bruno Haible  <bruno@clisp.org>
9272
9273         alphasort: Move AC_LIBOBJ invocations to module description.
9274         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9275         gl_PREREQ_ALPHASORT invocations from here...
9276         * modules/alphasort (configure.ac): ... to here.
9277
9278 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         verify: new macro verify_expr; verify_true deprecated
9281         * NEWS: Mention this.
9282         * doc/verify.texi (Compile-time Assertions): Document this.
9283         * lib/verify.h (verify_true): Deprecate.
9284         (verify_expr): New macro.
9285         * tests/test-verify.c (function): Test verify_expr.
9286
9287 2011-06-14  Jim Meyering  <meyering@redhat.com>
9288
9289         init.sh: give more portable redirection-related advice in a comment
9290         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9291         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9292         for lots of discussion.  Stefano Lattarini suggested the solution
9293         of putting "9>&2" after the command.  Reported by Bruno Haible.
9294
9295 2011-06-13  Bruno Haible  <bruno@clisp.org>
9296
9297         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9299         'none'.
9300
9301 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9302
9303         ftoastr: use strtof only if HAVE_STRTOF
9304         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9306         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9307         * modules/ftoastr (configure.ac): Check for strtof.
9308
9309 2011-06-13  Bruno Haible  <bruno@clisp.org>
9310
9311         gnulib-tool: Addendum to 2011-06-08 commit.
9312         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9313         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9314
9315 2011-06-13  Bruno Haible  <bruno@clisp.org>
9316
9317         fseeko: Provide a non-inline replacement of fseek().
9318         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9319         * modules/fseeko (Depends-on): Add fseek.
9320         * modules/fseek (License): Change to LGPLv2+.
9321
9322 2011-06-13  Bruno Haible  <bruno@clisp.org>
9323
9324         ftello: Provide a non-inline replacement of ftell().
9325         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9326         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9327         not have ftello() (such as on mingw).
9328         * modules/ftello (Depends-on): Add ftell.
9329         * modules/ftell (License): Change to LGPLv2+.
9330
9331 2011-05-07  Bruno Haible  <bruno@clisp.org>
9332
9333         ftell: Move AC_LIBOBJ invocations to module description.
9334         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9335         * modules/ftell (configure.ac): ... to here.
9336
9337 2011-05-07  Bruno Haible  <bruno@clisp.org>
9338
9339         ftello: Respect rules for use of AC_LIBOBJ.
9340         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9341         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9342         here...
9343         * modules/ftello (configure.ac): ... to here.
9344
9345 2011-05-07  Bruno Haible  <bruno@clisp.org>
9346
9347         fseeko: Simplify.
9348         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9349         (gl_FUNC_FSEEKO): Inline it here.
9350
9351 2011-05-07  Bruno Haible  <bruno@clisp.org>
9352
9353         fseek: Move AC_LIBOBJ invocations to module description.
9354         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9355         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9356         * modules/fseek (configure.ac): ... to here.
9357
9358 2011-05-07  Bruno Haible  <bruno@clisp.org>
9359
9360         fseek: Respect rules for use of AC_LIBOBJ.
9361         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9362         here...
9363         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9364
9365 2011-05-07  Bruno Haible  <bruno@clisp.org>
9366
9367         fseeko: Respect rules for use of AC_LIBOBJ.
9368         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9369         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9370         here...
9371         * modules/fseeko (configure.ac): ... to here.
9372
9373 2011-06-13  Bruno Haible  <bruno@clisp.org>
9374
9375         gnulib-tool: Allow comments in the 'Depends-on' section.
9376         * doc/gnulib.texi (Module description): Mention comment syntax in the
9377         Depends-on section.
9378         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9379
9380 2011-06-13  Bruno Haible  <bruno@clisp.org>
9381
9382         file-set.h: guard __attibute__ use, now that it's not always defined
9383         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9384         versions that support it.  This fixes a coreutils build failure with
9385         the vendor cc on HP-UX 11.31.
9386
9387 2011-06-12  Bruno Haible  <bruno@clisp.org>
9388
9389         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9390         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9391         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9392         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9393         (acl, aclsort): New declarations.
9394         (aclv_nontrivial): New declaration.
9395         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9396         (file_has_acl): Read also the second kind of HP-UX ACLs.
9397         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9398         kind of HP-UX ACLs if the first kind fails.
9399         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9400         second kind of HP-UX ACLs.
9401         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9402         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9403         agree.
9404         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9405         hpuxjfs.
9406         Handle hpuxjfs.
9407         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9408         hpuxjfs.
9409         Handle hpuxjfs.
9410         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9411         (func_test_same_acls): Use both lsacl and getacl.
9412         Handle hpuxjfs.
9413         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9414         (func_test_same_acls): Use both lsacl and getacl.
9415         Handle hpuxjfs.
9416
9417 2011-06-12  Bruno Haible  <bruno@clisp.org>
9418
9419         acl: Complete the 2010-08-10 fix.
9420         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9421         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9422         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9423         explicitly.
9424         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9425         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9426
9427 2011-06-12  Bruno Haible  <bruno@clisp.org>
9428
9429         spawn-pipe tests: Comments.
9430         * tests/test-spawn-pipe-child.c (main): Update comment.
9431         Reported by James Youngman <jay@gnu.org>.
9432
9433 2011-06-11  James Youngman  <jay@gnu.org>
9434
9435         New module 'stat-size'.
9436         * modules/stat-size: New module.  Provides macros for accessing
9437         file size information in instances of struct stat.  Depends on the
9438         fileblocks module because it calls st_blocks.
9439         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9440         * doc/gnulib.texi: Include stat-size.texi.
9441         * doc/stat-size.texi: Documentation for this module.
9442         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9443         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9444         AC_STRUCT_ST_BLOCKS.
9445
9446 2011-06-09  Bruno Haible  <bruno@clisp.org>
9447
9448         thread: Support pthreads-win32.
9449         * lib/glthread/thread.h (gl_thread_self): Define differently on
9450         pthreads-win32.
9451         (gl_null_thread): New declaration.
9452         (gl_thread_self_pointer): New macro.
9453         * lib/glthread/thread.c (gl_null_thread): New constant.
9454         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9455         gl_thread_self.
9456         * tests/test-tls.c: Likewise.
9457         Suggested by Paul Eggert. Reported by Eric Blake.
9458
9459 2011-06-09  Bruno Haible  <bruno@clisp.org>
9460
9461         thread: Fix confusion between NULL and 0.
9462         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9463         Reported by Paul Eggert.
9464
9465 2011-06-09  Bruno Haible  <bruno@clisp.org>
9466
9467         spawn-pipe tests: Avoid test failure on HP-UX 11.
9468         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9469         is closed.
9470
9471 2011-06-09  Bruno Haible  <bruno@clisp.org>
9472
9473         acl tests: Fix compilation error on HP-UX 11.
9474         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9475
9476 2011-06-09  Bruno Haible  <bruno@clisp.org>
9477
9478         rmdir: Avoid test failure on HP-UX 10.20.
9479         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9480         EEXIST.
9481
9482 2011-06-08  Eric Blake  <eblake@redhat.com>
9483
9484         perror: fix test on mingw
9485         * modules/perror-tests (Depends-on): Add dup2.
9486
9487         strerror_r-posix: fix on MacOS
9488         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9490         logic bug.
9491         * lib/strerror_r.c (strerror_r): Fix the bug.
9492         * lib/strerror.c (strerror): Likewise.
9493         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9494         problem.
9495         * doc/posix-functions/strerror.texi (strerror): Likewise.
9496         * doc/posix-functions/perror.texi (perror): Likewise.
9497         * tests/test-strerror.c (main): Enhance test.
9498         * tests/test-strerror_r.c (main): Likewise.
9499
9500 2011-06-08  Bruno Haible  <bruno@clisp.org>
9501
9502         gnulib-tool: Better isolation between different gnulib-tool invocations.
9503         * gnulib-tool: New option --witness-c-macro.
9504         (witness_c_macro): New variable.
9505         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9506         AM_CPPFLAGS define it as a C macro.
9507         (func_emit_tests_Makefile_am): Likewise.
9508         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9509         read it from there.
9510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9511         m4_define, not AC_DEFUN.
9512         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9513         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9514         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9515         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9516         s|...|...|, to substitute the values of the GNULIB_* module indicator
9517         variables.
9518         * modules/dirent (Makefile.am): Likewise.
9519         * modules/fcntl-h (Makefile.am): Likewise.
9520         * modules/iconv-h (Makefile.am): Likewise.
9521         * modules/langinfo (Makefile.am): Likewise.
9522         * modules/locale (Makefile.am): Likewise.
9523         * modules/math (Makefile.am): Likewise.
9524         * modules/netdb (Makefile.am): Likewise.
9525         * modules/poll-h (Makefile.am): Likewise.
9526         * modules/pty (Makefile.am): Likewise.
9527         * modules/search (Makefile.am): Likewise.
9528         * modules/signal (Makefile.am): Likewise.
9529         * modules/spawn (Makefile.am): Likewise.
9530         * modules/stdio (Makefile.am): Likewise.
9531         * modules/stdlib (Makefile.am): Likewise.
9532         * modules/string (Makefile.am): Likewise.
9533         * modules/sys_ioctl (Makefile.am): Likewise.
9534         * modules/sys_select (Makefile.am): Likewise.
9535         * modules/sys_socket (Makefile.am): Likewise.
9536         * modules/sys_stat (Makefile.am): Likewise.
9537         * modules/sys_times (Makefile.am): Likewise.
9538         * modules/sys_utsname (Makefile.am): Likewise.
9539         * modules/sys_wait (Makefile.am): Likewise.
9540         * modules/termios (Makefile.am): Likewise.
9541         * modules/time (Makefile.am): Likewise.
9542         * modules/unistd (Makefile.am): Likewise.
9543         * modules/wchar (Makefile.am): Likewise.
9544
9545 2011-06-08  Eric Blake  <eblake@redhat.com>
9546
9547         strerror: simplify replacement
9548         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9549         * modules/strerror (configure.ac): No prereqs needed here...
9550         * modules/strerror-override (configure.ac): ...but this needs it.
9551         (Files): Add file for needed prereq macro.
9552
9553 2011-06-08  Bruno Haible  <bruno@clisp.org>
9554
9555         strerror_r-posix: Tweaks.
9556         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9557         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9558         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9559         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9560         (gl_FUNC_STRERROR_R): ... to here.
9561         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9562
9563 2011-06-07  Eric Blake  <eblake@redhat.com>
9564
9565         perror: document fixed bugs
9566         * doc/posix-functions/perror.texi (perror): Document recent
9567         patches.
9568
9569 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9570
9571         stat-time: get_stat_birthtime failure is better-defined
9572         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9573         return a timestamp whose tv_sec and tv_nsec values are both -1.
9574         Previously, the spec said only that the tv_nsec value was negative.
9575         This upward-compatible change simplifies GNU tar a bit.
9576
9577 2011-06-07  Eric Blake  <eblake@redhat.com>
9578
9579         strerror_r-posix: work around cygwin 1.7.9
9580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9581         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9582         bug without replacing strerror_r.
9583         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9584         strerror_r is buggy, but without requiring strerror_r compilation.
9585         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9586
9587         test-perror: relax test to ignore cygwin bug
9588         * tests/test-perror2.c (main): Relax test on requiring detection
9589         of stream errors, and use unbuffered stream.
9590         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9591         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9592         * doc/posix-functions/fputc.texi (fputc): Likewise.
9593         * doc/posix-functions/fputs.texi (fputs): Likewise.
9594         * doc/posix-functions/fputws.texi (fputws): Likewise.
9595         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9596         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9597         * doc/posix-functions/getopt.texi (getopt): Likewise.
9598         * doc/posix-functions/perror.texi (perror): Likewise.
9599         * doc/posix-functions/printf.texi (printf): Likewise.
9600         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9601         * doc/posix-functions/psignal.texi (psignal): Likewise.
9602         * doc/posix-functions/putc.texi (putc): Likewise.
9603         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9604         Likewise.
9605         * doc/posix-functions/putchar.texi (putchar): Likewise.
9606         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9607         Likewise.
9608         * doc/posix-functions/puts.texi (puts): Likewise.
9609         * doc/posix-functions/putwc.texi (putwc): Likewise.
9610         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9611         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9612         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9613         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9614         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9615         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9616         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9617         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9618
9619 2011-05-22  Bruno Haible  <bruno@clisp.org>
9620
9621         strerror: Move AC_LIBOBJ invocations to module description.
9622         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9623         gl_PREREQ_STRERROR invocations from here...
9624         * modules/strerror (configure.ac): ... to here.
9625
9626 2011-05-21  Bruno Haible  <bruno@clisp.org>
9627
9628         perror: Use common idiom.
9629         * modules/perror (configure.ac): Reorder statements.
9630
9631 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9632
9633         tests: fix usage message in 'mktempd_'
9634         * tests/init.sh (mktempd_): In the usage message, use literal
9635         'mktempd_', not '$ME' (which is even undefined), as the name of
9636         the subroutine.
9637
9638 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9639
9640         tests init: new function 'fatal_', for hard errors
9641         Before this patch, the only way offered by tests/init.sh to
9642         properly signal a hard error was the `framework_failure_'
9643         function.  But the error message issued by that function,
9644         as its name would suggest, refers to a set-up failure in the
9645         testsuite, while hard errors can obviously also be due to
9646         other reasons.  The best way to fix this inconsistency is to
9647         introduce a new function with a more general error message.
9648         * tests/init.sh (fatal_): New function.
9649
9650 2011-06-06  Eric Blake  <eblake@redhat.com>
9651
9652         canonicalize-lgpl: use common idiom
9653         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9654         over newer POSIX -Rf.
9655         Reported by Bruno Haible.
9656
9657         canonicalize-lgpl: work around AIX realpath bug
9658         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9659         * doc/posix-functions/realpath.texi (realpath): Document it.
9660         Reported by Bruno Haible.
9661
9662         strerror: work around FreeBSD bug
9663         * lib/strerror.c (strerror): Special case 0.
9664         Reported by Bruno Haible.
9665
9666         strerror-override: avoid bloating errno module
9667         * modules/errno (Files, configure.ac): Move replacement strings...
9668         * modules/strerror-override: ...to new module.
9669         * modules/strerror (Depends-on): Add strerror-override.
9670         * modules/strerror_r-posix (Depends-on): Likewise.
9671         * MODULES.html.sh: Document new module.
9672         Reported by Bruno Haible.
9673
9674 2011-06-06  Bruno Haible  <bruno@clisp.org>
9675
9676         spawn-pipe tests: Rename program.
9677         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9678         * tests/test-spawn-pipe-child.c: Update comment.
9679         * tests/test-spawn-pipe.sh: Update.
9680         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9681
9682         spawn-pipe tests: Link the child program only against libc.
9683         * tests/test-spawn-pipe-child.c: New file, extracted from
9684         tests/test-spawn-pipe.c.
9685         (main): Expect only one argument.
9686         (is_open): New function, copied from tests/test-pipe.c.
9687         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9688         (child_main): Remove function.
9689         (test_pipe): Pass only one argument to the child program.
9690         (main): Remove child process code. Expect the child program's name as
9691         first argument.
9692         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9693         argument.
9694         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9695         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9696         test-spawn-pipe-child against no libraries.
9697
9698 2011-06-06  Bruno Haible  <bruno@clisp.org>
9699
9700         careadlinkat: Avoid mismatch between ssize_t and int.
9701         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9702         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9703
9704 2011-06-06  Jim Meyering  <meyering@redhat.com>
9705
9706         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9707         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9708         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9709
9710 2011-06-05  Bruno Haible  <bruno@clisp.org>
9711
9712         ansi-c++-opt: Interoperability with libtool.
9713         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9714         set the variable to "no", not to ":".
9715         * NEWS: Mention the change.
9716
9717 2011-06-05  Bruno Haible  <bruno@clisp.org>
9718
9719         acl: Fix test failure on AIX 7.
9720         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9721         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9722
9723 2011-06-05  Bruno Haible  <bruno@clisp.org>
9724
9725         pipe-filter-ii: Fix test failure on AIX and IRIX.
9726         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9727         with EAGAIN, retry with a smaller buffer size.
9728
9729 2011-06-05  Bruno Haible  <bruno@clisp.org>
9730
9731         localename: Fix link dependencies.
9732         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9733         * modules/localename-tests (Makefile.am): Link test-localename with
9734         $(LIBTHREAD).
9735
9736 2011-06-05  Bruno Haible  <bruno@clisp.org>
9737
9738         error: Avoid gcc warning.
9739         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9740
9741 2011-06-05  Bruno Haible  <bruno@clisp.org>
9742
9743         unsetenv: Avoid gcc warning.
9744         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9745
9746 2011-06-05  Bruno Haible  <bruno@clisp.org>
9747
9748         setenv: Avoid gcc warning.
9749         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9750
9751 2011-06-05  Bruno Haible  <bruno@clisp.org>
9752
9753         sys_select: Ensure memset is declared also on AIX 7.
9754         * lib/sys_select.in.h: Include <string.h> also on AIX.
9755         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9756         self-contained also on AIX 7.1.
9757
9758 2011-06-04  Jim Meyering  <meyering@redhat.com>
9759
9760         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9761         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9762         function name, "error".
9763         (_gl_translatable_diag_func_re): New configurable variable.
9764
9765 2011-06-04  Bruno Haible  <bruno@clisp.org>
9766
9767         getopt: Avoid gcc warning.
9768         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9769
9770 2011-06-04  Bruno Haible  <bruno@clisp.org>
9771
9772         strerror_r: Fix comments.
9773         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9774         commit.
9775
9776 2011-06-04  Bruno Haible  <bruno@clisp.org>
9777
9778         perror: Fix compilation error.
9779         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9780         Undefine fprintf, not sprintf.
9781         * modules/perror (Depends-on): Remove intprops, verify.
9782
9783 2011-06-04  Bruno Haible  <bruno@clisp.org>
9784
9785         setlocale: Enable replacement on Cygwin 1.5.
9786         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9787         Cygwin 1.5.x.
9788         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9789         LC_CTYPE category also exists on Cygwin 1.5.x.
9790
9791 2011-06-04  Bruno Haible  <bruno@clisp.org>
9792
9793         strerror-override: Don't disable symbol renamings.
9794         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9795         * lib/strerror-override.c: Include config.h.
9796         (strerror_override): Don't undefine.
9797
9798 2011-06-03  Bruno Haible  <bruno@clisp.org>
9799
9800         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9801         * lib/localename.h: Update copyright header.
9802         * lib/localename.c: Likewise.
9803         * lib/relocatable.h: Likewise.
9804         * lib/relocatable.c: Likewise.
9805
9806 2011-06-02  Bruno Haible  <bruno@clisp.org>
9807
9808         doc: Fix a module name.
9809         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9810
9811 2011-06-02  Bruno Haible  <bruno@clisp.org>
9812
9813         pipe2: Remove dependency on 'nonblocking' module.
9814         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9815         O_NONBLOCK is defined by gnulib.
9816         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9817         is zero.
9818         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9819         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9820         defined by gnulib.
9821         (get_nonblocking_flag): New function.
9822         (main): Test O_NONBLOCK flag only if it is nonzero.
9823         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9824
9825 2011-06-03  Jim Meyering  <meyering@redhat.com>
9826
9827         maint: three new prohibit-header-without-use rules
9828         Prohibit use of cloexec.h, posixver.h, same.h without use.
9829         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9830         (sc_prohibit_posixver_without_use): Likewise.
9831         (sc_prohibit_same_without_use): Likewise.
9832
9833 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         allocator: 'die' routine is now given requested size
9836         * lib/allocator.h (struct allocator.die): New size arg.
9837         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9838         If the actual problem is an ssize_t limitation, not a size_t or
9839         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9840
9841 2011-06-01  Eric Blake  <eblake@redhat.com>
9842
9843         strerror: drop strerror_r dependency
9844         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9845         * lib/strerror-override.c (strerror_override): ...to new file.
9846         * lib/strerror-override.h: Add prototype.
9847         * lib/strerror-impl.h: Delete.
9848         * lib/strerror.c (strerror): New implementation.
9849         * modules/errno (Files): Add new files.
9850         (configure.ac): Compile new file as appropriate.
9851         * modules/strerror (Files): Drop unused file.
9852         (Depends-on): Drop strerror_r-posix.
9853         * MODULES.html.sh: Document strerror_r-posix.
9854         Requested by Sam Steingold.
9855
9856         perror: call strerror_r directly
9857         * modules/perror (Files): Drop strerror-impl.h.
9858         * lib/perror.c (perror): Use our own stack buffer, rather than
9859         calling a wrapper that uses static storage.
9860         * doc/posix-functions/perror.texi (perror): Document a limitation
9861         of our replacement.
9862
9863         strerror_r: fix includes for FreeBSD
9864         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9865         since we use abort on some platforms.
9866         Reported by Matthias Bolte.
9867
9868 2011-05-31  Bruno Haible  <bruno@clisp.org>
9869
9870         Fix link errors in tests: openat-die uses gettext-h.
9871         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9872         against $(LIBINTL).
9873         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9874         against $(LIBINTL).
9875         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9876         $(LIBINTL).
9877         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9878         against $(LIBINTL).
9879         * modules/linkat-tests (Makefile.am): Link test-linkat against
9880         $(LIBINTL).
9881         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9882         $(LIBINTL).
9883         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9884         against $(LIBINTL).
9885         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9886         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9887         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9888         $(LIBINTL).
9889         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9890         $(LIBINTL).
9891         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9892         $(LIBINTL).
9893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9894
9895 2011-05-31  Bruno Haible  <bruno@clisp.org>
9896
9897         Fix link errors in tests: wait-process uses gettext-h.
9898         * modules/nonblocking-pipe-tests (Makefile.am): Set
9899         test_nonblocking_pipe_main_LDADD.
9900         * modules/nonblocking-socket-tests (Makefile.am): Link
9901         test-nonblocking-socket-main against $(LIBINTL).
9902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9903
9904 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9905
9906         assert-h: work around 'verify' incompatibility
9907         * lib/verify.h: Use @...@ directives, not ifdef.
9908         * modules/assert-h (assert.h): Implement the directives.
9909         (assert.h): Substitute the symbol-prefix more consistently.
9910
9911 2011-05-29  Jim Meyering  <meyering@redhat.com>
9912
9913         trim: remove three superfluous assignments
9914         * lib/trim.c (trim2): Remove three superfluous assignments
9915         and correct brace positioning.
9916
9917 2011-05-29  Bruno Haible  <bruno@clisp.org>
9918
9919         wctype-h: Avoid namespace pollution on Solaris 2.6.
9920         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9921         identifiers.
9922         * doc/posix-headers/wctype.texi: Mention the problem.
9923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9924
9925 2011-05-28  Jim Meyering  <meyering@redhat.com>
9926
9927         parse-datetime.y: accommodate -Wstrict-overflow
9928         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9929         placate -Wstrict-overflow.
9930
9931         trim: avoid a warning from -O2 -Wstrict-overflow
9932         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9933
9934 2011-05-29  Bruno Haible  <bruno@clisp.org>
9935
9936         gnulib-tool: Fix bug in yesterday's commit.
9937         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9938         twice.
9939
9940 2011-05-29  Bruno Haible  <bruno@clisp.org>
9941
9942         Allow multiple gnulib generated include files to be combined.
9943         * gnulib-tool (func_compute_include_guard_prefix): New function.
9944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9945         ${gl_include_guard_prefix} references.
9946         (func_import, func_create_testdir): Invoke
9947         func_compute_include_guard_prefix.
9948         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9949         * lib/ctype.in.h: Likewise.
9950         * lib/dirent.in.h: Likewise.
9951         * lib/errno.in.h: Likewise.
9952         * lib/fcntl.in.h: Likewise.
9953         * lib/float.in.h: Likewise.
9954         * lib/getopt.in.h: Likewise.
9955         * lib/iconv.in.h: Likewise.
9956         * lib/langinfo.in.h: Likewise.
9957         * lib/locale.in.h: Likewise.
9958         * lib/math.in.h: Likewise.
9959         * lib/netdb.in.h: Likewise.
9960         * lib/netinet_in.in.h: Likewise.
9961         * lib/poll.in.h: Likewise.
9962         * lib/pthread.in.h: Likewise.
9963         * lib/pty.in.h: Likewise.
9964         * lib/sched.in.h: Likewise.
9965         * lib/se-selinux.in.h: Likewise.
9966         * lib/search.in.h: Likewise.
9967         * lib/signal.in.h: Likewise.
9968         * lib/spawn.in.h: Likewise.
9969         * lib/stdarg.in.h: Likewise.
9970         * lib/stddef.in.h: Likewise.
9971         * lib/stdint.in.h: Likewise.
9972         * lib/stdio.in.h: Likewise.
9973         * lib/stdlib.in.h: Likewise.
9974         * lib/string.in.h: Likewise.
9975         * lib/strings.in.h: Likewise.
9976         * lib/sys_file.in.h: Likewise.
9977         * lib/sys_ioctl.in.h: Likewise.
9978         * lib/sys_select.in.h: Likewise.
9979         * lib/sys_socket.in.h: Likewise.
9980         * lib/sys_stat.in.h: Likewise.
9981         * lib/sys_time.in.h: Likewise.
9982         * lib/sys_times.in.h: Likewise.
9983         * lib/sys_uio.in.h: Likewise.
9984         * lib/sys_utsname.in.h: Likewise.
9985         * lib/sys_wait.in.h: Likewise.
9986         * lib/sysexits.in.h: Likewise.
9987         * lib/termios.in.h: Likewise.
9988         * lib/time.in.h: Likewise.
9989         * lib/unistd.in.h: Likewise.
9990         * lib/wchar.in.h: Likewise.
9991         * lib/wctype.in.h: Likewise.
9992         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9993         * modules/ctype (Makefile.am): Likewise.
9994         * modules/dirent (Makefile.am): Likewise.
9995         * modules/errno (Makefile.am): Likewise.
9996         * modules/fcntl-h (Makefile.am): Likewise.
9997         * modules/float (Makefile.am): Likewise.
9998         * modules/getopt-posix (Makefile.am): Likewise.
9999         * modules/iconv-h (Makefile.am): Likewise.
10000         * modules/langinfo (Makefile.am): Likewise.
10001         * modules/locale (Makefile.am): Likewise.
10002         * modules/math (Makefile.am): Likewise.
10003         * modules/netdb (Makefile.am): Likewise.
10004         * modules/netinet_in (Makefile.am): Likewise.
10005         * modules/poll-h (Makefile.am): Likewise.
10006         * modules/pthread (Makefile.am): Likewise.
10007         * modules/pty (Makefile.am): Likewise.
10008         * modules/sched (Makefile.am): Likewise.
10009         * modules/search (Makefile.am): Likewise.
10010         * modules/selinux-h (Makefile.am): Likewise.
10011         * modules/signal (Makefile.am): Likewise.
10012         * modules/spawn (Makefile.am): Likewise.
10013         * modules/stdarg (Makefile.am): Likewise.
10014         * modules/stddef (Makefile.am): Likewise.
10015         * modules/stdint (Makefile.am): Likewise.
10016         * modules/stdio (Makefile.am): Likewise.
10017         * modules/stdlib (Makefile.am): Likewise.
10018         * modules/string (Makefile.am): Likewise.
10019         * modules/strings (Makefile.am): Likewise.
10020         * modules/sys_file (Makefile.am): Likewise.
10021         * modules/sys_ioctl (Makefile.am): Likewise.
10022         * modules/sys_select (Makefile.am): Likewise.
10023         * modules/sys_socket (Makefile.am): Likewise.
10024         * modules/sys_stat (Makefile.am): Likewise.
10025         * modules/sys_time (Makefile.am): Likewise.
10026         * modules/sys_times (Makefile.am): Likewise.
10027         * modules/sys_uio (Makefile.am): Likewise.
10028         * modules/sys_utsname (Makefile.am): Likewise.
10029         * modules/sys_wait (Makefile.am): Likewise.
10030         * modules/sysexits (Makefile.am): Likewise.
10031         * modules/termios (Makefile.am): Likewise.
10032         * modules/time (Makefile.am): Likewise.
10033         * modules/unistd (Makefile.am): Likewise.
10034         * modules/wchar (Makefile.am): Likewise.
10035         * modules/wctype-h (Makefile.am): Likewise.
10036         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10037
10038 2011-05-29  Bruno Haible  <bruno@clisp.org>
10039
10040         assert-h: Allow multiple gnulib generated replacements to coexist.
10041         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10042
10043 2011-05-29  Bruno Haible  <bruno@clisp.org>
10044
10045         argp: Allow coexistence with strerror_r-posix module.
10046         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10047         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10048         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10049         not the glibc signature.
10050
10051 2011-05-28  Bruno Haible  <bruno@clisp.org>
10052
10053         gnulib-tool: Alternative structure of testdirs, similar to --import.
10054         * gnulib-tool: New option --single-configure.
10055         (func_usage): Document it.
10056         (single_configure): New variable.
10057         (func_modules_transitive_closure_separately,
10058         func_modules_transitive_closure_separately,
10059         func_determine_use_libtests, func_modules_add_dummy_separately,
10060         func_modules_to_filelist_separately): New functions, extracted from
10061         func_import.
10062         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10063         (func_import): Use the new functions.
10064         (func_create_testdir): Set final_modules. Handle $single_configure =
10065         true case.
10066
10067 2011-05-28  Bruno Haible  <bruno@clisp.org>
10068
10069         getloadavg: Remove an unreliable safety check.
10070         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10071         getloadavg.c is in place.
10072         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10073         Reported by Sam Steingold <sds@gnu.org>.
10074
10075 2011-05-28  Bruno Haible  <bruno@clisp.org>
10076
10077         doc: Cleanup yet another file produced by texinfo.tex.
10078         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10079
10080 2011-05-28  Bruno Haible  <bruno@clisp.org>
10081
10082         Finish the conditional dependencies mechanism.
10083         * gnulib-tool: New option --no-conditional-dependencies.
10084         (func_usage): Document it. Don't mark --conditional-dependencies as
10085         experimental.
10086         (cond_dependencies): The possible values can now be true, false, empty.
10087         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10088         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10089         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10090
10091 2011-05-28  Bruno Haible  <bruno@clisp.org>
10092
10093         doc: Use a recent texinfo.tex.
10094         * doc/Makefile (tex_opts): New variable.
10095         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10096
10097 2011-05-28  Jim Meyering  <meyering@redhat.com>
10098
10099         intprops.h: adjust comment to match code change
10100         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10101         only once, it *may* have side effects.  Also fix an unrelated typo.
10102         (_GL_INT_SIGNED): Likewise.
10103
10104 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10105
10106         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10107
10108 2011-05-26  Bruno Haible  <bruno@clisp.org>
10109
10110         mbsrchr: Avoid collision with system function on Interix.
10111         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10112         Reported by Markus Duft <mduft@gentoo.org>.
10113
10114 2011-05-15  James Youngman  <jay@gnu.org>
10115
10116         getopt: for ambiguous options, enumerate the possibilities.
10117         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10118         the ambiguous options when an ambiguous prefix is given. This was
10119         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10120         glibc change was
10121         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10122
10123 2011-05-25  Eric Blake  <eblake@redhat.com>
10124
10125         getcwd: work around mingw bug
10126         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10127         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10128         Reported by Matthias Bolte.
10129
10130 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         test-intprops: disable -Wtype-limits diagnostics
10133         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10134         diagnostics.  Otherwise, the integer overflow macros generate many
10135         diagnostics.  Reported by Jim Meyering in
10136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10137
10138         intprops: shorten, to pacify gcc -Woverlength-strings
10139         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10140         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10141         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10142         likely to run afoul of C compiler limits for string constant lengths.
10143         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10144
10145 2011-05-24  Eric Blake  <eblake@redhat.com>
10146
10147         docs: document recently fixed glibc printf bug
10148         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10149         * doc/posix-functions/printf.texi (printf): Likewise.
10150         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10151         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10152
10153         closein-tests: convert to init.sh
10154         * modules/closein-tests (Files): Add init.sh
10155         * tests/test-closein.sh Use it.
10156
10157         yesno-tests: convert to init.sh
10158         * modules/yesno-tests (Files): Add init.sh.
10159         * tests/test-yesno.sh: Use it.
10160
10161         atexit-tests: ensure reliable exit status
10162         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10163         Reported by Bruno Haible.
10164
10165 2011-05-24  Bruno Haible  <bruno@clisp.org>
10166
10167         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10168         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10169         gl_PREREQ_STRERROR_R invocations from here...
10170         * modules/strerror_r-posix (configure.ac): ... to here.
10171
10172 2011-05-24  Eric Blake  <eblake@redhat.com>
10173
10174         strerror_r: fix missing header
10175         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10176
10177         strerror_r: fix AIX test failures
10178         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10179         ERANGE failure.
10180
10181         strerror_r: fix Solaris test failures
10182         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10183         failures.
10184         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10185
10186         strerror_r: enforce POSIX recommendations
10187         * lib/strerror_r.c (safe_copy): New helper method.
10188         (strerror_r): Guarantee a non-empty string.
10189         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10190         recent POSIX rulings and to match our strerror guarantees.
10191         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10192
10193 2011-05-24  Jim Meyering  <meyering@redhat.com>
10194
10195         test-perror2.c: avoid warning about unused variable
10196         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10197
10198 2011-05-24  Eric Blake  <eblake@redhat.com>
10199
10200         perror: avoid spurious test failure on HP-UX
10201         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10202
10203         tests: fix logic bug in init.sh
10204         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10205         shell.
10206
10207 2011-05-24  Jim Meyering  <meyering@redhat.com>
10208
10209         utimensat: do not reference an out-of-scope buffer
10210         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10211         declared in an inner scope, yet "times" would be dereferenced outside
10212         the scope in which "ts" was valid.
10213         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10214         of ts[2] "out/up", so that the use of aliased "times" (via
10215         "times = ts;") does not end up referencing an out-of-scope "ts"
10216
10217         opendir-safer.c: don't clobber errno; don't close negative FD
10218         * lib/opendir-safer.c (opendir_safer):
10219         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10220         file descriptor, and more importantly, don't clobber the
10221         offending errno value with EINVAL.  Before, upon failure
10222         of dup_safer, we would pass the negative file descriptor to
10223         fdopendir, which would clobber errno.
10224
10225 2011-05-23  Bruno Haible  <bruno@clisp.org>
10226
10227         idcache: Fix module description.
10228         * modules/idcache (Include): Set to "idcache.h".
10229
10230 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         gnulib-tool: fix portability problem with MacOS sed
10233         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10234         before the "}".  Problem reported by Leo in
10235         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10236         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10237         sed_extract_condition1, sed_extract_condition2.
10238
10239 2011-05-23  Bruno Haible  <bruno@clisp.org>
10240
10241         hash: Simplify autoconf macro.
10242         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10243
10244 2011-05-23  Bruno Haible  <bruno@clisp.org>
10245
10246         getugroups: Fix module description.
10247         * modules/getugroups (Include): Set to "getugroups.h".
10248
10249 2011-05-23  Bruno Haible  <bruno@clisp.org>
10250
10251         linkat: Simplify autoconf macro.
10252         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10253
10254 2011-05-23  Bruno Haible  <bruno@clisp.org>
10255             Eric Blake  <eblake@redhat.com>
10256
10257         linkat, renameat: Update dependencies.
10258         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10259         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10260         symlinkat.
10261
10262 2011-05-23  Jim Meyering  <meyering@redhat.com>
10263
10264         maint.mk: more tight_scope improvements
10265         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10266         (_gl_TS_headers): Define only in if-0'd block.
10267         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10268         sometimes we must *not* use it.  Adjust uses accordingly.
10269         (sc_tight_scope): Use much simpler grep-based test to determine
10270         whether we skip this rule.
10271
10272         maint.mk: generalize/improve the tight-scope rule
10273         * top/maint.mk: Emit a warning when the test is skipped.
10274         (_gl_TS_dir): Add $(srcdir)/ prefix.
10275         (_gl_TS_function_match): Simplify, rather than trying
10276         to enumerate common types.  Otherwise, it would fail to match an
10277         "extern unsigned char const *" declaration in idutils.
10278         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10279         a way to support use of that type of macro.
10280         (_gl_TS_var_match): Simplify regexp.
10281         (_gl_TS_obj_files): New configurable variable.
10282         (_gl_TS_headers): Likewise.
10283
10284 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10285
10286         verify: fix bug when gnulib <assert.h> is also included
10287         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10288         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10289         Perhaps there's a better way, but this fixes the immediate problem.
10290         Problem reported by Bruno Haible in
10291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10292
10293 2011-05-22  Bruno Haible  <bruno@clisp.org>
10294
10295         xgetcwd: Simplify autoconf macro.
10296         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10297
10298 2011-05-22  Bruno Haible  <bruno@clisp.org>
10299
10300         New module 'mktime-internal'.
10301         * modules/mktime-internal: New file.
10302         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10303         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10304         mktime_internal as a C macro if libc has __mktime_internal.
10305         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10306         conditions.
10307         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10308
10309 2011-05-22  Bruno Haible  <bruno@clisp.org>
10310
10311         timegm: Correct mktime replacement statements.
10312         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10313         defining mktime as a C macro. This completes a 2009-07-28 commit.
10314
10315 2011-05-22  Bruno Haible  <bruno@clisp.org>
10316
10317         timegm: Simplify autoconf macro.
10318         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10319
10320 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10321
10322         clock-time: change to LGPLv2+.
10323         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10324         BSD-like but we have no mark for that; this is good enough for now.
10325
10326 2011-05-21  Bruno Haible  <bruno@clisp.org>
10327
10328         strerror_r: Fix comments.
10329         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10330
10331 2011-05-21  Bruno Haible  <bruno@clisp.org>
10332
10333         relocatable-prog-wrapper: Fix possible link error.
10334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10335         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10336         (gl_FUNC_SETENV): ... to here.
10337         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10338         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10339
10340 2011-05-21  Bruno Haible  <bruno@clisp.org>
10341
10342         relocatable-prog-wrapper: Assume strerror() exists.
10343         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10344         m4/strerror.m4.
10345         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10346         * lib/relocwrapper.c: Remove mention of strerror module.
10347         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10348         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10349         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10350         C macro.
10351
10352 2011-05-21  Bruno Haible  <bruno@clisp.org>
10353
10354         select: Simplify replacement idiom.
10355         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10356         Win32 platforms.
10357         * lib/sys_select.in.h (select): Simplify accordingly.
10358         * modules/select (Depends-on): Likewise.
10359
10360 2011-05-21  Bruno Haible  <bruno@clisp.org>
10361
10362         mkdir-p: Simplify autoconf macro.
10363         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10364         gl_FUNC_LCHOWN.
10365
10366 2011-05-21  Eric Blake  <eblake@redhat.com>
10367
10368         strerror_r: avoid clobbering strerror on cygwin
10369         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10370         fall back instead to sys_errlist.
10371         * modules/strerror (configure.ac): Add witness.
10372         * tests/test-strerror_r.c (main): Enhance test.
10373         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10374         * tests/test-perror2.c (main): Free memory before exit.
10375
10376 2011-05-21  Bruno Haible  <bruno@clisp.org>
10377
10378         mkdtemp: Use gnulib naming conventions.
10379         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10380         * modules/mkdtemp (configure.ac): Update.
10381
10382 2011-05-20  Eric Blake  <eblake@redhat.com>
10383
10384         strerror_r: avoid corrupting errno on Solaris
10385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10386         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10387
10388         strerror_r: avoid compiler warning
10389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10390
10391         strerror_r: simplify AIX code
10392         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10393
10394         test-perror: avoid spurious failure on FreeBSD
10395         * modules/perror-tests (Depends-on): Add strerror, now that
10396         strerror_r no longer pulls it in.
10397
10398 2011-05-20  Bruno Haible  <bruno@clisp.org>
10399
10400         strerror_r-posix: Remove unused dependencies.
10401         * modules/strerror_r-posix (Depends-on): Remove strerror.
10402         Reported by Eric Blake.
10403
10404 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10405
10406         intprops: remove assumption about A|B representation
10407         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10408         is a valid integer if both A and B are.  Although this is true for
10409         all known practical hosts, the C standard doesn't guarantee it,
10410         and the code need not assume it.  Also, this change may work around
10411         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10413
10414 2011-05-20  Eric Blake  <eblake@redhat.com>
10415
10416         perror: work around FreeBSD bug
10417         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10418         is broken.  Move AC_LIBOBJ...
10419         * modules/perror (configure.ac): Here.
10420         * doc/posix-functions/perror.texi (perror): Document this.
10421         * tests/test-perror2.c (main): Enhance test.
10422
10423         test-perror: check for strerror interactions
10424         * tests/macros.h (STREQ): Add macro.
10425         * modules/perror-tests (Files): Add second test.
10426         * tests/test-perror2.c (main): New file.
10427         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10428
10429         test-perror: rewrite to use init script
10430         * modules/perror-tests (Files): Add init.sh.
10431         * tests/test-perror.sh: Use temporary directory.
10432
10433 2011-05-20  Jim Meyering  <meyering@redhat.com>
10434
10435         maint: replace misused "a" with "an"
10436         * doc/intprops.texi: "a integer"
10437         * doc/regex.texi: "a explanation"
10438         * lib/alignof.h: "a object"
10439         * lib/argmatch.h: "a explanation"
10440         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10441         * lib/stdint.in.h: "a integer"
10442         * lib/userspec.c: "a owner"
10443         * doc/gnulib.texi: Fix "a idea", and reword.
10444
10445 2011-05-19  Jim Meyering  <meyering@redhat.com>
10446
10447         maint: correct misuse of "a" and "an"
10448         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10449         * lib/argp-help.c: "an docum...": s/an/a/
10450         * lib/argp-parse.c: "An vector": s/An/A/
10451         * lib/execute.c: "an native": s/an/a/
10452         * lib/spawn-pipe.c: Likewise.
10453         * lib/gc.h: "an Gc_rc": s/an/a/
10454         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10455         * lib/fts.c: "an stat.st_dev": s/an/a/
10456
10457 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10458
10459         intprops-tests: work around HP-UX 11.23 cc bug with constants
10460         * tests/test-intprops.c (VERIFY): New macro.
10461         (main): Use it, instead of verify, to work around the compiler bug; see
10462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10463
10464         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10465         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10466         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10467         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10468         (_GL_REMAINDER_OVERFLOW): Use it.
10469
10470         intprops-tests: revert unsigned part of previous change
10471         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10472         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10473         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10475
10476 2011-05-19  Bruno Haible  <bruno@clisp.org>
10477
10478         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10479         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10480         strerror_r() returned without filling the buffer.
10481         Reported by Eric Blake.
10482
10483 2011-05-19  Eric Blake  <eblake@redhat.com>
10484
10485         strerror_r: guarantee unchanged errno
10486         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10487         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10488         failure.
10489         * tests/test-strerror_r.c (main): Enhance test.
10490
10491 2011-05-19  Bruno Haible  <bruno@clisp.org>
10492
10493         strerror_r: Reorder #if blocks.
10494         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10495         for consistency with the previous commit.
10496
10497 2011-05-19  Bruno Haible  <bruno@clisp.org>
10498
10499         perror: Avoid clobbering the strerror buffer when possible.
10500         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10501         * lib/strerror.c: Include it.
10502         * modules/strerror (Files): Add lib/strerror-impl.h.
10503         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10504         (my_strerror): New function, defined through lib/strerror-impl.h.
10505         (perror): Use it instead of strerror.
10506         * modules/perror (Files): Add lib/strerror-impl.h.
10507         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10508
10509 2011-05-19  Eric Blake  <eblake@redhat.com>
10510
10511         strerror_r: fix on newer cygwin
10512         * lib/strerror_r.c (strerror_r): Cygwin now has
10513         __xpg_strerror_r, use it.
10514
10515 2011-05-19  Bruno Haible  <bruno@clisp.org>
10516
10517         strerror_r: Avoid clobbering the strerror buffer when possible.
10518         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10519         (sys_nerr, sys_errlist): New declarations.
10520         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10521         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10522         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10523
10524 2011-05-19  Bruno Haible  <bruno@clisp.org>
10525
10526         strerror_r: Fix test failure on mingw.
10527         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10528         EXTEND_STRERROR_R.
10529         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10530         macros from errno.in.h instead.
10531
10532 2011-05-19  Eric Blake  <eblake@redhat.com>
10533
10534         strerror: relax test for Solaris
10535         * tests/test-strerror.c (main): Permit Solaris behavior.
10536         * tests/test-strerror_r.c (main): Likewise.
10537
10538         strerror: enforce POSIX ruling on strerror(0)
10539         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10541         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10542         * doc/posix-functions/strerror.texi (strerror): Document it.
10543         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10544         * tests/test-strerror.c (main): Strengthen test.
10545         * tests/test-strerror_r.c (main): Likewise.
10546
10547 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         intprop-tests: port to older and more-pedantic compilers
10550         * modules/intprops-tests (Files): Add tests/macros.h.
10551         * tests/test-intprops.c: Include macros.h.
10552         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10553         it's no longer documented to expand to an integer constant expression.
10554         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10555         argument is floating point, as it's no longer documented to expand
10556         to an integer constant expression in that case.
10557         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10558         compiler bugs reported by Bruno Haible.  See
10559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10560         (U0, U1): New constants, to work around the same bugs.  Also,
10561         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10562
10563         intprops: work around C compiler bugs
10564         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10565         bug in Sun C 5.11 2010/08/13 and other compilers; see
10566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10567
10568         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10569         * doc/intprops.texi (Integer Type Determination): Fix
10570         documentation for TYPE_IS_INTEGER: it returns an constant
10571         expression, not an integer constant expression.  Fix doc for
10572         TYPE_SIGNED: it returns an integer constant expression only if its
10573         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10574         hardly worth documented that way....)
10575
10576 2011-05-18  Bruno Haible  <bruno@clisp.org>
10577
10578         strerror_r: Avoid clobbering the strerror buffer when possible.
10579         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10580         Handle gnulib defined errno values here. When strerror() returns NULL
10581         or an empty string, return EINVAL.
10582         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10583         gnulib defined errno values here.
10584         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10585
10586 2011-05-18  Eric Blake  <eblake@redhat.com>
10587
10588         fnmatch: avoid compiler warning
10589         * lib/fnmatch_loop.c (FCT): Use correct type.
10590         Reported by Matthias Bolte.
10591
10592 2011-05-13  Jim Meyering  <meyering@redhat.com>
10593
10594         maint.mk: three new prohibit_<HDR>_without_use rules
10595         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10596         (sc_prohibit_stdio-safer_without_use): Likewise.
10597         (sc_prohibit_xfreopen_without_use): Likewise.
10598
10599 2011-05-17  Jim Meyering  <meyering@redhat.com>
10600
10601         announce-gen: fail if the NEWS delta is empty
10602         If there's nothing noteworthy in NEWS, then either you forgot
10603         or you shouldn't be releasing.
10604         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10605
10606 2011-05-17  Pádraig Brady <P@draigBrady.com>
10607
10608         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10609         reserved symbols starting with double underscore from the check.
10610
10611 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10612
10613         intprops: add doc
10614         * doc/intprops.texi: New file, documenting intprops.
10615         * doc/gnulib.texi (Particular Modules): Include it.
10616
10617         verify: add doc to gnulib manual and fix example
10618         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10619         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10620         (Compile-time Assertions): Fix example so it can't overflow.
10621
10622 2011-05-17  Jim Meyering  <meyering@redhat.com>
10623
10624         warnings.m4: don't usurp save_CPPFLAGS variable name
10625         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10626
10627         doc: fix typo
10628         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10629
10630 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10631             Bruno Haible  <bruno@clisp.org>
10632
10633         doc: Tweak recent change.
10634         * README (Portability guidelines): Tweak new text.
10635         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10636         Interix 6.1.
10637
10638 2011-05-16  Eric Blake  <eblake@redhat.com>
10639
10640         inttypes: avoid autoconf warning
10641         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10642         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10643
10644 2011-05-16  Sam Steingold <sds@gnu.org>
10645         and Eric Blake  <eblake@redhat.com>
10646
10647         vc-list-files: accept multiple directory operands
10648         * build-aux/vc-list-files: Iterate over all remaining operands.
10649
10650 2011-05-16  Bruno Haible  <bruno@clisp.org>
10651
10652         Fix confusion regarding deprecated modules.
10653         * modules/calloc (Status, Notice): Mark module as deprecated, not
10654         obsolete.
10655         * modules/fnmatch-posix (Status, Notice): Likewise.
10656         * modules/getdate (Status, Notice): Likewise.
10657         * modules/getopt (Status, Notice): Likewise.
10658         * modules/malloc (Status, Notice): Likewise.
10659         * modules/pipe (Status, Notice): Likewise.
10660         * modules/realloc (Status, Notice): Likewise.
10661         * modules/rename-dest-slash (Status, Notice): Likewise.
10662         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10663         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10664         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10665         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10666         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10667
10668 2011-05-16  Bruno Haible  <bruno@clisp.org>
10669
10670         doc: List the target platforms.
10671         * doc/gnulib-intro.texi (Target Platforms): New section.
10672         * doc/gnulib.texi (Introduction): Update menu.
10673         * README (Portability guidelines): Refer to the new section. Update
10674         statement about oldest supported environment. Remove rationale why
10675         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10676         unportable C89 function.
10677         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10678         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10679
10680 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10681
10682         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10683
10684 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10685
10686         intprops-tests: new module
10687         * modules/intprops-tests, tests/test-intprops.c: New files.
10688
10689         intprops: add safe, portable integer overflow checking
10690         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10691         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10692         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10693         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10694         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10695         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10696         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10697         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10698         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10699         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10700         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10701
10702 2011-05-12  James Youngman  <jay@gnu.org>
10703
10704         Add a test for glibc's Bugzilla bug #12378.
10705         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10706         doesn't allow the literal matching of a lone "[" (which is
10707         required by POSIX).
10708         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10709
10710 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10711
10712         Sync glibc change fixing Bugzilla bug #12378.
10713         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10714         beginning and fall back to matching as normal character if the
10715         string ends before the matching ']' is found.  This is what POSIX
10716         requires.
10717
10718 2011-05-13  Eric Blake  <eblake@redhat.com>
10719
10720         getcwd-lgpl: relax test for FreeBSD
10721         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10722         issue.
10723         * tests/test-getcwd-lgpl.c (main): Relax test.
10724         Reported by Matthias Bolte.
10725
10726 2011-05-11  Eric Blake  <eblake@redhat.com>
10727
10728         test-fflush: silence compiler warning
10729         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10730
10731 2011-05-11  Bruno Haible  <bruno@clisp.org>
10732
10733         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10734         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10735         * modules/canonicalize (Depends-on): Add 'nocrash'.
10736         * modules/canonicalize-lgpl (Depends-on): Likewise.
10737         * doc/posix-functions/realpath.texi: Update platforms list.
10738         Reported by Ryan Schmidt <ryandesign@macports.org>.
10739
10740 2011-05-11  Bruno Haible  <bruno@clisp.org>
10741
10742         group-member: Declare function in <unistd.h>.
10743         * lib/unistd.in.h (group_member): New declaration.
10744         * lib/group-member.h: Remove file.
10745         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10746         * tests/test-unistd-c++.cc: Check signature of group_member.
10747         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10748         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10749         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10751         HAVE_GROUP_MEMBER.
10752         * modules/group-member (Files): Remove lib/group-member.h.
10753         (Depends-on): Add unistd. Specify conditions.
10754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10755         (Include): Change to <unistd.h>.
10756         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10757         HAVE_GROUP_MEMBER.
10758         * NEWS: Mention the change.
10759         * lib/euidaccess.c: Don't include group-member.h.
10760
10761 2011-05-11  Bruno Haible  <bruno@clisp.org>
10762
10763         group-member: Document module.
10764         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10765         module.
10766
10767 2011-05-11  Bruno Haible  <bruno@clisp.org>
10768
10769         fclose: Fix mistake earlier today.
10770         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10771
10772 2011-05-11  Eric Blake  <eblake@redhat.com>
10773
10774         fclose: preserve fflush errors
10775         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10776         Reported by Jim Meyering.
10777
10778         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10779         * build-aux/bootstrap (check_versions): When no specific version
10780         is required, merely check that the app produces an exit status
10781         that indicates its existence.
10782
10783         maint.mk: drop redundant check
10784         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10785         the same but better.
10786
10787 2011-05-11  Bruno Haible  <bruno@clisp.org>
10788
10789         fclose: Fix possible link error.
10790         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10791         unregister_shadow_fd. Improve comments.
10792         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10793         Eric Blake.
10794
10795 2011-05-11  Jim Meyering  <meyering@redhat.com>
10796
10797         maint.mk: improve "can not" detection and generalize rule name
10798         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10799         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10800         Use the same technique as in sc_prohibit_doubled_word, so that
10801         we recognize "can not" also when the words are separated by a newline.
10802         Suggested by Eric Blake.
10803         (perl_filename_lineno_text_): Define.  Factored out of...
10804         (prohibit_doubled_word_): ...here.  Use the new definition.
10805         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10806         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10807         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10808
10809 2011-05-10  Eric Blake  <eblake@redhat.com>
10810
10811         fclose: avoid double close race when possible
10812         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10813         all but WINDOWS_SOCKETS.
10814
10815 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10816
10817         openat: correct new comment
10818         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10819
10820 2011-05-10  Jim Meyering  <meyering@redhat.com>
10821
10822         openat: add comments
10823         * lib/openat-proc.c (openat_proc_name): Add comments,
10824         mostly from Eric Blake.
10825
10826 2011-05-09  Eric Blake  <eblake@redhat.com>
10827
10828         openat: reduce syscalls in first probe of /proc
10829         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10830         be a directory.  Simplify the probe for .. bugs.
10831         * modules/openat (Depends-on): Drop same-inode.
10832         Reported by Bastien ROUCARIES.
10833
10834 2011-05-09  Jim Meyering  <meyering@redhat.com>
10835
10836         maint.mk: change semantics/name of tight_scope variables
10837         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10838         Rename variables to align with semantics that make them more useful.
10839
10840         maint.mk: tweak new rule's name not to impinge
10841         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10842         (sc_tight_scope): Use new rule name rather than $@-0.
10843
10844         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10845         * top/maint.mk (sc_tight_scope): New rule.
10846         (sc_tight_scope-0): New rule, ifdef'd out.
10847         (_gl_TS_dir): Default.
10848         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10849         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10850
10851 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10852
10853         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10854         Haible <bruno@clisp.org>.
10855
10856 2011-05-08  Bruno Haible  <bruno@clisp.org>
10857
10858         Comments.
10859         * m4/isnanf.m4: Add comment.
10860         * m4/isnanl.m4: Likewise.
10861
10862 2011-05-08  Bruno Haible  <bruno@clisp.org>
10863
10864         glob: Remove obsolete macro.
10865         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10866
10867 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10868
10869         intprops: Sun C 5.11 supports __typeof__
10870         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10871         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10872         which is new.
10873         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10874
10875         intprops: switch to usual gnulib indenting and naming
10876         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10877         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10878
10879         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10880
10881 2011-05-08  Jim Meyering  <meyering@redhat.com>
10882
10883         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10884         * top/maint.mk (release-prep): Use make's --no-print-directory
10885         option when generating the announcement.  This eliminates the
10886         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10887         generated announcement template.
10888
10889 2011-05-08  Bruno Haible  <bruno@clisp.org>
10890
10891         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10892         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10893         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10894
10895 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10896
10897         ignore-value, verify: Omit include files from lib_SOURCES.
10898         * modules/ignore-value, modules/verify (Makefile.am):
10899         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10900         that leads Automake to duplicate use of am__objects_... variables
10901         in Makefile.in.  See
10902         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10903
10904 2011-05-07  Bruno Haible  <bruno@clisp.org>
10905
10906         fclose: Simplify autoconf macro.
10907         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10908         defined.
10909
10910 2011-05-07  Bruno Haible  <bruno@clisp.org>
10911
10912         canonicalize-lgpl: Fix autoconf macro ordering bug.
10913         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10914         gl_STDLIB_H_DEFAULTS.
10915
10916 2011-05-06  Eric Blake  <eblake@redhat.com>
10917
10918         maintainer-makefile: make sc_po_check easier to tune
10919         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10920         to probe for strings, such as an alternate location for gnulib.
10921
10922         fclose: guarantee behavior on seekable stdin
10923         * modules/fclose (Depends-on): Add fflush.
10924         * doc/posix-functions/fclose.texi (fclose): Document this.
10925         * tests/test-fclose.c (main): Make test for this unconditional.
10926
10927 2011-05-06  Bruno Haible  <bruno@clisp.org>
10928
10929         fflush, fpurge: Relicense under LGPLv2+.
10930         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10931         * modules/fpurge (License): Likewise.
10932         With permission from Eric Blake and Jim Meyering.
10933         Suggested by Eric Blake.
10934
10935 2011-05-06  Karl Berry  <karl@gnu.org>
10936
10937         * MODULES.html.sh (func_all_modules): remove exit.
10938
10939 2011-05-06  Jim Meyering  <meyering@redhat.com>
10940
10941         maint.mk: use info-gnu@ as the default only for a stable release
10942         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10943         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10944         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10946
10947 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10948
10949         assert-h: new module, which supports C1X-style static_assert
10950         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10951         * lib/verify.h: Revamp so that this can be copied into assert.h,
10952         while retaining the ability to use it standalone as before.
10953         Rename private identifiers so as not to encroach on the
10954         standard C namespace, since this is now used by assert.h.
10955         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10956         the old verify_true.
10957         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10958         the old verify_true.  Use _GL_VERIFY_TYPE.
10959         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10960         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10961         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10962         defined when this file is copied into the replacement assert.h.
10963         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10964         and _Static_assert is not built in.
10965         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10966         defined, and use the new macros mentioned above.
10967         * doc/posix-headers/assert.texi: Document this.
10968
10969 2011-05-05  Bruno Haible  <bruno@clisp.org>
10970
10971         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10972         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10973         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10974         gl_REPLACE_FCLOSE here.
10975         * modules/fflush (Depends-on): Remove fclose.
10976         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10977         combination with module 'fclose'.
10978
10979 2011-05-05  Bruno Haible  <bruno@clisp.org>
10980
10981         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10982         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10983         gl_FUNC_FFLUSH.
10984         (gl_FUNC_FFLUSH): Use it.
10985         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10986         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10987         gl_REPLACE_FSEEKO here.
10988
10989 2011-05-05  Bruno Haible  <bruno@clisp.org>
10990
10991         tzset: Relicense under LGPL.
10992         * modules/tzset (License): Change to LGPL.
10993         No agreement needed; it's a no-op.
10994
10995         strtoimax, strtoumax: Relicense under LGPL.
10996         * modules/strtoimax (License): Change to LGPL.
10997         * modules/strtoumax (License): Likewise.
10998         With permission from Jim Meyering, Paul Eggert:
10999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11001
11002         getgroups: Relicense under LGPL.
11003         * modules/getgroups (License): Change to LGPL.
11004         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11008
11009         nanosleep: Relicense under LGPL.
11010         * modules/nanosleep (License): Change to LGPL.
11011         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11012         Haible:
11013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11017
11018         futimens: Relicense under LGPL.
11019         * modules/futimens (License): Change to LGPL.
11020         With permission from Eric Blake:
11021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11022
11023         fflush: Relicense under LGPL.
11024         * modules/fflush (License): Change to LGPL.
11025         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11029
11030         tmpfile: Relicense under LGPL.
11031         * modules/tmpfile (License): Change to LGPL.
11032         With permission from Ben Pfaff:
11033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11034
11035         isfinite: Relicense under LGPL.
11036         * modules/isfinite (License): Change to LGPL.
11037         With permission from Ben Pfaff, Bruno Haible:
11038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11040
11041         acosl..tanl: Relicense under LGPL.
11042         * modules/acosl (License): Change to LGPL.
11043         * modules/asinl (License): Likewise.
11044         * modules/atanl (License): Likewise.
11045         * modules/cosl (License): Likewise.
11046         * modules/expl (License): Likewise.
11047         * modules/logl (License): Likewise.
11048         * modules/sinl (License): Likewise.
11049         * modules/sqrtl (License): Likewise.
11050         * modules/tanl (License): Likewise.
11051         Source code originally from glibc and Paolo Bonzini. Agreements:
11052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11054
11055 2011-05-05  Bruno Haible  <bruno@clisp.org>
11056
11057         signal: Define sighandler_t.
11058         * lib/signal.in.h (sighandler_t): New type.
11059         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11060         whether sighandler_t is defined.
11061         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11062         * modules/signal (Depends-on): Add extensions.
11063         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11064         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11065         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11066
11067 2011-05-05  Eric Blake  <eblake@redhat.com>
11068
11069         maint: remove useless REPLACE_*_H macros
11070         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11071         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11072         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11073         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11074         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11075         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11076         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11077         * m4/btowc.m4: Update callers.
11078         * m4/dirfd.m4: Likewise.
11079         * m4/duplocale.m4: Likewise.
11080         * m4/fchdir.m4: Likewise.
11081         * m4/fdopendir.m4: Likewise.
11082         * m4/inet_ntop.m4: Likewise.
11083         * m4/inet_pton.m4: Likewise.
11084         * m4/ioctl.m4: Likewise.
11085         * m4/mbrlen.m4: Likewise.
11086         * m4/mbrtowc.m4: Likewise.
11087         * m4/mbsinit.m4: Likewise.
11088         * m4/mbsnrtowcs.m4: Likewise.
11089         * m4/mbsrtowcs.m4: Likewise.
11090         * m4/poll.m4: Likewise.
11091         * m4/setlocale.m4: Likewise.
11092         * m4/wcrtomb.m4: Likewise.
11093         * m4/wcsnrtombs.m4: Likewise.
11094         * m4/wcsrtombs.m4: Likewise.
11095         * m4/wctob.m4: Likewise.
11096         * m4/wcwidth.m4: Likewise.
11097         * modules/posix_spawn: Likewise.
11098         * modules/posix_spawn_file_actions_addclose: Likewise.
11099         * modules/posix_spawn_file_actions_adddup2: Likewise.
11100         * modules/posix_spawn_file_actions_addopen: Likewise.
11101         * modules/posix_spawn_file_actions_destroy: Likewise.
11102         * modules/posix_spawn_file_actions_init: Likewise.
11103         * modules/posix_spawnattr_destroy: Likewise.
11104         * modules/posix_spawnattr_getflags: Likewise.
11105         * modules/posix_spawnattr_getpgroup: Likewise.
11106         * modules/posix_spawnattr_getschedparam: Likewise.
11107         * modules/posix_spawnattr_getschedpolicy: Likewise.
11108         * modules/posix_spawnattr_getsigdefault: Likewise.
11109         * modules/posix_spawnattr_getsigmask: Likewise.
11110         * modules/posix_spawnattr_init: Likewise.
11111         * modules/posix_spawnattr_setflags: Likewise.
11112         * modules/posix_spawnattr_setpgroup: Likewise.
11113         * modules/posix_spawnattr_setschedparam: Likewise.
11114         * modules/posix_spawnattr_setschedpolicy: Likewise.
11115         * modules/posix_spawnattr_setsigdefault: Likewise.
11116         * modules/posix_spawnattr_setsigmask: Likewise.
11117         * modules/posix_spawnp: Likewise.
11118
11119 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11120
11121         Add option to do-release-commit-and-tag to specify branch.
11122         * build-aux/do-release-commit-and-tag: Add --branch.
11123
11124 2011-05-03  Bruno Haible  <bruno@clisp.org>
11125
11126         Avoid unnecessary compilation units, through conditional dependencies.
11127         * modules/accept (Depends-on): Add conditions to the dependencies.
11128         * modules/acosl (Depends-on): Likewise.
11129         * modules/argz (Depends-on): Likewise.
11130         * modules/asinl (Depends-on): Likewise.
11131         * modules/atanl (Depends-on): Likewise.
11132         * modules/atoll (Depends-on): Likewise.
11133         * modules/bind (Depends-on): Likewise.
11134         * modules/btowc (Depends-on): Likewise.
11135         * modules/canonicalize-lgpl (Depends-on): Likewise.
11136         * modules/ceil (Depends-on): Likewise.
11137         * modules/ceilf (Depends-on): Likewise.
11138         * modules/ceill (Depends-on): Likewise.
11139         * modules/chdir-long (Depends-on): Likewise.
11140         * modules/chown (Depends-on): Likewise.
11141         * modules/close (Depends-on): Likewise.
11142         * modules/connect (Depends-on): Likewise.
11143         * modules/cosl (Depends-on): Likewise.
11144         * modules/dirfd (Depends-on): Likewise.
11145         * modules/dprintf (Depends-on): Likewise.
11146         * modules/dprintf-posix (Depends-on): Likewise.
11147         * modules/error (Depends-on): Likewise.
11148         * modules/euidaccess (Depends-on): Likewise.
11149         * modules/expl (Depends-on): Likewise.
11150         * modules/faccessat (Depends-on): Likewise.
11151         * modules/fchdir (Depends-on): Likewise.
11152         * modules/fclose (Depends-on): Likewise.
11153         * modules/fcntl (Depends-on): Likewise.
11154         * modules/fdopendir (Depends-on): Likewise.
11155         * modules/fflush (Depends-on): Likewise.
11156         * modules/floor (Depends-on): Likewise.
11157         * modules/floorf (Depends-on): Likewise.
11158         * modules/floorl (Depends-on): Likewise.
11159         * modules/fnmatch (Depends-on): Likewise.
11160         * modules/fopen (Depends-on): Likewise.
11161         * modules/fprintf-posix (Depends-on): Likewise.
11162         * modules/frexp (Depends-on): Likewise.
11163         * modules/frexp-nolibm (Depends-on): Likewise.
11164         * modules/frexpl (Depends-on): Likewise.
11165         * modules/frexpl-nolibm (Depends-on): Likewise.
11166         * modules/fseek (Depends-on): Likewise.
11167         * modules/fsusage (Depends-on): Likewise.
11168         * modules/ftell (Depends-on): Likewise.
11169         * modules/ftello (Depends-on): Likewise.
11170         * modules/futimens (Depends-on): Likewise.
11171         * modules/getcwd (Depends-on): Likewise.
11172         * modules/getcwd-lgpl (Depends-on): Likewise.
11173         * modules/getdelim (Depends-on): Likewise.
11174         * modules/getdomainname (Depends-on): Likewise.
11175         * modules/getgroups (Depends-on): Likewise.
11176         * modules/gethostname (Depends-on): Likewise.
11177         * modules/getline (Depends-on): Likewise.
11178         * modules/getlogin_r (Depends-on): Likewise.
11179         * modules/getopt-posix (Depends-on): Likewise.
11180         * modules/getpeername (Depends-on): Likewise.
11181         * modules/getsockname (Depends-on): Likewise.
11182         * modules/getsockopt (Depends-on): Likewise.
11183         * modules/getsubopt (Depends-on): Likewise.
11184         * modules/getusershell (Depends-on): Likewise.
11185         * modules/glob (Depends-on): Likewise.
11186         * modules/grantpt (Depends-on): Likewise.
11187         * modules/iconv_open (Depends-on): Likewise.
11188         * modules/iconv_open-utf (Depends-on): Likewise.
11189         * modules/inet_ntop (Depends-on): Likewise.
11190         * modules/inet_pton (Depends-on): Likewise.
11191         * modules/ioctl (Depends-on): Likewise.
11192         * modules/isapipe (Depends-on): Likewise.
11193         * modules/isfinite (Depends-on): Likewise.
11194         * modules/isinf (Depends-on): Likewise.
11195         * modules/lchown (Depends-on): Likewise.
11196         * modules/ldexpl (Depends-on): Likewise.
11197         * modules/link (Depends-on): Likewise.
11198         * modules/linkat (Depends-on): Likewise.
11199         * modules/listen (Depends-on): Likewise.
11200         * modules/logl (Depends-on): Likewise.
11201         * modules/lstat (Depends-on): Likewise.
11202         * modules/mbrlen (Depends-on): Likewise.
11203         * modules/mbrtowc (Depends-on): Likewise.
11204         * modules/mbsinit (Depends-on): Likewise.
11205         * modules/mbsnrtowcs (Depends-on): Likewise.
11206         * modules/mbsrtowcs (Depends-on): Likewise.
11207         * modules/mbtowc (Depends-on): Likewise.
11208         * modules/memcmp (Depends-on): Likewise.
11209         * modules/mkdir (Depends-on): Likewise.
11210         * modules/mkdtemp (Depends-on): Likewise.
11211         * modules/mkfifo (Depends-on): Likewise.
11212         * modules/mkfifoat (Depends-on): Likewise.
11213         * modules/mknod (Depends-on): Likewise.
11214         * modules/mkostemp (Depends-on): Likewise.
11215         * modules/mkostemps (Depends-on): Likewise.
11216         * modules/mkstemp (Depends-on): Likewise.
11217         * modules/mkstemps (Depends-on): Likewise.
11218         * modules/mktime (Depends-on): Likewise.
11219         * modules/nanosleep (Depends-on): Likewise.
11220         * modules/open (Depends-on): Likewise.
11221         * modules/openat (Depends-on): Likewise.
11222         * modules/perror (Depends-on): Likewise.
11223         * modules/poll (Depends-on): Likewise.
11224         * modules/popen (Depends-on): Likewise.
11225         * modules/posix_spawn (Depends-on): Likewise.
11226         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11227         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11228         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11229         * modules/posix_spawnp (Depends-on): Likewise.
11230         * modules/pread (Depends-on): Likewise.
11231         * modules/printf-posix (Depends-on): Likewise.
11232         * modules/ptsname (Depends-on): Likewise.
11233         * modules/putenv (Depends-on): Likewise.
11234         * modules/pwrite (Depends-on): Likewise.
11235         * modules/readline (Depends-on): Likewise.
11236         * modules/readlink (Depends-on): Likewise.
11237         * modules/readlinkat (Depends-on): Likewise.
11238         * modules/recv (Depends-on): Likewise.
11239         * modules/recvfrom (Depends-on): Likewise.
11240         * modules/regex (Depends-on): Likewise.
11241         * modules/remove (Depends-on): Likewise.
11242         * modules/rename (Depends-on): Likewise.
11243         * modules/renameat (Depends-on): Likewise.
11244         * modules/rmdir (Depends-on): Likewise.
11245         * modules/round (Depends-on): Likewise.
11246         * modules/roundf (Depends-on): Likewise.
11247         * modules/roundl (Depends-on): Likewise.
11248         * modules/rpmatch (Depends-on): Likewise.
11249         * modules/select (Depends-on): Likewise.
11250         * modules/send (Depends-on): Likewise.
11251         * modules/sendto (Depends-on): Likewise.
11252         * modules/setenv (Depends-on): Likewise.
11253         * modules/setlocale (Depends-on): Likewise.
11254         * modules/setsockopt (Depends-on): Likewise.
11255         * modules/shutdown (Depends-on): Likewise.
11256         * modules/sigaction (Depends-on): Likewise.
11257         * modules/signbit (Depends-on): Likewise.
11258         * modules/sigprocmask (Depends-on): Likewise.
11259         * modules/sinl (Depends-on): Likewise.
11260         * modules/sleep (Depends-on): Likewise.
11261         * modules/snprintf (Depends-on): Likewise.
11262         * modules/snprintf-posix (Depends-on): Likewise.
11263         * modules/socket (Depends-on): Likewise.
11264         * modules/sprintf-posix (Depends-on): Likewise.
11265         * modules/sqrtl (Depends-on): Likewise.
11266         * modules/stat (Depends-on): Likewise.
11267         * modules/strchrnul (Depends-on): Likewise.
11268         * modules/strdup-posix (Depends-on): Likewise.
11269         * modules/strerror (Depends-on): Likewise.
11270         * modules/strerror_r-posix (Depends-on): Likewise.
11271         * modules/strndup (Depends-on): Likewise.
11272         * modules/strnlen (Depends-on): Likewise.
11273         * modules/strptime (Depends-on): Likewise.
11274         * modules/strsep (Depends-on): Likewise.
11275         * modules/strsignal (Depends-on): Likewise.
11276         * modules/strstr-simple (Depends-on): Likewise.
11277         * modules/strtod (Depends-on): Likewise.
11278         * modules/strtoimax (Depends-on): Likewise.
11279         * modules/strtok_r (Depends-on): Likewise.
11280         * modules/strtoumax (Depends-on): Likewise.
11281         * modules/symlink (Depends-on): Likewise.
11282         * modules/symlinkat (Depends-on): Likewise.
11283         * modules/tanl (Depends-on): Likewise.
11284         * modules/tcgetsid (Depends-on): Likewise.
11285         * modules/tmpfile (Depends-on): Likewise.
11286         * modules/trunc (Depends-on): Likewise.
11287         * modules/truncf (Depends-on): Likewise.
11288         * modules/truncl (Depends-on): Likewise.
11289         * modules/uname (Depends-on): Likewise.
11290         * modules/unlink (Depends-on): Likewise.
11291         * modules/unlockpt (Depends-on): Likewise.
11292         * modules/unsetenv (Depends-on): Likewise.
11293         * modules/usleep (Depends-on): Likewise.
11294         * modules/utimensat (Depends-on): Likewise.
11295         * modules/vasprintf (Depends-on): Likewise.
11296         * modules/vdprintf (Depends-on): Likewise.
11297         * modules/vdprintf-posix (Depends-on): Likewise.
11298         * modules/vfprintf-posix (Depends-on): Likewise.
11299         * modules/vprintf-posix (Depends-on): Likewise.
11300         * modules/vsnprintf (Depends-on): Likewise.
11301         * modules/vsnprintf-posix (Depends-on): Likewise.
11302         * modules/vsprintf-posix (Depends-on): Likewise.
11303         * modules/wcrtomb (Depends-on): Likewise.
11304         * modules/wcscasecmp (Depends-on): Likewise.
11305         * modules/wcscspn (Depends-on): Likewise.
11306         * modules/wcsdup (Depends-on): Likewise.
11307         * modules/wcsncasecmp (Depends-on): Likewise.
11308         * modules/wcsnrtombs (Depends-on): Likewise.
11309         * modules/wcspbrk (Depends-on): Likewise.
11310         * modules/wcsrtombs (Depends-on): Likewise.
11311         * modules/wcsspn (Depends-on): Likewise.
11312         * modules/wcsstr (Depends-on): Likewise.
11313         * modules/wcstok (Depends-on): Likewise.
11314         * modules/wcswidth (Depends-on): Likewise.
11315         * modules/wctob (Depends-on): Likewise.
11316         * modules/wctomb (Depends-on): Likewise.
11317         * modules/wctype (Depends-on): Likewise.
11318         * modules/wcwidth (Depends-on): Likewise.
11319         * modules/write (Depends-on): Likewise.
11320
11321 2011-05-03  Bruno Haible  <bruno@clisp.org>
11322
11323         Support for conditional dependencies.
11324         * doc/gnulib.texi (Module description): Document the syntax of
11325         conditional dependencies.
11326         * gnulib-tool: New option --conditional-dependencies.
11327         (func_usage): Document it.
11328         (cond_dependencies): New variable.
11329         (func_get_automake_snippet_conditional,
11330         func_get_automake_snippet_unconditional): New functions, extracted from
11331         func_get_automake_snippet.
11332         (func_get_automake_snippet): Use them.
11333         (sed_first_32_chars): New variable.
11334         (func_module_shellfunc_name): New function.
11335         (func_module_shellvar_name): New function.
11336         (func_module_conditional_name): New function.
11337         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11338         func_cond_module_condition): New functions.
11339         (func_modules_transitive_closure): Add support for conditional
11340         dependencies.
11341         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11342         conditional automake snippet in an automake conditional.
11343         (func_emit_autoconf_snippets): Emit shell functions that contain the
11344         code for conditional modules.
11345         (func_import, func_create_testdir): Update specification.
11346
11347 2011-05-03  Eric Blake  <eblake@redhat.com>
11348
11349         test-getaddrinfo: report error information
11350         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11351
11352 2011-05-03  Jim Meyering  <meyering@redhat.com>
11353
11354         bootstrap: avoid build failure when $GZIP is set
11355         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11356         program name.  If defined at all, it is supposed to list gzip options.
11357         Reported by Alan Curry in http://debbugs.gnu.org/8609
11358
11359 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11360
11361         readme-release: new module with release instructions
11362         * modules/readme-release: New module.
11363         * top/README-release: New file, from coreutils, grep, diffutils.
11364         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11365
11366 2011-05-02  Eric Blake  <eblake@redhat.com>
11367
11368         fflush: also replace fclose when fixing fflush
11369         * modules/fflush (Depends-on): Add fclose.
11370         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11371         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11372         memstreams with no backing fd.
11373         * doc/posix-functions/fclose.texi (fclose): Document the use of
11374         fflush module to fix the bug.
11375         * tests/test-fclose.c (main): Relax test when fclose is used in
11376         isolation.
11377
11378         fclose: add some tests
11379         * modules/fclose-tests: New test module.
11380         * tests/test-fclose.c: New file.
11381         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11382
11383         fclose: reduced dependencies
11384         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11385         simpler lseek.
11386         * lib/fclose.c (rpl_fclose): Likewise.
11387         Reported by Simon Josefsson.
11388
11389         exit: drop remaining clients
11390         * modules/argmatch (Depends-on): Replace exit with stdlib.
11391         * modules/copy-file (Depends-on): Likewise.
11392         * modules/execute (Depends-on): Likewise.
11393         * modules/exitfail (Depends-on): Likewise.
11394         * modules/obstack (Depends-on): Likewise.
11395         * modules/pagealign_alloc (Depends-on): Likewise.
11396         * modules/pipe-filter-gi (Depends-on): Likewise.
11397         * modules/pipe-filter-ii (Depends-on): Likewise.
11398         * modules/savewd (Depends-on): Likewise.
11399         * modules/spawn-pipe (Depends-on): Likewise.
11400         * modules/wait-process (Depends-on): Likewise.
11401         * modules/xsetenv (Depends-on): Likewise.
11402         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11403         * modules/git-merge-changelog (Depends-on): Likewise.
11404         * modules/long-options (Depends-on): Likewise.
11405         * modules/pt_chown (Depends-on): Likewise.
11406         * modules/sysexits (Depends-on): Likewise.
11407
11408         freading: relax license from LGPLv3+ to LGPLv2+
11409         * modules/freading (License): Relax LGPL version.
11410
11411 2011-05-02  Bruno Haible  <bruno@clisp.org>
11412
11413         fchdir: Remove unused dependencies.
11414         * modules/fchdir (Depends-on): Remove include_next.
11415
11416 2011-05-02  Bruno Haible  <bruno@clisp.org>
11417
11418         gnulib-tool: Refactor.
11419         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11420         from func_emit_autoconf_snippets.
11421         (func_emit_autoconf_snippets): Use it.
11422
11423 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11424
11425         * NEWS: Document removal of 'exit'.
11426         * modules/exit: Remove file.
11427
11428 2011-05-01  Bruno Haible  <bruno@clisp.org>
11429
11430         Update DEPENDENCIES.
11431         * DEPENDENCIES (gettext): Recommend the newest release.
11432         Reported by Simon Josefsson.
11433
11434 2011-05-01  Bruno Haible  <bruno@clisp.org>
11435
11436         gnulib-tool: Reduce code duplication.
11437         * gnulib-tool (func_emit_autoconf_snippets): New function.
11438         (func_import, func_create_testdir): Use it.
11439
11440 2011-04-30  Eric Blake  <eblake@redhat.com>
11441
11442         fclose: don't fail on non-seekable input stream
11443         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11444         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11445         since fflush is allowed to fail in that case.
11446
11447 2011-04-30  Bruno Haible  <bruno@clisp.org>
11448
11449         dup3: cleanup
11450         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11451
11452 2011-04-30  Bruno Haible  <bruno@clisp.org>
11453
11454         netdb: Make it work in C++ mode.
11455         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11456         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11457         module.
11458         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11459         gl_MODULE_INDICATOR_FOR_TESTS.
11460         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11461         * modules/netdb-c++-tests: New file.
11462         * tests/test-netdb-c++.cc: New file.
11463
11464 2011-04-30  Bruno Haible  <bruno@clisp.org>
11465
11466         New modules 'vfscanf', 'vscanf'.
11467         * modules/vfscanf: New file.
11468         * modules/vscanf: New file.
11469         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11470         here.
11471         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11472         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11473
11474 2011-04-30  Bruno Haible  <bruno@clisp.org>
11475
11476         passfd: Add comments.
11477         * lib/passfd.c: Add comments about platforms.
11478
11479 2011-04-30  Bruno Haible  <bruno@clisp.org>
11480
11481         sys_uio: Make <sys/uio.h> self-contained.
11482         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11483         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11484
11485 2011-04-30  Bruno Haible  <bruno@clisp.org>
11486
11487         sys_socket: Ensure 'struct iovec' definition.
11488         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11489         <sys/socket.h>.
11490         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11491
11492 2011-04-30  Bruno Haible  <bruno@clisp.org>
11493
11494         sys_uio: Protect definition of 'struct iovec'.
11495         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11496         it as a C struct.
11497
11498 2011-04-30  Bruno Haible  <bruno@clisp.org>
11499
11500         manywarnings: fix indentation
11501         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11502
11503 2011-04-30  Pádraig Brady <P@draigBrady.com>
11504
11505         manywarnings: add -Wno-missing-field-initializers if needed.
11506         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11507         option if it's needed to allow initialization with { 0, }
11508
11509 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11510
11511         announce-gen: cosmetic improvement
11512         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11513
11514 2011-04-29  Jim Meyering  <meyering@redhat.com>
11515
11516         vc-list-files: indent with spaces, not TABs
11517         * build-aux/vc-list-files: Convert leading TABs to spaces,
11518         to match the style of most other files in gnulib.
11519
11520         announce-gen: indent with spaces, not TABs
11521         * build-aux/announce-gen: Convert all TABs to spaces, to match
11522         the style of most other files in gnulib.
11523
11524 2011-04-29  Eric Blake  <eblake@redhat.com>
11525
11526         quotearg: avoid uninitialized variable use
11527         * lib/quotearg.c (quoting_options_from_style): Initialize
11528         remaining fields, and ensure that custom styles are only used via
11529         quoting_options rather than quoting_style.
11530
11531 2011-04-29  Jim Meyering  <meyering@redhat.com>
11532
11533         maint.mk: remove unused VC-tag variable
11534         * top/maint.mk (VC-tag): Remove unused variable.
11535
11536 2011-04-29  Bruno Haible  <bruno@clisp.org>
11537
11538         netdb: fix gai_strerror replacements
11539         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11540         * modules/netdb: Substitute it.
11541
11542 2011-04-29  Jim Meyering  <meyering@redhat.com>
11543
11544         test-getcwd.c: avoid new set-but-not-used warning
11545         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11546         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11547         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11548         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11549
11550         test-hash.c: avoid a new shadowing warning
11551         * tests/test-hash.c (main): Don't shadow "dup".
11552
11553 2011-04-28  Eric Blake  <eblake@redhat.com>
11554
11555         getaddrinfo: fix gai_strerror signature
11556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11557         and work around mingw with UNICODE defined.
11558         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11559         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11560         * modules/netdb (Makefile.am): Substitute it.
11561         * lib/netdb.in.h (gai_strerror): Declare replacement.
11562         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11563         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11564         the fix.
11565
11566         getsockopt: avoid compiler warning
11567         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11568         Reported by Matthias Bolte.
11569
11570         tests: drop unused link dependency
11571         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11572         * modules/dirent-safer-tests (Makefile.am): Likewise.
11573         * modules/fdopendir-tests (Makefile.am): Likewise.
11574         * modules/mkfifoat-tests (Makefile.am): Likewise.
11575         * modules/openat-safer-tests (Makefile.am): Likewise.
11576         * modules/openat-tests (Makefile.am): Likewise.
11577         * modules/readlinkat-tests (Makefile.am): Likewise.
11578         * modules/symlinkat-tests (Makefile.am): Likewise.
11579         * modules/linkat-tests (Makefile.am): Likewise.
11580         (Depends-on): Switch to filenamecat-lgpl.
11581         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11582         LIBINTL.
11583         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11584         * tests/test-linkat.c (main): Don't require xalloc.
11585
11586         hash, mgetgroups: drop xalloc dependency
11587         * lib/hash.c (includes): Adjust includes.
11588         * lib/mgetgroups.c (includes): Likewise.
11589         (xgetgroups): Move...
11590         * lib/xgetgroups.c: ...to new file.
11591         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11592         * modules/xgetgroups: New file, split from...
11593         * modules/mgetgroups: ...here.
11594         (Depends-on): Add xalloc-oversized.
11595         * modules/hash (Depends-on): Likewise.
11596         * modules/hash-tests (Depends-on): Drop xalloc.
11597         (test_hash_LDADD): Drop unused library.
11598         * tests/test-hash.c (main): Break xalloc dependency.
11599         (includes): Drop unused include.
11600
11601         xalloc-oversized: new module
11602         * modules/xalloc-oversized: New module.
11603         * modules/xalloc (Depends-on): Add it.
11604         * lib/xalloc.h (xalloc_oversized): Move...
11605         * lib/xalloc-oversized.h: ...into new file.
11606
11607         utimecmp: drop dependency on xmalloc
11608         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11609         due to memory pressure.
11610         * modules/utimecmp (Depends-on): Drop xalloc.
11611
11612 2011-04-27  Eric Blake  <eblake@redhat.com>
11613
11614         getcwd: fix mingw bugs
11615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11616         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11617         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11618
11619 2011-04-27  Bruno Haible  <bruno@clisp.org>
11620
11621         mkstemps: Ensure declaration on MacOS X 10.5.
11622         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11623         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11624         MacOS X.
11625
11626 2011-04-27  Bruno Haible  <bruno@clisp.org>
11627
11628         mkstemp: More documentation.
11629         * doc/posix-functions/mkstemp.texi: Document header file problem on
11630         MacOS X.
11631
11632 2011-04-27  Bruno Haible  <bruno@clisp.org>
11633
11634         mkstemp: Tweak configure message when cross-compiling.
11635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11636         result as a guess.
11637
11638 2011-04-27  Bruno Haible  <bruno@clisp.org>
11639
11640         clean-temp: Clarify what it does.
11641         * lib/clean-temp.h: Add more comments.
11642         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11643         module.
11644         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11645         * doc/glibc-functions/mkstemps.texi: Likewise.
11646         * doc/glibc-functions/mkostemps.texi: Likewise.
11647
11648 2011-04-27  Eric Blake  <eblake@redhat.com>
11649
11650         fchdir: avoid extra chdir and fix test
11651         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11652         getcwd-lgpl.
11653         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11654         have to be canonical.
11655         (canonicalize_file_name): Drop unused macro.
11656         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11657
11658         filenamecat-lgpl: fix licence
11659         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11660         when it was first created.
11661
11662         linkat, renameat: add missing dependency
11663         * modules/linkat (Depends-on): Require getcwd-lgpl.
11664         * modules/renameat (Depends-on): Likewise.
11665
11666         tests: reduce dependencies
11667         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11668         * tests/test-renameat.c (main): Likewise.
11669         * modules/linkat-tests (Depends-on): Relax dependency.
11670         * modules/renameat-tests (Depends-on): Likewise.
11671         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11672         dependency explicit.
11673
11674         save-cwd: reduce default dependency
11675         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11676         * lib/save-cwd.c: Update comments.
11677         * NEWS: Document the semantic change.
11678
11679         getcwd: enhance tests
11680         * tests/test-getcwd-lgpl.c: New file, taken from...
11681         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11682         repeat long path stress tests from m4 probe.
11683         * modules/getcwd-lgpl-tests: New module.
11684         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11685         * m4/getcwd-abort-bug.m4: Update comment.
11686         * m4/getcwd-path-max.m4: Likewise.
11687
11688         getcwd-lgpl: new module
11689         * modules/getcwd-lgpl: New module.
11690         * lib/getcwd-lgpl.c: New file.
11691         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11692         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11693         * modules/getcwd (configure.ac): Set C witness.
11694         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11695
11696         getcwd: tweak comments
11697         * m4/getcwd-abort-bug.m4: Fix comments.
11698         * m4/getcwd-path-max.m4: Likewise.
11699         * m4/getcwd.m4: Likewise.
11700
11701 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11702         and Eric Blake  <eblake@redhat.com>
11703
11704         mkstemp: replace if system version uses wrong permissions
11705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11706         read/write mode bits set in file created by mkstemp.
11707         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11708
11709 2011-04-27  Eric Blake  <eblake@redhat.com>
11710
11711         passfd: avoid compiler warning
11712         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11713         Reported by Laine Stump.
11714
11715 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11716
11717         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11718         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11719
11720 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11721         and Eric Blake  <eblake@redhat.com>
11722
11723         mkstemp: mention clean-temp module
11724         * lib/mkstemp.c: Add comment.
11725         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11726
11727 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11728
11729         inttypes: also provide default values for 32-bit tests
11730         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11731         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11732
11733 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         strtoumax: remove dependency on strtoimax
11736         This is like the strtoull change of yesterday.
11737         * modules/strtoumax (Files): Add lib/strtoimax.c.
11738         (Depends-on): Remove strtoimax and add verify.
11739
11740         inttypes-incomplete: new module
11741         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11742         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11743         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11744         of gl_INTTYPES_H.
11745         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11746         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11747         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11748         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11749         * modules/strtoumax, modules/xstrtol (Depends-on):
11750         Depend on inttypes-incomplete, not inttypes.
11751         * modules/inttypes-incomplete: New module, containing the contents
11752         of the old modules/inttypes module, except that the Files: section
11753         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11754         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11755         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11756         (Depends-on): Depend only on inttypes-incomplete.
11757         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11758
11759         inttypes: omit now-redundant strtoimax and strtoumax work
11760         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11761         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11762
11763         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11764         This supports apps that need pointers to strtoimax and strtoumax,
11765         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11766         nonexistent functions.  See
11767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11768         et seq.
11769         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11770         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11771         a macro.
11772         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11773
11774 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11775
11776         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11777
11778 2011-04-25  Bruno Haible  <bruno@clisp.org>
11779
11780         strtol, strtoul: Mark modules as obsolete.
11781         * modules/strtol (Status, Notice): New sections.
11782         * modules/strtoul (Status, Notice): New sections.
11783
11784 2011-04-25  Bruno Haible  <bruno@clisp.org>
11785
11786         strtod: Remove check for strtod, unless supporting old platforms.
11787         * modules/strtod-obsolete: New file.
11788         * m4/strtod-obsolete.m4: New file.
11789         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11790         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11791         * modules/strtod (Depends-on): Add strtod-obsolete.
11792         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11793
11794 2011-04-25  Bruno Haible  <bruno@clisp.org>
11795
11796         strcase: Make module obsolete.
11797         * modules/strcase (Status, Notice): New sections.
11798
11799 2011-04-25  Bruno Haible  <bruno@clisp.org>
11800
11801         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11802         * modules/dup2-obsolete: New file.
11803         * m4/dup2-obsolete.m4: New file.
11804         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11805         gl_FUNC_DUP2_OBSOLETE is not also defined.
11806         * modules/dup2 (Depends-on): Add dup2-obsolete.
11807         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11808
11809 2011-04-25  Bruno Haible  <bruno@clisp.org>
11810
11811         strnlen: Avoid memchr related link error on old obsolete platforms.
11812         * modules/memchr-obsolete: New file.
11813         * m4/memchr-obsolete.m4: New file.
11814         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11815         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11816         * modules/memchr (Depends-on): Add memchr-obsolete.
11817         * modules/strnlen (Depends-on): Likewise.
11818         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11819
11820 2011-04-25  Jim Meyering  <meyering@redhat.com>
11821
11822         maint.mk: makefile_at_at_check extend and clean up
11823         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11824         in addition to */Makefile.am.
11825         Exempt legitimate uses of @VAR@ notation, e.g.,
11826         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11827         Remove obsolete coreutils-specific comment.
11828         Prompted by discussion here:
11829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11830
11831 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         strtoul: remove dependency on strtol
11834         This is so that 'configure' need not check for strtol merely because
11835         the application needs strtoul.
11836         * modules/strtoul (Files): Add lib/strtol.c.
11837         (Depends-on): Remove strtol.
11838
11839         strtoull: remove dependency on strtoul
11840         This is like the strtoll change.
11841         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11842         (Depends-on): Remove strtoul.
11843
11844         strtoll: remove dependency on strtol
11845         This is so that 'configure' need not check for strtol merely because
11846         the application needs strtoll.
11847         * modules/strtoll (Files): Add lib/strtol.c.
11848         (Depends-on): Remove strtol.
11849
11850 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11851
11852         inttypes: Move some configure check to module 'imaxdiv'.
11853         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11854         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11855         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11856
11857 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         inttypes: Move some configure check to module 'imaxabs'.
11860         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11861         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11862         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11863
11864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         inttypes: Remove configure tests that are not needed since 2009-12-31.
11867         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11868         gl_cv_header_working_inttypes_h.
11869
11870 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11871
11872         * modules/strnlen (Depends-on): Remove memchr.
11873         The strnlen implementation doesn't need the memchr module's fixes; see
11874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11875
11876         strtol: remove dependency on wchar
11877         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11878         * modules/strtol (Depends-on): Remove wchar.
11879
11880 2011-04-21  Eric Blake  <eblake@redhat.com>
11881
11882         passfd: fix test regression on Linux
11883         * modules/passfd-tests (configure.ac): Correct socketpair check.
11884
11885         passfd: speed up configure and drop unused code
11886         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11887         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11888         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11889         Instead of probing at configure for unix_scm_rights_bsd44_way,
11890         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11891         check to a struct member probe.
11892         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11893         (sendfd, recvfd): Update preprocessor checks.
11894         * modules/passfd (Files): Reflect rename, and drop unused file.
11895         (Depends-on): Drop unused dependency.
11896
11897         passfd: allow compilation on mingw
11898         * modules/sys_socket (Depends-on): Add sys_uio.
11899         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11900         iovec and a minimal struct msghdr.
11901         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11902         * tests/test-sys_socket.c (main): Enhance test.
11903         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11904         guaranteed to provide what we need.
11905         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11906         * modules/passfd-tests (Depends-on): Add sys_wait.
11907         * tests/test-passfd.c (main): Skip test on mingw, for now.
11908         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11909         partial 'struct msghdr' implementation.
11910
11911         sys_uio: new module
11912         * modules/sys_uio: New module.
11913         * modules/sys_uio-tests: Likewise.
11914         * lib/sys_uio.in.h: New file.
11915         * m4/sys_uio_h.m4: Likewise.
11916         * tests/test-sys_uio.c: Likewise.
11917         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11918         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11919
11920 2011-04-20  Jim Meyering  <meyering@redhat.com>
11921
11922         useless-if-before-free: avoid false-positive
11923         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11924         disjunct so that it too requires a terminating ";".  Without that,
11925         this script would identify as useless one statement from gcc that
11926         was not:
11927           if (aligned_ptr)
11928             free (((void **) aligned_ptr) [-1]);
11929
11930 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11931
11932         doc: update users.txt.
11933         * users.txt: Add barcode.
11934
11935 2011-04-19  Bruno Haible  <bruno@clisp.org>
11936
11937         ioctl: Remove link dependency on native Windows.
11938         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11939         (gl_close_fn, gl_ioctl_fn): New types.
11940         (struct fd_hook): Renamed from struct close_hook. Change type of
11941         private_close_fn field. Add private_ioctl_fn field.
11942         (close_hook_fn): Add parameter for primary close method.
11943         (execute_close_hooks, execute_all_close_hooks): Likewise.
11944         (ioctl_hook_fn): New type.
11945         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11946         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11947         argument.
11948         (unregister_fd_hook): Renamed from unregister_close_hook.
11949         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11950         Don't include <unistd.h>.
11951         (close): Remove undef.
11952         (anchor): Update.
11953         (execute_close_hooks): Add argument for primary close method.
11954         (execute_all_close_hooks): Likewise.
11955         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11956         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11957         argument. Allow each argument to be NULL.
11958         (unregister_fd_hook): Renamed from unregister_close_hook.
11959         * lib/close.c (rpl_close): Pass 'close' function pointer to
11960         execute_all_close_hooks.
11961         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11962         (primary_ioctl): New function.
11963         (ioctl): Don't call ioctlsocket here. Instead, call
11964         execute_all_ioctl_hooks.
11965         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11966         close method.
11967         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11968         (fd_sockets_hook): Renamed from close_sockets_hook.
11969         (gl_sockets_startup, gl_sockets_cleanup): Update.
11970         * modules/fd-hook: Renamed from modules/close-hook. Update.
11971         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11972         * modules/sockets (Depends-on): Likewise.
11973         * modules/ioctl (Depends-on): Add fd-hook.
11974         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11975         GNULIB_SOCKET.
11976
11977 2011-04-19  Bruno Haible  <bruno@clisp.org>
11978
11979         Move the support of O_NONBLOCK in open() to the 'open' module.
11980         * modules/nonblocking (Depends-on): Remove 'open'.
11981         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11982         gl_cv_have_open_O_NONBLOCK.
11983         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11984         O_NONBLOCK support.
11985         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11986
11987 2011-04-17  Bruno Haible  <bruno@clisp.org>
11988
11989         pipe2: Simplify code.
11990         * lib/pipe2.c (pipe2): Reduce code duplication.
11991
11992 2011-04-17  Bruno Haible  <bruno@clisp.org>
11993
11994         nonblocking: Add comment.
11995         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11996
11997 2011-04-17  Bruno Haible  <bruno@clisp.org>
11998
11999         nonblocking: Add tests for sockets.
12000         * tests/test-nonblocking-socket.sh: New file.
12001         * tests/test-nonblocking-socket-main.c: New file.
12002         * tests/test-nonblocking-socket-child.c: New file.
12003         * tests/test-nonblocking-socket.h: New file.
12004         * tests/socket-server.h: New file.
12005         * tests/socket-client.h: New file.
12006         * modules/nonblocking-socket-tests: New file.
12007         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12008
12009 2011-04-17  Bruno Haible  <bruno@clisp.org>
12010
12011         nonblocking: Add tests for pipes.
12012         * tests/test-nonblocking-pipe.sh: New file.
12013         * tests/test-nonblocking-pipe-main.c: New file.
12014         * tests/test-nonblocking-pipe-child.c: New file.
12015         * tests/test-nonblocking-pipe.h: New file.
12016         * tests/test-nonblocking-writer.h: New file.
12017         * tests/test-nonblocking-reader.h: New file.
12018         * tests/test-nonblocking-misc.h: New file.
12019         * modules/nonblocking-pipe-tests: New file.
12020         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12021
12022 2011-04-16  Bruno Haible  <bruno@clisp.org>
12023
12024         gettext: Clarify the needed programmer actions.
12025         * modules/gettext (Notice): New field.
12026         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12027
12028 2011-04-16  Bruno Haible  <bruno@clisp.org>
12029
12030         strchrnul: Tweak last commit.
12031         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12032         bug.
12033         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12034         as in _GL_FUNCDECL_SYS.
12035         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12036         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12037
12038 2011-04-15  Eric Blake  <eblake@redhat.com>
12039
12040         strchrnul: work around cygwin bug
12041         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12042         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12044         * modules/string (Makefile.am): Substitute it.
12045         * lib/string.in.h (strchrnul): Use it.
12046
12047 2011-04-15  Bruno Haible  <bruno@clisp.org>
12048
12049         Don't require lib/stdio-write.c when only module 'stdio' is used.
12050         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12051         invocation.
12052         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12053
12054 2011-04-14  Bruno Haible  <bruno@clisp.org>
12055
12056         Support non-blocking pipe I/O in read() on native Windows.
12057         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12058         (read): New declaration.
12059         * lib/read.c: New file.
12060         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12061         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12062         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12063         vscanf): New declarations.
12064         * lib/stdio-read.c: New file.
12065         * m4/read.m4: New file.
12066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12067         REPLACE_READ.
12068         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12069         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12070         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12071         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12072         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12073         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12074         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12075         * modules/read: New file.
12076         * modules/nonblocking (Files): Add lib/stdio-read.c.
12077         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12078         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12079         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12080         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12081         * modules/pread (Depends-on): Add read.
12082         * modules/safe-read (Depends-on): Likewise.
12083         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12084         gets, scanf, vfscanf, vscanf): Verify signatures.
12085         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12086         problem with non-blocking pipes.
12087         * doc/posix-functions/fgetc.texi: Likewise.
12088         * doc/posix-functions/fgets.texi: Likewise.
12089         * doc/posix-functions/fread.texi: Likewise.
12090         * doc/posix-functions/fscanf.texi: Likewise.
12091         * doc/posix-functions/getc.texi: Likewise.
12092         * doc/posix-functions/getchar.texi: Likewise.
12093         * doc/posix-functions/gets.texi: Likewise.
12094         * doc/posix-functions/scanf.texi: Likewise.
12095         * doc/posix-functions/vfscanf.texi: Likewise.
12096         * doc/posix-functions/vscanf.texi: Likewise.
12097
12098 2011-04-14  Bruno Haible  <bruno@clisp.org>
12099
12100         Support non-blocking pipe I/O in write() on native Windows.
12101         * lib/write.c (rpl_write): Split a write request that failed merely
12102         because the byte count was larger than the pipe buffer's size.
12103         * doc/posix-functions/write.texi: Mention the problem with large byte
12104         counts.
12105
12106 2011-04-14  Bruno Haible  <bruno@clisp.org>
12107
12108         wchar: Ensure that wchar_t gets defined on uClibc.
12109         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12110         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12111
12112 2011-04-13  Bruno Haible  <bruno@clisp.org>
12113
12114         safe-write, full-read: Avoid unnecessary compilation units.
12115         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12116         (Depends-on): Remove safe-read. Add ssize_t.
12117         * modules/full-read (Files): Add lib/full-write.c.
12118         (Depends-on): Add full-write.
12119
12120 2011-04-13  Bruno Haible  <bruno@clisp.org>
12121
12122         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12123         * modules/pwrite (Depends-on): Add 'write'.
12124
12125 2011-04-13  Bruno Haible  <bruno@clisp.org>
12126
12127         Support non-blocking pipe I/O in write() on native Windows.
12128         * lib/unistd.in.h (write): Enable replacement also if
12129         GNULIB_UNISTD_H_NONBLOCKING is 1.
12130         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12131         (rpl_write): When failing to write on a non-blocking pipe, change
12132         errno from ENOSPC to EAGAIN.
12133         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12134         putchar, puts, vfprintf, vprintf): Enable replacement also if
12135         GNULIB_STDIO_H_NONBLOCKING is 1.
12136         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12137         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12138         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12139         CALL_WITH_SIGPIPE_EMULATION.
12140         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12141         * m4/nonblocking.m4: New file.
12142         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12143         for non-blocking I/O support.
12144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12145         GNULIB_UNISTD_H_NONBLOCKING.
12146         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12147         required for non-blocking I/O support.
12148         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12149         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12150         lib/stdio-write.c, m4/asm-underscore.m4.
12151         (Depends-on): Add stdio, unistd.
12152         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12153         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12154         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12155         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12156         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12157         problem with non-blocking pipes.
12158         * doc/posix-functions/fputc.texi: Likewise.
12159         * doc/posix-functions/fputs.texi: Likewise.
12160         * doc/posix-functions/fwrite.texi: Likewise.
12161         * doc/posix-functions/printf.texi: Likewise.
12162         * doc/posix-functions/putc.texi: Likewise.
12163         * doc/posix-functions/putchar.texi: Likewise.
12164         * doc/posix-functions/puts.texi: Likewise.
12165         * doc/posix-functions/vfprintf.texi: Likewise.
12166         * doc/posix-functions/vprintf.texi: Likewise.
12167         * doc/posix-functions/write.texi: Likewise.
12168
12169 2011-04-10  Jim Meyering  <meyering@redhat.com>
12170
12171         maint.mk: prohibit doubled words
12172         Detect them also when they're separated by a newline.
12173         There are 3 ways to customize it:
12174           - disable the test on a per file basis, as usual with rules using
12175             $(VC_LIST_EXCEPT)
12176           - replace the default doubled-word-selecting regexp (affects all files)
12177           - ignore a particular file-vs-doubled-word match
12178         I nearly used that last one to ignore the "is is" match in
12179         coreutils' NEWS file, since the text was "ls -is is ..."
12180         To do that, I would have added this line to cfg.mk:
12181           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12182         but it would have ignored any "is is" match in NEWS.
12183         Low probability, but still...
12184         Instead, I changed the text, slightly:
12185           -  ls -is is now consistent with ls -lis in ignoring values returned
12186           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12187         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12188         (prohibit_doubled_word_): Define.
12189         (sc_prohibit_doubled_word): New rule.
12190         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12191
12192 2011-04-10  Jim Meyering  <meyering@redhat.com>
12193
12194         maint: fix doubled-word typo in comment
12195         * m4/gethostname.m4: s/is is/it is/
12196         * m4/getdomainname.m4: Likewise.
12197
12198 2011-04-10  Jim Meyering  <meyering@redhat.com>
12199
12200         maint: remove doubled word: s/it it/it/
12201         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12202
12203 2011-04-10  Jim Meyering  <meyering@redhat.com>
12204
12205         maint.mk: remove useless semicolon and backslash
12206         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12207         semicolon and backslash.
12208
12209 2011-04-10  Bruno Haible  <bruno@clisp.org>
12210
12211         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12212         * modules/stdint-tests (Depends-on): Add wchar.
12213
12214 2011-04-10  Jim Meyering  <meyering@redhat.com>
12215
12216         maint: remove doubled words in comments, e.g., s/a a/a/
12217         * lib/strptime.c (day_of_the_week): s/the the/the/
12218         * tests/test-chown.h (test_chown): s/a a/a/
12219
12220         test-chown.h: correct a cast
12221         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12222         when the destination is a stat.st_gid.
12223
12224 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12225
12226         getaddrinfo: Fix test for sa_len member.
12227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12228         include <sys/types.h> before <sys/socket.h>.
12229
12230 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12231
12232         maint: change "can not" to "cannot"
12233         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12234         boundaries.
12235
12236 2011-04-09  Jim Meyering  <meyering@redhat.com>
12237
12238         maint: change "a a" to "a"
12239         * tests/test-lchown.h (test_lchown): s/a a/a/
12240
12241         maint.mk: prohibit \<the the\>
12242         * top/maint.mk (sc_prohibit_the_the): New rule.
12243
12244         maint: fix "the the" in comment
12245         * lib/count-one-bits.h: s/the the/the/
12246
12247         maint: change "can not" to "cannot"
12248         But do not change the occurrences in maintain.texi or in
12249         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12250         * doc/gnulib-tool.texi: s/can not/cannot/
12251         * doc/posix-functions/accept.texi (accept): Likewise.
12252         * doc/posix-functions/socket.texi (socket): Likewise.
12253         * lib/mbrtowc.c: Likewise.
12254
12255         maint.mk: prohibit use of "can not"
12256         * top/maint.mk (sc_prohibit_can_not): New rule.
12257         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12258
12259 2011-04-09  Bruno Haible  <bruno@clisp.org>
12260
12261         careadlinkat: Guard against misuse of careadlinkatcwd.
12262         * lib/careadlinkat.c: Include <stdlib.h>.
12263         (careadlinkatcwd): Check that the fd argument is as expected.
12264
12265 2011-04-09  Bruno Haible  <bruno@clisp.org>
12266
12267         careadlinkat: Use common coding style.
12268         * lib/careadlinkat.c: Move gnulib includes after system includes.
12269
12270 2011-04-09  Bruno Haible  <bruno@clisp.org>
12271
12272         careadlinkat: Clarify specification.
12273         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12274         (careadlinkatcwd): Add comment.
12275         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12276
12277 2011-04-09  Bruno Haible  <bruno@clisp.org>
12278
12279         areadlinkat: Avoid link error on many platforms.
12280         * modules/areadlinkat (Depends-on): Add areadlink.
12281
12282 2011-04-09  Bruno Haible  <bruno@clisp.org>
12283
12284         allocator, careadlinkat: Fix double-inclusion guard.
12285         * lib/allocator.h: Fix double-inclusion guard.
12286         * lib/careadlinkat.h: Likewise.
12287
12288 2011-04-09  Bruno Haible  <bruno@clisp.org>
12289
12290         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12291         * lib/relocwrapper.c: Update dependencies hierarchy.
12292         * build-aux/install-reloc: Update list of files to be compiled.
12293         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12294         lib/allocator.[hc].
12295
12296 2011-04-08  Eric Blake  <eblake@redhat.com>
12297
12298         strftime: silence gnulib-tool warning
12299         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12300
12301 2011-04-08  Bruno Haible  <bruno@clisp.org>
12302
12303         verify: Fix syntax error with GCC 4.6 in C++ mode.
12304         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12305         (HAVE_STATIC_ASSERT): New macro.
12306         (verify_true, verify): Use 'static_assert' if it is supported and
12307         '_Static_assert' is not supported.
12308
12309 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12310
12311         allocator: New module.
12312         * modules/allocator, lib/allocator.c: New files.
12313         * lib/allocator.h (stdlib_allocator): New decl.
12314         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12315         Remove.  Do not include <stdlib.h>.
12316         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12317         * modules/careadlinkat (Files): Remove lib/allocator.h.
12318         (Depends-on): Add allocator.
12319
12320         stdlib: let modules use system malloc, realloc
12321         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12322         if !_GL_USE_STDLIB_ALLOC.
12323         (malloc, realloc): Limit this change to a smaller scope.
12324
12325         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12326         (malloc, realloc): Don't #undef; no longer needed.
12327         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12328         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12329         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12330         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12331         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12332         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12333         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12334         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12335
12336         careadlinkat: rename members to avoid problem
12337         * lib/allocator.h (struct allocator): Rename members from
12338         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12339         and realloc are #define'd.  Reported by Eric Blake in
12340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12341         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12342
12343 2011-04-08  Eric Blake  <eblake@redhat.com>
12344
12345         nonblocking: reduce dependency
12346         * tests/test-nonblocking.c: Only test sockets when in use.
12347         * modules/nonblocking-tests (Depends-on): Drop socket.
12348         (Makefile.am): Link even if sockets are not present.
12349         * modules/pipe2-tests (Makefile.am): Likewise.
12350         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12351
12352         pipe2: fix O_NONBLOCK support on mingw
12353         * modules/pipe2 (Depends-on): Add nonblocking.
12354         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12355         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12356         * tests/test-nonblocking.c (main): Likewise.
12357         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12358
12359         fcntl-h: fix O_ACCMODE on cygwin
12360         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12361         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12362
12363         pipe-filter: drop O_NONBLOCK workarounds
12364         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12365         * modules/pipe-filter-ii (Depends-on): Likewise.
12366         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12367
12368         nonblocking: provide O_NONBLOCK for mingw
12369         * modules/nonblocking (Depends-on): Add open.
12370         (configure.ac): Set new witness macro.
12371         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12372         * modules/fcntl-h (Makefile.am): Substitute it.
12373         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12374         nonblocking module is in use.
12375         * lib/nonblocking.c: Adjust portability test.
12376         * lib/open.c (open): Don't let native open see gnulib flag.
12377         * tests/test-fcntl-h.c (main): Enhance test.
12378         * tests/test-open.h (test_open): Likewise.
12379         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12380
12381         careadlinkat: fix compilation error on mingw
12382         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12383         within struct allocator.
12384
12385 2011-04-06  Eric Blake  <eblake@redhat.com>
12386
12387         binary-io: relicense under LGPLv2+
12388         * modules/binary-io (License): Relax to LGPLv2+.
12389         Requested for libvirt, and required by pipe2.
12390
12391 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12392
12393         verify: use _Static_assert if available
12394         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12395         (verify_true, verify): Use it if available.  This generates better
12396         diagnostics with GCC 4.6.0 and later.
12397
12398 2011-04-05  Bruno Haible  <bruno@clisp.org>
12399
12400         Remove leftover generated .h files after config.status changed.
12401
12402         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12403         GL_GENERATE_ALLOCA_H.
12404         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12405         GL_GENERATE_ALLOCA_H evaluates to false.
12406
12407         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12408         GL_GENERATE_ARGZ_H.
12409         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12410         evaluates to false.
12411
12412         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12413         GL_GENERATE_BYTESWAP_H.
12414         * modules/byteswap (Makefile.am): Remove byteswap.h if
12415         GL_GENERATE_BYTESWAP_H evaluates to false.
12416
12417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12418         GL_GENERATE_ERRNO_H.
12419         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12420         evaluates to false.
12421
12422         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12423         GL_GENERATE_FLOAT_H.
12424         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12425         evaluates to false.
12426
12427         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12428         GL_GENERATE_FNMATCH_H.
12429         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12430         GL_GENERATE_FNMATCH_H evaluates to false.
12431
12432         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12433         GL_GENERATE_GLOB_H.
12434         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12435         evaluates to false.
12436
12437         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12438         automake conditional GL_GENERATE_ICONV_H.
12439         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12440         evaluates to false.
12441
12442         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12443         GL_GENERATE_NETINET_IN_H.
12444         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12445         GL_GENERATE_NETINET_IN_H evaluates to false.
12446
12447         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12448         conditional GL_GENERATE_PTHREAD_H.
12449         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12450         * modules/pthread (Makefile.am): Remove pthread.h if
12451         GL_GENERATE_PTHREAD_H evaluates to false.
12452
12453         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12454         GL_GENERATE_SCHED_H.
12455         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12456         evaluates to false.
12457
12458         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12459         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12460         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12461         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12462
12463         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12464         GL_GENERATE_STDARG_H.
12465         * modules/stdarg (Makefile.am): Remove stdarg.h if
12466         GL_GENERATE_STDARG_H evaluates to false.
12467
12468         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12469         GL_GENERATE_STDBOOL_H.
12470         * modules/stdbool (Makefile.am): Remove stdbool.h if
12471         GL_GENERATE_STDBOOL_H evaluates to false.
12472
12473         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12474         conditional GL_GENERATE_STDDEF_H.
12475         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12476         * modules/stddef (Makefile.am): Remove stddef.h if
12477         GL_GENERATE_STDDEF_H evaluates to false.
12478
12479         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12480         GL_GENERATE_STDINT_H.
12481         * modules/stdint (Makefile.am): Remove stdint.h if
12482         GL_GENERATE_STDINT_H evaluates to false.
12483
12484         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12485         GL_GENERATE_SYSEXITS_H.
12486         * modules/sysexits (Makefile.am): Remove sysexits.h if
12487         GL_GENERATE_SYSEXITS_H evaluates to false.
12488
12489         Reported by Karl Berry and Ralf Wildenhues.
12490
12491 2011-04-05  Bruno Haible  <bruno@clisp.org>
12492
12493         Ensure to rebuild generated .h files when config.status has changed.
12494         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12495         config.status.
12496         * modules/ctype (Makefile.am): Likewise.
12497         * modules/dirent (Makefile.am): Likewise.
12498         * modules/errno (Makefile.am): Likewise.
12499         * modules/fcntl-h (Makefile.am): Likewise.
12500         * modules/float (Makefile.am): Likewise.
12501         * modules/getopt-posix (Makefile.am): Likewise.
12502         * modules/glob (Makefile.am): Likewise.
12503         * modules/iconv-h (Makefile.am): Likewise.
12504         * modules/inttypes (Makefile.am): Likewise.
12505         * modules/langinfo (Makefile.am): Likewise.
12506         * modules/locale (Makefile.am): Likewise.
12507         * modules/math (Makefile.am): Likewise.
12508         * modules/netdb (Makefile.am): Likewise.
12509         * modules/netinet_in (Makefile.am): Likewise.
12510         * modules/poll-h (Makefile.am): Likewise.
12511         * modules/pthread (Makefile.am): Likewise.
12512         * modules/pty (Makefile.am): Likewise.
12513         * modules/sched (Makefile.am): Likewise.
12514         * modules/search (Makefile.am): Likewise.
12515         * modules/selinux-h (Makefile.am): Likewise.
12516         * modules/signal (Makefile.am): Likewise.
12517         * modules/spawn (Makefile.am): Likewise.
12518         * modules/stdarg (Makefile.am): Likewise.
12519         * modules/stdbool (Makefile.am): Likewise.
12520         * modules/stddef (Makefile.am): Likewise.
12521         * modules/stdint (Makefile.am): Likewise.
12522         * modules/stdio (Makefile.am): Likewise.
12523         * modules/stdlib (Makefile.am): Likewise.
12524         * modules/string (Makefile.am): Likewise.
12525         * modules/strings (Makefile.am): Likewise.
12526         * modules/sys_file (Makefile.am): Likewise.
12527         * modules/sys_ioctl (Makefile.am): Likewise.
12528         * modules/sys_select (Makefile.am): Likewise.
12529         * modules/sys_socket (Makefile.am): Likewise.
12530         * modules/sys_stat (Makefile.am): Likewise.
12531         * modules/sys_time (Makefile.am): Likewise.
12532         * modules/sys_times (Makefile.am): Likewise.
12533         * modules/sys_utsname (Makefile.am): Likewise.
12534         * modules/sys_wait (Makefile.am): Likewise.
12535         * modules/sysexits (Makefile.am): Likewise.
12536         * modules/termios (Makefile.am): Likewise.
12537         * modules/time (Makefile.am): Likewise.
12538         * modules/unistd (Makefile.am): Likewise.
12539         * modules/wchar (Makefile.am): Likewise.
12540         * modules/wctype-h (Makefile.am): Likewise.
12541         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12542
12543 2011-04-05  Bruno Haible  <bruno@clisp.org>
12544
12545         pipe2: Relicense under LGPLv2+.
12546         * modules/pipe2 (License): Change to LGPLv2+.
12547         Requested by Eric Blake, for libvirt.
12548
12549 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12550
12551         bootstrap: compute gnulib_extra_files after updating build_aux
12552         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12553         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12554
12555 2011-04-05  Eric Blake  <eblake@redhat.com>
12556
12557         bootstrap: preserve git whitelist item sorting
12558         * build-aux/bootstrap (sort_patterns): New function.
12559         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12560
12561 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12562
12563         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12564         sc_space_tab check.
12565
12566 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12567
12568         areadlink, areadlinkat: rewrite in terms of careadlinkat
12569         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12570         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12571         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12572         (malloc, realloc): Remove #undefs.
12573         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12574         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12575         readlink, ssize_t, stdint, unistd.
12576         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12577         areadlink, stdint.
12578
12579         careadlinkat: new module
12580         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12581         * modules/careadlinkat: New files, written by me with
12582         a review and feedback from Ben Pfaff in
12583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12584
12585 2011-04-01  Bruno Haible  <bruno@clisp.org>
12586
12587         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12588         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12589         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12590         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12591         Reported by Bruce Korb <bruce.korb@gmail.com>.
12592
12593 2011-04-01  Bruno Haible  <bruno@clisp.org>
12594
12595         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12596         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12597         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12598         * modules/wcpcpy (Depends-on): Add extensions.
12599         * modules/wcpncpy (Depends-on): Likewise.
12600         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12601         systems.
12602         * doc/posix-functions/wcpncpy.texi: Likewise.
12603         * doc/posix-functions/wcwidth.texi: Likewise.
12604
12605 2011-03-31  Eric Blake  <eblake@redhat.com>
12606
12607         nonblocking: fix mingw test failures
12608         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12609         non-blocking flag on regular file.
12610         (get_nonblocking_flag): Set errno on invalid fd.
12611         * tests/test-nonblocking.c (main): Avoid test failure on
12612         directories if fchdir is not active.
12613         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12614
12615 2011-03-31  Bruno Haible  <bruno@clisp.org>
12616
12617         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12618         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12619         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12620         Reported by Simon Josefsson <simon@josefsson.org>.
12621
12622 2011-03-31  Bruno Haible  <bruno@clisp.org>
12623         and Eric Blake  <eblake@redhat.com>
12624
12625         nonblocking: new module
12626         * modules/nonblocking: New module.
12627         * modules/nonblocking-tests: Likewise.
12628         * lib/nonblocking.h: New file.
12629         * lib/nonblocking.c: Likewise.
12630         * tests/test-nonblocking.c: New test.
12631         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12632
12633 2011-03-30  Bruno Haible  <bruno@clisp.org>
12634
12635         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12636         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12637         instead of 'printf' format for GCC >= 4.4.
12638         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12639         (fprintf, printf, vfprintf, vprintf): Declare with
12640         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12641         the system's vfprintf() function.
12642         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12643
12644 2011-03-30  Eric Blake  <eblake@redhat.com>
12645
12646         passfd: fix scoping bug
12647         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12648         before sendmsg/recvmsg.
12649
12650         passfd: standardize coding conventions
12651         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12652         can be learned at compile time.
12653         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12654         ifdefs.
12655         (sendfd, recvfd): Follow gnulib code conventions.
12656
12657         passfd: fix incorrect sendmsg arguments
12658         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12659         incorrect msg_controllen value.
12660         * modules/passfd-tests (Depends-on): Check for alarm.
12661         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12662         Reported by Bastien ROUCARIES.
12663
12664 2011-03-30  Bruno Haible  <bruno@clisp.org>
12665
12666         c-strcasestr: Relicense under LGPLv2+.
12667         * modules/c-strcasestr (License): Change to LGPLv2+.
12668         Requested by Eric Blake, for libvirt.
12669
12670 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12671
12672         * users.txt: Add libidn2.  Fix libtasn1 link.
12673
12674 2011-03-30  Jim Meyering  <meyering@redhat.com>
12675
12676         tests: readlink* ("",... fails with EINVAL on newer kernels
12677         readlink and readlinkat have typically failed with ENOENT for
12678         the invalid, empty file name,  "".  However, with the advent
12679         of linux-2.6.39, they fail with EINVAL.
12680         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12681         when operating on the empty file name.
12682         * tests/test-readlink.h (test_readlink): Likewise.
12683
12684 2011-03-29  Bruno Haible  <bruno@clisp.org>
12685
12686         Relicense some modules under LGPLv2+, for libidn2.
12687         * modules/array-mergesort (License): Change to LGPLv2+.
12688         * modules/c-strcaseeq (License): Likewise.
12689         * modules/striconveh (License): Likewise.
12690         * modules/striconveha (License): Likewise.
12691         * modules/uniconv/base (License): Likewise.
12692         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12693         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12694         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12695         * modules/unictype/base (License): Likewise.
12696         * modules/unictype/bidiclass-of (License): Likewise.
12697         * modules/unictype/category-M (License): Likewise.
12698         * modules/unictype/category-none (License): Likewise.
12699         * modules/unictype/category-of (License): Likewise.
12700         * modules/unictype/category-test (License): Likewise.
12701         * modules/unictype/category-test-withtable (License): Likewise.
12702         * modules/unictype/combining-class (License): Likewise.
12703         * modules/unictype/joiningtype-of (License): Likewise.
12704         * modules/unictype/scripts (License): Likewise.
12705         * modules/uninorm/base (License): Likewise.
12706         * modules/uninorm/canonical-decomposition (License): Likewise.
12707         * modules/uninorm/composition (License): Likewise.
12708         * modules/uninorm/decompose-internal (License): Likewise.
12709         * modules/uninorm/decomposition-table (License): Likewise.
12710         * modules/uninorm/nfc (License): Likewise.
12711         * modules/uninorm/nfd (License): Likewise.
12712         * modules/uninorm/u32-normalize (License): Likewise.
12713         * modules/unistr/base (License): Likewise.
12714         * modules/unistr/u32-cpy (License): Likewise.
12715         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12716         * modules/unistr/u32-to-u8 (License): Likewise.
12717         * modules/unistr/u32-uctomb (License): Likewise.
12718         * modules/unistr/u8-check (License): Likewise.
12719         * modules/unistr/u8-mblen (License): Likewise.
12720         * modules/unistr/u8-mbtouc (License): Likewise.
12721         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12722         * modules/unistr/u8-mbtoucr (License): Likewise.
12723         * modules/unistr/u8-prev (License): Likewise.
12724         * modules/unistr/u8-strlen (License): Likewise.
12725         * modules/unistr/u8-to-u32 (License): Likewise.
12726         * modules/unistr/u8-uctomb (License): Likewise.
12727         * modules/unitypes (License): Likewise.
12728         Requested by Simon Josefsson.
12729
12730 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12731
12732         lib-symbol-visibility: Add a notice.
12733         * modules/lib-symbol-visibility (Notice): New field.
12734
12735 2011-03-29  Bruno Haible  <bruno@clisp.org>
12736
12737         getaddrinfo: Doc fix.
12738         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12739         section "fixed in Gnulib".
12740
12741 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12742
12743         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12744         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12745
12746 2011-03-26  Bruno Haible  <bruno@clisp.org>
12747
12748         unictype/property-byname: Reduce the number of load-time relocations.
12749         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12750         (UC_PROPERTY_INDEX_*): New enumeration values.
12751         (uc_property_byname): Convert an index from the lookup table to an
12752         uc_property_t.
12753         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12754         values.
12755
12756 2011-03-26  Bruno Haible  <bruno@clisp.org>
12757
12758         unictype/property-byname: Allow omitted word separators and aliases.
12759         * lib/unictype/pr_byname.gperf: Add property names without word
12760         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12761         for 'space'.
12762
12763 2011-03-26  Bruno Haible  <bruno@clisp.org>
12764
12765         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12766         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12767         also hyphens to space.
12768         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12769         without spaces.
12770         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12771
12772 2011-03-26  Bruno Haible  <bruno@clisp.org>
12773
12774         unictype/joiningtype-byname: Recognize long names as well.
12775         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12776         a long name.
12777         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12778         unictype/joiningtype_byname.h.
12779         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12780         * lib/unictype/joiningtype_byname.gperf: New file.
12781         * modules/unictype/joiningtype-byname (Files): Add
12782         lib/unictype/joiningtype_byname.gperf.
12783         (Depends-on): Add gperf.
12784         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12785         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12786         long names.
12787
12788         Tests for module 'unictype/joiningtype-longname'.
12789         * modules/unictype/joiningtype-longname-tests: New file.
12790         * tests/unictype/test-joiningtype_longname.c: New file.
12791
12792         New module 'unictype/joiningtype-longname'.
12793         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12794         * lib/unictype/joiningtype_longname.c: New file.
12795         * modules/unictype/joiningtype-longname: New file.
12796         * modules/unictype/joiningtype-all (Depends-on): Add
12797         unictype/joiningtype-longname.
12798
12799 2011-03-26  Bruno Haible  <bruno@clisp.org>
12800
12801         unictype/bidiclass-byname: Recognize long names as well.
12802         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12803         name.
12804         * lib/unictype/bidi_byname.c: Include <string.h>,
12805         unictype/bidi_byname.h.
12806         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12807         * lib/unictype/bidi_byname.gperf: New file.
12808         * modules/unictype/bidiclass-byname (Files): Add
12809         lib/unictype/bidi_byname.gperf.
12810         (Depends-on): Add gperf.
12811         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12812         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12813         long names.
12814
12815         Tests for module 'unictype/bidiclass-longname'.
12816         * modules/unictype/bidiclass-longname-tests: New file.
12817         * tests/unictype/test-bidi_longname.c: New file.
12818
12819         New module 'unictype/bidiclass-longname'.
12820         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12821         * lib/unictype/bidi_longname.c: New file.
12822         * modules/unictype/bidiclass-longname: New file.
12823         * modules/unictype/bidiclass-all (Depends-on): Add
12824         unictype/bidiclass-longname.
12825
12826 2011-03-26  Bruno Haible  <bruno@clisp.org>
12827
12828         unictype/bidi*: Rename modules.
12829         * modules/unictype/bidiclass-all: Renamed from
12830         modules/unictype/bidicategory-all.
12831         * modules/unictype/bidiclass-name: Renamed from
12832         modules/unictype/bidiclass-name.
12833         (Description): Update.
12834         * modules/unictype/bidiclass-name-tests: Renamed from
12835         modules/unictype/bidicategory-name-tests.
12836         * modules/unictype/bidiclass-byname: Renamed from
12837         modules/unictype/bidicategory-byname.
12838         (Description): Update.
12839         * modules/unictype/bidiclass-byname-tests: Renamed from
12840         modules/unictype/bidicategory-byname-tests.
12841         * modules/unictype/bidiclass-of: Renamed from
12842         modules/unictype/bidicategory-of.
12843         (Description): Update.
12844         * modules/unictype/bidiclass-of-tests: Renamed from
12845         modules/unictype/bidicategory-of-tests.
12846         * modules/unictype/bidiclass-test: Renamed from
12847         modules/unictype/bidicategory-test.
12848         (Description): Update.
12849         * modules/unictype/bidiclass-test-tests: Renamed from
12850         modules/unictype/bidicategory-test-tests.
12851         * modules/unictype/bidicategory-all: New file, a simple redirection.
12852         * modules/unictype/bidicategory-name: Likewise.
12853         * modules/unictype/bidicategory-byname: Likewise.
12854         * modules/unictype/bidicategory-of: Likewise.
12855         * modules/unictype/bidicategory-test: Likewise.
12856         * modules/unictype/property-bidi-* (Dependencies): Update.
12857         * lib/unictype/bidi_*.c: Update comment.
12858
12859 2011-03-26  Bruno Haible  <bruno@clisp.org>
12860
12861         unictype/bidi*: Rename functions, part 2.
12862         * modules/unictype/bidicategory-name (configure.ac): Update required
12863         libunistring version.
12864         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12865
12866 2011-03-25  Bruno Haible  <bruno@clisp.org>
12867
12868         New module 'unictype/combining-class-all'.
12869         * modules/unictype/combining-class-all: New file.
12870
12871         Tests for module 'unictype/combining-class-byname'.
12872         * modules/unictype/combining-class-byname-tests: New file.
12873         * tests/unictype/test-combiningclass_byname.c: New file.
12874
12875         New module 'unictype/combining-class-byname'.
12876         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12877         * lib/unictype/combiningclass_byname.c: New file.
12878         * lib/unictype/combiningclass_byname.gperf: New file.
12879         * modules/unictype/combining-class-byname: New file.
12880
12881         Tests for module 'unictype/combining-class-longname'.
12882         * modules/unictype/combining-class-longname-tests: New file.
12883         * tests/unictype/test-combiningclass_longname.c: New file.
12884
12885         New module 'unictype/combining-class-longname'.
12886         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12887         * lib/unictype/combiningclass_longname.c: New file.
12888         * modules/unictype/combining-class-longname: New file.
12889
12890         Tests for module 'unictype/combining-class-name'.
12891         * modules/unictype/combining-class-name-tests: New file.
12892         * tests/unictype/test-combiningclass_name.c: New file.
12893
12894         New module 'unictype/combining-class-name'.
12895         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12896         * lib/unictype/combiningclass_name.c: New file.
12897         * modules/unictype/combining-class-name: New file.
12898
12899 2011-03-25  Bruno Haible  <bruno@clisp.org>
12900
12901         unictype/combining-class: Rename source files.
12902         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12903         of unictype/combining.h.
12904         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12905         Update.
12906         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12907         * modules/unictype/combining-class (Description): Fix.
12908         (Files, Makefile.am): Update.
12909         * tests/unictype/test-combiningclass.c: Renamed from
12910         tests/unictype/test-combining.c.
12911         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12912
12913 2011-03-25  Bruno Haible  <bruno@clisp.org>
12914
12915         unictype: Update list of canonical combining classes.
12916         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12917
12918 2011-03-25  Bruno Haible  <bruno@clisp.org>
12919
12920         unictype/category-byname: Recognize long names as well.
12921         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12922         a long name.
12923         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12924         unictype/categ_byname.h.
12925         (UC_CATEGORY_INDEX_*): New enumeration values.
12926         (uc_general_category_byname): Use uc_general_category_lookup and
12927         convert from index to value.
12928         * lib/unictype/categ_byname.gperf: New file.
12929         * modules/unictype/category-byname (Files): Add
12930         lib/unictype/categ_byname.gperf.
12931         (Depends-on): Add gperf.
12932         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12933         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12934         long names.
12935
12936         Tests for module 'unictype/category-longname'.
12937         * modules/unictype/category-longname-tests: New file.
12938         * tests/unictype/test-categ_longname.c: New file.
12939
12940         New module 'unictype/category-longname'.
12941         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12942         * lib/unictype/categ_longname.c: New file.
12943         * modules/unictype/category-longname: New file.
12944         * modules/unictype/category-all (Depends-on): Add it.
12945
12946 2011-03-25  Bruno Haible  <bruno@clisp.org>
12947
12948         Tests for module 'unictype/category-LC'.
12949         * modules/unictype/category-LC-tests: New file.
12950         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12951
12952         New module 'unictype/category-LC'.
12953         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12954         (UC_CATEGORY_LC): New declaration.
12955         (UC_CASED_LETTER): New macro.
12956         * lib/gen-uni-tables.c (is_category_LC): New function.
12957         (output_categories): Also handle category LC.
12958         (UC_CATEGORY_MASK_LC): New enumeration value.
12959         (general_category_byname): Also handle category LC.
12960         * lib/unictype/categ_LC.c: New file.
12961         * lib/unictype/categ_LC.h: New file, automatically generated.
12962         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12963         category LC.
12964         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12965         * modules/unictype/category-LC: New file.
12966         * modules/unictype/category-byname (Depends-on): Add
12967         unictype/category-LC.
12968         * modules/unictype/category-all (Depends-on): Likewise.
12969
12970 2011-03-25  Eric Blake  <eblake@redhat.com>
12971
12972         xmalloc: revert yesterday's regression
12973         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12974         realloc's underlying behavior (allowing allocation of zero-size
12975         objects, especially if malloc-gnu is also in use).
12976
12977 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12978
12979         maint.mk: add missing version to VC-tag
12980         * top/maint.mk: git tag was missing actual tag name; add it.
12981
12982         valgrind: do leak checking, and exit with code 1 on error (not 0)
12983         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12984         to VALGRIND.
12985
12986 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12987
12988         posix-modules: say what it does.
12989         * posix-modules: Add a line to the --help output saying what it does.
12990
12991 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12992
12993         xmalloc: Do not leak if underlying realloc is C99 compatible.
12994         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12995         This avoids a leak on C99-based systems.  See
12996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12997
12998 2011-03-24  Eric Blake  <eblake@redhat.com>
12999
13000         realloc: document portability problem
13001         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13002         passing 0 size to realloc.
13003
13004 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13005
13006         doc: update users.txt
13007         * users.txt: Add cvsps, tmpwatch
13008
13009 2011-03-23  Matt Rice  <ratmice@gmail.com>
13010
13011         doc: update users.txt
13012         * users.txt: Add gdb.
13013
13014 2011-03-23  Jim Meyering  <meyering@redhat.com>
13015
13016         doc: update users.txt
13017         Looking through matches up to the following URL (there are still
13018         several more pages), I found several projects that use gnulib:
13019         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13020         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13021         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13022
13023 2011-03-22  Bruno Haible  <bruno@clisp.org>
13024
13025         unictype/bidi*: Rename functions.
13026         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13027         uc_bidi_class, uc_is_bidi_class): New declarations.
13028         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13029         uc_bidi_category_byname.
13030         (uc_bidi_category_byname): New function.
13031         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13032         u_bidi_category_name.
13033         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13034         (uc_bidi_category_name): New function.
13035         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13036         uc_bidi_category.
13037         (uc_bidi_category): New function.
13038         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13039         uc_is_bidi_category. Invoke uc_bidi_class.
13040         (uc_is_bidi_category): New function.
13041         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13042         instead of uc_bidi_category_byname.
13043         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13044         instead of uc_bidi_category_name.
13045         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13046         uc_bidi_category.
13047         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13048         instead of uc_is_bidi_category.
13049
13050 2011-03-21  Bruno Haible  <bruno@clisp.org>
13051
13052         New module 'unictype/joininggroup-all'.
13053         * modules/unictype/joininggroup-all: New file.
13054
13055         Tests for module 'unictype/joininggroup-of'.
13056         * modules/unictype/joininggroup-of-tests: New file.
13057         * tests/unictype/test-joininggroup_of.c: New file.
13058         * tests/unictype/test-joininggroup_of.h: New file, automatically
13059         generated by gen-uni-tables.
13060
13061         New module 'unictype/joininggroup-of'.
13062         * modules/unictype/joininggroup-of: New file.
13063         * lib/unictype/joininggroup_of.c: New file.
13064         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13065         gen-uni-tables.
13066
13067         Tests for module 'unictype/joininggroup-byname'.
13068         * modules/unictype/joininggroup-byname-tests: New file.
13069         * tests/unictype/test-joininggroup_byname.c: New file.
13070
13071         New module 'unictype/joininggroup-byname'.
13072         * modules/unictype/joininggroup-byname: New file.
13073         * lib/unictype/joininggroup_byname.c: New file.
13074         * lib/unictype/joininggroup_byname.gperf: New file.
13075
13076         Tests for module 'unictype/joininggroup-name'.
13077         * modules/unictype/joininggroup-name-tests: New file.
13078         * tests/unictype/test-joininggroup_name.c: New file.
13079
13080         New module 'unictype/joininggroup-name'.
13081         * modules/unictype/joininggroup-name: New file.
13082         * lib/unictype/joininggroup_name.c: New file.
13083         * lib/unictype/joininggroup_name.h: New file.
13084
13085         New module 'unictype/joiningtype-all'.
13086         * modules/unictype/joiningtype-all: New file.
13087
13088         Tests for module 'unictype/joiningtype-of'.
13089         * modules/unictype/joiningtype-of-tests: New file.
13090         * tests/unictype/test-joiningtype_of.c: New file.
13091         * tests/unictype/test-joiningtype_of.h: New file, automatically
13092         generated by gen-uni-tables.
13093
13094         New module 'unictype/joiningtype-of'.
13095         * modules/unictype/joiningtype-of: New file.
13096         * lib/unictype/joiningtype_of.c: New file.
13097         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13098         gen-uni-tables.
13099
13100         Tests for module 'unictype/joiningtype-byname'.
13101         * modules/unictype/joiningtype-byname-tests: New file.
13102         * tests/unictype/test-joiningtype_byname.c: New file.
13103
13104         New module 'unictype/joiningtype-byname'.
13105         * modules/unictype/joiningtype-byname: New file.
13106         * lib/unictype/joiningtype_byname.c: New file.
13107
13108         Tests for module 'unictype/joiningtype-name'.
13109         * modules/unictype/joiningtype-name-tests: New file.
13110         * tests/unictype/test-joiningtype_name.c: New file.
13111
13112         New module 'unictype/joiningtype-name'.
13113         * modules/unictype/joiningtype-name: New file.
13114         * lib/unictype/joiningtype_name.c: New file.
13115
13116         unictype: Add support for Arabic shaping properties.
13117         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13118         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13119         declarations.
13120         (UC_JOINING_GROUP_*): New enumeration values.
13121         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13122         declarations.
13123         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13124         (unicode_joining_type): New variable.
13125         (UC_JOINING_GROUP_*): New enumeration values.
13126         (unicode_joining_group): New variable.
13127         (fill_arabicshaping, joining_type_as_c_identifier,
13128         output_joining_type_test, output_joining_type,
13129         joining_group_as_c_identifier, output_joining_group_test,
13130         output_joining_group): New functions.
13131         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13132         fill_arabicshaping and output_joining_type_test, output_joining_type,
13133         output_joining_group_test, output_joining_group.
13134         Reported by Simon Josefsson.
13135
13136 2011-03-21  Jim Meyering  <meyering@redhat.com>
13137
13138         strftime: fix a bug in yesterday's change
13139         * lib/strftime.c (add): Accommodate width's initial value of -1.
13140         Otherwise, nstrftime would copy uninitialized data into
13141         the result buffer.
13142
13143 2011-03-21  Jim Meyering  <meyering@redhat.com>
13144
13145         tests: add strftime-tests module
13146         * tests/test-strftime.c: New file.
13147         * modules/strftime-tests: New module.
13148
13149 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13150
13151         strftime: don't assume a byte count fits in 'int'
13152         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13153         found this problem by static analysis, using gcc -Wstrict-overflow
13154         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13155         on an integer overflow having undefined behavior, but it turns out
13156         that the argument is a size, which might not fit in 'int' anyway,
13157
13158 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13159
13160         stdio: don't require ignore_value around fwrite
13161
13162         This patch works around libc bug 11959
13163         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13164         Without this patch, applications must often write
13165         ignore_value (fwrite (...)) even though the ignore_value is
13166         not helpful here.  It's common to write many objects, using
13167         fwrite/printf/etc., and then use ferror to detect output error.
13168
13169         I considered making this patch optional, but decided against it,
13170         because libc is obviously being inconsistent here: there is no
13171         reason libc should insist that user code must inspect fwrite
13172         return's value without also insisting that it inspect printf's,
13173         putchar's, etc.  If user code wants to have a strict style where
13174         all these functions' values are checked (so that ferror need not
13175         be checked), we could add support for that style in a new gnulib
13176         module, but in the meantime it's better to be consistent and to
13177         support common usage.
13178
13179         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13180         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13181         that we are compiling in checking mode, and if not C++, and
13182         if not already wrapping fwrite for some other reason.
13183         (fwrite): #define to rpl_fwrite if the latter is defined.
13184
13185 2011-03-20  Bruno Haible  <bruno@clisp.org>
13186
13187         verror: Fix compilation error introduced on 2011-02-13.
13188         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13189         instead of __attribute__.
13190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13191
13192 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13193             Bruno Haible  <bruno@clisp.org>
13194
13195         socklen: do not depend on sys_socket
13196         While trying to modify Emacs to use gnulib's socklen module,
13197         I discovered a circular dependency: socklen depends on sys_socket
13198         and vice versa.  Emacs can use socklen, but it does not need
13199         sys_socket because it has its own substitute for sys/socket.h.
13200         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13201         gl_TYPE_SOCKLEN_T.
13202         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13203         gl_PREREQ_SYS_H_SOCKET.
13204         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13205         gl_PREREQ_SYS_H_SOCKET.
13206         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13207         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13208         * modules/socklen (Depends-on): Do not depend on sys_socket.
13209         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13210
13211 2011-03-20  Jim Meyering  <meyering@redhat.com>
13212
13213         maint.mk: sort file names *after* new transformation
13214         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13215         prefix would have led to an unwarranted failure in GNU parted.
13216         Sort after that transformation.
13217
13218 2011-03-19  Jim Meyering  <meyering@redhat.com>
13219
13220         maint.mk: fix po-file syntax-check rule
13221         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13222         Patch by Bruno Haible.
13223
13224 2011-03-19  Bruno Haible  <bruno@clisp.org>
13225
13226         socklen: Update comment.
13227         * m4/socklen.m4: Update comment about platforms.
13228
13229 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13230             Bruno Haible  <bruno@clisp.org>
13231
13232         inet_ntop, inet_pton: Simplify.
13233         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13234         documented to provide socklen_t and we already depend on sys_socket.
13235         * modules/inet_pton (Depends-on): Likewise.
13236         * lib/arpa_inet.in.h: Adjust comment.
13237
13238 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13239             Bruno Haible  <bruno@clisp.org>
13240
13241         netdb: Simplify.
13242         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13243         documented to provide socklen_t and we already depend on sys_socket.
13244         * lib/netdb.in.h: Adjust comment.
13245
13246 2011-03-19  Bruno Haible  <bruno@clisp.org>
13247
13248         sys_socket, netdb: Document problem with socklen_t.
13249         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13250         platforms.
13251         * doc/posix-headers/netdb.texi: Likewise.
13252
13253 2011-03-18  Eric Blake  <eblake@redhat.com>
13254
13255         maint.mk: let po check work in VPATH build
13256         * top/maint.mk (po_file): Allow cfg.mk override.
13257         (sc_po_check): Allow VPATH use.
13258         Reported by Jiri Denemark.
13259
13260 2011-03-16  Jim Meyering  <meyering@redhat.com>
13261
13262         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13263         Before, you would have had to create one .x-sc_ file per rule in order
13264         to exempt offending files.  Now, you may instead use a Make variable --
13265         usually defined in cfg.mk -- whose name identifies the affected rule.
13266         * top/maint.mk (_sc_excl): Define.
13267         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13268         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13269
13270 2011-03-13  Bruno Haible  <bruno@clisp.org>
13271
13272         ignore-value tests: Avoid warnings.
13273         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13274         empty for gcc < 3.4.
13275
13276 2011-03-13  Bruno Haible  <bruno@clisp.org>
13277
13278         passfd: Fix link error on Solaris.
13279         * modules/passfd (Description): Correct.
13280         (Depends-on): Add socketlib.
13281         (Link): New section.
13282         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13283
13284 2011-03-13  Bruno Haible  <bruno@clisp.org>
13285
13286         passfd: Fix link error on AIX 5.2.
13287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13288
13289 2011-03-13  Bruno Haible  <bruno@clisp.org>
13290
13291         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13292         * lib/sys_socket.in.h: Include <stddef.h>.
13293         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13294         CMSG_FIRSTHDR. Remove unused variable.
13295
13296 2011-03-13  Bruno Haible  <bruno@clisp.org>
13297
13298         passfd: Fix compilation error on OpenBSD.
13299         * lib/passfd.c: Include <sys/uio.h>.
13300
13301 2011-03-13  Bruno Haible  <bruno@clisp.org>
13302
13303         passfd test: Fix warnings.
13304         * tests/test-passfd.c: Include <sys/wait.h>.
13305         (main): Fix typo.
13306
13307 2011-03-13  Bruno Haible  <bruno@clisp.org>
13308
13309         passfd module, part 4, tweaks.
13310         * tests/test-passfd.c: Reorder includes.
13311         (main): Fix perror and printf calls.
13312
13313 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13314
13315         passfd module, part 4.
13316         * modules/passfd-tests: New file.
13317         * tests/test-passfd.c: New file.
13318
13319 2011-03-13  Jim Meyering  <meyering@redhat.com>
13320
13321         Makefile: rely on GNU make; derive syntax-check rule names
13322         Rather than requiring that each sc_ rule be listed as a dependent
13323         of "check", use features of GNU make to derive the list.
13324         * Makefile (syntax-check-rules): Define.
13325         (check): Depend on the new variable, not the hard-coded list.
13326
13327 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13328             Bruno Haible  <bruno@clisp.org>
13329
13330         passfd module, part 3.
13331         * lib/passfd.h (recvfd): Add a flags argument.
13332         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13333         (recvfd): Add a flags argument.
13334         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13335         exists.
13336         * modules/passfd (Depends-on): Add cloexec.
13337         Suggested by Eric Blake.
13338
13339 2011-03-13  Bruno Haible  <bruno@clisp.org>
13340
13341         passfd module, part 2, tweaks.
13342         * modules/passfd (Files): Reorder.
13343         (Depends-on): Remove errno.
13344         (Include): Remove <sys/socket.h>, <sys/un.h>.
13345         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13346         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13347         specification header. Include <sys/socket.h> always. Don't include
13348         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13349         (sendfd): Clarify that it sets errno when it fails.
13350         (recvfd): Fix specification.
13351
13352 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13353
13354         passfd module, part 2.
13355         * modules/passfd: New file.
13356         * lib/passfd.h: New file.
13357         * lib/passfd.c: New file.
13358
13359 2011-03-12  Bruno Haible  <bruno@clisp.org>
13360
13361         wcswidth, mbswidth: Avoid integer overflow.
13362         * lib/wcswidth.c: Include <limits.h>.
13363         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13364         * lib/mbswidth.c: Include <limits.h>.
13365         (mbsnwidth): Avoid 'int' overflow.
13366         Reported by Jim Meyering.
13367
13368 2011-03-12  Bruno Haible  <bruno@clisp.org>
13369
13370         futimens, utimensat: Avoid endless recursion on Solaris 10.
13371         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13372         Solaris.
13373         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13374         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13375
13376 2011-03-11  Jim Meyering  <meyering@redhat.com>
13377
13378         maint.mk: relax a regexp to accommodate other formatting styles
13379         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13380         between "ngettext" and the following "(".
13381
13382 2011-03-11  Pádraig Brady <P@draigBrady.com>
13383
13384         maint.mk: suppress a false positive warning
13385         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13386         diagnostics are marked with ngettext.
13387
13388 2011-03-10  Eric Blake  <eblake@redhat.com>
13389
13390         wchar: add explicit dependencies, for Tru64
13391         * modules/mbmemcasecoll (Depends-on): Add wchar.
13392         * modules/mbtowc (Depends-on): Likewise.
13393         * modules/vasnprintf (Depends-on): Likewise.
13394         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13395         * modules/wctomb (Depends-on): Likewise.
13396         Reported by Peter O'Gorman.
13397
13398 2011-03-08  Bruno Haible  <bruno@clisp.org>
13399
13400         passfd module, part 1, tweaks.
13401         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13402         Improve indentation. Improve AC_MSG_CHECKING messages.
13403         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13404         gl_SOCKET_FAMILIES.
13405
13406 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13407
13408         passfd module, part 1.
13409         * m4/afunix.m4: New file.
13410         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13411         sockets.
13412
13413 2011-03-08  Bruno Haible  <bruno@clisp.org>
13414
13415         regex-quote: New API.
13416         * lib/regex-quote.h: Include <stdbool.h>.
13417         (struct regex_quote_spec): New type.
13418         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13419         New declarations.
13420         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13421         'const struct regex_quote_spec *' argument.
13422         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13423         (pcre_special): New constant.
13424         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13425         New functions.
13426         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13427         'const struct regex_quote_spec *' argument.
13428         * modules/regex-quote (Depends-on): Add stdbool.
13429         * tests/test-regex-quote.c (check): Update for new API. Add test for
13430         anchored results.
13431         * NEWS: Mention the API change.
13432         Reported by Reuben Thomas and Eric Blake.
13433
13434 2011-03-06  Bruno Haible  <bruno@clisp.org>
13435
13436         regex-quote: Fix creation of POSIX extended regular expressions.
13437         * lib/regex-quote.c (ere_special): Add grouping and alternation
13438         operators.
13439
13440 2011-03-05  Bruno Haible  <bruno@clisp.org>
13441
13442         doc: Improve doc regarding autopoint vs. gnulib.
13443         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13444         disable autopoint while running autoreconf.
13445         Suggested by Ralf Wildenhues.
13446
13447 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13448
13449         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13450         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13451
13452 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13453
13454         parse-duration: remove xalloc.h dependency
13455         * lib/parse-duration.c (parse_period): handle NULL return from
13456         strdup instead of calling xstrdup().
13457         * modules/parse-duration: remove "xalloc" dependency
13458
13459 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13460
13461         bootstrap: honor m4_base when running aclocal
13462         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13463
13464 2011-03-02  Jim Meyering  <meyering@redhat.com>
13465
13466         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13467         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13468         on request from Matt Booth.
13469
13470 2011-03-01  Eric Blake  <eblake@redhat.com>
13471
13472         test-link: work on Hurd
13473         * tests/test-link.h (test_link): Hurd rejects linking directories
13474         with EISDIR instead of the POSIX-mandated EPERM.
13475
13476 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13477
13478         stdio: simplify by moving files to printf-posix, sigpipe
13479         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13480         since this symbol is needed only if printf is replaced.
13481         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13482         Require gl_ASM_SYMBOL_PREFIX.
13483         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13484         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13485         (Depends-on): Add 'raise'.
13486         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13487         * modules/stdio (Files): Remove lib/stdio-write.c,
13488         m4/asm-underscore.m4.
13489         (Depends-on): Remove 'raise'.
13490
13491         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13492         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13493         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13494         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13495
13496 2011-02-28  Bruno Haible  <bruno@clisp.org>
13497
13498         localcharset: Assume ANSI C behaviour of free().
13499         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13500         calling free().
13501         Suggested by Simon Josefsson <simon@josefsson.org>.
13502
13503 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13504             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13505             Bruno Haible  <bruno@clisp.org>  (tiny change)
13506
13507         On Cygwin, use /proc file system instead of win32 API.
13508         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13509         Win32 file names.
13510         (DllMain): Simplify by removing Cygwin specific code.
13511         (find_shared_library_fullname): Use Linux specific implementation also
13512         for Cygwin.
13513         (get_shared_library_fullname): Update accordingly.
13514         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13515         Win32 file names.
13516         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13517         Cygwin specific code.
13518
13519 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13520             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13521
13522         Fix OpenMP flag detection for various Fortran compilers.
13523         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13524         OpenMP-conditional compilation construct, to force compile
13525         failure with missing OpenMP flag.
13526         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13527
13528 2011-02-25  Eric Blake  <eblake@redhat.com>
13529
13530         strstr: expand test coverage
13531         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13532         compilation.
13533         * tests/test-memmem.c (main): Duplicate tests.
13534         * tests/test-strcasestr.c (main): Likewise.
13535         * tests/test-c-strcasestr.c (main): Likewise.
13536
13537 2011-02-25  Jim Meyering  <meyering@redhat.com>
13538
13539         maint.mk: detect missing-NL-at-EOF, too
13540         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13541         it also detects when a file lacks a newline at EOF.
13542         (require_exactly_one_NL_at_EOF_): Renamed from
13543         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13544         since people may well have .x-sc_... file names tied to the
13545         existing name.  Suggested by Eric Blake.
13546
13547 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13548
13549         dirname: move m4/dos.m4 functionality into lib/dosname.h
13550
13551         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13552         extracts symbols from it, puts them into config.h; but it's much
13553         easier to use the symbols directly.  filename.h already does this,
13554         but it disagrees with dos.m4 in some respects.  This patch
13555         introduces a different include file dosname.h that packages up
13556         dos.m4, and then later we can work on merging filename.h and
13557         dosname.h.  Applications that need only the easy-to-configure
13558         symbols should consider including dosname.h rather than dirname.h.
13559         * NEWS: Mention incompatible changes.
13560         * m4/dos.m4: Remove.
13561         * lib/dosname.h, modules/dosname: New files.
13562         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13563         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13564         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13565         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13566         Include dosname.h, not dirname.h.
13567         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13568         Include dosname.h, for definitions of symbols like ISSLASH
13569         that used to be in config.h.
13570         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13573         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13574         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13575         * modules/rmdir (Files): Likewise.
13576         * modules/stat (Files): Likewise.
13577         * modules/unlink (Files): Likewise.
13578         * modules/dirname-lgpl (Depends-on): Add dosname.
13579         * modules/lstat (Depends-on): Likewise.
13580         * modules/openat (Depends-on): Likewise.
13581         * modules/rmdir (Depends-on): Likewise.
13582         * modules/savewd (Depends-on): Likewise.
13583         * modules/stat (Depends-on): Likewise.
13584         * modules/unlink (Depends-on): Likewise.
13585         * modules/openat (Depends-on): Remove dirname-lgpl.
13586         * modules/savewd (Depends-on): Likewise.
13587         * tests/test-dirname.c: Do not use removed symbols like
13588         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13589         the remaining symbols, e.g., ISSLASH ('\\').
13590
13591 2011-02-25  Eric Blake  <eblake@redhat.com>
13592
13593         strstr: revert patches that introduced bug and pessimization
13594         * lib/str-two-way.h: Add another reference.
13595         (two_way_short_needle, two_way_long_needle): Revert changes from
13596         2011-02-24; they pessimize search speed.
13597         (critical_factorization): Partially revert changes from
13598         2010-06-22; they violate the requirement that the left half of the
13599         needle be smaller than the period of the needle.
13600
13601 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13602
13603         filenamecat: remove unnecessary dependency on dirname-lgpl
13604         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13605         is no direct dependency, just an indirect one via filenamecat-lgpl.
13606
13607         remove: remove unnecessary use of m4/dos.m4
13608         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13609         * modules/remove (FILES): Remove m4/dos.m4.
13610
13611         * lib/openat-proc.c: Don't include dirname.h; not needed.
13612
13613         backupfile: remove unnecessary use of m4/dos.m4
13614         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13615         of its symbols are used by the backupfile code.  backupfile.c does
13616         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13617         for the rare case of programs that want all their backup file
13618         names to live within 8+3 limits, and dos.m4 doesn't address that.
13619         * modules/backupfile (Files): Remove m4/dos.m4.
13620
13621 2011-02-24  Jim Meyering  <meyering@redhat.com>
13622
13623         strstr: fix a bug whereby strstr would mistakenly return NULL
13624         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13625         in period calculation.
13626         (two_way_long_needle): Likewise.
13627         The original problem was reported by Mike Stump in
13628         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13629         Ralf Wildenhues provided the short needle and haystack.
13630         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13631         Add a more involved test to trigger the bug in two_way_long_needle.
13632
13633 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13634
13635         gnulib-tool: remove use of bold display in help screen
13636         * gnulib-tool (func_usage): Do not use bold display anymore in the
13637         help screen.  That was just meant to be a temporary emphasis for a
13638         backward-incompatible change.
13639
13640 2011-02-23  Bruno Haible  <bruno@clisp.org>
13641
13642         Fix misindentation of preprocessor directives.
13643         * lib/argp-namefrob.h: Reindent preprocessor directives.
13644         * lib/getopt_int.h (struct _getopt_data): Likewise.
13645         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13646         * lib/vasnprintf.c (decode_long_double): Likewise.
13647         * tests/test-argmatch.c: Insert blank lines, for clarity.
13648         * tests/test-exclude.c: Likewise.
13649
13650 2011-02-22  Bruno Haible  <bruno@clisp.org>
13651
13652         ioctl: Fix for MacOS X in 64-bit mode.
13653         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13654         value.
13655         Suggested by Eric Blake.
13656         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13657
13658 2011-02-22  Jim Meyering  <meyering@redhat.com>
13659
13660         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13661         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13662         in lib/.
13663
13664 2011-02-22  Eric Blake  <eblake@redhat.com>
13665
13666         maint: avoid any CDPATH issue
13667         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13668
13669         maint: adjust cpp indentation for my modules, as well
13670         * Makefile (sc_cpp_indent_check): Add my name.
13671         * lib/fbufmode.c: Filter through cppi.
13672         * lib/fpurge.c: Likewise.
13673         * lib/freadable.c: Likewise.
13674         * lib/freading.c: Likewise.
13675         * lib/fwritable.c: Likewise.
13676         * lib/fwriting.c: Likewise.
13677         * lib/sigaction.c: Likewise.
13678
13679 2011-02-22  Jim Meyering  <meyering@redhat.com>
13680
13681         maint: adjust cpp indentation to reflect nesting depth
13682         I.e., in a block of code that begins with an unnested "#if",
13683         put one space between the "#" in column 1 and following token.
13684         For example,
13685         -#include <sys/vfs.h>
13686         +# include <sys/vfs.h>
13687         Do this only in .c files that are part of a module I maintain.
13688         * lib/linkat.c: Filter through cppi.
13689         * lib/nanosleep.c: Likewise.
13690         * lib/openat.c: Likewise.
13691         * lib/openat-die.c: Likewise.
13692         * lib/dup3.c: Likewise.
13693         * lib/fchownat.c: Likewise.
13694         * lib/flock.c: Likewise.
13695         * lib/fsync.c: Likewise.
13696         * lib/fts.c: Likewise.
13697         * lib/getpass.c: Likewise.
13698         * lib/gettimeofday.c: Likewise.
13699         * lib/userspec.c: Likewise.
13700         * Makefile (sc_cpp_indent_check): New rule, to check this.
13701
13702 2011-02-22  Bruno Haible  <bruno@clisp.org>
13703
13704         New module 'wctomb'.
13705         * lib/stdlib.in.h (wctomb): New declaration.
13706         * lib/wctomb.c: New file.
13707         * lib/wctomb-impl.h: New file.
13708         * m4/wctomb.m4: New file.
13709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13710         REPLACE_WCTOMB.
13711         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13712         REPLACE_WCTOMB.
13713         * modules/wctomb: New file.
13714         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13715         * doc/posix-functions/wctomb.texi: Mention the new module.
13716         * modules/wctob (Depends-on): Add wctomb.
13717
13718 2011-02-22  Bruno Haible  <bruno@clisp.org>
13719
13720         New module 'mbtowc'.
13721         * lib/stdlib.in.h (mbtowc): New declaration.
13722         * lib/mbtowc.c: New file.
13723         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13724         * m4/mbtowc.m4: New file.
13725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13726         REPLACE_MBTOWC.
13727         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13728         REPLACE_MBTOWC.
13729         * modules/mbtowc: New file.
13730         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13731         * doc/posix-functions/mbtowc.texi: Mention the new module.
13732         * modules/btowc (Depends-on): Add mbtowc.
13733
13734 2011-02-22  Bruno Haible  <bruno@clisp.org>
13735
13736         wcrtomb: Add more tests for native Windows platforms.
13737         * tests/test-wcrtomb-w32-1.sh: New file.
13738         * tests/test-wcrtomb-w32-2.sh: New file.
13739         * tests/test-wcrtomb-w32-3.sh: New file.
13740         * tests/test-wcrtomb-w32-4.sh: New file.
13741         * tests/test-wcrtomb-w32-5.sh: New file.
13742         * tests/test-wcrtomb-w32.c: New file.
13743         * modules/wcrtomb-tests (Files): Add them.
13744         (Makefile.am): Arrange to run these tests.
13745         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13746         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13747
13748 2011-02-20  Bruno Haible  <bruno@clisp.org>
13749
13750         wcrtomb: Enhance test.
13751         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13752
13753 2011-02-20  Bruno Haible  <bruno@clisp.org>
13754
13755         mbrtowc: Tiny optimization.
13756         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13757
13758 2011-02-20  Jim Meyering  <meyering@redhat.com>
13759
13760         test-exclude.c: remove unmatched #endif
13761         * tests/test-exclude.c: Remove stray #endif, left over from
13762         the change of a week ago.
13763
13764 2011-02-19  Jim Meyering  <meyering@redhat.com>
13765
13766         git-version-gen: skip "-dirty" check when appropriate
13767         * build-aux/git-version-gen: Don't run any git commands when the
13768         version string comes from .tarball-version.  Prior to this, we
13769         would run git update-index --refresh even from a just-unpacked
13770         tarball directory, and that could affect a .git/ directory in a
13771         parent of the build directory.  Reported by Mike Frysinger.
13772
13773 2011-02-19  Bruno Haible  <bruno@clisp.org>
13774
13775         unictype/property-byname: Reduce the size of the 'data' segment.
13776         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13777
13778 2011-02-19  Bruno Haible  <bruno@clisp.org>
13779
13780         unictype/scripts: Reduce the size of the 'data' segment.
13781         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13782         '%pic'.
13783         * lib/unictype/scripts_byname.gperf: Regenerated.
13784
13785 2011-02-19  Bruno Haible  <bruno@clisp.org>
13786
13787         stdint: Update documentation.
13788         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13789
13790 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13791
13792         stdint: omit redundant check for wchar.h
13793         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13794         always tests whether wchar.h exists, so remove the now-redundant test.
13795
13796 2011-02-18  Bruno Haible  <bruno@clisp.org>
13797
13798         stdint: Cut dependency to module 'wchar'.
13799         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13800         include the necessary prerequisites.
13801         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13802         * modules/stdint (Depends-on): Remove wchar.
13803         (Makefile.am): Substitute HAVE_WCHAR_H.
13804         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13805
13806 2011-02-18  Eric Blake  <eblake@redhat.com>
13807
13808         longlong: skip, rather than fail, on cross-compilation
13809         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13810         when cross-compiling; regression from 2011-02-16.
13811
13812 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13813
13814         * NEWS: Mention 2011-02-08 change to stdlib.
13815
13816 2011-02-17  Bruno Haible  <bruno@clisp.org>
13817
13818         getloadavg: Add comments about platforms.
13819         * m4/getloadavg.m4: Add comment.
13820         * lib/getloadavg.c: Likewise.
13821
13822 2011-02-17  Bruno Haible  <bruno@clisp.org>
13823
13824         getloadavg: Fix link error on Solaris 2.6.
13825         * modules/getloadavg (Link): New section.
13826         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13827         linking test-getloadavg.
13828         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13829         getloadavg.
13830
13831 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13832
13833         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13834         It was 'int', but this doesn't match the IRIX 6.5 manual.
13835         Suggested by Bruno Haible in
13836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13837
13838 2011-02-17  Bruno Haible  <bruno@clisp.org>
13839
13840         havelib: Fix comments.
13841         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13842         change.
13843
13844 2011-02-17  Bruno Haible  <bruno@clisp.org>
13845
13846         havelib: Update config.rpath.
13847         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13848
13849 2011-02-17  Bruno Haible  <bruno@clisp.org>
13850
13851         getloadavg test: Add some plausibility checks.
13852         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13853         is improbable.
13854
13855 2011-02-16  Eric Blake  <eblake@redhat.com>
13856
13857         maintainer-makefile: make syntax-check a no-op from tarballs
13858         * top/maint.mk (no-vc-detected): New rule.
13859         (local-checks-available): Use it to avoid hanging if someone tries
13860         'make syntax-check' from a tarball.  Also append to any non-syntax
13861         checks already defined in cfg.mk.
13862
13863 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13864
13865         longlong: tune, particularly for common case of c99
13866
13867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13868         or running anything if c99, or if unsigned long long int does not
13869         work.  In either case, we know the answer without further tests.
13870         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13871         it at most once, and use its results for both long long int and
13872         unsigned long long int.  This is more likely to be efficient in
13873         the common case where the program wants to check for both long
13874         long int and unsigned long long int.
13875         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13876         since the answer is already known.
13877
13878 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13879
13880         getloadavg: set errno
13881         * lib/getloadavg.c: Set errno when returning -1.  If no other
13882         error number looks appropriate, set it to ENOSYS if the getloadavg
13883         looks like it can't possibly ever work, ENOTSUP otherwise.
13884         Suggested by Bruno Haible in
13885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13886
13887         getloadavg: trim unused parts and speed up 'configure'
13888         * NEWS: Document this.
13889         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13890         always compiled if getloadavg is absent.
13891         Move test code to ...
13892         * tests/test-getloadavg.c: New file, containing previous
13893         contents of test from lib/getloadavg.c.  It also contains
13894         suggestions by Bruno Haible in
13895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13896         * modules/getloadavg-tests: New file.
13897         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13898         Do tests in the same order as they're needed for getloadavg.c.
13899         Omit setgid-related tests that generate symbols KMEM_GROUP,
13900         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13901         Do only the tests that are needed to see whether the system has
13902         getloadavg, moving the other tests into ...
13903         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13904         NLIST_NAME_UNION; nobody should be using it.  Do not define
13905         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13906         relevant, as the user of this module shouldn't care how getloadavg
13907         is implemented.
13908
13909         getloadavg: omit unused var
13910         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13911
13912 2011-02-15  Jim Meyering  <meyering@redhat.com>
13913
13914         doc: update users.txt
13915         * users.txt: Update iwhd's URL.
13916
13917 2011-02-13  Bruno Haible  <bruno@clisp.org>
13918
13919         Consistent macro naming for macros that use GCC __attribute__.
13920         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13921         _ATTRIBUTE_NONNULL_.
13922         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13923         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13924         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13925         ATTRIBUTE_DEPRECATED.
13926         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13927         ATTRIBUTE_NORETURN.
13928         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13929         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13930         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13931         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13932         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13933         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13934         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13935         ATTRIBUTE_SENTINEL.
13936         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13937         ATTRIBUTE_RETURN_CHECK.
13938         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13939         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13940         ATTRIBUTE_NORETURN.
13941         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13942         Reported by Paul Eggert.
13943
13944 2011-02-13  Bruno Haible  <bruno@clisp.org>
13945
13946         Don't interfere with a program's definition of __attribute__.
13947         * lib/argp.h (__attribute__): Remove definition.
13948         (_GL_ATTRIBUTE_FORMAT): New macro.
13949         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13950         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13951         (_GL_ATTRIBUTE_FORMAT): New macro.
13952         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13953         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13954         GCC 3 or newer.
13955         * lib/error.h (__attribute__): Remove definition.
13956         (_GL_ATTRIBUTE_FORMAT): New macro.
13957         (error, error_at_line): Use it.
13958         * lib/hash.h (__attribute__): Remove definition.
13959         (ATTRIBUTE_WUR): Update definition. Define always.
13960         * lib/openat.h (__attribute__): Remove definition.
13961         (ATTRIBUTE_NORETURN): Update definition. Define always.
13962         * lib/sigpipe-die.h (__attribute__): Remove definition.
13963         (ATTRIBUTE_NORETURN): Update definition. Define always.
13964         * lib/vasnprintf.h (__attribute__): Remove definition.
13965         (_GL_ATTRIBUTE_FORMAT): New macro.
13966         (asnprintf, vasnprintf): Use it.
13967         * lib/xalloc.h (__attribute__): Remove definition.
13968         (ATTRIBUTE_NORETURN): Update definition. Define always.
13969         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13970         * lib/xmemdup0.h (__attribute__): Remove definition.
13971         (ATTRIBUTE_NORETURN): Update definition. Define always.
13972         * lib/xprintf.h (__attribute__): Remove definition.
13973         (_GL_ATTRIBUTE_FORMAT): New macro.
13974         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13975         * lib/xstrtol.h (__attribute__): Remove definition.
13976         (ATTRIBUTE_NORETURN): Update definition. Define always.
13977         * lib/xvasprintf.h (__attribute__): Remove definition.
13978         (_GL_ATTRIBUTE_FORMAT): New macro.
13979         (xasprintf, xvasprintf): Use it.
13980         * tests/test-argmatch.c (__attribute__): Remove definition.
13981         (ATTRIBUTE_NORETURN): Update definition. Define always.
13982         * tests/test-exclude.c (__attribute__): Remove definition.
13983         (ATTRIBUTE_NORETURN): Update definition. Define always.
13984         Reported by Paul Eggert.
13985
13986 2011-02-13  Bruno Haible  <bruno@clisp.org>
13987
13988         mbrtowc: Add more tests for native Windows platforms.
13989         * tests/test-mbrtowc-w32-1.sh: New file.
13990         * tests/test-mbrtowc-w32-2.sh: New file.
13991         * tests/test-mbrtowc-w32-3.sh: New file.
13992         * tests/test-mbrtowc-w32-4.sh: New file.
13993         * tests/test-mbrtowc-w32-5.sh: New file.
13994         * tests/test-mbrtowc-w32.c: New file.
13995         * modules/mbrtowc-tests (Files): Add them.
13996         (Makefile.am): Arrange to run these tests.
13997         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13998         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13999
14000 2011-02-13  Bruno Haible  <bruno@clisp.org>
14001
14002         mbrtowc: Work around native Windows bug.
14003         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14004         guess when no suitable locale for testing was found.
14005         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14006
14007 2011-02-13  Bruno Haible  <bruno@clisp.org>
14008
14009         mbsinit: Work around mingw bug.
14010         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14011         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14012         Windows.
14013         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14014
14015 2011-02-13  Bruno Haible  <bruno@clisp.org>
14016
14017         mbsinit: Don't crash for a NULL argument.
14018         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14019         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14020
14021 2011-02-13  Bruno Haible  <bruno@clisp.org>
14022
14023         Don't interfere with a program's definition of __attribute__.
14024         * lib/stdio.in.h (__attribute__): Remove definition.
14025         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14026         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14027         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14028         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14029         * lib/string.in.h (__attribute__): Remove definition.
14030         Reported by Paul Eggert.
14031
14032 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14033
14034         stdlib: don't get in the way of non-GCC __attribute__
14035         See thread starting at
14036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14037         Revert previous stdlib change, installing the following instead:
14038         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14039         to get in the way of a non-GCC compiler that supports __attribute__.
14040         (_GL_ATTRIBUTE_RETURN): New macro.
14041         (_Exit): Use it instead of __attribute__.
14042
14043 2011-02-12  Bruno Haible  <bruno@clisp.org>
14044
14045         quotearg test: Avoid test failure on mingw.
14046         * tests/test-quotearg.sh: Convert the locale identifier from native
14047         Windows syntax to Unix syntax.
14048
14049 2011-02-12  Bruno Haible  <bruno@clisp.org>
14050
14051         setlocale: Prefer gnulib's override over libintl's override.
14052         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14053         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14054         GNULIB_defined_setlocale is set.
14055
14056 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         stdlib: support non-GCC __attribute__
14059
14060         Fix a serious and tricky problem encountered when attempting to
14061         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14062         5.5, but it crashed due to memory corruption on Solaris 10 with
14063         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14064         bits that are otherwise zero.  This tagging is optional inside
14065         Emacs but is preferred and is used when __attribute__ ((__aligned
14066         (8))) works, as it does with both recent-enough GCC and with Sun C
14067         5.11.  However, Sun C 5.11 is not GCC and does not #define
14068         __GNUC__ and __GNUC_MINOR__.
14069
14070         When I added the getloadavg module to Emacs, it brought in
14071         stdlib.in.h, which contained this fragment:
14072
14073            #ifndef __attribute__
14074            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14075            #  define __attribute__(Spec)   /* empty */
14076            # endif
14077            #endif
14078
14079         When files that include <stdlib.h> were compiled with Sun C 5.11,
14080         the above code disabled __attribute__ ((__aligned (8))), which
14081         caused variables to not be properly aligned, which eventually led
14082         to the pointer corruption mentioned above.  (This was a bit hard
14083         to diagnose, unfortunately.)
14084
14085         Several "#define __attribute__(X) /* empty */" code snippets need
14086         to be eradicated from Gnulib to work with non-GCC compilers that
14087         support __attribute__.  The Autoconf way to do this is to test for
14088         each kind of attribute that we want support for, and selectively
14089         enable that in source code.
14090
14091         Fix this problem just for stdlib.h, by adding a test for the
14092         __noreturn__ attribute, and change stdlib.in.h to use that test
14093         when needed.  This technique can be easily generalized to the
14094         other *.in.h files and attributes, and a similar technique can be
14095         used for *.h and *.c files.  This patch is enough to solve the
14096         problem for Emacs + getloadavg, and I thought I'd publish it for
14097         feedback before undertaking further, similar fixes in other
14098         modules.
14099
14100         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14101         because it's not needed for stdlib.h.  It merely substitutes the
14102         value directly into stdlib.h.  We may well need to #define it, or
14103         similar symbols, for other modules, but it's nice to also have an
14104         option to not #define it for applications like Emacs that do not
14105         need it.
14106
14107         * lib/stdlib.in.h (__attribute__): Do not #define.
14108         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14109         be defined only if the _Exit module is also used.
14110         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14112         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14113         platforms.
14114         * modules/_Exit (Files): Add m4/attribute.m4.
14115         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14116         * m4/attribute.m4: New file.
14117
14118 2011-02-12  Bruno Haible  <bruno@clisp.org>
14119
14120         wcsrtombs: Work around bug on native Windows.
14121         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14122         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14123         instead of len.
14124         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14125
14126 2011-02-12  Bruno Haible  <bruno@clisp.org>
14127
14128         mbsrtowcs: Work around bug on native Windows.
14129         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14130         against mingw bug.
14131         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14132
14133 2011-02-12  Bruno Haible  <bruno@clisp.org>
14134
14135         Avoid setlocale bugs in tests.
14136         * modules/btowc (Dependencies): Add setlocale.
14137         * modules/c-strcase (Dependencies): Likewise.
14138         * modules/mbmemcasecmp (Dependencies): Likewise.
14139         * modules/mbmemcasecoll (Dependencies): Likewise.
14140         * modules/mbrtowc (Dependencies): Likewise.
14141         * modules/mbscasecmp (Dependencies): Likewise.
14142         * modules/mbscasestr (Dependencies): Likewise.
14143         * modules/mbschr (Dependencies): Likewise.
14144         * modules/mbscspn (Dependencies): Likewise.
14145         * modules/mbsinit (Dependencies): Likewise.
14146         * modules/mbsncasecmp (Dependencies): Likewise.
14147         * modules/mbsnrtowcs (Dependencies): Likewise.
14148         * modules/mbspbrk (Dependencies): Likewise.
14149         * modules/mbspcasecmp (Dependencies): Likewise.
14150         * modules/mbsrchr (Dependencies): Likewise.
14151         * modules/mbsrtowcs (Dependencies): Likewise.
14152         * modules/mbsspn (Dependencies): Likewise.
14153         * modules/mbsstr (Dependencies): Likewise.
14154         * modules/nl_langinfo (Dependencies): Likewise.
14155         * modules/quotearg (Dependencies): Likewise.
14156         * modules/unicase/locale-language (Dependencies): Likewise.
14157         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14158         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14159         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14160         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14161         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14162         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14163         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14164         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14165         * modules/vasnprintf-posix (Dependencies): Likewise.
14166         * modules/wcrtomb (Dependencies): Likewise.
14167         * modules/wcsnrtombs (Dependencies): Likewise.
14168         * modules/wcsrtombs (Dependencies): Likewise.
14169
14170 2011-02-12  Bruno Haible  <bruno@clisp.org>
14171
14172         setlocale: Workaround native Windows bug.
14173         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14174         succeeds but sets LC_CTYPE to "C", report a failure.
14175         * tests/test-setlocale2.sh: New file.
14176         * tests/test-setlocale2.c: New file.
14177         * modules/setlocale-tests (Files): Add the new files.
14178         (Makefile.am): Enable test-setlocale2.sh test.
14179         * doc/posix-functions/setlocale.texi: Mention workaround.
14180
14181 2011-02-11  Bruno Haible  <bruno@clisp.org>
14182
14183         Tests for module 'setlocale'.
14184         * modules/setlocale-tests: New file.
14185         * tests/test-setlocale1.sh: New file.
14186         * tests/test-setlocale1.c: New file.
14187
14188         New module 'setlocale'.
14189         * lib/locale.in.h (setlocale): New declaration.
14190         * lib/setlocale.c: New file, based on
14191         gettext/gettext-runtime/intl/setlocale.c.
14192         * m4/setlocale.m4: New file.
14193         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14194         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14195         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14196         REPLACE_SETLOCALE.
14197         * modules/setlocale: New file.
14198         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14199         * doc/posix-functions/setlocale.texi: Mention the new module.
14200
14201 2011-02-11  Bruno Haible  <bruno@clisp.org>
14202
14203         Prepare for locale dependent tests on mingw.
14204         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14205         because it has the wrong locale encoding.
14206         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14207         French_France.1252 instead of "fr".
14208         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14209         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14210         because it has the wrong locale encoding.
14211         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14212         native Windows, try Turkish_Turkey.65001.
14213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14214         Chinese_China.54936.
14215
14216         Prepare for locale dependent tests on mingw.
14217         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14218         differently.
14219         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14220         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14221         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14223
14224 2011-02-11  Eric Blake  <eblake@redhat.com>
14225
14226         strptime: avoid compiler warnings
14227         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14228         compiler warnings about dead code.
14229         Reported by Daniel P. Berrange.
14230
14231 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14232
14233         doc: update users.txt
14234         * users.txt: Add rcs.
14235
14236 2011-02-10  John W. Eaton  <jwe@gnu.org>
14237
14238         doc: update users.txt
14239         * users.txt: Add octave.
14240
14241 2011-02-10  Jim Meyering  <meyering@redhat.com>
14242
14243         doc: update users.txt
14244         * users.txt: Add iwhd.
14245
14246 2011-02-09  Bruno Haible  <bruno@clisp.org>
14247
14248         gnulib-tool: Make copyright notice adjustment more robust.
14249         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14250         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14251         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14252         License".
14253         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14254
14255 2011-02-06  Bruno Haible  <bruno@clisp.org>
14256
14257         New module 'towctrans'.
14258         * modules/towctrans: New file.
14259         * lib/wctype.in.h (towctrans): New declaration.
14260         * lib/towctrans.c: New file.
14261         * lib/towctrans-impl.h: New file.
14262         * m4/towctrans.m4: New file.
14263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14265         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14266         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14267         * doc/posix-functions/towctrans.texi: Mention the new module.
14268
14269 2011-02-06  Bruno Haible  <bruno@clisp.org>
14270
14271         New module 'wctrans'.
14272         * modules/wctrans: New file.
14273         * lib/wctype.in.h (wctrans): New declaration.
14274         * lib/wctrans.c: New file.
14275         * lib/wctrans-impl.h: New file.
14276         * m4/wctrans.m4: New file.
14277         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14278         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14279         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14280         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14281         * doc/posix-functions/wctrans.texi: Mention the new module.
14282
14283 2011-02-06  Bruno Haible  <bruno@clisp.org>
14284
14285         New module 'iswctype'.
14286         * modules/iswctype: New file.
14287         * lib/wctype.in.h (iswctype): New declaration.
14288         * lib/iswctype.c: New file.
14289         * lib/iswctype-impl.h: New file.
14290         * m4/iswctype.m4: New file.
14291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14292         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14293         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14294         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14295         * doc/posix-functions/iswctype.texi: Mention the new module and the
14296         HP-UX 11.00 problem.
14297
14298 2011-02-06  Bruno Haible  <bruno@clisp.org>
14299
14300         New module 'wctype'.
14301         * modules/wctype: Change to represent the wctype() substitute.
14302         * lib/wctype.in.h (wctype): New declaration.
14303         * lib/wctype.c: New file.
14304         * lib/wctype-impl.h: New file.
14305         * m4/wctype.m4: New file.
14306         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14307         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14308         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14309         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14310         * doc/posix-functions/wctype.texi: Mention the new module and the
14311         HP-UX 11.00 problem.
14312
14313 2011-02-06  Bruno Haible  <bruno@clisp.org>
14314
14315         wctype-h: Ensure wctype_t and wctrans_t are defined.
14316         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14317         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14318         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14319         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14320         HAVE_WCTRANS_T.
14321         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14322
14323 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         flock: fix license typo
14326
14327         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14328         omitted.
14329
14330 2011-02-08  Bruno Haible  <bruno@clisp.org>
14331
14332         Split large sed scripts, for HP-UX sed.
14333         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14334         to avoid HP-UX limit of 99 commands, in the near future.
14335         * modules/stdlib (Makefile.am): Likewise.
14336         * modules/unistd (Makefile.am): Likewise.
14337         * modules/wchar (Makefile.am): Likewise.
14338         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14339         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14340         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14341
14342 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14343             Bruno Haible  <bruno@clisp.org>
14344
14345         stdlib: improve random_r modularization
14346         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14347         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14348         you also need the random_r module to get this material right.
14349         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14350         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14351         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14352
14353 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14354
14355         stdlib: don't depend on stdint
14356         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14357         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14358         be independent of whether stdint.h is needed.
14359         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14360         here, instead of ...
14361         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14362         struct random_data should be using the random_r module, not just
14363         the stdlib module (which wouldn't make sense: what package needs
14364         just struct random_data without also needing random_r?).
14365         * modules/stdlib (Depends-on): Remove stdint.
14366
14367         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14368         See the thread rooted at
14369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14370         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14371         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14372         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14373         __VMS)); previously it was always included (via fcntl--.h).
14374         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14375         hand; this is good enough for load averages.  Also, do not use
14376         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14377         flags directly if available and don't bother otherwise.  (Packages
14378         that need the extra reliability should use the modules that define
14379         these flags on older platforms that lack them.)
14380         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14381         fcntl-safer.
14382
14383 2011-02-08  Jim Meyering  <meyering@redhat.com>
14384
14385         di-set.h, ino-map.h: add multiple-inclusion guard
14386         Technically, the guard is required only for ino-map.h, due to its
14387         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14388         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14389         * lib/ino-map.h: Likewise.
14390
14391 2011-02-06  Bruno Haible  <bruno@clisp.org>
14392
14393         iswblank: Ensure declaration on glibc systems.
14394         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14395         * modules/iswblank (Dependencies): Add 'extensions'.
14396         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14397
14398 2011-02-06  Bruno Haible  <bruno@clisp.org>
14399
14400         New module 'iswblank'.
14401         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14402         * modules/iswblank: New file.
14403         * modules/wctype-h (Files): Remove lib/iswblank.c.
14404         (Makefile.am): Substitute GNULIB_ISWBLANK.
14405         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14406         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14407         (gl_WCTYPE_H_DEFAULTS): New macro.
14408         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14409         * modules/iswblank-tests: New file.
14410         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14411         * tests/test-wctype-h.c (main): Remove iswblank tests.
14412         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14413         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14414         of 'wctype-h'.
14415         * NEWS: Mention the change.
14416         * modules/mbchar (Depends-on): Add iswblank.
14417
14418 2011-02-08  Bruno Haible  <bruno@clisp.org>
14419
14420         di-set tests: Refactor.
14421         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14422         unnecessary includes.
14423         (ASSERT): Remove macro.
14424         (main): Make C90 compliant by avoiding variable declaration after
14425         statement.
14426         * modules/di-set-tests (Files): Add tests/macros.h.
14427
14428 2011-02-08  Bruno Haible  <bruno@clisp.org>
14429
14430         ino-map tests: Refactor.
14431         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14432         unnecessary includes.
14433         (ASSERT): Remove macro.
14434         (main): Make C90 compliant by avoiding variable declaration after
14435         statement.
14436         * modules/ino-map-tests (Files): Add tests/macros.h.
14437
14438 2011-02-08  Jim Meyering  <meyering@redhat.com>
14439
14440         di-set: add "const" to a cast
14441         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14442         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14443
14444 2011-02-06  Bruno Haible  <bruno@clisp.org>
14445
14446         Rename module 'wctype' to 'wctype-h'.
14447         * modules/wctype-h: Renamed from modules/wctype.
14448         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14449         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14450         (Files, Depends-on, Makefile.am): Update.
14451         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14452         (Files, Makefile.am): Update.
14453         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14454         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14455         * doc/posix-headers/wctype.texi: Update.
14456         * doc/posix-functions/iswalnum.texi: Update.
14457         * doc/posix-functions/iswalpha.texi: Update.
14458         * doc/posix-functions/iswblank.texi: Update.
14459         * doc/posix-functions/iswcntrl.texi: Update.
14460         * doc/posix-functions/iswdigit.texi: Update.
14461         * doc/posix-functions/iswgraph.texi: Update.
14462         * doc/posix-functions/iswlower.texi: Update.
14463         * doc/posix-functions/iswprint.texi: Update.
14464         * doc/posix-functions/iswpunct.texi: Update.
14465         * doc/posix-functions/iswspace.texi: Update.
14466         * doc/posix-functions/iswupper.texi: Update.
14467         * doc/posix-functions/iswxdigit.texi: Update.
14468         * doc/posix-functions/towlower.texi: Update.
14469         * doc/posix-functions/towupper.texi: Update.
14470         * NEWS: Mention the change.
14471         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14472         * modules/mbchar (Dependencies): Likewise.
14473         * modules/mbswidth (Dependencies): Likewise.
14474         * modules/quotearg (Dependencies): Likewise.
14475         * modules/regex (Dependencies): Likewise.
14476         * modules/wcscasecmp (Dependencies): Likewise.
14477         * modules/wcsncasecmp (Dependencies): Likewise.
14478         * modules/wcwidth (Dependencies): Likewise.
14479
14480 2011-02-06  Bruno Haible  <bruno@clisp.org>
14481
14482         New module 'wcswidth'.
14483         * modules/wcswidth: New file.
14484         * lib/wchar.in.h (wcswidth): New declaration.
14485         * lib/wcswidth.c: New file.
14486         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14487         * m4/wcswidth.m4: New file.
14488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14490         REPLACE_WCSWIDTH.
14491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14492         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14493         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14494         * doc/posix-functions/wcswidth.texi: Mention the new module.
14495
14496 2011-02-06  Bruno Haible  <bruno@clisp.org>
14497
14498         New module 'wcstok'.
14499         * modules/wcstok: New file.
14500         * lib/wchar.in.h (wcstok): New declaration.
14501         * lib/wcstok.c: New file.
14502         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14503         * m4/wcstok.m4: New file.
14504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14507         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14508         * doc/posix-functions/wcstok.texi: Mention the new module.
14509
14510 2011-02-06  Bruno Haible  <bruno@clisp.org>
14511
14512         New module 'wcsstr'.
14513         * modules/wcsstr: New file.
14514         * lib/wchar.in.h (wcsstr): New declaration.
14515         * lib/wcsstr.c: New file.
14516         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14517         * m4/wcsstr.m4: New file.
14518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14521         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14522         * doc/posix-functions/wcsstr.texi: Mention the new module.
14523
14524 2011-02-06  Bruno Haible  <bruno@clisp.org>
14525
14526         New module 'wcspbrk'.
14527         * modules/wcspbrk: New file.
14528         * lib/wchar.in.h (wcspbrk): New declaration.
14529         * lib/wcspbrk.c: New file.
14530         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14531         * m4/wcspbrk.m4: New file.
14532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14535         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14536         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14537
14538 2011-02-06  Bruno Haible  <bruno@clisp.org>
14539
14540         New module 'wcsspn'.
14541         * modules/wcsspn: New file.
14542         * lib/wchar.in.h (wcsspn): New declaration.
14543         * lib/wcsspn.c: New file.
14544         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14545         * m4/wcsspn.m4: New file.
14546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14549         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14550         * doc/posix-functions/wcsspn.texi: Mention the new module.
14551
14552 2011-02-06  Bruno Haible  <bruno@clisp.org>
14553
14554         New module 'wcscspn'.
14555         * modules/wcscspn: New file.
14556         * lib/wchar.in.h (wcscspn): New declaration.
14557         * lib/wcscspn.c: New file.
14558         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14559         * m4/wcscspn.m4: New file.
14560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14563         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14564         * doc/posix-functions/wcscspn.texi: Mention the new module.
14565
14566 2011-02-06  Bruno Haible  <bruno@clisp.org>
14567
14568         New module 'wcsrchr'.
14569         * modules/wcsrchr: New file.
14570         * lib/wchar.in.h (wcsrchr): New declaration.
14571         * lib/wcsrchr.c: New file.
14572         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14573         * m4/wcsrchr.m4: New file.
14574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14577         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14578         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14579
14580 2011-02-06  Bruno Haible  <bruno@clisp.org>
14581
14582         New module 'wcschr'.
14583         * modules/wcschr: New file.
14584         * lib/wchar.in.h (wcschr): New declaration.
14585         * lib/wcschr.c: New file.
14586         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14587         * m4/wcschr.m4: New file.
14588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14591         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14592         * doc/posix-functions/wcschr.texi: Mention the new module.
14593
14594 2011-02-06  Bruno Haible  <bruno@clisp.org>
14595
14596         New module 'wcsdup'.
14597         * modules/wcsdup: New file.
14598         * lib/wchar.in.h (wcsdup): New declaration.
14599         * lib/wcsdup.c: New file.
14600         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14601         * m4/wcsdup.m4: New file.
14602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14605         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14606         * doc/posix-functions/wcsdup.texi: Mention the new module.
14607
14608 2011-02-06  Bruno Haible  <bruno@clisp.org>
14609
14610         New module 'wcsxfrm'.
14611         * modules/wcsxfrm: New file.
14612         * lib/wchar.in.h (wcsxfrm): New declaration.
14613         * lib/wcsxfrm.c: New file.
14614         * lib/wcsxfrm-impl.h: New file.
14615         * m4/wcsxfrm.m4: New file.
14616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14619         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14620         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14621
14622 2011-02-06  Bruno Haible  <bruno@clisp.org>
14623
14624         New module 'wcscoll'.
14625         * modules/wcscoll: New file.
14626         * lib/wchar.in.h (wcscoll): New declaration.
14627         * lib/wcscoll.c: New file.
14628         * lib/wcscoll-impl.h: New file.
14629         * m4/wcscoll.m4: New file.
14630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14633         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14634         * doc/posix-functions/wcscoll.texi: Mention the new module.
14635
14636 2011-02-06  Bruno Haible  <bruno@clisp.org>
14637
14638         New module 'wcsncasecmp'.
14639         * modules/wcsncasecmp: New file.
14640         * lib/wchar.in.h (wcsncasecmp): New declaration.
14641         * lib/wcsncasecmp.c: New file.
14642         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14643         * m4/wcsncasecmp.m4: New file.
14644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14647         HAVE_WCSNCASECMP.
14648         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14649         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14650
14651 2011-02-06  Bruno Haible  <bruno@clisp.org>
14652
14653         New module 'wcscasecmp'.
14654         * modules/wcscasecmp: New file.
14655         * lib/wchar.in.h (wcscasecmp): New declaration.
14656         * lib/wcscasecmp.c: New file.
14657         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14658         * m4/wcscasecmp.m4: New file.
14659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14662         HAVE_WCSCASECMP.
14663         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14664         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14665
14666 2011-02-05  Bruno Haible  <bruno@clisp.org>
14667
14668         New module 'wcsncmp'.
14669         * modules/wcsncmp: New file.
14670         * lib/wchar.in.h (wcsncmp): New declaration.
14671         * lib/wcsncmp.c: New file.
14672         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14673         * m4/wcsncmp.m4: New file.
14674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14677         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14678         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14679
14680 2011-02-05  Bruno Haible  <bruno@clisp.org>
14681
14682         New module 'wcscmp'.
14683         * modules/wcscmp: New file.
14684         * lib/wchar.in.h (wcscmp): New declaration.
14685         * lib/wcscmp.c: New file.
14686         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14687         * m4/wcscmp.m4: New file.
14688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14691         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14692         * doc/posix-functions/wcscmp.texi: Mention the new module.
14693
14694 2011-02-05  Bruno Haible  <bruno@clisp.org>
14695
14696         New module 'wcsncat'.
14697         * modules/wcsncat: New file.
14698         * lib/wchar.in.h (wcsncat): New declaration.
14699         * lib/wcsncat.c: New file.
14700         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14701         * m4/wcsncat.m4: New file.
14702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14705         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14706         * doc/posix-functions/wcsncat.texi: Mention the new module.
14707
14708 2011-02-05  Bruno Haible  <bruno@clisp.org>
14709
14710         New module 'wcscat'.
14711         * modules/wcscat: New file.
14712         * lib/wchar.in.h (wcscat): New declaration.
14713         * lib/wcscat.c: New file.
14714         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14715         * m4/wcscat.m4: New file.
14716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14719         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14720         * doc/posix-functions/wcscat.texi: Mention the new module.
14721
14722 2011-02-05  Bruno Haible  <bruno@clisp.org>
14723
14724         New module 'wcpncpy'.
14725         * modules/wcpncpy: New file.
14726         * lib/wchar.in.h (wcpncpy): New declaration.
14727         * lib/wcpncpy.c: New file.
14728         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14729         * m4/wcpncpy.m4: New file.
14730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14732         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14733         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14734         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14735
14736 2011-02-05  Bruno Haible  <bruno@clisp.org>
14737
14738         New module 'wcsncpy'.
14739         * modules/wcsncpy: New file.
14740         * lib/wchar.in.h (wcsncpy): New declaration.
14741         * lib/wcsncpy.c: New file.
14742         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14743         * m4/wcsncpy.m4: New file.
14744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14747         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14748         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14749
14750 2011-02-05  Bruno Haible  <bruno@clisp.org>
14751
14752         New module 'wcpcpy'.
14753         * modules/wcpcpy: New file.
14754         * lib/wchar.in.h (wcpcpy): New declaration.
14755         * lib/wcpcpy.c: New file.
14756         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14757         * m4/wcpcpy.m4: New file.
14758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14760         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14761         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14762         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14763
14764 2011-02-05  Bruno Haible  <bruno@clisp.org>
14765
14766         New module 'wcscpy'.
14767         * modules/wcscpy: New file.
14768         * lib/wchar.in.h (wcscpy): New declaration.
14769         * lib/wcscpy.c: New file.
14770         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14771         * m4/wcscpy.m4: New file.
14772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14775         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14776         * doc/posix-functions/wcscpy.texi: Mention the new module.
14777
14778 2011-02-05  Bruno Haible  <bruno@clisp.org>
14779
14780         New module 'wcsnlen'.
14781         * modules/wcsnlen: New file.
14782         * lib/wchar.in.h (wcsnlen): New declaration.
14783         * lib/wcsnlen.c: New file.
14784         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14785         * m4/wcsnlen.m4: New file.
14786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14789         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14790         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14791
14792 2011-02-05  Bruno Haible  <bruno@clisp.org>
14793
14794         New module 'wcslen'.
14795         * modules/wcslen: New file.
14796         * lib/wchar.in.h (wcslen): New declaration.
14797         * lib/wcslen.c: New file.
14798         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14799         * m4/wcslen.m4: New file.
14800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14803         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14804         * doc/posix-functions/wcslen.texi: Mention the new module.
14805
14806 2011-02-05  Bruno Haible  <bruno@clisp.org>
14807
14808         New module 'wmemset'.
14809         * modules/wmemset: New file.
14810         * lib/wchar.in.h (wmemset): New declaration.
14811         * lib/wmemset.c: New file.
14812         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14813         * m4/wmemset.m4: New file.
14814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14816         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14817         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14818         * doc/posix-functions/wmemset.texi: Mention the new module.
14819
14820 2011-02-05  Bruno Haible  <bruno@clisp.org>
14821
14822         New module 'wmemmove'.
14823         * modules/wmemmove: New file.
14824         * lib/wchar.in.h (wmemmove): New declaration.
14825         * lib/wmemmove.c: New file.
14826         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14827         * m4/wmemmove.m4: New file.
14828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14830         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14831         HAVE_WMEMMOVE.
14832         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14833         * doc/posix-functions/wmemmove.texi: Mention the new module.
14834
14835 2011-02-05  Bruno Haible  <bruno@clisp.org>
14836
14837         New module 'wmemcpy'.
14838         * modules/wmemcpy: New file.
14839         * lib/wchar.in.h (wmemcpy): New declaration.
14840         * lib/wmemcpy.c: New file.
14841         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14842         * m4/wmemcpy.m4: New file.
14843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14845         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14846         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14847         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14848
14849 2011-02-05  Bruno Haible  <bruno@clisp.org>
14850
14851         New module 'wmemcmp'.
14852         * modules/wmemcmp: New file.
14853         * lib/wchar.in.h (wmemcmp): New declaration.
14854         * lib/wmemcmp.c: New file.
14855         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14856         * m4/wmemcmp.m4: New file.
14857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14860         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14861         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14862
14863 2011-02-07  Jim Meyering  <meyering@redhat.com>
14864
14865         di-set, ino-map: new modules, from coreutils
14866         * lib/di-set.c: New file.
14867         * lib/di-set.h: Likewise.
14868         * lib/ino-map.c: Likewise.
14869         * lib/ino-map.h: Likewise.
14870         * modules/di-set: Likewise.
14871         * modules/di-set-tests: Likewise.
14872         * modules/ino-map: Likewise.
14873         * modules/ino-map-tests: Likewise.
14874         * tests/test-di-set.c: Likewise.
14875         * tests/test-ino-map.c: Likewise.
14876
14877 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14878
14879         getloadavg: merge minor changes from Emacs
14880
14881         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14882         (getloadavg): Use memset, not bzero.
14883
14884         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14885         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14886         clash (bug#86).
14887
14888 2010-11-14  Bruno Haible  <bruno@clisp.org>
14889
14890         Allow multiple gnulib generated replacements to coexist.
14891         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14892         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14893         * lib/langinfo.in.h (nl_item): Likewise.
14894         * lib/math.in.h (_NaN, NAN): Likewise.
14895         * lib/netdb.in.h (struct addrinfo): Likewise.
14896         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14897         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14898         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14899         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14900         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14901         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14902         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14903         pthread_mutexattr_init, pthread_mutexattr_settype,
14904         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14905         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14906         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14907         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14908         * lib/sched.in.h (struct sched_param): Likewise.
14909         * lib/se-selinux.in.h (security_class_t, security_context_t,
14910         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14911         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14912         lsetfilecon, fsetfilecon, security_check_context,
14913         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14914         Likewise.
14915         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14916         Likewise.
14917         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14918         _gl_function_taking_int_returning_void_t, union sigval,
14919         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14920         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14921         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14922         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14923         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14924         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14925         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14926         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14927         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14928         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14929         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14930         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14931         socklen_t, rpl_fd_isset): Likewise.
14932         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14933         * lib/sys_time.in.h (struct timeval): Likewise.
14934         * lib/sys_times.in.h (struct tms): Likewise.
14935         * lib/sys_utsname.in.h (struct utsname):
14936         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14937         * lib/unistd.in.h (getpagesize): Likewise.
14938         * lib/wchar.in.h (mbstate_t): Likewise.
14939         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14940         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14941         towlower, towupper): Likewise.
14942         Reported by Sam Steingold <sds@gnu.org>.
14943
14944 2011-02-05  Eric Blake  <eblake@redhat.com>
14945
14946         unsetenv: work around Haiku issues
14947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14948         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14949
14950 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14951
14952         libposix: avoid calling error() within libposix
14953         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14954         is defined.
14955
14956 2011-02-05  Eric Blake  <eblake@redhat.com>
14957
14958         strerror_r-posix: port to cygwin
14959         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14960         implementation.
14961         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14962         * tests/test-strerror_r.c (main): Fix test.
14963         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14964         issue.
14965
14966 2011-02-05  Bruno Haible  <bruno@clisp.org>
14967
14968         New module 'wmemchr'.
14969         * modules/wmemchr: New file.
14970         * lib/wchar.in.h (wmemchr): New declaration.
14971         * lib/wmemchr.c: New file.
14972         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14973         * m4/wmemchr.m4: New file.
14974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14976         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14977         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14978         * doc/posix-functions/wmemchr.texi: Mention the new module.
14979
14980 2011-02-04  Eric Blake  <eblake@redhat.com>
14981
14982         fdopendir: detect FreeBSD bug
14983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14984         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14985
14986 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         stdbool: do not define HAVE_STDBOOL_H
14989         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14990         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14991         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14992         imported from the latest Autoconf git.  It was motivated by Emacs,
14993         which uses gnulib but does not need HAVE_STDBOOL_H.
14994
14995 2011-02-04  Bruno Haible  <bruno@clisp.org>
14996
14997         wcsnrtombs: Prepare for new module wwcsnrtombs.
14998         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14999         * lib/wcsnrtombs.c: Include it.
15000         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15001
15002         wcsrtombs: Prepare for new module wwcsrtombs.
15003         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15004         * lib/wcsrtombs.c: Include it.
15005         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15006
15007         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15008         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15009         * lib/mbsnrtowcs.c: Include it.
15010         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15011
15012         mbsrtowcs: Prepare for new module mbsrtowwcs.
15013         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15014         * lib/mbsrtowcs.c: Include it.
15015         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15016
15017 2011-02-04  Bruno Haible  <bruno@clisp.org>
15018
15019         vasnprintf: Reduce use of malloc for small format strings.
15020         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15021         (arguments): Add room for the first 7 arguments.
15022         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15023         (char_directives, u8_directives, u16_directives, u32_directives): Add
15024         room for the first 7 directives.
15025         * lib/printf-parse.c: Include <string.h>.
15026         (PRINTF_PARSE): Change memory handling code so that it uses the first
15027         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15028         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15029         Reported by Pádraig Brady <P@draigbrady.com>.
15030
15031 2011-01-31  Eric Blake  <eblake@redhat.com>
15032
15033         dup2: work around Haiku bug
15034         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15035         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15036         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15037         * tests/test-dup2.c (main): Enhance test.
15038
15039 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15040
15041         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15042         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15043         declared by eglibc 2.11.2.
15044         * lib/stdio.in.h: Likewise.
15045
15046 2011-01-31  Eric Blake  <eblake@redhat.com>
15047
15048         ignore-value: add missing test dependency
15049         * tests/test-ignore-value.c: Revert previous change; stdio.h
15050         provides off_t.
15051         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15052
15053 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15054
15055         mktime: clarify long_int width checking
15056         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15057         the top level, to make it clearer that the assumption about
15058         long_int width is being checked.  See
15059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15060
15061 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15062
15063         ignore-value: Fix self-test.
15064         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15065
15066 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15067
15068         TYPE_MAXIMUM: avoid theoretically undefined behavior
15069         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15070         negative number, which the C Standard says has undefined behavior.
15071         In practice this is not a problem, but might as well do it by the book.
15072         Reported by Rich Felker and Eric Blake; see
15073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15074         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15075         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15077         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15078         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15079         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15080
15081         mktime: #undef mktime before #defining it
15082         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15083
15084         mktime: systematically normalize tm_isdst comparisons
15085         * lib/mktime.c (isdst_differ): New function.
15086         (__mktime_internal): Use it systematically for all isdst comparisons.
15087         This completes the fix for libc BZ #6723, and removes the need for
15088         normalizing tm_isdst.  See
15089         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15090         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15091
15092         mktime: fix some integer overflow issues and sidestep the rest
15093
15094         This was prompted by a bug report by Benjamin Lindner for MinGW
15095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15096         His bug is due to signed integer overflow (0 - INT_MIN), and I
15097         I scanned through mktime.c looking for other integer overflow
15098         problems, fixing all the bugs I found.
15099
15100         Although the C Standard says the resulting code is still not safe
15101         in the presence of integer overflow, in practice it should be good
15102         enough for all real-world two's-complement implementations, except
15103         for debugging environments that deliberately trap on integer
15104         overflow (e.g., gcc -ftrapv).
15105
15106         * lib/mktime.c (WRAPV): New macro.
15107         (SHR): Also check that long_int and time_t shift right in the
15108         usual way, before using the fast-but-unportable method.
15109         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15110         used.  The code already assumed two's complement, so there's
15111         no need to test for alternatives.  All uses removed.
15112         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15113         the C standard.  Problem reported by Rich Felker in
15114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15115         (twos_complement_arithmetic): Also check long_int and time_t.
15116         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15117         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15118         (__mktime_internal): Avoid integer overflow with unary subtraction
15119         in two instances where -1 - X is an adequate replacement for -X,
15120         since the calculations are approximate.
15121
15122 2011-01-29  Eric Blake  <eblake@redhat.com>
15123
15124         mktime: avoid infinite loop
15125         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15126         type; behavior is still undefined but portable to all known targets.
15127         Reported by Rich Felker.
15128
15129 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15130
15131         rename, unlink, same-inode: Relicense.
15132         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15133         * modules/unlink (License): Likewise.
15134         * modules/same-inode (License): Likewise.
15135
15136 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         mktime: avoid problems on NetBSD 5 / i386
15139         * lib/mktime.c (long_int): New type.  This works around a problem
15140         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15141         but time_t is 64 bits, and where I expect the existing code is
15142         wrong in some cases.
15143         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15144         (ydhms_diff): Bring back the compile-time check for wide-enough
15145         year and yday.
15146
15147         mktime: fix misspelling in comment
15148         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15149         This merges all recent glibc changes of importance.
15150
15151 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15152
15153         move-if-change: cope with concurrent mv of identical file.
15154         * build-aux/move-if-change (CMPPROG): Accept environment
15155         variable as an override for `cmp'.
15156         (usage): Document CMPPROG.
15157         Adjust comparison to drop stdout.  Cope with failure of mv if
15158         the target file exists and is identical to the source, for
15159         parallel builds.
15160         Report from H.J. Lu against binutils in PR binutils/12283.
15161
15162 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15163
15164         * users.txt: Mention sharutils.
15165
15166 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15167
15168         * users.txt: Mention OATH Toolkit.
15169
15170 2011-01-27  Bruno Haible  <bruno@clisp.org>
15171
15172         Prepare for supporting FreeBSD 10.
15173         * build-aux/config.libpath: Remove handling of freebsd1*.
15174
15175 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15176
15177         Prepare for supporting FreeBSD 10.
15178         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15179         match FreeBSD 10.0.
15180
15181 2011-01-27  Bruno Haible  <bruno@clisp.org>
15182
15183         vma-iter, get-rusage-as: Add OpenBSD support.
15184         * modules/vma-iter (configure.ac): Test for mquery.
15185         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15186         * lib/vma-iter.c: Include <sys/mman.h>.
15187         (vma_iterate): Add an implementation based on mquery().
15188         * lib/resource-ext.h (get_rusage_as): Update comments.
15189         * lib/get-rusage-as.c: Likewise.
15190         * lib/get-rusage-data.c: Likewise.
15191
15192 2011-01-26  Karl Berry  <karl@gnu.org>
15193
15194         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15195         variables to make it easier to override the makeinfo program used.
15196
15197 2011-01-26  Eric Blake  <eblake@redhat.com>
15198
15199         fcntl: work around Haiku F_DUPFD bugs
15200         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15201         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15202         cloexec bit on duplication.
15203         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15204
15205 2011-01-26  Bruno Haible  <bruno@clisp.org>
15206
15207         Enable memory leak tests on AIX.
15208         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15209         * tests/test-fprintf-posix3.c (main): Likewise.
15210
15211 2011-01-26  Bruno Haible  <bruno@clisp.org>
15212
15213         Tests for module 'get-rusage-data'.
15214         * modules/get-rusage-data-tests: New file.
15215         * tests/test-get-rusage-data.c: New file.
15216
15217         New module 'get-rusage-data'.
15218         * lib/resource-ext.h (get_rusage_data): New declaration.
15219         * lib/get-rusage-data.c: New file.
15220         * modules/get-rusage-data: New file.
15221
15222 2011-01-25  Bruno Haible  <bruno@clisp.org>
15223
15224         get-rusage-as: Allow for easier testing.
15225         * lib/resource-ext.h (get_rusage_as): Add comment.
15226         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15227         (main): New function for interactive testing.
15228
15229 2011-01-25  Bruno Haible  <bruno@clisp.org>
15230
15231         vma-iter: Treat Haiku like BeOS.
15232         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15233         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15234
15235 2011-01-25  Eric Blake  <eblake@redhat.com>
15236
15237         c-stack: fix regression on cygwin when libsigsegv is present
15238         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15239
15240 2011-01-24  Bruno Haible  <bruno@clisp.org>
15241
15242         vma-iter: Avoid empty intervals.
15243         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15244         on an empty interval.
15245
15246 2011-01-24  Jim Meyering  <meyering@redhat.com>
15247
15248         u64: remove unnecessary #include
15249         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15250
15251 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15254         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15255
15256 2011-01-23  Bruno Haible  <bruno@clisp.org>
15257
15258         New module 'vma-iter'.
15259         * lib/vma-iter.h: New file.
15260         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15261         * modules/vma-iter: New file.
15262         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15263         for get_rusage_as_via_iterator.
15264         (vma_iterate_callback): New function.
15265         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15266         * modules/get-rusage-as (Depends-on): Add vma-iter.
15267
15268 2011-01-23  Bruno Haible  <bruno@clisp.org>
15269
15270         uninorm: Tweak includes.
15271         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15272         Reported by Jim Meyering.
15273
15274 2011-01-23  Bruno Haible  <bruno@clisp.org>
15275
15276         get-rusage-as: Improve on NetBSD.
15277         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15278         /proc, like on FreeBSD.
15279
15280 2011-01-23  Jim Meyering  <meyering@redhat.com>
15281
15282         xreadlink.h: remove unnecessary #include
15283         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15284
15285         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15286         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15287
15288 2011-01-23  Bruno Haible  <bruno@clisp.org>
15289
15290         get-rusage-as: Fix bug.
15291         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15292         original limit when aborting the first loop.
15293
15294 2011-01-23  Bruno Haible  <bruno@clisp.org>
15295
15296         wctype: Ensure valid C syntax.
15297         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15298         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15299
15300 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15304         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15305         as they are needed only for configure's test case.
15306         This removes two unnecessary symbols from config.h.
15307
15308         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15309         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15311         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15312         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15315         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15316         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15317         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15318         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15322         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15323         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15324         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15325         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15326
15327 2011-01-21  Eric Blake  <eblake@redhat.com>
15328
15329         maintainer-makefile: work with older git for submodule check
15330         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15331         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15332         Reported by Matthias Bolte.
15333
15334         bootstrap: minor portability fixes
15335         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15336         (usage): Omit leading capital and trailing . on help phrases, per
15337         GNU Coding Standards.
15338         (check_versions, top level): Prefix messages with script name.
15339
15340 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15341
15342         bootstrap: support --no-git option
15343         * build-aux/bootstrap: Add --no-git option, to be used when
15344         --gnulib-srcdir points to the exact desired checkout.
15345
15346 2011-01-21  Eric Blake  <eblake@redhat.com>
15347
15348         strerror_r-posix: work with glibc 2.13
15349         * lib/strerror_r.c (strerror_r): Fix return type.
15350
15351 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15352             Bruno Haible  <bruno@clisp.org>
15353
15354         uN_strstr: New unit tests.
15355         * modules/unistr/u8-strstr-tests: New file.
15356         * modules/unistr/u16-strstr-tests: New file.
15357         * modules/unistr/u32-strstr-tests: New file.
15358         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15359         * tests/unistr/test-u8-strstr.c: New file.
15360         * tests/unistr/test-u16-strstr.c: New file.
15361         * tests/unistr/test-u32-strstr.c: New file.
15362
15363 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15364             Bruno Haible  <bruno@clisp.org>
15365
15366         Make uN_strstr functions O(n) worst-case.
15367         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15368         16-bit and 32-bit unit cases, use the unibyte algorithm from
15369         lib/mbsstr.c.
15370         * lib/unistr/u8-strstr.c: Include <string.h>.
15371         (UNIT_IS_UINT8_T): New macro.
15372         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15373         (U_STRLEN, U_STRNLEN): New macros.
15374         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15375         (U_STRLEN, U_STRNLEN): New macros.
15376         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15377         (configure.ac): Update required libunistring version.
15378         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15379         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15380         malloca.
15381         (configure.ac): Update required libunistring version.
15382         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15383         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15384         malloca.
15385         (configure.ac): Update required libunistring version.
15386
15387 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15388             Bruno Haible  <bruno@clisp.org>
15389
15390         Prepare for faster uN_strstr functions.
15391         * lib/str-kmp.h: Support definable UNITs.
15392         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15393         needle_len argument.
15394         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15395         * lib/mbscasestr.c (mbscasestr): Likewise.
15396
15397 2011-01-21  Pádraig Brady <P@draigBrady.com>
15398
15399         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15400         * tests/test-malloca.c (main): Unset the environment variable
15401         to greatly speed up the test.
15402         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15403         * modules/malloca-tests: Depend on unsetenv.
15404
15405 2011-01-21  Pádraig Brady <P@draigBrady.com>
15406
15407         ignore-value: remove stdint dependency
15408         * lib/ignore-value.h: Remove <stdint.h>
15409         * modules/ignore-value: Remove stdint dependency.
15410
15411 2011-01-21  Jim Meyering  <meyering@redhat.com>
15412
15413         maint.mk: adjust variable name to be consistent with other gl_ vars
15414         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15415         to be lower case.
15416
15417 2011-01-20  Jim Meyering  <meyering@redhat.com>
15418
15419         maint.mk: make "check" depend on public-submodule-commit by default
15420         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15421
15422 2011-01-20  Bruno Haible  <bruno@clisp.org>
15423
15424         mbfile, mbiter: Complete change from 2008-12-21.
15425         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15426         * m4/mbiter.m4 (gl_MBITER): Likewise.
15427
15428 2011-01-20  Jim Meyering  <meyering@redhat.com>
15429
15430         init.sh: insert space between each function name and "()"
15431         * tests/init.sh: Make it a little easier to see that a function's
15432         name is "warn_", and not "warn" when looking at the first part of
15433         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15434
15435 2011-01-20  Jim Meyering  <meyering@redhat.com>
15436
15437         mountlist: clean up code formatting
15438         * lib/mountlist.c (read_file_system_list): Split a long line,
15439         correct bracing style, use NULL in place of "(struct statfs *)0",
15440         don't parenthesize return value, add spaces around "=" and after
15441         ";-in-for-stmt".
15442
15443 2011-01-14  Markus Duft <mduft@gentoo.org>
15444
15445         mountlist: add support for Interix
15446         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15447         Apply statvfs to all entries of /dev/fs.
15448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15449         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15450
15451 2011-01-20  Jim Meyering  <meyering@redhat.com>
15452
15453         maint.mk: improve the public-submodule-commit rule
15454         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15455         to suppress printing of its commands... unless V=1.
15456         Add git submodule's --quiet option to suppress printing of e.g.,
15457         "Entering gnulib" output.
15458         "cd" into $(srcdir) before running git submodule.
15459
15460 2011-01-20  Bruno Haible  <bruno@clisp.org>
15461
15462         include_next: Fix bug introduced on 2011-01-18.
15463         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15464         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15465         ac_cv_header_... variable if the second argument is not 'check'.
15466         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15467         gl_NEXT_HEADERS_INTERNAL.
15468
15469 2011-01-20  Bruno Haible  <bruno@clisp.org>
15470
15471         Allow the user to avoid the GNULIB_TEST_* macros.
15472         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15473         Suggested by Paul Eggert.
15474
15475 2011-01-14  Jim Meyering  <meyering@redhat.com>
15476
15477         bootstrap: avoid failure when there is no .gitmodules file
15478         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15479         has been assigned to, even when its value is the empty string.
15480         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15481         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15482         Reported by John W. Eaton <jwe@gnu.org>.
15483
15484 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         assume <ctype.h>, ..., <time.h> exist
15487         For years gnulib has been assuming the existence of the headers
15488         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15489         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15490         them, since they don't appear to be needed.
15491         * README (Portability guidelines): Document this.
15492         * lib/flock.c: Assume <fcntl.h> exists.
15493         * lib/regex_internal.h: Assume <locale.h> exists.
15494         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15496         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15497         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15498         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15499         * m4/regex.m4 (gl_REGEX): Likewise.
15500         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15501         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15502         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15503         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15504         * tests/test-argp.c: Likewise.
15505         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15506
15507         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15508         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15509         AA_APPLE_UNIVERSAL_BUILD.  See
15510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15511         * NEWS: Document this.
15512
15513 2011-01-19  Eric Blake  <eblake@redhat.com>
15514
15515         c-stack: assume stack overflow if SA_SIGINFO unsupported
15516         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15517         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15518         sigaction will work.
15519         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15520         behavior match Linux.
15521         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15522
15523         stdbool-tests: accomodate Haiku
15524         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15525
15526         binary-io: fix O_TEXT on Haiku
15527         * modules/binary-io (Depends-on): Add fcntl-h.
15528         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15529         than blindly undefining O_TEXT.
15530         Reported by Scott McCreary.
15531
15532 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15533
15534         include_next: do not check for standard headers like stddef.h
15535
15536         I found this problem when modifying Emacs to use gnulib.
15537         I noticed that it added HAVE_STDDEF_H to config.h, even though
15538         gnulib always assumes <stddef.h> exists as per README and this
15539         symbol is unnecessary.
15540         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15541         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15542         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15543         faster for headers like stddef.h that are known to exist.
15544         (gl_CHECK_NEXT_HEADERS): Use it.
15545         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15546         rather than gl_CHECK_NEXT_HEADERS.
15547         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15548         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15549
15550 2011-01-18  Eric Blake  <eblake@redhat.com>
15551
15552         ansi-c++-opt: skip C++ dependency style if C++ is unused
15553         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15554         tests when we know C++ compilation is not desired.
15555         Reported by Scott McCreary.
15556
15557 2011-01-18  Bruno Haible  <bruno@clisp.org>
15558
15559         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15560         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15561         (main): Perform test also when getrlimit and setrlimit don't exist or
15562         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15563         limiting the address space size using setrlimit, compare the address
15564         space size before and after the the test.
15565         * tests/test-dprintf-posix2.c: Likewise.
15566         * tests/test-fprintf-posix3.sh: Update skip messages.
15567         * tests/test-dprintf-posix2.sh: Likewise.
15568         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15569         * modules/dprintf-posix-tests (Depends-on): Likewise.
15570         Reported by Bruce Korb <bkorb@gnu.org> and
15571         Gary V. Vaughan <gary@gnu.org>.
15572
15573 2011-01-18  Bruno Haible  <bruno@clisp.org>
15574
15575         get-rusage-as: Improvement for Cygwin.
15576         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15577         areas that are merely reserved.
15578
15579 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15580
15581         strftime: remove dependencies on multibyte modules
15582
15583         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15584         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15585         only if __osf__ is defined, and I suspect OSF doesn't need these
15586         other modules.  If my guess is wrong, we'll need to come up with a
15587         variant of strftime that doesn't need the multibyte modules.
15588
15589         I discovered this problem when attempting modify Emacs to use the
15590         strftime module.  With the previous gnulib, this caused Emacs to
15591         need 31 new files, ranging from lib/config.charset to
15592         m4/wint_t.m4.  This was overkill and I expect would be offputting
15593         to the Emacs maintainers.  After this change, only 6 new files are
15594         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15595         stdbool.m4, and tm_gmtoff.m4.
15596
15597         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15598         Suggested by Bruno Haible in
15599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15600         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15601         and do not check for wchar.h.
15602         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15603         (Depends-on): Remove mbrlen, mbsinit, wchar.
15604
15605 2011-01-18  Bruno Haible  <bruno@clisp.org>
15606
15607         Tests for module 'get-rusage-as'.
15608         * modules/get-rusage-as-tests: New file.
15609         * tests/test-get-rusage-as.c: New file.
15610
15611         New module 'get-rusage-as'.
15612         * modules/get-rusage-as: New file.
15613         * lib/resource-ext.h: New file.
15614         * lib/get-rusage-as.c: New file.
15615
15616 2011-01-17  Eric Blake  <eblake@redhat.com>
15617
15618         sigaction: relax license from LGPLv3+ to LGPLv2+
15619         * modules/sigaction (License): Relax to LGPLv2+.
15620
15621 2011-01-14  Bruno Haible  <bruno@clisp.org>
15622
15623         filemode: Make function declarations usable in C++ mode.
15624         * lib/filemode.h: Enclose function declarations in extern "C" block.
15625         Reported by John W. Eaton <jwe@gnu.org>.
15626
15627 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15628
15629         save-cwd: no longer include "xgetcwd.h"
15630         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15631         This avoids a compilation failure in projects that use save-cwd
15632         without also using the xgetcwd module.
15633
15634 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15635
15636         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15637         This is so that a program like Emacs, which needs only dtoastr,
15638         does not have to bother with distributing and compiling ftoastr
15639         and ldtoastr.
15640         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15641         * modules/dtoastr, modules/ldtoastr: New files.
15642         * modules/ftoastr: Now works just for 'float'.
15643         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15644         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15645         dtoastr.c, ldtoastr.c.
15646
15647 2011-01-11  Jim Meyering  <meyering@redhat.com>
15648
15649         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15650         There is no need to work around the lack of the fchdir function,
15651         since gnulib can now provide a replacement when required.
15652         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15653         * modules/save-cwd (Depends-on): Add fchdir.
15654
15655 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15656
15657         openat, save-cwd: avoid xmalloc
15658
15659         This removes a direct (but undocumented) dependency of openat on
15660         xalloc, along with an indirect dependency via save-cwd.  It also
15661         removes a dependency of save-cwd on xgetcwd, and thereby
15662         indirectly on xalloc.  This change causes the openat substitute
15663         to fall back on save_cwd when memory is tight, and for save_cwd to
15664         fail instead of dying when memory is tight, but that's good enough.
15665         Problem and initial idea for fix reported by Bastien Roucaries in
15666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15667
15668         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15669         xalloc.h (for xmalloc).
15670         (openat_proc_name): Use malloc, not xmalloc.
15671         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15672         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15673
15674         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15675         This avoids heap allocation for file names whose lengths are in
15676         the range 512..1023, with the upper bound increasing to at most
15677         4031 depending on the platform's PATH_MAX.  (We do not want
15678         pathmax.h here as it might supply a non-constant PATH_MAX.)
15679         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15680         Perhaps they should be moved to malloca.h?
15681         (OPENAT_BUFFER_SIZE): Use them.
15682
15683 2011-01-10  Bruno Haible  <bruno@clisp.org>
15684
15685         doc: Update users.txt.
15686         * users.txt: Add recutils.
15687
15688 2011-01-09  Karl Berry  <karl@gnu.org>
15689
15690         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15691
15692         * doc/configmake.texi: New file.
15693         * doc/gnulib.texi: Include it.
15694         * modules/configmake: Move documentation from here.
15695
15696 2011-01-09  Bruno Haible  <bruno@clisp.org>
15697
15698         Update to Unicode 6.0.0.
15699         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15700         (get_lbp): Update for Unicode 6.0.0.
15701         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15702         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15703         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15704         U+11001, U+11038..U+11046. Remove U+06DE.
15705         (uc_width): Fix bounds of planes.
15706         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15707         lib/uniwidth/width.c.
15708         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15709         trailing whitespace removed.
15710         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15711         without comments, but with the original copyright notice.
15712         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15713         * lib/unicase/ignorable.h: Likewise.
15714         * lib/unicase/tocasefold.h: Likewise.
15715         * lib/unicase/tolower.h: Likewise.
15716         * lib/unicase/totitle.h: Likewise.
15717         * lib/unicase/toupper.h: Likewise.
15718         * lib/unictype/bidi_of.h: Likewise.
15719         * lib/unictype/blocks.h: Likewise.
15720         * lib/unictype/categ_C.h: Likewise.
15721         * lib/unictype/categ_Cn.h: Likewise.
15722         * lib/unictype/categ_L.h: Likewise.
15723         * lib/unictype/categ_Ll.h: Likewise.
15724         * lib/unictype/categ_Lm.h: Likewise.
15725         * lib/unictype/categ_Lo.h: Likewise.
15726         * lib/unictype/categ_Lu.h: Likewise.
15727         * lib/unictype/categ_M.h: Likewise.
15728         * lib/unictype/categ_Mc.h: Likewise.
15729         * lib/unictype/categ_Me.h: Likewise.
15730         * lib/unictype/categ_Mn.h: Likewise.
15731         * lib/unictype/categ_N.h: Likewise.
15732         * lib/unictype/categ_Nd.h: Likewise.
15733         * lib/unictype/categ_No.h: Likewise.
15734         * lib/unictype/categ_P.h: Likewise.
15735         * lib/unictype/categ_Po.h: Likewise.
15736         * lib/unictype/categ_S.h: Likewise.
15737         * lib/unictype/categ_Sc.h: Likewise.
15738         * lib/unictype/categ_Sk.h: Likewise.
15739         * lib/unictype/categ_Sm.h: Likewise.
15740         * lib/unictype/categ_So.h: Likewise.
15741         * lib/unictype/categ_of.h: Likewise.
15742         * lib/unictype/combining.h: Likewise.
15743         * lib/unictype/ctype_alnum.h: Likewise.
15744         * lib/unictype/ctype_alpha.h: Likewise.
15745         * lib/unictype/ctype_graph.h: Likewise.
15746         * lib/unictype/ctype_lower.h: Likewise.
15747         * lib/unictype/ctype_print.h: Likewise.
15748         * lib/unictype/ctype_punct.h: Likewise.
15749         * lib/unictype/ctype_upper.h: Likewise.
15750         * lib/unictype/decdigit.h: Likewise.
15751         * lib/unictype/digit.h: Likewise.
15752         * lib/unictype/numeric.h: Likewise.
15753         * lib/unictype/pr_alphabetic.h: Likewise.
15754         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15755         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15756         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15757         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15758         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15759         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15760         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15761         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15762         * lib/unictype/pr_case_ignorable.h: Likewise.
15763         * lib/unictype/pr_cased.h: Likewise.
15764         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15765         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15766         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15767         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15768         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15769         * lib/unictype/pr_combining.h: Likewise.
15770         * lib/unictype/pr_composite.h: Likewise.
15771         * lib/unictype/pr_currency_symbol.h: Likewise.
15772         * lib/unictype/pr_decimal_digit.h: Likewise.
15773         * lib/unictype/pr_deprecated.h: Likewise.
15774         * lib/unictype/pr_format_control.h: Likewise.
15775         * lib/unictype/pr_grapheme_base.h: Likewise.
15776         * lib/unictype/pr_grapheme_extend.h: Likewise.
15777         * lib/unictype/pr_grapheme_link.h: Likewise.
15778         * lib/unictype/pr_id_continue.h: Likewise.
15779         * lib/unictype/pr_id_start.h: Likewise.
15780         * lib/unictype/pr_ideographic.h: Likewise.
15781         * lib/unictype/pr_lowercase.h: Likewise.
15782         * lib/unictype/pr_math.h: Likewise.
15783         * lib/unictype/pr_numeric.h: Likewise.
15784         * lib/unictype/pr_other_alphabetic.h: Likewise.
15785         * lib/unictype/pr_other_id_continue.h: Likewise.
15786         * lib/unictype/pr_other_math.h: Likewise.
15787         * lib/unictype/pr_punctuation.h: Likewise.
15788         * lib/unictype/pr_sentence_terminal.h: Likewise.
15789         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15790         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15791         * lib/unictype/pr_unified_ideograph.h: Likewise.
15792         * lib/unictype/pr_uppercase.h: Likewise.
15793         * lib/unictype/pr_xid_continue.h: Likewise.
15794         * lib/unictype/pr_xid_start.h: Likewise.
15795         * lib/unictype/scripts.h: Likewise.
15796         * lib/unictype/scripts_byname.gperf: Likewise.
15797         * lib/unictype/sy_java_ident.h: Likewise.
15798         * lib/unigbrk/gbrkprop.h: Likewise.
15799         * lib/unilbrk/lbrkprop1.h: Likewise.
15800         * lib/unilbrk/lbrkprop2.h: Likewise.
15801         * lib/uninorm/decomposition-table2.h: Likewise.
15802         * lib/uniwbrk/wbrkprop.h: Likewise.
15803         * tests/unicase/test-cased.c: Likewise.
15804         * tests/unicase/test-ignorable.c: Likewise.
15805         * tests/unicase/test-uc_tolower.c: Likewise.
15806         * tests/unicase/test-uc_totitle.c: Likewise.
15807         * tests/unicase/test-uc_toupper.c: Likewise.
15808         * tests/unictype/test-categ_C.c: Likewise.
15809         * tests/unictype/test-categ_Cn.c: Likewise.
15810         * tests/unictype/test-categ_L.c: Likewise.
15811         * tests/unictype/test-categ_Ll.c: Likewise.
15812         * tests/unictype/test-categ_Lm.c: Likewise.
15813         * tests/unictype/test-categ_Lo.c: Likewise.
15814         * tests/unictype/test-categ_Lu.c: Likewise.
15815         * tests/unictype/test-categ_M.c: Likewise.
15816         * tests/unictype/test-categ_Mc.c: Likewise.
15817         * tests/unictype/test-categ_Me.c: Likewise.
15818         * tests/unictype/test-categ_Mn.c: Likewise.
15819         * tests/unictype/test-categ_N.c: Likewise.
15820         * tests/unictype/test-categ_Nd.c: Likewise.
15821         * tests/unictype/test-categ_No.c: Likewise.
15822         * tests/unictype/test-categ_P.c: Likewise.
15823         * tests/unictype/test-categ_Po.c: Likewise.
15824         * tests/unictype/test-categ_S.c: Likewise.
15825         * tests/unictype/test-categ_Sc.c: Likewise.
15826         * tests/unictype/test-categ_Sk.c: Likewise.
15827         * tests/unictype/test-categ_Sm.c: Likewise.
15828         * tests/unictype/test-categ_So.c: Likewise.
15829         * tests/unictype/test-ctype_alnum.c: Likewise.
15830         * tests/unictype/test-ctype_alpha.c: Likewise.
15831         * tests/unictype/test-ctype_graph.c: Likewise.
15832         * tests/unictype/test-ctype_lower.c: Likewise.
15833         * tests/unictype/test-ctype_print.c: Likewise.
15834         * tests/unictype/test-ctype_punct.c: Likewise.
15835         * tests/unictype/test-ctype_upper.c: Likewise.
15836         * tests/unictype/test-decdigit.h: Likewise.
15837         * tests/unictype/test-digit.h: Likewise.
15838         * tests/unictype/test-numeric.h: Likewise.
15839         * tests/unictype/test-pr_alphabetic.c: Likewise.
15840         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15841         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15842         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15843         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15844         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15845         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15846         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15847         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15848         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15849         * tests/unictype/test-pr_cased.c: Likewise.
15850         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15851         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15852         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15853         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15854         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15855         * tests/unictype/test-pr_combining.c: Likewise.
15856         * tests/unictype/test-pr_composite.c: Likewise.
15857         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15858         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15859         * tests/unictype/test-pr_deprecated.c: Likewise.
15860         * tests/unictype/test-pr_format_control.c: Likewise.
15861         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15862         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15863         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15864         * tests/unictype/test-pr_id_continue.c: Likewise.
15865         * tests/unictype/test-pr_id_start.c: Likewise.
15866         * tests/unictype/test-pr_ideographic.c: Likewise.
15867         * tests/unictype/test-pr_lowercase.c: Likewise.
15868         * tests/unictype/test-pr_math.c: Likewise.
15869         * tests/unictype/test-pr_numeric.c: Likewise.
15870         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15871         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15872         * tests/unictype/test-pr_other_math.c: Likewise.
15873         * tests/unictype/test-pr_punctuation.c: Likewise.
15874         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15876         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15877         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15878         * tests/unictype/test-pr_uppercase.c: Likewise.
15879         * tests/unictype/test-pr_xid_continue.c: Likewise.
15880         * tests/unictype/test-pr_xid_start.c: Likewise.
15881         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15882         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15883         changes.
15884         * lib/unictype/categ_Cc.h: Likewise.
15885         * lib/unictype/categ_Cf.h: Likewise.
15886         * lib/unictype/categ_Co.h: Likewise.
15887         * lib/unictype/categ_Cs.h: Likewise.
15888         * lib/unictype/categ_Lt.h: Likewise.
15889         * lib/unictype/categ_Nl.h: Likewise.
15890         * lib/unictype/categ_Pc.h: Likewise.
15891         * lib/unictype/categ_Pd.h: Likewise.
15892         * lib/unictype/categ_Pe.h: Likewise.
15893         * lib/unictype/categ_Pf.h: Likewise.
15894         * lib/unictype/categ_Pi.h: Likewise.
15895         * lib/unictype/categ_Ps.h: Likewise.
15896         * lib/unictype/categ_Z.h: Likewise.
15897         * lib/unictype/categ_Zl.h: Likewise.
15898         * lib/unictype/categ_Zp.h: Likewise.
15899         * lib/unictype/categ_Zs.h: Likewise.
15900         * lib/unictype/ctype_blank.h: Likewise.
15901         * lib/unictype/ctype_cntrl.h: Likewise.
15902         * lib/unictype/ctype_digit.h: Likewise.
15903         * lib/unictype/ctype_space.h: Likewise.
15904         * lib/unictype/ctype_xdigit.h: Likewise.
15905         * lib/unictype/mirror.h: Likewise.
15906         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15907         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15908         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15909         * lib/unictype/pr_bidi_control.h: Likewise.
15910         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15911         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15912         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15913         * lib/unictype/pr_bidi_pdf.h: Likewise.
15914         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15915         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15916         * lib/unictype/pr_dash.h: Likewise.
15917         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15918         * lib/unictype/pr_diacritic.h: Likewise.
15919         * lib/unictype/pr_extender.h: Likewise.
15920         * lib/unictype/pr_hex_digit.h: Likewise.
15921         * lib/unictype/pr_hyphen.h: Likewise.
15922         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15923         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15924         * lib/unictype/pr_ignorable_control.h: Likewise.
15925         * lib/unictype/pr_iso_control.h: Likewise.
15926         * lib/unictype/pr_join_control.h: Likewise.
15927         * lib/unictype/pr_left_of_pair.h: Likewise.
15928         * lib/unictype/pr_line_separator.h: Likewise.
15929         * lib/unictype/pr_logical_order_exception.h: Likewise.
15930         * lib/unictype/pr_non_break.h: Likewise.
15931         * lib/unictype/pr_not_a_character.h: Likewise.
15932         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15933         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15934         * lib/unictype/pr_other_id_start.h: Likewise.
15935         * lib/unictype/pr_other_lowercase.h: Likewise.
15936         * lib/unictype/pr_other_uppercase.h: Likewise.
15937         * lib/unictype/pr_paired_punctuation.h: Likewise.
15938         * lib/unictype/pr_paragraph_separator.h: Likewise.
15939         * lib/unictype/pr_pattern_syntax.h: Likewise.
15940         * lib/unictype/pr_pattern_white_space.h: Likewise.
15941         * lib/unictype/pr_private_use.h: Likewise.
15942         * lib/unictype/pr_quotation_mark.h: Likewise.
15943         * lib/unictype/pr_radical.h: Likewise.
15944         * lib/unictype/pr_soft_dotted.h: Likewise.
15945         * lib/unictype/pr_space.h: Likewise.
15946         * lib/unictype/pr_titlecase.h: Likewise.
15947         * lib/unictype/pr_variation_selector.h: Likewise.
15948         * lib/unictype/pr_white_space.h: Likewise.
15949         * lib/unictype/pr_zero_width.h: Likewise.
15950         * lib/unictype/sy_c_ident.h: Likewise.
15951         * lib/unictype/sy_c_whitespace.h: Likewise.
15952         * lib/unictype/sy_java_whitespace.h: Likewise.
15953         * lib/uninorm/composition-table.gperf: Likewise.
15954         * lib/uninorm/decomposition-table1.h: Likewise.
15955         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15956         LB8.
15957         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15958         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15959         * modules/unictype/*: Bump version number of expected libunistring
15960         version.
15961
15962 2011-01-09  Bruno Haible  <bruno@clisp.org>
15963
15964         Update to Unicode 5.2.0.
15965         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15966         trailing whitespace removed.
15967
15968 2011-01-09  Bruno Haible  <bruno@clisp.org>
15969
15970         New Unicode character properties, from Unicode 5.2.0.
15971         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15972         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15973         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15974         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15975         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15976         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15977         uc_is_property_cased, uc_is_property_case_ignorable,
15978         uc_is_property_changes_when_lowercased,
15979         uc_is_property_changes_when_uppercased,
15980         uc_is_property_changes_when_titlecased,
15981         uc_is_property_changes_when_casefolded,
15982         uc_is_property_changes_when_casemapped): New declarations.
15983         * lib/unictype/pr_byname.gperf: Add the new properties.
15984         * modules/unictype/property-byname (Depends-on): Depend on the new
15985         properties modules.
15986         * modules/unictype/property-all (Depends-on): Likewise.
15987         * MODULES.html.sh (Unicode string functions): Add
15988         unictype/property-case-ignorable, unictype/property-cased,
15989         unictype/property-changes-when-casefolded,
15990         unictype/property-changes-when-casemapped,
15991         unictype/property-changes-when-lowercased,
15992         unictype/property-changes-when-titlecased,
15993         unictype/property-changes-when-uppercased.
15994
15995         New module 'unictype/property-changes-when-casemapped'.
15996         * modules/unictype/property-changes-when-casemapped: New file.
15997         * lib/unictype/pr_changes_when_casemapped.c: New file.
15998         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15999         generated by gen-uni-tables.
16000         * modules/unictype/property-changes-when-casemapped-tests: New file.
16001         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16002         automatically generated by gen-uni-tables.
16003
16004         New module 'unictype/property-changes-when-casefolded'.
16005         * modules/unictype/property-changes-when-casefolded: New file.
16006         * lib/unictype/pr_changes_when_casefolded.c: New file.
16007         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16008         generated by gen-uni-tables.
16009         * modules/unictype/property-changes-when-casefolded-tests: New file.
16010         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16011         automatically generated by gen-uni-tables.
16012
16013         New module 'unictype/property-changes-when-titlecased'.
16014         * modules/unictype/property-changes-when-titlecased: New file.
16015         * lib/unictype/pr_changes_when_titlecased.c: New file.
16016         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16017         generated by gen-uni-tables.
16018         * modules/unictype/property-changes-when-titlecased-tests: New file.
16019         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16020         automatically generated by gen-uni-tables.
16021
16022         New module 'unictype/property-changes-when-uppercased'.
16023         * modules/unictype/property-changes-when-uppercased: New file.
16024         * lib/unictype/pr_changes_when_uppercased.c: New file.
16025         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16026         generated by gen-uni-tables.
16027         * modules/unictype/property-changes-when-uppercased-tests: New file.
16028         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16029         automatically generated by gen-uni-tables.
16030
16031         New module 'unictype/property-changes-when-lowercased'.
16032         * modules/unictype/property-changes-when-lowercased: New file.
16033         * lib/unictype/pr_changes_when_lowercased.c: New file.
16034         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16035         generated by gen-uni-tables.
16036         * modules/unictype/property-changes-when-lowercased-tests: New file.
16037         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16038         automatically generated by gen-uni-tables.
16039
16040         New module 'unictype/property-case-ignorable'.
16041         * modules/unictype/property-case-ignorable: New file.
16042         * lib/unictype/pr_case_ignorable.c: New file.
16043         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16044         by gen-uni-tables.
16045         * modules/unictype/property-case-ignorable-tests: New file.
16046         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16047         generated by gen-uni-tables.
16048
16049         New module 'unictype/property-cased'.
16050         * modules/unictype/property-cased: New file.
16051         * lib/unictype/pr_cased.c: New file.
16052         * lib/unictype/pr_cased.h: New file, automatically generated by
16053         gen-uni-tables.
16054         * modules/unictype/property-cased-tests: New file.
16055         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16056         gen-uni-tables.
16057
16058 2011-01-09  Bruno Haible  <bruno@clisp.org>
16059
16060         Update to Unicode 5.2.0.
16061         * lib/gen-uni-tables.c (output_predicate, output_category,
16062         output_combclass, output_bidi_category, output_decimal_digit_test,
16063         output_decimal_digit, output_digit_test, output_digit,
16064         output_numeric_test, output_numeric, output_mirror, output_scripts,
16065         output_scripts_byname, output_blocks, output_ident_category): Fix
16066         comment header.
16067         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16068         get_wbp.
16069         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16070         items.
16071         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16072         Changes_When_Lowercased, Changes_When_Uppercased,
16073         Changes_When_Titlecased, Changes_When_Casefolded,
16074         Changes_When_Casemapped.
16075         (is_property_alphabetic, is_property_default_ignorable_code_point):
16076         Update for Unicode 5.2.0.
16077         (is_property_cased, is_property_case_ignorable,
16078         is_property_changes_when_lowercased,
16079         is_property_changes_when_uppercased,
16080         is_property_changes_when_titlecased,
16081         is_property_changes_when_casefolded,
16082         is_property_changes_when_casemapped): New functions.
16083         (output_properties): Output also the properties cased, case_ignorable,
16084         changes_when_lowercased, changes_when_uppercased,
16085         changes_when_titlecased, changes_when_casefolded,
16086         changes_when_casemapped.
16087         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16088         Unicode TR#11 revision 17 -> 19.
16089         (LBP_CP): New enumeration value.
16090         (LBP_*): Adjust values accordingly.
16091         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16092         TR#14 revision 22 -> 24.
16093         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16094         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16095         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16096         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16097         is_WBP_MIDLETTER.
16098         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16099         the code1 and code2 of each composition rule.
16100         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16101         * lib/unicase/ignorable.h: Likewise.
16102         * lib/unicase/tocasefold.h: Likewise.
16103         * lib/unicase/tolower.h: Likewise.
16104         * lib/unicase/totitle.h: Likewise.
16105         * lib/unicase/toupper.h: Likewise.
16106         * lib/unictype/bidi_of.h: Likewise.
16107         * lib/unictype/blocks.h: Likewise.
16108         * lib/unictype/categ_C.h: Likewise.
16109         * lib/unictype/categ_Cf.h: Likewise.
16110         * lib/unictype/categ_Cn.h: Likewise.
16111         * lib/unictype/categ_L.h: Likewise.
16112         * lib/unictype/categ_Ll.h: Likewise.
16113         * lib/unictype/categ_Lm.h: Likewise.
16114         * lib/unictype/categ_Lo.h: Likewise.
16115         * lib/unictype/categ_Lu.h: Likewise.
16116         * lib/unictype/categ_M.h: Likewise.
16117         * lib/unictype/categ_Mc.h: Likewise.
16118         * lib/unictype/categ_Mn.h: Likewise.
16119         * lib/unictype/categ_N.h: Likewise.
16120         * lib/unictype/categ_Nd.h: Likewise.
16121         * lib/unictype/categ_Nl.h: Likewise.
16122         * lib/unictype/categ_No.h: Likewise.
16123         * lib/unictype/categ_P.h: Likewise.
16124         * lib/unictype/categ_Pd.h: Likewise.
16125         * lib/unictype/categ_Po.h: Likewise.
16126         * lib/unictype/categ_S.h: Likewise.
16127         * lib/unictype/categ_Sc.h: Likewise.
16128         * lib/unictype/categ_So.h: Likewise.
16129         * lib/unictype/categ_of.h: Likewise.
16130         * lib/unictype/combining.h: Likewise.
16131         * lib/unictype/ctype_alnum.h: Likewise.
16132         * lib/unictype/ctype_alpha.h: Likewise.
16133         * lib/unictype/ctype_graph.h: Likewise.
16134         * lib/unictype/ctype_lower.h: Likewise.
16135         * lib/unictype/ctype_print.h: Likewise.
16136         * lib/unictype/ctype_punct.h: Likewise.
16137         * lib/unictype/ctype_upper.h: Likewise.
16138         * lib/unictype/decdigit.h: Likewise.
16139         * lib/unictype/digit.h: Likewise.
16140         * lib/unictype/numeric.h: Likewise.
16141         * lib/unictype/pr_alphabetic.h: Likewise.
16142         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16143         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16144         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16145         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16146         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16147         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16148         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16149         * lib/unictype/pr_combining.h: Likewise.
16150         * lib/unictype/pr_composite.h: Likewise.
16151         * lib/unictype/pr_currency_symbol.h: Likewise.
16152         * lib/unictype/pr_dash.h: Likewise.
16153         * lib/unictype/pr_decimal_digit.h: Likewise.
16154         * lib/unictype/pr_deprecated.h: Likewise.
16155         * lib/unictype/pr_diacritic.h: Likewise.
16156         * lib/unictype/pr_extender.h: Likewise.
16157         * lib/unictype/pr_grapheme_base.h: Likewise.
16158         * lib/unictype/pr_grapheme_extend.h: Likewise.
16159         * lib/unictype/pr_grapheme_link.h: Likewise.
16160         * lib/unictype/pr_id_continue.h: Likewise.
16161         * lib/unictype/pr_id_start.h: Likewise.
16162         * lib/unictype/pr_ideographic.h: Likewise.
16163         * lib/unictype/pr_ignorable_control.h: Likewise.
16164         * lib/unictype/pr_logical_order_exception.h: Likewise.
16165         * lib/unictype/pr_lowercase.h: Likewise.
16166         * lib/unictype/pr_numeric.h: Likewise.
16167         * lib/unictype/pr_other_alphabetic.h: Likewise.
16168         * lib/unictype/pr_punctuation.h: Likewise.
16169         * lib/unictype/pr_sentence_terminal.h: Likewise.
16170         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16171         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16172         * lib/unictype/pr_unified_ideograph.h: Likewise.
16173         * lib/unictype/pr_uppercase.h: Likewise.
16174         * lib/unictype/pr_xid_continue.h: Likewise.
16175         * lib/unictype/pr_xid_start.h: Likewise.
16176         * lib/unictype/pr_zero_width.h: Likewise.
16177         * lib/unictype/scripts.h: Likewise.
16178         * lib/unictype/scripts_byname.gperf: Likewise.
16179         * lib/unictype/sy_java_ident.h: Likewise.
16180         * lib/unigbrk/gbrkprop.h: Likewise.
16181         * lib/unilbrk/lbrkprop1.h: Likewise.
16182         * lib/unilbrk/lbrkprop2.h: Likewise.
16183         * lib/unilbrk/lbrktables.h: Likewise.
16184         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16185         LBP_CP. Implement rule LB30.
16186         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16187         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16188         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16189         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16190         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16191         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16192         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16193         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16194         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16195         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16196         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16197         bits instead of 16 bits in the code1 and code2 of each composition
16198         rule.
16199         (uc_composition): Update for Unicode 5.2.0.
16200         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16201         * lib/uninorm/decomposition-table2.h: Likewise.
16202         * lib/uniwbrk/wbrkprop.h: Likewise.
16203         * tests/unicase/test-cased.c: Likewise.
16204         * tests/unicase/test-ignorable.c: Likewise.
16205         * tests/unicase/test-uc_tolower.c: Likewise.
16206         * tests/unicase/test-uc_totitle.c: Likewise.
16207         * tests/unicase/test-uc_toupper.c: Likewise.
16208         * tests/unictype/test-categ_C.c: Likewise.
16209         * tests/unictype/test-categ_Cf.c: Likewise.
16210         * tests/unictype/test-categ_Cn.c: Likewise.
16211         * tests/unictype/test-categ_L.c: Likewise.
16212         * tests/unictype/test-categ_Ll.c: Likewise.
16213         * tests/unictype/test-categ_Lm.c: Likewise.
16214         * tests/unictype/test-categ_Lo.c: Likewise.
16215         * tests/unictype/test-categ_Lu.c: Likewise.
16216         * tests/unictype/test-categ_M.c: Likewise.
16217         * tests/unictype/test-categ_Mc.c: Likewise.
16218         * tests/unictype/test-categ_Mn.c: Likewise.
16219         * tests/unictype/test-categ_N.c: Likewise.
16220         * tests/unictype/test-categ_Nd.c: Likewise.
16221         * tests/unictype/test-categ_Nl.c: Likewise.
16222         * tests/unictype/test-categ_No.c: Likewise.
16223         * tests/unictype/test-categ_P.c: Likewise.
16224         * tests/unictype/test-categ_Pd.c: Likewise.
16225         * tests/unictype/test-categ_Po.c: Likewise.
16226         * tests/unictype/test-categ_S.c: Likewise.
16227         * tests/unictype/test-categ_Sc.c: Likewise.
16228         * tests/unictype/test-categ_So.c: Likewise.
16229         * tests/unictype/test-ctype_alnum.c: Likewise.
16230         * tests/unictype/test-ctype_alpha.c: Likewise.
16231         * tests/unictype/test-ctype_graph.c: Likewise.
16232         * tests/unictype/test-ctype_lower.c: Likewise.
16233         * tests/unictype/test-ctype_print.c: Likewise.
16234         * tests/unictype/test-ctype_punct.c: Likewise.
16235         * tests/unictype/test-ctype_upper.c: Likewise.
16236         * tests/unictype/test-decdigit.h: Likewise.
16237         * tests/unictype/test-digit.h: Likewise.
16238         * tests/unictype/test-numeric.h: Likewise.
16239         * tests/unictype/test-pr_alphabetic.c: Likewise.
16240         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16241         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16242         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16243         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16244         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16245         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16246         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16247         * tests/unictype/test-pr_combining.c: Likewise.
16248         * tests/unictype/test-pr_composite.c: Likewise.
16249         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16250         * tests/unictype/test-pr_dash.c: Likewise.
16251         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16252         * tests/unictype/test-pr_deprecated.c: Likewise.
16253         * tests/unictype/test-pr_diacritic.c: Likewise.
16254         * tests/unictype/test-pr_extender.c: Likewise.
16255         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16256         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16257         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16258         * tests/unictype/test-pr_id_continue.c: Likewise.
16259         * tests/unictype/test-pr_id_start.c: Likewise.
16260         * tests/unictype/test-pr_ideographic.c: Likewise.
16261         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16262         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16263         * tests/unictype/test-pr_lowercase.c: Likewise.
16264         * tests/unictype/test-pr_numeric.c: Likewise.
16265         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16266         * tests/unictype/test-pr_punctuation.c: Likewise.
16267         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16268         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16269         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16270         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16271         * tests/unictype/test-pr_uppercase.c: Likewise.
16272         * tests/unictype/test-pr_xid_continue.c: Likewise.
16273         * tests/unictype/test-pr_xid_start.c: Likewise.
16274         * tests/unictype/test-pr_zero_width.c: Likewise.
16275         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16276         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16277         changed behaviour: line breaking is now disallowed between a letter
16278         or '=' and '('.
16279         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16280         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16281         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16282         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16283         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16284         lib/uniwidth/width.c.
16285         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16286         without comments, but with the original copyright notice.
16287         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16288         changes.
16289         * lib/unictype/categ_Cc.h: Likewise.
16290         * lib/unictype/categ_Co.h: Likewise.
16291         * lib/unictype/categ_Cs.h: Likewise.
16292         * lib/unictype/categ_Lt.h: Likewise.
16293         * lib/unictype/categ_Me.h: Likewise.
16294         * lib/unictype/categ_Pc.h: Likewise.
16295         * lib/unictype/categ_Pe.h: Likewise.
16296         * lib/unictype/categ_Pf.h: Likewise.
16297         * lib/unictype/categ_Pi.h: Likewise.
16298         * lib/unictype/categ_Ps.h: Likewise.
16299         * lib/unictype/categ_Sk.h: Likewise.
16300         * lib/unictype/categ_Sm.h: Likewise.
16301         * lib/unictype/categ_Z.h: Likewise.
16302         * lib/unictype/categ_Zl.h: Likewise.
16303         * lib/unictype/categ_Zp.h: Likewise.
16304         * lib/unictype/categ_Zs.h: Likewise.
16305         * lib/unictype/ctype_blank.h: Likewise.
16306         * lib/unictype/ctype_cntrl.h: Likewise.
16307         * lib/unictype/ctype_digit.h: Likewise.
16308         * lib/unictype/ctype_space.h: Likewise.
16309         * lib/unictype/ctype_xdigit.h: Likewise.
16310         * lib/unictype/mirror.h: Likewise.
16311         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16312         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16313         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16314         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16315         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16316         * lib/unictype/pr_bidi_control.h: Likewise.
16317         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16318         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16319         * lib/unictype/pr_bidi_pdf.h: Likewise.
16320         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16321         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16322         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16323         * lib/unictype/pr_format_control.h: Likewise.
16324         * lib/unictype/pr_hex_digit.h: Likewise.
16325         * lib/unictype/pr_hyphen.h: Likewise.
16326         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16327         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16328         * lib/unictype/pr_iso_control.h: Likewise.
16329         * lib/unictype/pr_join_control.h: Likewise.
16330         * lib/unictype/pr_left_of_pair.h: Likewise.
16331         * lib/unictype/pr_line_separator.h: Likewise.
16332         * lib/unictype/pr_math.h: Likewise.
16333         * lib/unictype/pr_non_break.h: Likewise.
16334         * lib/unictype/pr_not_a_character.h: Likewise.
16335         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16336         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16337         * lib/unictype/pr_other_id_continue.h: Likewise.
16338         * lib/unictype/pr_other_id_start.h: Likewise.
16339         * lib/unictype/pr_other_lowercase.h: Likewise.
16340         * lib/unictype/pr_other_math.h: Likewise.
16341         * lib/unictype/pr_other_uppercase.h: Likewise.
16342         * lib/unictype/pr_paired_punctuation.h: Likewise.
16343         * lib/unictype/pr_paragraph_separator.h: Likewise.
16344         * lib/unictype/pr_pattern_syntax.h: Likewise.
16345         * lib/unictype/pr_pattern_white_space.h: Likewise.
16346         * lib/unictype/pr_private_use.h: Likewise.
16347         * lib/unictype/pr_quotation_mark.h: Likewise.
16348         * lib/unictype/pr_radical.h: Likewise.
16349         * lib/unictype/pr_soft_dotted.h: Likewise.
16350         * lib/unictype/pr_space.h: Likewise.
16351         * lib/unictype/pr_titlecase.h: Likewise.
16352         * lib/unictype/pr_variation_selector.h: Likewise.
16353         * lib/unictype/pr_white_space.h: Likewise.
16354         * lib/unictype/sy_c_ident.h: Likewise.
16355         * lib/unictype/sy_c_whitespace.h: Likewise.
16356         * lib/unictype/sy_java_whitespace.h: Likewise.
16357         * modules/uni*/*: Bump version number of expected libunistring version.
16358         Reported by Simon Josefsson.
16359
16360 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16361
16362         useless-if-before-free: fix typo in --help and make the internal,
16363         automatic version date update process work once again.
16364         --help output contained a NUL character instead of the
16365         backslash-zero that was intended.  Also, the "must lie within
16366         the first 8 lines" line is on line 9, and hence not getting
16367         automatically updated.
16368         * build-aux/useless-if-before-free: Fix the former by adding a
16369         backslash, and the latter by condensing the three lines of what-it-does
16370         to a single line, leaving one line of slack for the future.
16371
16372 2011-01-09  Bruno Haible  <bruno@clisp.org>
16373
16374         uniwidth/width: Fix width of U+1D173..U+1D17A.
16375         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16376         symbolic_width, output_width_property_test): New functions.
16377         (main): Invoke output_nonspacing_property, output_width_property_test.
16378         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16379         U+1D173..U+1D17A.
16380         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16381         1.
16382         * modules/uniwidth/*: Bump version number of expected libunistring
16383         version.
16384         * modules/unilbrk/*: Likewise.
16385
16386 2011-01-08  Bruno Haible  <bruno@clisp.org>
16387
16388         uninorm tests: Preserve copyright of Unicode data file.
16389         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16390         Mention modifications.
16391
16392 2011-01-08  Bruno Haible  <bruno@clisp.org>
16393
16394         gen-uni-tables: Prepare for Unicode 5.2.0.
16395         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16396         (debug_output_lbp, output_lbp): Update.
16397
16398 2011-01-08  Bruno Haible  <bruno@clisp.org>
16399
16400         unilbrk: Clarify gen-uni-tables.c code.
16401         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16402         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16403         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16404
16405 2011-01-07  Bruno Haible  <bruno@clisp.org>
16406
16407         strtod: Restore errno when successfully parsing Infinity or NaN.
16408         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16409         restore the original errno.
16410
16411 2011-01-07  Bruno Haible  <bruno@clisp.org>
16412
16413         remove test: Avoid failure on HP-UX 11.
16414         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16415
16416 2011-01-07  Bruno Haible  <bruno@clisp.org>
16417
16418         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16419         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16420         error code.
16421
16422 2011-01-07  Pádraig Brady <P@draigBrady.com>
16423
16424         ignore-value: fixup comments, and add Eric Blake
16425         as an author since he rewrote the macros.
16426         * lib/ignore-value.h (ignore_value):  State that
16427         we now support aggregates.  Also specify exactly
16428         when the GCC warn_unused_result feature was added.
16429
16430 2011-01-06  Eric Blake  <eblake@redhat.com>
16431
16432         ignore-value: support aggregate types
16433         * lib/ignore-value.h (ignore_value): Provide separate gcc
16434         definition.
16435         * modules/ignore-value-tests: New test module.
16436         * tests/test-ignore-value.c: New test.
16437
16438         maint.mk: improve sc_prohibit_strcmp regex
16439         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16440         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16441         definition of STRNEQ.
16442
16443         signal: work around Haiku issue with SIGBUS
16444         * lib/siglist.h: Add comment.
16445         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16446         strsignal's favoring of SIGSEGV.
16447         * tests/test-signal.c (main): Avoid test failure.
16448         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16449         Reported by Scott McCreary.
16450
16451         maint.mk: add pre-release check to ensure submodule commits are public
16452         * top/maint.mk (public-submodule-commit): New rule.
16453         (submodule-checks): New variable.
16454         (alpha beta stable): Depend on the variable.
16455
16456 2011-01-05  Pádraig Brady <P@draigBrady.com>
16457         and Jim Meyering  <meyering@redhat.com>
16458
16459         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16460         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16461         (ATTRIBUTE_DEPRECATED): Define.
16462         (_ignore_case): New function.
16463         (ignore_value): New macro, to replace the old function.
16464         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16465         * modules/ignore-value (Depends-on): Add stdint.
16466
16467 2011-01-04  Eric Blake  <eblake@redhat.com>
16468
16469         doc: regenerate INSTALL
16470         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16471         @firstparagraphindent support, now that autoconf dropped it.
16472         (INSTALL_PRELUDE): Reinstate old macro.
16473         * doc/install.texi: Resync from autoconf.
16474         * doc/INSTALL: Reflect recent autoconf update.
16475         * doc/INSTALL.ISO: Likewise.
16476         * doc/INSTALL.UTF-8: Likewise.
16477         Reported by Karl Berry.
16478
16479 2011-01-04  Bruce Korb  <address@hidden>
16480
16481         git-version-gen: avoid a sub-shell
16482         * build-aux/git-version-gen: Redirect stderr in `...` via
16483         "exec 2>...", rather than via an added sub-shell.
16484
16485 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16486
16487         git-version-gen: use (...) rather than sh -c '...'
16488         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16489         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16490
16491 2011-01-03  Jim Meyering  <meyering@redhat.com>
16492
16493         git-version-gen: convert leading TABs to spaces
16494         * build-aux/git-version-gen: Expand leading TABs.
16495
16496         git-version-gen: handle failed "git rev-list"
16497         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16498         from git and proceeding as if it had succeeded but printed no SHA1
16499         checksums, suppress the diagnostic and handle the failure.
16500         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16501
16502         git-version-gen: include command name in one more diagnostic
16503         * build-aux/git-version-gen: When the required .tarball-version file
16504         was missing or unreadable, you might see the diagnostic from "cat",
16505         but no trace of the name of the invoking script.  Now, you still see
16506         the diagnostic from cat, but also get one from "git-version-gen: ".
16507         Inspired by a patch from Bruce Korb.
16508
16509         update-copyright: adjust test to match changed code
16510         * tests/test-update-copyright.sh: Change test's expected output
16511         to match new actual output.
16512
16513 2011-01-02  Bruno Haible  <bruno@clisp.org>
16514
16515         getlogin_r: Avoid test failure on HP-UX 11.
16516         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16517         ERANGE when the second argument is zero.
16518         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16519         portability problem.
16520
16521 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16522
16523         * build-aux/update-copyright: doc Simon's changes
16524
16525 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16526
16527         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16528         environment variable.
16529
16530 2011-01-02  Bruno Haible  <bruno@clisp.org>
16531
16532         unigbrk: Avoid gcc warnings.
16533         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16534         unused variable.
16535         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16536         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16537         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16538         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16539         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16540         Change type of first argument to 'const char *'.
16541         (main): Remove unused variable.
16542         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16543         type of first argument to 'const char *'.
16544         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16545         Likewise.
16546         (main): Change type of variable 's'.
16547         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16548         to 'int'.
16549
16550 2011-01-02  Bruno Haible  <bruno@clisp.org>
16551
16552         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16553         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16554         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16555         bug.
16556         * lib/pwrite.c: Undo 2010-12-31 patch.
16557         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16558
16559 2011-01-02  Bruno Haible  <bruno@clisp.org>
16560
16561         pread: Fix test whether it works.
16562         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16563
16564 2011-01-02  Bruno Haible  <bruno@clisp.org>
16565
16566         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16567         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16568         ends in "6". Don't require a specific month name. Try also the locale
16569         names found on HP-UX 11 and Solaris 7.
16570
16571 2011-01-02  Bruno Haible  <bruno@clisp.org>
16572
16573         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16574         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16575         C linkage.
16576         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16577
16578 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16579
16580         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16581         for consistency, since the "cluster" term is not used elsewhere.
16582         * lib/unigbrk.in.h: Update name.
16583         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16584         * lib/unigbrk/u16-grapheme-next.c: Update name.
16585         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16586         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16587         * lib/unigbrk/u32-grapheme-next.c: Update name.
16588         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16589         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16590         * lib/unigbrk/u8-grapheme-next.c: Update name.
16591         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16592         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16593         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16594         Suggested by Bruno Haible.
16595
16596 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16597
16598         Remove module 'u8-grapheme-len' as too redundant with
16599         'u8-grapheme-next'.
16600         * modules/unigbrk/u8-grapheme-len: Delete file.
16601         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16602         * lib/unigbrk.in.h: Remove prototype for deleted function.
16603         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16604         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16605
16606         Remove module 'u16-grapheme-len' as too redundant with
16607         'u16-grapheme-next'.
16608         * modules/unigbrk/u16-grapheme-len: Delete file.
16609         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16610         * lib/unigbrk.in.h: Remove prototype for deleted function.
16611         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16612         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16613
16614         Remove module 'u32-grapheme-len' as too redundant with
16615         'u32-grapheme-next'.
16616         * modules/unigbrk/u32-grapheme-len: Delete file.
16617         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16618         * lib/unigbrk.in.h: Remove prototype for deleted function.
16619         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16620         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16621
16622         Suggested by Bruno Haible.
16623
16624 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16625
16626         * unigbrk.in.h: Fix typo: "ben" => "been".
16627         Reported by Bruno Haible.
16628
16629 2011-01-01  Jim Meyering  <meyering@redhat.com>
16630
16631         maint: update almost all copyright ranges to include 2011
16632         Run the new "make update-copyright" rule.
16633
16634 2011-01-01  Jim Meyering  <meyering@redhat.com>
16635
16636         maint: update-copyright: exempt doc/INSTALL*
16637         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16638         since they are generated.  Suggested by Bruno Haible.
16639
16640 2011-01-01  Jim Meyering  <meyering@redhat.com>
16641
16642         maint: refine the update-copyright rule
16643         * Makefile (update-copyright): Also exclude any file that includes
16644         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16645         code that merely generates the comment.
16646
16647 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16648
16649         New module 'u8-grapheme-len'.
16650         * modules/unigbrk/u8-grapheme-len: New file.
16651         * modules/unigbrk/u8-grapheme-len-tests: New file.
16652         * lib/unigbrk.in.h: Add prototype for new function.
16653         * lib/unigbrk/u8-grapheme-len.c: New file.
16654         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16655
16656         New module 'u16-grapheme-len'.
16657         * modules/unigbrk/u16-grapheme-len: New file.
16658         * modules/unigbrk/u16-grapheme-len-tests: New file.
16659         * lib/unigbrk.in.h: Add prototype for new function.
16660         * lib/unigbrk/u16-grapheme-len.c: New file.
16661         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16662
16663         New module 'u32-grapheme-len'.
16664         * modules/unigbrk/u32-grapheme-len: New file.
16665         * modules/unigbrk/u32-grapheme-len-tests: New file.
16666         * lib/unigbrk.in.h: Add prototype for new function.
16667         * lib/unigbrk/u32-grapheme-len.c: New file.
16668         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16669
16670         New module 'u8-grapheme-next'.
16671         * modules/unigbrk/u8-grapheme-next: New file.
16672         * modules/unigbrk/u8-grapheme-next-tests: New file.
16673         * lib/unigbrk.in.h: Add prototype for new function.
16674         * lib/unigbrk/u8-grapheme-next.c: New file.
16675         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16676
16677         New module 'u16-grapheme-next'.
16678         * modules/unigbrk/u16-grapheme-next: New file.
16679         * modules/unigbrk/u16-grapheme-next-tests: New file.
16680         * lib/unigbrk.in.h: Add prototype for new function.
16681         * lib/unigbrk/u16-grapheme-next.c: New file.
16682         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16683
16684         New module 'u32-grapheme-next'.
16685         * modules/unigbrk/u32-grapheme-next: New file.
16686         * modules/unigbrk/u32-grapheme-next-tests: New file.
16687         * lib/unigbrk.in.h: Add prototype for new function.
16688         * lib/unigbrk/u32-grapheme-next.c: New file.
16689         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16690
16691         New module 'u8-grapheme-prev'.
16692         * modules/unigbrk/u8-grapheme-prev: New file.
16693         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16694         * lib/unigbrk.in.h: Add prototype for new function.
16695         * lib/unigbrk/u8-grapheme-prev.c: New file.
16696         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16697
16698         New module 'u16-grapheme-prev'.
16699         * modules/unigbrk/u16-grapheme-prev: New file.
16700         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16701         * lib/unigbrk.in.h: Add prototype for new function.
16702         * lib/unigbrk/u16-grapheme-prev.c: New file.
16703         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16704
16705         New module 'u32-grapheme-prev'.
16706         * modules/unigbrk/u32-grapheme-prev: New file.
16707         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16708         * lib/unigbrk.in.h: Add prototype for new function.
16709         * lib/unigbrk/u32-grapheme-prev.c: New file.
16710         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16711
16712         New module 'u8-grapheme-breaks'.
16713         * modules/unigbrk/u8-grapheme-breaks: New file.
16714         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16715         * lib/unigbrk.in.h: Add prototype for new function.
16716         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16717         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16718
16719         New module 'u16-grapheme-breaks'.
16720         * modules/unigbrk/u16-grapheme-breaks: New file.
16721         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16722         * lib/unigbrk.in.h: Add prototype for new function.
16723         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16724         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16725
16726         New module 'u32-grapheme-breaks'.
16727         * modules/unigbrk/u32-grapheme-breaks: New file.
16728         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16729         * lib/unigbrk.in.h: Add prototype for new function.
16730         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16731         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16732
16733         New module 'ulc-grapheme-breaks'.
16734         * modules/unigbrk/ulc-grapheme-breaks: New file.
16735         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16736         * m4/locale-ar.m4: New file.
16737         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16738         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16739         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16740
16741 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16742
16743         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16744         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16745         modified how this file was generated before I initially submitted
16746         the module, but failed to regenerate it.  This meant that several
16747         of the level2 entries were wrong.
16748         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16749         Remove the division-by-2 that is folded into the table now that
16750         gbrkprop.h has been regenerated properly.  Now -1 entries are
16751         handled correctly.
16752
16753         New module 'unigbrk/uc-gbrk-prop-tests'.
16754         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16755         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16756         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16757         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16758
16759 2011-01-01  Bruno Haible  <bruno@clisp.org>
16760
16761         Avoid use of hexadecimal escapes.
16762         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16763         instead of hexadecimal escapes.
16764
16765 2011-01-01  Jim Meyering  <meyering@redhat.com>
16766
16767         maint: new rule to update copyright year ranges
16768         * Makefile (update-copyright): New rule.
16769
16770         maint: indent with TABs in Makefile
16771         * Makefile: Expand leading sequences of spaces to TABs
16772
16773         version-etc: update the copyright year it reports
16774         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16775
16776 2010-12-31  Bruno Haible  <bruno@clisp.org>
16777
16778         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16779         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16780         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16781         zero.
16782
16783 2010-12-31  Bruno Haible  <bruno@clisp.org>
16784
16785         pwrite: Work around HP-UX 11.11 bug.
16786         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16787         works and set REPLACE_PWRITE if not.
16788         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16789         function.
16790         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16791
16792 2010-12-31  Bruno Haible  <bruno@clisp.org>
16793
16794         pread: Work around HP-UX 11 bugs.
16795         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16796         and set REPLACE_PREAD if not.
16797         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16798
16799 2010-12-31  Eric Blake  <eblake@redhat.com>
16800
16801         nl_langinfo: fix YESEXPR on Irix 6.5
16802         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16803         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16804         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16805         it.
16806
16807 2010-12-31  Bruno Haible  <bruno@clisp.org>
16808
16809         iconv: Document HP-UX 11 bug.
16810         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16811
16812 2010-12-31  Bruno Haible  <bruno@clisp.org>
16813
16814         ldexpl: Fix link error on HP-UX 11.
16815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16816         LDEXPL_LIBM, using $ISNANL_LIBM.
16817
16818 2010-12-31  Eric Blake  <eblake@redhat.com>
16819
16820         ftello: avoid compilation failure with SunStudio c89
16821         * lib/ftello.c (ftello): Use lseek, not llseek.
16822
16823         tests: avoid failing coreutils tests on cygwin
16824         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16825         (create_exe_shims_): Return 0 when skipping.
16826
16827 2010-12-31  Bruno Haible  <bruno@clisp.org>
16828
16829         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16830         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16831
16832 2010-12-31  Bruno Haible  <bruno@clisp.org>
16833
16834         waitpid: Fix link error in C++ mode.
16835         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16836
16837 2010-12-31  Bruno Haible  <bruno@clisp.org>
16838
16839         isnan: Use GCC built-ins when possible.
16840         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16841         __builtin_isnan.
16842         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16843         (isnan): Define using GCC built-ins for GCC >= 4.0.
16844
16845 2010-12-31  Bruno Haible  <bruno@clisp.org>
16846
16847         isnand: Fix mistake.
16848         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16849         __builtin_isnand.
16850
16851 2010-12-31  Bruno Haible  <bruno@clisp.org>
16852
16853         open: Avoid C++ error on HP-UX 11.
16854         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16855
16856 2010-12-31  Bruno Haible  <bruno@clisp.org>
16857
16858         time_r: Add missing declarations on HP-UX 11.
16859         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16860         instead of HAVE_LOCALTIME_R.
16861         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16862         HAVE_LOCALTIME_R always.
16863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16864         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16865         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16866         HAVE_LOCALTIME_R.
16867         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16868         * doc/posix-functions/localtime_r.texi: Likewise.
16869
16870 2010-12-29  Eric Blake  <eblake@redhat.com>
16871
16872         mountlist: tweak previous commit
16873         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16874         Reported by Paul Eggert.
16875
16876         mountlist: fix local drive detection on cygwin
16877         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16878         that works for cygwin.
16879
16880 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16881
16882         ftoastr, snprintf: ftoastr + snprintf module
16883         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16884         since the snprintf module now should be good enough here.
16885         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16886         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16887         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16888         GNULIB_SNPRINTF only for the test directory, and the latter
16889         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16890         seems to suffice by itself.
16891
16892 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16893
16894         alloca: one step towards thread-safety
16895         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16896         need for a static variable.  All callers changed.  This does not
16897         make the alloca replacement thread-safe, but it's one step.
16898
16899         tests: minor indenting change
16900         * tests/init.sh: Sync from coreutils housekeeping patch
16901         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16902         to keep lines within 80 columns.
16903
16904 2010-12-28  Jim Meyering  <meyering@redhat.com>
16905
16906         regex: don't infloop on persistent failing calloc
16907         * lib/regexec.c (build_trtable): Return failure indication upon
16908         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16909         In glibc, this was fixed for version 2.13:
16910         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16911
16912 2010-12-28  Bruno Haible  <bruno@clisp.org>
16913             Paul Eggert <eggert@cs.ucla.edu>
16914
16915         linkat: Make implementation robust against system behaviour variations.
16916         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16917         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16918         way, and to -2 if it needs a generic runtime test.
16919         * lib/linkat.c (solaris_optimized_link_immediate,
16920         solaris_optimized_link_follow): New functions.
16921         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16922         (check_same_link): Use it.
16923
16924 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16925
16926         New module 'unigbrk/base'.
16927         * modules/unigbrk/base: New file.
16928         * lib/unigbrk.in.h: New file.
16929
16930         New module 'unigbrk/uc-gbrk-prop'.
16931         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16932         * modules/unigbrk/uc-gbrk-prop: New file.
16933         * lib/unigbrk/gbrkprop.h: New file.
16934         * lib/unigbrk/uc-gbrk-prop.c: New file.
16935
16936         New module 'unigbrk/uc-is-grapheme-break'.
16937         * modules/unigbrk/uc-is-grapheme-break: New file.
16938         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16939         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16940         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16941         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16942         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16943
16944         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16945
16946 2010-12-27  Bruno Haible  <bruno@clisp.org>
16947
16948         linkat test: Avoid failure on Solaris 11 2010-11.
16949         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16950
16951 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16952
16953         utimens: work around glibc rounding bug on more platforms
16954         * lib/utimens.c (fdutimens): Work around rounding bug even if
16955         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16957
16958 2010-12-27  Bruno Haible  <bruno@clisp.org>
16959
16960         select tests: Improve comments.
16961         * tests/test-select.c (do_select): Add comments.
16962
16963 2010-12-27  Bruno Haible  <bruno@clisp.org>
16964
16965         select tests: Safer way of handling timeout.
16966         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16967         at every invocation.
16968
16969 2010-12-27  Bruno Haible  <bruno@clisp.org>
16970
16971         select tests: Use 'bool' where appropriate.
16972         * tests/test-select.c (connect_to_socket): Change argument type to
16973         'bool'.
16974
16975 2010-12-27  Bruno Haible  <bruno@clisp.org>
16976
16977         select tests: Use existing modules.
16978         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16979         (configure.ac): Don't test for unistd.h.
16980         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16981         declared in <unistd.h>.
16982
16983 2010-12-27  Bruno Haible  <bruno@clisp.org>
16984
16985         mbrtowc: Work around a Solaris 7 bug.
16986         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16987         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16988         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16989         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16990         MBRTOWC_NULL_ARG1_BUG.
16991         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16992         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16993         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16994         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16995
16996 2010-12-27  Jim Meyering  <meyering@redhat.com>
16997
16998         read-file.c: tweak syntax
16999         * lib/read-file.c (fread_file): Remove space after "*" in function
17000         definitions.
17001
17002 2010-12-27  Bruno Haible  <bruno@clisp.org>
17003
17004         times test: Avoid gcc warnings on OSF/1.
17005         * tests/test-times.c (main): Cast printf arguments from clock_t to
17006         'long int'.
17007
17008 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17009
17010         utimens: work around glibc rounding bug on older Linux kernels
17011         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17012         on Linux with a glibc whose utimes might not work, then work
17013         around a longstanding glibc bug involving rounding rather than
17014         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17016
17017 2010-12-26  Bruno Haible  <bruno@clisp.org>
17018
17019         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17020         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17021         _GL_CXXALIAS_SYS.
17022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17023
17024 2010-12-26  Bruno Haible  <bruno@clisp.org>
17025
17026         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17027         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17029         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17030         looking for the declaration.
17031         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17032         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17033         problem.
17034         * doc/posix-functions/inet_pton.texi: Likewise.
17035
17036 2010-12-26  Bruno Haible  <bruno@clisp.org>
17037
17038         arpa_inet: Use the common idioms with C++ support.
17039         * lib/arpa_inet.in.h: Include c++defs.h.
17040         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17041         support.
17042         * modules/arpa_inet (Depends-on): Add c++defs.
17043         (Makefile.am): Substitute the contents of c++defs.h.
17044         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17045         * modules/arpa_inet-c++-tests: New file.
17046         * tests/test-arpa_inet-c++.cc: New file.
17047
17048 2010-12-25  Bruno Haible  <bruno@clisp.org>
17049
17050         Fix more C++ link errors on Solaris 8.
17051         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17052         $(LIB_EACCESS).
17053         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17054         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17055         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17056         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17057         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17058
17059 2010-12-25  Bruno Haible  <bruno@clisp.org>
17060
17061         printf-posix: Fix link error when a non-GCC compiler is used.
17062         * lib/stdio.in.h (printf): When not using GCC, override printf
17063         correctly.
17064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17065
17066 2010-12-25  Bruno Haible  <bruno@clisp.org>
17067
17068         strerror_r-posix: Update doc.
17069         * doc/posix-functions/strerror_r.texi: Update doc about the return
17070         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17071
17072 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17073
17074         utimens: simplify the logic of the previous change
17075         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17076         This should not affect whether the test succeeds or fails.
17077
17078         utimens: configure better on hosts with NFS clock skew
17079         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17080         uses the clock of the local host.  It might use the clock of the
17081         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17083
17084 2010-12-25  Bruno Haible  <bruno@clisp.org>
17085
17086         ptsname test: Avoid failure on Solaris.
17087         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17088         open a pseudo-terminal; don't use BSD-style ptys.
17089         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17090
17091 2010-12-25  Bruno Haible  <bruno@clisp.org>
17092
17093         ptsname: Avoid ERANGE failure on some systems.
17094         * lib/ptsname.c (buffer): Increase size.
17095
17096 2010-12-25  Bruno Haible  <bruno@clisp.org>
17097
17098         rename, renameat: Avoid test failures at NFS mounted locations.
17099         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17100         so that subsequent mkdir calls succeed.
17101
17102 2010-12-25  Bruno Haible  <bruno@clisp.org>
17103
17104         iswblank: Fix C++ link error on Solaris 8.
17105         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17106         _GL_FUNCDECL_SYS.
17107
17108 2010-12-25  Bruno Haible  <bruno@clisp.org>
17109
17110         unistd: Fix C++ link error on Solaris 8.
17111         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17112
17113 2010-12-25  Bruno Haible  <bruno@clisp.org>
17114
17115         readlink doc: Mention an old glibc bug.
17116         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17117
17118 2010-12-25  Bruno Haible  <bruno@clisp.org>
17119
17120         fcntl-h: Fix for use of C++ on glibc systems.
17121         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17122         also on glibc systems in C++ mode.
17123         Reported by Gary V. Vaughan <gary@gnu.org>.
17124
17125 2010-12-25  Bruno Haible  <bruno@clisp.org>
17126
17127         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17128         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17129
17130 2010-12-25  Bruno Haible  <bruno@clisp.org>
17131
17132         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17133         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17134         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17135         test whether truncl works according to ISO C 99 with IEC 60559.
17136         * m4/truncl-ieee.m4: New file.
17137         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17138         m4/signbit.m4.
17139         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17140
17141 2010-12-25  Bruno Haible  <bruno@clisp.org>
17142
17143         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17144         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17145         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17146         test whether ceill works according to ISO C 99 with IEC 60559.
17147         * m4/ceill-ieee.m4: New file.
17148         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17149         m4/signbit.m4.
17150         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17151
17152 2010-12-25  Bruno Haible  <bruno@clisp.org>
17153
17154         Ensure all prerequisites of <wchar.h> are included.
17155         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17156         before <wchar.h>.
17157         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17158         gl_MBRLEN_NUL_RETVAL): Likewise.
17159         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17160         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17161         AC_FUNC_MBRTOWC): Likewise.
17162         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17163         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17164         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17165         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17166         Likewise.
17167         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17168         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17169         (gl_WCHAR_H): Improve comments.
17170         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17171
17172 2010-12-25  Bruno Haible  <bruno@clisp.org>
17173
17174         strtok_r: Fix C syntax error in autoconf macro.
17175         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17176         characters in test program.
17177
17178 2010-12-24  Bruno Haible  <bruno@clisp.org>
17179
17180         ceil, trunc, round: Fix gcc warnings.
17181         * lib/ceil.c (MIN): Undefine before redefining.
17182         * lib/trunc.c (MIN): Likewise.
17183         * lib/round.c (MIN): Likewise.
17184         Include <math.h> first.
17185
17186 2010-12-24  Bruno Haible  <bruno@clisp.org>
17187
17188         select tests: Avoid failures on OSF/1 5.1.
17189         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17190         failure of closing the last socket; it may fail with ECONNRESET.
17191
17192 2010-12-24  Eric Blake  <eblake@redhat.com>
17193
17194         stdint: avoid HP-UX 10.20 preprocessor bug
17195         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17196         than #if.
17197         * tests/test-floor2.c (main): Likewise.
17198         Reported by Peter O'Gorman.
17199
17200         pipe: make obsoletion transition easier
17201         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17202         * modules/pipe (Files): Include revived file.
17203         (Include): Drop reference, to mirror getdate's behavior.
17204
17205 2010-12-24  Bruno Haible  <bruno@clisp.org>
17206
17207         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17208         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17209         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17211
17212 2010-12-24  Bruno Haible  <bruno@clisp.org>
17213
17214         gethostname: Ensure declaration on NonStop Kernel.
17215         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17217
17218 2010-12-24  Bruno Haible  <bruno@clisp.org>
17219
17220         sys_select: Ensure all necessary types on NonStop Kernel.
17221         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17222         include <sys/time.h>.
17223         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17224         NonStop Kernel.
17225         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17226
17227 2010-12-24  Bruno Haible  <bruno@clisp.org>
17228
17229         sys_select: Remove unneeded include.
17230         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17231         have <sys/select.h>.
17232
17233 2010-12-24  Bruno Haible  <bruno@clisp.org>
17234
17235         gethostname: Provide a fallback for HOST_NAME_MAX.
17236         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17237         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17238         instead.
17239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17240
17241 2010-12-24  Bruno Haible  <bruno@clisp.org>
17242
17243         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17244         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17245         (SA_RESTART): Likewise.
17246         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17247
17248 2010-12-24  Bruno Haible  <bruno@clisp.org>
17249
17250         signal: Define NSIG.
17251         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17252         * tests/test-signal.c (nsig): New variable.
17253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17254
17255 2010-12-24  Bruno Haible  <bruno@clisp.org>
17256
17257         rename, renameat: Avoid test failures on OSF/1 5.1.
17258         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17259         alternative error codes.
17260         * tests/test-renameat.c (main): Likewise.
17261
17262 2010-12-24  Bruno Haible  <bruno@clisp.org>
17263
17264         *printf: Detect large precisions bug on Solaris 10/SPARC.
17265         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17266         by Paul Eggert.
17267         * tests/test-snprintf-posix.h (test_function): Add this test code here
17268         too.
17269         * tests/test-sprintf-posix.h (test_function): Likewise.
17270         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17271         * tests/test-vasprintf-posix.c (test_function): Likewise.
17272         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17273         around by gnulib.
17274         * doc/posix-functions/printf.texi: Likewise.
17275         * doc/posix-functions/snprintf.texi: Likewise.
17276         * doc/posix-functions/sprintf.texi: Likewise.
17277         * doc/posix-functions/vfprintf.texi: Likewise.
17278         * doc/posix-functions/vprintf.texi: Likewise.
17279         * doc/posix-functions/vsnprintf.texi: Likewise.
17280         * doc/posix-functions/vsprintf.texi: Likewise.
17281         * doc/posix-functions/dprintf.texi: Undo last commit.
17282         * doc/posix-functions/vdprintf.texi: Likewise.
17283
17284 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17285
17286         tests: port test-fdutimensat.c to Solaris 8
17287         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17288         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17289         On Solaris 8, it fails with errno == ENOSYS, because there is no
17290         futimens (so it can't use the fd), and there is no lutimens (so it
17291         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17292
17293         vsnprintf: make more consistent with snprintf; doc fixes
17294
17295         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17296         the byte count return problem was promoted from the snprintf-posix
17297         to the snprintf module.
17298         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17299         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17300         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17301         * tests/test-snprintf.c (main): Check the byte count returned.
17302         * tests/test-vsnprintf.c (main): Likewise.
17303
17304 2010-12-23  Eric Blake  <eblake@redhat.com>
17305
17306         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17307         * modules/sigpipe (License): Relax license.
17308
17309 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17310
17311         doc: document Solaris printf bug with large float precisions
17312         * doc/posix-functions/dprintf.texi (dprintf):
17313         * doc/posix-functions/fprintf.texi (fprintf):
17314         * doc/posix-functions/printf.texi (printf):
17315         * doc/posix-functions/snprintf.texi (snprintf):
17316         * doc/posix-functions/sprintf.texi (sprintf):
17317         * doc/posix-functions/vdprintf.texi (vdprintf):
17318         * doc/posix-functions/vfprintf.texi (vfprintf):
17319         * doc/posix-functions/vprintf.texi (vprintf):
17320         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17321         * doc/posix-functions/vsprintf.texi (vsprintf):
17322         Mention that these functions mishandle large floating point
17323         precisions on Solaris 10.  The same bug is also present in Solaris
17324         8, and I assume earlier.  This causes "cd gnulib-tests; make
17325         check" to fail on Solaris 8 (and I assume, later) when building
17326         the latest coreutils, in test-vasprintf-posix's call to
17327         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17328         the wide flavors (e.g., wprintf) so this patch just updates the
17329         documentation for the narrow ones.
17330
17331         test-posixtm.c: add two tests
17332         * tests/test-posixtm.c: Add two tests, to highlight the
17333         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17334         around this bug; this is merely to document it.
17335
17336 2010-12-22  Bruno Haible  <bruno@clisp.org>
17337
17338         getlogin_r: Work around portability problem on OSF/1.
17339         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17340         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17341         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17342         test for a truncated result.
17343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17344         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17345         * modules/getlogin_r (Depends-on): Add memchr.
17346         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17347
17348 2010-12-22  Bruno Haible  <bruno@clisp.org>
17349
17350         ptsname: Avoid test failure on OSF/1 5.1.
17351         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17352         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17353         (same_slave): New function.
17354         (main): Use it to compare ptsname's result with the expected file name.
17355
17356 2010-12-22  Bruno Haible  <bruno@clisp.org>
17357
17358         Port extended stdio modules to HP NonStop Kernel.
17359         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17360         macros.
17361         * lib/fbufmode.c: Update comments.
17362         * lib/fflush.c: Likewise.
17363         * lib/fpurge.c: Likewise.
17364         * lib/freadable.c: Likewise.
17365         * lib/freadahead.c: Likewise.
17366         * lib/freading.c: Likewise.
17367         * lib/freadptr.c: Likewise.
17368         * lib/freadseek.c: Likewise.
17369         * lib/fseeko.c: Likewise.
17370         * lib/fseterr.c: Likewise.
17371         * lib/fwritable.c: Likewise.
17372         * lib/fwriting.c: Likewise.
17373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17374
17375 2010-12-22  Bruno Haible  <bruno@clisp.org>
17376
17377         ttyname_r: Work around bug on OSF/1 5.1.
17378         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17379         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17380         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17381         present.
17382         * lib/ttyname_r.c (ttyname_r): Update comments.
17383
17384 2010-12-22  Bruno Haible  <bruno@clisp.org>
17385
17386         round: Implement result sign according to IEEE 754.
17387         * lib/round.c (MIN, MINUS_ZERO): New macros.
17388         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17389         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17390         * tests/test-round-ieee.c (main): Likewise.
17391         * tests/test-roundl-ieee.c (main): Likewise.
17392
17393         trunc: Implement result sign according to IEEE 754.
17394         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17395         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17396         * tests/test-trunc2.c: Include minus-zero.h.
17397         (MINUS_ZERO): New macro.
17398         (trunc_reference): Keep in sync with lib/trunc.c.
17399         * tests/test-truncf2.c: Include minus-zero.h.
17400         (MINUS_ZERO): New macro.
17401         (truncf_reference): Keep in sync with lib/trunc.c.
17402         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17403         * tests/test-trunc-ieee.c (main): Likewise.
17404         * tests/test-truncl-ieee.c (main): Likewise.
17405
17406         ceil: Implement result sign according to IEEE 754.
17407         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17408         (FUNC): Return -0.0 for -1 < x < 0.
17409         * tests/test-ceil2.c: Include minus-zero.h.
17410         (MINUS_ZERO): New macro.
17411         (ceil_reference): Keep in sync with lib/ceil.c.
17412         * tests/test-ceilf2.c: Include minus-zero.h.
17413         (MINUS_ZERO): New macro.
17414         (ceilf_reference): Keep in sync with lib/ceil.c.
17415         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17416         * tests/test-ceil-ieee.c (main): Likewise.
17417         * tests/test-ceill-ieee.c (main): Likewise.
17418
17419         floor: Implement result sign according to IEEE 754.
17420         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17421         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17422         * tests/test-floorf2.c (floorf_reference): Likewise.
17423         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17424         * tests/test-floor-ieee.c (main): Likewise.
17425         * tests/test-floorl-ieee.c (main): Likewise.
17426
17427 2010-12-22  Bruno Haible  <bruno@clisp.org>
17428
17429         getaddrinfo: Update doc.
17430         * doc/posix-functions/gai_strerror.texi: Return type is also different
17431         on AIX and HP-UX.
17432
17433 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17434
17435         getaddrinfo, inet_ntop: Update doc for Solaris.
17436         * doc/posix-functions/gai_strerror.texi: Return type is also an
17437         issue on Solaris 9 and earlier.
17438         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17439         on Solaris 10 and earlier.
17440
17441 2010-12-21  Bruno Haible  <bruno@clisp.org>
17442
17443         New module 'roundl-ieee'.
17444         * modules/roundl-ieee: New file.
17445         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17446         test whether roundl works according to ISO C 99 with IEC 60559.
17447         * m4/roundl-ieee.m4: New file.
17448         * modules/roundl-ieee-tests: New file.
17449         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17450         * tests/test-roundl.c (main): Remove signbit tests.
17451         * modules/roundl-tests (Depends-on): Remove signbit.
17452         * doc/posix-functions/roundl.texi: Mention the new module.
17453
17454 2010-12-21  Bruno Haible  <bruno@clisp.org>
17455
17456         New module 'truncl-ieee'.
17457         * modules/truncl-ieee: New file.
17458         * modules/truncl-ieee-tests: New file.
17459         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17460         * tests/test-truncl.c (main): Remove signbit tests.
17461         * modules/truncl-tests (Depends-on): Remove signbit.
17462         * doc/posix-functions/truncl.texi: Mention the new module.
17463
17464 2010-12-21  Bruno Haible  <bruno@clisp.org>
17465
17466         New module 'ceill-ieee'.
17467         * modules/ceill-ieee: New file.
17468         * modules/ceill-ieee-tests: New file.
17469         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17470         * tests/test-ceill.c (main): Remove signbit tests.
17471         * modules/ceill-tests (Depends-on): Remove signbit.
17472         * doc/posix-functions/ceill.texi: Mention the new module.
17473
17474 2010-12-21  Bruno Haible  <bruno@clisp.org>
17475
17476         New module 'floorl-ieee'.
17477         * modules/floorl-ieee: New file.
17478         * modules/floorl-ieee-tests: New file.
17479         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17480         * tests/test-floorl.c (main): Remove signbit tests.
17481         * modules/floorl-tests (Depends-on): Remove signbit.
17482         * doc/posix-functions/floorl.texi: Mention the new module.
17483
17484 2010-12-21  Bruno Haible  <bruno@clisp.org>
17485
17486         New module 'round-ieee'.
17487         * modules/round-ieee: New file.
17488         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17489         whether round works according to ISO C 99 with IEC 60559.
17490         * m4/round-ieee.m4: New file.
17491         * modules/round-ieee-tests: New file.
17492         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17493         * tests/test-round1.c (main): Remove signbit tests.
17494         * modules/round-tests (Depends-on): Remove 'signbit'.
17495         * doc/posix-functions/round.texi: Mention the new module.
17496
17497 2010-12-21  Bruno Haible  <bruno@clisp.org>
17498
17499         New module 'trunc-ieee'.
17500         * modules/trunc-ieee: New file.
17501         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17502         whether trunc works according to ISO C 99 with IEC 60559.
17503         * m4/trunc-ieee.m4: New file.
17504         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17506         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17507         * modules/trunc-ieee-tests: New file.
17508         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17509         * tests/test-trunc1.c (main): Remove signbit tests.
17510         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17511         * doc/posix-functions/trunc.texi: Mention the new module.
17512
17513 2010-12-21  Bruno Haible  <bruno@clisp.org>
17514
17515         New module 'ceil-ieee'.
17516         * modules/ceil-ieee: New file.
17517         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17518         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17519         ISO C 99 with IEC 60559.
17520         * m4/ceil-ieee.m4: New file.
17521         * modules/ceil (Files): Add lib/ceil.c.
17522         (Depends-on): Add 'float'.
17523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17524         * lib/math.in.h (ceil): New declaration.
17525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17526         REPLACE_CEIL.
17527         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17528         * modules/ceil-ieee-tests: New file.
17529         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17530         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17531         * doc/posix-functions/ceil.texi: Mention the new module.
17532
17533 2010-12-21  Bruno Haible  <bruno@clisp.org>
17534
17535         New module 'floor-ieee'.
17536         * modules/floor-ieee: New file.
17537         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17538         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17539         ISO C 99 with IEC 60559.
17540         * m4/floor-ieee.m4: New file.
17541         * modules/floor (Files): Add lib/floor.c.
17542         (Depends-on): Add 'float'.
17543         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17544         * lib/math.in.h (floor): New declaration.
17545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17546         REPLACE_FLOOR.
17547         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17548         * modules/floor-ieee-tests: New file.
17549         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17550         * tests/test-math-c++.cc: Check the signature of 'floor'.
17551         * doc/posix-functions/floor.texi: Mention the new module.
17552
17553 2010-12-21  Bruno Haible  <bruno@clisp.org>
17554
17555         New module 'roundf-ieee'.
17556         * modules/roundf-ieee: New file.
17557         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17558         test whether roundf works according to ISO C 99 with IEC 60559.
17559         * m4/roundf-ieee.m4: New file.
17560         * modules/roundf-ieee-tests: New file.
17561         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17562         * tests/test-roundf1.c (main): Remove signbit tests.
17563         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17564         * doc/posix-functions/roundf.texi: Mention the new module.
17565
17566 2010-12-21  Bruno Haible  <bruno@clisp.org>
17567
17568         New module 'truncf-ieee'.
17569         * modules/truncf-ieee: New file.
17570         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17571         test whether truncf works according to ISO C 99 with IEC 60559.
17572         * m4/truncf-ieee.m4: New file.
17573         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17575         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17576         * modules/truncf-ieee-tests: New file.
17577         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17578         * tests/test-truncf1.c (main): Remove signbit tests.
17579         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17580         * doc/posix-functions/truncf.texi: Mention the new module.
17581
17582 2010-12-21  Bruno Haible  <bruno@clisp.org>
17583
17584         New module 'ceilf-ieee'.
17585         * modules/ceilf-ieee: New file.
17586         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17587         test whether ceilf works according to ISO C 99 with IEC 60559.
17588         * m4/ceilf-ieee.m4: New file.
17589         * modules/ceilf-ieee-tests: New file.
17590         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17591         * tests/test-ceilf1.c (main): Remove signbit tests.
17592         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17593         * doc/posix-functions/ceilf.texi: Mention the new module.
17594
17595 2010-12-21  Bruno Haible  <bruno@clisp.org>
17596
17597         New module 'floorf-ieee'.
17598         * modules/floorf-ieee: New file.
17599         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17600         test whether floorf works according to ISO C 99 with IEC 60559.
17601         * m4/floorf-ieee.m4: New file.
17602         * modules/floorf-ieee-tests: New file.
17603         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17604         * tests/test-floorf1.c (main): Remove signbit tests.
17605         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17606         * doc/posix-functions/floorf.texi: Mention the new module.
17607
17608 2010-12-21  Bruno Haible  <bruno@clisp.org>
17609
17610         Support for minus zero in autoconf macros.
17611         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17612         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17613         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17614         * tests/minus-zero.h: Update comments.
17615
17616 2010-12-21  Bruno Haible  <bruno@clisp.org>
17617
17618         Tests for module 'ceil'.
17619         * modules/ceil-tests: New file.
17620         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17621         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17622
17623 2010-12-21  Bruno Haible  <bruno@clisp.org>
17624
17625         Tests for module 'floor'.
17626         * modules/floor-tests: New file.
17627         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17628         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17629
17630 2010-12-21  Bruno Haible  <bruno@clisp.org>
17631
17632         math: Fix indentation.
17633         * lib/math.in.h (floorf): Fix indentation.
17634
17635 2010-12-21  Bruno Haible  <bruno@clisp.org>
17636
17637         Fix cross-compilation guesses on Solaris.
17638         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17639         not match "solaris2.10".
17640         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17641         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17642         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17643
17644 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17645
17646         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17647         This fixes a problem observed with the latest coreutils snapshot
17648         that caused a test to fail on Solaris 8.  src/csplit.c's call
17649         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17650         earlier, instead of returning the number of bytes that would have
17651         been generated; this causes csplit to incorrectly report memory
17652         exhaustion.
17653         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17654         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17655         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17656         comments to match.
17657         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17658         Fix typo in matching older versions of Solaris: "solaris2.10"
17659         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17660         only for guessing while cross-compiling.
17661         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17662
17663 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         ftoastr: fix comment again
17666         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17668         Also, simplify example a bit by using flags = 0.
17669
17670 2010-12-20  Bruno Haible  <bruno@clisp.org>
17671
17672         round*, trunc*: Update documentation regarding glibc.
17673         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17674         * doc/posix-functions/round.texi: Likewise.
17675         * doc/posix-functions/roundl.texi: Likewise.
17676         * doc/posix-functions/truncf.texi: Likewise.
17677         * doc/posix-functions/trunc.texi: Likewise.
17678         * doc/posix-functions/truncl.texi: Likewise.
17679
17680 2010-12-20  Bruno Haible  <bruno@clisp.org>
17681
17682         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17683         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17684         * doc/posix-functions/round.texi: Likewise.
17685         * doc/posix-functions/roundl.texi: Likewise.
17686
17687 2010-12-20  Bruno Haible  <bruno@clisp.org>
17688
17689         ttyname_r: Add missing declaration on HP-UX 11.
17690         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17691         HAVE_TTYNAME_R.
17692         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17693         declared. Set HAVE_TTYNAME_R always.
17694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17695         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17696         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17697         HAVE_TTYNAME_R.
17698         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17699
17700 2010-12-20  Bruno Haible  <bruno@clisp.org>
17701
17702         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17703         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17704         * doc/posix-functions/getlogin_r.texi: Likewise.
17705         * tests/test-getlogin.c: Include <errno.h>.
17706         (main): Avoid test failure on HP-UX 11.11.
17707         * tests/test-getlogin_r.c (main): Likewise.
17708
17709 2010-12-20  Bruno Haible  <bruno@clisp.org>
17710
17711         getlogin_r: Add missing declaration on HP-UX 11.
17712         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17713         declared also when it exists as a function.
17714         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17715
17716 2010-12-20  Bruno Haible  <bruno@clisp.org>
17717
17718         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17719         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17720         through wcrtomb.
17721
17722 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17723
17724         ftoastr: fix comment
17725         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17727
17728 2010-12-19  Bruno Haible  <bruno@clisp.org>
17729
17730         isnan: Ensure it is a macro.
17731         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17732         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17733         Solaris.
17734
17735 2010-12-19  Bruno Haible  <bruno@clisp.org>
17736
17737         ldexpl test: Fix link error on OSF/1 5.1.
17738         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17739
17740 2010-12-19  Bruno Haible  <bruno@clisp.org>
17741
17742         wctype: Make it work in C++ mode on OSF/1 5.1.
17743         * lib/wctype.in.h (iswblank): Declare but not define here.
17744         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17745         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17746         * modules/wctype (Files): Add lib/iswblank.c.
17747
17748 2010-12-19  Bruno Haible  <bruno@clisp.org>
17749
17750         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17751         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17752         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17753
17754 2010-12-19  Bruno Haible  <bruno@clisp.org>
17755
17756         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17758         _POSIX_PII_SOCKET.
17759         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17760         * doc/posix-functions/recvfrom.texi: Likewise.
17761         * doc/posix-functions/send.texi: Likewise.
17762         * doc/posix-functions/sendto.texi: Likewise.
17763
17764 2010-12-19  Bruno Haible  <bruno@clisp.org>
17765
17766         tcgetsid: Add missing declaration on OSF/1 5.1.
17767         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17768         HAVE_TCGETSID.
17769         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17770         Don't set HAVE_TCGETSID.
17771         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17772         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17773         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17774         HAVE_TCGETSID.
17775         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17776
17777 2010-12-19  Bruno Haible  <bruno@clisp.org>
17778
17779         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17780         * lib/stdio.in.h: During the include_next statement, let recursive
17781         includes of this file include only the system header file.
17782
17783 2010-12-19  Bruno Haible  <bruno@clisp.org>
17784
17785         iconv_open: Fix regression from 2010-12-04.
17786         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17787         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17788
17789 2010-12-19  Bruno Haible  <bruno@clisp.org>
17790
17791         stdbool test: Avoid a gcc warning.
17792         * tests/test-stdbool.c (main): Fail if e1 is false.
17793         Reported by Jim Meyering.
17794
17795 2010-12-19  Jim Meyering  <meyering@redhat.com>
17796
17797         setenv: restore to working order
17798         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17799         mistakenly removed.
17800         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17801         HAVE_SETENV.
17802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17803         HAVE_SETENV.
17804
17805 2010-12-19  Bruno Haible  <bruno@clisp.org>
17806
17807         Document some different function declarations on OSF/1 5.1.
17808         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17809         * doc/posix-functions/inet_ntop.texi: Likewise.
17810         * doc/posix-functions/gethostname.texi: Likewise.
17811         * lib/unistd.in.h (gethostname): Update comment.
17812
17813 2010-12-19  Bruno Haible  <bruno@clisp.org>
17814
17815         doc: Mention vasprintf-posix module.
17816         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17817         the 'vasprintf-posix' module.
17818         * doc/glibc-functions/vasprintf.texi: Likewise.
17819
17820 2010-12-19  Bruno Haible  <bruno@clisp.org>
17821
17822         unsetenv: Add missing declaration on OSF/1 5.1.
17823         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17825         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17827         not HAVE_UNSETENV.
17828         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17829         HAVE_UNSETENV.
17830         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17831
17832 2010-12-19  Bruno Haible  <bruno@clisp.org>
17833
17834         setenv: Add missing declaration on OSF/1 5.1.
17835         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17836         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17837         declared. Don't set HAVE_SETENV.
17838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17839         not HAVE_SETENV.
17840         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17841         HAVE_SETENV.
17842         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17843
17844 2010-12-19  Bruno Haible  <bruno@clisp.org>
17845
17846         nl_langinfo tests: Avoid gcc warning.
17847         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17848
17849 2010-12-19  Bruno Haible  <bruno@clisp.org>
17850
17851         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17852         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17853         _GL_CXXALIAS_SYS.
17854
17855 2010-12-19  Bruno Haible  <bruno@clisp.org>
17856
17857         stdbool: Relax test.
17858         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17859         address to 'bool' work in static initializer, for compilers other than
17860         GCC.
17861
17862 2010-12-19  Bruno Haible  <bruno@clisp.org>
17863
17864         ftello: Add missing declaration on OSF/1 5.1.
17865         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17866         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17868         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17869         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17870
17871 2010-12-19  Bruno Haible  <bruno@clisp.org>
17872
17873         fseeko: Add missing declaration on OSF/1 5.1.
17874         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17877         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17878         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17879
17880 2010-12-19  Bruno Haible  <bruno@clisp.org>
17881
17882         fchdir: Add missing declaration on OSF/1 5.1.
17883         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17886         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17887         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17888
17889 2010-12-19  Bruno Haible  <bruno@clisp.org>
17890
17891         relocatable-prog-wrapper: Separate from relocatable-prog.
17892         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17893         uninstall-relocwrapper rule here.
17894         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17895         Reported by Ian Beckwith <ianb@erislabs.net>.
17896
17897 2010-12-19  Bruno Haible  <bruno@clisp.org>
17898
17899         unistr/u8-mbsnlen: Add missing dependency.
17900         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17901         Reported by Ian Beckwith <ianb@erislabs.net>.
17902
17903 2010-12-19  Bruno Haible  <bruno@clisp.org>
17904
17905         iconv: Make it possible again to use this module without 'iconv-h'.
17906         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17907         if it is not defined.
17908         Reported by Ian Beckwith <ianb@erislabs.net>.
17909
17910 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17911
17912         acl: port to Solaris 8 when copying from tmpfs to ufs
17913         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17914         error number.  Problem observed on Solaris 8 with latest
17915         coreutils, with "mv A B", where A is on a tmpfs file system and B
17916         is on a ufs file system.  This caused coreutils' mv/part-symlink
17917         test to fail.
17918
17919         tests: set fail=0 at start
17920         * tests/init.sh (setup_): Move fail=0 initialization here ...
17921         (mktempd_): ... from here, so that tests can rely on fail being
17922         set to 0 initially.  This fixes a problem in coreutils; see:
17923         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17924
17925 2010-12-18  Bruno Haible  <bruno@clisp.org>
17926
17927         memmem-simple: Stylistic changes.
17928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17929         Fix preprocessor directive indentation.
17930
17931 2010-12-15  Pádraig Brady <P@draigBrady.com>
17932
17933         memmem, memmem-simple: reorganize and expand empty needle check
17934         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17935         functional checks to memmem-simple so that one has a fully functional
17936         memmem by using just this module.
17937         Restrict the performance only check to the memmem module.
17938         Also expand the empty needle check to ensure the correct
17939         pointer is returned, not just a non NULL pointer.
17940         * doc/glibc-functions/memmem.texi: Rearrange the portability
17941         documentation to correlate with the rearranged checks.
17942         Clarify exactly how the memmem and memmem-simple modules
17943         relate to each other.
17944
17945 2010-12-15  Pádraig Brady <P@draigBrady.com>
17946             Bruno Haible  <bruno@clisp.org>
17947
17948         Improve cross-compilation guesses for uClibc.
17949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17950         that uClibc does not have the glibc bug.
17951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17952         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17953
17954 2010-12-14  Eric Blake  <eblake@redhat.com>
17955
17956         configmake: provide fallbacks for oldest supported autotools
17957         * m4/configmake.m4: New file.
17958         * modules/configmake (Files): Ship it.
17959         (configure.ac): Use it to guarantee fallbacks.
17960
17961 2010-12-13  Pádraig Brady <P@draigBrady.com>
17962
17963         read-file: Improve handling of large files
17964         * lib/read-file.c (fread_file): Minimize realloc()s
17965         for regular files, and better manage sizes around SIZE_MAX.
17966
17967 2010-12-13  Eric Blake  <eblake@redhat.com>
17968
17969         cloexec, fcntl: relax license
17970         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17971         consent from all contributors.
17972         * modules/fcntl (License): Likewise.
17973
17974 2010-12-10  Bruno Haible  <bruno@clisp.org>
17975
17976         Tests for module 'pipe-posix'.
17977         * modules/pipe-posix-tests: New file.
17978         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17979
17980 2010-12-10  Bruno Haible  <bruno@clisp.org>
17981
17982         pipe-posix: Make it work in C++ mode.
17983         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17984         (pipe): Use common idiom, not a macro definition.
17985         * lib/pipe.c: New file.
17986         * m4/pipe.m4: New file.
17987         * modules/pipe-posix (Description): Enhance.
17988         (Files): Add lib/pipe.c, m4/pipe.m4.
17989         (configure.ac): Invoke gl_FUNC_PIPE.
17990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17991         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17992         * tests/test-unistd-c++.cc: Check the signature of pipe.
17993
17994 2010-12-10  Bruno Haible  <bruno@clisp.org>
17995
17996         Rename module 'pipe' to 'spawn-pipe'.
17997         * modules/spawn-pipe: New file, renamed from modules/pipe.
17998         (Files, configure.ac, Makefile.am): Update.
17999         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18000         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18001         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18002         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18003         "spawn-pipe.h" instead of "pipe.h".
18004         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18005         to gl_SPAWN_PIPE.
18006         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18007         (Files, Makefile.am): Update.
18008         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18009         Update.
18010         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18011         Include "spawn-pipe.h" instead of "pipe.h".
18012         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18013         * lib/javacomp.c: Likewise.
18014         * lib/javaversion.c: Likewise.
18015         * lib/pipe-filter-gi.c: Likewise.
18016         * lib/pipe-filter-ii.c: Likewise.
18017         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18018         * modules/javacomp (Depends-on): Likewise.
18019         * modules/javaversion (Depends-on): Likewise.
18020         * modules/pipe-filter-gi (Depends-on): Likewise.
18021         * modules/pipe-filter-ii (Depends-on): Likewise.
18022         * MODULES.html.sh (Executing programs): Update.
18023         * NEWS: Mention the change.
18024
18025 2010-12-10  Eric Blake  <eblake@redhat.com>
18026
18027         pipe-posix: new module
18028         * modules/pipe-posix: New file.
18029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18030         (gl_UNISTD_H): Check for declaration.
18031         * modules/unistd (Makefile.am): Substitute it.
18032         * lib/unistd.in.h (pipe): Provide it for mingw.
18033         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18034         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18035
18036 2010-12-07  Bruno Haible  <bruno@clisp.org>
18037
18038         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18039         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18040         u8_strcmp_gnu.
18041         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18042
18043 2010-12-06  Bruno Haible  <bruno@clisp.org>
18044
18045         Update internal documentation.
18046         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18047
18048 2010-12-04  Bruno Haible  <bruno@clisp.org>
18049
18050         Put more information about failed tests into the test return codes.
18051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18052         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18053         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18055         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18057         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18058         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18059         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18062         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18063         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18064         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18066         returns a bit mask.
18067         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18068         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18069         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18070         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18071         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18072         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18075         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18076         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18078         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18081         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18082         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18083         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18084         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18085         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18086         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18088         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18090         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18091         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18092         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18093         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18094         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18095         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18096         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18097         gl_PRINTF_PRECISION): Likewise.
18098         * m4/regex.m4 (gl_REGEX): Likewise.
18099         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18102         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18106         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18107         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18108         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18109         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18110         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18111         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18112         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18113         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18115         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18118         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18119         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18120         enumerated value.
18121         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18122
18123 2010-12-04  Bruno Haible  <bruno@clisp.org>
18124
18125         Update for Solaris 11 2010-11.
18126         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18127         Express, released in November 2010.
18128
18129 2010-12-04  Bruno Haible  <bruno@clisp.org>
18130
18131         nproc: Relax license.
18132         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18133         and Paul Eggert.
18134         Requested by Ludovic Courtès <ludo@gnu.org>.
18135
18136 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18137
18138         utimecmp: fine-grained src to nearby coarse-grained dest
18139
18140         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18141         and the source is on a file system with higher-resolution time
18142         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18143         not work, and the time stamps are close together, the algorithm to
18144         determine the exact resolution from the read-back mtime was buggy:
18145         it had a "!=" where it should have had an "==".  This bug has been
18146         in the code ever since it was introduced to gnulib.
18147         Problem reported by Dan Jacobson in
18148         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18149
18150 2010-11-30  Bruno Haible  <bruno@clisp.org>
18151
18152         strerror_r-posix: Fix autoconf test.
18153         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18154
18155 2010-11-28  Bruno Haible  <bruno@clisp.org>
18156             Paul Eggert  <eggert@cs.ucla.edu>
18157
18158         Tests for module 'getdomainname'.
18159         * modules/getdomainname-tests: New file.
18160         * tests/test-getdomainname.c: New file, based on
18161         tests/test-gethostname.c.
18162
18163 2010-11-28  Bruno Haible  <bruno@clisp.org>
18164             Paul Eggert  <eggert@cs.ucla.edu>
18165
18166         getdomainname: Use the system function when possible.
18167         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18168         (getdomainname): Replace if needed. Provide the declaration if it is
18169         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18170         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18171         (getdomainname): When the system has getdomainname, call the system
18172         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18173         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18174         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18175         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18176         the function if its second argument is of type 'int' or if it is found
18177         in libnsl.
18178         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18179         <sys/systeminfo.h> and sysinfo().
18180         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18182         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18183         HAVE_GETDOMAINNAME.
18184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18185         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18186         * doc/glibc-functions/getdomainname.texi: Document the problems with
18187         the getdomainname declaration.
18188
18189 2010-11-28  Bruno Haible  <bruno@clisp.org>
18190
18191         sys_socket: Ensure ss_family field on AIX.
18192         * lib/sys_socket.in.h (ss_family): New macro definition.
18193         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18194         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18195         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18196         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18197         * modules/sys_socket (Makefile.am): Substitute
18198         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18199         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18200
18201 2010-11-27  Bruno Haible  <bruno@clisp.org>
18202
18203         readline: Improve configure output.
18204         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18205         "checking for readline..." result understandable.
18206
18207 2010-11-27  Bruno Haible  <bruno@clisp.org>
18208
18209         *printf-posix: Detect a bug on Solaris 10/x86.
18210         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18211         for floating-point output.
18212         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18213         directive.
18214         * tests/test-snprintf-posix.h (test_function): Likewise.
18215         * tests/test-sprintf-posix.h (test_function): Likewise.
18216         * tests/test-vasprintf-posix.c (test_function): Likewise.
18217         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18218         * doc/posix-functions/printf.texi: Likewise.
18219         * doc/posix-functions/snprintf.texi: Likewise.
18220         * doc/posix-functions/sprintf.texi: Likewise.
18221         * doc/posix-functions/vfprintf.texi: Likewise.
18222         * doc/posix-functions/vprintf.texi: Likewise.
18223         * doc/posix-functions/vsnprintf.texi: Likewise.
18224         * doc/posix-functions/vsprintf.texi: Likewise.
18225         * doc/glibc-functions/obstack_printf.texi: Likewise.
18226         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18227
18228 2010-11-27  Bruno Haible  <bruno@clisp.org>
18229
18230         Fix link error when module libunistring-optional is in use.
18231         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18232         * modules/striconveha-tests (Makefile.am): Likewise.
18233
18234 2010-11-27  Bruno Haible  <bruno@clisp.org>
18235
18236         regex: Mention link dependencies.
18237         * modules/regex (Link): New section.
18238         * modules/rpmatch (Link): Likewise.
18239         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18240
18241 2010-11-27  Bruno Haible  <bruno@clisp.org>
18242
18243         ftoastr: Fix compilation error on Solaris.
18244         * lib/ftoastr.c: Include <config.h>.
18245
18246 2010-11-27  Bruno Haible  <bruno@clisp.org>
18247
18248         getloadavg: Update documentation.
18249         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18250
18251 2010-11-27  Bruno Haible  <bruno@clisp.org>
18252
18253         sys_socket: Fix test whether the functions are declared.
18254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18255         not <sys/select.h>.
18256
18257 2010-11-27  Bruno Haible  <bruno@clisp.org>
18258
18259         getpass: Make sure to get system declaration on some platforms.
18260         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18261         gl_USE_SYSTEM_EXTENSIONS.
18262         * modules/getpass (Depends-on): Add extensions.
18263
18264 2010-11-26  Bruno Haible  <bruno@clisp.org>
18265
18266         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18267         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18268         'iconv' module is present.
18269         (ICONV_CONST): New macro.
18270         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18271         ICONV_CONST.
18272         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18273         set ICONV_CONST.
18274         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18275         here.
18276         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18277         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18278         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18279         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18280         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18281         present.
18282
18283 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18284
18285         ftoastr: comment fix
18286         * lib/ftoastr.c: "little" -> "little or no" in comment
18287
18288 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18289
18290         stdint: port to GCC 4.3 + OSX + Octave
18291         On this platform, stdint.h is buggy and defines int64_t to long
18292         long int.  The replacement defined it to long int, causing
18293         problems with C++ style name mangling.  Instead, trust the system
18294         definition if INT64_MAX is defined, and likewise for the unsigned
18295         variant.   Problem reported by Jarno Rajahalme in
18296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18297         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18298         and don't mess with int64_t and INT64_MAX in this case.
18299         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18300
18301 2010-11-24  Bruno Haible  <bruno@clisp.org>
18302
18303         doc: Corrections regarding MacOS X 10.4 and 10.5.
18304         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18305         MacOS X.
18306         Reported by Simon Josefsson.
18307
18308 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18309
18310         Uninstall ".bin" files installed by relocwrapper.
18311         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18312         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18313         unless it is already there.
18314
18315 2010-11-21  Bruno Haible  <bruno@clisp.org>
18316
18317         Update for NetBSD 5.0.
18318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18319         NetBSD; the test fails on NetBSD 5.0.
18320         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18321         about NetBSD.
18322
18323 2010-11-21  Bruno Haible  <bruno@clisp.org>
18324
18325         Update for HP-UX 11.23 and HP-UX 11.31.
18326         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18327         HP-UX.
18328
18329 2010-11-21  Bruno Haible  <bruno@clisp.org>
18330
18331         Update for MacOS X 10.5.
18332         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18333         MacOS X; the test fails on MacOS X 10.5.8.
18334         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18335         about MacOS X.
18336
18337 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18338
18339         bootstrap: add bootstrap_sync option.
18340         See discussion at
18341         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18342         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18343         * build-aux/bootstrap: Accept --bootstrap-sync to update
18344         bootstrap if it is not identical to the local gnulib's
18345         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18346         enable this by default.  Accept --no-bootstrap-sync to disable
18347         it.
18348
18349 2010-11-20  Bruno Haible  <bruno@clisp.org>
18350
18351         Ensure that <features.h> is included before __GLIBC__ is tested.
18352         * lib/printf-parse.h: Include <features.h>.
18353         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18354         Reported by Mike Frysinger <vapier@gentoo.org>.
18355
18356         Ensure that <features.h> is included before __GLIBC__ is tested.
18357         * lib/wchar.in.h: Include <features.h>.
18358         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18359         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18360         Reported by Mike Frysinger <vapier@gentoo.org>.
18361
18362         Ensure that <features.h> is included before __GLIBC__ is tested.
18363         * lib/arpa_inet.in.h: Include <features.h>.
18364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18365         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18366         Reported by Mike Frysinger <vapier@gentoo.org>.
18367
18368         Ensure that <features.h> is included before __GLIBC__ is tested.
18369         * build-aux/link-warning.h: Include <features.h>.
18370         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18371         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18372         Reported by Mike Frysinger <vapier@gentoo.org>.
18373
18374         Ensure that <features.h> is included before __GLIBC__ is tested.
18375         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18376         Reported by Mike Frysinger <vapier@gentoo.org>.
18377
18378 2010-11-20  Bruno Haible  <bruno@clisp.org>
18379
18380         memmem: Fix autoconf test.
18381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18382
18383 2010-11-20  Bruno Haible  <bruno@clisp.org>
18384
18385         Port to uClibc.
18386         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18387         * lib/fcntl.in.h: Likewise.
18388         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18389         * lib/mbrtowc.c (mbrtowc): Likewise.
18390         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18391         * lib/strerror_r.c: Likewise.
18392         * lib/unistr/u8-strnlen.c: Likewise.
18393         * lib/vasnprintf.c (decimal_point_char): Likewise.
18394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18395         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18397         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18398         * tests/test-sigaction.c (handler, main): Likewise.
18399         * lib/freading.h: Treat uClibc like a non-glibc platform.
18400         * lib/freading.c: Likewise.
18401         * lib/gettext.h: Likewise.
18402         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18403         Likewise.
18404         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18405         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18406         * lib/propername.c (proper_name_utf8): Likewise.
18407         * lib/spawn.in.h: Likewise.
18408         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18409         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18410         mem_cd_iconveh_internal): Likewise.
18411         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18412         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18413         strstr, strcasestr): Likewise.
18414         * lib/unicodeio.c (unicode_to_mb): Likewise.
18415         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18416         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18417         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18418         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18419         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18420         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18421         * lib/unistr/u8-stpncpy.c: Likewise.
18422         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18423         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18424         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18426         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18429         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18431         Likewise.
18432         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18433         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18434         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18437         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18438         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18439         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18440         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18441         * tests/test-striconveha.c (main): Likewise.
18442         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18443         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18444         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18445         * doc/posix-functions/getline.texi: Likewise.
18446         Reported by Mike Frysinger <vapier@gentoo.org>.
18447
18448 2010-11-20  Bruno Haible  <bruno@clisp.org>
18449
18450         nproc: Fix condition.
18451         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18452         HAVE_PTHREAD_AFFINITY_NP.
18453
18454 2010-11-20  Bruno Haible  <bruno@clisp.org>
18455
18456         Fix a comment.
18457         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18458
18459 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         ftoastr: don't assume snprintf
18462         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18463         Implement a subset of snprintf here, by using sprintf safely.
18464         * modules/ftoastr (Depends-on): Remove snprintf.
18465
18466 2010-11-19  Jim Meyering  <meyering@redhat.com>
18467
18468         test-rename.h: fix compilation failure
18469         * tests/test-rename.h (test_rename): Add omitted "}".
18470
18471 2010-11-17  Jim Meyering  <meyering@redhat.com>
18472
18473         maint.mk: add a URL discussing the no-@acronym policy
18474         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18475
18476 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18477
18478         ftoastr: depend on snprintf, improve comments
18479         * lib/ftoastr.c: Also mention Loitsch's draft.
18480         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18481         needed in the current implementation, but it might simplify
18482         speeding up the code later.
18483         * modules/ftoastr: Depend on snprintf; this improves portability.
18484         Suggested by Bruno Haible in the same email.
18485
18486         ftoastr: port to hosts lacking strtof and strtold
18487         Problem reported by Bruno Haible in
18488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18489         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18490         environment and strtold (and presumably strtof) are not available.
18491         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18492         (configure.ac): Require gl_C99_STRTOLD.
18493
18494 2010-11-18  Bruno Haible  <bruno@clisp.org>
18495
18496         c-strtold: Avoid link error on AIX 7.
18497         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18498         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18499         (gl_C_STRTOLD): Test whether strtold_l exists.
18500         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18501
18502 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18503
18504         intprops: new macro INT_BITS_STRLEN_BOUND
18505         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18506         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18507         not exposed.  Also, it uses a slightly tighter bound than before;
18508         though this makes no practical difference, we might as well be as
18509         tight as we easily can.
18510
18511         ftoastr: new module, for lossless conversion of floats to short strings
18512         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18513         * modules/ftoastr: New files.
18514
18515 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18516
18517         bootstrap: port to Solaris sed
18518         * build-aux/bootstrap (get_version): Port to Solaris sed.
18519         See Ralf Wildenhues's note in
18520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18521
18522 2010-11-14  Jim Meyering  <meyering@redhat.com>
18523
18524         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18525         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18526         and move definition closer to sole use.
18527
18528 2010-11-13  Jim Meyering  <meyering@redhat.com>
18529
18530         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18531         Now we require at least autoconf-2.59, which means the work-around
18532         is no longer needed.
18533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18534         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18536         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18537         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18538
18539 2010-11-13  Bruno Haible  <bruno@clisp.org>
18540
18541         rename, renameat: Avoid test failures at NFS mounted locations.
18542         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18543         functions.
18544         (test_rename): Use assert_nonexistent.
18545         * tests/test-rename.c: Include <dirent.h>.
18546         * tests/test-renameat.c: Likewise.
18547         Reported by Gary V. Vaughan <gary@gnu.org>.
18548
18549         rename, renameat: Document Linux bug with NFS
18550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18551         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18552         * doc/posix-functions/renameat.texi: Likewise.
18553         Suggested by Eric Blake.
18554
18555 2010-11-13  Bruno Haible  <bruno@clisp.org>
18556
18557         rename test: Add comments.
18558         * tests/test-rename.h (test_rename): Add structure and comments.
18559
18560 2010-11-13  Eric Blake  <eblake@redhat.com>
18561
18562         maintainer-makefile: cover a few more files
18563         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18564         scripts generated within C files, for libvirt.
18565
18566 2010-11-13  Bruno Haible  <bruno@clisp.org>
18567
18568         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18569         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18570         character, return the number of bytes that belong together, not always
18571         1.
18572         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18573         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18574         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18575         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18576         number of bytes of an invalid character.
18577         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18578         (main): Invoke it.
18579         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18580         results.
18581         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18582         malformed byte sequences.
18583         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18584         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18585         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18586         Reported by Ben Pfaff and Paolo Bonzini.
18587
18588 2010-11-13  Bruno Haible  <bruno@clisp.org>
18589
18590         openat: Work around glibc bug with fchownat() and empty file names.
18591         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18592         (gl_FUNC_FCHOWNAT): Invoke it.
18593         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18594         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18595         Reported by Gary V. Vaughan <gary@gnu.org>.
18596
18597 2010-11-13  Bruno Haible  <bruno@clisp.org>
18598
18599         openat: Ensure autoconf macro ordering.
18600         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18601         gl_USE_SYSTEM_EXTENSIONS.
18602         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18603
18604 2010-11-13  Bruno Haible  <bruno@clisp.org>
18605
18606         Update comments.
18607         * lib/unistr/u8-check.c: Update file name in comments.
18608         * lib/unistr/u8-mblen.c: Likewise.
18609         * lib/unistr/u8-prev.c: Likewise.
18610         * lib/unistr/u8-strmblen.c: Likewise.
18611         * lib/unistr/u8-strmbtouc.c: Likewise.
18612
18613 2010-11-13  Jim Meyering  <meyering@redhat.com>
18614
18615         tests: avoid test failure on Solaris 10 due to lack of PATH export
18616         * tests/test-update-copyright.sh: Don't forget to export PATH.
18617
18618         init.sh: ensure that IFS is defined, just in case...
18619         * tests/init.sh (setup_): Ensure that IFS is defined,
18620         so that saving and restoring it works as expected.  This
18621         appears to be useful at least for an old version of dash
18622         from a long time ago (RH 6).  See here for details:
18623         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18624
18625         maint.mk: tighten "test a == b" check
18626         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18627         test to files that contain something like #!/bin/sh.
18628         Without this, coreutils would get two false positives in
18629         the comments of C source files.
18630
18631 2010-11-12  Eric Blake  <eblake@redhat.com>
18632
18633         bootstrap: fix typo in previous attempt
18634         * build-aux/bootstrap (buildreq): Correct the grouping.
18635         Reported by Paul Eggert.
18636
18637         maintainer-makefile: prohibit test x == x
18638         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18639         Based on a report by Matthias Bolte.
18640
18641         bootstrap: allow FreeBSD gzip
18642         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18643         which has no '.' and goes to stderr.
18644         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18645         Reported by Matthias Bolte.
18646
18647         maintainer-makefile: check for i18n setup
18648         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18649         will likely work.
18650
18651 2010-11-12  Bruno Haible  <bruno@clisp.org>
18652
18653         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18654         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18655         * lib/nanosleep.c (nanosleep): Likewise.
18656
18657 2010-11-11  Bruno Haible  <bruno@clisp.org>
18658
18659         fcntl-h: Fix for use of C++ on glibc systems.
18660         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18661         also on glibc systems in C++ mode.
18662         Reported by Gary V. Vaughan <gary@gnu.org>.
18663
18664 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18665
18666         mknod: avoid false failure with dash
18667         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18668
18669 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18670
18671         unlink: Fix "is it should" typo in diagnostic.
18672         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18674
18675 2010-11-11  Bruno Haible  <bruno@clisp.org>
18676
18677         Tests for module 'strerror_r-posix'.
18678         * modules/strerror_r-posix-tests: New file.
18679         * tests/test-strerror_r.c: New file.
18680         * tests/test-string-c++.cc: Check the signature of strerror_r.
18681
18682         New module 'strerror_r-posix'.
18683         * lib/string.in.h (strerror_r): New declaration.
18684         * lib/strerror_r.c: New file.
18685         * m4/strerror_r.m4: New file.
18686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18687         of strerror_r.
18688         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18689         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18690         * modules/strerror_r-posix: New file.
18691         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18692         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18693         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18694         portability problems.
18695
18696 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18697
18698         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18699         line is also considered for output. Quoted function name in shell
18700         command, so temporary files for functions like MyClass::operator()
18701         are removed correctly without errors.
18702
18703 2010-11-09  Bruno Haible  <bruno@clisp.org>
18704
18705         * doc/posix-functions/strerror.texi: List more failing platforms.
18706
18707         * doc/posix-functions/strerror.texi: Add a comment.
18708
18709 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18710
18711         fdopendir: fix bug on MacOS X when low on file descriptors
18712
18713         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18714         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18715         All callers changed.
18716         (fdopendir): Invoke save_cwd at the top level, not after using
18717         multiple dup() calls to use up file descriptors.  Then retry
18718         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18719         less than the maximum number of open file descriptors, because
18720         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18721         on Mac OS X 10.6.4 for tar 1.24
18722         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18723         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18724         and for tar 1.25
18725         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18726
18727 2010-11-07  Bruno Haible  <bruno@clisp.org>
18728
18729         vasnprintf: Support I flag on glibc systems.
18730         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18731         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18732         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18733         snprintf function.
18734         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18735         glibc systems.
18736         * tests/test-vasnprintf-posix3.c: New file.
18737         * modules/vasnprintf-posix-tests (Files): Add it.
18738         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18739
18740 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18741
18742         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18743         * MODULES.html.sh: For compiler warnings, use name
18744         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18745
18746 2010-11-05  Eric Blake  <eblake@redhat.com>
18747
18748         ceil, floor: avoid spurious failure with icc
18749         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18750         [denormals-as-zero] when optimizing without -mieee-fp option.
18751         * tests/test-floorf2.c (floorf_reference): Likewise.
18752         * tests/test-ceilf1.c (dummy): New function.
18753         (main): Use it to outsmart icc's optimization.
18754         * tests/test-floorf1.c (dummy, main): Likewise.
18755
18756         tests: require working signbit
18757         * modules/ceilf-tests (Depends-on): Add signbit.
18758         * modules/ceill-tests (Depends-on): Likewise.
18759         * modules/floorf-tests (Depends-on): Likewise.
18760         * modules/floorl-tests (Depends-on): Likewise.
18761         * modules/round-tests (Depends-on): Likewise.
18762         * modules/roundf-tests (Depends-on): Likewise.
18763         * modules/roundl-tests (Depends-on): Likewise.
18764         * modules/trunc-tests (Depends-on): Likewise.
18765         * modules/truncf-tests (Depends-on): Likewise.
18766         * modules/truncl-tests (Depends-on): Likewise.
18767
18768         strtod: work around icc bug
18769         * lib/strtod.c (minus_zero): Define to working value.
18770         (strtod): Use it to avoid icc bug.
18771
18772         copysign: enhance tests
18773         * modules/copysign-tests (Files): Add minus-zero.h.
18774         * tests/test-copysign.c (main): Also test zeros.
18775
18776 2010-11-04  Eric Blake  <eblake@redhat.com>
18777
18778         ceil, floor, round, trunc: enhance tests of -0
18779         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18780         * tests/test-ceill.c (main): Likewise.
18781         * tests/test-floorf1.c (main): Likewise.
18782         * tests/test-floorl.c (main): Likewise.
18783         * tests/test-round1.c (main): Likewise.
18784         * tests/test-roundf1.c (main): Likewise.
18785         * tests/test-roundl.c (main): Likewise.
18786         * tests/test-trunc1.c (main): Likewise.
18787         * tests/test-truncf1.c (main): Likewise.
18788         * tests/test-truncl.c (main): Likewise.
18789
18790 2010-11-04  Eric Blake  <eblake@redhat.com>
18791
18792         frexp, tests: work around ICC bug with -zero
18793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18794         works with more compilers.
18795         * tests/minus-zero.h: New file.
18796         * modules/ceilf-tests (Files): Include it.
18797         * modules/ceill-tests (Files): Likewise.
18798         * modules/floorf-tests (Files): Likewise.
18799         * modules/floorl-tests (Files): Likewise.
18800         * modules/frexp-nolibm-tests (Files): Likewise.
18801         * modules/frexp-tests (Files): Likewise.
18802         * modules/frexpl-nolibm-tests (Files): Likewise.
18803         * modules/frexpl-tests (Files): Likewise.
18804         * modules/isnan-tests (Files): Likewise.
18805         * modules/isnand-nolibm-tests (Files): Likewise.
18806         * modules/isnand-tests (Files): Likewise.
18807         * modules/isnanf-nolibm-tests (Files): Likewise.
18808         * modules/isnanf-tests (Files): Likewise.
18809         * modules/isnanl-nolibm-tests (Files): Likewise.
18810         * modules/isnanl-tests (Files): Likewise.
18811         * modules/round-tests (Files): Likewise.
18812         * modules/roundf-tests (Files): Likewise.
18813         * modules/roundl-tests (Files): Likewise.
18814         * modules/ldexpl-tests (Files): Likewise.
18815         * modules/signbit-tests (Files): Likewise.
18816         * modules/snprintf-posix-tests (Files): Likewise.
18817         * modules/sprintf-posix-tests (Files): Likewise.
18818         * modules/strtod-tests (Files): Likewise.
18819         * modules/trunc-tests (Files): Likewise.
18820         * modules/truncf-tests (Files): Likewise.
18821         * modules/truncl-tests (Files): Likewise.
18822         * modules/vsnprintf-posix-tests (Files): Likewise.
18823         * modules/vsprintf-posix-tests (Files): Likewise.
18824         * modules/vasnprintf-posix-tests (Files): Likewise.
18825         * modules/vasprintf-posix-tests (Files): Likewise.
18826         * tests/test-ceilf1.c (main): Use it.
18827         * tests/test-ceill.c (main): Likewise.
18828         * tests/test-floorf1.c (main): Likewise.
18829         * tests/test-floorl.c (main): Likewise.
18830         * tests/test-frexp.c (main): Likewise.
18831         * tests/test-frexpl.c (main): Likewise.
18832         * tests/test-isnan.c (main): Likewise.
18833         * tests/test-isnand.h (main): Likewise.
18834         * tests/test-isnanf.h (main): Likewise.
18835         * tests/test-isnanl.h (main): Likewise.
18836         * tests/test-ldexpl.c (main): Likewise.
18837         * tests/test-round.c (main): Likewise.
18838         * tests/test-roundf.c (main): Likewise.
18839         * tests/test-roundl.c (main): Likewise.
18840         * tests/test-signbit.c (test_signbitf, test_signbitd)
18841         (test_signbitl): Likewise.
18842         * tests/test-snprintf-posix.h (test_function): Likewise.
18843         * tests/test-sprintf-posix.h (test_function): Likewise.
18844         * tests/test-strtod.c (main): Likewise.
18845         * tests/test-trunc1.c (main): Likewise.
18846         * tests/test-truncf1.c (main): Likewise.
18847         * tests/test-truncl.c (main): Likewise.
18848
18849         isnanl: work around icc bug
18850         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18851
18852 2010-11-03  Eric Blake  <eblake@redhat.com>
18853
18854         tests: fix compiler warnings
18855         * tests/test-getopt.h (test_getopt): Fix condition.
18856         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18857         * tests/test-pipe2.c (main): Likewise.
18858         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18859
18860         utimens: fix broken m4 test
18861         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18862
18863 2010-10-28  Bruno Haible  <bruno@clisp.org>
18864
18865         posix_spawn*, getdtablesize: Relax license.
18866         * modules/posix_spawn (License): Change to LGPLv2+.
18867         * modules/posix_spawnp (License): Likewise.
18868         * modules/posix_spawn-internal (License): Likewise.
18869         * modules/posix_spawnattr_init (License): Likewise.
18870         * modules/posix_spawnattr_getflags (License): Likewise.
18871         * modules/posix_spawnattr_setflags (License): Likewise.
18872         * modules/posix_spawnattr_getpgroup (License): Likewise.
18873         * modules/posix_spawnattr_setpgroup (License): Likewise.
18874         * modules/posix_spawnattr_getschedparam (License): Likewise.
18875         * modules/posix_spawnattr_setschedparam (License): Likewise.
18876         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18877         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18878         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18879         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18880         * modules/posix_spawnattr_getsigmask (License): Likewise.
18881         * modules/posix_spawnattr_setsigmask (License): Likewise.
18882         * modules/posix_spawnattr_destroy (License): Likewise.
18883         * modules/posix_spawn_file_actions_init (License): Likewise.
18884         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18885         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18886         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18887         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18888         * modules/getdtablesize (License): Likewise.
18889         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18890
18891 2010-10-26  Bruno Haible  <bruno@clisp.org>
18892
18893         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18894         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18895         Cygwin and mingw.
18896         Suggested by Eric Blake.
18897
18898 2010-10-26  Bruno Haible  <bruno@clisp.org>
18899
18900         stdio: Work around compilation error due to renameat() on Solaris 10.
18901         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18902         * lib/renameat.c: Don't include <unistd.h> here.
18903         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18904         Reported by Paul Eggert and Eric Blake.
18905
18906 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         renameat: port to Solaris 10, which declares renameat in unistd.h
18909
18910         * lib/renameat.c: Include unistd.h before stdio.h, because
18911         Solaris 10 declares renameat in unistd.h.  Problem encountered
18912         when building GNU tar 1.24 on Solaris 10.
18913
18914 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18915
18916         fdopendir: fix C89 compilation
18917         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18918         compilers.
18919
18920 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         inttostr: simplify by removing unnecessary redundancy
18923         * lib/anytostr.c: Don't include verify.h.
18924         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18925         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18926         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18927         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18928         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18929         Likewise.
18930         * modules/inttostr (Depends-on): Remove 'verify'.
18931
18932 2010-10-23  Bruno Haible  <bruno@clisp.org>
18933
18934         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18935         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18936         Reported by Eric Blake.
18937
18938 2010-10-23  Bruno Haible  <bruno@clisp.org>
18939
18940         Tests: Fix LOCALE_JA on MirBSD 10.
18941         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18942         to an UTF-8 locale.
18943         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18945         Reported by Eric Blake.
18946
18947 2010-10-21  Bruno Haible  <bruno@clisp.org>
18948
18949         nl_langinfo test: Avoid test failure on NetBSD 5.
18950         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18951         Reported by Eric Blake.
18952
18953 2010-10-21  Eric Blake  <eblake@redhat.com>
18954
18955         c-stack: work around libsigsegv 2.8 bug
18956         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18957         overflow on at least PowerPC64.
18958
18959 2010-10-17  Bruno Haible  <bruno@clisp.org>
18960
18961         userspec: Drop redundant file.
18962         * modules/userspec (Files): Remove lib/inttostr.h.
18963
18964 2010-10-17  Bruno Haible  <bruno@clisp.org>
18965
18966         nl_langinfo tests: Silence some warnings.
18967         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18968         Reported by Jim Meyering.
18969
18970 2010-10-17  Bruno Haible  <bruno@clisp.org>
18971
18972         Make use of GCC's attribute __alloc_size__.
18973         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18974         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18975         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18976         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18977         __alloc_size__.
18978         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18979         Suggested by Jim Meyering.
18980
18981 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18982
18983         bootstrap: anchor .gitignore entries.
18984         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18985         with...
18986         (insert_vc_ignore): ... this new function, which prepends `/' to
18987         all .gitignore entries before passing them to
18988         insert_sorted_if_absent.
18989
18990 2010-10-16  Bruno Haible  <bruno@clisp.org>
18991
18992         nextafter: Fix configure check.
18993         * modules/nextafter (configure.ac): Correct expected prototype.
18994
18995 2010-10-16  Bruno Haible  <bruno@clisp.org>
18996
18997         termios: Update documentation.
18998         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18999
19000 2010-10-16  Bruno Haible  <bruno@clisp.org>
19001
19002         tests: Make them compile with TinyCC.
19003         * tests/test-strstr.c (main): Remove parentheses around array
19004         initializer.
19005
19006 2010-10-15  Eric Blake  <eblake@redhat.com>
19007
19008         ignore-value: make header idempotent
19009         * lib/ignore-value.h: Add double-inclusion guards.
19010         Reported by Stefan Berger.
19011
19012 2010-10-15  Jim Meyering  <meyering@redhat.com>
19013
19014         GNUmakefile: handle "stable" target, not "major"
19015         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19016         lists in maint.mk and announce-gen.  Without this, "make stable"
19017         would fail to ensure that $(VERSION) is up to date.
19018
19019 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19020
19021         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19022         & co.
19023
19024 2010-10-14  Bruno Haible  <bruno@clisp.org>
19025
19026         vasnprintf: Don't set errno to 0.
19027         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19028         block that sets it to 0.
19029         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19030
19031 2010-10-14  Bruno Haible  <bruno@clisp.org>
19032
19033         socketlib: Fix.
19034         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19035         gl_PREREQ_SYS_H_WINSOCK2.
19036         Reported by Ian Beckwith <ianb@erislabs.net>.
19037
19038 2010-10-13  Jim Meyering  <meyering@redhat.com>
19039
19040         test-select-stdin.c: avoid warn_unused_result warnings
19041         * tests/test-select-stdin.c: Include "macros.h".
19042         ASSERT that read and fflush succeed.
19043
19044 2010-10-13  Jim Meyering  <meyering@redhat.com>
19045
19046         git-version-gen: do require git-VC'd files in cwd
19047         * build-aux/git-version-gen: Reject a git version string
19048         if there are no commits associated with the current directory.
19049         This avoids an unlikely false-positive (unrelated dir whose parent
19050         repository also contains a tag matching v*), as pointed out
19051         by Giuseppe Scrivano in
19052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19053
19054 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19055
19056         argv-iter: omit nonconforming declaration
19057         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19058         enum arg_iter_err declaration, which doesn't conform to C99.
19059         Solaris 10 cc warns about this.
19060
19061 2010-10-13  Eric Blake  <eblake@redhat.com>
19062
19063         termios: fix compilation on mingw
19064         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19065         (gl_TERMIOS_H): Adjust it on mingw.
19066         * modules/termios (Makefile.am): Substitute new key.
19067         * lib/termios.in.h (includes): Make include_next conditional.
19068         * doc/posix-headers/termios.texi (termios.h): Update
19069         documentation.
19070         Reported by Daniel P. Berrange.
19071
19072 2010-10-13  Jim Meyering  <meyering@redhat.com>
19073
19074         git-version-gen: don't require that .git/ be in the current dir
19075         * build-aux/git-version-gen: Adjust this script so that it works
19076         when run from any working directory beneath the top-level .git/-
19077         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19078         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19079
19080         test-select: avoid warn_unused_result warnings
19081         * tests/test-select.c: Include "macros.h".
19082         ASSERT that each call to read, write, and pipe succeeds.
19083         While not technically required, also check each "close".
19084         * modules/select-tests (Files): Add tests/macros.h.
19085
19086         test-symlinkat: remove declaration of unused local
19087         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19088
19089         test-inttostr: avoid shadowing warnings
19090         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19091         and use malloc rather than the stack for the same reason as
19092         mentioned in the comment justifying the other allocation.
19093
19094 2010-10-11  Bruno Haible  <bruno@clisp.org>
19095
19096         stdlib: Allow multiple gnulib generated replacements to coexist.
19097         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19098         Reported by Sam Steingold <sds@gnu.org>.
19099
19100 2010-10-11  Jim Meyering  <meyering@redhat.com>
19101
19102         fix a documentation typo
19103         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19104
19105 2010-10-11  Eric Blake  <eblake@redhat.com>
19106
19107         futimens: work around Solaris 11 bug
19108         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19109         * tests/test-futimens.h (test_futimens): Enhance, rather than
19110         weaken test.
19111         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19112
19113 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19114
19115         Indentation.
19116         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19117         higher-level operators more to the left.
19118
19119 2010-10-11  Jim Meyering  <meyering@redhat.com>
19120
19121         test-futimens: avoid unwarranted test failure on Solaris 5.11
19122         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19123         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19124         because it tries to dereference the NULL name argument.
19125
19126 2010-10-11  Bruno Haible  <bruno@clisp.org>
19127
19128         Indentation.
19129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19130         indentation.
19131
19132 2010-10-11  Jim Meyering  <meyering@redhat.com>
19133
19134         spawn.in.h: make indentation consistent with parentheses
19135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19136         Make indentation consistent with parentheses.
19137
19138 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19139
19140         Fix mismatched parens in previous commit
19141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19142         parens.
19143
19144 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19145
19146         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19147
19148         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19149         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19150         * lib/malloca.c: Include "verify.h".
19151         (verify1): Remove, replacing with a verify call.
19152         * lib/relocwrapper.c (verify1): Likewise.
19153         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19154         Likewise.
19155         * modules/malloca (Depends-on): Add 'verify'.
19156         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19157         * modules/vasnprintf (Depends-on): Add 'verify'.
19158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19165
19166         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19167
19168         Formerly the style was sometimes 2*X - 1, because the C standard
19169         was wrongly thought to disallow ?: in integral constant expressions.
19170         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19171         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19172         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19173         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19174         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19175         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19176         verify that time_t cannot be floating.
19177
19178 2010-10-08  Eric Blake  <eblake@redhat.com>
19179
19180         time: enforce recent POSIX ruling that time_t is integral
19181         * lib/time.in.h (__time_t_must_be_integral): Detect any
19182         problematic systems, allowing the rest of gnulib to assume POSIX.
19183
19184 2010-10-08  Jim Meyering  <meyering@redhat.com>
19185
19186         fdopendir: fix a bug on systems lacking openat and /proc support
19187         OpenBSD 4.7 is one such system.  The most noticeable effect was
19188         failure of any application making nontrivial use of fts: rm, du,
19189         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19190           ./rm: traversal failed: `a': Bad file descriptor
19191         Debugging that, you see that even though FD 6 was closed just
19192         prior to the opendir call in fd_clone_opendir, its resulting
19193         dir->dd_fd was 8, rather than the expected value of 6:
19194
19195         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19196         93                close (fd);
19197         (gdb) n
19198         94                dir = fd_clone_opendir (dupfd);
19199         (gdb) n
19200         95                saved_errno = errno;
19201         (gdb) p dir->dd_fd
19202         $11 = 8
19203
19204         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19205         The problem is that on OpenBSD, fd_clone_opendir has to resort
19206         to using the old-style save/restore CWD mechanism, due to its
19207         lack of openat/proc support, and *that* would steal the FD (6)
19208         that opendir was supposed to use.
19209
19210         The fix is to squirrel away the desired FD so that save_cwd uses a
19211         different one, and then free the dest FD right before calling opendir.
19212         That guarantees opendir will use the required file descriptor.
19213
19214         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19215
19216 2010-10-08  Bruno Haible  <bruno@clisp.org>
19217
19218         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19219         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19220
19221 2010-10-08  Bruno Haible  <bruno@clisp.org>
19222
19223         nanosleep: Make replacement POSIX compliant.
19224         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19225         is out of range.
19226         Reported by Jim Meyering.
19227
19228 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19229
19230         bootstrap: add hook for altering gnulib.mk, for Bison
19231         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19232         the Bison bootstrapping process can rewrite file names and variables
19233         in this file before later parts of 'bootstrap' use the file.
19234         Bison wants to include lib/gnulib.mk from the top-level makefile,
19235         so it needs the file names in this file to be relative to the top
19236         level, not relative to lib; plus it needs variable names to be
19237         rewritten.
19238         (slurp): Use the new function.
19239
19240         bootstrap: reformat for readability
19241         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19242
19243 2010-10-08  Eric Blake  <eblake@redhat.com>
19244
19245         docs: update cygwin progress
19246         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19247         1.7.7.
19248         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19249         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19250         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19251         * doc/posix-functions/carg.texi (carg): Likewise.
19252         * doc/posix-functions/cargf.texi (cargf): Likewise.
19253         * doc/posix-functions/casin.texi (casin): Likewise.
19254         * doc/posix-functions/casinf.texi (casinf): Likewise.
19255         * doc/posix-functions/casinh.texi (casinh): Likewise.
19256         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19257         * doc/posix-functions/catan.texi (catan): Likewise.
19258         * doc/posix-functions/catanf.texi (catanf): Likewise.
19259         * doc/posix-functions/catanh.texi (catanh): Likewise.
19260         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19261         * doc/posix-functions/ccos.texi (ccos): Likewise.
19262         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19263         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19264         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19265         * doc/posix-functions/cexp.texi (cexp): Likewise.
19266         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19267         * doc/posix-functions/cimag.texi (cimag): Likewise.
19268         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19269         * doc/posix-functions/clog.texi (clog): Likewise.
19270         * doc/posix-functions/clogf.texi (clogf): Likewise.
19271         * doc/posix-functions/conj.texi (conj): Likewise.
19272         * doc/posix-functions/conjf.texi (conjf): Likewise.
19273         * doc/posix-functions/cpow.texi (cpow): Likewise.
19274         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19275         * doc/posix-functions/cproj.texi (cproj): Likewise.
19276         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19277         * doc/posix-functions/creal.texi (creal): Likewise.
19278         * doc/posix-functions/crealf.texi (crealf): Likewise.
19279         * doc/posix-functions/csin.texi (csin): Likewise.
19280         * doc/posix-functions/csinf.texi (csinf): Likewise.
19281         * doc/posix-functions/csinh.texi (csinh): Likewise.
19282         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19283         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19284         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19285         * doc/posix-functions/ctan.texi (ctan): Likewise.
19286         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19287         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19288         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19289         * doc/posix-headers/complex.texi (complex.h): Likewise.
19290
19291 2010-10-07  Jim Meyering  <meyering@redhat.com>
19292
19293         parse-datetime: avoid compilation failure on OpenBSD 4.7
19294         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19295         This works around a compilation failure on OpenBSD 4.7:
19296         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19297
19298 2010-10-07  Eric Blake  <eblake@redhat.com>
19299
19300         docs: update cygwin progress
19301         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19302         1.7.6.
19303         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19304         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19305         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19306         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19307         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19308         Likewise.
19309         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19310         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19311         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19312         Likewise.
19313         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19314         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19315         Likewise.
19316         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19317         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19318         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19319         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19320         Likewise.
19321         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19322         Likewise.
19323         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19324
19325         docs: update parse-datetime history
19326         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19327         documentation of this function's history and alternatives.
19328
19329         cygwin: use more robust version check
19330         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19331         exclude an eventual cygwin 1.9.1.
19332         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19334         (gl_FUNC_STRCASESTR): Likewise.
19335         Reported by Bruno Haible.
19336
19337 2010-10-06  Bruno Haible  <bruno@clisp.org>
19338
19339         string, sys_select: Avoid #including large headers unless necessary.
19340         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19341         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19342         OSF/1, BeOS, Haiku.
19343         Reported by Jim Meyering.
19344
19345 2010-10-05  Eric Blake  <eblake@redhat.com>
19346
19347         memmem, strstr, strcasestr: fix bug with long periodic needle
19348         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19349         periodic needle having false positive.
19350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19351         and cygwin 1.7.7.
19352         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19354         (gl_FUNC_STRCASESTR): Likewise.
19355         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19356         * tests/test-memmem.c (main): Expose the bug.
19357         * tests/test-strcasestr.c (main): Likewise.
19358         * tests/test-strstr.c (main): Likewise.
19359         * tests/test-c-strcasestr.c (main): Likewise.
19360         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19361         * doc/posix-functions/strstr.texi (strstr): Likewise.
19362         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19363         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19364
19365 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19366
19367         parse-datetime: do some more renaming
19368         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19369         parse_datetime, not get_date.  Mention the renaming.
19370         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19371         in comments.
19372         * m4/bison.m4: Likewise.
19373
19374 2010-10-05  Eric Blake  <eblake@redhat.com>
19375
19376         parse-datetime: better name than get_date
19377         * NEWS: Reword the deprecation notice.
19378         * modules/get_date: Rename to modules/parse-datetime.
19379         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19380         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19381         * lib/get_date.y: Rename to lib/parse-datetime.y.
19382         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19383         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19384         * doc/getdate.texi: Provide fallback wrapper.
19385         * lib/getdate.h: Move guts, and wrap...
19386         * lib/parse-datetime.h: ...new file.
19387         * lib/parse-datetime.y (get_date): Rename...
19388         (parse_datetime): ...to this.
19389         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19390         (gl_PARSE_DATETIME): ...to this.
19391         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19392         documentation.
19393         * modules/getdate (Files): Provide fallback docs and header.
19394         (Notice, Depends-on): Update references.
19395         * tests/test-parse-datetime.c: Likewise.
19396         * DEPENDENCIES: Likewise.
19397         * MODULES.html.sh (Date and time <time.h>): Likewise.
19398         * doc/parse-datetime.texi (Date input formats)
19399         (Authors of parse_datetime): Likewise.
19400         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19401         (Include): Likewise.
19402         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19403         * gnulib-tool: Likewise.
19404         * m4/bison.m4 (gl_BISON): Likewise.
19405         Suggested by Bruno Haible.
19406
19407 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19408
19409         more ports to Solaris tr, which needs [] around ranges
19410         * gnulib-tool: Solaris tr needs [] around ranges.
19411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19412         * tests/test-pipe-filter-gi1.c (main): Likewise.
19413         * tests/test-pipe-filter-ii1.c (main): Likewise.
19414
19415 2010-10-05  Eric Blake  <eblake@redhat.com>
19416
19417         bootstrap: fix Solaris regression
19418         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19419         around ranges.
19420         Reported by Pádraig Brady.
19421
19422         bootstrap: work with pkg-config
19423         * build-aux/bootstrap (check_versions): Also transliterate - in
19424         prerequisite name.
19425         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19426         prerequisites that were already found, to avoid confusion.
19427         Reported by Justin Clift.
19428
19429         faccessat: remove unused wrappers
19430         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19431         presence of these wrappers dragged in -lgen on Solaris.
19432         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19433
19434 2010-10-05  Jim Meyering  <meyering@redhat.com>
19435
19436         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19437         * Makefile (sc_pragma_columns): New syntax-check rule.
19438
19439 2010-10-04  Bruno Haible  <bruno@clisp.org>
19440
19441         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19442         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19443         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19444         Reported by Bruce Korb and Eric Blake.
19445
19446 2010-10-04  Bruno Haible  <bruno@clisp.org>
19447
19448         threadlib: Make option --with-libpth-prefix work.
19449         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19450         use $LIBPTH, not just -lpth.
19451
19452 2010-10-04  Bruno Haible  <bruno@clisp.org>
19453
19454         Avoid line length limitation from HP NonStop system header files.
19455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19456         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19457         * lib/ctype.in.h: Likewise.
19458         * lib/dirent.in.h: Likewise.
19459         * lib/errno.in.h: Likewise.
19460         * lib/fcntl.in.h: Likewise.
19461         * lib/float.in.h: Likewise.
19462         * lib/getopt.in.h: Likewise.
19463         * lib/iconv.in.h: Likewise.
19464         * lib/inttypes.in.h: Likewise.
19465         * lib/langinfo.in.h: Likewise.
19466         * lib/locale.in.h: Likewise.
19467         * lib/math.in.h: Likewise.
19468         * lib/netdb.in.h: Likewise.
19469         * lib/netinet_in.in.h: Likewise.
19470         * lib/poll.in.h: Likewise.
19471         * lib/pthread.in.h: Likewise.
19472         * lib/pty.in.h: Likewise.
19473         * lib/sched.in.h: Likewise.
19474         * lib/se-selinux.in.h: Likewise.
19475         * lib/search.in.h: Likewise.
19476         * lib/signal.in.h: Likewise.
19477         * lib/spawn.in.h: Likewise.
19478         * lib/stdarg.in.h: Likewise.
19479         * lib/stddef.in.h: Likewise.
19480         * lib/stdint.in.h: Likewise.
19481         * lib/stdio.in.h: Likewise.
19482         * lib/stdlib.in.h: Likewise.
19483         * lib/string.in.h: Likewise.
19484         * lib/strings.in.h: Likewise.
19485         * lib/sys_file.in.h: Likewise.
19486         * lib/sys_ioctl.in.h: Likewise.
19487         * lib/sys_select.in.h: Likewise.
19488         * lib/sys_socket.in.h: Likewise.
19489         * lib/sys_stat.in.h: Likewise.
19490         * lib/sys_time.in.h: Likewise.
19491         * lib/sys_times.in.h: Likewise.
19492         * lib/sys_utsname.in.h: Likewise.
19493         * lib/sys_wait.in.h: Likewise.
19494         * lib/sysexits.in.h: Likewise.
19495         * lib/termios.in.h: Likewise.
19496         * lib/time.in.h: Likewise.
19497         * lib/unistd.in.h: Likewise.
19498         * lib/wchar.in.h: Likewise.
19499         * lib/wctype.in.h: Likewise.
19500         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19501         * modules/ctype (Makefile.am): Likewise.
19502         * modules/dirent (Makefile.am): Likewise.
19503         * modules/errno (Makefile.am): Likewise.
19504         * modules/fcntl-h (Makefile.am): Likewise.
19505         * modules/float (Makefile.am): Likewise.
19506         * modules/getopt-posix (Makefile.am): Likewise.
19507         * modules/iconv-h (Makefile.am): Likewise.
19508         * modules/inttypes (Makefile.am): Likewise.
19509         * modules/langinfo (Makefile.am): Likewise.
19510         * modules/locale (Makefile.am): Likewise.
19511         * modules/math (Makefile.am): Likewise.
19512         * modules/netdb (Makefile.am): Likewise.
19513         * modules/netinet_in (Makefile.am): Likewise.
19514         * modules/poll-h (Makefile.am): Likewise.
19515         * modules/pthread (Makefile.am): Likewise.
19516         * modules/pty (Makefile.am): Likewise.
19517         * modules/sched (Makefile.am): Likewise.
19518         * modules/search (Makefile.am): Likewise.
19519         * modules/selinux-h (Makefile.am): Likewise.
19520         * modules/signal (Makefile.am): Likewise.
19521         * modules/spawn (Makefile.am): Likewise.
19522         * modules/stdarg (Makefile.am): Likewise.
19523         * modules/stddef (Makefile.am): Likewise.
19524         * modules/stdint (Makefile.am): Likewise.
19525         * modules/stdio (Makefile.am): Likewise.
19526         * modules/stdlib (Makefile.am): Likewise.
19527         * modules/string (Makefile.am): Likewise.
19528         * modules/strings (Makefile.am): Likewise.
19529         * modules/sys_file (Makefile.am): Likewise.
19530         * modules/sys_ioctl (Makefile.am): Likewise.
19531         * modules/sys_select (Makefile.am): Likewise.
19532         * modules/sys_socket (Makefile.am): Likewise.
19533         * modules/sys_stat (Makefile.am): Likewise.
19534         * modules/sys_time (Makefile.am): Likewise.
19535         * modules/sys_times (Makefile.am): Likewise.
19536         * modules/sys_utsname (Makefile.am): Likewise.
19537         * modules/sys_wait (Makefile.am): Likewise.
19538         * modules/sysexits (Makefile.am): Likewise.
19539         * modules/termios (Makefile.am): Likewise.
19540         * modules/time (Makefile.am): Likewise.
19541         * modules/unistd (Makefile.am): Likewise.
19542         * modules/wchar (Makefile.am): Likewise.
19543         * modules/wctype (Makefile.am): Likewise.
19544
19545 2010-10-04  Bruno Haible  <bruno@clisp.org>
19546
19547         read-file tests: Avoid a test failure on NonStop Kernel.
19548         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19549         a regular file.
19550         Reported by Joachim Schmitz <schmitz@hp.com>.
19551
19552 2010-10-03  Bruno Haible  <bruno@clisp.org>
19553
19554         gnulib-tool: Fixes for --create-testdir with --libtool.
19555         * gnulib-tool (func_get_automake_snippet): Don't augment
19556         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19557         an executable.
19558         (func_create_testdir): Handle module 'alloca' like func_import.
19559         Reported by Bruce Korb <bruce.korb@gmail.com>.
19560
19561 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19562
19563         Avoid some lines longer than 80 characters.
19564         * lib/stdint.in.h: Break long comment lines.
19565         * lib/math.in.h: Likewise.
19566         (_GL_NUM_UINT_WORDS): New macro, for readability.
19567         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19568         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19569         * lib/stdlib.in.h: Likewise.
19570         * lib/spawn.in.h: Likewise.
19571         * lib/sys_socket.in.h: Update an URL.
19572         * lib/sys_stat.in.h: Break long line.
19573
19574 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19575
19576         Improve pmccabe2html.
19577         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19578         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19579         when the sources change. Remove the line in the HTML about "Used
19580         ranges" (which implied that there might be other unused ranges),
19581         rename "Resume" to "Summary" (easier to understand for more users).
19582         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19583         styles, and some unnecessary blank lines.
19584
19585 2010-10-03  Bruno Haible  <bruno@clisp.org>
19586             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19587
19588         acl: Add support for ACLs on NonStop Kernel.
19589         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19590         Check whether the function aclsort() exists.
19591         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19592         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19593         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19594         (acl_nontrivial [HAVE_ACLSORT]: New function.
19595         (file_has_acl): Implement for NonStop Kernel.
19596         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19597         (qset_acl): Implement for NonStop Kernel.
19598         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19599         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19600         (main): Implement for NonStop Kernel.
19601         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19602         Kernel. Handle this flavor.
19603         * tests/test-set-mode-acl.sh: Likewise.
19604         * tests/test-copy-acl.sh: Likewise.
19605         * tests/test-copy-file.sh: Likewise.
19606
19607 2010-10-03  Bruno Haible  <bruno@clisp.org>
19608
19609         Info about ACLs on NonStop Kernel.
19610         * doc/acl-resources.txt: Add info about NonStop Kernel.
19611         References by Joachim Schmitz <schmitz@hp.com>.
19612
19613 2010-10-02  Bruno Haible  <bruno@clisp.org>
19614
19615         Define missing EDQUOT on NonStop Kernel.
19616         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19617         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19619         missing.
19620         * doc/posix-headers/errno.texi: Mention the NSK bug.
19621         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19622         Reported by Joachim Schmitz <schmitz@hp.com>.
19623
19624 2010-10-02  Bruno Haible  <bruno@clisp.org>
19625
19626         Update doc for POSIX:2008.
19627         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19628         Update URL of POSIX specification.
19629
19630 2010-10-02  Bruno Haible  <bruno@clisp.org>
19631
19632         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19633         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19634         from gnulib, not from Automake.
19635
19636 2010-10-02  Bruno Haible  <bruno@clisp.org>
19637
19638         New module 'system-posix'.
19639         * modules/system-posix: New file.
19640         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19641         module is present.
19642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19643         GNULIB_SYSTEM_POSIX.
19644         * modules/stdlib (Depends-on): Remove sys_wait.
19645         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19646         * doc/posix-functions/system.texi: Mention the new module.
19647         * doc/posix-headers/stdlib.texi: Likewise.
19648         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19649         define test_sys_wait_macros to a no-op.
19650         Reported by Sam Steingold <sds@gnu.org>.
19651
19652 2010-09-30  Bruno Haible  <bruno@clisp.org>
19653
19654         More renaming from 'getdate' to 'get_date'.
19655         * doc/get_date.texi: Renamed from doc/getdate.texi.
19656         * modules/get_date (Files): Update.
19657         * MODULES.html.sh (Date and time <time.h>): Update.
19658         * DEPENDENCIES: Update.
19659         * gnulib-tool: Update comment.
19660         * m4/bison.m4 (gl_BISON): Likewise.
19661         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19662
19663 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19664
19665         bootstrap: support ACLOCAL_FLAGS during aclocal
19666         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19667         can add additional -I dir for third-party .m4 files.
19668
19669 2010-09-30  Eric Blake  <eblake@redhat.com>
19670
19671         bootstrap: use glibtoolize on MacOS
19672         * build-aux/bootstrap (check_versions): Convert libtool into
19673         libtoolize.
19674         (tool search): Move libtool check earlier, and look for
19675         glibtoolize for MacOS.
19676         (gnulib_tool_options): Auto-add --libtool when appropriate.
19677         Reported by Justin Clift.
19678
19679         poll: fix typo that broke test on MacOS
19680         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19681         Reported by Justin Clift.
19682
19683         getdate: rename to get_date
19684         Note: getdate.h is not renamed, to minimize client impact.
19685         * modules/getdate: Mark obsolete.  Move old contents...
19686         * modules/get_date: ...to new module name.
19687         * modules/getdate-tests: Move...
19688         * modules/get_date-tests: ...here.
19689         * m4/getdate.m4: Move...
19690         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19691         * lib/getdate.y: Move...
19692         * lib/get_date.y: ...here.
19693         * tests/test-getdate.c: Move...
19694         * tests/test-get_date.c: ...here.
19695         * doc/posix-functions/getdate.texi (getdate): Update name.
19696         * NEWS: Mention the change.
19697
19698 2010-09-29  Bruno Haible  <bruno@clisp.org>
19699
19700         Separate the module 'waitpid' from the module 'sys_wait'.
19701         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19702         present.
19703         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19704         gl_MODULE_INDICATOR_FOR_TESTS.
19705         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19706         * modules/sys_wait (Depends-on): Remove waitpid.
19707         (Makefile.am): Substitute GNULIB_WAITPID.
19708         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19709         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19710         signature only if the 'waitpid' module is present.
19711         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19712         * NEWS: Mention the change.
19713         * modules/grantpt (Depends-on): Add waitpid.
19714         * modules/wait-process (Depends-on): Likewise.
19715
19716 2010-09-29  Bruno Haible  <bruno@clisp.org>
19717
19718         More tests for module 'sys_wait'.
19719         * modules/sys_wait-c++-tests: New file.
19720         * tests/test-sys_wait-c++.cc: New file.
19721         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19723
19724 2010-09-29  Bruno Haible  <bruno@clisp.org>
19725
19726         New module 'waitpid'.
19727         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19728         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19729         Don't include <process.h>.
19730         (waitpid): Declare only, using modern idiom.
19731         * m4/waitpid.m4: New file.
19732         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19733         * modules/waitpid: New file.
19734         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19735         (Makefile.am): Update.
19736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19737
19738 2010-09-28  Bruno Haible  <bruno@clisp.org>
19739
19740         poll: Assume ANSI C.
19741         * lib/poll.c (poll): Use an ANSI C declaration.
19742
19743 2010-09-28  Bruno Haible  <bruno@clisp.org>
19744
19745         poll-h: Create poll.h on all platforms.
19746         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19747         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19748         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19749         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19750         (gl_REPLACE_POLL_H): Don't set POLL_H.
19751         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19752         * modules/poll-h (Depends-on): Add include_next.
19753         (Makefile.am): Create poll.h unconditionally. Substitute also
19754         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19755
19756 2010-09-28  Bruno Haible  <bruno@clisp.org>
19757
19758         Tests for module 'poll-h'.
19759         * modules/poll-h-c++-tests: New file.
19760         * tests/test-poll-h-c++.cc: New file.
19761
19762         Tests for module 'poll-h'.
19763         * modules/poll-h-tests: New file.
19764         * tests/test-poll-h.c: New file.
19765
19766 2010-09-28  Bruno Haible  <bruno@clisp.org>
19767
19768         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19769         * modules/poll-h (Depends-on): Add 'extensions'.
19770
19771 2010-09-28  Bruno Haible  <bruno@clisp.org>
19772
19773         New module 'poll-h'.
19774         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19775         (poll): Use modern idiom.
19776         * modules/poll-h: New file.
19777         * modules/poll (Files): Remove lib/poll.in.h.
19778         (Depends-on): Add poll-h.
19779         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19780         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19781         * m4/poll_h.m4: New file.
19782         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19783         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19784         and invoke gl_REPLACE_POLL_H.
19785         * lib/poll.c: Use common idiom.
19786         * tests/test-poll.c: Likewise.
19787         * doc/posix-headers/poll.texi: Mention the poll-h module.
19788         Suggested by Eric Blake.
19789
19790 2010-09-26  Bruno Haible  <bruno@clisp.org>
19791
19792         sys_wait: Implement WSTOPSIG.
19793         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19794         Reported by Simon Josefsson.
19795
19796 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19797
19798         stdlib, sys_wait: Avoid compilation error on mingw.
19799         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19800
19801 2010-09-26  Bruno Haible  <bruno@clisp.org>
19802
19803         stdlib tests: Avoid code duplication.
19804         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19805         * modules/sys_wait-tests (Files): Likewise.
19806         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19807         * tests/test-stdlib.c: Include test-sys_wait.h.
19808         (main): Invoke test_sys_wait_macros.
19809         * tests/test-sys_wait.c: Include test-sys_wait.h.
19810         (main): Invoke test_sys_wait_macros.
19811
19812 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19813
19814         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19815         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19816         sure Windows sockets are working before calling getaddrinfo.
19817         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19818         * doc/gnulib.texi (Windows sockets): Fix typo.
19819
19820 2010-09-25  Bruno Haible  <bruno@clisp.org>
19821
19822         Tests for module 'regex-quote'.
19823         * modules/regex-quote-tests: New file.
19824         * tests/test-regex-quote.c: New file.
19825
19826         New module 'regex-quote'.
19827         * lib/regex-quote.h: New file.
19828         * lib/regex-quote.c: New file.
19829         * modules/regex-quote: New file.
19830         Suggested by Reuben Thomas <rrt@sc3d.org>.
19831
19832 2010-09-24  Bruno Haible  <bruno@clisp.org>
19833
19834         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19835         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19836
19837 2010-09-23  Bruno Haible  <bruno@clisp.org>
19838
19839         setenv: Relax license.
19840         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19841         Blake.
19842         Requested by Eric Blake.
19843
19844 2010-09-22  Bruno Haible  <bruno@clisp.org>
19845
19846         termios: Relax license.
19847         * modules/termios (License): Change to LGPLv2+.
19848         Requested by Eric Blake.
19849
19850 2010-09-22  Bruno Haible  <bruno@clisp.org>
19851
19852         threadlib: Allow the package to change the default to 'no'.
19853         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19854         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19855         Reported by Paul Eggert.
19856
19857 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19858             Bruno Haible  <bruno@clisp.org>
19859
19860         Fix endless loop in mbmemcasecoll.
19861         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19862         byte.
19863         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19864
19865 2010-09-22  Bruno Haible  <bruno@clisp.org>
19866
19867         Tests for module 'memcoll'.
19868         * modules/memcoll-tests: New file.
19869         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19870
19871         memcoll, xmemcoll: Clarify size vs. length.
19872         * modules/memcoll.c (memcoll0): Clarify specification.
19873         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19874         passed to collate_error.
19875
19876 2010-09-22  Bruno Haible  <bruno@clisp.org>
19877
19878         Tests for module 'memcasecmp'.
19879         * modules/memcasecmp-tests: New file.
19880         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19881
19882 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19883
19884         * lib/pthread.in.h: Add split double-inclusion guard, and include
19885         system <pthread.h> if there is one.  Use @@-style as in other
19886         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19887         pthread.h doesn't.
19888         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19889         (pthread_mutexattr_settype, pthread_mutex_trylock):
19890         New static inline functions, if there's no system <pthread.h>.
19891         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19892         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19893         Approximate with mutexes if the system lacks spinlocks, as in
19894         MacOS.
19895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19896         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19897         @@-style.  Check for spinlocks separately.
19898         (gl_PTHREAD_DEFAULTS): New macro.
19899         * modules/pthread: Redo to use a more typical style for in.h files.
19900
19901 2010-09-21  Eric Blake  <eblake@redhat.com>
19902
19903         net_if: enhance tests
19904         * tests/test-net_if.c (main): Move signature checks earlier.
19905         Print failures to stderr.
19906         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19907         Document the bug that we do not yet fix.
19908
19909 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19910
19911         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19912         about gnulib, not GSS.
19913
19914 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19915
19916         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19917         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19918         for Emacs.
19919         * build-aux/pmccabe2html: Make Makefile.am example code more
19920         cut-and-paste friendly.
19921
19922 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19923
19924         * tests/test-net_if.c: New file.
19925         * modules/net_if-tests: New file.
19926
19927 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         pthread: add pthread_spin_destroy
19930         * lib/pthread.in.h (pthread_spin_destroy): New function.
19931
19932 2010-09-19  Bruno Haible  <bruno@clisp.org>
19933
19934         gnulib-tool: Fix --help output.
19935         * gnulib-tool (func_usage): Fix help message.
19936         Reported by Reuben Thomas <rrt@sc3d.org>.
19937
19938 2010-09-18  Jim Meyering  <meyering@redhat.com>
19939
19940         maint.mk: avoid unexpanded \n in two diagnostics
19941         * top/maint.mk (sc_prohibit_always_true_header_tests):
19942         Don't use a literal \n in a halt=... assignment.  It would not be
19943         expanded, and the two \n bytes would appear in the diagnostic output
19944         rather than the desired newline.  Use halt=$$(printf ... instead.
19945         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19946
19947 2010-09-18  Bruno Haible  <bruno@clisp.org>
19948
19949         netinet_in: Doc tweak.
19950         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19951         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19952
19953 2010-09-18  Jim Meyering  <meyering@redhat.com>
19954
19955         init.sh: correct an outdated comment
19956         * tests/init.sh (create_exe_shims_):  s/function/alias/
19957
19958         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19959         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19960         a file named "*.exe" is removed between the glob expansion and the
19961         processing of that oddly named file.
19962
19963 2010-09-17  Eric Blake  <eblake@redhat.com>
19964
19965         mirbsd: add some more support
19966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19967         in BSD family.
19968         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19969         devices as OpenBSD.
19970         * m4/host-os.m4 (mirbsd): Add MirBSD.
19971
19972         tests: fix unportable assumption on sys/wait.h
19973         * tests/test-sys_wait.c (main): Relax test.
19974         * tests/test-stdlib.c (main): Likewise.
19975
19976         init.sh: accomodate directory with no .exes
19977         * tests/init.sh: Accomodate directory containing only scripts.
19978
19979         tests: avoid compiler warning
19980         * tests/test-stdlib.c (main): Use the variable.
19981
19982         fdutimens, fdutimensat: update signature, again
19983         * lib/utimens.h (gl_futimens): Delete, and move signature...
19984         (fdutimens): ...here.
19985         (fdutimensat): Rearrange signature.
19986         (lutimensat): Rename variable for clarity.
19987         * lib/fdutimensat.c (fdutimensat): Update signature.
19988         * lib/utimens.c (fdutimens): Likewise.
19989         (gl_futimens): Delete.
19990         (utimens, lutimens): Update callers.
19991         * lib/futimens.c (futimens): Likewise.
19992         * tests/test-fdutimensat.c: Likewise.
19993         * tests/test-utimens.c: Likewise.
19994         * tests/test-futimens.h: Update comment.
19995         * NEWS: Mention this.
19996         Suggested by Paul Eggert.
19997
19998 2010-09-17  Bruno Haible  <bruno@clisp.org>
19999
20000         Take over the maintenance of some older macros from Autoconf.
20001         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20002         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20003         GNU Autoconf.
20004         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20005         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20006
20007 2010-09-17  Eric Blake  <eblake@redhat.com>
20008
20009         fdutimensat: drop atflag validation
20010         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20011         with valid fd, to close a race scenario where futimens is
20012         unsupported and FILE was replaced by a symlink.
20013         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20014         accordingly.
20015         Suggested by Paul Eggert.
20016
20017 2010-09-16  Bruno Haible  <bruno@clisp.org>
20018
20019         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20020         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20021
20022 2010-09-16  Bruno Haible  <bruno@clisp.org>
20023
20024         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20025         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20026         login_tty exists.
20027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20028
20029 2010-09-16  Bruno Haible  <bruno@clisp.org>
20030
20031         login_tty: Make the replacement code work on BSD systems.
20032         * lib/login_tty.c: Include <sys/ioctl.h>.
20033         (login_tty): Use ioctl TIOCSCTTY when available.
20034         * modules/login_tty (Depends-on): Add sys_ioctl.
20035         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20036
20037 2010-09-16  Bruno Haible  <bruno@clisp.org>
20038
20039         login_tty: Stricter unit test.
20040         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20041         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20042         and tcgetsid() after login_tty.
20043         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20044
20045 2010-09-16  Bruno Haible  <bruno@clisp.org>
20046
20047         New module 'tcgetsid'.
20048         * lib/tcgetsid.c: New file.
20049         * m4/tcgetsid.m4: New file.
20050         * modules/tcgetsid: New file.
20051         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20052         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20053         GNULIB_TCGETSID, HAVE_TCGETSID.
20054         * lib/termios.in.h: Include <sys/types.h>.
20055         (tcgetsid): New declaration.
20056         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20057         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20058         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20059         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20060
20061 2010-09-16  Bruno Haible  <bruno@clisp.org>
20062
20063         Tests for module 'termios'.
20064         * modules/termios-c++-tests: New file.
20065         * modules/termios-tests: New file.
20066         * tests/test-termios-c++.cc: New file.
20067         * tests/test-termios.c: New file.
20068
20069         New module 'termios'.
20070         * modules/termios: New file.
20071         * lib/termios.in.h: New file.
20072         * m4/termios_h.m4: New file.
20073         * doc/posix-headers/termios.texi: Mention the new module.
20074
20075 2010-09-16  Eric Blake  <eblake@redhat.com>
20076
20077         fdutimensat: add an atflag parameter
20078         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20079         * lib/utimens.h (fdutimensat): Update prototype.
20080         * tests/test-fdutimensat.c: Adjust test to match.
20081         * NEWS: Document the change.
20082         Suggested by Paul Eggert.
20083
20084 2010-09-16  Bruno Haible  <bruno@clisp.org>
20085
20086         Fix typos in comments.
20087         * lib/striconveh.h: Fix typo in comment.
20088         * lib/login_tty.c (login_tty): Likewise.
20089
20090 2010-09-15  Bruno Haible  <bruno@clisp.org>
20091
20092         stdlib: clarify MirBSD WEXITSTATUS bug
20093         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20094         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20095
20096 2010-09-15  Eric Blake  <eblake@redhat.com>
20097
20098         stdlib: work around MirBSD WEXITSTATUS bug
20099         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20100         * modules/stdlib (Depends-on): Add sys_wait.
20101         * tests/test-sys_wait.c (main): Enhance test.
20102         * tests/test-stdlib.c (main): Likewise.
20103         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20104
20105         docs: mention MacOS issue with WEXITSTATUS(constant)
20106         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20107         issue.
20108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20109
20110         strnlen: add tests
20111         * modules/strnlen-tests: New file.
20112         * tests/test-strnlen.c: Likewise.
20113
20114 2010-09-14  Bruno Haible  <bruno@clisp.org>
20115
20116         unistr/base: Avoid link errors when module 'libunistring' is also used.
20117         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20118         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20119         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20120         Declare also when HAVE_LIBUNISTRING is set.
20121         Reported by Pádraig Brady <P@draigbrady.com>.
20122
20123 2010-09-14  Eric Blake  <eblake@redhat.com>
20124
20125         test-rawmemchr: make more robust
20126         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20127         (Depends-on, configure.ac): Add needed prerequisites to use it.
20128         * modules/memchr-tests (Files, Depends-on, configure.ac):
20129         Likewise, to avoid implicit reliance on memchr module prereqs.
20130         * tests/test-memchr.c (main): Ensure proper masking.
20131         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20132         reads.
20133
20134         memchr: detect glibc Alpha bug
20135         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20137         Alpha.
20138         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20139         * tests/test-memchr.c (main): Enhance test.
20140         Reported by Nelson H. F. Beebe.
20141
20142 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20143
20144         fts, getcwd, glob: audit for dirfd returning -1
20145         * lib/fts.c (opendir): Remove #define; no longer used.
20146         (opendirat): New arg PDIR_FD.  All callers changed.
20147         (fts_build, _opendir2): Use new opendirat to avoid the need for
20148         dirfd, or for checking whether dirfd returns a negative value.
20149         Don't use opendir; always use openat followed by fdopendir.
20150         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20151         it.
20152         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20153         returns -1 here.
20154         * modules/fts (Depends-on): Remove dirfd.
20155         * modules/getcwd (Depends-on): Likewise.
20156
20157 2010-09-13  Eric Blake  <eblake@redhat.com>
20158
20159         float: fix broken MirBSD header
20160         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20161         * doc/posix-headers/float.texi (float.h): Document it.
20162
20163 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20164
20165         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20166         * lib/fts.c (opendirat): New arg extra_flags.
20167         (__opendir2): Use it to avoid following symlinks when opening
20168         a directory, if symlinks are not supposed to be followed.  See
20169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20170
20171         fdopendir: preserve argument fd before returning
20172         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20173         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20174         (fdopendir): Use them, arranging for FD to be open to the same
20175         directory that it was when it started.  (It might be temporarily
20176         closed while fdopendir is running, so this not thread- or
20177         signal-safe.)  Be careful to do the right thing even when file
20178         descriptors are scarce and dup fails with errno == EMFILE.  See
20179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20180
20181 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20182
20183         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20184         * NEWS: Document change.
20185         * m4/regex.m4: Disable test for regoff_t size.
20186
20187 2010-09-13  Jim Meyering  <meyering@redhat.com>
20188
20189         fts: don't operate on an invalid file descriptor after failed dup
20190         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20191         negative file descriptor.
20192
20193 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         savedir: add streamsavedir, deprecate fdsavedir
20196         * NEWS: Mention deprecation of fdsavedir.
20197         * lib/savedir.c (streamsavedir): New extern function, whose name
20198         ends in "savedir" to be consistent with the others.  This differs
20199         from savedirstream in that it doesn't close its argument.  The
20200         next version of GNU tar will use this instead of fdsavedir, to
20201         avoid some race conditions and conserve file descriptors.
20202         (savedirstream): Reimplement as a wrapper around streamsavedir.
20203         (fdsavedir): Add a comment deprecating this function.  As far as
20204         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20205         * lib/savedir.h (streamsavedir): New decl.
20206         (fdsavedir): Add a comment deprecating this.
20207
20208 2010-09-10  Bruno Haible  <bruno@clisp.org>
20209
20210         langinfo: Fix last commit.
20211         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20212         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20214
20215 2010-09-10  Bruno Haible  <bruno@clisp.org>
20216
20217         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20218         * lib/progreloc.c (O_EXEC): Define fallback.
20219
20220 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20221
20222         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20223         * NEWS: Document recent changes to fcntl-h.
20224         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20225         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20226         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20227         Similarly for O_SEARCH; this last was already true, but not documented.
20228         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20229         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20230         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20231         Likewise.
20232         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20233         is zero, not whether it is defined.
20234         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20235         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20236         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20237
20238 2010-09-10  Bruno Haible  <bruno@clisp.org>
20239
20240         langinfo, nl_langinfo: Fix for IRIX 5.3.
20241         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20242         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20243         HAVE_LANGINFO_YESEXPR.
20244         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20245         HAVE_LANGINFO_YESEXPR.
20246         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20247         HAVE_LANGINFO_T_FMT_AMPM is 0.
20248         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20249         HAVE_LANGINFO_YESEXPR is 0.
20250         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20251         NOEXPR.
20252         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20253         * doc/posix-functions/nl_langinfo.texi: Likewise.
20254         Reported by Eric Blake.
20255
20256 2010-09-10  Bruno Haible  <bruno@clisp.org>
20257
20258         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20259         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20260         on FreeBSD 8.0 and OpenBSD 4.6.
20261         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20262         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20263         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20264         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20265         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20266         ac_includes_default.
20267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20268
20269 2010-09-09  Eric Blake  <eblake@redhat.com>
20270
20271         strsignal: work around NetBSD bug
20272         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20273         * lib/string.in.h (includes): Likewise.
20274         * doc/posix-functions/strsignal.texi (strsignal): Document the
20275         bug.
20276         Reported by Nelson H. F. Beebe.
20277
20278         gnulib-tool: work with NetBSD /bin/sh
20279         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20280         (func_get_description, func_get_comment, func_get_status)
20281         (func_get_notice, func_get_applicability, func_get_filelist)
20282         (func_get_dependencies, func_get_autoconf_early_snippet)
20283         (func_get_autoconf_snippet, func_get_automake_snippet)
20284         (func_get_include_directive, func_get_link_directive)
20285         (func_get_license, func_get_maintainer, func_import): Avoid
20286         shell syntax errors from parsing syntax extensions.
20287
20288 2010-09-09  Bruno Haible  <bruno@clisp.org>
20289
20290         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20291         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20292         a reliable way to determine whether the 'alias' command works.
20293
20294 2010-09-08  Jim Meyering  <meyering@redhat.com>
20295
20296         init.sh: penalize a set-x-impaired shell; don't disqualify it
20297         * tests/init.sh: Too many shells corrupt application stderr when
20298         you set -x, so we can't afford to disqualify them, since at least
20299         on Irix-6.5, that would disqualify all bourne shells.
20300         Instead, use a two-pass approach.
20301         On the first pass, try to find a shell that meets the stricter
20302         condition that set -x does not corrupt stderr.
20303         If no shell meets the stricter condition, retest each candidate
20304         shell, but without that extra condition.  Finally, when
20305         VERBOSE=yes is requested and set -x might cause trouble, simply
20306         issue a warning and refrain from enabling debug output.
20307
20308 2010-09-08  Eric Blake  <eblake@redhat.com>
20309
20310         unsetenv: fix OpenBSD bug
20311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20312         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20313         documentation.
20314         Reported by Jim Meyering.
20315
20316         strtod: work around IRIX 6.5 bug
20317         * lib/strtod.c (strtod): Reparse number on shorter string if
20318         exponent parse was invalid.
20319         * tests/test-strtod.c (main): Add check for "0x1p 2".
20320         Reported by Tom G. Christensen.
20321
20322         getopt: optimize previous patch
20323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20324         empty variable.  Speed up awk script.
20325         Reported by Paolo Bonzini.
20326
20327 2010-09-08  Jim Meyering  <meyering@redhat.com>
20328
20329         test.sh: disqualify shells for which set -x corrupts stderr
20330         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20331         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20332         appear in stderr output.  For example, this command:
20333             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20334         prints "P=1" on those two systems:
20335
20336 2010-09-08  Bruno Haible  <bruno@clisp.org>
20337
20338         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20339         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20340         commands, because some shells ignore redirections when there is an
20341         error in the command lookup.
20342         Reported by Eric Blake.
20343
20344 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20345
20346         * lib/regex.h: Fix a mention of `regex_compile' (should be
20347         `re_compile_pattern').
20348         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20349         (re_set_registers): Correct name of parameter in comment.
20350
20351         * doc/regex.texi: Add documentation for missing syntax flags.
20352         Remove commented-out documentation of defunct syntax option
20353         RE_NO_EMPTY_ALTS.
20354         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20355         Add documentation of re_set_registers.
20356         Document trick to re-use a pattern buffer by setting fastmap manually.
20357         Update documentation of struct re_pattern_buffer per public members.
20358         Uncomment documentation of equivalence class operators and
20359         collating symbol operators, since they are now implemented,
20360         Explain leftmost-longest matching in relation to alternatives.
20361         Tidy documentation of substring matching.
20362         Remove POSIX documentation, which is done better in
20363         glibc, and refer the reader there. Keep BSD API documentation, as
20364         that is not readily available elsewhere.
20365
20366 2010-09-07  Eric Blake  <eblake@redhat.com>
20367
20368         getopt: handle POSIXLY_CORRECT set but not exported
20369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20370         export state of POSIXLY_CORRECT, due to bash set -o posix.
20371         Reported by Dustin J. Mitchell.
20372
20373 2010-09-05  Bruno Haible  <bruno@clisp.org>
20374
20375         gnulib-tool: Highlight the changed options.
20376         * gnulib-tool (func_usage): Display the --import, --add-import,
20377         --remove-import explanations in bold font.
20378
20379 2010-09-06  Karl Berry  <karl@gnu.org>
20380
20381         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20382
20383 2010-09-05  Bruno Haible  <bruno@clisp.org>
20384
20385         uniwidth/width: Update comment.
20386         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20387         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20388
20389 2010-09-05  Bruno Haible  <bruno@clisp.org>
20390
20391         isinf, isnan: Relax license.
20392         * modules/isinf (License): Change from GPL to LGPL, with consent from
20393         Ben Pfaff.
20394         * modules/isnan (License): Likewise.
20395         Requested by Ludovic Courtès.
20396
20397 2010-09-04  Bruno Haible  <bruno@clisp.org>
20398
20399         gnulib-tool: Help migration from --import to --add-import or --update.
20400         * gnulib-tool: Emit a verbose error message when --import is used
20401         without any module name.
20402
20403 2010-09-04  Bruno Haible  <bruno@clisp.org>
20404
20405         Update doc about gnulib-tool.
20406         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20407         'gnulib-tool --update' in more detail.
20408         Reported by Eric Blake.
20409
20410 2010-09-04  Bruno Haible  <bruno@clisp.org>
20411
20412         gnulib-tool: Change --import. New options --add/remove-import.
20413         * gnulib-tool: New options --add-import, --remove-import.
20414         (func_usage): Document them.
20415         (have_associative): Define always.
20416         (func_import): In import mode, don't merge the specified settings with
20417         the cached settings. Implement remove-import mode.
20418         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20419         Explain when to use them versus --import.
20420         (Simple update): Use --add-import instead of --import.
20421         * NEWS: Mention the change.
20422
20423 2010-09-04  Bruno Haible  <bruno@clisp.org>
20424
20425         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20426         separate gnulib.mk.
20427
20428 2010-09-04  Bruno Haible  <bruno@clisp.org>
20429
20430         gnulib-tool: Don't talk about CVS any more.
20431         * gnulib-tool (func_usage, func_import): Write "version control"
20432         instead of CVS.
20433
20434 2010-09-04  Jim Meyering  <meyering@redhat.com>
20435
20436         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20437         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20438         false positives (whose names may be ill-chosen) when searching
20439         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20440         would cause a false-positive.
20441
20442         avoid coreutils "make distcheck" failure
20443         Coreutils tests with an absolute build directory name that contains
20444         a space.  Not quoting this directory name caused a failure.
20445         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20446         * tests/test-vc-list-files-cvs.sh: Likewise.
20447
20448 2010-09-04  Bruno Haible  <bruno@clisp.org>
20449
20450         gnulib-tool: Avoid error when run in a package without Makefile.am.
20451         * gnulib-tool: When collecting the m4dirs in a package that does not
20452         have a Makefile.am, eliminate those directories that contain no
20453         gnulib-cache.m4. Fix expression that counts these directories.
20454
20455 2010-09-04  Bruno Haible  <bruno@clisp.org>
20456
20457         update-copyright test: Improve output when perl is missing or too old.
20458         * tests/test-update-copyright.sh: Move test of Perl version down after
20459         the test whether Perl exists. Provide an explanation relating Perl's
20460         error message to Automake's SKIP: message.
20461
20462 2010-09-04  Bruno Haible  <bruno@clisp.org>
20463
20464         Don't augment PATH in TESTS_ENVIRONMENT.
20465         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20466         set abs_aux_dir instead of augmenting PATH.
20467         * modules/vc-list-files-tests (Makefile.am): Likewise.
20468         * tests/test-update-copyright.sh: Augment PATH here.
20469         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20470         path_prepend_.
20471         * tests/test-vc-list-files-git.sh: Likewise.
20472
20473 2010-09-04  Jim Meyering  <meyering@redhat.com>
20474
20475         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20476         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20477
20478 2010-09-04  Bruno Haible  <bruno@clisp.org>
20479
20480         strdup: Fix compilation error in C++ mode.
20481         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20482         the macro.
20483
20484 2010-09-04  Bruno Haible  <bruno@clisp.org>
20485
20486         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20487         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20488         macro into a function.
20489         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20490
20491 2010-09-04  Bruno Haible  <bruno@clisp.org>
20492
20493         Set PATH_SEPARATOR the same way autoconf does.
20494         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20495         the value of PATH_SEPARATOR the same way autoconf-generated configure
20496         scripts do.
20497         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20498         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20499
20500 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20501
20502         Set PATH_SEPARATOR the same way autoconf does.
20503         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20504         the same way autoconf-generated configure scripts do.
20505         * posix-modules: Likewise.
20506
20507 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20508
20509         hash: fix safe_hasher const typo
20510         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20511         const; otherwise, there is a type error later.
20512
20513 2010-09-02  Jim Meyering  <meyering@redhat.com>
20514
20515         test-update-copyright.sh: require perl 5.8.0
20516         * tests/test-update-copyright.sh: Require 5.8.0,
20517         which Tom G. Christensen has confirmed is adequate,
20518         while 5.6.1 is not.
20519
20520 2010-09-02  Eric Blake  <eblake@redhat.com>
20521
20522         tests: init.sh improvements for re-exec'ing with zsh
20523         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20524         -vx through shell re-exec.
20525         Reported by Tom G. Christensen.
20526
20527         wctype: fix typo in previous commit
20528         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20529         Reported by Ludovic Courtès.
20530
20531 2010-09-02  Jim Meyering  <meyering@redhat.com>
20532
20533         test-update-copyright.sh: skip test if Perl is too old
20534         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20535         Reported by Tom G. Christensen.
20536
20537 2010-09-02  Bruno Haible  <bruno@clisp.org>
20538
20539         wctype: Avoid compilation error on IRIX 6.5.30.
20540         * lib/wctype.in.h (iswblank): Declare with a replacement if
20541         REPLACE_ISWBLANK is set.
20542         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20543         declared. Set REPLACE_ISWBLANK.
20544         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20545         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20546         * doc/posix-headers/wctype.texi: Likewise.
20547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20548
20549 2010-09-01  Bruno Haible  <bruno@clisp.org>
20550
20551         New module 'socketlib'.
20552         * modules/socketlib: New file.
20553         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20554         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20555         * modules/sockets (Depends-on): Add socketlib.
20556         Suggested by Sam Steingold <sds@gnu.org>.
20557
20558 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20559
20560         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20561
20562         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20563         when one needs search access to a directory but not read access.
20564         On systems where it is available, it works in some cases where
20565         O_RDONLY does not, namely on directories that are searchable but
20566         not readable, and which need only to be searchable.  If O_SEARCH
20567         is not available, fall back to the traditional method of using
20568         O_RDONLY.
20569
20570         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20571         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20572         when opening a directory that needs only to be searchable.
20573         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20574         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20575         * lib/openat-proc.c (openat_proc_name): Likewise.
20576         * lib/openat.c (openat_needs_fchdir): Likewise.
20577         * lib/save-cwd.c (save_cwd): Likewise.
20578         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20579
20580 2010-08-28  Bruno Haible  <bruno@clisp.org>
20581
20582         New module 'host-cpu-c-abi'.
20583         * modules/host-cpu-c-abi: New file.
20584         * m4/host-cpu-c-abi.m4: New file, based on part of
20585         clisp/src/m4/general.m4.
20586         Requested by Sam Steingold <sds@gnu.org>.
20587
20588 2010-08-31  Eric Blake  <eblake@redhat.com>
20589         and Jim Meyering  <meyering@redhat.com>
20590
20591         hash: factor, and guard against misbehaving hasher function
20592         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20593         of table->hasher's return value.  Also protect against a hash value
20594         so large that adding it to table->bucket results in a NULL pointer.
20595         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20596         Use it in place of open-coded check-and-abort.
20597
20598 2010-08-30  Bruno Haible  <bruno@clisp.org>
20599
20600         hash: silence spurious clang warning
20601         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20602         Reported by Eric Blake.
20603
20604 2010-08-30  Eric Blake  <eblake@redhat.com>
20605
20606         strstr, memmem, strcasestr: avoid leaked shell message
20607         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20608         FreeBSD.
20609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20610         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20611
20612         tests: silence clang warning
20613         * tests/test-malloca.c (do_allocation): Avoid dead store.
20614
20615 2010-08-29  Bruno Haible  <bruno@clisp.org>
20616
20617         gettext: Fix recent mistake.
20618         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20619
20620 2010-08-29  Bruno Haible  <bruno@clisp.org>
20621
20622         selinux-h: Offer a --without-selinux option.
20623         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20624         --without-selinux was specified, skip all tests and define
20625         HAVE_SELINUX_SELINUX_H to 0.
20626         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20627         set LIB_SELINUX to empty.
20628         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20629         gl_LIBSELINUX. If --without-selinux was specified, replace
20630         selinux/context.h.
20631         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20632
20633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20634             Bruno Haible  <bruno@clisp.org>
20635
20636         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20637         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20638         of HAVE_REALLOC.
20639         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20640         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20641         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20642         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20643
20644 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20645             Bruno Haible  <bruno@clisp.org>
20646
20647         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20648         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20649         HAVE_CALLOC.
20650         * lib/xmalloc.c: Update accordingly.
20651         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20652         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20653         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20654
20655 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20656             Bruno Haible  <bruno@clisp.org>
20657
20658         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20659         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20660         HAVE_MALLOC.
20661         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20662         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20663         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20664
20665 2010-08-29  Bruno Haible  <bruno@clisp.org>
20666
20667         Update modules list.
20668         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20669         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20670         (String handling <string.h>): Add astrxfrm.
20671         (File system functions): Add readlinkat.
20672
20673 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20674
20675         Tests for module 'realloc-gnu'.
20676         * modules/realloc-gnu-tests: New file.
20677         * tests/test-realloc-gnu.c: New file.
20678
20679         Tests for module 'calloc-gnu'.
20680         * modules/calloc-gnu-tests: New file.
20681         * tests/test-calloc-gnu.c: New file.
20682
20683         Tests for module 'malloc-gnu'.
20684         * modules/malloc-gnu-tests: New file.
20685         * tests/test-malloc-gnu.c: New file.
20686
20687 2010-08-28  Bruno Haible  <bruno@clisp.org>
20688
20689         Rename module 'realloc' -> 'realloc-gnu'.
20690         * modules/realloc-gnu: New file, copied from modules/realloc.
20691         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20692         obsolete.
20693         * modules/mgetgroups (Depends-on): Update.
20694         * doc/posix-functions/realloc.texi: Update.
20695         * NEWS: Mention the change.
20696
20697         Rename module 'calloc' -> 'calloc-gnu'.
20698         * modules/calloc-gnu: New file, copied from modules/calloc.
20699         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20700         obsolete.
20701         * doc/posix-functions/calloc.texi: Update.
20702         * NEWS: Mention the change.
20703
20704         Rename module 'malloc' -> 'malloc-gnu'.
20705         * modules/malloc-gnu: New file, copied from modules/malloc.
20706         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20707         obsolete.
20708         * modules/argp (Depends-on): Update.
20709         * modules/regex (Depends-on): Update.
20710         * doc/posix-functions/malloc.texi: Update.
20711         * NEWS: Mention the change.
20712
20713 2010-08-28  Eric Blake  <eblake@redhat.com>
20714
20715         pread, pwrite: add missing dependency
20716         * modules/pread (Depends-on): Add extensions.
20717         * modules/pwrite (Depends-on): Likewise.
20718
20719 2010-08-28  Bruno Haible  <bruno@clisp.org>
20720
20721         unistr/u*-strchr: Fix tests dependencies.
20722         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20723         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20724         Reported by Ian Beckwith <ianb@erislabs.net>.
20725
20726 2010-08-28  Bruno Haible  <bruno@clisp.org>
20727
20728         read-file: Don't occupy too much unused memory.
20729         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20730
20731 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20732             Eric Blake  <eblake@redhat.com>
20733             Bruno Haible  <bruno@clisp.org>
20734
20735         read-file: Avoid memory reallocations with regular files.
20736         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20737         (fread_file): With regular files, use the remaining length as the
20738         initial buffer size.  Check against overflow.
20739         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20740         sys_stat.
20741
20742 2010-08-28  Bruno Haible  <bruno@clisp.org>
20743
20744         ftello: Relax license.
20745         * modules/ftello (License): Relax to LGPLv2+.
20746         Reported by Eric Blake.
20747
20748 2010-08-28  Bruno Haible  <bruno@clisp.org>
20749
20750         Avoid relocwrapper link errors due to gnulib replacement functions.
20751         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20752         function.
20753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20754
20755 2010-08-28  Bruno Haible  <bruno@clisp.org>
20756
20757         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20758         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20759         defined.
20760         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20761         Suggested by Eric Blake.
20762
20763 2010-08-28  Bruno Haible  <bruno@clisp.org>
20764
20765         sys_socket, netdb: Ensure socklen_t gets defined.
20766         * modules/sys_socket (Depends-on): Add socklen.
20767         * modules/netdb (Depends-on): Likewise.
20768         * modules/getaddrinfo (Depends-on): Remove socklen.
20769         * modules/getsockopt (Depends-on): Likewise.
20770         * modules/setsockopt (Depends-on): Likewise.
20771         * tests/test-sys_socket.c: Check that socklen_t is defined.
20772         * tests/test-netdb.c: Likewise.
20773         * m4/socklen.m4: Update comments.
20774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20775
20776 2010-08-27  Eric Blake  <eblake@redhat.com>
20777
20778         login_tty: add missing dependency
20779         * modules/login_tty (Depends-on): Add pty.
20780
20781 2010-08-26  Eric Blake  <eblake@redhat.com>
20782
20783         lib-symbol-versions: fix m4 quoting
20784         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20785         format for AC_LINK_IFELSE.
20786
20787         glob: fix compile test
20788         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20789
20790         btowc: fix missing file
20791         * modules/btowc (Files): Also ship locale-fr.m4.
20792
20793         lseek: fix link test
20794         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20795         AC_LINK_IFELSE.
20796
20797         include_next: silence autoconf 2.68 warning
20798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20799         AC_COMPILE_IFELSE as special.
20800         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20801         autoconf < 2.68.
20802
20803         acl: fix compilation test
20804         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20805         AC_COMPILE_IFELSE.
20806
20807 2010-08-26  Bruno Haible  <bruno@clisp.org>
20808
20809         Modernize AC_TRY_RUN invocations.
20810         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20812         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20813         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20814         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20815         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20818         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20820         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20821         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20822         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20823         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20825         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20826         gl_MBRLEN_NUL_RETVAL): Likewise.
20827         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20828         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20829         Likewise.
20830         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20831         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20832         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20833         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20834         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20835         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20836         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20837         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20838         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20839         Likewise.
20840         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20841         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20843         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20847         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20848         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20850
20851 2010-08-26  Bruno Haible  <bruno@clisp.org>
20852
20853         Modernize AC_TRY_LINK invocations.
20854         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20855         AC_TRY_LINK.
20856         * m4/argp.m4 (gl_ARGP): Likewise.
20857         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20858         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20859         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20860         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20862         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20863         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20864         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20865         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20866         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20867         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20868         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20869         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20870         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20871         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20872         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20873         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20874         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20875         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20876         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20877         Likewise.
20878         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20879         Likewise.
20880         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20881         Likewise.
20882         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20884         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20885         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20886         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20887         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20888         * m4/servent.m4 (gl_SERVENT): Likewise.
20889         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20890         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20892         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20893         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20894         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20897         * modules/tsearch-tests (configure.ac): Likewise.
20898
20899 2010-08-26  Bruno Haible  <bruno@clisp.org>
20900
20901         Modernize AC_TRY_COMPILE invocations.
20902         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20903         AC_TRY_COMPILE.
20904         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20905         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20906         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20907         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20908         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20909         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20910         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20911         * m4/lock.m4 (gl_LOCK): Likewise.
20912         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20914         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20915         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20916         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20917         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20918         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20920         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20921         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20922         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20923         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20924         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20925         extraneous semicolon.
20926
20927 2010-08-26  Jim Meyering  <meyering@redhat.com>
20928
20929         stat-time: relax license LGPL
20930         * modules/stat-time (License): Change from GPL to LGPL,
20931         with consent from all contributors, for use in libguile.
20932         Requested by Ludovic Courtès.
20933
20934 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20935
20936         poll: return immediately on POLLHUP.
20937         * lib/poll.c (poll): Always set timeout before wait_timeout is
20938         computed.
20939
20940 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20941
20942         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20943         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20944         rmdir ("dir/.//"), unlinkat.
20945
20946 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20947
20948         stdbool: avoid spurious failure with modern xlc
20949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20950
20951 2010-08-24  Bruno Haible  <bruno@clisp.org>
20952
20953         getloadavg: simplify code
20954         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20955         gl_have_func. Update comments.
20956
20957 2010-08-24  Eric Blake  <eblake@redhat.com>
20958
20959         getloadavg: don't define SVR4 on cygwin
20960         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20961         only define SVR4 when -lkvm is required.
20962         Reported by Yaakov Selkowitz.
20963
20964 2010-08-24  Bruno Haible  <bruno@clisp.org>
20965
20966         priv-set: fix comment
20967         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20968
20969 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20970
20971         priv-set: fix comments
20972         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20973         to match code, as suggested by David Bartley in:
20974         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20975
20976 2010-08-23  Eric Blake  <eblake@redhat.com>
20977
20978         stdbool: avoid rejecting clang
20979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20980         * tests/test-stdbool.c: Enable more tests if using the system
20981         <stdbool.h> instead of the gnulib replacement.
20982         (main): Move xlc bug test to a runtime test for all compilers.
20983         Reported by Anders Kaseorg.
20984
20985         argz: fix shell quoting issue
20986         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20987         Reported by Charles Wilson.
20988
20989 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20990             Erik Faye-Lund <kusmabite@gmail.com>
20991
20992         poll, select: handle ERROR_BROKEN_PIPE.
20993         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20994         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20995         * lib/select.c (win32_compute_revents): Do not mark a pipe
20996         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20997
20998 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20999
21000         fts: allow compilation with C++
21001         * lib/fts_.h: Specify extern "C" linkage with C++.
21002
21003 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21004
21005         Fix gnulib-tool sed script de-commentation for AIX sed.
21006         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21007         sed.
21008
21009 2010-08-17  Eric Blake  <eblake@redhat.com>
21010
21011         test-stddef: test for (some) offsetof bugs
21012         * tests/test-stddef.c: Enhance test to ensure correct type of
21013         offsetof.
21014         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21015         that we are not fixing at this time.
21016
21017 2010-08-15  Bruno Haible  <bruno@clisp.org>
21018
21019         stpncpy: Allow stpncpy to be defined as a macro.
21020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21021         if it's already correctly declared.
21022         * lib/string.in.h (stpncpy): Undefine before redefining.
21023         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21024
21025 2010-08-14  Bruno Haible  <bruno@clisp.org>
21026
21027         Rename module 'memxfrm' to 'amemxfrm'.
21028         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21029         (amemxfrm): Renamed from memxfrm.
21030         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21031         (amemxfrm): Renamed from memxfrm.
21032         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21033         * NEWS: Mention the change.
21034         * MODULES.html.sh (String handling <string.h>): Update.
21035         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21036         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21037         * lib/unicase/u16-casexfrm.c: Likewise.
21038         * lib/unicase/u32-casexfrm.c: Likewise.
21039         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21040         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21041         * lib/uninorm/u16-normxfrm.c: Likewise.
21042         * lib/uninorm/u32-normxfrm.c: Likewise.
21043         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21044         memxfrm.
21045         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21046         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21047         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21048         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21049         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21050         Suggested by Paul Eggert.
21051
21052 2010-08-14  Bruno Haible  <bruno@clisp.org>
21053
21054         Tests for module 'astrxfrm'.
21055         * modules/astrxfrm-tests: New file.
21056         * tests/test-astrxfrm.c: New file.
21057
21058         New module 'astrxfrm'.
21059         * lib/astrxfrm.h: New file.
21060         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21061         * modules/astrxfrm: New file.
21062
21063 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21064
21065         regex: Tweak doc.
21066         * doc/regex.texi (Overview): Don't mention regex.c.
21067         (GNU Regular Expression Compiling): Likewise.
21068         (Match-end-of-line Operator): Mention 'not_eol'.
21069
21070 2010-08-14  Brian Gough  <bjg@gnu.org>
21071             Bruno Haible  <bruno@clisp.org>
21072
21073         git-merge-changelog: add doc relating to use with bzr and hg.
21074         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21075
21076 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21077
21078         pthread: fix pthread.h creation for srcdir != builddir
21079         * modules/pthread (Makefile.am): Fix the rule to work also in a
21080         non-srcdir build.
21081
21082 2010-08-13  Karl Berry  <karl@gnu.org>
21083
21084         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21085         * doc/posix-*/*: force line break before @url of POSIX
21086         specifications.
21087         Suggested by Werner Lemberg.
21088
21089 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21090
21091         strtod: fix const diagnostic
21092         * lib/strtod.c (strtod): Don't assign const char * to char *,
21093         as this elicits a warning from GCC when warnings are enabled.
21094
21095 2010-08-10  Pádraig Brady <P@draigbrady.com>
21096         and Eric Blake  <eblake@redhat.com>
21097
21098         copy-acl: ignore ENOTSUP on HP-UX
21099         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21100         so that it is available for HP-UX.
21101         * lib/copy-acl.c (qcopy_acl): Use it.
21102         Reported by Patrick M. Callahan.
21103
21104 2010-08-10  Eric Blake  <eblake@redhat.com>
21105
21106         open, chown: relax license
21107         * modules/open (License): Change to LGPLv2+, with consent by all
21108         authors, for use in augeas.
21109         * modules/chown (License): Likewise.
21110         * modules/lchown (Likewise): Likewise.
21111         Requested by Adam Stokes.
21112
21113 2010-08-09  Karl Berry  <karl@gnu.org>
21114
21115         * build-aux/ar-lib: new file, import from Automake.
21116         * config/srclist.txt: autocheck for updates.
21117
21118 2010-08-09  Eric Blake  <eblake@redhat.com>
21119
21120         readlinkat: adjust client modules
21121         * modules/areadlinkat (Depends-on): Use readlinkat, not
21122         symlinkat.
21123         * modules/areadlinkat-with-size (Depends-on): Likewise.
21124
21125         mknod: be more vocal about danger of running tests as root
21126         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21127         root, since that is just asking for problems.
21128         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21129
21130         readlinkat: split into its own module
21131         * modules/symlinkat: Split readlinkat...
21132         * modules/readlinkat: ...into separate module.
21133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21134         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21135         * lib/symlinkat.c (readlinkat): Move...
21136         * lib/readlinkat.c: ...into new file.
21137         * modules/symlinkat-tests: Split readlinkat test...
21138         * modules/readlinkat-tests: ...into separate module.
21139         * tests/test-symlinkat.c: Split...
21140         * tests/test-readlinkat.c: ...into new file.
21141         * NEWS: Document the split.
21142         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21143         * lib/unistd.in.h (readlinkat): Likewise.
21144         Suggested by Bruno Haible.
21145
21146 2010-08-08  Bruno Haible  <bruno@clisp.org>
21147
21148         memxfrm: Speed up.
21149         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21150         that usually only one call to strxfrm is necessary for each string
21151         part.
21152         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21153
21154 2010-08-07  Karl Berry  <karl@gnu.org>
21155
21156         * doc/posix-headers/limits.texi,
21157         * doc/posix-functions/malloc.texi,
21158         * doc/posix-functions/strsignal.texi: missing @item.
21159         * doc/ld-version-script.texi: spurious leading i.
21160         * doc/regex.texi (Interval Operators): no commas inside @var.
21161
21162 2010-08-01  Bruno Haible  <bruno@clisp.org>
21163
21164         Integrate the regex documentation.
21165         * doc/gnulib.texi: Define 'cn' index.
21166         (Regular expressions): New a chapter that includes regex.texi and
21167         regexprops-generic.texi.
21168         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21169         syntax.
21170
21171         Whitespace cleanup.
21172         * doc/regex.texi: Remove trailing spaces.
21173
21174         Add regex documentation.
21175         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21176         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21177         Written by Kathy A. Hargreaves and Karl Berry.
21178
21179 2010-08-01  Bruno Haible  <bruno@clisp.org>
21180
21181         link: Update documentation.
21182         * doc/posix-functions/link.texi: Update regarding Solaris.
21183
21184 2010-07-31  Bruno Haible  <bruno@clisp.org>
21185
21186         Update modules list.
21187         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21188         (String handling <string.h>): Add memcmp2, memxfrm.
21189         (Container data structures): Add xlist, xsublist, xoset.
21190         (Core language properties): Add alignof, unused-parameter.
21191         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21192         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21193         (Unibyte characters <ctype.h>): New section.
21194         (String handling <string.h>): New section.
21195         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21196         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21197         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21198         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21199         tan, tanh, tanl, y0, y1, yn.
21200         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21201         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21202         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21203         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21204         unlockpt, vdprintf, vdprintf-posix.
21205         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21206         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21207         xconcat-filename.
21208         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21209         getdtablesize, pipe2, pipe2-safer.
21210         (Security): New section.
21211         (Networking functions): Add accept4.
21212         (Signal handling): Add sigpipe.
21213         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21214         mbmemcasecoll.
21215         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21216         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21217         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21218         pipe-filter-ii.
21219         (Misc): Add argp-version-etc, login_tty, parse-duration.
21220
21221 2010-07-31  Bruno Haible  <bruno@clisp.org>
21222
21223         Improve doc in MODULES.html.
21224         * modules/linkat (Description): Add the word "function".
21225         * modules/mkfifo (Description): Likewise.
21226         * modules/mknod (Description): Likewise.
21227         * modules/remove (Description): Likewise.
21228         * modules/renameat (Description): Likewise.
21229         * modules/stat (Description): Likewise.
21230         * modules/symlink (Description): Likewise.
21231         * modules/unlink (Description): Likewise.
21232
21233 2010-07-31  Bruno Haible  <bruno@clisp.org>
21234
21235         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21236         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21237         option --enable/disable-c++ instead of --enable/disable-cxx.
21238         * NEWS: Mention the change.
21239
21240 2010-07-31  Bruno Haible  <bruno@clisp.org>
21241
21242         readlink, areadlink: Relax test a bit.
21243         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21244         alternative to ENOTDIR.
21245         * tests/test-areadlink.h (test_areadlink): Likewise.
21246         Reported by Rainer Tammer.
21247
21248 2010-07-31  Bruno Haible  <bruno@clisp.org>
21249
21250         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21251         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21252         character, perform the search using U_STRCHR.
21253         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21254         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21255         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21256         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21257         Suggested by Paolo Bonzini.
21258
21259 2010-07-31  Bruno Haible  <bruno@clisp.org>
21260
21261         unistr/u*-strstr: Fix dependencies.
21262         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21263         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21264         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21265
21266 2010-07-31  Bruno Haible  <bruno@clisp.org>
21267
21268         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21269         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21270         the beginning of the loop.
21271         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21272         cases in 'switch' statement.
21273
21274         unistr/u8-strchr: Fix several bugs.
21275         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21276         the string. When not found, return NULL, not a pointer near the end.
21277
21278         More tests for unistr/u8-strchr.
21279         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21280         that the function does not read past the first occurrence of the byte
21281         being searched.
21282         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21283         * tests/unistr/test-u16-strchr.c (main): New function.
21284         * tests/unistr/test-u32-strchr.c (main): New function.
21285
21286 2010-07-31  Bruno Haible  <bruno@clisp.org>
21287
21288         posix-modules: Ignore backup files of documentation files.
21289         * posix-modules: grep only through files named *.texi.
21290
21291 2010-07-31  Bruno Haible  <bruno@clisp.org>
21292
21293         symlinkat: Fix documentation.
21294         * doc/posix-functions/readlinkat.texi: Fix module name.
21295
21296 2010-07-31  Bruno Haible  <bruno@clisp.org>
21297
21298         fchownat: Replace also when chown has the trailing slash bug.
21299         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21300         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21301         introduced on 2010-04-10.
21302         Reported by Rainer Tammer.
21303
21304 2010-07-31  Bruno Haible  <bruno@clisp.org>
21305
21306         linkat: Work around AIX 7.1 bug.
21307         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21308         whether linkat handles trailing slash correctly. If not, replace linkat
21309         and define LINKAT_TRAILING_SLASH_BUG.
21310         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21311         check whether (fd1,file1) points to a directory if file1 or file2 ends
21312         in a slash. Code taken from lib/link.c.
21313         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21314         Reported by Rainer Tammer.
21315
21316 2010-07-31  Bruno Haible  <bruno@clisp.org>
21317
21318         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21319         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21320         This disables an xlc optimization that was causing wrong test results.
21321         Reported by Rainer Tammer.
21322
21323 2010-07-31  Bruno Haible  <bruno@clisp.org>
21324
21325         iconv: Work around AIX 6.1..7.1 bug.
21326         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21327         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21328         cross-compiling, guess no on all versions of AIX.
21329         Reported by Rainer Tammer.
21330
21331 2010-07-31  Bruno Haible  <bruno@clisp.org>
21332
21333         readlink: Relax test a bit.
21334         * tests/test-readlink.h (test_readlink): Allow different errno value
21335         when readlink is called with a file name that ends in / and refers to
21336         a file.
21337         Suggested by Eric Blake.
21338         Reported by Rainer Tammer.
21339
21340 2010-07-31  Bruno Haible  <bruno@clisp.org>
21341
21342         copysign: Does not require -lm on glibc systems.
21343         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21344         gl_COMMON_DOUBLE_MATHFUNC.
21345         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21346
21347 2010-07-31  Bruno Haible  <bruno@clisp.org>
21348
21349         duplocale: Work around AIX 7.1 bug.
21350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21351         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21352         * lib/duplocale.c (rpl_duplocale): Update comment.
21353         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21354         Reported by Rainer Tammer.
21355
21356 2010-07-30  Bruno Haible  <bruno@clisp.org>
21357
21358         dirfd: Avoid link error on AIX 7.1.
21359         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21360         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21361         exist, set REPLACE_DIRFD.
21362         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21363         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21364         * doc/posix-functions/dirfd.texi: Update.
21365         Reported by Rainer Tammer.
21366
21367 2010-07-30  Eric Blake  <eblake@redhat.com>
21368
21369         strtod: next round of AIX fixes
21370         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21371         exponent.
21372         * tests/test-strtod.c (main): Enhance tests.
21373         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21374         Reported by Rainer Tammer.
21375
21376         futimens: fix configure check
21377         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21378         Reported by Bruno Haible.
21379
21380 2010-07-30  Bruno Haible  <bruno@clisp.org>
21381
21382         getline: Update regarding AIX.
21383         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21384         Reported by Rainer Tammer.
21385
21386 2010-07-30  Bruno Haible  <bruno@clisp.org>
21387
21388         wcwidth: Drop replacement on AIX 7.
21389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21390         AIX 7.
21391         Reported by Rainer Tammer.
21392
21393 2010-07-30  Bruno Haible  <bruno@clisp.org>
21394
21395         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21396         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21397         a 'char *'.
21398         Reported by Rainer Tammer.
21399
21400 2010-07-30  Bruno Haible  <bruno@clisp.org>
21401
21402         unlink: Update regarding AIX.
21403         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21404         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21405         Reported by Rainer Tammer.
21406
21407 2010-07-30  Bruno Haible  <bruno@clisp.org>
21408
21409         symlink: Update regarding AIX.
21410         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21412         Reported by Rainer Tammer.
21413
21414 2010-07-30  Bruno Haible  <bruno@clisp.org>
21415
21416         strndup: Update regarding AIX.
21417         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21418         AIX 7.
21419         Reported by Rainer Tammer.
21420
21421 2010-07-30  Bruno Haible  <bruno@clisp.org>
21422
21423         stat: Update regarding AIX.
21424         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21425         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21426         Reported by Rainer Tammer.
21427
21428 2010-07-30  Bruno Haible  <bruno@clisp.org>
21429
21430         truncl: Fix autoconf test.
21431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21432         whether truncl works.
21433         Reported by Rainer Tammer.
21434
21435 2010-07-30  Bruno Haible  <bruno@clisp.org>
21436
21437         round: Update regarding AIX.
21438         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21439         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21440         Reported by Rainer Tammer.
21441
21442 2010-07-30  Bruno Haible  <bruno@clisp.org>
21443
21444         rename: Update regarding AIX.
21445         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21446         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21447         Reported by Rainer Tammer.
21448
21449 2010-07-30  Bruno Haible  <bruno@clisp.org>
21450
21451         printf.m4: Update regarding AIX.
21452         * m4/printf.m4: Update comments regarding AIX.
21453         Reported by Rainer Tammer.
21454
21455 2010-07-30  Bruno Haible  <bruno@clisp.org>
21456
21457         iconv: Update regarding AIX.
21458         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21459         AIX 7.
21460         Reported by Rainer Tammer.
21461
21462 2010-07-30  Bruno Haible  <bruno@clisp.org>
21463
21464         getopt: Update regarding AIX.
21465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21466         no on AIX.
21467         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21468         Reported by Rainer Tammer.
21469
21470 2010-07-30  Bruno Haible  <bruno@clisp.org>
21471
21472         ldexpl; Update regarding AIX.
21473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21474         on AIX 7.
21475         Reported by Rainer Tammer.
21476
21477 2010-07-30  Bruno Haible  <bruno@clisp.org>
21478
21479         frexpl: Update regarding AIX.
21480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21481         on AIX 7.
21482         Reported by Rainer Tammer.
21483
21484 2010-07-30  Bruno Haible  <bruno@clisp.org>
21485
21486         open, fopen: Update regarding AIX.
21487         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21488         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21489         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21490         * doc/posix-functions/fopen.texi: Likewise.
21491         Reported by Rainer Tammer.
21492
21493 2010-07-30  Bruno Haible  <bruno@clisp.org>
21494
21495         chown: Update doc regarding AIX.
21496         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21497         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21498         Reported by Rainer Tammer.
21499
21500 2010-07-30  Eric Blake  <eblake@redhat.com>
21501
21502         strtod: fix bug in replacement function on AIX
21503         * lib/strtod.c (strtod): Special case broken "0x" parse in
21504         underlying strtod.
21505         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21506         * doc/posix-functions/strtod.texi (strtod): Likewise.
21507         Reported by Rainer Tammer.
21508
21509 2010-07-30  Bruno Haible  <bruno@clisp.org>
21510
21511         mbrlen: Fix cross-compilation guess for AIX.
21512         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21513         guess. Leftover from 2008-12-22.
21514
21515 2010-07-30  Bruno Haible  <bruno@clisp.org>
21516
21517         mbrtowc: Fix cross-compilation guess for AIX.
21518         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21519         guess. Leftover from 2008-12-21.
21520
21521 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21522
21523         init.sh: work around trap limitation of some shells
21524         * tests/init.sh (setup_): Move exit trap outside of shell function.
21525
21526 2010-07-29  Eric Blake  <eblake@redhat.com>
21527
21528         strtod: aid debugging
21529         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21530         understanding why strtod is rejected.
21531
21532 2010-07-28  Bruno Haible  <bruno@clisp.org>
21533
21534         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21535         * lib/unistr/u8-chr.c: Include <string.h>.
21536         * tests/unistr/test-u8-chr.c: Likewise.
21537         * tests/unistr/test-u16-chr.c: Likewise.
21538         * tests/unistr/test-u32-chr.c: Likewise.
21539         * tests/unistr/test-u8-strchr.c: Likewise.
21540         * tests/unistr/test-u16-strchr.c: Likewise.
21541         * tests/unistr/test-u32-strchr.c: Likewise.
21542         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21543         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21544         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21545         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21546
21547 2010-07-28  Bruno Haible  <bruno@clisp.org>
21548
21549         Use spaces for indentation, not tabs.
21550         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21551
21552 2010-07-27  Bruno Haible  <bruno@clisp.org>
21553
21554         mbspcasecmp: Fix function specification.
21555         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21556         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21557         Reported by Eric Blake <eblake@redhat.com>.
21558
21559 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21560
21561         timespec: use cast and not conditional, as truncation isn't possible
21562         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21563         instead of a conditional.  Comment about the situation in more detail.
21564         This undoes most of the 2009-10-29 patch.
21565
21566 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21567
21568         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21569         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21570         * lib/unistr/u8-strchr.c: Likewise.
21571         * modules/unistr/u8-chr: Depend on memchr.
21572
21573         unistr/u*-strchr: add tests
21574         * modules/unistr/u8-strchr-tests: New file.
21575         * modules/unistr/u16-strchr-tests: New file.
21576         * modules/unistr/u32-strchr-tests: New file.
21577         * tests/unistr/test-strchr.h: New file.
21578         * tests/unistr/test-u8-strchr.c: New file.
21579         * tests/unistr/test-u16-strchr.c: New file.
21580         * tests/unistr/test-u32-strchr.c: New file.
21581
21582         unistr/u*-chr: test multibyte sequences more
21583         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21584         test vector.
21585         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21586         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21587         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21588
21589         unistr/u*-chr: test multibyte sequences
21590         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21591
21592         unistr/u*-chr: prepare for multibyte tests
21593         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21594         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21595         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21596         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21597         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21598         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21599
21600 2010-07-18  Bruno Haible  <bruno@clisp.org>
21601
21602         unistr/u8-strchr: Optimize non-ASCII argument case.
21603         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21604         because the first byte often matches anyway.
21605         Reported by Pádraig Brady <P@draigbrady.com>.
21606
21607 2010-07-15  Karl Berry  <karl@gnu.org>
21608
21609         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21610
21611 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21612
21613         getcwd: on Solaris, work better if ancestors are inaccessible
21614         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21615         buffer and size, try again with a large buffer.  This works better
21616         on Solaris, since its getcwd succeeds even if the path to the root
21617         is inaccessible, and this is helpful in common cases such as .zfs
21618         hidden directories.  Problem reported by J Chapman Flack in
21619         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21620         Use system getcwd if it's declared, not merely if it's partly
21621         working; use the partly-working test only to avoid needless effort
21622         if the system getcwd fails.
21623         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21624         comment that was already obsolete and is now even more obsolete.
21625         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21626         now might call strdup.
21627
21628 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21629
21630         pthread: Add enough so that coreutils/src/sort.c compiles.
21631         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21632         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21633         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21634         Include <sys/types.h>, in case it defines pthread_t.
21635         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21636         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21637         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21638         (pthread_rwlockattr_t, pthread_spinlock_t):
21639         New typedefs, if HAVE_PTHREAD_T is not defined.
21640         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21641         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21642         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21643         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21644         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21645         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21646         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21647         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21648         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21649         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21650         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21651         New macros.
21652         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21653         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21654         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21655         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21656         (pthread_spin_unlock): New dummy functions.
21657         (pthread_create): Return EAGAIN; don't set errno.
21658         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21659         require AC_C_INLINE.
21660         * modules/pthread (Depends-on): Add sched, time.
21661         (pthread.h): Use AM_V_GEN.
21662
21663 2010-07-13  Bruno Haible  <bruno@clisp.org>
21664
21665         striconveh: Don't malloc memory if the result buffer is sufficient.
21666         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21667         buffer if its size is sufficient.
21668         Reported by Ludovic Courtès <ludo@gnu.org>.
21669
21670 2010-07-13  Bruno Haible  <bruno@clisp.org>
21671
21672         strtod: Add safety check.
21673         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21674
21675 2010-07-12  Bruno Haible  <bruno@clisp.org>
21676
21677         Unify tests that set gl_cv_func_ldexpl_no_libm.
21678         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21679         gl_FUNC_LDEXPL.
21680         (gl_FUNC_LDEXPL): Invoke it.
21681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21682
21683 2010-07-12  Bruno Haible  <bruno@clisp.org>
21684
21685         Unify tests that set gl_cv_func_ldexp_no_libm.
21686         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21687         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21688         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21689         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21690         * modules/strtod (Files): Add m4/ldexp.m4.
21691
21692 2010-07-12  Bruno Haible  <bruno@clisp.org>
21693
21694         Unify tests that set gl_cv_func_frexpl_no_libm.
21695         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21696         gl_FUNC_FREXPL_NO_LIBM.
21697         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21699
21700 2010-07-12  Bruno Haible  <bruno@clisp.org>
21701
21702         Unify tests that set gl_cv_func_frexp_no_libm.
21703         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21704         gl_FUNC_FREXP_NO_LIBM.
21705         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21706         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21707
21708 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21709
21710         memcoll: clarify sizes versus lengths, document better, and tweak perf
21711         * lib/memcoll.c (strcoll_loop, memcoll0):
21712         Improve quality of descriptive comments.  Name variables
21713         consistently as to whether they are lengths (which do not include
21714         terminating null) versus sizes (which do).
21715         * lib/xmemcoll.c (xmemcoll0): Likewise.
21716         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21717         returned when s1size == 0; this is easier to compile and saves
21718         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21719
21720 2010-07-12  Bruno Haible  <bruno@clisp.org>
21721
21722         Tests for module '_Exit'.
21723         * modules/_Exit-tests: New file.
21724         * tests/test-_Exit.sh: New file.
21725         * tests/test-_Exit.c: New file.
21726
21727         New module '_Exit'.
21728         * lib/stdlib.in.h (__attribute__): New macro.
21729         (_Exit): New declaration.
21730         * lib/_Exit.c: New file.
21731         * m4/_Exit.m4: New file.
21732         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21733         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21734         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21735         * modules/_Exit: New file.
21736         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21737         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21738
21739 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21740
21741         strtod: make it more-accurate typically, and don't require libm
21742         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21743         Include limits.h.  Don't include string.h.
21744         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21745         (locale_isspace): New function, so that no casts are needed to
21746         check whether *s is a space.
21747         (ldexp): Provide an unused dummy if not available.
21748         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21749         (strtod): Use them.  This implementation prefers to use the
21750         underlying strtod if available, falling back on our own code
21751         only to fix known bugs.  This is more likely to produce an
21752         accurate result.  Also, it avoids the use of libm functions.
21753         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21754         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21755         was absent, but it caused a test failure with coreutils.
21756         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21757         with libm.
21758         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21759         * modules/strtod-tests (Makefile.am): Likewise.
21760
21761 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21762             Bruno Haible  <bruno@clisp.org>
21763
21764         unistr/u8-strchr: Optimize ASCII argument case.
21765         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21766
21767 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21768
21769         (x)memcoll: minor tweaks
21770         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21771         is after the type that it qualifies.
21772         (memcoll0): Likewise.
21773         * lib/memcoll.h (memcoll0): Likewise.
21774         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21775         * lib/xmemcoll.h (xmemcoll0): Likewise.
21776         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21777         differs from memcoll in that the NUL byte is part of the argument.
21778         Omit the abort-checks, as performance is a real issue here.  Plus,
21779         the checks were wrong anyway (an off-by-one error).  Omit local
21780         variable 'diff', as it's a bit clearer that way.
21781         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21782         no longer needed.
21783
21784 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21785
21786         (x)memcoll: speedup when input is known to be NUL delimited
21787         * lib/memcoll.c: Include stdlib.
21788         (memcoll0): New function.
21789         (strcoll_loop): New function, refactored for use in both memcoll
21790         and memcoll0.
21791         * lib/memcoll.h (memcoll0): Add prototype.
21792         * lib/xmemcoll.c (xmemcoll0): New function.
21793         (collate_error): New function, refactored for use in both xmemcoll
21794         and xmemcoll0.
21795         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21796         * m4/memcoll.m4: add inline invocation.
21797
21798 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21799
21800         * build-aux/bootstrap: Remove any local translations
21801         from the translation project synchronization directory,
21802         so that local only translations are not distributed.
21803
21804 2010-07-04  Bruno Haible  <bruno@clisp.org>
21805
21806         fsusage: Clarify which code applies to which platforms.
21807         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21808         platform.
21809         * lib/fsusage.c (get_fs_usage): Likewise.
21810
21811 2010-07-04  Bruno Haible  <bruno@clisp.org>
21812
21813         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21814         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21815         Reported by Martin Lambers <marlam@marlam.de>.
21816
21817 2010-07-04  Jim Meyering  <meyering@redhat.com>
21818
21819         hash: once again explicitly disallow insertion of NULL
21820         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21821         inserting a NULL pointer cannot work with these functions.
21822         Add a comment with details.
21823         This reverts part of the 2010-07-01 commit, 5bef1a35
21824         "hash: extend module to deal with non-pointer keys".
21825
21826 2010-07-01  Bruno Haible  <bruno@clisp.org>
21827
21828         stdbool: Update doc.
21829         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21830         Info from Christian Weisgerber <naddy@mips.inka.de>.
21831
21832 2010-07-01  Jim Meyering  <meyering@redhat.com>
21833
21834         hash: extend module to deal with non-pointer keys
21835         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21836         but that allows insertion of non-pointer entries.
21837         Do not disallow an ENTRY value of NULL.
21838         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21839         * lib/hash.h (hash_insert0): Declare.
21840
21841 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21842
21843         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21844         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21845         not present (i.e. with autoconf 2.59 and when using gettextize, not
21846         gnulib), require AC_GNU_SOURCE instead.
21847
21848 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21849
21850         idpriv-drop: Fix tests.
21851         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21852         not to the test-idpriv-droptemp program.
21853
21854 2010-06-29  Bruno Haible  <bruno@clisp.org>
21855
21856         string: Fix syntax error with g++ 2.96.
21857         * lib/string.in.h (__pure__): Remove definition.
21858         (_GL_ATTRIBUTE_PURE): New macro.
21859         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21860         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21861         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21862
21863 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21864
21865         unitypes: Fix bug introduced on 2010-05-18.
21866         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21867
21868 2010-06-22  Eric Blake  <eblake@redhat.com>
21869
21870         memmem: slight optimization
21871         * lib/str-two-way.h (critical_factorization): Update comments.
21872         Reduce work during factorization phase.
21873         Reported by Carlos Bueno <carlos@bueno.org>.
21874
21875 2010-06-21  Bruno Haible  <bruno@clisp.org>
21876
21877         Fix HAVE_CALLOC_POSIX misnomer.
21878         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21879         !HAVE_CALLOC_POSIX.
21880         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21881         HAVE_CALLOC_POSIX.
21882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21883         instead of HAVE_CALLOC_POSIX.
21884         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21885         HAVE_CALLOC_POSIX.
21886
21887         Use modern idiom for calloc() replacement.
21888         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21889         AC_FUNC_CALLOC.
21890         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21891         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21892         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21893         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21894         (gl_REPLACE_CALLOC): New macro.
21895
21896 2010-06-21  Bruno Haible  <bruno@clisp.org>
21897
21898         Fix HAVE_REALLOC_POSIX misnomer.
21899         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21900         !HAVE_REALLOC_POSIX.
21901         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21902         HAVE_REALLOC_POSIX.
21903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21904         instead of HAVE_REALLOC_POSIX.
21905         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21906         HAVE_REALLOC_POSIX.
21907
21908         Use modern idiom for realloc() replacement.
21909         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21910         AC_FUNC_REALLOC.
21911         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21912         Autoconf's AC_FUNC_REALLOC.
21913         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21914         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21915         (gl_REPLACE_REALLOC): New macro.
21916         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21917
21918 2010-06-21  Bruno Haible  <bruno@clisp.org>
21919
21920         Fix HAVE_MALLOC_POSIX misnomer.
21921         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21922         !HAVE_MALLOC_POSIX.
21923         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21924         HAVE_MALLOC_POSIX.
21925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21926         instead of HAVE_MALLOC_POSIX.
21927         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21928         HAVE_MALLOC_POSIX.
21929
21930         Use modern idiom for malloc() replacement.
21931         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21932         AC_FUNC_MALLOC.
21933         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21934         Autoconf's AC_FUNC_MALLOC.
21935         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21936         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21937         (gl_REPLACE_MALLOC): New macro.
21938         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21939
21940 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21941
21942         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21943         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21944         This macro takes 3 arguments, not 4.
21945
21946 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21947
21948         ipv6: fix detection under mingw
21949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21950         in6_addr.
21951
21952 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21953
21954         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21955         that strtod() works when cross-compiling to a glibc version known
21956         to work.
21957
21958 2010-06-15  Bruno Haible  <bruno@clisp.org>
21959
21960         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21961
21962 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21963
21964         select: Correct timeout.
21965         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21966
21967 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21968
21969         git-version-gen: init shell var to avoid env var influence
21970         * build-aux/git-version-gen (v): Init shell var to empty.
21971
21972 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21973
21974         priv-set: Don't assume that priv.h exists merely because getppriv does.
21975         See Jan Andersen's bug report about AIX 5L in
21976         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21977         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21978         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21979         * lib/priv-set.h: Likewise.
21980         * tests/test-priv-set.c: Likewise.
21981
21982 2010-06-13  Bruno Haible  <bruno@clisp.org>
21983
21984         relocatable: Make it easier to test whether to install wrappers.
21985         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21986         RELOCATABLE_VIA_WRAPPER.
21987
21988 2010-06-13  Bruno Haible  <bruno@clisp.org>
21989
21990         gnulib-tool: Display specified modules and dependencies differently.
21991         * gnulib-tool (func_show_module_list): New function.
21992         (func_import, func_create_testdir): Invoke it.
21993         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21994
21995 2010-06-13  Bruno Haible  <bruno@clisp.org>
21996
21997         gnulib-tool: Align code of func_import and func_create_testdir.
21998         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21999         specified_modules.
22000
22001 2010-06-12  Jim Meyering  <meyering@redhat.com>
22002
22003         test-inttostr: avoid spurious failure on Solaris 9
22004         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22005         to accept "%ju".  Reported by Bruno Haible.
22006
22007 2010-06-11  Jim Meyering  <meyering@redhat.com>
22008
22009         test-sys_socket: mark variables as used more readably
22010         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22011         as "used" explicitly via (void) statement casts.  This is more
22012         readable than using them in an artificial return expression.
22013         Suggestion from Bruno Haible.
22014
22015 2010-06-11  Bruno Haible  <bruno@clisp.org>
22016
22017         Avoid some more warnings from "gcc -Wwrite-strings".
22018         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22019         to 'const char *'.
22020         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22021         * tests/test-c-strcasestr.c (main): Likewise.
22022         * tests/test-mbscasestr1.c (main): Likewise.
22023         * tests/test-mbscasestr2.c (main): Likewise.
22024         * tests/test-memmem.c (main): Likewise.
22025         * tests/test-strstr.c (main): Likewise.
22026         * tests/test-strcasestr.c (main): Likewise.
22027
22028 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22029
22030         init.sh: change framework_failure_ to fail with status 99, not 1
22031         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22032         automake's parallel-tests rule that this is an unexpected failure,
22033         even if the test is listed in XFAIL_TESTS.
22034
22035 2010-06-11  Jim Meyering  <meyering@redhat.com>
22036
22037         test-inttostr: avoid warnings about 4-6KB literal strings
22038         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22039         Include "macros.h", for its definition of ASSERT.
22040         (CK): s/assert/ASSERT/
22041         * modules/inttostr-tests (Files): Add macros.h.
22042
22043         init.sh: don't use $ME_ or skip_ before they are defined
22044         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22045         their first uses.  Also hoist their companions: warn_, fail_,
22046         framework_failure_, $stderr_fileno.  Prompted by a patch from
22047         Stefano Lattarini.
22048
22049         test-sys_socket: avoid set-but-not-used warnings from gcc
22050         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22051         avoid warning about set-but-not-used variables.
22052
22053         test-xvasprintf: avoid 'const' discard warnings
22054         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22055         "const" when assigning from literal strings.
22056         (test_xasprintf): Add "void" in function argument list to placate
22057         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22058
22059         tests: avoid compilation warnings in argmatch and exclude tests...
22060         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22061         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22062         Since it always exits, declare with the "noreturn" attribute.
22063         * tests/test-argmatch.c: Likewise.
22064
22065         tests: avoid 'const' discard warnings in mbsstr tests
22066         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22067         * tests/test-mbsstr2.c (main): Likewise.
22068
22069         test-verify: avoid warning from gcc's -Wmissing-declarations
22070         * tests/test-verify.c (function): Declare to be static.
22071
22072         test-inttostr.c: include <string.h> for use of strcmp
22073         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22074
22075         test-linkat: avoid failed assertion on "other" architectures
22076         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22077         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22078         sparc: https://bugs.launchpad.net/bugs/591968
22079
22080 2010-06-11  Jim Meyering  <meyering@redhat.com>
22081
22082         printf.m4: avoid autoconf's "Expanded Before Required" warning
22083         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22084         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22085         autoconf warning.
22086
22087 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22088
22089         Replacement header templates are now named with ".in", not "_".
22090         * doc/gnulib-intro.texi: Correct.
22091
22092 2010-06-10  Jim Meyering  <meyering@redhat.com>
22093
22094         inttostr-tests: depend on snprintf, not snprintf-posix
22095         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22096         snprintf-posix, to avoid this aclocal failure:
22097           missing file gnulib-tests/vasnprintf.c
22098           configure.ac:45: error: expected source file, required through \
22099           AC_LIBSOURCES, not found
22100
22101 2010-06-10  Jim Meyering  <meyering@redhat.com>
22102
22103         inttostr: add a new function, inttostr, and tests
22104         The namesake function was not available.  The existence of the
22105         template file, inttostr.c makes its addition nontrivial.
22106         * lib/anytostr.c: Rename from inttostr.c.
22107         (anytostr): Rename from inttostr.
22108         * lib/inttostr.c: New file.
22109         * modules/inttostr (Files): Add anytostr.c.
22110         (Makefile.am): Set lib_SOURCES instead of ...
22111         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22112         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22113         * lib/offtostr.c: Likewise.
22114         * lib/uinttostr.c: Likewise.
22115         * lib/umaxtostr.c: Likewise.
22116         * modules/inttostr-tests: New file.
22117         * tests/test-inttostr.c: New file.  Test these functions.
22118
22119 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22120             Bruno Haible  <bruno@clisp.org>
22121
22122         Add "Extending Gnulib" chapter to manual.
22123         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22124         chapter.
22125         (Extending Gnulib): New chapter.
22126         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22127         chapter.
22128
22129 2010-06-09  Bruno Haible  <bruno@clisp.org>
22130
22131         Avoid relocwrapper link errors due to gnulib replacement functions.
22132         * lib/areadlink.c: Use the system's malloc, realloc functions.
22133         (areadlink): Set errno to ENOMEM explicitly.
22134         * modules/areadlink (Depends-on): Remove malloc-posix.
22135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22136
22137 2010-06-09  Bruno Haible  <bruno@clisp.org>
22138
22139         Avoid relocwrapper link errors due to gnulib replacement functions.
22140         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22141         * lib/malloca.c: Likewise.
22142         * lib/relocatable.c: Likewise.
22143         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22144         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22145         * lib/setenv.c: Use the system's malloc, realloc functions.
22146         * lib/strerror.c: Use the system's sprintf function.
22147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22148
22149 2010-06-04  Bruno Haible  <bruno@clisp.org>
22150
22151         Prefer documented low-level autoconf macro names.
22152         * m4/lib-link.m4: Use m4_translit instead of translit.
22153         * m4/environ.m4: Likewise.
22154         * m4/mathfunc.m4: Likewise.
22155         * m4/onceonly.m4: Likewise.
22156         * m4/stdint.m4: Likewise.
22157         Suggested by Eric Blake.
22158
22159 2010-06-04  Martin Lambers  <marlam@marlam.de>
22160             Bruno Haible  <bruno@clisp.org>
22161
22162         havelib: Allow library names with '+' characters.
22163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22164         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22165
22166 2010-06-09  Bruno Haible  <bruno@clisp.org>
22167
22168         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22169         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22170         realloc failed.
22171
22172 2010-06-08  Peter Simons  <simons@cryp.to>
22173
22174         maint.mk: make the news-check rule more configurable
22175         * top/maint.mk (news-check-lines-spec): New variable.
22176         (news-check): Use "sed -n 1,10p" in place of "head".
22177
22178 2010-06-07  Jim Meyering  <meyering@redhat.com>
22179
22180         do-release-commit-and-tag: fix typo in --help
22181         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22182
22183         regex: avoid new dead-code warning with gcc-4.6.0
22184         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22185         if-block containing a while-loop.  It's been unused for at least
22186         5 years.
22187
22188 2010-06-05  Bruno Haible  <bruno@clisp.org>
22189
22190         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22191         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22192
22193 2010-06-04  Bruno Haible  <bruno@clisp.org>
22194
22195         Update to GNU gettext 0.18.1.
22196         * modules/gettext (configure.ac): Require gettext infrastructure from
22197         version 0.18.1.
22198
22199 2010-06-03  Bruno Haible  <bruno@clisp.org>
22200
22201         Don't use AC_LIBOBJ with file names in subdirectories.
22202         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22203         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22204         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22205         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22206         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22207         gl_LIBUNISTRING_LIBSOURCE.
22208         (Makefile.am): Augment lib_SOURCES here, conditionally.
22209         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22210
22211 2010-06-03  Bruno Haible  <bruno@clisp.org>
22212
22213         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22214         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22215         expansion does not end with a newline.
22216         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22217         unnecessary newline.
22218
22219 2010-06-03  Bruno Haible  <bruno@clisp.org>
22220
22221         Reduce dependencies.
22222         * tests/test-quotearg.h: New file, extracted from
22223         tests/test-quotearg.c.
22224         * tests/test-quotearg-simple.c: New file, extracted from
22225         tests/test-quotearg.c.
22226         * tests/test-quotearg.c: Don't include <ctype.h>.
22227         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22228         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22229         use_quote_double_quotes, use_quotearg_colon): Moved to
22230         tests/test-quotearg.h.
22231         (results_g, flag_results, custom_quotes, custom_results): Moved
22232         to tests/test-quotearg-simple.c.
22233         (main): Moved the part that does not depend on gettext to
22234         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22235         performed.
22236         * modules/quotearg-simple: New file.
22237         * modules/quotearg-simple-tests: New file.
22238         * modules/quotearg (Depends-on): Add quotearg-simple.
22239         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22240         (Files): Add tests/test-quotearg.h.
22241         Reported by Paolo Bonzini.
22242
22243 2010-06-03  Bruno Haible  <bruno@clisp.org>
22244
22245         Reduce dependencies.
22246         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22247
22248 2010-06-03  Bruno Haible  <bruno@clisp.org>
22249
22250         time: Undefine more broken macros.
22251         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22252         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22253         Reported by Eric Blake.
22254
22255 2010-06-03  Bruno Haible  <bruno@clisp.org>
22256
22257         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22258         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22259         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22260         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22261         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22262         Reported by Ludovic Courtès <ludo@gnu.org>.
22263
22264 2010-06-02  Eric Blake  <eblake@redhat.com>
22265
22266         time: work with mingw + pthreads-win32 library
22267         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22268         if timespec is defined only in pthread.h.
22269         * modules/time (Makefile.am): Substitute it.
22270         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22271         <pthread.h>, when needed.
22272         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22273         from the library.
22274
22275 2010-05-31  Bruno Haible  <bruno@clisp.org>
22276
22277         Avoid expanding two macros in the wrong order.
22278         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22279         gl_LIBUNISTRING if it is defined.
22280         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22281         autoconf >= 2.64.
22282         Reported by Ludovic Courtès <ludo@gnu.org>.
22283
22284 2010-05-27  Jim Meyering  <meyering@redhat.com>
22285
22286         maint.mk: also prohibit "#undef" of always-defined symbols
22287         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22288         Allow more than one space before the symbol name.
22289         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22290         the regexp uses alternation.
22291
22292 2010-05-26  Eric Blake  <eblake@redhat.com>
22293
22294         maint.mk: avoid echo -e
22295         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22296         Convert all uses of echo -* to printf.
22297         Reported by Matthias Bolte.
22298
22299 2010-05-25  Bruno Haible  <bruno@clisp.org>
22300
22301         Update to GNU gettext 0.18, part 2.
22302         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22303         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22304
22305 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22306
22307         Add missing include in test-pwrite.c.
22308         * tests/test-pwrite.c: Include string.h, for strcmp.
22309
22310 2010-05-24  Bruno Haible  <bruno@clisp.org>
22311
22312         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22313
22314 2010-05-24  Bruno Haible  <bruno@clisp.org>
22315
22316         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22317         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22318         iconveh_error argument.
22319         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22320         U_STRCONV_TO_LOCALE.
22321         * lib/unistr/u16-strcoll.c: Likewise.
22322         * lib/unistr/u32-strcoll.c: Likewise.
22323         * modules/unistr/u8-strcoll (Depends-on): Add
22324         uniconv/u8-strconv-to-enc, localcharset. Remove
22325         uniconv/u8-strconv-to-locale.
22326         (configure.ac): Bump version number.
22327         * modules/unistr/u16-strcoll (Depends-on): Add
22328         uniconv/u16-strconv-to-enc, localcharset. Remove
22329         uniconv/u16-strconv-to-locale.
22330         (configure.ac): Bump version number.
22331         * modules/unistr/u32-strcoll (Depends-on): Add
22332         uniconv/u32-strconv-to-enc, localcharset. Remove
22333         uniconv/u32-strconv-to-locale.
22334         (configure.ac): Bump version number.
22335
22336 2010-05-24  Bruno Haible  <bruno@clisp.org>
22337
22338         Avoid a test failure on NetBSD 5.0.
22339         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22340         an iconv() bug.
22341
22342 2010-05-24  Bruno Haible  <bruno@clisp.org>
22343
22344         Adjust #include directive style.
22345         * modules/regex (Includes): Recommend to write <regex.h>.
22346
22347 2010-05-24  Bruno Haible  <bruno@clisp.org>
22348
22349         regex: Don't require alloca.
22350         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22351         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22352         only inside if (0).
22353
22354 2010-05-23  Jim Meyering  <meyering@redhat.com>
22355
22356         test-renameat.c: include <sys/stat.h>
22357         * tests/test-renameat.c: Include <sys/stat.h>; required for
22358         definition of S_IS* macros.
22359
22360 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22361
22362         Update maintainer documentation for 'relocatable-prog' module.
22363         * doc/relocatable-maint.texi: Update.
22364         Comments by Bruno Haible.
22365
22366 2010-05-23  Bruno Haible  <bruno@clisp.org>
22367
22368         git-merge-changelog: Enable --split-merged-entry by default.
22369         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22370         (usage): Don't mention this option any more.
22371         Reported by Ralf Wildenhues.
22372
22373 2010-05-23  Jim Meyering  <meyering@redhat.com>
22374
22375         test-pwrite: do not leave behind a test file named "out"
22376         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22377         The trivial-looking use of init.sh is really necessary.
22378         It ensures that the temporary file, "out", is created in
22379         a temporary directory, and removed upon termination.
22380         * tests/test-pwrite.sh: Re-add file.
22381         * modules/pwrite-tests: Reference it.
22382
22383 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22384
22385         Fix output redirection buglet in init.sh.
22386         * tests/init.sh: Fix redirection of stderr.
22387
22388 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22389
22390         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22391
22392 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22393
22394         * modules/valgrind-tests: New file.
22395         * m4/valgrind-tests.m4: New file.
22396         * doc/valgrind-tests.texi: New file.
22397         * doc/gnulib.texi (Running self-tests under valgrind): New
22398         section.
22399
22400 2010-05-19  Bruno Haible  <bruno@clisp.org>
22401
22402         Clean up dead code in recent commit.
22403         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22404         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22405         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22406         Suggested by Paolo Bonzini.
22407
22408 2010-05-19  Bruno Haible  <bruno@clisp.org>
22409
22410         Avoid valgrind error reports from libunistring.
22411         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22412         * modules/libunistring (Files): Add it.
22413         * modules/libunistring-optional (Files): Likewise.
22414
22415 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22416             Bruno Haible  <bruno@clisp.org>
22417
22418         New module 'libunistring-optional'.
22419         * modules/libunistring-optional: New file.
22420         * m4/libunistring-base.m4: New file.
22421         * m4/libunistring-optional.m4: New file.
22422         * lib/unicase.in.h: Renamed from lib/unicase.h.
22423         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22424         * lib/unictype.in.h: Renamed from lib/unictype.h.
22425         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22426         * lib/uniname.in.h: Renamed from lib/uniname.h.
22427         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22428         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22429         * lib/unistr.in.h: Renamed from lib/unistr.h.
22430         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22431         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22432         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22433         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22434         gl_LIBUNISTRING. If the library was found, determine the installed
22435         version and set LIBUNISTRING_VERSION.
22436         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22437         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22438         handle a configuration option --with-included-libunistring.
22439         * modules/libunistring (Files): Add m4/absolute-header.m4.
22440         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22441         Add m4/libunistring-base.m4.
22442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22443         (Makefile.am): Build unicase.h from unicase.in.h.
22444         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22445         Add m4/libunistring-base.m4.
22446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22447         (Makefile.am): Build uniconv.h from uniconv.in.h.
22448         * modules/unictype/base (Files): Use unictype.in.h instead of
22449         unictype.h. Add m4/libunistring-base.m4.
22450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22451         (Makefile.am): Build unictype.h from unictype.in.h.
22452         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22453         Add m4/libunistring-base.m4.
22454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22455         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22456         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22457         Add m4/libunistring-base.m4.
22458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22459         (Makefile.am): Build uniname.h from uniname.in.h.
22460         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22461         Add m4/libunistring-base.m4.
22462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22463         (Makefile.am): Build uninorm.h from uninorm.in.h.
22464         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22465         unistdio.h. Add m4/libunistring-base.m4.
22466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22467         (Makefile.am): Build unistdio.h from unistdio.in.h.
22468         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22469         Add m4/libunistring-base.m4.
22470         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22471         (Makefile.am): Build unistr.h from unistr.in.h.
22472         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22473         Add m4/libunistring-base.m4.
22474         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22475         (Makefile.am): Build unitypes.h from unitypes.in.h.
22476         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22477         Add m4/libunistring-base.m4.
22478         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22479         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22480         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22481         uniwidth.h. Add m4/libunistring-base.m4.
22482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22483         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22484         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22485         instead of augmenting lib_SOURCES.
22486         * modules/unicase/empty-suffix-context: Likewise.
22487         * modules/unicase/locale-language: Likewise.
22488         * modules/unicase/tolower: Likewise.
22489         * modules/unicase/totitle: Likewise.
22490         * modules/unicase/toupper: Likewise.
22491         * modules/unicase/u8-casecmp: Likewise.
22492         * modules/unicase/u8-casecoll: Likewise.
22493         * modules/unicase/u8-casefold: Likewise.
22494         * modules/unicase/u8-casexfrm: Likewise.
22495         * modules/unicase/u8-ct-casefold: Likewise.
22496         * modules/unicase/u8-ct-tolower: Likewise.
22497         * modules/unicase/u8-ct-totitle: Likewise.
22498         * modules/unicase/u8-ct-toupper: Likewise.
22499         * modules/unicase/u8-is-cased: Likewise.
22500         * modules/unicase/u8-is-casefolded: Likewise.
22501         * modules/unicase/u8-is-lowercase: Likewise.
22502         * modules/unicase/u8-is-titlecase: Likewise.
22503         * modules/unicase/u8-is-uppercase: Likewise.
22504         * modules/unicase/u8-prefix-context: Likewise.
22505         * modules/unicase/u8-suffix-context: Likewise.
22506         * modules/unicase/u8-tolower: Likewise.
22507         * modules/unicase/u8-totitle: Likewise.
22508         * modules/unicase/u8-toupper: Likewise.
22509         * modules/unicase/u16-casecmp: Likewise.
22510         * modules/unicase/u16-casecoll: Likewise.
22511         * modules/unicase/u16-casefold: Likewise.
22512         * modules/unicase/u16-casexfrm: Likewise.
22513         * modules/unicase/u16-ct-casefold: Likewise.
22514         * modules/unicase/u16-ct-tolower: Likewise.
22515         * modules/unicase/u16-ct-totitle: Likewise.
22516         * modules/unicase/u16-ct-toupper: Likewise.
22517         * modules/unicase/u16-is-cased: Likewise.
22518         * modules/unicase/u16-is-casefolded: Likewise.
22519         * modules/unicase/u16-is-lowercase: Likewise.
22520         * modules/unicase/u16-is-titlecase: Likewise.
22521         * modules/unicase/u16-is-uppercase: Likewise.
22522         * modules/unicase/u16-prefix-context: Likewise.
22523         * modules/unicase/u16-suffix-context: Likewise.
22524         * modules/unicase/u16-tolower: Likewise.
22525         * modules/unicase/u16-totitle: Likewise.
22526         * modules/unicase/u16-toupper: Likewise.
22527         * modules/unicase/u32-casecmp: Likewise.
22528         * modules/unicase/u32-casecoll: Likewise.
22529         * modules/unicase/u32-casefold: Likewise.
22530         * modules/unicase/u32-casexfrm: Likewise.
22531         * modules/unicase/u32-ct-casefold: Likewise.
22532         * modules/unicase/u32-ct-tolower: Likewise.
22533         * modules/unicase/u32-ct-totitle: Likewise.
22534         * modules/unicase/u32-ct-toupper: Likewise.
22535         * modules/unicase/u32-is-cased: Likewise.
22536         * modules/unicase/u32-is-casefolded: Likewise.
22537         * modules/unicase/u32-is-lowercase: Likewise.
22538         * modules/unicase/u32-is-titlecase: Likewise.
22539         * modules/unicase/u32-is-uppercase: Likewise.
22540         * modules/unicase/u32-prefix-context: Likewise.
22541         * modules/unicase/u32-suffix-context: Likewise.
22542         * modules/unicase/u32-tolower: Likewise.
22543         * modules/unicase/u32-totitle: Likewise.
22544         * modules/unicase/u32-toupper: Likewise.
22545         * modules/unicase/ulc-casecmp: Likewise.
22546         * modules/unicase/ulc-casecoll: Likewise.
22547         * modules/unicase/ulc-casexfrm: Likewise.
22548         * modules/uniconv/u8-conv-from-enc: Likewise.
22549         * modules/uniconv/u8-conv-to-enc: Likewise.
22550         * modules/uniconv/u8-strconv-from-enc: Likewise.
22551         * modules/uniconv/u8-strconv-from-locale: Likewise.
22552         * modules/uniconv/u8-strconv-to-enc: Likewise.
22553         * modules/uniconv/u8-strconv-to-locale: Likewise.
22554         * modules/uniconv/u16-conv-from-enc: Likewise.
22555         * modules/uniconv/u16-conv-to-enc: Likewise.
22556         * modules/uniconv/u16-strconv-from-enc: Likewise.
22557         * modules/uniconv/u16-strconv-from-locale: Likewise.
22558         * modules/uniconv/u16-strconv-to-enc: Likewise.
22559         * modules/uniconv/u16-strconv-to-locale: Likewise.
22560         * modules/uniconv/u32-conv-from-enc: Likewise.
22561         * modules/uniconv/u32-conv-to-enc: Likewise.
22562         * modules/uniconv/u32-strconv-from-enc: Likewise.
22563         * modules/uniconv/u32-strconv-from-locale: Likewise.
22564         * modules/uniconv/u32-strconv-to-enc: Likewise.
22565         * modules/uniconv/u32-strconv-to-locale: Likewise.
22566         * modules/unictype/bidicategory-byname: Likewise.
22567         * modules/unictype/bidicategory-name: Likewise.
22568         * modules/unictype/bidicategory-of: Likewise.
22569         * modules/unictype/bidicategory-test: Likewise.
22570         * modules/unictype/block-list: Likewise.
22571         * modules/unictype/block-test: Likewise.
22572         * modules/unictype/category-C: Likewise.
22573         * modules/unictype/category-Cc: Likewise.
22574         * modules/unictype/category-Cf: Likewise.
22575         * modules/unictype/category-Cn: Likewise.
22576         * modules/unictype/category-Co: Likewise.
22577         * modules/unictype/category-Cs: Likewise.
22578         * modules/unictype/category-L: Likewise.
22579         * modules/unictype/category-Ll: Likewise.
22580         * modules/unictype/category-Lm: Likewise.
22581         * modules/unictype/category-Lo: Likewise.
22582         * modules/unictype/category-Lt: Likewise.
22583         * modules/unictype/category-Lu: Likewise.
22584         * modules/unictype/category-M: Likewise.
22585         * modules/unictype/category-Mc: Likewise.
22586         * modules/unictype/category-Me: Likewise.
22587         * modules/unictype/category-Mn: Likewise.
22588         * modules/unictype/category-N: Likewise.
22589         * modules/unictype/category-Nd: Likewise.
22590         * modules/unictype/category-Nl: Likewise.
22591         * modules/unictype/category-No: Likewise.
22592         * modules/unictype/category-P: Likewise.
22593         * modules/unictype/category-Pc: Likewise.
22594         * modules/unictype/category-Pd: Likewise.
22595         * modules/unictype/category-Pe: Likewise.
22596         * modules/unictype/category-Pf: Likewise.
22597         * modules/unictype/category-Pi: Likewise.
22598         * modules/unictype/category-Po: Likewise.
22599         * modules/unictype/category-Ps: Likewise.
22600         * modules/unictype/category-S: Likewise.
22601         * modules/unictype/category-Sc: Likewise.
22602         * modules/unictype/category-Sk: Likewise.
22603         * modules/unictype/category-Sm: Likewise.
22604         * modules/unictype/category-So: Likewise.
22605         * modules/unictype/category-Z: Likewise.
22606         * modules/unictype/category-Zl: Likewise.
22607         * modules/unictype/category-Zp: Likewise.
22608         * modules/unictype/category-Zs: Likewise.
22609         * modules/unictype/category-and: Likewise.
22610         * modules/unictype/category-and-not: Likewise.
22611         * modules/unictype/category-byname: Likewise.
22612         * modules/unictype/category-name: Likewise.
22613         * modules/unictype/category-none: Likewise.
22614         * modules/unictype/category-of: Likewise.
22615         * modules/unictype/category-or: Likewise.
22616         * modules/unictype/category-test: Likewise.
22617         * modules/unictype/combining-class: Likewise.
22618         * modules/unictype/ctype-alnum: Likewise.
22619         * modules/unictype/ctype-alpha: Likewise.
22620         * modules/unictype/ctype-blank: Likewise.
22621         * modules/unictype/ctype-cntrl: Likewise.
22622         * modules/unictype/ctype-digit: Likewise.
22623         * modules/unictype/ctype-graph: Likewise.
22624         * modules/unictype/ctype-lower: Likewise.
22625         * modules/unictype/ctype-print: Likewise.
22626         * modules/unictype/ctype-punct: Likewise.
22627         * modules/unictype/ctype-space: Likewise.
22628         * modules/unictype/ctype-upper: Likewise.
22629         * modules/unictype/ctype-xdigit: Likewise.
22630         * modules/unictype/decimal-digit: Likewise.
22631         * modules/unictype/digit: Likewise.
22632         * modules/unictype/mirror: Likewise.
22633         * modules/unictype/numeric: Likewise.
22634         * modules/unictype/property-alphabetic: Likewise.
22635         * modules/unictype/property-ascii-hex-digit: Likewise.
22636         * modules/unictype/property-bidi-arabic-digit: Likewise.
22637         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22638         * modules/unictype/property-bidi-block-separator: Likewise.
22639         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22640         * modules/unictype/property-bidi-common-separator: Likewise.
22641         * modules/unictype/property-bidi-control: Likewise.
22642         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22643         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22644         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22645         * modules/unictype/property-bidi-european-digit: Likewise.
22646         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22647         * modules/unictype/property-bidi-left-to-right: Likewise.
22648         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22649         * modules/unictype/property-bidi-other-neutral: Likewise.
22650         * modules/unictype/property-bidi-pdf: Likewise.
22651         * modules/unictype/property-bidi-segment-separator: Likewise.
22652         * modules/unictype/property-bidi-whitespace: Likewise.
22653         * modules/unictype/property-byname: Likewise.
22654         * modules/unictype/property-combining: Likewise.
22655         * modules/unictype/property-composite: Likewise.
22656         * modules/unictype/property-currency-symbol: Likewise.
22657         * modules/unictype/property-dash: Likewise.
22658         * modules/unictype/property-decimal-digit: Likewise.
22659         * modules/unictype/property-default-ignorable-code-point: Likewise.
22660         * modules/unictype/property-deprecated: Likewise.
22661         * modules/unictype/property-diacritic: Likewise.
22662         * modules/unictype/property-extender: Likewise.
22663         * modules/unictype/property-format-control: Likewise.
22664         * modules/unictype/property-grapheme-base: Likewise.
22665         * modules/unictype/property-grapheme-extend: Likewise.
22666         * modules/unictype/property-grapheme-link: Likewise.
22667         * modules/unictype/property-hex-digit: Likewise.
22668         * modules/unictype/property-hyphen: Likewise.
22669         * modules/unictype/property-id-continue: Likewise.
22670         * modules/unictype/property-id-start: Likewise.
22671         * modules/unictype/property-ideographic: Likewise.
22672         * modules/unictype/property-ids-binary-operator: Likewise.
22673         * modules/unictype/property-ids-trinary-operator: Likewise.
22674         * modules/unictype/property-ignorable-control: Likewise.
22675         * modules/unictype/property-iso-control: Likewise.
22676         * modules/unictype/property-join-control: Likewise.
22677         * modules/unictype/property-left-of-pair: Likewise.
22678         * modules/unictype/property-line-separator: Likewise.
22679         * modules/unictype/property-logical-order-exception: Likewise.
22680         * modules/unictype/property-lowercase: Likewise.
22681         * modules/unictype/property-math: Likewise.
22682         * modules/unictype/property-non-break: Likewise.
22683         * modules/unictype/property-not-a-character: Likewise.
22684         * modules/unictype/property-numeric: Likewise.
22685         * modules/unictype/property-other-alphabetic: Likewise.
22686         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22687         * modules/unictype/property-other-grapheme-extend: Likewise.
22688         * modules/unictype/property-other-id-continue: Likewise.
22689         * modules/unictype/property-other-id-start: Likewise.
22690         * modules/unictype/property-other-lowercase: Likewise.
22691         * modules/unictype/property-other-math: Likewise.
22692         * modules/unictype/property-other-uppercase: Likewise.
22693         * modules/unictype/property-paired-punctuation: Likewise.
22694         * modules/unictype/property-paragraph-separator: Likewise.
22695         * modules/unictype/property-pattern-syntax: Likewise.
22696         * modules/unictype/property-pattern-white-space: Likewise.
22697         * modules/unictype/property-private-use: Likewise.
22698         * modules/unictype/property-punctuation: Likewise.
22699         * modules/unictype/property-quotation-mark: Likewise.
22700         * modules/unictype/property-radical: Likewise.
22701         * modules/unictype/property-sentence-terminal: Likewise.
22702         * modules/unictype/property-soft-dotted: Likewise.
22703         * modules/unictype/property-space: Likewise.
22704         * modules/unictype/property-terminal-punctuation: Likewise.
22705         * modules/unictype/property-test: Likewise.
22706         * modules/unictype/property-titlecase: Likewise.
22707         * modules/unictype/property-unassigned-code-value: Likewise.
22708         * modules/unictype/property-unified-ideograph: Likewise.
22709         * modules/unictype/property-uppercase: Likewise.
22710         * modules/unictype/property-variation-selector: Likewise.
22711         * modules/unictype/property-white-space: Likewise.
22712         * modules/unictype/property-xid-continue: Likewise.
22713         * modules/unictype/property-xid-start: Likewise.
22714         * modules/unictype/property-zero-width: Likewise.
22715         * modules/unictype/scripts: Likewise.
22716         * modules/unictype/syntax-c-ident: Likewise.
22717         * modules/unictype/syntax-c-whitespace: Likewise.
22718         * modules/unictype/syntax-java-ident: Likewise.
22719         * modules/unictype/syntax-java-whitespace: Likewise.
22720         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22721         * modules/unilbrk/u8-width-linebreaks: Likewise.
22722         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22723         * modules/unilbrk/u16-width-linebreaks: Likewise.
22724         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22725         * modules/unilbrk/u32-width-linebreaks: Likewise.
22726         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22727         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22728         * modules/uniname/uniname: Likewise.
22729         * modules/uninorm/canonical-decomposition: Likewise.
22730         * modules/uninorm/composition: Likewise.
22731         * modules/uninorm/decomposing-form: Likewise.
22732         * modules/uninorm/decomposition: Likewise.
22733         * modules/uninorm/filter: Likewise.
22734         * modules/uninorm/nfc: Likewise.
22735         * modules/uninorm/nfd: Likewise.
22736         * modules/uninorm/nfkc: Likewise.
22737         * modules/uninorm/nfkd: Likewise.
22738         * modules/uninorm/u8-normalize: Likewise.
22739         * modules/uninorm/u8-normcmp: Likewise.
22740         * modules/uninorm/u8-normcoll: Likewise.
22741         * modules/uninorm/u8-normxfrm: Likewise.
22742         * modules/uninorm/u16-normalize: Likewise.
22743         * modules/uninorm/u16-normcmp: Likewise.
22744         * modules/uninorm/u16-normcoll: Likewise.
22745         * modules/uninorm/u16-normxfrm: Likewise.
22746         * modules/uninorm/u32-normalize: Likewise.
22747         * modules/uninorm/u32-normcmp: Likewise.
22748         * modules/uninorm/u32-normcoll: Likewise.
22749         * modules/uninorm/u32-normxfrm: Likewise.
22750         * modules/unistdio/u8-asnprintf: Likewise.
22751         * modules/unistdio/u8-asprintf: Likewise.
22752         * modules/unistdio/u8-snprintf: Likewise.
22753         * modules/unistdio/u8-sprintf: Likewise.
22754         * modules/unistdio/u8-u8-asnprintf: Likewise.
22755         * modules/unistdio/u8-u8-asprintf: Likewise.
22756         * modules/unistdio/u8-u8-snprintf: Likewise.
22757         * modules/unistdio/u8-u8-sprintf: Likewise.
22758         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22759         * modules/unistdio/u8-u8-vasprintf: Likewise.
22760         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22761         * modules/unistdio/u8-u8-vsprintf: Likewise.
22762         * modules/unistdio/u8-vasnprintf: Likewise.
22763         * modules/unistdio/u8-vasprintf: Likewise.
22764         * modules/unistdio/u8-vsnprintf: Likewise.
22765         * modules/unistdio/u8-vsprintf: Likewise.
22766         * modules/unistdio/u16-asnprintf: Likewise.
22767         * modules/unistdio/u16-asprintf: Likewise.
22768         * modules/unistdio/u16-snprintf: Likewise.
22769         * modules/unistdio/u16-sprintf: Likewise.
22770         * modules/unistdio/u16-u16-asnprintf: Likewise.
22771         * modules/unistdio/u16-u16-asprintf: Likewise.
22772         * modules/unistdio/u16-u16-snprintf: Likewise.
22773         * modules/unistdio/u16-u16-sprintf: Likewise.
22774         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22775         * modules/unistdio/u16-u16-vasprintf: Likewise.
22776         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22777         * modules/unistdio/u16-u16-vsprintf: Likewise.
22778         * modules/unistdio/u16-vasnprintf: Likewise.
22779         * modules/unistdio/u16-vasprintf: Likewise.
22780         * modules/unistdio/u16-vsnprintf: Likewise.
22781         * modules/unistdio/u16-vsprintf: Likewise.
22782         * modules/unistdio/u32-asnprintf: Likewise.
22783         * modules/unistdio/u32-asprintf: Likewise.
22784         * modules/unistdio/u32-snprintf: Likewise.
22785         * modules/unistdio/u32-sprintf: Likewise.
22786         * modules/unistdio/u32-u32-asnprintf: Likewise.
22787         * modules/unistdio/u32-u32-asprintf: Likewise.
22788         * modules/unistdio/u32-u32-snprintf: Likewise.
22789         * modules/unistdio/u32-u32-sprintf: Likewise.
22790         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22791         * modules/unistdio/u32-u32-vasprintf: Likewise.
22792         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22793         * modules/unistdio/u32-u32-vsprintf: Likewise.
22794         * modules/unistdio/u32-vasnprintf: Likewise.
22795         * modules/unistdio/u32-vasprintf: Likewise.
22796         * modules/unistdio/u32-vsnprintf: Likewise.
22797         * modules/unistdio/u32-vsprintf: Likewise.
22798         * modules/unistdio/ulc-asnprintf: Likewise.
22799         * modules/unistdio/ulc-asprintf: Likewise.
22800         * modules/unistdio/ulc-fprintf: Likewise.
22801         * modules/unistdio/ulc-snprintf: Likewise.
22802         * modules/unistdio/ulc-sprintf: Likewise.
22803         * modules/unistdio/ulc-vasnprintf: Likewise.
22804         * modules/unistdio/ulc-vasprintf: Likewise.
22805         * modules/unistdio/ulc-vfprintf: Likewise.
22806         * modules/unistdio/ulc-vsnprintf: Likewise.
22807         * modules/unistdio/ulc-vsprintf: Likewise.
22808         * modules/unistr/u8-check: Likewise.
22809         * modules/unistr/u8-chr: Likewise.
22810         * modules/unistr/u8-cmp: Likewise.
22811         * modules/unistr/u8-cmp2: Likewise.
22812         * modules/unistr/u8-cpy: Likewise.
22813         * modules/unistr/u8-cpy-alloc: Likewise.
22814         * modules/unistr/u8-endswith: Likewise.
22815         * modules/unistr/u8-mblen: Likewise.
22816         * modules/unistr/u8-mbsnlen: Likewise.
22817         * modules/unistr/u8-mbtouc: Likewise.
22818         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22819         * modules/unistr/u8-mbtoucr: Likewise.
22820         * modules/unistr/u8-move: Likewise.
22821         * modules/unistr/u8-next: Likewise.
22822         * modules/unistr/u8-prev: Likewise.
22823         * modules/unistr/u8-set: Likewise.
22824         * modules/unistr/u8-startswith: Likewise.
22825         * modules/unistr/u8-stpcpy: Likewise.
22826         * modules/unistr/u8-stpncpy: Likewise.
22827         * modules/unistr/u8-strcat: Likewise.
22828         * modules/unistr/u8-strchr: Likewise.
22829         * modules/unistr/u8-strcmp: Likewise.
22830         * modules/unistr/u8-strcoll: Likewise.
22831         * modules/unistr/u8-strcpy: Likewise.
22832         * modules/unistr/u8-strcspn: Likewise.
22833         * modules/unistr/u8-strdup: Likewise.
22834         * modules/unistr/u8-strlen: Likewise.
22835         * modules/unistr/u8-strmblen: Likewise.
22836         * modules/unistr/u8-strmbtouc: Likewise.
22837         * modules/unistr/u8-strncat: Likewise.
22838         * modules/unistr/u8-strncmp: Likewise.
22839         * modules/unistr/u8-strncpy: Likewise.
22840         * modules/unistr/u8-strnlen: Likewise.
22841         * modules/unistr/u8-strpbrk: Likewise.
22842         * modules/unistr/u8-strrchr: Likewise.
22843         * modules/unistr/u8-strspn: Likewise.
22844         * modules/unistr/u8-strstr: Likewise.
22845         * modules/unistr/u8-strtok: Likewise.
22846         * modules/unistr/u8-to-u16: Likewise.
22847         * modules/unistr/u8-to-u32: Likewise.
22848         * modules/unistr/u8-uctomb: Likewise.
22849         * modules/unistr/u16-check: Likewise.
22850         * modules/unistr/u16-chr: Likewise.
22851         * modules/unistr/u16-cmp: Likewise.
22852         * modules/unistr/u16-cmp2: Likewise.
22853         * modules/unistr/u16-cpy: Likewise.
22854         * modules/unistr/u16-cpy-alloc: Likewise.
22855         * modules/unistr/u16-endswith: Likewise.
22856         * modules/unistr/u16-mblen: Likewise.
22857         * modules/unistr/u16-mbsnlen: Likewise.
22858         * modules/unistr/u16-mbtouc: Likewise.
22859         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22860         * modules/unistr/u16-mbtoucr: Likewise.
22861         * modules/unistr/u16-move: Likewise.
22862         * modules/unistr/u16-next: Likewise.
22863         * modules/unistr/u16-prev: Likewise.
22864         * modules/unistr/u16-set: Likewise.
22865         * modules/unistr/u16-startswith: Likewise.
22866         * modules/unistr/u16-stpcpy: Likewise.
22867         * modules/unistr/u16-stpncpy: Likewise.
22868         * modules/unistr/u16-strcat: Likewise.
22869         * modules/unistr/u16-strchr: Likewise.
22870         * modules/unistr/u16-strcmp: Likewise.
22871         * modules/unistr/u16-strcoll: Likewise.
22872         * modules/unistr/u16-strcpy: Likewise.
22873         * modules/unistr/u16-strcspn: Likewise.
22874         * modules/unistr/u16-strdup: Likewise.
22875         * modules/unistr/u16-strlen: Likewise.
22876         * modules/unistr/u16-strmblen: Likewise.
22877         * modules/unistr/u16-strmbtouc: Likewise.
22878         * modules/unistr/u16-strncat: Likewise.
22879         * modules/unistr/u16-strncmp: Likewise.
22880         * modules/unistr/u16-strncpy: Likewise.
22881         * modules/unistr/u16-strnlen: Likewise.
22882         * modules/unistr/u16-strpbrk: Likewise.
22883         * modules/unistr/u16-strrchr: Likewise.
22884         * modules/unistr/u16-strspn: Likewise.
22885         * modules/unistr/u16-strstr: Likewise.
22886         * modules/unistr/u16-strtok: Likewise.
22887         * modules/unistr/u16-to-u32: Likewise.
22888         * modules/unistr/u16-to-u8: Likewise.
22889         * modules/unistr/u16-uctomb: Likewise.
22890         * modules/unistr/u32-check: Likewise.
22891         * modules/unistr/u32-chr: Likewise.
22892         * modules/unistr/u32-cmp: Likewise.
22893         * modules/unistr/u32-cmp2: Likewise.
22894         * modules/unistr/u32-cpy: Likewise.
22895         * modules/unistr/u32-cpy-alloc: Likewise.
22896         * modules/unistr/u32-endswith: Likewise.
22897         * modules/unistr/u32-mblen: Likewise.
22898         * modules/unistr/u32-mbsnlen: Likewise.
22899         * modules/unistr/u32-mbtouc: Likewise.
22900         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22901         * modules/unistr/u32-mbtoucr: Likewise.
22902         * modules/unistr/u32-move: Likewise.
22903         * modules/unistr/u32-next: Likewise.
22904         * modules/unistr/u32-prev: Likewise.
22905         * modules/unistr/u32-set: Likewise.
22906         * modules/unistr/u32-startswith: Likewise.
22907         * modules/unistr/u32-stpcpy: Likewise.
22908         * modules/unistr/u32-stpncpy: Likewise.
22909         * modules/unistr/u32-strcat: Likewise.
22910         * modules/unistr/u32-strchr: Likewise.
22911         * modules/unistr/u32-strcmp: Likewise.
22912         * modules/unistr/u32-strcoll: Likewise.
22913         * modules/unistr/u32-strcpy: Likewise.
22914         * modules/unistr/u32-strcspn: Likewise.
22915         * modules/unistr/u32-strdup: Likewise.
22916         * modules/unistr/u32-strlen: Likewise.
22917         * modules/unistr/u32-strmblen: Likewise.
22918         * modules/unistr/u32-strmbtouc: Likewise.
22919         * modules/unistr/u32-strncat: Likewise.
22920         * modules/unistr/u32-strncmp: Likewise.
22921         * modules/unistr/u32-strncpy: Likewise.
22922         * modules/unistr/u32-strnlen: Likewise.
22923         * modules/unistr/u32-strpbrk: Likewise.
22924         * modules/unistr/u32-strrchr: Likewise.
22925         * modules/unistr/u32-strspn: Likewise.
22926         * modules/unistr/u32-strstr: Likewise.
22927         * modules/unistr/u32-strtok: Likewise.
22928         * modules/unistr/u32-to-u16: Likewise.
22929         * modules/unistr/u32-to-u8: Likewise.
22930         * modules/unistr/u32-uctomb: Likewise.
22931         * modules/uniwbrk/u8-wordbreaks: Likewise.
22932         * modules/uniwbrk/u16-wordbreaks: Likewise.
22933         * modules/uniwbrk/u32-wordbreaks: Likewise.
22934         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22935         * modules/uniwbrk/wordbreak-property: Likewise.
22936         * modules/uniwidth/u8-strwidth: Likewise.
22937         * modules/uniwidth/u8-width: Likewise.
22938         * modules/uniwidth/u16-strwidth: Likewise.
22939         * modules/uniwidth/u16-width: Likewise.
22940         * modules/uniwidth/u32-strwidth: Likewise.
22941         * modules/uniwidth/u32-width: Likewise.
22942         * modules/uniwidth/width: Likewise.
22943         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22944         with $(LIBUNISTRING).
22945         * modules/unicase/ignorable-tests: Likewise.
22946         * modules/unicase/locale-language-tests: Likewise.
22947         * modules/unicase/tolower-tests: Likewise.
22948         * modules/unicase/totitle-tests: Likewise.
22949         * modules/unicase/toupper-tests: Likewise.
22950         * modules/unicase/u8-casecmp-tests: Likewise.
22951         * modules/unicase/u8-casecoll-tests: Likewise.
22952         * modules/unicase/u8-casefold-tests: Likewise.
22953         * modules/unicase/u8-is-cased-tests: Likewise.
22954         * modules/unicase/u8-is-casefolded-tests: Likewise.
22955         * modules/unicase/u8-is-lowercase-tests: Likewise.
22956         * modules/unicase/u8-is-titlecase-tests: Likewise.
22957         * modules/unicase/u8-is-uppercase-tests: Likewise.
22958         * modules/unicase/u8-tolower-tests: Likewise.
22959         * modules/unicase/u8-totitle-tests: Likewise.
22960         * modules/unicase/u8-toupper-tests: Likewise.
22961         * modules/unicase/u16-casecmp-tests: Likewise.
22962         * modules/unicase/u16-casecoll-tests: Likewise.
22963         * modules/unicase/u16-casefold-tests: Likewise.
22964         * modules/unicase/u16-is-cased-tests: Likewise.
22965         * modules/unicase/u16-is-casefolded-tests: Likewise.
22966         * modules/unicase/u16-is-lowercase-tests: Likewise.
22967         * modules/unicase/u16-is-titlecase-tests: Likewise.
22968         * modules/unicase/u16-is-uppercase-tests: Likewise.
22969         * modules/unicase/u16-tolower-tests: Likewise.
22970         * modules/unicase/u16-totitle-tests: Likewise.
22971         * modules/unicase/u16-toupper-tests: Likewise.
22972         * modules/unicase/u32-casecmp-tests: Likewise.
22973         * modules/unicase/u32-casecoll-tests: Likewise.
22974         * modules/unicase/u32-casefold-tests: Likewise.
22975         * modules/unicase/u32-is-cased-tests: Likewise.
22976         * modules/unicase/u32-is-casefolded-tests: Likewise.
22977         * modules/unicase/u32-is-lowercase-tests: Likewise.
22978         * modules/unicase/u32-is-titlecase-tests: Likewise.
22979         * modules/unicase/u32-is-uppercase-tests: Likewise.
22980         * modules/unicase/u32-tolower-tests: Likewise.
22981         * modules/unicase/u32-totitle-tests: Likewise.
22982         * modules/unicase/u32-toupper-tests: Likewise.
22983         * modules/unicase/ulc-casecmp-tests: Likewise.
22984         * modules/unicase/ulc-casecoll-tests: Likewise.
22985         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22986         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22987         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22988         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22989         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22990         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22991         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22992         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22993         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22994         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22995         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22996         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22997         * modules/unictype/bidicategory-byname-tests: Likewise.
22998         * modules/unictype/bidicategory-name-tests: Likewise.
22999         * modules/unictype/bidicategory-of-tests: Likewise.
23000         * modules/unictype/bidicategory-test-tests: Likewise.
23001         * modules/unictype/block-list-tests: Likewise.
23002         * modules/unictype/block-of-tests: Likewise.
23003         * modules/unictype/block-test-tests: Likewise.
23004         * modules/unictype/category-C-tests: Likewise.
23005         * modules/unictype/category-Cc-tests: Likewise.
23006         * modules/unictype/category-Cf-tests: Likewise.
23007         * modules/unictype/category-Cn-tests: Likewise.
23008         * modules/unictype/category-Co-tests: Likewise.
23009         * modules/unictype/category-Cs-tests: Likewise.
23010         * modules/unictype/category-L-tests: Likewise.
23011         * modules/unictype/category-Ll-tests: Likewise.
23012         * modules/unictype/category-Lm-tests: Likewise.
23013         * modules/unictype/category-Lo-tests: Likewise.
23014         * modules/unictype/category-Lt-tests: Likewise.
23015         * modules/unictype/category-Lu-tests: Likewise.
23016         * modules/unictype/category-M-tests: Likewise.
23017         * modules/unictype/category-Mc-tests: Likewise.
23018         * modules/unictype/category-Me-tests: Likewise.
23019         * modules/unictype/category-Mn-tests: Likewise.
23020         * modules/unictype/category-N-tests: Likewise.
23021         * modules/unictype/category-Nd-tests: Likewise.
23022         * modules/unictype/category-Nl-tests: Likewise.
23023         * modules/unictype/category-No-tests: Likewise.
23024         * modules/unictype/category-P-tests: Likewise.
23025         * modules/unictype/category-Pc-tests: Likewise.
23026         * modules/unictype/category-Pd-tests: Likewise.
23027         * modules/unictype/category-Pe-tests: Likewise.
23028         * modules/unictype/category-Pf-tests: Likewise.
23029         * modules/unictype/category-Pi-tests: Likewise.
23030         * modules/unictype/category-Po-tests: Likewise.
23031         * modules/unictype/category-Ps-tests: Likewise.
23032         * modules/unictype/category-S-tests: Likewise.
23033         * modules/unictype/category-Sc-tests: Likewise.
23034         * modules/unictype/category-Sk-tests: Likewise.
23035         * modules/unictype/category-Sm-tests: Likewise.
23036         * modules/unictype/category-So-tests: Likewise.
23037         * modules/unictype/category-Z-tests: Likewise.
23038         * modules/unictype/category-Zl-tests: Likewise.
23039         * modules/unictype/category-Zp-tests: Likewise.
23040         * modules/unictype/category-Zs-tests: Likewise.
23041         * modules/unictype/category-and-not-tests: Likewise.
23042         * modules/unictype/category-and-tests: Likewise.
23043         * modules/unictype/category-byname-tests: Likewise.
23044         * modules/unictype/category-name-tests: Likewise.
23045         * modules/unictype/category-none-tests: Likewise.
23046         * modules/unictype/category-of-tests: Likewise.
23047         * modules/unictype/category-or-tests: Likewise.
23048         * modules/unictype/category-test-withtable-tests: Likewise.
23049         * modules/unictype/combining-class-tests: Likewise.
23050         * modules/unictype/ctype-alnum-tests: Likewise.
23051         * modules/unictype/ctype-alpha-tests: Likewise.
23052         * modules/unictype/ctype-blank-tests: Likewise.
23053         * modules/unictype/ctype-cntrl-tests: Likewise.
23054         * modules/unictype/ctype-digit-tests: Likewise.
23055         * modules/unictype/ctype-graph-tests: Likewise.
23056         * modules/unictype/ctype-lower-tests: Likewise.
23057         * modules/unictype/ctype-print-tests: Likewise.
23058         * modules/unictype/ctype-punct-tests: Likewise.
23059         * modules/unictype/ctype-space-tests: Likewise.
23060         * modules/unictype/ctype-upper-tests: Likewise.
23061         * modules/unictype/ctype-xdigit-tests: Likewise.
23062         * modules/unictype/decimal-digit-tests: Likewise.
23063         * modules/unictype/digit-tests: Likewise.
23064         * modules/unictype/mirror-tests: Likewise.
23065         * modules/unictype/numeric-tests: Likewise.
23066         * modules/unictype/property-alphabetic-tests: Likewise.
23067         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23068         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23069         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23070         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23071         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23072         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23073         * modules/unictype/property-bidi-control-tests: Likewise.
23074         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23075         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23076         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23077         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23078         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23079         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23080         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23081         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23082         * modules/unictype/property-bidi-pdf-tests: Likewise.
23083         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23084         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23085         * modules/unictype/property-byname-tests: Likewise.
23086         * modules/unictype/property-combining-tests: Likewise.
23087         * modules/unictype/property-composite-tests: Likewise.
23088         * modules/unictype/property-currency-symbol-tests: Likewise.
23089         * modules/unictype/property-dash-tests: Likewise.
23090         * modules/unictype/property-decimal-digit-tests: Likewise.
23091         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23092         * modules/unictype/property-deprecated-tests: Likewise.
23093         * modules/unictype/property-diacritic-tests: Likewise.
23094         * modules/unictype/property-extender-tests: Likewise.
23095         * modules/unictype/property-format-control-tests: Likewise.
23096         * modules/unictype/property-grapheme-base-tests: Likewise.
23097         * modules/unictype/property-grapheme-extend-tests: Likewise.
23098         * modules/unictype/property-grapheme-link-tests: Likewise.
23099         * modules/unictype/property-hex-digit-tests: Likewise.
23100         * modules/unictype/property-hyphen-tests: Likewise.
23101         * modules/unictype/property-id-continue-tests: Likewise.
23102         * modules/unictype/property-id-start-tests: Likewise.
23103         * modules/unictype/property-ideographic-tests: Likewise.
23104         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23105         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23106         * modules/unictype/property-ignorable-control-tests: Likewise.
23107         * modules/unictype/property-iso-control-tests: Likewise.
23108         * modules/unictype/property-join-control-tests: Likewise.
23109         * modules/unictype/property-left-of-pair-tests: Likewise.
23110         * modules/unictype/property-line-separator-tests: Likewise.
23111         * modules/unictype/property-logical-order-exception-tests: Likewise.
23112         * modules/unictype/property-lowercase-tests: Likewise.
23113         * modules/unictype/property-math-tests: Likewise.
23114         * modules/unictype/property-non-break-tests: Likewise.
23115         * modules/unictype/property-not-a-character-tests: Likewise.
23116         * modules/unictype/property-numeric-tests: Likewise.
23117         * modules/unictype/property-other-alphabetic-tests: Likewise.
23118         * modules/unictype/property-other-default-ignorable-code-point-tests:
23119         Likewise.
23120         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23121         * modules/unictype/property-other-id-continue-tests: Likewise.
23122         * modules/unictype/property-other-id-start-tests: Likewise.
23123         * modules/unictype/property-other-lowercase-tests: Likewise.
23124         * modules/unictype/property-other-math-tests: Likewise.
23125         * modules/unictype/property-other-uppercase-tests: Likewise.
23126         * modules/unictype/property-paired-punctuation-tests: Likewise.
23127         * modules/unictype/property-paragraph-separator-tests: Likewise.
23128         * modules/unictype/property-pattern-syntax-tests: Likewise.
23129         * modules/unictype/property-pattern-white-space-tests: Likewise.
23130         * modules/unictype/property-private-use-tests: Likewise.
23131         * modules/unictype/property-punctuation-tests: Likewise.
23132         * modules/unictype/property-quotation-mark-tests: Likewise.
23133         * modules/unictype/property-radical-tests: Likewise.
23134         * modules/unictype/property-sentence-terminal-tests: Likewise.
23135         * modules/unictype/property-soft-dotted-tests: Likewise.
23136         * modules/unictype/property-space-tests: Likewise.
23137         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23138         * modules/unictype/property-test-tests: Likewise.
23139         * modules/unictype/property-titlecase-tests: Likewise.
23140         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23141         * modules/unictype/property-unified-ideograph-tests: Likewise.
23142         * modules/unictype/property-uppercase-tests: Likewise.
23143         * modules/unictype/property-variation-selector-tests: Likewise.
23144         * modules/unictype/property-white-space-tests: Likewise.
23145         * modules/unictype/property-xid-continue-tests: Likewise.
23146         * modules/unictype/property-xid-start-tests: Likewise.
23147         * modules/unictype/property-zero-width-tests: Likewise.
23148         * modules/unictype/scripts-tests: Likewise.
23149         * modules/unictype/syntax-c-ident-tests: Likewise.
23150         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23151         * modules/unictype/syntax-java-ident-tests: Likewise.
23152         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23153         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23154         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23155         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23156         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23157         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23158         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23159         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23160         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23161         * modules/uniname/uniname-tests: Likewise.
23162         * modules/uninorm/canonical-decomposition-tests: Likewise.
23163         * modules/uninorm/compat-decomposition-tests: Likewise.
23164         * modules/uninorm/composition-tests: Likewise.
23165         * modules/uninorm/decomposing-form-tests: Likewise.
23166         * modules/uninorm/decomposition-tests: Likewise.
23167         * modules/uninorm/filter-tests: Likewise.
23168         * modules/uninorm/nfc-tests: Likewise.
23169         * modules/uninorm/nfd-tests: Likewise.
23170         * modules/uninorm/nfkc-tests: Likewise.
23171         * modules/uninorm/nfkd-tests: Likewise.
23172         * modules/uninorm/u8-normcmp-tests: Likewise.
23173         * modules/uninorm/u8-normcoll-tests: Likewise.
23174         * modules/uninorm/u16-normcmp-tests: Likewise.
23175         * modules/uninorm/u16-normcoll-tests: Likewise.
23176         * modules/uninorm/u32-normcmp-tests: Likewise.
23177         * modules/uninorm/u32-normcoll-tests: Likewise.
23178         * modules/unistdio/u8-asnprintf-tests: Likewise.
23179         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23180         * modules/unistdio/u8-vasprintf-tests: Likewise.
23181         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23182         * modules/unistdio/u8-vsprintf-tests: Likewise.
23183         * modules/unistdio/u16-asnprintf-tests: Likewise.
23184         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23185         * modules/unistdio/u16-vasprintf-tests: Likewise.
23186         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23187         * modules/unistdio/u16-vsprintf-tests: Likewise.
23188         * modules/unistdio/u32-asnprintf-tests: Likewise.
23189         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23190         * modules/unistdio/u32-vasprintf-tests: Likewise.
23191         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23192         * modules/unistdio/u32-vsprintf-tests: Likewise.
23193         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23194         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23195         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23196         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23197         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23198         * modules/unistr/u8-check-tests: Likewise.
23199         * modules/unistr/u8-chr-tests: Likewise.
23200         * modules/unistr/u8-cmp-tests: Likewise.
23201         * modules/unistr/u8-cmp2-tests: Likewise.
23202         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23203         * modules/unistr/u8-cpy-tests: Likewise.
23204         * modules/unistr/u8-mblen-tests: Likewise.
23205         * modules/unistr/u8-mbsnlen-tests: Likewise.
23206         * modules/unistr/u8-mbtouc-tests: Likewise.
23207         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23208         * modules/unistr/u8-mbtoucr-tests: Likewise.
23209         * modules/unistr/u8-move-tests: Likewise.
23210         * modules/unistr/u8-next-tests: Likewise.
23211         * modules/unistr/u8-prev-tests: Likewise.
23212         * modules/unistr/u8-set-tests: Likewise.
23213         * modules/unistr/u8-stpcpy-tests: Likewise.
23214         * modules/unistr/u8-stpncpy-tests: Likewise.
23215         * modules/unistr/u8-strcat-tests: Likewise.
23216         * modules/unistr/u8-strcmp-tests: Likewise.
23217         * modules/unistr/u8-strcoll-tests: Likewise.
23218         * modules/unistr/u8-strcpy-tests: Likewise.
23219         * modules/unistr/u8-strdup-tests: Likewise.
23220         * modules/unistr/u8-strlen-tests: Likewise.
23221         * modules/unistr/u8-strmblen-tests: Likewise.
23222         * modules/unistr/u8-strmbtouc-tests: Likewise.
23223         * modules/unistr/u8-strncat-tests: Likewise.
23224         * modules/unistr/u8-strncmp-tests: Likewise.
23225         * modules/unistr/u8-strncpy-tests: Likewise.
23226         * modules/unistr/u8-strnlen-tests: Likewise.
23227         * modules/unistr/u8-to-u16-tests: Likewise.
23228         * modules/unistr/u8-to-u32-tests: Likewise.
23229         * modules/unistr/u8-uctomb-tests: Likewise.
23230         * modules/unistr/u16-check-tests: Likewise.
23231         * modules/unistr/u16-chr-tests: Likewise.
23232         * modules/unistr/u16-cmp-tests: Likewise.
23233         * modules/unistr/u16-cmp2-tests: Likewise.
23234         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23235         * modules/unistr/u16-cpy-tests: Likewise.
23236         * modules/unistr/u16-mblen-tests: Likewise.
23237         * modules/unistr/u16-mbsnlen-tests: Likewise.
23238         * modules/unistr/u16-mbtouc-tests: Likewise.
23239         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23240         * modules/unistr/u16-mbtoucr-tests: Likewise.
23241         * modules/unistr/u16-move-tests: Likewise.
23242         * modules/unistr/u16-next-tests: Likewise.
23243         * modules/unistr/u16-prev-tests: Likewise.
23244         * modules/unistr/u16-set-tests: Likewise.
23245         * modules/unistr/u16-stpcpy-tests: Likewise.
23246         * modules/unistr/u16-stpncpy-tests: Likewise.
23247         * modules/unistr/u16-strcat-tests: Likewise.
23248         * modules/unistr/u16-strcmp-tests: Likewise.
23249         * modules/unistr/u16-strcoll-tests: Likewise.
23250         * modules/unistr/u16-strcpy-tests: Likewise.
23251         * modules/unistr/u16-strdup-tests: Likewise.
23252         * modules/unistr/u16-strlen-tests: Likewise.
23253         * modules/unistr/u16-strmblen-tests: Likewise.
23254         * modules/unistr/u16-strmbtouc-tests: Likewise.
23255         * modules/unistr/u16-strncat-tests: Likewise.
23256         * modules/unistr/u16-strncmp-tests: Likewise.
23257         * modules/unistr/u16-strncpy-tests: Likewise.
23258         * modules/unistr/u16-strnlen-tests: Likewise.
23259         * modules/unistr/u16-to-u32-tests: Likewise.
23260         * modules/unistr/u16-to-u8-tests: Likewise.
23261         * modules/unistr/u16-uctomb-tests: Likewise.
23262         * modules/unistr/u32-check-tests: Likewise.
23263         * modules/unistr/u32-chr-tests: Likewise.
23264         * modules/unistr/u32-cmp-tests: Likewise.
23265         * modules/unistr/u32-cmp2-tests: Likewise.
23266         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23267         * modules/unistr/u32-cpy-tests: Likewise.
23268         * modules/unistr/u32-mblen-tests: Likewise.
23269         * modules/unistr/u32-mbsnlen-tests: Likewise.
23270         * modules/unistr/u32-mbtouc-tests: Likewise.
23271         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23272         * modules/unistr/u32-mbtoucr-tests: Likewise.
23273         * modules/unistr/u32-move-tests: Likewise.
23274         * modules/unistr/u32-next-tests: Likewise.
23275         * modules/unistr/u32-prev-tests: Likewise.
23276         * modules/unistr/u32-set-tests: Likewise.
23277         * modules/unistr/u32-stpcpy-tests: Likewise.
23278         * modules/unistr/u32-stpncpy-tests: Likewise.
23279         * modules/unistr/u32-strcat-tests: Likewise.
23280         * modules/unistr/u32-strcmp-tests: Likewise.
23281         * modules/unistr/u32-strcoll-tests: Likewise.
23282         * modules/unistr/u32-strcpy-tests: Likewise.
23283         * modules/unistr/u32-strdup-tests: Likewise.
23284         * modules/unistr/u32-strlen-tests: Likewise.
23285         * modules/unistr/u32-strmblen-tests: Likewise.
23286         * modules/unistr/u32-strmbtouc-tests: Likewise.
23287         * modules/unistr/u32-strncat-tests: Likewise.
23288         * modules/unistr/u32-strncmp-tests: Likewise.
23289         * modules/unistr/u32-strncpy-tests: Likewise.
23290         * modules/unistr/u32-strnlen-tests: Likewise.
23291         * modules/unistr/u32-to-u16-tests: Likewise.
23292         * modules/unistr/u32-to-u8-tests: Likewise.
23293         * modules/unistr/u32-uctomb-tests: Likewise.
23294         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23295         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23296         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23297         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23298         * modules/uniwidth/u8-strwidth-tests: Likewise.
23299         * modules/uniwidth/u8-width-tests: Likewise.
23300         * modules/uniwidth/u16-strwidth-tests: Likewise.
23301         * modules/uniwidth/u16-width-tests: Likewise.
23302         * modules/uniwidth/u32-strwidth-tests: Likewise.
23303         * modules/uniwidth/u32-width-tests: Likewise.
23304         * modules/uniwidth/width-tests: Likewise.
23305
23306 2010-05-18  Richard Jones  <rjones@redhat.com>
23307
23308         doc: users.txt: list hivex
23309         * users.txt: Add hivex.
23310
23311 2010-05-18  Richard Jones  <rjones@redhat.com>
23312
23313         doc: users.txt: list febootstrap
23314         * users.txt: Add febootstrap.
23315
23316 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23317
23318         bootstrap: fix an error when gnulib is not used as a git submodule
23319         * build-aux/bootstrap (gnulib_path): If its length is zero then
23320         assign "gnulib" to it.
23321         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23322
23323 2010-05-16  Bruno Haible  <bruno@clisp.org>
23324
23325         Avoid autoconf warnings about AM_ICONV.
23326         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23327         2.64.
23328
23329 2010-05-16  Bruno Haible  <bruno@clisp.org>
23330
23331         absolute-header: Make the macro usable in more situations.
23332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23333         from gl_ABSOLUTE_HEADER.
23334         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23335
23336 2010-05-16  James Youngman  <jay@gnu.org>
23337
23338         doc: update users.txt
23339         * users.txt: Add CSSC.
23340
23341 2010-05-16  Jim Meyering  <meyering@redhat.com>
23342
23343         init.sh: fix an error in the previous change; add more comments
23344         * tests/init.sh: Compare exit code in loop against 9, not 2.
23345         Patch by Bruno Haible.
23346         Make the two tests more similar by adding an empty "then" clause.
23347         Add comments.
23348
23349         init.sh: avoid unnecessary shell re-exec
23350         * tests/init.sh: Improve the re-exec-required check to first test the
23351         current shell.  If it passes the test, do not search for a shell that
23352         does pass, and do not re-exec.  This test is particularly contorted to
23353         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23354         of $(...) evokes a syntax error and causes immediate shell exit with
23355         status 2.  Bruno Haible reported that the re-exec made it impossible
23356         to single-step through any init.sh-using script.
23357
23358 2010-05-16  Bruno Haible  <bruno@clisp.org>
23359
23360         Fix collision between gnulib's and libintl's printf replacements.
23361         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23362         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23363         (printf): When using GNU C, map the __printf__ function to rpl_printf
23364         via __asm__. When not using GNU C, define rpl_printf instead of
23365         __printf__.
23366         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23367         commit.
23368         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23369         commit.
23370         * m4/asm-underscore.m4: New file.
23371         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23372         * modules/stdio (Files): Add m4/asm-underscore.m4.
23373         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23374         Reported by Ben Pfaff.
23375
23376 2010-05-16  Bruno Haible  <bruno@clisp.org>
23377
23378         verify: Avoid skipping the test on openSUSE 11.0.
23379         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23380
23381 2010-05-13  Bruno Haible  <bruno@clisp.org>
23382
23383         Avoid useless warnings from G++.
23384         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23385         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23386         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23387
23388 2010-05-11  Jim Meyering  <meyering@redhat.com>
23389
23390         maint.mk: tweak preceding change
23391         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23392         regexps tighter by anchoring at EOL, and make the new group "shy"
23393         for slightly decreased overhead.
23394
23395 2010-05-11  Eric Blake  <eblake@redhat.com>
23396
23397         maint.mk: gnulib doesn't guarantee NSIG
23398         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23399
23400 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23401
23402         test-pwrite.c: Remove unused variable declaration.
23403         * tests/test-pwrite.c (main): Remove read_buf declaration.
23404
23405         Remove useless test-pwrite.sh file.
23406         * tests/test-pwrite.sh: Delete file.
23407         * modules/pwrite-tests: Remove references.
23408         Reported by Bruno Haible.
23409
23410 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23411
23412         init.sh: fix a typo
23413         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23414
23415 2010-05-10  Jim Meyering  <meyering@redhat.com>
23416
23417         maint.mk: avoid using a temporary file in the always-defined-macros check
23418         * top/maint.mk (.re-defmac): Remove rule.
23419         (gl_trap_): Remove definition.
23420         (sc_prohibit_always-defined_macros): Rewrite not to create and
23421         depend on a temporary file.  Instead, depend on GNU grep's ability
23422         to read a list of regular expressions from stdin when given "-f -".
23423
23424 2010-05-09  Bruno Haible  <bruno@clisp.org>
23425
23426         Update to GNU gettext 0.18, part 1.
23427         * m4/gettext.m4: Update to GNU gettext 0.18.
23428         * m4/intl.m4: Likewise.
23429         * m4/po.m4: Likewise.
23430         * modules/gettext (Files): Add m4/fcntl-o.m4.
23431         (configure.ac): Require gettext infrastructure from version 0.18.
23432
23433 2010-05-09  Jim Meyering  <meyering@redhat.com>
23434
23435         init.sh: enable MALLOC_PERTURB_
23436         * tests/init.sh: Enable glibc's malloc-perturbing option.
23437
23438         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23439         With my recent change in init.sh from the two-line form:
23440             -#   : ${srcdir=.}
23441             -#   . "$srcdir/init.sh"; path_prepend_ .
23442             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23443         I noticed that using the one-line form would cause this test
23444         to fail with a false-positive, or to stop working altogether,
23445         depending on whether help-version changed or all the tests did.
23446         * top/maint.mk (_hv_regex): Remove this definition.
23447         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23448         (_hv_regex_strong): Use a stronger regex to check for conformance.
23449         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23450         Give a separate diagnostic for lack of conforming use.
23451
23452         maint.mk: prohibit definition of symbols defined by gnulib
23453         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23454         definition of symbols defined by gnulib.
23455
23456 2010-05-09  Bruno Haible  <bruno@clisp.org>
23457
23458         acl: Avoid test failure on Cygwin-hosted mingw.
23459         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23460
23461 2010-05-09  Bruno Haible  <bruno@clisp.org>
23462
23463         error: Use system's fcntl function.
23464         * lib/error.c (fcntl): Undefine.
23465
23466 2010-05-09  Jim Meyering  <meyering@redhat.com>
23467
23468         verify: adjust formatting to be more consistent
23469         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23470         argument-list '('s, and after one comma.
23471
23472 2010-05-09  Bruno Haible  <bruno@clisp.org>
23473
23474         error: More reliable output on mingw.
23475         * lib/error.c: Include <windows.h>.
23476         (is_open): New function.
23477         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23478         defined.
23479
23480 2010-05-09  Bruno Haible  <bruno@clisp.org>
23481
23482         vasnprintf: Fix syntax errors in libintl build on mingw.
23483         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23484         pad_ourselves and prec_ourselves after use.
23485
23486 2010-05-08  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/config.charset: Update comments for Cygwin 1.7.
23489         * lib/localcharset.c: Likewise.
23490
23491 2010-05-07  Jim Meyering  <meyering@redhat.com>
23492
23493         init.sh: improve comments
23494         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23495         . "${srcdir=.}/init.sh"; path_prepend_ .
23496         Add a note about path_prepend_ and the alternative of using
23497         TESTS_ENVIRONMENT.
23498
23499 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23500
23501         exclude: Unescape hashed patterns in wildcard mode.
23502         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23503         to the hash list.
23504         * tests/test-exclude8.sh: New test case.
23505         * modules/exclude-tests: Add new test.
23506
23507 2010-05-05  Eric Blake  <eblake@redhat.com>
23508
23509         verify: automate tests
23510         * modules/verify-tests: New module.
23511         * tests/test-verify.sh: New file.
23512         * tests/test-verify.c: Guard each negative test with a unique id.
23513         Also avoid warning about unused left hand of comma expressions.
23514
23515 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         Further improvements to verify.h, suggested by Eric Blake.
23518         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23519         the GL_* versions, to avoid collision with OpenGL.
23520         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23521         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23522         than testing merely whether it's defined.
23523
23524         Modify verify.h to pacify gcc -Wredundant_decls.
23525         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23526         These use the prefix "GL_" since they're likely to be useful elsewhere.
23527         We may need to break them out into a different .h file.
23528         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23529         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23530         of verify_function__.
23531
23532 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23533
23534         Tests for module pwrite.
23535         * modules/pwrite-tests: New file.
23536         * tests/test-pwrite.sh: New file.
23537         * tests/test-pwrite.c: New file.
23538
23539         New module pwrite.
23540         * lib/unistd.in.h (pwrite): New declaration.
23541         * lib/pwrite.c: New file, from glibc with modifications.
23542         * m4/pwrite.m4: New file.
23543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23545         REPLACE_PWRITE.
23546         * modules/pwrite: New file.
23547         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23548         REPLACE_PWRITE.
23549         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23550         * doc/posix-functions/pwrite.texi: Mention the new module.
23551
23552 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23553
23554         pread: Update documentation.
23555         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23556
23557 2010-05-04  Eric Blake  <eblake@redhat.com>
23558
23559         docs: update cygwin progress
23560         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23561         this bug.
23562         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23563         Added in cygwin 1.7.2.
23564         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23565         Likewise.
23566         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23567         Likewise.
23568         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23569         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23570         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23571         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23572         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23573         Mention nproc module.
23574         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23575         bug in cygwin 1.7.5 addition.
23576         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23577         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23578         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23579         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23580         1.7.5.
23581         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23582         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23583         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23584         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23585         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23586         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23587         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23588         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23589         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23590         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23591         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23592         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23593         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23594         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23595         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23596         Likewise.
23597         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23598         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23599         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23600         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23601         Likewise.
23602         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23603         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23604         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23605         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23606         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23607         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23608         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23609         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23610         Likewise.
23611         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23612         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23613         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23614         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23615         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23616         Likewise.
23617         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23618         Likewise.
23619         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23620         Likewise.
23621         * doc/glibc-functions/xdrrec_endofrecord.texi
23622         (xdrrec_endofrecord): Likewise.
23623         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23624         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23625         Likewise.
23626         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23627         Likewise.
23628
23629 2010-05-04  Jim Meyering  <meyering@redhat.com>
23630
23631         gendocs.sh: make its "-s FILE" option more useful
23632         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23633         $PACKAGE to reflect the probably-different basename of "FILE".
23634
23635 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23636
23637         bootstrap: don't ignore download_po_files failure
23638         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23639         failure.
23640
23641 2010-05-03  Jim Meyering  <meyering@redhat.com>
23642
23643         maint.mk: allow to pass options to gendocs.sh
23644         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23645         (gendocs_options_): New overridable variable.
23646
23647         gnu-web-doc-update: don't ignore configure or build failure
23648         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23649
23650         announce-gen: backslash-escape '@'s in --help output
23651         * build-aux/announce-gen: Fix syntax errors.
23652
23653         maint.mk, announce-gen: allow project-specific announcement mail headers
23654         * top/maint.mk (translation_project_): Define default.
23655         (announcement_Cc_, announcement_mail_headers_): Likewise.
23656         (announcement): Invoke announce-gen with new --mail-headers option.
23657         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23658
23659         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23660         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23661         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23662         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23663         line in the "err2" output file when running "make check" in verbose
23664         mode (i.e., with set -x enabled).
23665
23666 2010-05-03  Bruno Haible  <bruno@clisp.org>
23667
23668         wctob: Fix for weird platforms.
23669         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23670         argument value.
23671
23672 2010-05-03  Jim Meyering  <meyering@redhat.com>
23673
23674         maint.mk: prohibit unwarranted use of <strings.h>
23675         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23676         strings.h in a file that does not also use strcasecmp, strncasecmp,
23677         ffs or ffsll.
23678
23679         maint.mk: remove obsolete comments
23680         * top/maint.mk: Remove stale, commented-out rules.
23681
23682 2010-05-02  Bruno Haible  <bruno@clisp.org>
23683
23684         wcwidth: Declare also when it's aliased.
23685         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23686         macro.
23687
23688 2010-05-02  Bruno Haible  <bruno@clisp.org>
23689
23690         Fix regression from 2010-04-25.
23691         * gnulib-tool (func_modules_transitive_closure): Check the status of
23692         all modules, not only of the tests that are of the form foo-tests where
23693         foo is a module.
23694
23695 2010-05-02  Bruno Haible  <bruno@clisp.org>
23696
23697         wctob: Work around nasty Cygwin 1.7.2 bug.
23698         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23699         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23700
23701 2010-05-01  Bruno Haible  <bruno@clisp.org>
23702
23703         fpurge: Sharper test.
23704         * tests/test-fpurge.c (main): Add one more ftell check.
23705         * modules/fpurge-tests (Depends-on): Add ftell.
23706         Suggested by Eric Blake.
23707
23708 2010-05-01  Bruno Haible  <bruno@clisp.org>
23709
23710         ftello: Another test.
23711         * tests/test-ftello3.c: New file.
23712         * modules/ftello-tests (Files): Add it.
23713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23714         MOSTLYCLEANFILES.
23715
23716         ftell: Another test.
23717         * tests/test-ftell3.c: New file.
23718         * modules/ftell-tests (Files): Add it.
23719         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23720         MOSTLYCLEANFILES.
23721
23722 2010-05-01  Bruno Haible  <bruno@clisp.org>
23723
23724         ftell, ftello: Work around Solaris bug.
23725         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23726         * lib/ftello.c: Include stdio-impl.h.
23727         (ftello): On Solaris, when _IOWRT is set, compute the result without
23728         looking at _IOREAD.
23729         * modules/ftello (Files): Add lib/stdio-impl.h.
23730         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23731         * doc/posix-functions/ftello.texi: Likewise.
23732         Reported by Eric Blake.
23733
23734 2010-05-01  Bruno Haible  <bruno@clisp.org>
23735
23736         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23737         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23738         the _IOWRT flag is also set.
23739
23740 2010-05-01  Bruno Haible  <bruno@clisp.org>
23741
23742         Fix doc about a HP-UX stdio bug.
23743         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23744         * doc/posix-functions/ftello.texi: Likewise.
23745
23746 2010-05-01  Bruno Haible  <bruno@clisp.org>
23747
23748         lseek test: Fix failure on Solaris.
23749         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23750         output.
23751
23752 2010-04-30  Jim Meyering  <meyering@redhat.com>
23753
23754         bootstrap: don't ignore failure to generate po*/Makevars
23755         * build-aux/bootstrap (with_gettext): Don't ignore failure
23756         to create po/Makevars or runtime-po/Makevars.
23757
23758 2010-04-29  Eric Blake  <eblake@redhat.com>
23759
23760         headers: relax license to LGPLv2+
23761         * modules/fcntl-h (License): Relax license.
23762         * modules/getopt-posix (License): Likewise.
23763         * modules/locale (License): Likewise.
23764         * modules/math (License): Likewise.
23765         * modules/pty (License): Likewise.
23766         * modules/sched (License): Likewise.
23767         * modules/search (License): Likewise.
23768         * modules/spawn (License): Likewise.
23769         * modules/stdarg (License): Likewise.
23770         * modules/sysexits (License): Likewise.
23771
23772 2010-04-29  Jim Meyering  <meyering@redhat.com>
23773
23774         inttypes: relax license to LGPLv2+
23775         * modules/inttypes (License): Relax license.
23776
23777 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23778
23779         * top/maint.mk (indent): Run twice to produce idempotent results.
23780
23781 2010-04-28  Bruno Haible  <bruno@clisp.org>
23782
23783         getdate: Generate getdate.c in the source directory.
23784         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23785         MOSTLYCLEANFILES.
23786         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23787
23788 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23789
23790         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23791         is not declared as a const *; avoid warnings in that case.
23792
23793 2010-04-28  Eric Blake  <eblake@redhat.com>
23794
23795         canonicalize-lgpl: avoid compiler warning
23796         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23797         declaration' / 'extraneous semicolon' warning with some compilers.
23798         Reported by Andreas Gruenbacher.
23799
23800 2010-04-28  Jim Meyering  <meyering@redhat.com>
23801
23802         init.sh: ensure a more reliable exit status when exiting via trap
23803         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23804         Inspired by patches from Dmitry V. Levin.
23805         Also trap on signal 3 (SIGQUIT).
23806
23807 2010-04-27  Bruno Haible  <bruno@clisp.org>
23808
23809         Update doc about utimes().
23810         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23811         'utimens' module.
23812         Reported by Andreas Gruenbacher <agruen@suse.de>.
23813
23814 2010-04-27  Eric Blake  <eblake@redhat.com>
23815
23816         full-read, full-write: relax license
23817         * modules/full-read (License): Drop to LGPLv2+.
23818         * modules/full-write (License): Likewise.
23819         * modules/safe-read (License): Likewise.
23820         * modules/safe-write (License): Likewise.
23821
23822         pthread: mention library for linking
23823         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23824
23825 2010-04-27  Jim Meyering  <meyering@redhat.com>
23826
23827         maint.mk: fix a bug introduced in last change
23828         * top/maint.mk (gl_assured_headers_): Now that all names are on
23829         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23830         is not anchored to end of word, it should be adequate.
23831
23832         maint.mk: avoid side-effect in latest syntax-check
23833         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23834         to run commands via $(shell...), and hence to incur cost only when
23835         the new rule is actually run.
23836
23837         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23838         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23839         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23840         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23841         (gl_assured_headers_, az_, AZ_): Define.
23842         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23843
23844 2010-04-26  Jim Meyering  <jim@meyering.net>
23845             Bruno Haible  <bruno@clisp.org>
23846
23847         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23849         Prompted by an exchange with Gilles Espinasse.
23850
23851 2010-04-26  Jim Meyering  <meyering@redhat.com>
23852
23853         git-version-gen: aesthetic tweak
23854         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23855         so that the command remains on a single line.
23856
23857 2010-04-26  Eric Blake  <eblake@redhat.com>
23858
23859         git-version-gen: allow use on EBCDIC hosts
23860         * build-aux/git-version-gen (dirty): Use literal rather than tying
23861         ourselves to ascii.
23862         Reported by Steve Goetze.
23863
23864 2010-04-25  Bruno Haible  <bruno@clisp.org>
23865
23866         netdb: Add support for GNULIB_POSIXCHECK.
23867         * lib/netdb.in.h: Include warn-on-use.h.
23868         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23869         functions are used when GNULIB_POSIXCHECK is defined and the
23870         getaddrinfo module is not in use.
23871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23872         freeaddrinfo, gai_strerror, getnameinfo are declared.
23873         * modules/netdb (Depends-on): Add warn-on-use.
23874         (Makefile.am): Include warn-on-use.h in netdb.h.
23875
23876 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23877
23878         build: avoid "make check" failure without .git/ directory
23879         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23880         there is no .git/ directory.
23881
23882 2010-04-25  Bruno Haible  <bruno@clisp.org>
23883
23884         ptsname: Fix misuse of ttyname_r.
23885         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23886         of errno.
23887
23888 2010-04-25  Bruno Haible  <bruno@clisp.org>
23889
23890         ttyname_r: Make it work on Solaris 10.
23891         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23892         if the system function has the POSIX declaration. Test whether the
23893         function fails if the buffer is less than 128 bytes large.
23894         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23895         system's ttyname_r function. Provide a reasonably large buffer.
23896         * modules/ttyname_r (Depends-on): Add extensions.
23897         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23898
23899 2010-04-25  Bruno Haible  <bruno@clisp.org>
23900
23901         Use the 'extensions' module for some more functions on Solaris.
23902         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23903         module.
23904         * doc/posix-functions/ctime_r.texi: Likewise.
23905         * doc/posix-functions/getgrgid_r.texi: Likewise.
23906         * doc/posix-functions/getgrnam_r.texi: Likewise.
23907         * doc/posix-functions/getpwnam_r.texi: Likewise.
23908         * doc/posix-functions/getpwuid_r.texi: Likewise.
23909         * doc/posix-functions/readdir_r.texi: Likewise.
23910         * doc/posix-functions/sigwait.texi: Likewise.
23911         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23912         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23913
23914 2010-04-25  Bruno Haible  <bruno@clisp.org>
23915
23916         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23917         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23918         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23919         * lib/ttyname_r.c: Include <limits.h>.
23920         (ttyname_r): Define using the system's ttyname_r function, if it exists
23921         and not on Solaris.
23922         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23923         set.
23924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23925         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23926         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23927         Reported by Simon Josefsson.
23928
23929 2010-04-25  Bruno Haible  <bruno@clisp.org>
23930
23931         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23932         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23933         * doc/posix-functions/ctime_r.texi: Likewise.
23934         * doc/posix-functions/getgrgid_r.texi: Likewise.
23935         * doc/posix-functions/getgrnam_r.texi: Likewise.
23936         * doc/posix-functions/getlogin_r.texi: Likewise.
23937         * doc/posix-functions/getpwnam_r.texi: Likewise.
23938         * doc/posix-functions/getpwuid_r.texi: Likewise.
23939         * doc/posix-functions/readdir_r.texi: Likewise.
23940         * doc/posix-functions/sigwait.texi: Likewise.
23941         * doc/posix-functions/ttyname_r.texi: Likewise.
23942         Reported by Simon Josefsson.
23943
23944 2010-04-25  Bruno Haible  <bruno@clisp.org>
23945
23946         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23947         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23948         also to --create-testdir.
23949         (func_acceptable): Don't consider the status of *-tests modules here.
23950         (func_modules_transitive_closure): Consider it here, before including a
23951         test module.
23952         (func_import, func_create_testdir): Set inc_all_direct_tests,
23953         inc_all_indirect_tests.
23954         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23955         --create-testdir and --create-megatestdir.
23956
23957 2010-04-25  Bruno Haible  <bruno@clisp.org>
23958
23959         gnulib-tool: Add --without-*-tests options.
23960         * gnulib-tool (func_usage): Document the --without-*-tests options.
23961         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23962         excl_unportable_tests): New variables.
23963         Fail if they are specified with --import or --update.
23964         (func_acceptable): Respect the excl_*_tests variables.
23965         (func_import): Set the excl_*_tests variables to empty.
23966
23967 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23968             Bruno Haible  <bruno@clisp.org>
23969
23970         Work around a MacOS X 10.4 bug with openpty.
23971         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23972         * tests/test-openpty.c (main): Close the master side explicitly.
23973
23974 2010-04-25  Bruno Haible  <bruno@clisp.org>
23975
23976         strnlen: Fix a C++ test error on MacOS X and Solaris.
23977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23978         the function is not declared.
23979         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23980         Simon Josefsson.
23981
23982 2010-04-24  Bruno Haible  <bruno@clisp.org>
23983
23984         Avoid a gcc warning.
23985         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23986         of correct type for %08lx directive.
23987         Reported by Eric Blake.
23988
23989 2010-04-24  Bruno Haible  <bruno@clisp.org>
23990
23991         vasnprintf: Correct errno value in case of out-of-memory.
23992         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23993         or sprintf. Use the errno value from SNPRINTF or sprintf.
23994         Reported by Ian Beckwith <ianb@erislabs.net>.
23995
23996 2010-04-24  Bruno Haible  <bruno@clisp.org>
23997
23998         ansi-c++-opt: Find correct compiler when cross-compiling.
23999         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24000         AC_CHECK_PROGS.
24001         Reported by Simon Josefsson.
24002
24003 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24004
24005         vc-list-files: Add support for subversion
24006         * build-aux/vc-list-files: Use "svn list" to generate the list of
24007         files controlled by subversion.
24008
24009 2010-04-23  Jim Meyering  <meyering@redhat.com>
24010
24011         vc-list-files tests: convert to use init.sh
24012         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24013         path_prepend_.
24014         Use Exit, not exit.
24015         Use skip_ rather than open coding it.
24016         Remove trap set-up and compare definitions.
24017         * tests/test-vc-list-files-git.sh: Likewise.
24018         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24019
24020 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24021
24022         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24023         backup files.
24024
24025 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24026
24027         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24028
24029 2010-04-20  Eric Blake  <eblake@redhat.com>
24030
24031         tests: be robust to ignored SIGPIPE
24032         * tests/test-select-in.sh: Consume all output.
24033         * tests/test-lseek.sh: Check correct exit status, while avoiding
24034         EPIPE.
24035
24036 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24037             Bruno Haible  <bruno@clisp.org>
24038
24039         visibility: Don't use -fvisibility if it leads to a warning.
24040         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24041         yes, don't pretend that visibility works if it leads to a warning.
24042         Reported by Mike Gran <spk121@yahoo.com>.
24043
24044 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24045
24046         * build-aux/bootstrap: Use "git -h" for testing for supported options
24047         instead of "git --help".  The short-form option only shows a summary,
24048         and doesn't layout the full man page.  Grep for the full option name
24049         in the summary, too.
24050
24051 2010-04-19  Bruno Haible  <bruno@clisp.org>
24052
24053         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24055         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24056         mention of RELOCATABLE_STRIP.
24057         Reported by Sylvain Beucler <beuc@beuc.net>.
24058
24059 2010-04-19  Bruno Haible  <bruno@clisp.org>
24060
24061         * lib/diffseq.h: Fix typo in comment.
24062         Reported by Eric Blake.
24063
24064 2010-04-19  Bruno Haible  <bruno@clisp.org>
24065
24066         ioctl: Move autoconf macro to a .m4 file.
24067         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24068         * modules/ioctl (Files): Add it.
24069         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24070         Reported by Ian Beckwith <ianb@erislabs.net>.
24071
24072 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24073             Bruno Haible  <bruno@clisp.org>
24074
24075         diffseq: Accommodate use-case with abstract arrays.
24076         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24077         is not defined.
24078         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24079         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24080
24081 2010-04-18  Bruno Haible  <bruno@clisp.org>
24082
24083         * doc/posix-headers/stdbool.texi: More precise wording.
24084
24085 2010-04-17  Jim Meyering  <meyering@redhat.com>
24086
24087         maint.mk: use gnu-style indentation in an embedded perl script
24088         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24089         Rename variable: s/two/last_two_bytes/
24090
24091 2010-04-16  Eric Blake  <eblake@redhat.com>
24092
24093         test-stdbool: skip test that fails with Solaris CC
24094         * tests/test-stdbool.c (f): Skip test that causes compilation
24095         error under buggy C++ compiler.
24096         * lib/stdbool.in.h: Document the limitation.
24097         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24098
24099         setenv: allow compilation with C++
24100         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24101         register keyword.
24102
24103         stdint: allow test to pass with C++
24104         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24105
24106         getopt: allow compilation with C++
24107         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24108         struct.
24109         * lib/getopt.c (_getopt_internal_r): Use correct type.
24110         Reported by Dagobert Michelson, via Joel E. Denny.
24111
24112 2010-04-16  Bruno Haible  <bruno@clisp.org>
24113
24114         Override netdb.h always.
24115         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24117         Reported by Ludovic Courtès <ludo@gnu.org>.
24118
24119 2010-04-15  Bruno Haible  <bruno@clisp.org>
24120
24121         openpty: Fix mistake from 2010-03-21.
24122         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24123         Reported by Simon Josefsson.
24124
24125 2010-04-15  Eric Blake  <eblake@redhat.com>
24126
24127         test-forkpty: fix expected signature
24128         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24129         Reported by Simon Josefsson.
24130
24131 2010-04-15  Jim Meyering  <meyering@redhat.com>
24132
24133         maint.mk: texinfo_suffix_re_: correct the default regexp
24134         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24135
24136         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24137         make it configurable via texinfo_suffix_re_.
24138
24139 2010-04-14  Eric Blake  <eblake@redhat.com>
24140
24141         strtok_r: relax license to LGPLv2+
24142         * modules/strtok_r (License): Relax license.
24143         Reported by Matthias Bolte.
24144
24145 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24146
24147         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24148         version 1.4.4 by default instead of requiring the libgcrypt
24149         version used during build.  This makes it possible to use the
24150         application with older but still binary compatible libgcrypt
24151         versions.
24152
24153 2010-04-13  Eric Blake  <eblake@redhat.com>
24154
24155         getopt-gnu: match recent glibc fixes and posix ruling
24156         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24157         '+' handling, when requesting extensions.
24158         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24159         'W;' handling.
24160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24161         * doc/posix-functions/getopt.texi (getopt): Document this.
24162         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24163         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24164         Likewise.
24165
24166         getopt: merge bug fixes from glibc
24167         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24168         diagnostics.  Honor '+:' correctly.  Reject ';'.
24169
24170         getopt-posix: detect MacOS bug
24171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24172         optind when missing a required argument.
24173         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24174         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24176         Likewise.
24177
24178         getopt-posix: avoid spurious failure on Solaris
24179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24180         an indicator that setting optind=1 is sufficient for reset.
24181
24182         getopt-posix: avoid spurious failure on FreeBSD
24183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24184         in POSIX mode, since the m4 test uses it.
24185
24186         gnulib-tool: silence warning on BSD sh
24187         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24188
24189 2010-04-13  Jim Meyering  <meyering@redhat.com>
24190
24191         doc: users.txt: GNU patch now uses gnulib
24192         * users.txt: Add patch.
24193
24194 2010-04-12  Jim Meyering  <meyering@redhat.com>
24195
24196         maint.mk: generate more concise timing data for syntax-check rules
24197         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24198         " done" from each line that reports a syntax-check test duration.
24199
24200 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24201
24202         git-version-gen: use "git update-index..." rather than "git status"
24203         * build-aux/git-version-gen: Use git update-index --refresh, not
24204         "git status".  With some versions of git, "git status" would fail
24205         to update the index and result in an unwarranted "-dirty" suffix.
24206
24207 2010-04-11  Jim Meyering  <meyering@redhat.com>
24208
24209         openat: correct formatting (no semantic change)
24210         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24211         Suggested by Bruno Haible.
24212
24213 2010-04-11  Bruno Haible  <bruno@clisp.org>
24214
24215         Stricter declaration checking in testdirs.
24216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24217         If for_tests is true, augment AM_CPPFLAGS to define
24218         GNULIB_STRICT_CHECKING.
24219         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24220         GNULIB_STRICT_CHECKING is defined, verify that the function is
24221         declared.
24222
24223 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24224             Bruno Haible  <bruno@clisp.org>
24225
24226         libunistring: Improve configure output.
24227         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24228         Don't say "consider installing GNU libunistring" when checking again
24229         with libiconv.
24230
24231 2010-04-11  Bruno Haible  <bruno@clisp.org>
24232
24233         libunistring: Correct value of $LTLIBUNISTRING.
24234         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24235         correct the value of $LTLIBUNISTRING.
24236
24237 2010-04-11  Bruno Haible  <bruno@clisp.org>
24238
24239         havelib: Add static libraries to LIBS in the right order.
24240         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24241         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24242
24243 2010-04-11  Bruno Haible  <bruno@clisp.org>
24244
24245         libunistring: Detect libunistring also when it depends on libiconv.
24246         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24247         the second AC_LIB_HAVE_LINKFLAGS invocation.
24248
24249 2010-04-11  James Youngman  <jay@gnu.org>
24250
24251         close-stream: declare local scalars to be "const"
24252         * lib/close-stream.c (close_stream): Make boolean variables const
24253         to document the fact that we set but do not change them.
24254
24255 2010-04-11  Bruno Haible  <bruno@clisp.org>
24256
24257         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24258
24259 2010-04-11  Jim Meyering  <meyering@redhat.com>
24260
24261         maint.mk: don't include dist-check.mk
24262         * top/maint.mk: Remove bogus include directive.
24263
24264         maint.mk: improve empty-line-at-EOF check
24265         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24266         solution, rather than tail+Perl-based one.  The latter would read
24267         a few kilobytes from the end of each file, and did not handle empty
24268         files properly.
24269
24270         maint.mk: print the elapsed time for each syntax-check rule
24271         * top/maint.mk (sc_m_rules_): Save start time in a file.
24272         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24273         (local-check): Interpose the .z rules
24274
24275 2010-04-11  Jim Meyering  <meyering@redhat.com>
24276
24277         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24278         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24279         empty file with one that ends in an empty line.
24280
24281 2010-04-10  Bruno Haible  <bruno@clisp.org>
24282
24283         mkdir: Make it work on mingw64.
24284         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24285         * lib/mkdir.c: Update comment.
24286         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24287
24288 2010-04-10  Bruno Haible  <bruno@clisp.org>
24289
24290         Don't override improved macro from newer autoconf.
24291         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24292         autoconf >= 2.62.
24293         Reported by Joel E. Denny <jdenny@clemson.edu>.
24294
24295 2010-04-10  Jim Meyering  <meyering@redhat.com>
24296
24297         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24298         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24299
24300         maint.mk: correct a diagnostic
24301         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24302         in diagnostic; now use $prohibit.
24303
24304 2010-04-10  Bruno Haible  <address@hidden>
24305
24306         fchownat: Fix a C++ test error on Solaris 8.
24307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24308         the function does not exist.
24309
24310 2010-04-10  Bruno Haible  <bruno@clisp.org>
24311
24312         vasnprintf: Add more tests.
24313         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24314         (test_function): Test converting an invalid wide string.
24315
24316         vasnprintf: Correct handling of unconvertible wide string arguments.
24317         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24318         VASNPRINTF.
24319         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24320         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24321         smaller than the expected maximum need for the directive. Set errno to
24322         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24323         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24325         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24326         * modules/vasnprintf (Files): Add m4/printf.m4.
24327         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24328
24329 2010-04-10  Bruno Haible  <bruno@clisp.org>
24330
24331         vasnprintf: Fix crash in %ls directive.
24332         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24333         string is passed as argument to %ls, with no precision and no width.
24334         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24335
24336 2010-04-10  Bruno Haible  <bruno@clisp.org>
24337
24338         vasnprintf: Fix multiple test failures on mingw.
24339         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24340         _snprintf, or snwprintf, not _snwprintf.
24341
24342 2010-04-10  Bruno Haible  <bruno@clisp.org>
24343
24344         write: Fix a C++ test error on mingw.
24345         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24346
24347 2010-04-10  Bruno Haible  <bruno@clisp.org>
24348
24349         vasnprintf test: Reduce code duplication.
24350         * tests/test-vasnprintf.c (test_function): New function, extracted from
24351         test_vasnprintf.
24352         (test_vasnprintf, test_asnprintf): Invoke it.
24353
24354 2010-04-10  Bruno Haible  <bruno@clisp.org>
24355
24356         strnlen: Fix warning in C++ mode on MacOS X.
24357         * lib/string.in.h (strnlen): Use the modern idiom.
24358         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24359         defining strnlen as a macro already in <config.h>.
24360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24361         REPLACE_STRNLEN.
24362         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24363         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24364
24365 2010-04-08  James Youngman  <jay@gnu.org>
24366
24367         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24368         the example.
24369
24370 2010-04-09  Jim Meyering  <meyering@redhat.com>
24371
24372         maint.mk: print better diagnostic when there is no $(_hv_file)
24373         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24374         announce that when $(_hv_file) (aka help-version) does not exist.
24375
24376         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24377         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24378         not try to interpret its random input bytes.  Jarno Rajahalme reported
24379         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24380         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24381         (mktempd_): Likewise, just in case.
24382
24383         ftruncate: add two years to projected module removal date: 2012
24384         * m4/ftruncate.m4: Adjust comments.
24385
24386         ftruncate: mark module as obsolete; even MinGW provides it, now
24387         * modules/ftruncate (Status): Obsolete.
24388         (Notice): Say that.
24389         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24391
24392 2010-04-08  Bruno Haible  <bruno@clisp.org>
24393
24394         Fix side effects from tests-related modules.
24395         * modules/dprintf-posix (Comment): New section.
24396         * modules/fprintf-posix (Comment): Likewise.
24397         * modules/obstack-printf-posix (Comment): Likewise.
24398         * modules/printf-posix (Comment): Likewise.
24399         * modules/snprintf-posix (Comment): Likewise.
24400         * modules/sprintf-posix (Comment): Likewise.
24401         * modules/vasnprintf-posix (Comment): Likewise.
24402         * modules/vasprintf-posix (Comment): Likewise.
24403         * modules/vdprintf-posix (Comment): Likewise.
24404         * modules/vfprintf-posix (Comment): Likewise.
24405         * modules/vprintf-posix (Comment): Likewise.
24406         * modules/vsnprintf-posix (Comment): Likewise.
24407         * modules/vsprintf-posix (Comment): Likewise.
24408         * modules/xprintf-posix (Comment): Likewise.
24409         * modules/xvasprintf-posix (Comment): Likewise.
24410         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24411         * modules/floorf-tests (Depends-on): Likewise.
24412         * modules/round-tests (Depends-on): Likewise.
24413         * modules/roundf-tests (Depends-on): Likewise.
24414         * modules/trunc-tests (Depends-on): Likewise.
24415         * modules/truncf-tests (Depends-on): Likewise.
24416         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24417         'fprintf-posix' module is not present.
24418         * tests/test-floorf2.c (check): Likewise.
24419         * tests/test-trunc2.c (check): Likewise.
24420         * tests/test-truncf2.c (check): Likewise.
24421         * tests/test-round2.c (equal): Likewise.
24422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24423
24424 2010-04-07  Karl Berry  <karl@gnu.org>
24425
24426         * config/srclist.txt,
24427         * config/srclistvars.sh,
24428         * config/srclist-update: doc fixes.
24429
24430 2010-04-07  Jim Meyering  <meyering@redhat.com>
24431
24432         maint.mk: add a PATH crosschecking syntax-check rule
24433         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24434         Useful if you use a test like the one in help-version (coreutils,
24435         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24436         printed by prog --version.
24437
24438 2010-04-06  Bruno Haible  <bruno@clisp.org>
24439
24440         Fix link error on mingw.
24441         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24442         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24443
24444 2010-04-06  Bruno Haible  <bruno@clisp.org>
24445
24446         Assume rmdir exists.
24447         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24448
24449 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24450
24451         doc: update users.txt
24452         * users.txt: Add gcal.
24453
24454 2010-04-06  Jim Meyering  <meyering@redhat.com>
24455
24456         init.sh: simply unset TMPDIR rather than risking env -i
24457         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24458         although it probably works fine on all Unix-based systems, some
24459         systems (Cygwin?) cannot tolerate a totally cleared environment.
24460         Suggestion from Eric Blake.
24461
24462 2010-04-06  Jim Meyering  <meyering@redhat.com>
24463
24464         init.sh: portability fix: use env's POSIX-specified -i option not -u
24465         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24466         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24467
24468 2010-04-05  Bruno Haible  <bruno@clisp.org>
24469
24470         btowc: Work around Cygwin 1.7.2 bug.
24471         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24472         does not map NUL to 0.
24473         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24474
24475 2010-04-05  Bruno Haible  <bruno@clisp.org>
24476
24477         Make the multithread modules work on Cygwin 1.7.2.
24478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24479         imported symbols can be declared weak, so that it returns "no" on
24480         Cygwin 1.7.2.
24481
24482 2010-04-05  Bruno Haible  <bruno@clisp.org>
24483
24484         Use the module 'strncat'.
24485         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24486
24487         Tests for module 'strncat'.
24488         * modules/strncat-tests: New file.
24489         * tests/test-strncat.c: New file.
24490
24491         New module 'strncat'.
24492         * lib/string.in.h (strncat): New declaration.
24493         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24494         * m4/strncat.m4: New file, based on m4/memchr.m4.
24495         * modules/strncat: New file.
24496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24497         is declared.
24498         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24499         REPLACE_STRNCAT.
24500         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24501         REPLACE_STRNCAT.
24502         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24503         module.
24504         * tests/test-string-c++.cc: Check signature of strncat.
24505
24506 2010-04-05  Jim Meyering  <meyering@redhat.com>
24507
24508         xstrtoumax-tests: convert to use init.sh
24509         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24510         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24511         Use Exit, not exit.
24512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24513
24514         xstrtoimax-tests: convert to use init.sh
24515         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24516         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24517         Use Exit, not exit.
24518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24519
24520 2010-04-05  Bruno Haible  <bruno@clisp.org>
24521
24522         sys_socket: Avoid #define replacements in C++ mode.
24523         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24524         warning to the function if possible, rather than #defining the symbol
24525         to a dysfunctional alias.
24526
24527 2010-04-05  Bruno Haible  <bruno@clisp.org>
24528
24529         fseeko: Fix C++ test error on mingw.
24530         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24531         gl_FUNC_FSEEKO.
24532         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24533         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24535         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24536
24537 2010-04-05  Bruno Haible  <bruno@clisp.org>
24538
24539         duplocale: Improve test output.
24540         * tests/test-duplocale.c (main): Print reason for skipped test.
24541
24542 2010-04-05  Bruno Haible  <bruno@clisp.org>
24543
24544         Assume rmdir exists.
24545         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24546         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24547
24548 2010-04-05  Bruno Haible  <bruno@clisp.org>
24549
24550         Fix link error on Solaris 8 with cc.
24551         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24552
24553 2010-04-05  Bruno Haible  <bruno@clisp.org>
24554
24555         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24556         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24557
24558 2010-04-05  Bruno Haible  <bruno@clisp.org>
24559
24560         vasprintf: Update documentation.
24561         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24562
24563 2010-04-05  Bruno Haible  <bruno@clisp.org>
24564
24565         ptsname: Improve test.
24566         * tests/test-ptsname.c (main): Also try the various master names of BSD
24567         systems.
24568
24569 2010-04-05  Bruno Haible  <bruno@clisp.org>
24570
24571         memchr: Avoid a possible C++ test error.
24572         * lib/string.in.h (memchr): Provide declaration if function is missing.
24573         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24574         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24576         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24577
24578 2010-04-05  Bruno Haible  <bruno@clisp.org>
24579
24580         strtok_r: Improve idiom.
24581         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24582         AC_LIBOBJ is used.
24583
24584 2010-04-05  Bruno Haible  <bruno@clisp.org>
24585
24586         strdup: Improve idiom.
24587         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24588         AC_LIBOBJ is used.
24589         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24590         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24591         when AC_LIBOBJ is used.
24592
24593 2010-04-05  Bruno Haible  <bruno@clisp.org>
24594
24595         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24596         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24597         don't set REPLACE_MBSINIT to 1.
24598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24599         don't set REPLACE_MBRTOWC to 1.
24600         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24601         exist, don't set REPLACE_MBSRTOWCS to 1.
24602         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24603         exist, don't set REPLACE_MBSNRTOWCS to 1.
24604         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24605         don't set REPLACE_WCRTOMB to 1.
24606         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24607         exist, don't set REPLACE_WCSRTOMBS to 1.
24608         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24609         exist, don't set REPLACE_WCSNRTOMBS to 1.
24610
24611 2010-04-05  Bruno Haible  <bruno@clisp.org>
24612
24613         ldexpl: Improve idiom.
24614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24615         make sure to set HAVE_DECL_LDEXPL to 0.
24616
24617 2010-04-05  Jim Meyering  <meyering@redhat.com>
24618
24619         xstrtol-tests: convert to use init.sh
24620         * modules/xstrtol-tests (Files): Add tests/init.sh.
24621         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24622         Use Exit, not exit.
24623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24624
24625         atexit-tests: convert to use init.sh
24626         * modules/atexit-tests (Files): Add tests/init.sh.
24627         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24628         Use Exit, not exit.
24629         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24630
24631         init.sh: fix typo
24632         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24633
24634         init.sh: make it easier for a test script to write to the tty, ...
24635         when using automake's parallel-tests mode.
24636         * tests/init.sh (stderr_fileno_): Define overridable variable.
24637         (warn_): New function, to use it.
24638         (fail_, skip_, framework_failure_): Use warn_.
24639
24640 2010-04-04  Bruno Haible  <bruno@clisp.org>
24641
24642         btowc: Avoid warning.
24643         * lib/btowc.c: Include <stdlib.h>.
24644         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24645
24646 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24647             Bruno Haible  <bruno@clisp.org>
24648
24649         wchar: Port to NetBSD 1.5.
24650         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24651         * lib/wctype.in.h (WEOF): Likewise.
24652
24653 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24654             Bruno Haible  <bruno@clisp.org>
24655
24656         Port extended stdio to NetBSD 1.5.
24657         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24658         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24659         older.
24660
24661 2010-04-04  Bruno Haible  <bruno@clisp.org>
24662
24663         string: Remove unused substitution.
24664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24665         HAVE_DECL_STRERROR.
24666         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24667
24668 2010-04-04  Bruno Haible  <bruno@clisp.org>
24669
24670         strtod: Avoid a possible C++ test error.
24671         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24672         set REPLACE_STRTOD.
24673
24674 2010-04-04  Bruno Haible  <bruno@clisp.org>
24675
24676         strerror: Update documentation.
24677         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24678
24679 2010-04-04  Bruno Haible  <bruno@clisp.org>
24680
24681         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24682         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24683         _GL_CXXALIAS_SYS_CAST.
24684
24685 2010-04-04  Bruno Haible  <bruno@clisp.org>
24686
24687         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24688         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24689         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24690         REPLACE_FREXPL to 1.
24691         * doc/posix-functions/frexpl.texi: Update documentation.
24692
24693 2010-04-04  Bruno Haible  <bruno@clisp.org>
24694
24695         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24696         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24697
24698 2010-04-04  Bruno Haible  <bruno@clisp.org>
24699
24700         Implement nanosleep for native Windows.
24701         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24702
24703 2010-04-04  Bruno Haible  <bruno@clisp.org>
24704
24705         math: Fix some C++ test errors on Solaris 8.
24706         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24707
24708 2010-04-04  Bruno Haible  <bruno@clisp.org>
24709
24710         math: Fix some C++ test errors on Cygwin.
24711         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24712         truncl): Provide declaration if the system does not have it.
24713         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24714         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24715         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24716         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24717         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24718         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24719         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24720         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24721         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24722         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24723         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24724         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24725         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24726         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24727         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24728         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24730         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24731         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24732         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24733         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24734         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24735
24736 2010-04-04  Bruno Haible  <bruno@clisp.org>
24737
24738         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24739         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24740         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24741         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24742         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24743         * m4/isinf.m4 (gl_ISINF): Likewise.
24744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24745
24746 2010-04-04  Bruno Haible  <bruno@clisp.org>
24747
24748         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24749         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24750
24751 2010-04-04  Bruno Haible  <bruno@clisp.org>
24752
24753         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24754         * modules/tmpfile (configure.ac): Update.
24755
24756         tmpfile: Fix C++ test error on mingw.
24757         * lib/stdio.in.h (tmpfile): New declaration.
24758         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24759         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24760         * modules/tmpfile (Depends-on): Add stdio.
24761         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24762         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24763         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24764         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24765         REPLACE_TMPFILE.
24766         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24767
24768 2010-04-04  Bruno Haible  <bruno@clisp.org>
24769
24770         ioctl: Fix C++ test error on mingw.
24771         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24772         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24773         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24774
24775 2010-04-03  Bruno Haible  <bruno@clisp.org>
24776
24777         wcwidth: Fix C++ test error on mingw.
24778         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24780         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24781
24782 2010-04-03  Bruno Haible  <bruno@clisp.org>
24783
24784         nanosleep: Fix C++ test error on mingw.
24785         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24786         * lib/time.in.h (nanosleep): Use modern idiom.
24787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24788         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24789         REPLACE_NANOSLEEP to 1.
24790         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24791         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24792
24793 2010-04-03  Bruno Haible  <bruno@clisp.org>
24794
24795         strptime: Fix C++ test error on mingw.
24796         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24797         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24798         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24799         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24801         not REPLACE_STRPTIME.
24802         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24803         REPLACE_STRPTIME.
24804
24805 2010-04-03  Bruno Haible  <bruno@clisp.org>
24806
24807         timegm: Fix C++ test error on mingw.
24808         * lib/time.in.h (timegm): Use modern idiom.
24809         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24810         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24812         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24813
24814 2010-04-03  Bruno Haible  <bruno@clisp.org>
24815
24816         timegm: Assume declaration if function exists.
24817         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24818         if it exists. Don't clobber ac_cv_func_timegm.
24819
24820 2010-04-03  Bruno Haible  <bruno@clisp.org>
24821
24822         time_r: Fix C++ test error on mingw.
24823         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24824         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24825         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24827         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24828
24829 2010-04-03  Bruno Haible  <bruno@clisp.org>
24830
24831         time_r: Minor updates.
24832         * modules/time_r (Description): Mention the provided functions.
24833         * lib/time_r.c: Don't include <string.h>.
24834         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24835         * doc/posix-functions/localtime_r.texi: Likewise.
24836
24837 2010-04-03  Bruno Haible  <bruno@clisp.org>
24838
24839         time: Fix regression introduced on 2010-03-08.
24840         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24841         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24842
24843 2010-04-03  Jim Meyering  <meyering@redhat.com>
24844
24845         maint.mk: don't silently disable project-specific syntax-check rules
24846         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24847         that they need to convert their project-specific syntax-check rules
24848         to use the new _sc_search_regexp.
24849
24850 2010-04-03  Bruno Haible  <bruno@clisp.org>
24851
24852         fchdir: Fix regression introduced on 2010-03-08.
24853         * lib/unistd.in.h (fchdir): Fix declaration.
24854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24856         REPLACE_FCHDIR.
24857         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24858         REPLACE_FCHDIR.
24859
24860 2010-04-03  Bruno Haible  <bruno@clisp.org>
24861
24862         getpagesize: Fix C++ test error on mingw.
24863         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24864         system does not declare the function.
24865         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24866         declared.
24867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24868         HAVE_DECL_GETPAGESIZE.
24869         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24870
24871 2010-04-03  Bruno Haible  <bruno@clisp.org>
24872
24873         stdio: Make C++ tests work on mingw.
24874         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24875         does not declare the function.
24876
24877 2010-04-03  Bruno Haible  <bruno@clisp.org>
24878
24879         ftello: Fix C++ test error on mingw.
24880         * lib/stdio.in.h (ftello): Use modern idiom.
24881         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24882         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24883         is missing and that it needs to be replaced.
24884         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24886         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24887
24888 2010-04-03  Bruno Haible  <bruno@clisp.org>
24889
24890         fseeko: Fix C++ test error on mingw.
24891         * lib/stdio.in.h (fseeko): Use modern idiom.
24892         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24894         is missing and that it needs to be replaced.
24895         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24897         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24898
24899 2010-04-03  Bruno Haible  <bruno@clisp.org>
24900
24901         mkstemp: Fix C++ test error on mingw.
24902         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24904         function is missing and that it needs to be replaced.
24905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24906         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24907
24908 2010-04-03  Bruno Haible  <bruno@clisp.org>
24909
24910         stpncpy: Fix C++ test error on mingw.
24911         * lib/string.in.h (stpncpy): Use modern idiom.
24912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24913         function is missing and that it needs to be replaced.
24914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24915         REPLACE_STPNCPY.
24916         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24917
24918 2010-04-03  Bruno Haible  <bruno@clisp.org>
24919
24920         sys_stat: Fix C++ test error on mingw.
24921         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24922         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24923
24924 2010-04-03  Bruno Haible  <bruno@clisp.org>
24925
24926         pty: Update doc.
24927         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24928
24929 2010-04-03  Bruno Haible  <bruno@clisp.org>
24930
24931         unistd: Fix C++ test error on mingw.
24932         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24933
24934 2010-04-03  Bruno Haible  <bruno@clisp.org>
24935
24936         Update doc regarding mingw.
24937         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24938         * doc/glibc-functions/login_tty.texi: Likewise.
24939         * doc/glibc-functions/forkpty.texi: Likewise.
24940
24941 2010-04-03  Bruno Haible  <bruno@clisp.org>
24942
24943         stdlib: Avoid compilation failure of c-strtold on mingw.
24944         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24945
24946 2010-04-03  Bruno Haible  <bruno@clisp.org>
24947
24948         locale: Make C++ tests work on Cygwin and mingw.
24949         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24950         cannot provide the function.
24951         Reported by Simon Josefsson.
24952
24953 2010-04-03  Bruno Haible  <bruno@clisp.org>
24954
24955         localename: Port to MacOS X 10.6.
24956         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24957         memory layout of the locales in MacOS X 10.6 as well.
24958         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24959
24960 2010-04-02  Bruno Haible  <bruno@clisp.org>
24961
24962         gnulib-tool: Ensure that long-running tests are executed last.
24963         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24964         running tests after the one for the other tests.
24965
24966 2010-04-02  Bruno Haible  <bruno@clisp.org>
24967
24968         gnulib-tool: Ensure the tests in the main directory are executed first.
24969         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24970         start with the current directory.
24971
24972 2010-04-02  Bruno Haible  <bruno@clisp.org>
24973
24974         Tests for module 'havelib', moved here from GNU gettext.
24975         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24976         modifications.
24977         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24978         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24979         with modifications.
24980         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24981         modifications.
24982         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24983         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24984         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24985         with modifications.
24986         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24987         with modifications.
24988         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24989         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24990         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24991         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24992         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24993         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24994         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24995         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24996         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24997         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24998         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24999         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25000         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25001         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25002         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25003         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25004         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25005         with modifications.
25006         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25007         with modifications.
25008         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25009         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25010         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25011         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25012         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25013         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25014         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25015         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25016         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25017         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25018         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25019         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25020         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25021         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25022         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25023         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25024         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25025         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25026         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25027         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25028         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25029         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25030         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25031         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25032         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25033         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25034         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25035         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25036         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25037         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25038         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25039         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25040         * tests/havelib/rpathx/rpathx.c: New file, from
25041         gettext/autoconf-lib-link.
25042         * tests/havelib/rpathx/Makefile.am: New file, from
25043         gettext/autoconf-lib-link.
25044         * tests/havelib/rpathx/configure.ac: New file, from
25045         gettext/autoconf-lib-link with modifications.
25046         * tests/havelib/rpathy/rpathy.c: New file, from
25047         gettext/autoconf-lib-link.
25048         * tests/havelib/rpathy/Makefile.am: New file, from
25049         gettext/autoconf-lib-link.
25050         * tests/havelib/rpathy/configure.ac: New file, from
25051         gettext/autoconf-lib-link with modifications.
25052         * tests/havelib/rpathz/rpathz.c: New file, from
25053         gettext/autoconf-lib-link.
25054         * tests/havelib/rpathz/Makefile.am: New file, from
25055         gettext/autoconf-lib-link.
25056         * tests/havelib/rpathz/configure.ac: New file, from
25057         gettext/autoconf-lib-link with modifications.
25058         * tests/havelib/rpathlx/usex.c: New file, from
25059         gettext/autoconf-lib-link.
25060         * tests/havelib/rpathlx/Makefile.am: New file, from
25061         gettext/autoconf-lib-link.
25062         * tests/havelib/rpathlx/configure.ac: New file, from
25063         gettext/autoconf-lib-link with modifications.
25064         * tests/havelib/rpathly/usey.c: New file, from
25065         gettext/autoconf-lib-link.
25066         * tests/havelib/rpathly/Makefile.am: New file, from
25067         gettext/autoconf-lib-link.
25068         * tests/havelib/rpathly/configure.ac: New file, from
25069         gettext/autoconf-lib-link with modifications.
25070         * tests/havelib/rpathlz/usez.c: New file, from
25071         gettext/autoconf-lib-link.
25072         * tests/havelib/rpathlz/Makefile.am: New file, from
25073         gettext/autoconf-lib-link.
25074         * tests/havelib/rpathlz/configure.ac: New file, from
25075         gettext/autoconf-lib-link with modifications.
25076         * tests/havelib/rpathlyx/usey.c: New file, from
25077         gettext/autoconf-lib-link.
25078         * tests/havelib/rpathlyx/Makefile.am: New file, from
25079         gettext/autoconf-lib-link.
25080         * tests/havelib/rpathlyx/configure.ac: New file, from
25081         gettext/autoconf-lib-link with modifications.
25082         * tests/havelib/rpathlzyx/usez.c: New file, from
25083         gettext/autoconf-lib-link.
25084         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25085         gettext/autoconf-lib-link.
25086         * tests/havelib/rpathlzyx/configure.ac: New file, from
25087         gettext/autoconf-lib-link with modifications.
25088         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25089         with modifications.
25090
25091 2010-04-02  Bruno Haible  <bruno@clisp.org>
25092
25093         gnulib-tool: Create distributed built sources also for the tests.
25094         * gnulib-tool (func_create_testdir): Also generate distributed built
25095         sources in the tests directory.
25096
25097 2010-04-02  Bruno Haible  <bruno@clisp.org>
25098
25099         gnulib-tool: Obey user's environment variables.
25100         * gnulib-tool (func_create_testdir): When creating built sources,
25101         respect the environment variables for autoconf, automake, etc. given by
25102         the user.
25103
25104 2010-04-02  Bruno Haible  <bruno@clisp.org>
25105
25106         gnulib-tool: Provide the value of --m4-base to modules.
25107         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25108         of gl_m4_base.
25109
25110 2010-04-02  Eric Blake  <eblake@redhat.com>
25111
25112         maint.mk: fix some fallout
25113         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25114         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25115
25116 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25117
25118         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25119         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25120         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25121         (sc_cast_of_x_alloc_return_value): Likewise.
25122         (sc_cast_of_alloca_return_value): Likewise.
25123         (sc_space_tab): Likewise.
25124         (sc_prohibit_atoi_atof): Likewise.
25125         (sc_prohibit_magic_number_exit): Likewise.
25126         (sc_error_exit_success): Likewise.
25127         (sc_file_system): Likewise.
25128         (sc_prohibit_have_config_h): Likewise.
25129         (sc_require_config_h): Likewise.
25130         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25131         (sc_obsolete_symbols): Likewise.
25132         (sc_changelog): Likewise.
25133         (sc_program_name): Likewise.
25134         (sc_the_the): Likewise.
25135         (sc_trailing_blank): Likewise.
25136         (sc_two_space_separator_in_usage): Likewise.
25137         (sc_useless_cpp_parens): Likewise.
25138         (sc_GPL_version): Likewise.
25139         (sc_GFDL_version): Likewise.
25140         (sc_texinfo_acronym): Likewise.
25141         (sc_prohibit_cvs_keyword): Likewise.
25142         (sc_prohibit_stat_st_blocks): Likewise.
25143         (sc_prohibit_S_IS_definition): Likewise.
25144         (sc_redundant_const): Likewise.
25145         (sc_makefile_TAB_only_indentation): Likewise.
25146         (sc_m4_quote_check): Likewise.
25147         (sc_makefile_path_separator_check): Likewise.
25148         (sc_copyright_check): Likewise.
25149         (sc_Wundef_boolean): Likewise.
25150         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25151
25152         maint.mk: match 0 or more whitespace-before-function-call '('
25153         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25154         that have zero or two-and-more spaces between the function name
25155         and the open parenthesis.
25156         (sc_error_message_warn_fatal): Likewise.
25157         (sc_error_message_uppercase): Likewise.
25158         (sc_error_message_period): Likewise.
25159
25160 2010-03-31  Eric Blake  <eblake@redhat.com>
25161
25162         maint.mk: check for [ as well as test
25163         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25164         Based on a libvirt report by Matthias Bolte.
25165
25166         gnumakefile: don't squelch _version output
25167         * top/GNUmakefile (_version): Create one-shot dependency rather
25168         than using $(shell) when version must be regenerated.
25169         (_autoreconf): Run verbosely, by default.
25170
25171         sys_time: avoid compiler warnings
25172         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25173         unconditional, fixing regression from 2010-03-29.
25174         Reported by Simon Josefsson.
25175
25176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25177
25178         maint.mk: s/_header_without_use/_sc_header_without_use/
25179         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25180         (sc_prohibit_assert_without_use): Use the new name.
25181         (sc_prohibit_close_stream_without_use): Likewise.
25182         (sc_prohibit_getopt_without_use): Likewise.
25183         (sc_prohibit_quotearg_without_use): Likewise.
25184         (sc_prohibit_quote_without_use): Likewise.
25185         (sc_prohibit_long_options_without_use): Likewise.
25186         (sc_prohibit_inttostr_without_use): Likewise.
25187         (sc_prohibit_ignore_value_without_use): Likewise.
25188         (sc_prohibit_error_without_use): Likewise.
25189         (sc_prohibit_xalloc_without_use): Likewise.
25190         (sc_prohibit_hash_without_use): Likewise.
25191         (sc_prohibit_hash_pjw_without_use): Likewise.
25192         (sc_prohibit_safe_read_without_use): Likewise.
25193         (sc_prohibit_argmatch_without_use): Likewise.
25194         (sc_prohibit_canonicalize_without_use): Likewise.
25195         (sc_prohibit_root_dev_ino_without_use): Likewise.
25196         (sc_prohibit_openat_without_use): Likewise.
25197         (sc_prohibit_c_ctype_without_use): Likewise.
25198         (sc_prohibit_signal_without_use): Likewise.
25199         (sc_prohibit_intprops_without_use): Likewise.
25200
25201 2010-03-30  Eric Blake  <eblake@redhat.com>
25202
25203         maint: improve module indicators
25204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25205         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25206         columns, and avoid extra macro expansion.
25207
25208         fdopendir: work around FreeBSD bug
25209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25210         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25211         * modules/dirent (Makefile.am): Substitute it.
25212         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25213         declaration.
25214         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25215         fix.
25216         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25217
25218 2010-03-29  Bruno Haible  <bruno@clisp.org>
25219
25220         Emit #pragma system_header after the inclusion guard, not before.
25221         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25222         guard that spans the entire file, not before. This enables an
25223         optimization in GCC's preprocessor.
25224         * lib/ctype.in.h: Likewise.
25225         * lib/dirent.in.h: Likewise.
25226         * lib/errno.in.h: Likewise.
25227         * lib/float.in.h: Likewise.
25228         * lib/getopt.in.h: Likewise.
25229         * lib/iconv.in.h: Likewise.
25230         * lib/langinfo.in.h: Likewise.
25231         * lib/locale.in.h: Likewise.
25232         * lib/math.in.h: Likewise.
25233         * lib/netdb.in.h: Likewise.
25234         * lib/netinet_in.in.h: Likewise.
25235         * lib/pty.in.h: Likewise.
25236         * lib/sched.in.h: Likewise.
25237         * lib/se-selinux.in.h: Likewise.
25238         * lib/search.in.h: Likewise.
25239         * lib/spawn.in.h: Likewise.
25240         * lib/stdarg.in.h: Likewise.
25241         * lib/stdint.in.h: Likewise.
25242         * lib/string.in.h: Likewise.
25243         * lib/strings.in.h: Likewise.
25244         * lib/sys_file.in.h: Likewise.
25245         * lib/sys_ioctl.in.h: Likewise.
25246         * lib/sys_time.in.h: Likewise.
25247         * lib/sys_times.in.h: Likewise.
25248         * lib/sys_utsname.in.h: Likewise.
25249         * lib/sys_wait.in.h: Likewise.
25250         * lib/sysexits.in.h: Likewise.
25251         * lib/wctype.in.h: Likewise.
25252
25253 2010-03-28  James Youngman  <jay@gnu.org>
25254
25255         save-cwd: don't leak a file descriptor when the caller execs.
25256         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25257         saved file descriptor.
25258         * modules/save-cwd (Depends-on): Depend on cloexec.
25259
25260 2010-03-29  Bruno Haible  <bruno@clisp.org>
25261
25262         Remove vestiges of fts-lgpl module.
25263         * lib/fts_.h: Assume GNULIB_FTS is 1.
25264         * lib/fts.c: Likewise.
25265         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25266
25267 2010-03-28  Bruno Haible  <bruno@clisp.org>
25268
25269         Fix definition of tests witness macro.
25270         * gnulib-tool (func_import): Fix definition of witness macro.
25271
25272 2010-03-28  Bruno Haible  <bruno@clisp.org>
25273
25274         Fix ioctl's protoype on glibc systems.
25275         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25276         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25277         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25278         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25279         signature. If not, arrange to replace the ioctl function.
25280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25281         REPLACE_IOCTL.
25282         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25283         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25284         Reported by Ludovic Courtès <ludo@gnu.org>.
25285
25286 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25287
25288         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25289         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25290         made it so grep -r --include=GLOB* ... did not work.
25291
25292 2010-03-26  Jim Meyering  <meyering@redhat.com>
25293             Eric Blake  <eblake@redhat.com>
25294
25295         maint.mk: prohibit use of test's -o and -a operators
25296         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25297
25298 2010-03-28  Bruno Haible  <bruno@clisp.org>
25299
25300         Remove unused GNULIB_XYZ macro definitions.
25301         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25302         invocation.
25303
25304 2010-03-28  Bruno Haible  <bruno@clisp.org>
25305
25306         Mark privileged tests modules.
25307         * modules/idpriv-drop-tests (Status): New section.
25308         * modules/idpriv-droptemp-tests (Status): New section.
25309
25310 2010-03-28  Bruno Haible  <bruno@clisp.org>
25311
25312         Split C++ tests into separate tests modules.
25313         * modules/dirent-c++-tests: New file, extracted from
25314         modules/dirent-tests.
25315         * modules/dirent-tests: Depend on it.
25316         * modules/fcntl-h-c++-tests: New file, extracted from
25317         modules/fcntl-h-tests.
25318         * modules/fcntl-h-tests: Depend on it.
25319         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25320         * modules/glob-tests: Depend on it.
25321         * modules/iconv-h-c++-tests: New file, extracted from
25322         modules/iconv-h-tests.
25323         * modules/iconv-h-tests: Depend on it.
25324         * modules/langinfo-c++-tests: New file, extracted from
25325         modules/langinfo-tests.
25326         * modules/langinfo-tests: Depend on it.
25327         * modules/locale-c++-tests: New file, extracted from
25328         modules/locale-tests.
25329         * modules/locale-tests: Depend on it.
25330         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25331         * modules/math-tests: Depend on it.
25332         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25333         * modules/pty-tests: Depend on it.
25334         * modules/search-c++-tests: New file, extracted from
25335         modules/search-tests.
25336         * modules/search-tests: Depend on it.
25337         * modules/signal-c++-tests: New file, extracted from
25338         modules/signal-tests.
25339         * modules/signal-tests: Depend on it.
25340         * modules/spawn-c++-tests: New file, extracted from
25341         modules/spawn-tests.
25342         * modules/spawn-tests: Depend on it.
25343         * modules/stdio-c++-tests: New file, extracted from
25344         modules/stdio-tests.
25345         * modules/stdio-tests: Depend on it.
25346         * modules/stdlib-c++-tests: New file, extracted from
25347         modules/stdlib-tests.
25348         * modules/stdlib-tests: Depend on it.
25349         * modules/string-c++-tests: New file, extracted from
25350         modules/string-tests.
25351         * modules/string-tests: Depend on it.
25352         * modules/sys_ioctl-c++-tests: New file, extracted from
25353         modules/sys_ioctl-tests.
25354         * modules/sys_ioctl-tests: Depend on it.
25355         * modules/sys_select-c++-tests: New file, extracted from
25356         modules/sys_select-tests.
25357         * modules/sys_select-tests: Depend on it.
25358         * modules/sys_socket-c++-tests: New file, extracted from
25359         modules/sys_socket-tests.
25360         * modules/sys_socket-tests: Depend on it.
25361         * modules/sys_stat-c++-tests: New file, extracted from
25362         modules/sys_stat-tests.
25363         * modules/sys_stat-tests: Depend on it.
25364         * modules/sys_time-c++-tests: New file, extracted from
25365         modules/sys_time-tests.
25366         * modules/sys_time-tests: Depend on it.
25367         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25368         * modules/time-tests: Depend on it.
25369         * modules/unistd-c++-tests: New file, extracted from
25370         modules/unistd-tests.
25371         * modules/unistd-tests: Depend on it.
25372         * modules/wchar-c++-tests: New file, extracted from
25373         modules/wchar-tests.
25374         * modules/wchar-tests: Depend on it.
25375         * modules/wctype-c++-tests: New file, extracted from
25376         modules/wctype-tests.
25377         * modules/wctype-tests: Depend on it.
25378         Reported by Simon Josefsson.
25379
25380 2010-03-28  Bruno Haible  <bruno@clisp.org>
25381
25382         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25383         * gnulib-tool (func_exists_module): New function, extracted from
25384         func_verify_module.
25385         (func_verify_module): Use it.
25386         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25387         'foo' only if 'foo' exists.
25388         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25389         module.
25390
25391 2010-03-28  Bruno Haible  <bruno@clisp.org>
25392
25393         gnulib-tool: Add support for special categories of tests.
25394         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25395         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25396         (func_usage): Document them.
25397         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25398         inc_unportable_tests, inc_all_tests): New variables.
25399         (func_acceptable): Consider these variables.
25400         (func_modules_transitive_closure): Make it work when the 'Status' field
25401         consists of multiple words.
25402         (func_import): Store and restore the values of inc_cxx_tests,
25403         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25404         inc_all_tests in gnulib-comp.m4.
25405         (func_create_testdir): Set inc_all_tests to true.
25406         * doc/gnulib.texi (Extra tests modules): New section.
25407         Suggested by Jim Meyering.
25408
25409 2010-03-28  Bruno Haible  <bruno@clisp.org>
25410
25411         ansi-c++-opt: Allow turning off the C++ build by default.
25412         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25413         gl_CXX_CHOICE_DEFAULT_NO is defined.
25414         Requested by Eric Blake.
25415
25416 2010-03-28  Bruno Haible  <bruno@clisp.org>
25417
25418         unistd: Avoid #define replacements in C++ mode.
25419         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25420         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25421         setsockopt, shutdown, select): In C++, attach a warning to the function
25422         if possible, rather than #defining the symbol to a dysfunctional alias.
25423         Reported by John W. Eaton <jwe@gnu.org>.
25424
25425 2010-03-28  Bruno Haible  <bruno@clisp.org>
25426
25427         Fix link errors on mingw.
25428         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25429         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25430         $(LIBSOCKET).
25431         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25432         $(LIBSOCKET).
25433
25434 2010-03-28  Bruno Haible  <bruno@clisp.org>
25435             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25436
25437         lib-ignore: Determine different options for different compilers.
25438         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25439         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25440         Add comments.
25441         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25442         * NEWS: Mention the change.
25443
25444 2010-03-27  Bruno Haible  <bruno@clisp.org>
25445
25446         Remove unused GNULIB_XYZ macro definitions.
25447         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25448         * modules/fseek (configure.ac): Likewise.
25449         * modules/ioctl (configure.ac): Likewise.
25450         * modules/open (configure.ac): Likewise.
25451         * modules/stdlib-safer (configure.ac): Likewise.
25452
25453 2010-03-27  Bruno Haible  <bruno@clisp.org>
25454
25455         Add a remark about certain modules.
25456         * modules/malloc (Comment): New section.
25457         * modules/realloc (Comment): Likewise.
25458         * modules/sigpipe (Comment): Likewise.
25459
25460 2010-03-27  Bruno Haible  <bruno@clisp.org>
25461
25462         Resolve conflict between the two kinds of module indicators.
25463         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25464         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25465         * modules/canonicalize (configure.ac): Invoke
25466         gl_MODULE_INDICATOR_FOR_TESTS.
25467         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25468         GNULIB_XYZ.
25469         * tests/test-dirent-c++.cc: Likewise.
25470         * tests/test-dirent-safer.c: Likewise.
25471         * tests/test-dup2.c: Likewise.
25472         * tests/test-fchdir.c: Likewise.
25473         * tests/test-fcntl-h-c++.cc: Likewise.
25474         * tests/test-getopt.c: Likewise.
25475         * tests/test-getopt.h: Likewise.
25476         * tests/test-langinfo-c++.cc: Likewise.
25477         * tests/test-locale-c++.cc: Likewise.
25478         * tests/test-math-c++.cc: Likewise.
25479         * tests/test-pty-c++.cc: Likewise.
25480         * tests/test-search-c++.cc: Likewise.
25481         * tests/test-signal-c++.cc: Likewise.
25482         * tests/test-spawn-c++.cc: Likewise.
25483         * tests/test-stdio-c++.cc: Likewise.
25484         * tests/test-stdlib-c++.cc: Likewise.
25485         * tests/test-string-c++.cc: Likewise.
25486         * tests/test-sys_ioctl-c++.cc: Likewise.
25487         * tests/test-sys_select-c++.cc: Likewise.
25488         * tests/test-sys_socket-c++.cc: Likewise.
25489         * tests/test-sys_stat-c++.cc: Likewise.
25490         * tests/test-sys_time-c++.cc: Likewise.
25491         * tests/test-time-c++.cc: Likewise.
25492         * tests/test-unistd-c++.cc: Likewise.
25493         * tests/test-wchar-c++.cc: Likewise.
25494         * tests/uninorm/test-u8-nfc.c: Likewise.
25495         * tests/uninorm/test-u8-nfd.c: Likewise.
25496         * tests/uninorm/test-u8-nfkc.c: Likewise.
25497         * tests/uninorm/test-u8-nfkd.c: Likewise.
25498         * tests/uninorm/test-u16-nfc.c: Likewise.
25499         * tests/uninorm/test-u16-nfd.c: Likewise.
25500         * tests/uninorm/test-u16-nfkc.c: Likewise.
25501         * tests/uninorm/test-u16-nfkd.c: Likewise.
25502         * tests/uninorm/test-u32-nfc.c: Likewise.
25503         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25504         * tests/uninorm/test-u32-nfd.c: Likewise.
25505         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25506         * tests/uninorm/test-u32-nfkc.c: Likewise.
25507         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25508         * tests/uninorm/test-u32-nfkd.c: Likewise.
25509         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25510         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25511
25512 2010-03-27  Bruno Haible  <bruno@clisp.org>
25513
25514         Distinguish two kinds of module indicators.
25515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25516         gl_MODULE_INDICATOR.
25517         (gl_MODULE_INDICATOR): New macro.
25518         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25519         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25520         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25521         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25522         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25523         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25524         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25525         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25526         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25527         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25528         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25529         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25532         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25534         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25536         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25537         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25538         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25539         * modules/cloexec (configure.ac): Likewise.
25540         * modules/getopt-gnu (configure.ac): Likewise.
25541         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25542         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25543         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25544         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25545
25546 2010-03-27  Bruno Haible  <bruno@clisp.org>
25547
25548         New module description field 'Comment'.
25549         * gnulib-tool: New option --extract-comment.
25550         (func_usage): Document it.
25551         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25552         (func_get_comment): New function.
25553         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25554
25555 2010-03-27  Bruno Haible  <bruno@clisp.org>
25556
25557         Addendum to 2010-02-07 commit.
25558         * gnulib-tool (func_usage): Document --extract-applicability option.
25559
25560 2010-03-27  Bruno Haible  <bruno@clisp.org>
25561
25562         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25563         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25564         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25565         rather than link errors.
25566
25567 2010-03-27  Bruno Haible  <bruno@clisp.org>
25568
25569         Avoid side effects from tests-related modules on the compilation of lib.
25570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25571         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25572         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25573         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25574         macro.
25575         (func_import): Define a witness macro. Assign it a value that depends
25576         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25577         tests-related modules.
25578         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25579         Reported by Jim Meyering.
25580
25581 2010-03-27  Bruno Haible  <bruno@clisp.org>
25582
25583         Factorize common .m4 code.
25584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25585         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25586         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25587         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25589         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25590         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25591         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25592         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25593         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25594         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25595         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25596         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25597         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25598         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25599         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25600         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25601         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25603         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25604         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25606         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25609         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25610         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25615         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25616
25617 2010-03-27  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix a compilation error on Cygwin with g++ >= 4.3.
25620         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25621         if it is undefined or if we alias it to chmod.
25622         (lstat): Don't warn about the use of this function if it is undefined
25623         or if we alias it to stat.
25624         Reported by Simon Josefsson.
25625
25626 2010-03-27  Bruno Haible  <bruno@clisp.org>
25627
25628         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25629         * modules/getlogin (configure.ac): Update.
25630
25631         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25632         * modules/getlogin_r (configure.ac): Update.
25633
25634         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25636         * modules/inet_ntop (configure.ac): Update.
25637
25638         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25639         * modules/inet_pton (configure.ac): Update.
25640
25641         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25642         * modules/mbslen (configure.ac): Update.
25643
25644         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25645         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25646         * modules/forkpty (configure.ac): Update.
25647         * modules/openpty (configure.ac): Update.
25648
25649 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25650
25651         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25652         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25653
25654 2010-03-25  Eric Blake  <eblake@redhat.com>
25655
25656         maint: use pragma consistently across replacement headers
25657         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25658         * lib/dirent.in.h (system_header): Likewise.
25659         * lib/errno.in.h (system_header): Likewise.
25660         * lib/float.in.h (system_header): Likewise.
25661         * lib/getopt.in.h (system_header): Likewise.
25662         * lib/iconv.in.h (system_header): Likewise.
25663         * lib/inttypes.in.h (system_header): Likewise.
25664         * lib/langinfo.in.h (system_header): Likewise.
25665         * lib/locale.in.h (system_header): Likewise.
25666         * lib/math.in.h (system_header): Likewise.
25667         * lib/netdb.in.h (system_header): Likewise.
25668         * lib/netinet_in.in.h (system_header): Likewise.
25669         * lib/pty.in.h (system_header): Likewise.
25670         * lib/sched.in.h (system_header): Likewise.
25671         * lib/se-selinux.in.h (system_header): Likewise.
25672         * lib/search.in.h (system_header): Likewise.
25673         * lib/spawn.in.h (system_header): Likewise.
25674         * lib/stdarg.in.h (system_header): Likewise.
25675         * lib/stdint.in.h (system_header): Likewise.
25676         * lib/string.in.h (system_header): Likewise.
25677         * lib/strings.in.h (system_header): Likewise.
25678         * lib/sys_file.in.h (system_header): Likewise.
25679         * lib/sys_ioctl.in.h (system_header): Likewise.
25680         * lib/sys_socket.in.h (system_header): Likewise.
25681         * lib/sys_times.in.h (system_header): Likewise.
25682         * lib/sys_utsname.in.h (system_header): Likewise.
25683         * lib/sys_wait.in.h (system_header): Likewise.
25684         * lib/sysexits.in.h (system_header): Likewise.
25685         * lib/unistd.in.h (system_header): Likewise.
25686         * lib/wctype.in.h (system_header): Likewise.
25687
25688         arpa/inet: fix mingw compilation warning
25689         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25690         Reported by Matthew Bolte.
25691
25692 2010-03-25  Bruno Haible  <bruno@clisp.org>
25693
25694         Avoid collision between gnulib wrapper and libintl wrapper.
25695         * lib/printf.c (printf): Don't define if a printf wrapper is already
25696         defined in intl/printf.c.
25697         Reported by Michel Boaventura <michel@michelboaventura.com>.
25698
25699 2010-03-25  Bruno Haible  <bruno@clisp.org>
25700
25701         Use ANSI C.
25702         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25703
25704 2010-03-25  Bruno Haible  <bruno@clisp.org>
25705
25706         Minor formatting changes.
25707         * lib/acosl.c: Insert space before function argument list.
25708         * lib/argz.c: Likewise.
25709         * lib/asinl.c: Likewise.
25710         * lib/expl.c: Likewise.
25711         * lib/gen-uni-tables.c: Likewise.
25712         * lib/gettext.h: Likewise.
25713         * lib/glthread/lock.h: Likewise.
25714         * lib/tanl.c: Likewise.
25715         * lib/uniname/uniname.c: Likewise.
25716         * tests/test-idpriv-drop.c: Likewise.
25717         * tests/test-idpriv-droptemp.c: Likewise.
25718         * tests/test-lock.c: Likewise.
25719         * tests/test-tls.c: Likewise.
25720         * lib/argp-help.c: Insert space before function-like macro argument
25721         list.
25722         * lib/memcmp.c: Likewise.
25723         * tests/test-base64.c: Likewise.
25724         * lib/localename.c: Insert space before sizeof's argument list.
25725         * lib/safe-alloc.h: Likewise.
25726         * lib/file-set.h: Insert space before macro argument list.
25727         * tests/test-argp.c: Likewise.
25728         * lib/argp-namefrob.h: Insert space before function parameter list.
25729         * lib/getaddrinfo.c: Likewise.
25730         * lib/netdb.in.h: Likewise.
25731         * lib/parse-duration.h: Likewise.
25732         * lib/parse-duration.c: Likewise.
25733         * lib/poll.c: Likewise.
25734         * lib/select.c: Likewise.
25735         * lib/trim.h: Likewise.
25736         * tests/test-usleep.c: Likewise.
25737         * lib/ldexpl.c: Insert space before function parameter list and before
25738         function argument list.
25739         * lib/logl.c: Likewise.
25740         * lib/sqrtl.c: Likewise.
25741         * lib/trim.c: Likewise.
25742         * lib/cosl.c: Use GNU style indentation. Insert space before function
25743         argument list.
25744         * lib/sinl.c: Likewise.
25745         * lib/tsearch.c: Insert space after 'for'.
25746         Reported by Jim Meyering.
25747
25748 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25749
25750         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25751         config header before grepping, as it's not present before
25752         autoreconf/configure are run.  Reported by Simon Josefsson.
25753
25754 2010-03-23  Bruno Haible  <bruno@clisp.org>
25755
25756         pt_chown: Make it work with automake < 1.11.
25757         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25758         Reported by Simon Josefsson.
25759
25760 2010-03-23  Bruno Haible  <bruno@clisp.org>
25761
25762         pt_chown: Don't depend on GPLed modules.
25763         * lib/pt_chown.c: Don't include idpriv.h.
25764         (main): Don't drop privileges.
25765         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25766         Reported by Simon Josefsson.
25767
25768 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25769
25770         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25771         suggestions from karl@freefriends.org (Karl Berry).
25772
25773 2010-03-22  Eric Blake  <eblake@redhat.com>
25774
25775         gethostname: further tweaks
25776         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25777         are overriding gethostname.
25778         Suggested by Bruno Haible.
25779
25780 2010-03-21  Bruno Haible  <bruno@clisp.org>
25781
25782         Fix comments.
25783         * lib/forkpty.c (rpl_forkpty): Fix comment.
25784         * lib/openpty.c (rpl_openpty): Likewise.
25785         Reported by Eric Blake.
25786
25787 2010-03-22  Eric Blake  <eblake@redhat.com>
25788
25789         gethostname: fix build on mingw
25790         * lib/unistd.in.h (includes): Work around fact that mingw
25791         <winsock2.h> re-includes <unistd.h>, by avoiding any
25792         redeclarations if we are being included by <winsock2.h>.
25793         Reported by Matthias Bolte.
25794
25795 2010-03-21  Bruno Haible  <bruno@clisp.org>
25796
25797         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25798         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25799         modifications.
25800         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25801         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25802         provide the replacement.
25803         * modules/forkpty (Depends-on): Add openpty, login_tty.
25804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25805         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25806         * doc/glibc-functions/forkpty.texi: More supported platforms.
25807         * config/srclist.txt: Add forkpty.c (commented).
25808
25809 2010-03-21  Bruno Haible  <bruno@clisp.org>
25810
25811         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25812         (Makefile.am): Verify that PTY_LIB is defined.
25813
25814         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25815
25816 2010-03-21  Bruno Haible  <bruno@clisp.org>
25817
25818         Tests for module 'login_tty'.
25819         * modules/login_tty-tests: New file.
25820         * tests/test-login_tty.c: New file.
25821
25822         New module 'login_tty'.
25823         * lib/login_tty.c: New file.
25824         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25825         * modules/login_tty: New file.
25826         * doc/glibc-functions/login_tty.texi: Mention the new module.
25827
25828 2010-03-21  Bruno Haible  <bruno@clisp.org>
25829
25830         login_tty: Documentation.
25831         * doc/glibc-functions/login_tty.texi: New file.
25832         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25833
25834 2010-03-21  Bruno Haible  <bruno@clisp.org>
25835
25836         pty: Consistent macro naming.
25837         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25838         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25839         * modules/pty (configure.ac): Update.
25840
25841 2010-03-21  Bruno Haible  <bruno@clisp.org>
25842
25843         Tests for openpty: Make stricter.
25844         * tests/test-openpty.c (main): Add test of canonical processing and
25845         erase.
25846         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25847
25848         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25849         * lib/openpty.c (openpty): New replacement function.
25850         * lib/pty.in.h: Include <termios.h>.
25851         (openpty): Update declaration. Add comments.
25852         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25853         is not declared, arrange to provide the replacement. Check for _getpty
25854         and posix_openpt.
25855         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25856         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25857         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25858         * modules/pty-tests (test_pty_c___LDADD): New variable.
25859         * doc/glibc-functions/openpty.texi: More supported platforms.
25860
25861 2010-03-21  Bruno Haible  <bruno@clisp.org>
25862
25863         setenv: Tweaks.
25864         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25865         the test program.
25866         * doc/posix-functions/setenv.texi: Update platforms list.
25867
25868 2010-03-21  Bruno Haible  <bruno@clisp.org>
25869
25870         New module 'unlockpt'.
25871         * lib/unlockpt.c: New file, from glibc with modifications.
25872         * m4/unlockpt.m4: New file.
25873         * modules/unlockpt: New file.
25874         * lib/stdlib.in.h (unlockpt): New declaration.
25875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25877         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25878         HAVE_UNLOCKPT.
25879         * doc/posix-functions/unlockpt.texi: Mention the new module.
25880         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25881         * config/srclist.txt: Add unlockpt.c (commented).
25882
25883 2010-03-21  Jim Meyering  <meyering@redhat.com>
25884
25885         maint.mk: prohibit inclusion of "intprops.h" without use
25886         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25887
25888 2010-03-21  Bruno Haible  <bruno@clisp.org>
25889
25890         New module 'grantpt'.
25891         * lib/grantpt.c: New file, from glibc with modifications.
25892         * m4/grantpt.m4: New file.
25893         * modules/grantpt: New file.
25894         * lib/stdlib.in.h (grantpt): New declaration.
25895         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25896         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25897         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25898         HAVE_GRANTPT.
25899         * doc/posix-functions/grantpt.texi: Mention the new module.
25900         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25901         * config/srclist.txt: Add grantpt.c (commented).
25902
25903 2010-03-21  Bruno Haible  <bruno@clisp.org>
25904
25905         New module 'pt_chown'.
25906         * lib/pt_chown.c: New file, from glibc with modifications.
25907         * lib/pty-private.h: New file, from glibc with modifications.
25908         * modules/pt_chown: New file.
25909         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25910
25911 2010-03-21  Bruno Haible  <bruno@clisp.org>
25912
25913         Tests for module 'ptsname'.
25914         * modules/ptsname-tests: New file.
25915         * tests/test-ptsname.c: New file.
25916
25917         New module 'ptsname'.
25918         * lib/ptsname.c: New file, from glibc with modifications.
25919         * m4/ptsname.m4: New file.
25920         * modules/ptsname: New file.
25921         * lib/stdlib.in.h (ptsname): New declaration.
25922         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25923         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25924         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25925         HAVE_PTSNAME.
25926         * doc/posix-functions/ptsname.texi: Mention the new module.
25927         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25928         * config/srclist.txt: Add ptsname.c (commented).
25929
25930 2010-03-21  Bruno Haible  <bruno@clisp.org>
25931
25932         Tests for module 'ttyname_r'.
25933         * modules/ttyname_r-tests: New file.
25934         * tests/test-ttyname_r.c: New file.
25935
25936         New module 'ttyname_r'.
25937         * lib/ttyname_r.c: New file.
25938         * m4/ttyname_r.m4: New file.
25939         * modules/ttyname_r: New file.
25940         * lib/unistd.in.h (ttyname_r): New declaration.
25941         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25942         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25943         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25944         HAVE_TTYNAME_R.
25945         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25946         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25947
25948 2010-03-20  Bruno Haible  <bruno@clisp.org>
25949
25950         signal: Undefine macro definitions in C++ mode.
25951         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25952         sigfillset): Undefine macro definitions from the system header in C++
25953         mode.
25954         Reported by John W. Eaton <jwe@gnu.org>.
25955
25956 2010-03-20  Bruno Haible  <bruno@clisp.org>
25957
25958         Ensure no #include statements inside extern "C" { ... }.
25959         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25960         contain #include statements.
25961         * lib/time.in.h: Likewise.
25962
25963 2010-03-20  Bruno Haible  <bruno@clisp.org>
25964
25965         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25966         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25967         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25968         Reported by John W. Eaton <jwe@gnu.org>.
25969
25970 2010-03-20  Bruno Haible  <bruno@clisp.org>
25971
25972         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25973         Reported by Jim Meyering.
25974
25975 2010-03-20  Bruno Haible  <bruno@clisp.org>
25976
25977         pipe: Set errno upon failure.
25978         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25979         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25980         errno value in error message.
25981
25982 2010-03-20  Bruno Haible  <bruno@clisp.org>
25983             Jim Meyering  <meyering@redhat.com>
25984
25985         lchown: Avoid "unused variable" warning.
25986         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25987
25988 2010-03-20  Bruno Haible  <bruno@clisp.org>
25989
25990         Work around unlink() bug on MacOS X 10.5.6.
25991         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25992         attempting to unlink a parent directory.
25993         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25994         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25995         activate for the replacement function.
25996         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25997
25998 2010-03-20  Bruno Haible  <bruno@clisp.org>
25999
26000         Fix link errors on Solaris 8.
26001         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26002         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26003
26004 2010-03-19  Jim Meyering  <meyering@redhat.com>
26005
26006         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26007         The _LIBC implementation of build_range_exp correctly honors the
26008         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26009         However, the non-_LIBC implementation would ignore that syntax-bit
26010         flag and return REG_ERANGE unconditionally.
26011         This change makes it honor that flag.
26012         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26013         Make two pointer parameters "const".
26014         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26015         (parse_bracket_exp): Update caller.
26016
26017         regex.m4: correct the reversed range endpoint ([b-a]) test
26018         * m4/regex.m4: When requiring that [b-a] evoke failure,
26019         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26020         test pass once again for x86-based systems.
26021
26022 2010-03-19  Bruno Haible  <bruno@clisp.org>
26023
26024         scandir: Fix link error on Solaris 8.
26025         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26026         macros.
26027
26028 2010-03-19  Bruno Haible  <bruno@clisp.org>
26029
26030         getusershell: Fix documentation.
26031         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26032         module.
26033         * doc/glibc-functions/setusershell.texi: Likewise.
26034
26035         getusershell: Provide declaration, missing on Solaris 9.
26036         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26037         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26038         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26039         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26041         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26042         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26043         HAVE_GETUSERSHELL.
26044         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26045
26046 2010-03-19  Bruno Haible  <bruno@clisp.org>
26047
26048         wctype: Provide iswblank function.
26049         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26050         exists and is fine.
26051         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26052         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26053         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26054         * doc/posix-functions/iswblank.texi: Update.
26055
26056 2010-03-19  Bruno Haible  <bruno@clisp.org>
26057
26058         Tests of module 'pty' in C++ mode.
26059         * modules/pty-tests: New file.
26060         * tests/test-pty-c++.cc: New file.
26061         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26062
26063 2010-03-19  Eric Blake  <eblake@redhat.com>
26064
26065         logb: fix documentation
26066         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26067         1.5 declaration bug.
26068
26069         forkpty, openpty: prefer glibc's const-safe prototype
26070         * lib/forkpty.c (rpl_forkpty): New file.
26071         * lib/openpty.c (rpl_openpty): Likewise.
26072         * modules/forkpty (Files): Distribute it.
26073         * modules/openpty (Files): Likewise.
26074         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26075         check...
26076         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26077         replacement for for non-const BSD signature.
26078         * modules/pty (Makefile.am): Substitute witnesses.
26079         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26080         * tests/test-forkpty.c: Update signature check.
26081         * tests/test-openpty.c: Likewise.
26082         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26083         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26084
26085         forkpty, openpty: split functions into new modules
26086         * modules/pty (Makefile.am): Substitute new witnesses.
26087         (Libraries): Move library detection...
26088         * modules/forkpty: ...into new module.
26089         * modules/openpty: Another new module.
26090         * modules/pty-tests: Rename and split...
26091         * modules/forkpty-tests: ...to this...
26092         * modules/openpty-tests: ...and this.
26093         * tests/test-pty.c: Rename and split...
26094         * tests/test-forkpty.c: ...to this...
26095         * tests/test-openpty.c: ...and this.
26096         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26097         (gl_PTY): Split library searching...
26098         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26099         (gl_FORKPTY, gl_OPENPTY): New macros.
26100         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26101         * NEWS: Mention the split.
26102         * MODULES.html.sh (Misc): Document the modules.
26103         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26104         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26105
26106         pty: improve replacement header
26107         * lib/pty.in.h: New file.
26108         * modules/pty (Files): Ship it.
26109         (Makefile.am): Always build replacement.
26110         * m4/pty.m4: Rename...
26111         * m4/pty_h.m4: ...to this.
26112         (gl_PTY): Modernize setting of witness macros; update check of
26113         forkpty to take proper advantage of cache.
26114         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26115
26116         getopt: avoid compiler warning
26117         * lib/getopt.c (attribute_hidden): Remove unused macro.
26118
26119 2010-03-18  Bruno Haible  <bruno@clisp.org>
26120
26121         Fix link errors on Solaris 8.
26122         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26123         * modules/search-tests (test_search_c___LDADD): Likewise.
26124         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26125         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26126         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26127         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26128         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26129         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26130         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26131
26132 2010-03-18  Bruno Haible  <bruno@clisp.org>
26133
26134         Fix bug introduced on 2010-03-14.
26135         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26136         (gl_SPAWN_H): Require it.
26137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26138         Reported by Simon Josefsson.
26139
26140 2010-03-18  Bruno Haible  <bruno@clisp.org>
26141
26142         Fix typo introduced on 2009-12-31.
26143         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26144         posix_spawn_file_actions_adddup2.
26145
26146 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26147         and Eric Blake  <eblake@redhat.com>
26148
26149         test-vc-list-files-git: make more robust
26150         * tests/test-vc-list-files-git.sh: Unset problematic environment
26151         variables.  Chain commands together.
26152
26153 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26154
26155         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26156         `AC_CHECK_DECL' invocation.
26157
26158 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26159
26160         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26161         appears before executable statements. Suggested by Petr Sumbera
26162         <Petr.Sumbera@Sun.COM>.
26163
26164 2010-03-14  Bruno Haible  <bruno@clisp.org>
26165
26166         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26167         portability problems. Instead use a simpler test.
26168         (main): Check that invalid arguments are rejected only on Linux.
26169
26170 2010-03-14  Bruno Haible  <bruno@clisp.org>
26171
26172         Fix bug introduced on 2009-12-31.
26173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26174         gl_PREREQ_SYS_H_WINSOCK2 always.
26175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26176         SYS_SOCKET_H variable.
26177         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26178         Update comments.
26179         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26180         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26181         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26184
26185 2010-03-14  Bruno Haible  <bruno@clisp.org>
26186
26187         Fix values returned by sinl, cosl.
26188         * lib/trigl.h: Add specification comments.
26189         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26190         that combines the values from the precomputed table with the values of
26191         the Chebyshev polynomials.
26192
26193 2010-03-14  Bruno Haible  <bruno@clisp.org>
26194
26195         Fix compilation error when modules 'posix_spawn[p]' are not used.
26196         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26198
26199 2010-03-14  Bruno Haible  <bruno@clisp.org>
26200
26201         Fix compilation error on mingw when module 'time_r' is not used.
26202         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26203         is 1.
26204         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26205         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26206         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26207         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26208
26209 2010-03-14  Bruno Haible  <bruno@clisp.org>
26210
26211         Fix compilation error with Sun C.
26212         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26213         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26214         instead of GCC specific ULONG_LONG_MAX.
26215         * lib/xstrtoll.c: Likewise.
26216         * lib/xstrtoull.c: Likewise.
26217
26218 2010-03-13  Bruno Haible  <bruno@clisp.org>
26219
26220         Allow the user to disable C++ code and tests.
26221         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26222         (gl_PROG_ANSI_CXX): Require it.
26223
26224 2010-03-13  Bruno Haible  <bruno@clisp.org>
26225
26226         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26227         cases.
26228
26229 2010-03-13  Bruno Haible  <bruno@clisp.org>
26230
26231         Test that gnulib does not break the standard C++ headers.
26232         * tests/test-locale-c++2.cc: New file.
26233         * modules/locale-tests (Files): Add it.
26234         (Makefile.am): Compile it for test-locale-c++.
26235         * tests/test-math-c++2.cc: New file.
26236         * modules/math-tests (Files): Add it.
26237         (Makefile.am): Compile it for test-math-c++.
26238         * tests/test-signal-c++2.cc: New file.
26239         * modules/signal-tests (Files): Add it.
26240         (Makefile.am): Compile it for test-signal-c++.
26241         * tests/test-stdio-c++2.cc: New file.
26242         * modules/stdio-tests (Files): Add it.
26243         (Makefile.am): Compile it for test-stdio-c++.
26244         * tests/test-stdlib-c++2.cc: New file.
26245         * modules/stdlib-tests (Files): Add it.
26246         (Makefile.am): Compile it for test-stdlib-c++.
26247         * tests/test-string-c++2.cc: New file.
26248         * modules/string-tests (Files): Add it.
26249         (Makefile.am): Compile it for test-string-c++.
26250         * tests/test-time-c++2.cc: New file.
26251         * modules/time-tests (Files): Add it.
26252         (Makefile.am): Compile it for test-time-c++.
26253         Reported by John W. Eaton <jwe@gnu.org>.
26254
26255 2010-03-13  Bruno Haible  <bruno@clisp.org>
26256
26257         * gnulib-tool (func_usage): Clarify which options are available for
26258         --create-testdir and --create-megatestdir.
26259
26260 2010-03-13  Bruno Haible  <bruno@clisp.org>
26261
26262         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26263         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26264         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26265         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26266         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26267         when appropriate.
26268         Reported by Jim Meyering.
26269
26270 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26271
26272         * gnulib-tool (func_import): Explain origin of code.
26273
26274 2010-03-12  Bruno Haible  <bruno@clisp.org>
26275
26276         Fix problem with automake's definition of CXXLINK.
26277         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26278         Reported by Simon Josefsson and Ludovic Courtès.
26279
26280 2010-03-12  Bruno Haible  <bruno@clisp.org>
26281
26282         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26283         stable releases.
26284
26285 2010-03-11  Bruno Haible  <bruno@clisp.org>
26286
26287         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26288         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26289         whether the system provides one variant or multiple variants of the
26290         function.
26291         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26292         C++ compilers.
26293         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26294         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26295         Reported by Jim Meyering.
26296
26297 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26298
26299         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26300
26301 2010-03-08  Bruno Haible  <bruno@clisp.org>
26302
26303         gnulib-tool: Add support for --libtool in --create-testdir.
26304         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26305         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26306
26307 2010-03-08  Eric Blake  <eblake@redhat.com>
26308
26309         gnulib-tool.texi: mention possibility of git submodule
26310         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26311         submodules.
26312         * doc/.gitignore: Ignore another generated file.
26313
26314 2010-03-08  Karl Berry  <karl@gnu.org>
26315
26316         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26317         of committing gnulib files while skipping others.
26318
26319 2010-03-07  Bruno Haible  <bruno@clisp.org>
26320
26321         Tests of module 'wctype' in C++ mode.
26322         * tests/test-wctype-c++.cc: New file.
26323         * modules/wctype-tests (Files): Add it and tests/signature.h.
26324         (Depends-on): Add ansi-c++-opt.
26325         (Makefile.am): Arrange to compile and run test-wctype-c++.
26326
26327         Tests of module 'wchar' in C++ mode.
26328         * tests/test-wchar-c++.cc: New file.
26329         * modules/wchar-tests (Files): Add it and tests/signature.h.
26330         (Depends-on): Add ansi-c++-opt.
26331         (Makefile.am): Arrange to compile and run test-wchar-c++.
26332         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26333         gl_MODULE_INDICATOR.
26334
26335         Tests of module 'unistd' in C++ mode.
26336         * tests/test-unistd-c++.cc: New file.
26337         * modules/unistd-tests (Files): Add it and tests/signature.h.
26338         (Depends-on): Add ansi-c++-opt.
26339         (Makefile.am): Arrange to compile and run test-unistd-c++.
26340         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26341         gl_MODULE_INDICATOR.
26342
26343         Tests of module 'time' in C++ mode.
26344         * tests/test-time-c++.cc: New file.
26345         * modules/time-tests (Files): Add it and tests/signature.h.
26346         (Depends-on): Add ansi-c++-opt.
26347         (Makefile.am): Arrange to compile and run test-time-c++.
26348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26349
26350         Tests of module 'sys_time' in C++ mode.
26351         * tests/test-sys_time-c++.cc: New file.
26352         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26353         (Depends-on): Add ansi-c++-opt.
26354         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26355         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26356         gl_MODULE_INDICATOR.
26357
26358         Tests of module 'sys_stat' in C++ mode.
26359         * tests/test-sys_stat-c++.cc: New file.
26360         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26361         (Depends-on): Add ansi-c++-opt.
26362         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26363         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26364         gl_MODULE_INDICATOR.
26365
26366         Tests of module 'sys_socket' in C++ mode.
26367         * tests/test-sys_socket-c++.cc: New file.
26368         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26369         (Depends-on): Add ansi-c++-opt.
26370         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26371         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26372         gl_MODULE_INDICATOR.
26373
26374         Tests of module 'sys_select' in C++ mode.
26375         * tests/test-sys_select-c++.cc: New file.
26376         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26377         (Depends-on): Add ansi-c++-opt.
26378         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26379         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26380         gl_MODULE_INDICATOR.
26381
26382         Tests of module 'sys_ioctl' in C++ mode.
26383         * tests/test-sys_ioctl-c++.cc: New file.
26384         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26385         (Depends-on): Add ansi-c++-opt.
26386         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26388         gl_MODULE_INDICATOR.
26389
26390         Tests of module 'string' in C++ mode.
26391         * tests/test-string-c++.cc: New file.
26392         * modules/string-tests (Files): Add it and tests/signature.h.
26393         (Depends-on): Add ansi-c++-opt.
26394         (Makefile.am): Arrange to compile and run test-string-c++.
26395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26396         gl_MODULE_INDICATOR.
26397
26398         Tests of module 'stdlib' in C++ mode.
26399         * tests/test-stdlib-c++.cc: New file.
26400         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26401         (Depends-on): Add ansi-c++-opt.
26402         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26403         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26404         gl_MODULE_INDICATOR.
26405
26406         Tests of module 'stdio' in C++ mode.
26407         * tests/test-stdio-c++.cc: New file.
26408         * modules/stdio-tests (Files): Add it and tests/signature.h.
26409         (Depends-on): Add ansi-c++-opt.
26410         (Makefile.am): Arrange to compile and run test-stdio-c++.
26411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26412         gl_MODULE_INDICATOR.
26413
26414         Tests of module 'spawn' in C++ mode.
26415         * tests/test-spawn-c++.cc: New file.
26416         * modules/spawn-tests (Files): Add it and tests/signature.h.
26417         (Depends-on): Add ansi-c++-opt.
26418         (Makefile.am): Arrange to compile and run test-spawn-c++.
26419         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26420         gl_MODULE_INDICATOR.
26421
26422         Tests of module 'signal' in C++ mode.
26423         * tests/test-signal-c++.cc: New file.
26424         * modules/signal-tests (Files): Add it and tests/signature.h.
26425         (Depends-on): Add ansi-c++-opt.
26426         (Makefile.am): Arrange to compile and run test-signal-c++.
26427         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26428         gl_MODULE_INDICATOR.
26429
26430         Tests of module 'search' in C++ mode.
26431         * tests/test-search-c++.cc: New file.
26432         * modules/search-tests (Files): Add it and tests/signature.h.
26433         (Depends-on): Add ansi-c++-opt.
26434         (Makefile.am): Arrange to compile and run test-search-c++.
26435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26436         gl_MODULE_INDICATOR.
26437
26438         Tests of module 'math' in C++ mode.
26439         * tests/test-math-c++.cc: New file.
26440         * modules/math-tests (Files): Add it and tests/signature.h.
26441         (Depends-on): Add ansi-c++-opt.
26442         (Makefile.am): Arrange to compile and run test-math-c++.
26443         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26444
26445         Tests of module 'locale' in C++ mode.
26446         * tests/test-locale-c++.cc: New file.
26447         * modules/locale-tests (Files): Add it and tests/signature.h.
26448         (Depends-on): Add ansi-c++-opt.
26449         (Makefile.am): Arrange to compile and run test-locale-c++.
26450         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26451         gl_MODULE_INDICATOR.
26452
26453         Tests of module 'langinfo' in C++ mode.
26454         * tests/test-langinfo-c++.cc: New file.
26455         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26456         (Depends-on): Add ansi-c++-opt.
26457         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26459         gl_MODULE_INDICATOR.
26460
26461         Tests of module 'iconv-h' in C++ mode.
26462         * tests/test-iconv-h-c++.cc: New file.
26463         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26464         (Depends-on): Add ansi-c++-opt.
26465         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26466
26467         Tests of module 'glob' in C++ mode.
26468         * tests/test-glob-c++.cc: New file.
26469         * modules/glob-tests (Files): Add it.
26470         (Depends-on): Add ansi-c++-opt.
26471         (Makefile.am): Arrange to compile and run test-glob-c++.
26472
26473         Tests of module 'fcntl-h' in C++ mode.
26474         * tests/test-fcntl-h-c++.cc: New file.
26475         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26476         (Depends-on): Add ansi-c++-opt.
26477         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26479         gl_MODULE_INDICATOR.
26480
26481         Tests of module 'dirent' in C++ mode.
26482         * tests/test-dirent-c++.cc: New file.
26483         * modules/dirent-tests (Files): Add it and tests/signature.h.
26484         (Depends-on): Add ansi-c++-opt.
26485         (Makefile.am): Arrange to compile and run test-dirent-c++.
26486         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26487         gl_MODULE_INDICATOR.
26488
26489         New module 'ansi-c++-opt'.
26490         * modules/ansi-c++-opt: New file.
26491         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26492
26493         Document C++ namespace mode.
26494         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26495
26496         wctype: Avoid #define replacements in C++ mode.
26497         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26498         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26499         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26500         In C++, define a namespaced alias symbol.
26501         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26502         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26503         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26504         rule.
26505
26506         wchar: Avoid #define replacements in C++ mode.
26507         * lib/wchar.in.h: Include c++defs.h.
26508         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26509         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26510         symbol.
26511         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26512         * modules/wchar (Depends-on): Add c++defs.
26513         (Makefile.am): Update wchar.h rule.
26514
26515         unistd: Avoid #define replacements in C++ mode.
26516         * lib/unistd.in.h: Include c++defs.h.
26517         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26518         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26519         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26520         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26521         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26522         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26523         symbol.
26524         (environ): Update.
26525         * modules/unistd (Depends-on): Add c++defs.
26526         (Makefile.am): Update unistd.h rule.
26527
26528         time: Avoid #define replacements in C++ mode.
26529         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26530         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26531         define a namespaced alias symbol.
26532         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26533         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26534         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26535         * modules/time (Depends-on): Add c++defs, warn-on-use.
26536         (Makefile.am): Update time.h rule.
26537         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26538         * modules/nanosleep (configure.ac): Likewise.
26539         * modules/strptime (configure.ac): Likewise.
26540         * modules/timegm (configure.ac): Likewise.
26541
26542         sys_time: Avoid #define replacements in C++ mode.
26543         * lib/sys_time.in.h: Include c++defs.h.
26544         (gettimeofday): In C++, define a namespaced alias symbol.
26545         * modules/sys_time (Depends-on): Add c++defs.
26546         (Makefile.am): Update sys/time.h rule.
26547
26548         sys_stat: Avoid #define replacements in C++ mode.
26549         * lib/sys_stat.in.h: Include c++defs.h.
26550         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26551         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26552         namespaced alias symbol.
26553         In C++, define a namespaced alias symbol.
26554         * modules/sys_stat (Depends-on): Add c++defs.
26555         (Makefile.am): Update sys/stat.h rule.
26556
26557         sys_socket: Avoid #define replacements in C++ mode.
26558         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26559         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26560         definitions also when the system has a <sys/socket.h>.
26561         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26562         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26563         In C++, define a namespaced alias symbol.
26564         * modules/sys_socket (Depends-on): Add c++defs.
26565         (Makefile.am): Update sys/socket.h rule.
26566
26567         sys_select: Avoid #define replacements in C++ mode.
26568         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26569         definitions also when the system has a <sys/select.h>.
26570         (select): In C++, define a namespaced alias symbol.
26571         * modules/sys_select (Depends-on): Add c++defs.
26572         (Makefile.am): Update sys/select.h rule.
26573
26574         sys_ioctl: Avoid #define replacements in C++ mode.
26575         * lib/sys_ioctl.in.h: Include c++defs.h.
26576         (ioctl): In C++, define a namespaced alias symbol.
26577         * modules/sys_ioctl (Depends-on): Add c++defs.
26578         (Makefile.am): Update sys/ioctl.h rule.
26579
26580         string: Avoid #define replacements in C++ mode.
26581         * lib/string.in.h: Include c++defs.h.
26582         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26583         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26584         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26585         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26586         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26587         * modules/string (Depends-on): Add c++defs.
26588         (Makefile.am): Update string.h rule.
26589
26590         stdlib: Avoid #define replacements in C++ mode.
26591         * lib/stdlib.in.h: Include c++defs.h.
26592         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26593         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26594         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26595         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26596         symbol.
26597         * modules/stdlib (Depends-on): Add c++defs.
26598         (Makefile.am): Update stdlib.h rule.
26599
26600         stdio: Avoid #define replacements in C++ mode.
26601         * lib/stdio.in.h: Include c++defs.h.
26602         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26603         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26604         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26605         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26606         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26607         namespaced alias symbol.
26608         * modules/stdio (Depends-on): Add c++defs.
26609         (Makefile.am): Update stdio.h rule.
26610
26611         spawn: Avoid #define replacements in C++ mode.
26612         * lib/spawn.in.h: Include c++defs.h.
26613         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26614         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26615         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26616         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26617         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26618         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26619         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26620         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26621         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26622         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26623         In C++, define a namespaced alias symbol.
26624         * modules/spawn (Depends-on): Add c++defs.
26625         (Makefile.am): Update spawn.h rule.
26626
26627         signal: Avoid #define replacements in C++ mode.
26628         * lib/signal.in.h: Include c++defs.h.
26629         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26630         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26631         namespaced alias symbol.
26632         * modules/signal (Depends-on): Add c++defs.
26633         (Makefile.am): Update signal.h rule.
26634
26635         search: Avoid #define replacements in C++ mode.
26636         * lib/search.in.h: Include c++defs.h.
26637         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26638         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26639         symbol.
26640         * modules/search (Depends-on): Add c++defs.
26641         (Makefile.am): Update search.h rule.
26642
26643         math: Avoid #define replacements in C++ mode.
26644         * lib/math.in.h: Include c++defs.h.
26645         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26646         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26647         trunc, truncl): In C++, define a namespaced alias symbol.
26648         * modules/math (Depends-on): Add c++defs.
26649         (Makefile.am): Update math.h rule.
26650
26651         locale: Avoid #define replacements in C++ mode.
26652         * lib/locale.in.h: Include c++defs.h.
26653         (duplocale): In C++, define a namespaced alias symbol.
26654         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26656         * modules/locale (Depends-on): Add c++defs.
26657         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26658
26659         langinfo: Avoid #define replacements in C++ mode.
26660         * lib/langinfo.in.h: Include c++defs.h.
26661         (nl_langinfo): In C++, define a namespaced alias symbol.
26662         * modules/langinfo (Depends-on): Add c++defs.
26663         (Makefile.am): Update langinfo.h rule.
26664
26665         iconv-h: Avoid #define replacements in C++ mode.
26666         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26667         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26668         symbol.
26669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26670         whenever iconv is present.
26671         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26672         (Makefile.am): Update iconv.h rule.
26673
26674         glob: Avoid #define replacements in C++ mode.
26675         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26676         (_gl_glob_errfunc_fn): New type.
26677         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26678         symbol.
26679         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26680         (Makefile.am): Update glob.h rule.
26681
26682         fcntl-h: Avoid #define replacements in C++ mode.
26683         * lib/fcntl.in.h: Include c++defs.h.
26684         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26685         * modules/fcntl-h (Depends-on): Add c++defs.
26686         (Makefile.am): Update fcntl.h rule.
26687
26688         dirent: Avoid #define replacements in C++ mode.
26689         * lib/dirent.in.h: Include c++defs.h.
26690         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26691         namespaced alias symbol.
26692         (dirfd): Update declaration.
26693         * modules/dirent (Depends-on): Add c++defs.
26694         (Makefile.am): Update dirent.h rule.
26695
26696         ctype: Make it usable in C++ code.
26697         * lib/ctype.in.h: Include c++defs.h.
26698         (isblank): Declare as extern "C".
26699         * modules/ctype (Depends-on): Add c++defs.
26700         (Makefile.am): Update ctype.h rule.
26701
26702         New module 'c++defs'.
26703         * modules/c++defs: New file.
26704         * build-aux/c++defs.h: New file.
26705         Reported by John W. Eaton <jwe@gnu.org>.
26706
26707 2010-03-07  Bruno Haible  <bruno@clisp.org>
26708
26709         logb: Provide missing declaration for Cygwin.
26710         * lib/math.in.h (logb): New declaration.
26711         * m4/logb.m4: New file.
26712         * modules/logb (Files): Add m4/logb.m4.
26713         (Depends-on): Add math.
26714         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26715         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26717         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26718         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26719
26720 2010-03-07  Bruno Haible  <bruno@clisp.org>
26721
26722         Fix test-cond link error.
26723         * tests/test-cond.c: Include <stdio.h>.
26724
26725 2010-03-07  Bruno Haible  <bruno@clisp.org>
26726
26727         Fix test-dirent-safer link error.
26728         * modules/dirent-safer-tests (Makefile.am): Define
26729         test_dirent_safer_LDADD.
26730
26731 2010-03-07  Bruno Haible  <bruno@clisp.org>
26732
26733         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26734         among default module list.
26735
26736 2010-03-07  Bruno Haible  <bruno@clisp.org>
26737
26738         Fix link error on platforms with GNU libiconv.
26739         * modules/unistr/u8-strcoll-tests (Makefile): Define
26740         test_u8_strcoll_LDADD.
26741         * modules/unistr/u16-strcoll-tests (Makefile): Define
26742         test_u16_strcoll_LDADD.
26743         * modules/unistr/u32-strcoll-tests (Makefile): Define
26744         test_u32_strcoll_LDADD.
26745
26746 2010-03-07  Bruno Haible  <bruno@clisp.org>
26747
26748         Use POSIX declarations for socket functions.
26749         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26750         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26751         rpl_sendto): Change declaration to match POSIX.
26752         * lib/connect.c (rpl_connect): Likewise.
26753         * lib/accept.c (rpl_accept): Likewise.
26754         * lib/bind.c (rpl_bind): Likewise.
26755         * lib/getpeername.c (rpl_getpeername): Likewise.
26756         * lib/getsockname.c (rpl_getsockname): Likewise.
26757         * lib/recv.c (rpl_recv): Likewise.
26758         * lib/send.c (rpl_send): Likewise.
26759         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26760         * lib/sendto.c (rpl_sendto): Likewise.
26761
26762 2010-03-06  Bruno Haible  <bruno@clisp.org>
26763
26764         Clarify access, euidaccess, faccessat.
26765         * doc/posix-functions/faccessat.texi: Mention security problem under
26766         "Other problems", not "Portability problems".
26767         * doc/posix-functions/access.texi: Likewise. Mention a related security
26768         problem.
26769         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26770         * lib/euidaccess.c: Add comments about platforms.
26771         * lib/unistd.in.h (access, euidaccess): Add warnings.
26772
26773 2010-03-07  Bruno Haible  <bruno@clisp.org>
26774
26775         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26776         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26777         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26778         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26779         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26780         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26781         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26782         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26783         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26784         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26785         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26786         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26787         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26788         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26789         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26790         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26791         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26792         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26793         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26794         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26795         Likewise.
26796         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26797         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26798         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26799         Likewise.
26800         * tests/test-spawn.c (main): Make it work when
26801         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26802
26803 2010-03-07  Bruno Haible  <bruno@clisp.org>
26804
26805         Fix incorrect Makefile.am generation in German locale.
26806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26807         Execute sed command with character range in C locale.
26808
26809 2010-03-06  Bruno Haible  <bruno@clisp.org>
26810
26811         Tests for module 'iconv-h'.
26812         * modules/iconv-h-tests: New file.
26813         * tests/test-iconv-h.c: New file.
26814
26815         New module 'iconv-h'.
26816         * modules/iconv-h: New file.
26817         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26818         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26819         (configure.ac): Remove gl_ICONV_H.
26820         (Makefile.am): Remove rule for iconv.h.
26821
26822 2010-03-06  Bruno Haible  <bruno@clisp.org>
26823
26824         More consistent naming of *.m4 files.
26825         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26826         * modules/wctype (Files): Update.
26827
26828         More consistent naming of *.m4 files.
26829         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26830         * modules/wchar (Files): Update.
26831
26832 2010-03-06  Jim Meyering  <meyering@redhat.com>
26833
26834         euidaccess: relax license to LGPLv2+
26835         * modules/euidaccess (License): Relax to LGPLv2+.
26836
26837 2010-03-06  Bruno Haible  <bruno@clisp.org>
26838
26839         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26840         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26841         (Makefile.am): Augment lib_SOURCES instead.
26842
26843 2010-03-04  Jim Meyering  <meyering@redhat.com>
26844
26845         utime: remove obsolete module
26846         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26847         unnecessary for years, and has been marked as obsolete for 10 months.
26848         * modules/utime: Remove file.
26849         * lib/utime.c: Remove file.
26850         * m4/utime.m4: Remove file.
26851         * m4/utimes-null.m4: Remove file.
26852         * doc/posix-functions/utime.texi (utime): Remove reference to
26853         the module.  Move the sole "fixed by gnulib" item into the
26854         "problems not fixed by Gnulib" list.
26855         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26856
26857 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26858
26859         * modules/exit (License): Relax license to LGPLv2+.
26860         (Status): Mark as obsolete.
26861         * NEWS: Mention deprecated 'exit' module.
26862         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26863         of now obsolete 'exit'.
26864
26865 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26866
26867         fts-lgpl: remove unused module
26868         * modules/fts-lgpl: Remove.
26869         * MODULES.html.sh (func_all_modules): Adjust.
26870         * check-module (find_included_lib_files): Adjust.
26871         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26872
26873 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26874
26875         copy-acl: enhance Solaris ACL error handling
26876         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26877         * lib/set-mode-acl.c (qset_acl): Likewise.
26878
26879 2010-03-02  Bruno Haible  <bruno@clisp.org>
26880
26881         spawn: Don't override the system defined values on FreeBSD 8.
26882         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26883         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26884         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26885         if HAVE_POSIX_SPAWN is 1.
26886         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26887
26888 2010-03-01  Bruno Haible  <bruno@clisp.org>
26889
26890         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26891         regarding Automake.
26892
26893 2010-02-25  Bruno Haible  <bruno@clisp.org>
26894
26895         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26896         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26897         setting, not afterwards.
26898         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26899
26900 2010-02-24  Eric Blake  <eblake@redhat.com>
26901
26902         bootstrap, git-version-gen: use timestamp
26903         * build-aux/git-version-gen (scriptversion): Force UTC.
26904         * build-aux/bootstrap (scriptversion): New variable.
26905
26906         bootstrap: allow older git
26907         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26908         older than 1.6.4.  Requested by the libvirt project.
26909
26910 2010-02-23  Eric Blake  <eblake@redhat.com>
26911
26912         warn-on-use: work with old autoconf
26913         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26914         AS_VAR semantics of autoconf 2.60.
26915         Reported by Bruno Haible.
26916
26917         bootstrap: improve some comments
26918         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26919         clarification comments.
26920
26921         gettimeofday: provide correct function
26922         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26923         when replacement is declared, otherwise provide gettimeofday.
26924         Reported by Michael Goffioul.
26925
26926 2010-02-23  Jim Meyering  <meyering@redhat.com>
26927
26928         lib-ignore: relax license to "unlimited", not LGPLv2+
26929         * modules/lib-ignore (License): Relax to "unlimited".
26930
26931 2010-02-23  Jim Meyering  <meyering@redhat.com>
26932
26933         lib-ignore: relax license to LGPLv2+
26934         * modules/lib-ignore (License): Relax to LGPLv2+.
26935
26936 2010-02-22  Eric Blake  <eblake@redhat.com>
26937
26938         lseek: avoid bash 3.2 broken pipe bug
26939         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26940         warning from bash 3.2.
26941         Reported by Ben Pfaff, with analysis from Bruno Haible.
26942
26943         bootstrap: support non-FSF copyright holder
26944         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26945         bootstrap.conf override of COPYRIGHT_HOLDER.
26946         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26947
26948         bootstrap: interoperate with gettext 0.14.1
26949         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26950
26951         bootstrap: allow for alternate submodule location
26952         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26953         hardcoding submodule location.
26954         (gnulib_mk): Allow direct use of Makefile.am.
26955
26956         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26957         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26958         rather than reconfiguring where the submodule points.
26959
26960         gettimeofday: restore support for platforms that lack function
26961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26962         replacement if function is missing.
26963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26964         * modules/sys_time (Makefile.am): Substitute it.
26965         * lib/sys_time.in.h (gettimeofday): Check it.
26966         Reported by Michael Goffioul.
26967
26968 2010-02-21  Bruno Haible  <bruno@clisp.org>
26969
26970         * lib/stdio.in.h (obstack_printf): Fix typo.
26971
26972 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26973
26974         vc-list-files: use bzr ls's -R option
26975         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26976         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26977
26978 2010-02-21  Jim Meyering  <meyering@redhat.com>
26979
26980         init.sh: fix EXEEXT shims to work also for names like test-prog
26981         * tests/init.sh: Re-exec a better shell, when needed.
26982         If the current shell lacks support for posix $(...), an init.sh-using
26983         test will now try to find a shell that supports that.  If EXEEXT is
26984         nonempty, we also require support for hyphen-in-alias-name and shell
26985         substitutions like ${var#glob}.  Failure to find such a shell results
26986         in a skipped test.
26987
26988 2010-02-21  Bruno Haible  <bruno@clisp.org>
26989
26990         Really work around around "broken pipe" error message from bash 3.2.
26991         * gnulib-tool (func_reset_sigpipe): Remove function.
26992         (echo): In bash 3.2, define to a function that uses printf.
26993         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26994
26995 2010-02-20  Bruno Haible  <bruno@clisp.org>
26996
26997         Restore support for automake 1.9.6 with autoconf 2.61.
26998         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26999         Reported by James Youngman <jay@gnu.org>.
27000
27001 2010-02-20  Bruno Haible  <bruno@clisp.org>
27002
27003         Improve *printf warning condition.
27004         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27005         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27006         and the function is overridden due to SIGPIPE emulation.
27007
27008 2010-02-20  Bruno Haible  <bruno@clisp.org>
27009
27010         * lib/stdio.in.h: Tweak comments.
27011
27012 2010-02-19  Bruno Haible  <bruno@clisp.org>
27013
27014         Make it easier to find modules. New gnulib-tool option '--find'.
27015         * gnulib-tool: New option --find.
27016         (func_usage): Document it.
27017         (func_sanitize_modulelist): New function, extracted from
27018         func_all_modules.
27019         (func_all_modules): Invoke it.
27020         * doc/gnulib-tool.texi (Which modules?): New node.
27021
27022 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27023
27024         * lib/sys_select.in.h: Provide select replacement even if
27025         sys/select.h exists on a system, for Interix.
27026
27027 2010-02-18  Jim Meyering  <meyering@redhat.com>
27028
27029         init.sh: don't use $(...) just yet
27030         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27031         to accommodate e.g., Solaris' /bin/sh.
27032
27033 2010-02-17  Bruno Haible  <bruno@clisp.org>
27034
27035         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27036         Reported by Ludovic Courtès <ludo@gnu.org>.
27037
27038 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27039
27040         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27041         linking with -lintl.
27042
27043 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27044
27045         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27046         if not provided by the system's netdb.h.  Reported by
27047         ludo@gnu.org (Ludovic Courtès).
27048
27049 2010-02-15  Jim Meyering  <meyering@redhat.com>
27050
27051         init.sh: improve portability and efficiency
27052         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27053         "dummy" in a for loop.
27054         Use '!', not '^' to select the complement of a character set used
27055         in a "case" statement.
27056         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27057         Suggestions from Eric Blake.
27058
27059         init.sh: automatically accommodate programs with the .exe suffix
27060         Automatically arrange for an invocation of "prog" to execute the
27061         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27062         may use the simpler "prog", yet still work when built on a system
27063         that requires specifying the added suffix.
27064         Do this by constructing a function named "prog" that invokes
27065         "prog.exe" for each .exe file in selected directories.
27066         * tests/init.sh (find_exe_basenames_): New function.
27067         (create_exe_shim_functions_): New function.
27068         (path_prepend_): Use it.
27069
27070         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27071         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27072         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27073
27074 2010-02-14  Jim Meyering  <meyering@redhat.com>
27075
27076         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27077         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27078         (sc_prohibit_hash_pjw_without_use): New rule.
27079
27080         maint.mk: allow the default upload destination dir to be overridden
27081         * top/maint.mk (upload_dest_dir_): Define with a default that
27082         preserves the status quo.
27083         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27084         Reported by Peter Simons.
27085
27086         maint.mk: prohibit inclusion of "hash.h" without_use
27087         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27088
27089 2010-02-10  Jim Meyering  <meyering@redhat.com>
27090
27091         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27092         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27093
27094 2010-02-09  Eric Blake  <ebb9@byu.net>
27095         and Bruno Haible  <bruno@clisp.org>
27096
27097         obstack-printf-posix: ensure declaration
27098         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27099         extracted from gl_FUNC_OBSTACK_PRINTF.
27100         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27101         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27102         Likewise.
27103         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27104         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27105         0.
27106
27107 2010-02-08  Bruno Haible  <bruno@clisp.org>
27108
27109         gnulib-tool: Fix typo in 2010-02-07 commit.
27110         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27111         Reported by Eric Blake.
27112
27113 2010-02-07  Bruno Haible  <bruno@clisp.org>
27114
27115         gnulib-tool: Fix up caching patches.
27116         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27117         option --no-cache. Use associative arrays when supported by the shell.
27118         (sed_comments): New variable.
27119         (modcache): Renamed from do_cache.
27120         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27121         abbreviate unnecessarily.
27122         (have_associative): New variable.
27123         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27124         way also for ksh and zsh.
27125         (func_init_sed_convert_to_cache_statements): New function, extracted
27126         from func_cache_lookup_module. Add support for associative arrays.
27127         Don't set the c_MODULE_cached variable here. Ignore all lines before
27128         the first field header. Remove only the final newline, not all trailing
27129         newlines. Support empty fields correctly. Limit the use of 'eval' to
27130         assignments.
27131         (func_get_description, func_get_status, func_get_notice,
27132         func_get_applicability, func_get_filelist, func_get_dependencies,
27133         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27134         func_get_automake_snippet, func_get_include_directive,
27135         func_get_link_directive, func_get_license, func_get_maintainer):
27136         Update documentation. List the unoptimized code first. Add support for
27137         associative arrays. Limit the use of 'eval' to assignments.
27138         (func_get_applicability): Undo stylistic pessimisations.
27139         (func_get_automake_snippet, func_get_include_directive): Reduce code
27140         duplication.
27141         (func_modules_transitive_closure, func_modules_add_dummy,
27142         func_modules_notice, func_modules_to_filelist, func_add_file,
27143         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27144         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27145         func_create_testdir, func_create_megatestdir): Update documentation.
27146
27147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27148
27149         * gnulib-tool (func_cache_lookup_module): Store the module name
27150         belonging to the cache variable; error out if two different
27151         module names map to the same cache variable name.
27152
27153 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27154
27155         gnulib-tool: Make caching optional.
27156         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27157         Update matching short versions of --no-changelog.
27158         (func_usage): Update.
27159         (sed_extract_cache_prog): Renamed from ...
27160         (sed_extract_prog): ... this; revert to old extraction script.
27161         (func_get_description, func_get_status)
27162         (func_get_notice, func_get_applicability, func_get_filelist)
27163         (func_get_dependencies, func_get_autoconf_early_snippet)
27164         (func_get_autoconf_snippet, func_get_automake_snippet)
27165         (func_get_include_directive, func_get_link_directive)
27166         (func_get_license, func_get_maintainer): If $do_cache is false,
27167         use old, non-caching extraction scripts.
27168         Suggestion by Bruno Haible.
27169
27170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27171
27172         gnulib-tool: cache module metainformation.
27173         * gnulib-tool (sed_extract_prog): Match newline before each
27174         header, and rewrite header to a shell variable suffix.
27175         (func_cache_var, func_cache_lookup_module): New functions,
27176         to turn a module name into a cache variable prefix, and to
27177         look up and cache module metainformation.
27178         (func_get_description, func_get_status)
27179         (func_get_notice, func_get_applicability, func_get_filelist)
27180         (func_get_dependencies, func_get_autoconf_early_snippet)
27181         (func_get_autoconf_snippet, func_get_automake_snippet)
27182         (func_get_include_directive, func_get_link_directive)
27183         (func_get_license, func_get_maintainer): Use
27184         func_cache_lookup_module.
27185
27186 2010-02-07  Bruno Haible  <bruno@clisp.org>
27187
27188         fnctl: Fix missing dependency.
27189         * modules/fcntl (Depends-on): Add getdtablesize.
27190         Reported by John W. Eaton <jwe@gnu.org>.
27191
27192 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27193
27194         Argp: fix recognition of short alias options.
27195
27196         * lib/argp-parse.c (convert_options): Fix improper use of
27197         `|' between character values.
27198         * tests/test-argp.c (group1_option): New alias option
27199         --read (-r).
27200         (group1_parser): Special handling for 'r'.
27201         (test15): New test case.
27202         (test_fun): Add test15.
27203         * tests/test-argp-2.sh: Update expected --help and --usage
27204         outputs.
27205
27206 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27207
27208         * tests/test-argp.c: Fix indentation.
27209
27210 2010-02-04  Eric Blake  <ebb9@byu.net>
27211
27212         gettimeofday: expose type of second argument
27213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27214         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27215         * tests/test-gettimeofday.c: Use it to silence warning.
27216         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27217         the issue.
27218
27219 2010-02-03  Jim Meyering  <meyering@redhat.com>
27220
27221         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27222         * lib/regcomp.c (TYPE_SIGNED): Define.
27223         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27224
27225         regcomp.c: avoid a new -Wshadow warning
27226         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27227
27228 2010-02-01  Jim Meyering  <meyering@redhat.com>
27229
27230         removing useless parentheses in cpp #define directives
27231         For motivation, see commit c0221df4, "define STREQ(a,b)
27232         consistently, removing useless parentheses"
27233         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27234         * lib/mountlist.c (MNT_IGNORE): Likewise.
27235         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27236
27237 2010-02-01  Eric Blake  <ebb9@byu.net>
27238
27239         sys_time: use link-warning
27240         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27241         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27242         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27243         * modules/sys_time (Depends-on): Add warn-on-use.
27244         (Makefile.am): Always build replacement.
27245         (configure.ac): Update substitutions.
27246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27247         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27248         bother with SYS_TIME_H.
27249         * modules/gettimeofday (configure.ac): Declare indicator.
27250         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27251         in use.
27252
27253         closein-tests: silence compiler warning
27254         * tests/test-closein.c (main): Ignore fread result.
27255         * modules/closein-tests (Depends-on): Add ignore-value.
27256
27257         tests: silence warning about system return
27258         * tests/test-areadlink-with-size.c (main): Ignore system result.
27259         * tests/test-areadlink.c (main): Likewise.
27260         * tests/test-areadlinkat-with-size.c (main): Likewise.
27261         * tests/test-areadlinkat.c (main): Likewise.
27262         * tests/test-canonicalize-lgpl.c (main): Likewise.
27263         * tests/test-canonicalize.c (main): Likewise.
27264         * tests/test-chown.c (main): Likewise.
27265         * tests/test-fchownat.c (main): Likewise.
27266         * tests/test-fdutimensat.c (main): Likewise.
27267         * tests/test-fstatat.c (main): Likewise.
27268         * tests/test-futimens.c (main): Likewise.
27269         * tests/test-lchown.c (main): Likewise.
27270         * tests/test-link.c (main): Likewise.
27271         * tests/test-linkat.c (main): Likewise.
27272         * tests/test-lstat.c (main): Likewise.
27273         * tests/test-mkdir.c (main): Likewise.
27274         * tests/test-mkdirat.c (main): Likewise.
27275         * tests/test-mkfifo.c (main): Likewise.
27276         * tests/test-mkfifoat.c (main): Likewise.
27277         * tests/test-mknod.c (main): Likewise.
27278         * tests/test-readlink.c (main): Likewise.
27279         * tests/test-remove.c (main): Likewise.
27280         * tests/test-rename.c (main): Likewise.
27281         * tests/test-renameat.c (main): Likewise.
27282         * tests/test-rmdir.c (main): Likewise.
27283         * tests/test-symlink.c (main): Likewise.
27284         * tests/test-symlinkat.c (main): Likewise.
27285         * tests/test-unlink.c (main): Likewise.
27286         * tests/test-unlinkat.c (main): Likewise.
27287         * tests/test-utimens.c (main): Likewise.
27288         * tests/test-utimensat.c (main): Likewise.
27289         * modules/areadlink-tests (Depends-on): Add ignore-value.
27290         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27291         * modules/areadlinkat-tests (Depends-on): Likewise.
27292         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27293         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27294         * modules/canonicalize-tests (Depends-on): Likewise.
27295         * modules/chown-tests (Depends-on): Likewise.
27296         * modules/fdutimensat-tests (Depends-on): Likewise.
27297         * modules/futimens-tests (Depends-on): Likewise.
27298         * modules/lchown-tests (Depends-on): Likewise.
27299         * modules/link-tests (Depends-on): Likewise.
27300         * modules/linkat-tests (Depends-on): Likewise.
27301         * modules/lstat-tests (Depends-on): Likewise.
27302         * modules/mkdir-tests (Depends-on): Likewise.
27303         * modules/mkfifo-tests (Depends-on): Likewise.
27304         * modules/mkfifoat-tests (Depends-on): Likewise.
27305         * modules/mknod-tests (Depends-on): Likewise.
27306         * modules/openat-tests (Depends-on): Likewise.
27307         * modules/readlink-tests (Depends-on): Likewise.
27308         * modules/remove-tests (Depends-on): Likewise.
27309         * modules/rename-tests (Depends-on): Likewise.
27310         * modules/renameat-tests (Depends-on): Likewise.
27311         * modules/rmdir-tests (Depends-on): Likewise.
27312         * modules/symlink-tests (Depends-on): Likewise.
27313         * modules/symlinkat-tests (Depends-on): Likewise.
27314         * modules/unlink-tests (Depends-on): Likewise.
27315         * modules/utimens-tests (Depends-on): Likewise.
27316         * modules/utimensat-tests (Depends-on): Likewise.
27317
27318 2010-01-31  Bruno Haible  <bruno@clisp.org>
27319
27320         Perform the same test for many <math.h> functions.
27321         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27322         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27323         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27324         of gl_MATHFUNC.
27325         * modules/acos (configure.ac): Likewise.
27326         * modules/asin (configure.ac): Likewise.
27327         * modules/atan (configure.ac): Likewise.
27328         * modules/atan2 (configure.ac): Likewise.
27329         * modules/cbrt (configure.ac): Likewise.
27330         * modules/copysign (configure.ac): Likewise.
27331         * modules/cos (configure.ac): Likewise.
27332         * modules/cosh (configure.ac): Likewise.
27333         * modules/erf (configure.ac): Likewise.
27334         * modules/erfc (configure.ac): Likewise.
27335         * modules/exp (configure.ac): Likewise.
27336         * modules/fmod (configure.ac): Likewise.
27337         * modules/hypot (configure.ac): Likewise.
27338         * modules/j0 (configure.ac): Likewise.
27339         * modules/j1 (configure.ac): Likewise.
27340         * modules/jn (configure.ac): Likewise.
27341         * modules/lgamma (configure.ac): Likewise.
27342         * modules/log (configure.ac): Likewise.
27343         * modules/log10 (configure.ac): Likewise.
27344         * modules/log1p (configure.ac): Likewise.
27345         * modules/pow (configure.ac): Likewise.
27346         * modules/remainder (configure.ac): Likewise.
27347         * modules/sin (configure.ac): Likewise.
27348         * modules/sinh (configure.ac): Likewise.
27349         * modules/tan (configure.ac): Likewise.
27350         * modules/tanh (configure.ac): Likewise.
27351         * modules/y0 (configure.ac): Likewise.
27352         * modules/y1 (configure.ac): Likewise.
27353         * modules/yn (configure.ac): Likewise.
27354         Suggested by Paolo Bonzini.
27355
27356 2010-01-31  Bruno Haible  <bruno@clisp.org>
27357
27358         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27359
27360 2010-01-31  Bruno Haible  <bruno@clisp.org>
27361
27362         Work around getdelim() bug on FreeBSD 8.0.
27363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27364         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27365         not work.
27366         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27367         is 1.
27368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27369         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27370         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27371         a non-zero size.
27372         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27373
27374 2010-01-31  Bruno Haible  <bruno@clisp.org>
27375
27376         Work around getline() bug on FreeBSD 8.0.
27377         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27378         and a non-zero size.
27379         * tests/test-getline.c (main): Likewise.
27380         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27381         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27382
27383 2010-01-28  Eric Blake  <ebb9@byu.net>
27384
27385         regex: fix build failure
27386         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27387         platforms.
27388
27389 2010-01-28  Jim Meyering  <meyering@redhat.com>
27390
27391         regex: do not ignore memory allocation failure
27392         * lib/regex_internal.c (create_cd_newstate): Detect
27393         re_node_set_init_copy failure.   Extracted from glibc commit
27394         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27395
27396         regex: sync more white-space changes from libc
27397         * lib/regex_internal.c: White-space only changes.
27398         * lib/regexec.c: Likewise.
27399
27400         regex: add many uses of __attribute_warn_unused_result__
27401         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27402         * lib/regexec.c: Likewise.
27403         Extracted from a messy glibc commit.
27404
27405         regcomp.c: spelling and merge-artifact from glibc
27406         * lib/regcomp.c: Merge remainder of glibc's
27407         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27408
27409         regcomp.c: sync white-space changes from glibc
27410         * lib/regcomp.c: Merge to accommodate white space
27411         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27412
27413         regcomp.c: do not ignore internal return values
27414         * lib/regcomp.c: Do not ignore internal return values.
27415         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27416         but without its white-space changes and spelling fixes.
27417
27418         regex_internal.h: define __attribute_warn_unused_result__
27419         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27420
27421         maint: add a syntax-check rule to check for vulnerable Makefile.in
27422         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27423
27424 2010-01-27  Jim Meyering  <meyering@redhat.com>
27425
27426         ncftpput-ftp: clean up spaces
27427         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27428         Remove trailing blanks.
27429
27430 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27431
27432         * build-aux/git-version-gen: Fix copyright statement.
27433         * build-aux/gnupload: Likewise.
27434         * tests/test-arcfour.c: Likewise.
27435         * tests/test-arctwo.c: Likewise.
27436         * tests/test-count-one-bits.c: Likewise.
27437         * tests/test-crc.c: Likewise.
27438         * tests/test-des.c: Likewise.
27439         * tests/test-gc-arcfour.c: Likewise.
27440         * tests/test-gc-arctwo.c: Likewise.
27441         * tests/test-gc-des.c: Likewise.
27442         * tests/test-gc-hmac-md5.c: Likewise.
27443         * tests/test-gc-hmac-sha1.c: Likewise.
27444         * tests/test-gc-md2.c: Likewise.
27445         * tests/test-gc-md4.c: Likewise.
27446         * tests/test-gc-md5.c: Likewise.
27447         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27448         * tests/test-gc-rijndael.c: Likewise.
27449         * tests/test-gc-sha1.c: Likewise.
27450         * tests/test-gc.c: Likewise.
27451         * tests/test-gethostname.c: Likewise.
27452         * tests/test-gettimeofday.c: Likewise.
27453         * tests/test-hash.c: Likewise.
27454         * tests/test-hmac-md5.c: Likewise.
27455         * tests/test-hmac-sha1.c: Likewise.
27456         * tests/test-md2.c: Likewise.
27457         * tests/test-md4.c: Likewise.
27458         * tests/test-md5.c: Likewise.
27459         * tests/test-memchr.c: Likewise.
27460         * tests/test-memchr2.c: Likewise.
27461         * tests/test-memcmp.c: Likewise.
27462         * tests/test-memmem.c: Likewise.
27463         * tests/test-memrchr.c: Likewise.
27464         * tests/test-rawmemchr.c: Likewise.
27465         * tests/test-read-file.c: Likewise.
27466         * tests/test-rijndael.c: Likewise.
27467         * tests/test-sockets.c: Likewise.
27468         * tests/test-strchrnul.c: Likewise.
27469         * tests/test-strstr.c: Likewise.
27470         * tests/test-strtod.c: Likewise.
27471         * build-aux/ncftpput-ftp: Likewise.
27472
27473 2010-01-26  Eric Blake  <ebb9@byu.net>
27474
27475         ignore-value: update recommended header name
27476         * modules/ignore-value (Include): Only use <> for headers that
27477         exist in glibc.
27478
27479 2010-01-26  Jim Meyering  <meyering@redhat.com>
27480
27481         test-userspec.c: avoid compiler warnings
27482         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27483         and "initialization discards qualifiers..." warnings.
27484         Put the first "uid" in its own scope, and make char* members "const".
27485
27486 2010-01-25  Bruno Haible  <bruno@clisp.org>
27487
27488         gnulib-tool: Make warning diagnostics consistent.
27489         * gnulib-tool (func_warning): New function.
27490         Use it everywhere where gnulib-tool produces output to stderr and it is
27491         not a fatal error.
27492
27493 2010-01-25  Bruno Haible  <bruno@clisp.org>
27494
27495         Fix test dependencies.
27496         * modules/xstrtol-tests (Depends-on): Add inttypes.
27497         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27498
27499 2010-01-25 Pádraig Brady <P@draigBrady.com>
27500
27501         syntax-check: detect incorrect boolean macro values in config.h
27502         * modules/maintainer-makefile (configure.ac): Parameterize the location
27503         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27504         The logic is from Eric Blake and the location indicated by Jim Meyering.
27505         Note the more natural CONFIG_HEADER name is prohibited by automake
27506         for backwards compatibility reasons.
27507         * top/maint.mk (sc_Wundef_boolean): New rule.
27508
27509 2010-01-25  Jim Meyering  <meyering@redhat.com>
27510
27511         bootstrap: detect MacOS 10.6's shasum, too
27512         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27513         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27514
27515 2010-01-23  Jim Meyering  <meyering@redhat.com>
27516
27517         xstrtoll: new module
27518         * modules/xstrtoll: New file.
27519         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27520         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27521         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27522         ./configure fails if you use this module and lack "long long".
27523         * modules/xstrtoll-tests: New module.
27524         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27525         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27526         new init.sh-based test framework.
27527
27528 2010-01-24  Bruno Haible  <bruno@clisp.org>
27529
27530         Tests for module 'yn'.
27531         * modules/yn-tests: New file.
27532         * tests/test-yn.c: New file.
27533
27534         Tests for module 'y1'.
27535         * modules/y1-tests: New file.
27536         * tests/test-y1.c: New file.
27537
27538         Tests for module 'y0'.
27539         * modules/y0-tests: New file.
27540         * tests/test-y0.c: New file.
27541
27542         Tests for module 'tanh'.
27543         * modules/tanh-tests: New file.
27544         * tests/test-tanh.c: New file.
27545
27546         Tests for module 'tan'.
27547         * modules/tan-tests: New file.
27548         * tests/test-tan.c: New file.
27549
27550         Tests for module 'sqrt'.
27551         * modules/sqrt-tests: New file.
27552         * tests/test-sqrt.c: New file.
27553
27554         Tests for module 'sinh'.
27555         * modules/sinh-tests: New file.
27556         * tests/test-sinh.c: New file.
27557
27558         Tests for module 'sin'.
27559         * modules/sin-tests: New file.
27560         * tests/test-sin.c: New file.
27561
27562         Tests for module 'rint'.
27563         * modules/rint-tests: New file.
27564         * tests/test-rint.c: New file.
27565
27566         Tests for module 'remainder'.
27567         * modules/remainder-tests: New file.
27568         * tests/test-remainder.c: New file.
27569
27570         Tests for module 'pow'.
27571         * modules/pow-tests: New file.
27572         * tests/test-pow.c: New file.
27573
27574         Tests for module 'nextafter'.
27575         * modules/nextafter-tests: New file.
27576         * tests/test-nextafter.c: New file.
27577
27578         Tests for module 'modf'.
27579         * modules/modf-tests: New file.
27580         * tests/test-modf.c: New file.
27581
27582         Tests for module 'logb'.
27583         * modules/logb-tests: New file.
27584         * tests/test-logb.c: New file.
27585
27586         Tests for module 'log1p'.
27587         * modules/log1p-tests: New file.
27588         * tests/test-log1p.c: New file.
27589
27590         Tests for module 'log10'.
27591         * modules/log10-tests: New file.
27592         * tests/test-log10.c: New file.
27593
27594         Tests for module 'log'.
27595         * modules/log-tests: New file.
27596         * tests/test-log.c: New file.
27597
27598         Tests for module 'lgamma'.
27599         * modules/lgamma-tests: New file.
27600         * tests/test-lgamma.c: New file.
27601
27602         Tests for module 'ldexp'.
27603         * modules/ldexp-tests: New file.
27604         * tests/test-ldexp.c: New file.
27605
27606         Tests for module 'jn'.
27607         * modules/jn-tests: New file.
27608         * tests/test-jn.c: New file.
27609
27610         Tests for module 'j1'.
27611         * modules/j1-tests: New file.
27612         * tests/test-j1.c: New file.
27613
27614         Tests for module 'j0'.
27615         * modules/j0-tests: New file.
27616         * tests/test-j0.c: New file.
27617
27618         Tests for module 'hypot'.
27619         * modules/hypot-tests: New file.
27620         * tests/test-hypot.c: New file.
27621
27622         Tests for module 'fmod'.
27623         * modules/fmod-tests: New file.
27624         * tests/test-fmod.c: New file.
27625
27626         Tests for module 'fabs'.
27627         * modules/fabs-tests: New file.
27628         * tests/test-fabs.c: New file.
27629
27630         Tests for module 'exp'.
27631         * modules/exp-tests: New file.
27632         * tests/test-exp.c: New file.
27633
27634         Tests for module 'erfc'.
27635         * modules/erfc-tests: New file.
27636         * tests/test-erfc.c: New file.
27637
27638         Tests for module 'erf'.
27639         * modules/erf-tests: New file.
27640         * tests/test-erf.c: New file.
27641
27642         Tests for module 'cosh'.
27643         * modules/cosh-tests: New file.
27644         * tests/test-cosh.c: New file.
27645
27646         Tests for module 'cos'.
27647         * modules/cos-tests: New file.
27648         * tests/test-cos.c: New file.
27649
27650         Tests for module 'copysign'.
27651         * modules/copysign-tests: New file.
27652         * tests/test-copysign.c: New file.
27653
27654         Tests for module 'cbrt'.
27655         * modules/cbrt-tests: New file.
27656         * tests/test-cbrt.c: New file.
27657
27658         Tests for module 'atan2'.
27659         * modules/atan2-tests: New file.
27660         * tests/test-atan2.c: New file.
27661
27662         Tests for module 'atan'.
27663         * modules/atan-tests: New file.
27664         * tests/test-atan.c: New file.
27665
27666         Tests for module 'asin'.
27667         * modules/asin-tests: New file.
27668         * tests/test-asin.c: New file.
27669
27670         Tests for module 'acos'.
27671         * modules/acos-tests: New file.
27672         * tests/test-acos.c: New file.
27673
27674 2010-01-24  Bruno Haible  <bruno@clisp.org>
27675
27676         Fix tests for common <math.h> functions.
27677         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27678         code snippet that references the function pointer, rather than merely
27679         calling the function. Substitute the FUNC_LIBM variable.
27680         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27681         * modules/acos (configure.ac): Likewise.
27682         * modules/asin (configure.ac): Likewise.
27683         * modules/atan (configure.ac): Likewise.
27684         * modules/atan2 (configure.ac): Likewise.
27685         * modules/cbrt (configure.ac): Likewise.
27686         * modules/copysign (configure.ac): Likewise.
27687         * modules/cos (configure.ac): Likewise.
27688         * modules/cosh (configure.ac): Likewise.
27689         * modules/erf (configure.ac): Likewise.
27690         * modules/erfc (configure.ac): Likewise.
27691         * modules/exp (configure.ac): Likewise.
27692         * modules/fabs (configure.ac): Likewise.
27693         * modules/fmod (configure.ac): Likewise.
27694         * modules/hypot (configure.ac): Likewise.
27695         * modules/j0 (configure.ac): Likewise.
27696         * modules/j1 (configure.ac): Likewise.
27697         * modules/jn (configure.ac): Likewise.
27698         * modules/ldexp (configure.ac): Likewise.
27699         * modules/lgamma (configure.ac): Likewise.
27700         * modules/log (configure.ac): Likewise.
27701         * modules/log10 (configure.ac): Likewise.
27702         * modules/log1p (configure.ac): Likewise.
27703         * modules/logb (configure.ac): Likewise.
27704         * modules/modf (configure.ac): Likewise.
27705         * modules/nextafter (configure.ac): Likewise.
27706         * modules/pow (configure.ac): Likewise.
27707         * modules/remainder (configure.ac): Likewise.
27708         * modules/rint (configure.ac): Likewise.
27709         * modules/sin (configure.ac): Likewise.
27710         * modules/sinh (configure.ac): Likewise.
27711         * modules/tan (configure.ac): Likewise.
27712         * modules/tanh (configure.ac): Likewise.
27713         * modules/y0 (configure.ac): Likewise.
27714         * modules/y1 (configure.ac): Likewise.
27715         * modules/yn (configure.ac): Likewise.
27716
27717 2010-01-24  Bruno Haible  <bruno@clisp.org>
27718
27719         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27720         * tests/test-acosl.c (x): New variable.
27721         (main): Store argument in x and fetch it from x.
27722         * tests/test-asinl.c (x): New variable.
27723         (main): Store argument in x and fetch it from x.
27724         * tests/test-atanl.c (x): New variable.
27725         (main): Store argument in x and fetch it from x.
27726         * tests/test-cosl.c (x): New variable.
27727         (main): Store argument in x and fetch it from x.
27728         * tests/test-expl.c (x): New variable.
27729         (main): Store argument in x and fetch it from x.
27730         * tests/test-logl.c (x): New variable.
27731         (main): Store argument in x and fetch it from x.
27732         * tests/test-sinl.c (x): New variable.
27733         (main): Store argument in x and fetch it from x.
27734         * tests/test-sqrtl.c (x): New variable.
27735         (main): Store argument in x and fetch it from x.
27736         * tests/test-tanl.c (x): New variable.
27737         (main): Store argument in x and fetch it from x.
27738
27739 2010-01-24  Bruno Haible  <bruno@clisp.org>
27740
27741         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27742         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27743         assignments to the initial TESTS_ENVIRONMENT.
27744         * doc/gnulib.texi (Unit test modules): Document it.
27745         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27746         TESTS_ENVIRONMENT.
27747         * modules/btowc-tests (Makefile.am): Likewise.
27748         * modules/c-stack-tests (Makefile.am): Likewise.
27749         * modules/c-strcase-tests (Makefile.am): Likewise.
27750         * modules/copy-file-tests (Makefile.am): Likewise.
27751         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27752         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27753         * modules/mbrtowc-tests (Makefile.am): Likewise.
27754         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27755         * modules/mbscasestr-tests (Makefile.am): Likewise.
27756         * modules/mbschr-tests (Makefile.am): Likewise.
27757         * modules/mbscspn-tests (Makefile.am): Likewise.
27758         * modules/mbsinit-tests (Makefile.am): Likewise.
27759         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27760         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27761         * modules/mbspbrk-tests (Makefile.am): Likewise.
27762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27763         * modules/mbsrchr-tests (Makefile.am): Likewise.
27764         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27765         * modules/mbsspn-tests (Makefile.am): Likewise.
27766         * modules/mbsstr-tests (Makefile.am): Likewise.
27767         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27768         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27769         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27770         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27771         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27772         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27773         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27774         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27775         * modules/wcrtomb-tests (Makefile.am): Likewise.
27776         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27777         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27778         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27779         assignments from TESTS_ENVIRONMENT.
27780         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27781         augmentation.
27782         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27783         * modules/atexit-tests (Makefile.am): Likewise.
27784         * modules/binary-io-tests (Makefile.am): Likewise.
27785         * modules/closein-tests (Makefile.am): Likewise.
27786         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27787         * modules/exclude-tests (Makefile.am): Likewise.
27788         * modules/fflush-tests (Makefile.am): Likewise.
27789         * modules/fpending-tests (Makefile.am): Likewise.
27790         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27791         * modules/freadahead-tests (Makefile.am): Likewise.
27792         * modules/freadptr-tests (Makefile.am): Likewise.
27793         * modules/freadseek-tests (Makefile.am): Likewise.
27794         * modules/fseek-tests (Makefile.am): Likewise.
27795         * modules/fseeko-tests (Makefile.am): Likewise.
27796         * modules/ftell-tests (Makefile.am): Likewise.
27797         * modules/ftello-tests (Makefile.am): Likewise.
27798         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27799         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27800         * modules/lseek-tests (Makefile.am): Likewise.
27801         * modules/parse-duration-tests (Makefile.am): Likewise.
27802         * modules/perror-tests (Makefile.am): Likewise.
27803         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27804         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27805         * modules/pipe-tests (Makefile.am): Likewise.
27806         * modules/pread-tests (Makefile.am): Likewise.
27807         * modules/printf-posix-tests (Makefile.am): Likewise.
27808         * modules/select-tests (Makefile.am): Likewise.
27809         * modules/sigpipe-tests (Makefile.am): Likewise.
27810         * modules/tsearch-tests (Makefile.am): Likewise.
27811         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27812         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27813         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27814         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27815         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27816         * modules/version-etc-tests (Makefile.am): Likewise.
27817         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27818         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27819         * modules/xalloc-die-tests (Makefile.am): Likewise.
27820         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27821         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27822         * modules/xstrtol-tests (Makefile.am): Likewise.
27823         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27824         * modules/yesno-tests (Makefile.am): Likewise.
27825         Suggested by Jim Meyering.
27826
27827 2010-01-24  Bruno Haible  <bruno@clisp.org>
27828
27829         More documentation.
27830         * doc/gnulib.texi (Writing modules): New chapter.
27831         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27832         the new chapter.
27833
27834 2010-01-24  Jim Meyering  <meyering@redhat.com>
27835
27836         maint.mk: do not prepend "./" after filtering
27837         * top/maint.mk (_prepend_srcdir_prefix): New variable
27838         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27839         "./" when $(srcdir) is ".".
27840
27841         define STREQ(a,b) consistently, removing useless parentheses
27842         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27843         since the only risk is that "a" or "b" contains an unparenthesized
27844         comma, but if either did that, STREQ would have 3 or more arguments.
27845         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27846         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27847         * lib/hash-triple.c (STREQ): Likewise.
27848         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27849         * lib/getugroups.c (STREQ): Likewise.
27850
27851 2010-01-23  Jim Meyering  <meyering@redhat.com>
27852
27853         maint.mk: fix syntax-check in a non-srcdir build directory
27854         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27855         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27856
27857 2010-01-22  Jim Meyering  <meyering@redhat.com>
27858
27859         userspec: add unit tests
27860         * tests/test-userspec.c: New file.
27861         * modules/userspec-tests: Likewise.
27862
27863 2010-01-21  Jim Meyering  <meyering@redhat.com>
27864
27865         maint.mk: handle source file names containing "." robustly
27866         * top/maint.mk (_dot_escaped_srcdir): Define.
27867         (VC_LIST): Use it in LHS of sed substitution.
27868
27869 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27870
27871         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27872         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27873         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27874         from a non-srcdir build.
27875
27876 2010-01-20  Eric Blake  <ebb9@byu.net>
27877
27878         warn-on-use: use instead of link-warning
27879         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27880         * modules/unistd (Depends-on, Makefile.am): Likewise.
27881         * modules/arpa_inet (Depends-on): Replace link-warning with
27882         warn-on-use.
27883         (Makefile.am): Update rules accordingly.
27884         * modules/ctype (Depends-on, Makefile.am): Likewise.
27885         * modules/dirent (Depends-on, Makefile.am): Likewise.
27886         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27887         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27888         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27889         * modules/locale (Depends-on, Makefile.am): Likewise.
27890         * modules/math (Depends-on, Makefile.am): Likewise.
27891         * modules/search (Depends-on, Makefile.am): Likewise.
27892         * modules/signal (Depends-on, Makefile.am): Likewise.
27893         * modules/spawn (Depends-on, Makefile.am): Likewise.
27894         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27895         * modules/string (Depends-on, Makefile.am): Likewise.
27896         * modules/strings (Depends-on, Makefile.am): Likewise.
27897         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27898         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27899         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27900         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27901         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27902         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27903         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27904         * modules/wchar (Depends-on, Makefile.am): Likewise.
27905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27906         should be poisoned.
27907         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27908         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27909         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27911         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27912         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27913         * m4/math_h.m4 (gl_MATH_H): Likewise.
27914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27915         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27916         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27917         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27918         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27919         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27920         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27921         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27928         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27929         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27930         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27931         GL_LINK_WARNING.
27932         * lib/ctype.in.h: Likewise.
27933         * lib/dirent.in.h: Likewise.
27934         * lib/fcntl.in.h: Likewise.
27935         * lib/inttypes.in.h: Likewise.
27936         * lib/langinfo.in.h: Likewise.
27937         * lib/locale.in.h: Likewise.
27938         * lib/math.in.h: Likewise.
27939         * lib/search.in.h: Likewise.
27940         * lib/signal.in.h: Likewise.
27941         * lib/spawn.in.h: Likewise.
27942         * lib/stdio.in.h: Likewise.
27943         * lib/stdlib.in.h: Likewise.
27944         * lib/string.in.h: Likewise.
27945         * lib/strings.in.h: Likewise.
27946         * lib/sys_file.in.h: Likewise.
27947         * lib/sys_ioctl.in.h: Likewise.
27948         * lib/sys_select.in.h: Likewise.
27949         * lib/sys_socket.in.h: Likewise.
27950         * lib/sys_stat.in.h: Likewise.
27951         * lib/sys_times.in.h: Likewise.
27952         * lib/sys_utsname.in.h: Likewise.
27953         * lib/unistd.in.h: Likewise.
27954         * lib/wchar.in.h: Likewise.
27955
27956 2010-01-20  Bruno Haible  <bruno@clisp.org>
27957
27958         Avoid duplicate -lm.
27959         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27960         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27961         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27963         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27964         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27965         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27966         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27967         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27968         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27969         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27970         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27971         Reported by Paolo Bonzini.
27972
27973 2010-01-19  Bruno Haible  <bruno@clisp.org>
27974
27975         langinfo, nl_langinfo: Relicense under LGPLv2+.
27976         * modules/langinfo (License): Change to LGPLv2+.
27977         * modules/nl_langinfo (License): Likewise.
27978         Patch by David Lutterkort <lutter@redhat.com>.
27979
27980 2010-01-19  Bruno Haible  <bruno@clisp.org>
27981
27982         Avoid compilation error with cc on OSF/1 5.1.
27983         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27984         statement, not before.
27985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27986
27987 2010-01-18  Bruno Haible  <bruno@clisp.org>
27988
27989         Avoid a link error due to the __printf__ symbol.
27990         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27991         and 2.6.x.
27992         (__format__, __printf__): Remove definitions.
27993         * lib/argp-fmtstream.h: Likewise.
27994         * lib/argp.h: Likewise.
27995         * lib/error.h: Likewise.
27996         * lib/vasnprintf.h: Likewise.
27997         * lib/xprintf.h: Likewise.
27998         * lib/xvasprintf.h: Likewise.
27999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28000
28001 2010-01-18  Bruno Haible  <bruno@clisp.org>
28002
28003         Tests for module 'tanl'.
28004         * modules/tanl-tests: New file.
28005         * tests/test-tanl.c: New file.
28006
28007         Tests for module 'sqrtl'.
28008         * modules/sqrtl-tests: New file.
28009         * tests/test-sqrtl.c: New file.
28010
28011         Tests for module 'sinl'.
28012         * modules/sinl-tests: New file.
28013         * tests/test-sinl.c: New file.
28014
28015         Tests for module 'logl'.
28016         * modules/logl-tests: New file.
28017         * tests/test-logl.c: New file.
28018
28019         Tests for module 'expl'.
28020         * modules/expl-tests: New file.
28021         * tests/test-expl.c: New file.
28022
28023         Tests for module 'cosl'.
28024         * modules/cosl-tests: New file.
28025         * tests/test-cosl.c: New file.
28026
28027         Tests for module 'atanl'.
28028         * modules/atanl-tests: New file.
28029         * tests/test-atanl.c: New file.
28030
28031         Tests for module 'asinl'.
28032         * modules/asinl-tests: New file.
28033         * tests/test-asinl.c: New file.
28034
28035         Tests for module 'acosl'.
28036         * modules/acosl-tests: New file.
28037         * tests/test-acosl.c: New file.
28038
28039         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28040         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28041         tanl): Use the standard gnulib idiom.
28042         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28043         * lib/sinl.c: Likewise.
28044         * lib/tanl.c: Don't include trigl.c.
28045         (kernel_tanl): Make static.
28046         * lib/sincosl.c: Include trigl.h first.
28047         * lib/trigl.c: Likewise.
28048         * m4/acosl.m4: New file.
28049         * m4/asinl.m4: New file.
28050         * m4/atanl.m4: New file.
28051         * m4/cosl.m4: New file.
28052         * m4/expl.m4: New file.
28053         * m4/logl.m4: New file.
28054         * m4/sinl.m4: New file.
28055         * m4/sqrtl.m4: New file.
28056         * m4/tanl.m4: New file.
28057         * m4/mathl.m4: Remove file.
28058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28059         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28060         Don't initialize GNULIB_MATHL.
28061         * modules/acosl: New file.
28062         * modules/asinl: New file.
28063         * modules/atanl: New file.
28064         * modules/cosl: New file.
28065         * modules/expl: New file.
28066         * modules/logl: New file.
28067         * modules/sinl: New file.
28068         * modules/sqrtl: New file.
28069         * modules/tanl: New file.
28070         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28071         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28072         substitute GNULIB_MATHL.
28073         * modules/mathl: Rewritten.
28074         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28075         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28076         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28077         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28078         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28079         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28080         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28081         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28082         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28083
28084 2010-01-18  Bruno Haible  <bruno@clisp.org>
28085
28086         sqrt: Make gl_FUNC_SQRT requirable.
28087         * m4/sqrt.m4: New file.
28088         * modules/sqrt (Files): Add it.
28089         (configure.ac): Invoke gl_FUNC_SQRT.
28090
28091 2010-01-18  Bruno Haible  <bruno@clisp.org>
28092
28093         New modules for common <math.h> functions.
28094         * m4/mathfunc.m4: New file.
28095         * modules/acos: New file.
28096         * modules/asin: New file.
28097         * modules/atan: New file.
28098         * modules/atan2: New file.
28099         * modules/cbrt: New file.
28100         * modules/copysign: New file.
28101         * modules/cos: New file.
28102         * modules/cosh: New file.
28103         * modules/erf: New file.
28104         * modules/erfc: New file.
28105         * modules/exp: New file.
28106         * modules/fabs: New file.
28107         * modules/fmod: New file.
28108         * modules/hypot: New file.
28109         * modules/j0: New file.
28110         * modules/j1: New file.
28111         * modules/jn: New file.
28112         * modules/ldexp: New file.
28113         * modules/lgamma: New file.
28114         * modules/log: New file.
28115         * modules/log10: New file.
28116         * modules/log1p: New file.
28117         * modules/logb: New file.
28118         * modules/modf: New file.
28119         * modules/nextafter: New file.
28120         * modules/pow: New file.
28121         * modules/remainder: New file.
28122         * modules/rint: New file.
28123         * modules/sin: New file.
28124         * modules/sinh: New file.
28125         * modules/sqrt: New file.
28126         * modules/tan: New file.
28127         * modules/tanh: New file.
28128         * modules/y0: New file.
28129         * modules/y1: New file.
28130         * modules/yn: New file.
28131         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28132         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28133         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28134         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28135         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28136         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28137         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28138         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28139         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28140         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28141         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28142         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28143         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28144         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28145         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28146         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28147         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28148         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28149         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28150         * doc/posix-functions/log.texi: Mention the 'log' module.
28151         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28152         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28153         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28154         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28155         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28156         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28157         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28158         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28159         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28160         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28161         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28162         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28163         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28164         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28165         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28166         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28167
28168 2010-01-18  Jim Meyering  <meyering@redhat.com>
28169
28170         ignore-value: relax license to LGPLv2+
28171         * modules/ignore-value (License): Relax to LGPLv2+.
28172
28173         getdate: don't leak when TZ contains two or more '"'s
28174         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28175         double quote in TZ after the first one.
28176
28177         readtokens: do not leak internal token_lengths buffer
28178         * lib/readtokens.c (readtokens): Free the local, lengths,
28179         when the supplied "token_lengths" parameter is NULL.
28180
28181 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28182
28183         Fix a couple of missing LIBTHREAD link failures on AIX.
28184         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28185         $(LIBTHREAD).
28186         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28187
28188         Link test-poll against INET_PTON_LIB.
28189         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28190         for inet_pton on Solaris 10.
28191
28192 2010-01-17  Bruno Haible  <bruno@clisp.org>
28193
28194         unistdio/*-sprintf: Fix typo in module description.
28195         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28196         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28197         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28198         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28199         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28200         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28201         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28202         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28203
28204 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28205
28206         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28207         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28208         variables in shell case patterns, for AIX and HP-UX ksh.
28209
28210         Split large sed scripts, for HP-UX sed.
28211         * modules/stdio: Split sed scripts around 50 sed commands,
28212         to avoid HP-UX limit of 99 commands, in the near future.
28213         * modules/string: Likewise.
28214         * modules/unistd: Likewise.
28215
28216         gnulib-tool: avoid writing in the current directory.
28217         * gnulib-tool (func_emit_lib_Makefile_am)
28218         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28219         not in the current directory, so concurrent gnulib-tool
28220         instances do not interfere.
28221
28222 2010-01-16  Jim Meyering  <meyering@redhat.com>
28223
28224         doc: update users.txt
28225         * users.txt: Add grep.
28226         (diffutils, gzip): Update URLs.
28227
28228 2010-01-12  Bruno Haible  <bruno@clisp.org>
28229
28230         posix_spawn: Avoid test failure on Cygwin.
28231         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28232         characters.
28233         Reported by Simon Josefsson.
28234
28235 2010-01-12  Bruno Haible  <bruno@clisp.org>
28236
28237         * tests/test-cond.c (main): When skipping the test, show the reason.
28238
28239 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28240
28241         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28242
28243 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28244
28245         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28246         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28247
28248 2010-01-12  Eric Blake  <ebb9@byu.net>
28249
28250         build: guarantee AS_VAR_IF
28251         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28252         (gl_AS_VAR_IF): Move...
28253         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28254         Reported by Simon Josefsson.
28255
28256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28257
28258         * lib/stdio.in.h: Fix typo.
28259
28260 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28261
28262         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28263         libgpg-error.
28264
28265 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28266
28267         * tests/test-xalloc-die.sh: Use $EXEEXT.
28268
28269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28270             Bruno Haible  <bruno@clisp.org>
28271
28272         getlogin, getlogin_r: Avoid test failure.
28273         * tests/test-getlogin.c: Include <stdio.h>.
28274         (main): Skip the test when the function fails because stdin is not a
28275         tty.
28276         * tests/test-getlogin_r.c: Include <stdio.h>.
28277         (main): Skip the test when the function fails because stdin is not a
28278         tty.
28279
28280 2010-01-11  Eric Blake  <ebb9@byu.net>
28281
28282         tests: avoid more large file warnings
28283         * tests/test-fflush.c: Avoid warning about ftell use.
28284         * tests/test-fseek.c: Avoid warning about fseek use.
28285
28286 2010-01-10  Bruno Haible  <bruno@clisp.org>
28287
28288         nproc: Work better on Linux when /proc and /sys are not mounted.
28289         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28290         as lower bound when, on glibc/Linux systems,
28291         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28292         Suggested by Pádraig Brady <P@draigbrady.com>.
28293         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28294
28295         nproc: Refactor.
28296         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28297         extracted from num_processors.
28298         (num_processors): Call it.
28299
28300 2010-01-11  Jim Meyering  <meyering@redhat.com>
28301
28302         utimecmp: avoid new warning from upcoming gcc-4.5.0
28303         * lib/utimecmp.c (BILLION): Define using #define rather than an
28304         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28305
28306 2010-01-11  Eric Blake  <ebb9@byu.net>
28307
28308         math: add portability warnings for classification macros
28309         * modules/math (Depends-on): Add warn-on-use.
28310         (Makefile.am): Provide new substitutions.
28311         * m4/math_h.m4 (gl_MATH_H): Require inline.
28312         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28313         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28314         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28315         implement warnings.
28316
28317         unistd: warn on use of environ without module
28318         * modules/unistd (Depends-on): Add warn-on-use.
28319         (Makefile.am): Provide new substitutions.
28320         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28321         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28322
28323         stdio: warn on suspicious uses
28324         * modules/stdio (Depends-on): Add warn-on-use.
28325         (Makefile.am): Provide new substitutions.
28326         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28327         fseeko.
28328         * lib/stdio.in.h (gets): Always warn on use.
28329         (fseek, ftell): Adjust when warnings are issued, and honor
28330         _GL_NO_LARGE_FILES as a way to silence the warning.
28331         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28332         any warning about large file offsets.
28333         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28334         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28335         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28336         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28337         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28338         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28339         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28340         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28341
28342         warn-on-use: new module
28343         * modules/warn-on-use: New file.
28344         * build-aux/warn-on-use.h: Likewise.
28345         * m4/warn-on-use.m4: Likewise.
28346         * MODULES.html.sh (Support for building): Mention it.
28347
28348 2010-01-10  Bruno Haible  <bruno@clisp.org>
28349
28350         Tests for module 'unistr/u32-strdup'.
28351         * modules/unistr/u32-strdup-tests: New file.
28352         * tests/unistr/test-u32-strdup.c: New file.
28353
28354         Tests for module 'unistr/u16-strdup'.
28355         * modules/unistr/u16-strdup-tests: New file.
28356         * tests/unistr/test-u16-strdup.c: New file.
28357
28358         Tests for module 'unistr/u8-strdup'.
28359         * modules/unistr/u8-strdup-tests: New file.
28360         * tests/unistr/test-u8-strdup.c: New file.
28361         * tests/unistr/test-strdup.h: New file.
28362
28363         Tests for module 'unistr/u32-strncmp'.
28364         * modules/unistr/u32-strncmp-tests: New file.
28365         * tests/unistr/test-u32-strncmp.c: New file.
28366
28367         Tests for module 'unistr/u16-strncmp'.
28368         * modules/unistr/u16-strncmp-tests: New file.
28369         * tests/unistr/test-u16-strncmp.c: New file.
28370
28371         Tests for module 'unistr/u8-strncmp'.
28372         * modules/unistr/u8-strncmp-tests: New file.
28373         * tests/unistr/test-u8-strncmp.c: New file.
28374         * tests/unistr/test-strncmp.h: New file.
28375
28376         Tests for module 'unistr/u32-strcoll'.
28377         * modules/unistr/u32-strcoll-tests: New file.
28378         * tests/unistr/test-u32-strcoll.c: New file.
28379
28380         Tests for module 'unistr/u16-strcoll'.
28381         * modules/unistr/u16-strcoll-tests: New file.
28382         * tests/unistr/test-u16-strcoll.c: New file.
28383
28384         Tests for module 'unistr/u8-strcoll'.
28385         * modules/unistr/u8-strcoll-tests: New file.
28386         * tests/unistr/test-u8-strcoll.c: New file.
28387
28388         Tests for module 'unistr/u32-strcmp'.
28389         * modules/unistr/u32-strcmp-tests: New file.
28390         * tests/unistr/test-u32-strcmp.c: New file.
28391         * tests/unistr/test-u32-strcmp.h: New file.
28392
28393         Tests for module 'unistr/u16-strcmp'.
28394         * modules/unistr/u16-strcmp-tests: New file.
28395         * tests/unistr/test-u16-strcmp.c: New file.
28396         * tests/unistr/test-u16-strcmp.h: New file.
28397
28398         Tests for module 'unistr/u8-strcmp'.
28399         * modules/unistr/u8-strcmp-tests: New file.
28400         * tests/unistr/test-u8-strcmp.c: New file.
28401         * tests/unistr/test-u8-strcmp.h: New file.
28402         * tests/unistr/test-strcmp.h: New file.
28403
28404         Tests for module 'unistr/u32-strncat'.
28405         * modules/unistr/u32-strncat-tests: New file.
28406         * tests/unistr/test-u32-strncat.c: New file.
28407
28408         Tests for module 'unistr/u16-strncat'.
28409         * modules/unistr/u16-strncat-tests: New file.
28410         * tests/unistr/test-u16-strncat.c: New file.
28411
28412         Tests for module 'unistr/u8-strncat'.
28413         * modules/unistr/u8-strncat-tests: New file.
28414         * tests/unistr/test-u8-strncat.c: New file.
28415         * tests/unistr/test-strncat.h: New file.
28416
28417         Tests for module 'unistr/u32-strcat'.
28418         * modules/unistr/u32-strcat-tests: New file.
28419         * tests/unistr/test-u32-strcat.c: New file.
28420
28421         Tests for module 'unistr/u16-strcat'.
28422         * modules/unistr/u16-strcat-tests: New file.
28423         * tests/unistr/test-u16-strcat.c: New file.
28424
28425         Tests for module 'unistr/u8-strcat'.
28426         * modules/unistr/u8-strcat-tests: New file.
28427         * tests/unistr/test-u8-strcat.c: New file.
28428         * tests/unistr/test-strcat.h: New file.
28429
28430         Tests for module 'unistr/u32-stpncpy'.
28431         * modules/unistr/u32-stpncpy-tests: New file.
28432         * tests/unistr/test-u32-stpncpy.c: New file.
28433
28434         Tests for module 'unistr/u16-stpncpy'.
28435         * modules/unistr/u16-stpncpy-tests: New file.
28436         * tests/unistr/test-u16-stpncpy.c: New file.
28437
28438         Tests for module 'unistr/u8-stpncpy'.
28439         * modules/unistr/u8-stpncpy-tests: New file.
28440         * tests/unistr/test-u8-stpncpy.c: New file.
28441         * tests/unistr/test-stpncpy.h: New file.
28442
28443         Tests for module 'unistr/u32-strncpy'.
28444         * modules/unistr/u32-strncpy-tests: New file.
28445         * tests/unistr/test-u32-strncpy.c: New file.
28446
28447         Tests for module 'unistr/u16-strncpy'.
28448         * modules/unistr/u16-strncpy-tests: New file.
28449         * tests/unistr/test-u16-strncpy.c: New file.
28450
28451         Tests for module 'unistr/u8-strncpy'.
28452         * modules/unistr/u8-strncpy-tests: New file.
28453         * tests/unistr/test-u8-strncpy.c: New file.
28454         * tests/unistr/test-strncpy.h: New file.
28455
28456         Tests for module 'unistr/u32-stpcpy'.
28457         * modules/unistr/u32-stpcpy-tests: New file.
28458         * tests/unistr/test-u32-stpcpy.c: New file.
28459
28460         Tests for module 'unistr/u16-stpcpy'.
28461         * modules/unistr/u16-stpcpy-tests: New file.
28462         * tests/unistr/test-u16-stpcpy.c: New file.
28463
28464         Tests for module 'unistr/u8-stpcpy'.
28465         * modules/unistr/u8-stpcpy-tests: New file.
28466         * tests/unistr/test-u8-stpcpy.c: New file.
28467         * tests/unistr/test-stpcpy.h: New file.
28468
28469         Tests for module 'unistr/u32-strcpy'.
28470         * modules/unistr/u32-strcpy-tests: New file.
28471         * tests/unistr/test-u32-strcpy.c: New file.
28472
28473         Tests for module 'unistr/u16-strcpy'.
28474         * modules/unistr/u16-strcpy-tests: New file.
28475         * tests/unistr/test-u16-strcpy.c: New file.
28476
28477         Tests for module 'unistr/u8-strcpy'.
28478         * modules/unistr/u8-strcpy-tests: New file.
28479         * tests/unistr/test-u8-strcpy.c: New file.
28480         * tests/unistr/test-strcpy.h: New file.
28481
28482         Tests for module 'unistr/u32-strnlen'.
28483         * modules/unistr/u32-strnlen-tests: New file.
28484         * tests/unistr/test-u32-strnlen.c: New file.
28485
28486         Tests for module 'unistr/u16-strnlen'.
28487         * modules/unistr/u16-strnlen-tests: New file.
28488         * tests/unistr/test-u16-strnlen.c: New file.
28489
28490         Tests for module 'unistr/u8-strnlen'.
28491         * modules/unistr/u8-strnlen-tests: New file.
28492         * tests/unistr/test-u8-strnlen.c: New file.
28493         * tests/unistr/test-strnlen.h: New file.
28494
28495         Tests for module 'unistr/u32-strlen'.
28496         * modules/unistr/u32-strlen-tests: New file.
28497         * tests/unistr/test-u32-strlen.c: New file.
28498
28499         Tests for module 'unistr/u16-strlen'.
28500         * modules/unistr/u16-strlen-tests: New file.
28501         * tests/unistr/test-u16-strlen.c: New file.
28502
28503         Tests for module 'unistr/u8-strlen'.
28504         * modules/unistr/u8-strlen-tests: New file.
28505         * tests/unistr/test-u8-strlen.c: New file.
28506
28507         Tests for module 'unistr/u32-prev'.
28508         * modules/unistr/u32-prev-tests: New file.
28509         * tests/unistr/test-u32-prev.c: New file.
28510
28511         Tests for module 'unistr/u16-prev'.
28512         * modules/unistr/u16-prev-tests: New file.
28513         * tests/unistr/test-u16-prev.c: New file.
28514
28515         Tests for module 'unistr/u8-prev'.
28516         * modules/unistr/u8-prev-tests: New file.
28517         * tests/unistr/test-u8-prev.c: New file.
28518
28519         Tests for module 'unistr/u32-next'.
28520         * modules/unistr/u32-next-tests: New file.
28521         * tests/unistr/test-u32-next.c: New file.
28522
28523         Tests for module 'unistr/u16-next'.
28524         * modules/unistr/u16-next-tests: New file.
28525         * tests/unistr/test-u16-next.c: New file.
28526
28527         Tests for module 'unistr/u8-next'.
28528         * modules/unistr/u8-next-tests: New file.
28529         * tests/unistr/test-u8-next.c: New file.
28530
28531         Tests for module 'unistr/u32-strmbtouc'.
28532         * modules/unistr/u32-strmbtouc-tests: New file.
28533         * tests/unistr/test-u32-strmbtouc.c: New file.
28534
28535         Tests for module 'unistr/u16-strmbtouc'.
28536         * modules/unistr/u16-strmbtouc-tests: New file.
28537         * tests/unistr/test-u16-strmbtouc.c: New file.
28538
28539         Tests for module 'unistr/u8-strmbtouc'.
28540         * modules/unistr/u8-strmbtouc-tests: New file.
28541         * tests/unistr/test-u8-strmbtouc.c: New file.
28542
28543         Tests for module 'unistr/u32-strmblen'.
28544         * modules/unistr/u32-strmblen-tests: New file.
28545         * tests/unistr/test-u32-strmblen.c: New file.
28546
28547         Tests for module 'unistr/u16-strmblen'.
28548         * modules/unistr/u16-strmblen-tests: New file.
28549         * tests/unistr/test-u16-strmblen.c: New file.
28550
28551         Tests for module 'unistr/u8-strmblen'.
28552         * modules/unistr/u8-strmblen-tests: New file.
28553         * tests/unistr/test-u8-strmblen.c: New file.
28554
28555         Tests for module 'unistr/u32-cpy-alloc'.
28556         * modules/unistr/u32-cpy-alloc-tests: New file.
28557         * tests/unistr/test-u32-cpy-alloc.c: New file.
28558
28559         Tests for module 'unistr/u16-cpy-alloc'.
28560         * modules/unistr/u16-cpy-alloc-tests: New file.
28561         * tests/unistr/test-u16-cpy-alloc.c: New file.
28562
28563         Tests for module 'unistr/u8-cpy-alloc'.
28564         * modules/unistr/u8-cpy-alloc-tests: New file.
28565         * tests/unistr/test-u8-cpy-alloc.c: New file.
28566         * tests/unistr/test-cpy-alloc.h: New file.
28567
28568         Tests for module 'unistr/u32-mbsnlen'.
28569         * modules/unistr/u32-mbsnlen-tests: New file.
28570         * tests/unistr/test-u32-mbsnlen.c: New file.
28571
28572         Tests for module 'unistr/u16-mbsnlen'.
28573         * modules/unistr/u16-mbsnlen-tests: New file.
28574         * tests/unistr/test-u16-mbsnlen.c: New file.
28575
28576         Tests for module 'unistr/u8-mbsnlen'.
28577         * modules/unistr/u8-mbsnlen-tests: New file.
28578         * tests/unistr/test-u8-mbsnlen.c: New file.
28579
28580         Tests for module 'unistr/u32-chr'.
28581         * modules/unistr/u32-chr-tests: New file.
28582         * tests/unistr/test-u32-chr.c: New file.
28583
28584         Tests for module 'unistr/u16-chr'.
28585         * modules/unistr/u16-chr-tests: New file.
28586         * tests/unistr/test-u16-chr.c: New file.
28587
28588         Tests for module 'unistr/u8-chr'.
28589         * modules/unistr/u8-chr-tests: New file.
28590         * tests/unistr/test-u8-chr.c: New file.
28591         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28592
28593         Tests for module 'unistr/u32-cmp2'.
28594         * modules/unistr/u32-cmp2-tests: New file.
28595         * tests/unistr/test-u32-cmp2.c: New file.
28596
28597         Tests for module 'unistr/u16-cmp2'.
28598         * modules/unistr/u16-cmp2-tests: New file.
28599         * tests/unistr/test-u16-cmp2.c: New file.
28600
28601         Tests for module 'unistr/u8-cmp2'.
28602         * modules/unistr/u8-cmp2-tests: New file.
28603         * tests/unistr/test-u8-cmp2.c: New file.
28604         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28605
28606         Tests for module 'unistr/u32-cmp'.
28607         * modules/unistr/u32-cmp-tests: New file.
28608         * tests/unistr/test-u32-cmp.c: New file.
28609
28610         Tests for module 'unistr/u16-cmp'.
28611         * modules/unistr/u16-cmp-tests: New file.
28612         * tests/unistr/test-u16-cmp.c: New file.
28613
28614         Tests for module 'unistr/u8-cmp'.
28615         * modules/unistr/u8-cmp-tests: New file.
28616         * tests/unistr/test-u8-cmp.c: New file.
28617         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28618
28619         Tests for module 'unistr/u32-set'.
28620         * modules/unistr/u32-set-tests: New file.
28621         * tests/unistr/test-u32-set.c: New file.
28622
28623         Tests for module 'unistr/u16-set'.
28624         * modules/unistr/u16-set-tests: New file.
28625         * tests/unistr/test-u16-set.c: New file.
28626
28627         Tests for module 'unistr/u8-set'.
28628         * modules/unistr/u8-set-tests: New file.
28629         * tests/unistr/test-u8-set.c: New file.
28630         * tests/unistr/test-set.h: New file.
28631
28632         Tests for module 'unistr/u32-move'.
28633         * modules/unistr/u32-move-tests: New file.
28634         * tests/unistr/test-u32-move.c: New file.
28635
28636         Tests for module 'unistr/u16-move'.
28637         * modules/unistr/u16-move-tests: New file.
28638         * tests/unistr/test-u16-move.c: New file.
28639
28640         Tests for module 'unistr/u8-move'.
28641         * modules/unistr/u8-move-tests: New file.
28642         * tests/unistr/test-u8-move.c: New file.
28643         * tests/unistr/test-move.h: New file.
28644
28645         Tests for module 'unistr/u32-cpy'.
28646         * modules/unistr/u32-cpy-tests: New file.
28647         * tests/unistr/test-u32-cpy.c: New file.
28648
28649         Tests for module 'unistr/u16-cpy'.
28650         * modules/unistr/u16-cpy-tests: New file.
28651         * tests/unistr/test-u16-cpy.c: New file.
28652
28653         Tests for module 'unistr/u8-cpy'.
28654         * modules/unistr/u8-cpy-tests: New file.
28655         * tests/unistr/test-u8-cpy.c: New file.
28656         * tests/unistr/test-cpy.h: New file.
28657
28658 2010-01-09  Bruno Haible  <bruno@clisp.org>
28659
28660         Tests for module 'unistr/u32-uctomb'.
28661         * modules/unistr/u32-uctomb-tests: New file.
28662         * tests/unistr/test-u32-uctomb.c: New file.
28663
28664         Tests for module 'unistr/u16-uctomb'.
28665         * modules/unistr/u16-uctomb-tests: New file.
28666         * tests/unistr/test-u16-uctomb.c: New file.
28667
28668         Tests for module 'unistr/u8-uctomb'.
28669         * modules/unistr/u8-uctomb-tests: New file.
28670         * tests/unistr/test-u8-uctomb.c: New file.
28671
28672         Tests for module 'unistr/u32-mbtoucr'.
28673         * modules/unistr/u32-mbtoucr-tests: New file.
28674         * tests/unistr/test-u32-mbtoucr.c: New file.
28675
28676         Tests for module 'unistr/u16-mbtoucr'.
28677         * modules/unistr/u16-mbtoucr-tests: New file.
28678         * tests/unistr/test-u16-mbtoucr.c: New file.
28679
28680         Tests for module 'unistr/u8-mbtoucr'.
28681         * modules/unistr/u8-mbtoucr-tests: New file.
28682         * tests/unistr/test-u8-mbtoucr.c: New file.
28683
28684         Tests for module 'unistr/u32-mbtouc'.
28685         * modules/unistr/u32-mbtouc-tests: New file.
28686         * tests/unistr/test-u32-mbtouc.c: New file.
28687
28688         Tests for module 'unistr/u16-mbtouc'.
28689         * modules/unistr/u16-mbtouc-tests: New file.
28690         * tests/unistr/test-u16-mbtouc.c: New file.
28691
28692         Tests for module 'unistr/u8-mbtouc'.
28693         * modules/unistr/u8-mbtouc-tests: New file.
28694         * tests/unistr/test-u8-mbtouc.c: New file.
28695
28696         Tests for module 'unistr/u32-mbtouc-unsafe'.
28697         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28698         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28699         * tests/unistr/test-u32-mbtouc.h: New file.
28700
28701         Tests for module 'unistr/u16-mbtouc-unsafe'.
28702         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28703         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28704         * tests/unistr/test-u16-mbtouc.h: New file.
28705
28706         Tests for module 'unistr/u8-mbtouc-unsafe'.
28707         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28708         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28709         * tests/unistr/test-u8-mbtouc.h: New file.
28710
28711         Tests for module 'unistr/u32-mblen'.
28712         * modules/unistr/u32-mblen-tests: New file.
28713         * tests/unistr/test-u32-mblen.c: New file.
28714
28715         Tests for module 'unistr/u16-mblen'.
28716         * modules/unistr/u16-mblen-tests: New file.
28717         * tests/unistr/test-u16-mblen.c: New file.
28718
28719         Tests for module 'unistr/u8-mblen'.
28720         * modules/unistr/u8-mblen-tests: New file.
28721         * tests/unistr/test-u8-mblen.c: New file.
28722
28723         Tests for module 'unistr/u32-to-u16'.
28724         * modules/unistr/u32-to-u16-tests: New file.
28725         * tests/unistr/test-u32-to-u16.c: New file.
28726
28727         Tests for module 'unistr/u32-to-u8'.
28728         * modules/unistr/u32-to-u8-tests: New file.
28729         * tests/unistr/test-u32-to-u8.c: New file.
28730
28731         Tests for module 'unistr/u16-to-u32'.
28732         * modules/unistr/u16-to-u32-tests: New file.
28733         * tests/unistr/test-u16-to-u32.c: New file.
28734
28735         Tests for module 'unistr/u16-to-u8'.
28736         * modules/unistr/u16-to-u8-tests: New file.
28737         * tests/unistr/test-u16-to-u8.c: New file.
28738
28739         Tests for module 'unistr/u8-to-u32'.
28740         * modules/unistr/u8-to-u32-tests: New file.
28741         * tests/unistr/test-u8-to-u32.c: New file.
28742
28743         Tests for module 'unistr/u8-to-u16'.
28744         * modules/unistr/u8-to-u16-tests: New file.
28745         * tests/unistr/test-u8-to-u16.c: New file.
28746
28747         Tests for module 'unistr/u32-check'.
28748         * modules/unistr/u32-check-tests: New file.
28749         * tests/unistr/test-u32-check.c: New file.
28750
28751         Tests for module 'unistr/u16-check'.
28752         * modules/unistr/u16-check-tests: New file.
28753         * tests/unistr/test-u16-check.c: New file.
28754
28755         Tests for module 'unistr/u8-check'.
28756         * modules/unistr/u8-check-tests: New file.
28757         * tests/unistr/test-u8-check.c: New file.
28758
28759         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28760         (category_equals): New function.
28761         (main): Add more tests.
28762         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28763
28764         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28765
28766 2010-01-10  Bruno Haible  <bruno@clisp.org>
28767
28768         unistr/u*-strcoll: Try harder to distinguish different strings.
28769         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28770         compare s1 and s2 to see if they are different.
28771
28772 2010-01-10  Bruno Haible  <bruno@clisp.org>
28773
28774         unistr/u*-stpncpy: Fix the return value.
28775         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28776         description of the return value consistent with stpncpy in glibc.
28777         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28778         written non-NUL unit.
28779
28780 2010-01-10  Bruno Haible  <bruno@clisp.org>
28781
28782         unistr/u*-next: Add missing dependencies.
28783         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28784         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28785         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28786
28787 2010-01-10  Bruno Haible  <bruno@clisp.org>
28788
28789         unistr/u8-mbsnlen: Fix return value for incomplete character.
28790         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28791         u8_mblen.
28792         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28793         Remove unistr/u8-mblen.
28794         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28795         u16_mblen.
28796         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28797         Remove unistr/u16-mblen.
28798
28799 2010-01-10  Bruno Haible  <bruno@clisp.org>
28800
28801         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28802         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28803         Reported by Brian Gough <bjg@gnu.org> and
28804         Chris Clayton <chris2553@googlemail.com> via
28805         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28806
28807 2010-01-09  Bruno Haible  <bruno@clisp.org>
28808
28809         unistr/u16-to-u32: Reject invalid input.
28810         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28811         u16_mbtouc.
28812         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28813         Remove unistr/u16-mbtouc.
28814
28815         unistr/u16-to-u8: Reject invalid input.
28816         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28817         u16_mbtouc.
28818         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28819         Remove unistr/u16-mbtouc.
28820
28821         unistr/u8-to-u32: Reject invalid input.
28822         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28823         u8_mbtouc.
28824         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28825         Remove unistr/u8-mbtouc.
28826
28827         unistr/u8-to-u16: Reject invalid input.
28828         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28829         u8_mbtouc.
28830         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28831         Remove unistr/u8-mbtouc.
28832
28833 2010-01-09  Bruno Haible  <bruno@clisp.org>
28834
28835         Tests for module 'getlogin'.
28836         * modules/getlogin-tests: New file.
28837         * tests/test-getlogin.c: New file.
28838
28839         New module 'getlogin'.
28840         * lib/unistd.in.h (getlogin): New declaration.
28841         * lib/getlogin.c: New file.
28842         * m4/getlogin.m4: New file.
28843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28844         HAVE_GETLOGIN.
28845         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28846         HAVE_GETLOGIN.
28847         * modules/getlogin: New file.
28848         * doc/posix-functions/getlogin.texi: Mention the new module.
28849         Reported by John W. Eaton <jwe@gnu.org>.
28850
28851 2010-01-09  Bruno Haible  <bruno@clisp.org>
28852
28853         getlogin_r: Support for native Windows.
28854         * lib/getlogin_r.c: Include <windows.h>
28855         (getlogin_r): Implement for native Windows.
28856         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28857         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28858         via John W. Eaton <jwe@gnu.org>.
28859
28860 2010-01-09  Bruno Haible  <bruno@clisp.org>
28861
28862         getlogin_r: Small fixes.
28863         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28864         succeeds.
28865         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28866         before testing whether getlogin_r is declared. No need to set
28867         HAVE_DECL_GETLOGIN_R to 1.
28868         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28869
28870 2010-01-09  Bruno Haible  <bruno@clisp.org>
28871
28872         * lib/unistd.in.h (getlogin_r): Add comment.
28873
28874 2010-01-09  Bruno Haible  <bruno@clisp.org>
28875
28876         Tests for module 'getlogin_r'.
28877         * modules/getlogin_r-tests: New file.
28878         * tests/test-getlogin_r.c: New file.
28879
28880 2010-01-09  Jim Meyering  <meyering@redhat.com>
28881
28882         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28883         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28884         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28885
28886 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28887
28888         * lib/dup2.c (rpl_dup2): Improve comment.
28889
28890 2010-01-08  Eric Blake  <ebb9@byu.net>
28891
28892         maint.mk: allow packages to add makefile @@ exceptions
28893         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28894         (sc_makefile_check): Rename...
28895         (sc_makefile_at_at_check): ...to this, and use hook.
28896
28897         dup2: work around mingw bug
28898         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28899         Reported by Simon Josefsson.
28900
28901 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28902
28903         glob: Fix C++ compilation.
28904         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28905         C++.
28906
28907 2010-01-07  Bruno Haible  <bruno@clisp.org>
28908
28909         Fix indentation of wctype.in.h, broken since 2007-01-06.
28910         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28911
28912 2010-01-07  Bruno Haible  <bruno@clisp.org>
28913
28914         mbslen: Avoid collision with system function.
28915         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28916         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28917         * m4/mbslen.m4: New file.
28918         * modules/mbslen (Files): Add it.
28919         (configure.ac): Invoke gl_MBSLEN.
28920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28921         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28923         via Ian Beckwith <ianb@erislabs.net>.
28924
28925 2010-01-07  Bruno Haible  <bruno@clisp.org>
28926
28927         dirent: Document the last fix.
28928         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28929
28930 2010-01-07  Bruno Haible  <bruno@clisp.org>
28931
28932         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28933         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28934         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28935         va_list are defined.
28936         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28937         Reported by Eric Blake.
28938
28939 2010-01-07  Bruno Haible  <bruno@clisp.org>
28940
28941         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28942         * modules/xlist (Depends-on): Add 'list',
28943         * modules/xoset (Depends-on): Add 'oset'.
28944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28945
28946 2010-01-07  Bruno Haible  <bruno@clisp.org>
28947
28948         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28949         * doc/posix-functions/strncasecmp.texi: Likewise.
28950
28951 2010-01-07  Bruno Haible  <bruno@clisp.org>
28952
28953         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28954
28955 2010-01-07  John W. Eaton  <jwe@octave.org>
28956
28957         wctype: allow C++ use
28958         * lib/wctype.in.h: Add extern "C" block for C++.
28959
28960 2010-01-06  Eric Blake  <ebb9@byu.net>
28961
28962         maint.mk: detect incorrect GFDL usage
28963         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28964
28965 2010-01-06  Jim Meyering  <meyering@redhat.com>
28966         and Eric Blake  <ebb9@byu.net>
28967
28968         maint.mk: ignore multi-line copyright in NEWS
28969         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28970
28971 2010-01-06  Eric Blake  <ebb9@byu.net>
28972
28973         select: add missing dependency
28974         * modules/select-tests (Depends-on): Move sockets dependency...
28975         * modules/select (Depends-on): ...here.
28976         Reported by Ian Beckwith.
28977
28978         doc: regenerate INSTALL
28979         * doc/INSTALL: Reflect recent autoconf update.
28980         * doc/INSTALL.ISO: Likewise.
28981         * doc/INSTALL.UTF-8: Likewise.
28982
28983         pread: fix compilation on glibc
28984         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28985         Reported by Ralf Wildenhues.
28986
28987         dirent: fix test failure
28988         * lib/dirent.in.h (includes): Guarantee ino_t.
28989         Reported by Ralf Wildenhues.
28990
28991 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28992
28993         linkat, renameat: avoid bad free
28994         * lib/at-func2.c (at_func2): Fix typo.
28995         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28996
28997 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28998
28999         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29000         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29001         to avoid failure of symlink test later.
29002
29003 2010-01-06  Eric Blake  <ebb9@byu.net>
29004
29005         stdio, unistd: guarantee ssize_t
29006         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29007         2008 are exposed when needed.
29008         * lib/stdio.in.h (includes): Likewise.
29009         Reported by Ralf Wildenhues.
29010
29011 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29012
29013         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29015         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29016
29017 2010-01-06  Jim Meyering  <meyering@redhat.com>
29018
29019         readtokens: this module *does* require xalloc.h
29020         It uses only functions that were omitted by the old syntax-check rule.
29021         * lib/readtokens.c: Include "xalloc.h" once again.
29022         * modules/readtokens (Depends-on): Add xalloc.
29023         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29024
29025 2010-01-05  Eric Blake  <ebb9@byu.net>
29026
29027         maint: support 'make announcement' from a VPATH build
29028         * top/maint.mk (announcement): Look for correct NEWS file.
29029
29030 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29031
29032         utimens (fdutimens): ignore a negative FD, per contract
29033         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29034         when we have a valid file descriptor.  Otherwise, using a brand
29035         new glibc (with just-patched futimens that now fails with EBADF)
29036         would cause this function to fail with ENOSYS.
29037         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29038         See also http://bugzilla.redhat.com/552320.
29039
29040 2010-01-05  Eric Blake  <ebb9@byu.net>
29041
29042         strcase: document what it provides
29043         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29044         gnulib module.
29045         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29046         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29047
29048 2010-01-05  Jim Meyering  <meyering@redhat.com>
29049
29050         maint: remove useless inclusions of "xalloc.h"
29051         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29052         * lib/readtokens.c: Likewise.
29053         * lib/same.c: Likewise.
29054         * modules/getloadavg (Depends-on): Remove xalloc.
29055         * modules/readtokens: Likewise.
29056         * modules/same: Likewise.
29057
29058         maint.mk: include 4 more function names in alloca.h-checking regexp
29059         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29060         regexp.  Before, we would give a false-positive (saying alloca.h
29061         is included unnecessarily) when the only uses involved omitted symbols.
29062
29063         xalloc.h: use consistent formatting
29064         * lib/xalloc.h: Move declarations to start in the first column.
29065
29066 2010-01-05  Eric Blake  <ebb9@byu.net>
29067
29068         mkdir: avoid xalloc
29069         * lib/mkdir.c (includes): Drop unused header.
29070         Reported by John W. Eaton.
29071
29072 2010-01-04  Jim Meyering  <meyering@redhat.com>
29073
29074         nl_langinfo: avoid configure-time syntax error
29075         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29076         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29077         the empty string.  Don't let that provoke a shell syntax error.
29078
29079         regcomp, regexec, fnmatch: avoid array bounds read error
29080         * lib/regcomp.c (build_equiv_class): From glibc:
29081         Use only the low 24 bits of a findidx return value as an index
29082         into the weights array.  Patch by Ulrich Drepper:
29083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29084         * lib/regexec.c (check_node_accept_bytes): Likewise.
29085         * lib/fnmatch_loop.c (FCT): Likewise.
29086
29087         regcomp: skip collseq lookup when there are no rules
29088         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29089         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29090
29091         regcomp: recognize ill-formed { } expressions
29092         * lib/regcomp.c (parse_dup_op): From glibc:
29093         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29094
29095         regcomp: fix typo in comment
29096         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29097         s/satisfy/satisfies/.
29098
29099         regcomp: sync from glibc: remove dead store
29100         * lib/regcomp.c (duplicate_node_closure): Remove useless
29101         search_duplicated_node call and dead store.
29102
29103         regcomp: sync from glibc; always use nl_langinfo
29104         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29105         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29106         * modules/regex (Depends-on): Add nl_langinfo.
29107
29108 2010-01-04  Eric Blake  <ebb9@byu.net>
29109
29110         fdopendir: fix configure test
29111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29112
29113 2010-01-01  Bruno Haible  <bruno@clisp.org>
29114
29115         wchar: Remove unused configure check.
29116         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29117
29118 2010-01-01  Eric Blake  <ebb9@byu.net>
29119
29120         headers: make check of system header explicit
29121         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29122         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29123         ourselves.
29124         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29126         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29128         internals.
29129         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29130         missing.
29131         Suggested by Bruno Haible.
29132
29133 2010-01-01  Jim Meyering  <meyering@redhat.com>
29134
29135         ChangeLog: tweak to eliminate unnecessary copyright line
29136         * ChangeLog: Remove a copyright line that was mistakenly updated
29137         by today's update-copyright run.  Reported by Eric Blake.
29138
29139         test-update-copyright: don't let envvar setting cause test failure
29140         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29141
29142 2010-01-01  Bruno Haible  <bruno@clisp.org>
29143
29144         localename: Avoid gcc warning.
29145         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29146         function if it is not used.
29147
29148 2010-01-01  Jim Meyering  <meyering@redhat.com>
29149
29150         update nearly all FSF copyright year lists to include 2010
29151         Use the same procedure as for 2009, outlined in
29152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29153
29154         version-etc: set COPYRIGHT_YEAR to 2010
29155         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29156
29157 2009-12-31  Eric Blake  <ebb9@byu.net>
29158
29159         doc: correct availability of cygwin 1.5.x getopt
29160         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29161         variables.
29162         * doc/posix-functions/opterr.texi (opterr): Likewise.
29163         * doc/posix-functions/optind.texi (optind): Likewise.
29164         * doc/posix-functions/optopt.texi (optopt): Likewise.
29165         * doc/posix-functions/tzname.texi (tzname): Likewise.
29166
29167         openat: update maintainer
29168         * modules/openat (Maintainer): Add myself.
29169
29170         utimens: avoid shadowing warning
29171         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29172         buffers into one, to avoid shadowing, as well as avoiding a
29173         redundant stat.
29174         Reported by Jim Meyering.
29175
29176         test-dup2: avoid compiler warning
29177         * tests/test-dup2.c (is_inheritable): Only define if used.
29178
29179 2010-01-01  Bruno Haible  <bruno@clisp.org>
29180
29181         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29182         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29183         defined, use wctomb instead of wcrtomb.
29184
29185 2010-01-01  Bruno Haible  <bruno@clisp.org>
29186
29187         iconv: Reject native Solaris iconv.
29188         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29189         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29190
29191 2009-12-31  Bruno Haible  <bruno@clisp.org>
29192
29193         * tests/test-signal.c (main): Remove test of 'SIG'.
29194
29195 2009-12-31  Bruno Haible  <bruno@clisp.org>
29196
29197         spawn: Fix incomplete fix.
29198         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29199         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29200         warnings for GNULIB_POSIXCHECK again.
29201         Reported by Eric Blake.
29202
29203 2009-12-31  Bruno Haible  <bruno@clisp.org>
29204
29205         Avoid namespace pollution on glibc systems.
29206         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29207         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29208         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29209         glibc systems.
29210
29211 2009-12-31  Bruno Haible  <bruno@clisp.org>
29212
29213         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29214         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29215         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29217         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29219         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29220
29221 2009-12-31  Bruno Haible  <bruno@clisp.org>
29222
29223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29224         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29225         afterwards.
29226
29227 2009-12-31  Bruno Haible  <bruno@clisp.org>
29228
29229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29230         SYS_UTSNAME_H.
29231
29232 2009-12-31  Bruno Haible  <bruno@clisp.org>
29233
29234         spawn: Fix misapplied patch.
29235         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29236         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29237         warnings for GNULIB_POSIXCHECK.
29238
29239 2009-12-31  Bruno Haible  <bruno@clisp.org>
29240
29241         times: Update after sys_times changed.
29242         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29243         * modules/times (Files): Add it.
29244         (configure.ac): Invoke gl_FUNC_TIMES.
29245
29246 2009-12-31  Bruno Haible  <bruno@clisp.org>
29247
29248         Use AC_C_INLINE where necessary.
29249         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29250         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29252         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29253         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29254         * m4/mbiter.m4 (gl_MBITER): Likewise.
29255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29256         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29257         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29258         * modules/u64 (configure.ac): Likewise.
29259
29260 2009-12-31  Bruno Haible  <bruno@clisp.org>
29261
29262         Use AC_C_INLINE instead of module 'inline' where possible.
29263         * modules/inline (Description): Clarify purpose.
29264         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29265         * modules/count-one-bits (Depends-on): Remove inline.
29266         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29267         * modules/openat (Depends-on): Remove inline.
29268         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29269         instead of depending on module 'inline'.
29270         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29271         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29272         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29273         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29274         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29275         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29276         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29277         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29278         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29279         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29280         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29281         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29282         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29283         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29284         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29285         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29286         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29287         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29288         Likewise.
29289         * modules/unictype/property-ascii-hex-digit (Depends-on,
29290         configure.ac): Likewise.
29291         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29292         configure.ac): Likewise.
29293         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29294         configure.ac): Likewise.
29295         * modules/unictype/property-bidi-block-separator (Depends-on,
29296         configure.ac): Likewise.
29297         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29298         configure.ac): Likewise.
29299         * modules/unictype/property-bidi-common-separator (Depends-on,
29300         configure.ac): Likewise.
29301         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29302         Likewise.
29303         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29304         configure.ac): Likewise.
29305         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29306         configure.ac): Likewise.
29307         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29308         configure.ac): Likewise.
29309         * modules/unictype/property-bidi-european-digit (Depends-on,
29310         configure.ac): Likewise.
29311         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29312         configure.ac): Likewise.
29313         * modules/unictype/property-bidi-left-to-right (Depends-on,
29314         configure.ac): Likewise.
29315         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29316         configure.ac): Likewise.
29317         * modules/unictype/property-bidi-other-neutral (Depends-on,
29318         configure.ac): Likewise.
29319         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29320         Likewise.
29321         * modules/unictype/property-bidi-segment-separator (Depends-on,
29322         configure.ac): Likewise.
29323         * modules/unictype/property-bidi-whitespace (Depends-on,
29324         configure.ac): Likewise.
29325         * modules/unictype/property-combining (Depends-on, configure.ac):
29326         Likewise.
29327         * modules/unictype/property-composite (Depends-on, configure.ac):
29328         Likewise.
29329         * modules/unictype/property-currency-symbol (Depends-on,
29330         configure.ac): Likewise.
29331         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29332         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29333         Likewise.
29334         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29335         configure.ac): Likewise.
29336         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29337         Likewise.
29338         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29339         Likewise.
29340         * modules/unictype/property-extender (Depends-on, configure.ac):
29341         Likewise.
29342         * modules/unictype/property-format-control (Depends-on, configure.ac):
29343         Likewise.
29344         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29345         Likewise.
29346         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29347         Likewise.
29348         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29349         Likewise.
29350         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29351         Likewise.
29352         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29353         Likewise.
29354         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29355         Likewise.
29356         * modules/unictype/property-id-start (Depends-on, configure.ac):
29357         Likewise.
29358         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29359         Likewise.
29360         * modules/unictype/property-ids-binary-operator (Depends-on,
29361         configure.ac): Likewise.
29362         * modules/unictype/property-ids-trinary-operator (Depends-on,
29363         configure.ac): Likewise.
29364         * modules/unictype/property-ignorable-control (Depends-on,
29365         configure.ac): Likewise.
29366         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29367         Likewise.
29368         * modules/unictype/property-join-control (Depends-on, configure.ac):
29369         Likewise.
29370         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29371         Likewise.
29372         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29373         Likewise.
29374         * modules/unictype/property-logical-order-exception (Depends-on,
29375         configure.ac): Likewise.
29376         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29377         Likewise.
29378         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29379         * modules/unictype/property-non-break (Depends-on, configure.ac):
29380         Likewise.
29381         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29382         Likewise.
29383         * modules/unictype/property-numeric (Depends-on, configure.ac):
29384         Likewise.
29385         * modules/unictype/property-other-alphabetic (Depends-on,
29386         configure.ac): Likewise.
29387         * modules/unictype/property-other-default-ignorable-code-point
29388         (Depends-on, configure.ac): Likewise.
29389         * modules/unictype/property-other-grapheme-extend (Depends-on,
29390         configure.ac): Likewise.
29391         * modules/unictype/property-other-id-continue (Depends-on,
29392         configure.ac): Likewise.
29393         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29394         Likewise.
29395         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29396         Likewise.
29397         * modules/unictype/property-other-math (Depends-on, configure.ac):
29398         Likewise.
29399         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29400         Likewise.
29401         * modules/unictype/property-paired-punctuation (Depends-on,
29402         configure.ac): Likewise.
29403         * modules/unictype/property-paragraph-separator (Depends-on,
29404         configure.ac): Likewise.
29405         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29406         Likewise.
29407         * modules/unictype/property-pattern-white-space (Depends-on,
29408         configure.ac): Likewise.
29409         * modules/unictype/property-private-use (Depends-on, configure.ac):
29410         Likewise.
29411         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29412         Likewise.
29413         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29414         Likewise.
29415         * modules/unictype/property-radical (Depends-on, configure.ac):
29416         Likewise.
29417         * modules/unictype/property-sentence-terminal (Depends-on,
29418         configure.ac): Likewise.
29419         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29420         Likewise.
29421         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29422         * modules/unictype/property-terminal-punctuation (Depends-on,
29423         configure.ac): Likewise.
29424         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29425         Likewise.
29426         * modules/unictype/property-unassigned-code-value (Depends-on,
29427         configure.ac): Likewise.
29428         * modules/unictype/property-unified-ideograph (Depends-on,
29429         configure.ac): Likewise.
29430         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29431         Likewise.
29432         * modules/unictype/property-variation-selector (Depends-on,
29433         configure.ac): Likewise.
29434         * modules/unictype/property-white-space (Depends-on, configure.ac):
29435         Likewise.
29436         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29437         Likewise.
29438         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29439         Likewise.
29440         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29441         Likewise.
29442         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29443         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29444         Likewise.
29445
29446 2009-12-31  Bruno Haible  <bruno@clisp.org>
29447
29448         Remove unnecessary AC_C_INLINE invocation.
29449         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29450         since 2009-08-21.
29451
29452 2009-12-31  Jim Meyering  <meyering@redhat.com>
29453
29454         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29455         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29456         With this change, we can all remove the gpg_key_ID = ... definition
29457         from our respective cfg.mk files.
29458
29459         maint.mk: create announcement template in ~/, not in /tmp
29460         * top/maint.mk (emit_upload_commands): Adjust.
29461         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29462         Remove temporary file, .ci-msg.
29463
29464 2009-12-31  Eric Blake  <ebb9@byu.net>
29465
29466         link-warning: always build headers with link warnings
29467         * modules/arpa_inet (Makefile.am): Always build replacement
29468         header.
29469         * modules/ctype (Makefile.am): Likewise.
29470         * modules/dirent (Makefile.am): Likewise.
29471         * modules/inttypes (Makefile.am): Likewise.
29472         * modules/langinfo (Makefile.am): Likewise.
29473         * modules/locale (Makefile.am): Likewise.
29474         * modules/spawn (Makefile.am): Likewise.
29475         * modules/sys_file (Makefile.am): Likewise.
29476         * modules/sys_ioctl (Makefile.am): Likewise.
29477         * modules/sys_select (Makefile.am): Likewise.
29478         * modules/sys_socket (Makefile.am): Likewise.
29479         * modules/sys_times (Makefile.am): Likewise.
29480         * modules/sys_utsname (Makefile.am): Likewise.
29481         * modules/sys_wait (Makefile.am): Likewise.
29482         * modules/wchar (Makefile.am): Likewise.
29483         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29484         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29485         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29486         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29487         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29488         Likewise.
29489         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29490         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29491         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29492         Likewise.
29493         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29494         Likewise.
29495         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29496         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29497         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29499         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29501         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29502         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29503         (gl_WCHAR_H_DEFAULTS): Likewise.
29504
29505 2009-12-31  Eric Blake  <ebb9@byu.net>
29506
29507         signal, spawn: use link warnings
29508         * lib/signal.in.h (sigset_t): Make unconditional.
29509         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29510         (sigpending, sigprocmask, sigaction): Add link warnings.
29511         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29512         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29513         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29514         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29515         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29516         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29517         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29518         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29519         (posix_spawn_file_actions_destroy)
29520         (posix_spawn_file_actions_addopen)
29521         (posix_spawn_file_actions_addclose)
29522         (posix_spawn_file_actions_adddup2): Likewise.
29523         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29524         * tests/test-signal.c (main): Enhance test.
29525
29526         spawn: improve wrapper support
29527         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29528         (gl_SPAWN_H_DEFAULTS): New defaults.
29529         * modules/spawn (Makefile.am): Substitute them.
29530         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29531         Only declare if missing or broken.
29532
29533         sys_times, sys_utsname: use include_next
29534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29535         header.
29536         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29538         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29539         * modules/sys_times (Depends-on): Add include_next.
29540         (Makefile.am): Substitute additional values.
29541         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29542         * lib/sys_times.in.h (includes): Include native header, if
29543         available.
29544         * lib/sys_utsname.in.h (includes): Likewise.
29545         * tests/test-sys_times.c (main): Enhance test.
29546
29547         fdutimensat: revert prior patch
29548         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29549         utimens.h.
29550         Reported by Bruno Haible.
29551
29552 2009-12-30  Eric Blake  <ebb9@byu.net>
29553
29554         sys_wait: drop link-warning dependency
29555         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29556         link-warning efforts.
29557         * lib/sys_wait.in.h: Likewise.
29558
29559         fdutimensat: remove bogus dependency
29560         * modules/fdutimensat (Depends-on): Drop inline.
29561
29562         unistd: fix typo
29563         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29564
29565 2009-12-30  Bruno Haible  <bruno@clisp.org>
29566
29567         Fix compilation error with Solaris cc.
29568         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29569         * lib/unicase/u16-is-invariant.c: Likewise.
29570         * lib/unicase/u32-is-invariant.c: Likewise.
29571         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29572
29573 2009-12-30  Bruno Haible  <bruno@clisp.org>
29574
29575         Fix test crash.
29576         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29577         locales.
29578         Reported by Simon Josefsson <simon@josefsson.org>.
29579
29580 2009-12-30  Bruno Haible  <bruno@clisp.org>
29581
29582         Fix compilation error on most platforms.
29583         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29584         Reported by Simon Josefsson <simon@josefsson.org>
29585         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29586
29587 2009-12-30  Eric Blake  <ebb9@byu.net>
29588
29589         futimens, utimensat: work around ntfs-3g bug
29590         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29591         a ctime bug is present, and expand workaround to cover ntfs-3g.
29592         * lib/utimens.c (fdutimens, lutimens): Likewise.
29593         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29594         (validate_timespec): Adjust return value.
29595         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29596         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29597         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29598
29599 2009-12-29  Eric Blake  <ebb9@byu.net>
29600
29601         link-warning: make usage consistent
29602         * modules/ctype (Depends-on): Add link-warning.
29603         (Makefile.am): Update rules accordingly.
29604         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29605         * modules/locale (Depends-on, Makefile.am): Likewise.
29606         * modules/sys_file (Makefile.am): Likewise.
29607         * modules/getopt-posix (Makefile.am): Delete unused link warning
29608         efforts.
29609         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29610         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29611         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29612         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29613
29614         stdio: remove unused variables
29615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29616         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29617         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29618
29619         tests: test more substitute headers
29620         * modules/ctype-tests: New file.
29621         * modules/dirent-tests: Likewise.
29622         * modules/spawn-tests: Likewise.
29623         * modules/sys_file-tests: Likewise.
29624         * modules/sys_ioctl-tests: Likewise.
29625         * modules/sys_wait-tests: Likewise.
29626         * tests/test-ctype.c: Likewise.
29627         * tests/test-dirent.c: Likewise.
29628         * tests/test-spawn.c: Likewise.
29629         * tests/test-sys_file.c: Likewise.
29630         * tests/test-sys_ioctl.c: Likewise.
29631         * tests/test-sys_wait.c: Likewise.
29632         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29633         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29634         whether or not flock is in use.
29635
29636         tests: remove License section from module
29637         * modules/arpa_inet-tests: Remove unneeded section.
29638         * modules/byteswap-tests: Likewise.
29639         * modules/ceilf-tests: Likewise.
29640         * modules/ceill-tests: Likewise.
29641         * modules/crypto/des-tests: Likewise.
29642         * modules/crypto/gc-arcfour-tests: Likewise.
29643         * modules/crypto/gc-arctwo-tests: Likewise.
29644         * modules/crypto/gc-des-tests: Likewise.
29645         * modules/crypto/gc-hmac-md5-tests: Likewise.
29646         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29647         * modules/crypto/gc-md2-tests: Likewise.
29648         * modules/crypto/gc-md4-tests: Likewise.
29649         * modules/crypto/gc-md5-tests: Likewise.
29650         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29651         * modules/crypto/gc-rijndael-tests: Likewise.
29652         * modules/crypto/gc-sha1-tests: Likewise.
29653         * modules/crypto/gc-tests: Likewise.
29654         * modules/crypto/md2-tests: Likewise.
29655         * modules/crypto/md4-tests: Likewise.
29656         * modules/fcntl-h-tests: Likewise.
29657         * modules/floorf-tests: Likewise.
29658         * modules/floorl-tests: Likewise.
29659         * modules/frexp-nolibm-tests: Likewise.
29660         * modules/frexp-tests: Likewise.
29661         * modules/frexpl-nolibm-tests: Likewise.
29662         * modules/frexpl-tests: Likewise.
29663         * modules/getaddrinfo-tests: Likewise.
29664         * modules/inttypes-tests: Likewise.
29665         * modules/isfinite-tests: Likewise.
29666         * modules/isinf-tests: Likewise.
29667         * modules/ldexpl-tests: Likewise.
29668         * modules/locale-tests: Likewise.
29669         * modules/math-tests: Likewise.
29670         * modules/netdb-tests: Likewise.
29671         * modules/netinet_in-tests: Likewise.
29672         * modules/printf-frexp-tests: Likewise.
29673         * modules/printf-frexpl-tests: Likewise.
29674         * modules/priv-set-tests: Likewise.
29675         * modules/random_r-tests: Likewise.
29676         * modules/round-tests: Likewise.
29677         * modules/roundf-tests: Likewise.
29678         * modules/roundl-tests: Likewise.
29679         * modules/search-tests: Likewise.
29680         * modules/select-tests: Likewise.
29681         * modules/signal-tests: Likewise.
29682         * modules/stdbool-tests: Likewise.
29683         * modules/stddef-tests: Likewise.
29684         * modules/stdint-tests: Likewise.
29685         * modules/stdio-tests: Likewise.
29686         * modules/stdlib-tests: Likewise.
29687         * modules/string-tests: Likewise.
29688         * modules/strings-tests: Likewise.
29689         * modules/sys_select-tests: Likewise.
29690         * modules/sys_socket-tests: Likewise.
29691         * modules/sys_stat-tests: Likewise.
29692         * modules/sys_time-tests: Likewise.
29693         * modules/sys_utsname-tests: Likewise.
29694         * modules/sysexits-tests: Likewise.
29695         * modules/time-tests: Likewise.
29696         * modules/trunc-tests: Likewise.
29697         * modules/truncf-tests: Likewise.
29698         * modules/truncl-tests: Likewise.
29699         * modules/tsearch-tests: Likewise.
29700         * modules/unistd-tests: Likewise.
29701         * modules/wchar-tests: Likewise.
29702         * modules/wctype-tests: Likewise.
29703
29704         tests: fix license on several tests
29705         * tests/test-des.c: Update to GPLv3+.
29706         * tests/test-flock.c: Likewise.
29707         * tests/test-fsync.c: Likewise.
29708         * tests/test-futimens.h: Likewise.
29709         * tests/test-gc-arcfour.c: Likewise.
29710         * tests/test-gc-arctwo.c: Likewise.
29711         * tests/test-gc-des.c: Likewise.
29712         * tests/test-gc-hmac-md5.c: Likewise.
29713         * tests/test-gc-hmac-sha1.c: Likewise.
29714         * tests/test-gc-md2.c: Likewise.
29715         * tests/test-gc-md4.c: Likewise.
29716         * tests/test-gc-md5.c: Likewise.
29717         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29718         * tests/test-gc-rijndael.c: Likewise.
29719         * tests/test-gc-sha1.c: Likewise.
29720         * tests/test-gc.c: Likewise.
29721         * tests/test-getcwd.c: Likewise.
29722         * tests/test-link.c: Likewise.
29723         * tests/test-link.h: Likewise.
29724         * tests/test-lutimens.h: Likewise.
29725         * tests/test-md2.c: Likewise.
29726         * tests/test-md4.c: Likewise.
29727         * tests/test-mkdir.h: Likewise.
29728         * tests/test-rename.c: Likewise.
29729         * tests/test-rename.h: Likewise.
29730         * tests/test-safe-alloc.c: Likewise.
29731         * tests/test-utimens-common.h: Likewise.
29732         * tests/test-utimens.h: Likewise.
29733
29734         maint: sync license texts
29735         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29736         * doc/gpl-3.0.texi: Revert copyright year update.
29737         * doc/lgpl-3.0.texi: Likewise.
29738
29739 2009-12-29  Jim Meyering  <meyering@redhat.com>
29740
29741         update nearly all FSF copyright year lists to include 2009
29742         The files named by the following are exempted:
29743             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29744               test -f "$dst" && { echo "$dst"; continue; }
29745               test -d "$dst" || continue
29746               echo "$dst"/$(basename "$src")
29747             done > exempt
29748             git ls-files tests/unictype >> exempt
29749         In the remaining files, convert to all-interval notation if
29750         - there is already at least one year interval like 2000-2003
29751         - the file is maintained by me
29752         - the file is in lib/uni*/, where that style already prevails
29753         Otherwise, use update-copyright's default.
29754
29755 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29756         and Eric Blake  <ebb9@byu.net>
29757
29758         tests: don't require debug system() to pass
29759         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29760         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29761         * tests/test-unlink.h (test_unlink_func): Likewise.
29762         * tests/test-fstatat.c (main): ...into callers.
29763         * tests/test-lstat.c (main): Likewise.
29764         * tests/test-rmdir.c (main): Likewise.
29765         * tests/test-unlink.c (main): Likewise.
29766         * tests/test-unlinkat.c (main): Likewise.
29767         * tests/test-areadlink-with-size.c (main): Don't require a
29768         debug-only system call to pass, aiding cross-testing to mingw.
29769         * tests/test-areadlink.c (main): Likewise.
29770         * tests/test-areadlinkat-with-size.c (main): Likewise.
29771         * tests/test-areadlinkat.c (main): Likewise.
29772         * tests/test-canonicalize-lgpl.c (main): Likewise.
29773         * tests/test-canonicalize.c (main): Likewise.
29774         * tests/test-chown.c (main): Likewise.
29775         * tests/test-fchownat.c (main): Likewise.
29776         * tests/test-lchown.c (main): Likewise.
29777         * tests/test-fdutimensat.c (main): Likewise.
29778         * tests/test-futimens.c (main): Likewise.
29779         * tests/test-link.c (main): Likewise.
29780         * tests/test-linkat.c (main): Likewise.
29781         * tests/test-mkdir.c (main): Likewise.
29782         * tests/test-mkdirat.c (main): Likewise.
29783         * tests/test-mkfifo.c (main): Likewise.
29784         * tests/test-mkfifoat.c (main): Likewise.
29785         * tests/test-mknod.c (main): Likewise.
29786         * tests/test-readlink.c (main): Likewise.
29787         * tests/test-remove.c (main): Likewise.
29788         * tests/test-rename.c (main): Likewise.
29789         * tests/test-renameat.c (main): Likewise.
29790         * tests/test-symlink.c (main): Likewise.
29791         * tests/test-symlinkat.c (main): Likewise.
29792         * tests/test-utimens.c (main): Likewise.
29793         * tests/test-utimensat.c (main): Likewise.
29794
29795 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29796
29797         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29798         on $(UNUSED_PARAMETER_H) to avoid build failure.
29799
29800 2009-12-28  Jim Meyering  <meyering@redhat.com>
29801
29802         update-copyright: you may specify a max. line length other than 72
29803         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29804
29805         maint: use consistent FSF copyright line syntax
29806         * lib/posixtm.c: Add missing comma in FSF copyright line.
29807         * lib/posixtm.h: Likewise.
29808         * lib/getugroups.c: Add missing ", Inc.".
29809
29810         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29811         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29812         FSF copyright line.  Remove trailing blanks.
29813
29814 2009-12-28  Eric Blake  <ebb9@byu.net>
29815
29816         test-dup2: reduce dependencies
29817         * modules/cloexec (Configure.ac): Set witness.
29818         * modules/dup2-tests (Depends-on): Drop cloexec.
29819         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29820         not present.
29821         Suggested by Bruno Haible.
29822
29823 2009-12-26  Bruno Haible  <bruno@clisp.org>
29824
29825         Remove an unneeded dependency.
29826         * modules/fseterr (Depends-on): Remove dup2.
29827
29828 2009-12-26  Eric Blake  <ebb9@byu.net>
29829
29830         tests: use macros.h in more places
29831         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29832         (ASSERT_STREAM): Provide default of stderr.
29833         * tests/test-dirent-safer.c: Include macros.h, using alternate
29834         stream for assertions.
29835         * tests/test-dup-safer.c: Likewise.
29836         * tests/test-freopen-safer.c: Likewise.
29837         * tests/test-getopt.c: Likewise.
29838         * tests/test-openat-safer.c: Likewise.
29839         * tests/test-pipe.c: Likewise.
29840         * tests/test-popen-safer.c: Likewise.
29841         * modules/dirent-safer-tests (Files): Include macros.h.
29842         * modules/unistd-safer-tests (Files): Likewise.
29843         * modules/freopen-safer-tests (Files): Likewise.
29844         * modules/getopt-posix-tests (Files): Likewise.
29845         * modules/openat-safer-tests (Files): Likewise.
29846         * modules/pipe-tests (Files): Likewise.
29847
29848 2009-12-26  Bruno Haible  <bruno@clisp.org>
29849
29850         javacomp: Portability fix.
29851         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29852         that it also works on Solaris.
29853
29854 2009-12-26  Bruno Haible  <bruno@clisp.org>
29855
29856         localename: Fix storage allocation of gl_locale_name_thread's result.
29857         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29858         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29859         all platforms that have 'uselocale'.
29860         (gl_locale_name_thread_unsafe): New function, extracted from
29861         gl_locale_name_thread.
29862         (gl_locale_name_thread): Call struniq on all platforms that have
29863         'uselocale'.
29864         * tests/test-localename.c (test_locale_name_thread): Check that the
29865         resulting strings are permanently allocated.
29866         * modules/localename-tests (Depends-on): Add strdup.
29867
29868 2009-12-26  Bruno Haible  <bruno@clisp.org>
29869
29870         * tests/test-localename.c (categories): Fill in the strings.
29871
29872 2009-12-26  Jim Meyering  <meyering@redhat.com>
29873
29874         isdir: complete the removal of m4/isdir.m4
29875         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29876
29877         isdir: clean up, since at least grep still uses it
29878         * lib/isdir.c: Include "isdir.h".
29879         (S_ISDIR): Remove now-unneeded definition.
29880         * modules/isdir (Files): Add lib/isdir.h.
29881         * lib/isdir.h: New file, with declaration.
29882         * m4/isdir.m4: Remove file -- unneeded.
29883
29884 2009-12-25  Bruno Haible  <bruno@clisp.org>
29885
29886         selinux-h: Make generated .h files standalone.
29887         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29888         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29889         * lib/se-selinux.in.h: Likewise.
29890         * modules/selinux-h (Depends-on): Add unused-parameter.
29891         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29892         selinux/selinux.h and selinux/context.h.
29893         Suggested by Eric Blake.
29894
29895 2009-12-25  Bruno Haible  <bruno@clisp.org>
29896
29897         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29898         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29899         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29900         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29901         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29902
29903 2009-12-24  Bruno Haible  <bruno@clisp.org>
29904
29905         openat: Fix warning.
29906         * lib/openat-proc.c: Include <unistd.h>.
29907
29908 2009-12-24  Bruno Haible  <bruno@clisp.org>
29909
29910         New module 'unused-parameter'.
29911         * build-aux/unused-parameter.h: New file, extracted from earlier
29912         gnulib-common.m4.
29913         * modules/unused-parameter: New file.
29914         * lib/unistr.h: Include unused-parameter.h.
29915         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29916         _GL_UNUSED.
29917         * modules/unistr/base (Depends-on): Add unused-parameter.
29918
29919 2009-12-24  Bruno Haible  <bruno@clisp.org>
29920
29921         Add missing dependencies to 'extensions' module.
29922         * m4/extensions.m4: Add comment.
29923         * modules/accept4 (Depends-on): Add extensions.
29924         * modules/dup3 (Depends-on): Likewise.
29925         * modules/fcntl (Depends-on): Likewise.
29926         * modules/futimens (Depends-on): Likewise.
29927         * modules/mknod (Depends-on): Likewise.
29928         * modules/pipe2 (Depends-on): Likewise.
29929         * modules/stat-time (Depends-on): Likewise.
29930         * modules/strcasestr-simple (Depends-on): Likewise.
29931         * modules/strsignal (Depends-on): Likewise.
29932         * modules/utimensat (Depends-on): Likewise.
29933         * modules/localcharset (Depends-on): Likewise. Needed because of
29934         gl_FCNTL_O_FLAGS.
29935         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29936         AC_TYPE_MBSTATE_T.
29937         * modules/wcsnrtombs (Depends-on): Likewise.
29938         * modules/wcsrtombs (Depends-on): Likewise.
29939
29940 2009-12-24  Bruno Haible  <bruno@clisp.org>
29941
29942         binary-io: Avoid gcc warning due to SET_BINARY.
29943         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29944         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29945
29946 2009-12-24  Bruno Haible  <bruno@clisp.org>
29947
29948         Avoid future namespace pollution on glibc systems.
29949         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29950         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29951         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29952         glibc systems.
29953
29954 2009-12-24  Bruno Haible  <bruno@clisp.org>
29955
29956         Refactor common macros used in tests.
29957         * tests/macros.h: New file.
29958         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29959         and/or <stdlib.h>, if appropriate.
29960         (ASSERT, SIZEOF): Remove macros.
29961         * tests/test-areadlink-with-size.c: Likewise.
29962         * tests/test-areadlinkat.c: Likewise.
29963         * tests/test-areadlinkat-with-size.c: Likewise.
29964         * tests/test-argmatch.c: Likewise.
29965         * tests/test-argv-iter.c: Likewise.
29966         * tests/test-array-mergesort.c: Likewise.
29967         * tests/test-array_list.c: Likewise.
29968         * tests/test-array_oset.c: Likewise.
29969         * tests/test-avltree_list.c: Likewise.
29970         * tests/test-avltree_oset.c: Likewise.
29971         * tests/test-avltreehash_list.c: Likewise.
29972         * tests/test-base64.c: Likewise.
29973         * tests/test-binary-io.c: Likewise.
29974         * tests/test-bitrotate.c: Likewise.
29975         * tests/test-btowc.c: Likewise.
29976         * tests/test-byteswap.c: Likewise.
29977         * tests/test-c-ctype.c: Likewise.
29978         * tests/test-c-stack.c: Likewise.
29979         * tests/test-c-strcasecmp.c: Likewise.
29980         * tests/test-c-strcasestr.c: Likewise.
29981         * tests/test-c-strncasecmp.c: Likewise.
29982         * tests/test-c-strstr.c: Likewise.
29983         * tests/test-canonicalize-lgpl.c: Likewise.
29984         * tests/test-canonicalize.c: Likewise.
29985         * tests/test-carray_list.c: Likewise.
29986         * tests/test-ceilf1.c: Likewise.
29987         * tests/test-ceilf2.c: Likewise.
29988         * tests/test-ceill.c: Likewise.
29989         * tests/test-chown.c: Likewise.
29990         * tests/test-cloexec.c: Likewise.
29991         * tests/test-copy-acl.c: Likewise.
29992         * tests/test-copy-file.c: Likewise.
29993         * tests/test-count-one-bits.c: Likewise.
29994         * tests/test-dprintf-posix.c: Likewise.
29995         * tests/test-dup2.c: Likewise.
29996         * tests/test-dup3.c: Likewise.
29997         * tests/test-duplocale.c: Likewise.
29998         * tests/test-fbufmode.c: Likewise.
29999         * tests/test-fchdir.c: Likewise.
30000         * tests/test-fchownat.c: Likewise.
30001         * tests/test-fcntl-safer.c: Likewise.
30002         * tests/test-fcntl.c: Likewise.
30003         * tests/test-fdopendir.c: Likewise.
30004         * tests/test-fdutimensat.c: Likewise.
30005         * tests/test-fflush2.c: Likewise.
30006         * tests/test-file-has-acl.c: Likewise.
30007         * tests/test-filevercmp.c: Likewise.
30008         * tests/test-flock.c: Likewise.
30009         * tests/test-floorf1.c: Likewise.
30010         * tests/test-floorf2.c: Likewise.
30011         * tests/test-floorl.c: Likewise.
30012         * tests/test-fnmatch.c: Likewise.
30013         * tests/test-fopen.h: Likewise.
30014         * tests/test-fpending.c: Likewise.
30015         * tests/test-fprintf-posix.c: Likewise.
30016         * tests/test-fpurge.c: Likewise.
30017         * tests/test-freadable.c: Likewise.
30018         * tests/test-freadahead.c: Likewise.
30019         * tests/test-freading.c: Likewise.
30020         * tests/test-freadptr.c: Likewise.
30021         * tests/test-freadptr2.c: Likewise.
30022         * tests/test-freadseek.c: Likewise.
30023         * tests/test-freopen.c: Likewise.
30024         * tests/test-frexp.c: Likewise.
30025         * tests/test-frexpl.c: Likewise.
30026         * tests/test-fseek.c: Likewise.
30027         * tests/test-fseeko.c: Likewise.
30028         * tests/test-fstatat.c: Likewise.
30029         * tests/test-fstrcmp.c: Likewise.
30030         * tests/test-fsync.c: Likewise.
30031         * tests/test-ftell.c: Likewise.
30032         * tests/test-ftello.c: Likewise.
30033         * tests/test-func.c: Likewise.
30034         * tests/test-futimens.c: Likewise.
30035         * tests/test-fwritable.c: Likewise.
30036         * tests/test-fwriting.c: Likewise.
30037         * tests/test-getcwd.c: Likewise.
30038         * tests/test-getdate.c: Likewise.
30039         * tests/test-getdelim.c: Likewise.
30040         * tests/test-getdtablesize.c: Likewise.
30041         * tests/test-getgroups.c: Likewise.
30042         * tests/test-getline.c: Likewise.
30043         * tests/test-getndelim2.c: Likewise.
30044         * tests/test-glob.c: Likewise.
30045         * tests/test-hash.c: Likewise.
30046         * tests/test-i-ring.c: Likewise.
30047         * tests/test-iconv-utf.c: Likewise.
30048         * tests/test-iconv.c: Likewise.
30049         * tests/test-idpriv-drop.c: Likewise.
30050         * tests/test-idpriv-droptemp.c: Likewise.
30051         * tests/test-inet_ntop.c: Likewise.
30052         * tests/test-inet_pton.c: Likewise.
30053         * tests/test-isblank.c: Likewise.
30054         * tests/test-isfinite.c: Likewise.
30055         * tests/test-isinf.c: Likewise.
30056         * tests/test-isnan.c: Likewise.
30057         * tests/test-isnand.h: Likewise.
30058         * tests/test-isnanf.h: Likewise.
30059         * tests/test-isnanl.h: Likewise.
30060         * tests/test-lchown.c: Likewise.
30061         * tests/test-ldexpl.c: Likewise.
30062         * tests/test-link.c: Likewise.
30063         * tests/test-linkat.c: Likewise.
30064         * tests/test-linked_list.c: Likewise.
30065         * tests/test-linkedhash_list.c: Likewise.
30066         * tests/test-localename.c: Likewise.
30067         * tests/test-lseek.c: Likewise.
30068         * tests/test-lstat.c: Likewise.
30069         * tests/test-mbmemcasecmp.c: Likewise.
30070         * tests/test-mbmemcasecoll.c: Likewise.
30071         * tests/test-mbrtowc.c: Likewise.
30072         * tests/test-mbscasecmp.c: Likewise.
30073         * tests/test-mbscasestr1.c: Likewise.
30074         * tests/test-mbscasestr2.c: Likewise.
30075         * tests/test-mbscasestr3.c: Likewise.
30076         * tests/test-mbscasestr4.c: Likewise.
30077         * tests/test-mbschr.c: Likewise.
30078         * tests/test-mbscspn.c: Likewise.
30079         * tests/test-mbsinit.c: Likewise.
30080         * tests/test-mbsncasecmp.c: Likewise.
30081         * tests/test-mbsnrtowcs.c: Likewise.
30082         * tests/test-mbspbrk.c: Likewise.
30083         * tests/test-mbspcasecmp.c: Likewise.
30084         * tests/test-mbsrchr.c: Likewise.
30085         * tests/test-mbsrtowcs.c: Likewise.
30086         * tests/test-mbsspn.c: Likewise.
30087         * tests/test-mbsstr1.c: Likewise.
30088         * tests/test-mbsstr2.c: Likewise.
30089         * tests/test-mbsstr3.c: Likewise.
30090         * tests/test-memchr.c: Likewise.
30091         * tests/test-memchr2.c: Likewise.
30092         * tests/test-memcmp.c: Likewise.
30093         * tests/test-memmem.c: Likewise.
30094         * tests/test-memrchr.c: Likewise.
30095         * tests/test-mkdir.c: Likewise.
30096         * tests/test-mkdirat.c: Likewise.
30097         * tests/test-mkfifo.c: Likewise.
30098         * tests/test-mkfifoat.c: Likewise.
30099         * tests/test-mknod.c: Likewise.
30100         * tests/test-nanosleep.c: Likewise.
30101         * tests/test-nl_langinfo.c: Likewise.
30102         * tests/test-obstack-printf.c: Likewise.
30103         * tests/test-open.c: Likewise.
30104         * tests/test-openat.c: Likewise.
30105         * tests/test-pipe-filter-gi1.c: Likewise.
30106         * tests/test-pipe-filter-gi2-main.c: Likewise.
30107         * tests/test-pipe-filter-ii1.c: Likewise.
30108         * tests/test-pipe-filter-ii2-main.c: Likewise.
30109         * tests/test-pipe2.c: Likewise.
30110         * tests/test-popen.h: Likewise.
30111         * tests/test-posixtm.c: Likewise.
30112         * tests/test-pread.c: Likewise.
30113         * tests/test-printf-frexp.c: Likewise.
30114         * tests/test-printf-frexpl.c: Likewise.
30115         * tests/test-printf-posix.c: Likewise.
30116         * tests/test-priv-set.c: Likewise.
30117         * tests/test-quotearg.c: Likewise.
30118         * tests/test-random_r.c: Likewise.
30119         * tests/test-rawmemchr.c: Likewise.
30120         * tests/test-rbtree_list.c: Likewise.
30121         * tests/test-rbtree_oset.c: Likewise.
30122         * tests/test-rbtreehash_list.c: Likewise.
30123         * tests/test-readlink.c: Likewise.
30124         * tests/test-remove.c: Likewise.
30125         * tests/test-rename.c: Likewise.
30126         * tests/test-renameat.c: Likewise.
30127         * tests/test-rmdir.c: Likewise.
30128         * tests/test-round1.c: Likewise.
30129         * tests/test-roundf1.c: Likewise.
30130         * tests/test-roundl.c: Likewise.
30131         * tests/test-safe-alloc.c: Likewise.
30132         * tests/test-sameacls.c: Likewise.
30133         * tests/test-set-mode-acl.c: Likewise.
30134         * tests/test-setenv.c: Likewise.
30135         * tests/test-sigaction.c: Likewise.
30136         * tests/test-signbit.c: Likewise.
30137         * tests/test-sleep.c: Likewise.
30138         * tests/test-snprintf-posix.c: Likewise.
30139         * tests/test-snprintf.c: Likewise.
30140         * tests/test-sprintf-posix.c: Likewise.
30141         * tests/test-stat-time.c: Likewise.
30142         * tests/test-stat.c: Likewise.
30143         * tests/test-strcasestr.c: Likewise.
30144         * tests/test-strchrnul.c: Likewise.
30145         * tests/test-strerror.c: Likewise.
30146         * tests/test-striconv.c: Likewise.
30147         * tests/test-striconveh.c: Likewise.
30148         * tests/test-striconveha.c: Likewise.
30149         * tests/test-strsignal.c: Likewise.
30150         * tests/test-strstr.c: Likewise.
30151         * tests/test-strtod.c: Likewise.
30152         * tests/test-strverscmp.c: Likewise.
30153         * tests/test-symlink.c: Likewise.
30154         * tests/test-symlinkat.c: Likewise.
30155         * tests/test-trunc1.c: Likewise.
30156         * tests/test-trunc2.c: Likewise.
30157         * tests/test-truncf1.c: Likewise.
30158         * tests/test-truncf2.c: Likewise.
30159         * tests/test-truncl.c: Likewise.
30160         * tests/test-uname.c: Likewise.
30161         * tests/test-unlink.c: Likewise.
30162         * tests/test-unlinkat.c: Likewise.
30163         * tests/test-unsetenv.c: Likewise.
30164         * tests/test-usleep.c: Likewise.
30165         * tests/test-utimens.c: Likewise.
30166         * tests/test-utimensat.c: Likewise.
30167         * tests/test-vasnprintf-posix.c: Likewise.
30168         * tests/test-vasnprintf-posix2.c: Likewise.
30169         * tests/test-vasnprintf.c: Likewise.
30170         * tests/test-vasprintf-posix.c: Likewise.
30171         * tests/test-vasprintf.c: Likewise.
30172         * tests/test-vdprintf-posix.c: Likewise.
30173         * tests/test-vfprintf-posix.c: Likewise.
30174         * tests/test-vprintf-posix.c: Likewise.
30175         * tests/test-vsnprintf-posix.c: Likewise.
30176         * tests/test-vsnprintf.c: Likewise.
30177         * tests/test-vsprintf-posix.c: Likewise.
30178         * tests/test-wcrtomb.c: Likewise.
30179         * tests/test-wcsnrtombs.c: Likewise.
30180         * tests/test-wcsrtombs.c: Likewise.
30181         * tests/test-wctype.c: Likewise.
30182         * tests/test-wcwidth.c: Likewise.
30183         * tests/test-xfprintf-posix.c: Likewise.
30184         * tests/test-xmemdup0.c: Likewise.
30185         * tests/test-xprintf-posix.c: Likewise.
30186         * tests/test-xvasprintf.c: Likewise.
30187         * tests/unicase/test-locale-language.c: Likewise.
30188         * tests/unicase/test-mapping-part1.h: Likewise.
30189         * tests/unicase/test-predicate-part1.h: Likewise.
30190         * tests/unicase/test-u8-casecmp.c: Likewise.
30191         * tests/unicase/test-u8-casecoll.c: Likewise.
30192         * tests/unicase/test-u8-casefold.c: Likewise.
30193         * tests/unicase/test-u8-is-cased.c: Likewise.
30194         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30195         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30196         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30197         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30198         * tests/unicase/test-u8-tolower.c: Likewise.
30199         * tests/unicase/test-u8-totitle.c: Likewise.
30200         * tests/unicase/test-u8-toupper.c: Likewise.
30201         * tests/unicase/test-u16-casecmp.c: Likewise.
30202         * tests/unicase/test-u16-casecoll.c: Likewise.
30203         * tests/unicase/test-u16-casefold.c: Likewise.
30204         * tests/unicase/test-u16-is-cased.c: Likewise.
30205         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30206         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30207         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30208         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30209         * tests/unicase/test-u16-tolower.c: Likewise.
30210         * tests/unicase/test-u16-totitle.c: Likewise.
30211         * tests/unicase/test-u16-toupper.c: Likewise.
30212         * tests/unicase/test-u32-casecmp.c: Likewise.
30213         * tests/unicase/test-u32-casecoll.c: Likewise.
30214         * tests/unicase/test-u32-casefold.c: Likewise.
30215         * tests/unicase/test-u32-is-cased.c: Likewise.
30216         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30217         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30218         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30219         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30220         * tests/unicase/test-u32-tolower.c: Likewise.
30221         * tests/unicase/test-u32-totitle.c: Likewise.
30222         * tests/unicase/test-u32-toupper.c: Likewise.
30223         * tests/unicase/test-ulc-casecmp.c: Likewise.
30224         * tests/unicase/test-ulc-casecoll.c: Likewise.
30225         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30226         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30227         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30228         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30229         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30230         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30231         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30232         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30233         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30234         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30235         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30236         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30237         * tests/unictype/test-bidi_byname.c: Likewise.
30238         * tests/unictype/test-bidi_name.c: Likewise.
30239         * tests/unictype/test-bidi_of.c: Likewise.
30240         * tests/unictype/test-bidi_test.c: Likewise.
30241         * tests/unictype/test-block_list.c: Likewise.
30242         * tests/unictype/test-block_of.c: Likewise.
30243         * tests/unictype/test-block_test.c: Likewise.
30244         * tests/unictype/test-categ_and.c: Likewise.
30245         * tests/unictype/test-categ_and_not.c: Likewise.
30246         * tests/unictype/test-categ_byname.c: Likewise.
30247         * tests/unictype/test-categ_name.c: Likewise.
30248         * tests/unictype/test-categ_none.c: Likewise.
30249         * tests/unictype/test-categ_of.c: Likewise.
30250         * tests/unictype/test-categ_or.c: Likewise.
30251         * tests/unictype/test-categ_test_withtable.c: Likewise.
30252         * tests/unictype/test-combining.c: Likewise.
30253         * tests/unictype/test-decdigit.c: Likewise.
30254         * tests/unictype/test-digit.c: Likewise.
30255         * tests/unictype/test-mirror.c: Likewise.
30256         * tests/unictype/test-numeric.c: Likewise.
30257         * tests/unictype/test-pr_byname.c: Likewise.
30258         * tests/unictype/test-pr_test.c: Likewise.
30259         * tests/unictype/test-predicate-part1.h: Likewise.
30260         * tests/unictype/test-scripts.c: Likewise.
30261         * tests/unictype/test-sy_c_ident.c: Likewise.
30262         * tests/unictype/test-sy_java_ident.c: Likewise.
30263         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30264         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30265         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30266         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30267         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30268         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30269         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30270         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30271         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30272         * tests/uninorm/test-compat-decomposition.c: Likewise.
30273         * tests/uninorm/test-composition.c: Likewise.
30274         * tests/uninorm/test-decomposing-form.c: Likewise.
30275         * tests/uninorm/test-decomposition.c: Likewise.
30276         * tests/uninorm/test-u8-nfc.c: Likewise.
30277         * tests/uninorm/test-u8-nfd.c: Likewise.
30278         * tests/uninorm/test-u8-nfkc.c: Likewise.
30279         * tests/uninorm/test-u8-nfkd.c: Likewise.
30280         * tests/uninorm/test-u8-normcmp.c: Likewise.
30281         * tests/uninorm/test-u8-normcoll.c: Likewise.
30282         * tests/uninorm/test-u16-nfc.c: Likewise.
30283         * tests/uninorm/test-u16-nfd.c: Likewise.
30284         * tests/uninorm/test-u16-nfkc.c: Likewise.
30285         * tests/uninorm/test-u16-nfkd.c: Likewise.
30286         * tests/uninorm/test-u16-normcmp.c: Likewise.
30287         * tests/uninorm/test-u16-normcoll.c: Likewise.
30288         * tests/uninorm/test-u32-nfc.c: Likewise.
30289         * tests/uninorm/test-u32-nfd.c: Likewise.
30290         * tests/uninorm/test-u32-nfkc.c: Likewise.
30291         * tests/uninorm/test-u32-nfkd.c: Likewise.
30292         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30293         * tests/uninorm/test-u32-normcmp.c: Likewise.
30294         * tests/uninorm/test-u32-normcoll.c: Likewise.
30295         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30296         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30297         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30298         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30299         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30300         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30301         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30302         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30303         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30304         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30305         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30306         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30307         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30308         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30309         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30310         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30311         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30312         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30313         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30314         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30315         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30316         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30318         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30319         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30320         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30321         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30322         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30323         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30324         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30325         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30326         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30327         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30328         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30329         * tests/uniwidth/test-u8-width.c: Likewise.
30330         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30331         * tests/uniwidth/test-u16-width.c: Likewise.
30332         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30333         * tests/uniwidth/test-u32-width.c: Likewise.
30334         * tests/uniwidth/test-uc_width.c: Likewise.
30335         * tests/uniwidth/test-uc_width2.c: Likewise.
30336         * modules/acl-tests (Files): Add tests/macros.h.
30337         * modules/areadlink-tests (Files): Likewise.
30338         * modules/areadlink-with-size-tests (Files): Likewise.
30339         * modules/areadlinkat-tests (Files): Likewise.
30340         * modules/areadlinkat-with-size-tests (Files): Likewise.
30341         * modules/argmatch-tests (Files): Likewise.
30342         * modules/argv-iter-tests (Files): Likewise.
30343         * modules/array-list-tests (Files): Likewise.
30344         * modules/array-mergesort-tests (Files): Likewise.
30345         * modules/array-oset-tests (Files): Likewise.
30346         * modules/avltree-list-tests (Files): Likewise.
30347         * modules/avltree-oset-tests (Files): Likewise.
30348         * modules/avltreehash-list-tests (Files): Likewise.
30349         * modules/base64-tests (Files): Likewise.
30350         * modules/binary-io-tests (Files): Likewise.
30351         * modules/bitrotate-tests (Files): Likewise.
30352         * modules/btowc-tests (Files): Likewise.
30353         * modules/byteswap-tests (Files): Likewise.
30354         * modules/c-ctype-tests (Files): Likewise.
30355         * modules/c-stack-tests (Files): Likewise.
30356         * modules/c-strcase-tests (Files): Likewise.
30357         * modules/c-strcasestr-tests (Files): Likewise.
30358         * modules/c-strstr-tests (Files): Likewise.
30359         * modules/canonicalize-lgpl-tests (Files): Likewise.
30360         * modules/canonicalize-tests (Files): Likewise.
30361         * modules/carray-list-tests (Files): Likewise.
30362         * modules/ceilf-tests (Files): Likewise.
30363         * modules/ceill-tests (Files): Likewise.
30364         * modules/chown-tests (Files): Likewise.
30365         * modules/cloexec-tests (Files): Likewise.
30366         * modules/copy-file-tests (Files): Likewise.
30367         * modules/count-one-bits-tests (Files): Likewise.
30368         * modules/dprintf-posix-tests (Files): Likewise.
30369         * modules/dup2-tests (Files): Likewise.
30370         * modules/dup3-tests (Files): Likewise.
30371         * modules/duplocale-tests (Files): Likewise.
30372         * modules/fbufmode-tests (Files): Likewise.
30373         * modules/fchdir-tests (Files): Likewise.
30374         * modules/fcntl-safer-tests (Files): Likewise.
30375         * modules/fcntl-tests (Files): Likewise.
30376         * modules/fdopendir-tests (Files): Likewise.
30377         * modules/fdutimensat-tests (Files): Likewise.
30378         * modules/fflush-tests (Files): Likewise.
30379         * modules/filevercmp-tests (Files): Likewise.
30380         * modules/flock-tests (Files): Likewise.
30381         * modules/floorf-tests (Files): Likewise.
30382         * modules/floorl-tests (Files): Likewise.
30383         * modules/fnmatch-tests (Files): Likewise.
30384         * modules/fopen-safer-tests (Files): Likewise.
30385         * modules/fopen-tests (Files): Likewise.
30386         * modules/fpending-tests (Files): Likewise.
30387         * modules/fprintf-posix-tests (Files): Likewise.
30388         * modules/fpurge-tests (Files): Likewise.
30389         * modules/freadable-tests (Files): Likewise.
30390         * modules/freadahead-tests (Files): Likewise.
30391         * modules/freading-tests (Files): Likewise.
30392         * modules/freadptr-tests (Files): Likewise.
30393         * modules/freadseek-tests (Files): Likewise.
30394         * modules/freopen-tests (Files): Likewise.
30395         * modules/frexp-nolibm-tests (Files): Likewise.
30396         * modules/frexp-tests (Files): Likewise.
30397         * modules/frexpl-nolibm-tests (Files): Likewise.
30398         * modules/frexpl-tests (Files): Likewise.
30399         * modules/fseek-tests (Files): Likewise.
30400         * modules/fseeko-tests (Files): Likewise.
30401         * modules/fstrcmp-tests (Files): Likewise.
30402         * modules/fsync-tests (Files): Likewise.
30403         * modules/ftell-tests (Files): Likewise.
30404         * modules/ftello-tests (Files): Likewise.
30405         * modules/func-tests (Files): Likewise.
30406         * modules/futimens-tests (Files): Likewise.
30407         * modules/fwritable-tests (Files): Likewise.
30408         * modules/fwriting-tests (Files): Likewise.
30409         * modules/getcwd-tests (Files): Likewise.
30410         * modules/getdate-tests (Files): Likewise.
30411         * modules/getdelim-tests (Files): Likewise.
30412         * modules/getdtablesize-tests (Files): Likewise.
30413         * modules/getgroups-tests (Files): Likewise.
30414         * modules/getline-tests (Files): Likewise.
30415         * modules/getndelim2-tests (Files): Likewise.
30416         * modules/glob-tests (Files): Likewise.
30417         * modules/hash-tests (Files): Likewise.
30418         * modules/i-ring-tests (Files): Likewise.
30419         * modules/iconv-tests (Files): Likewise.
30420         * modules/iconv_open-utf-tests (Files): Likewise.
30421         * modules/idpriv-drop-tests (Files): Likewise.
30422         * modules/idpriv-droptemp-tests (Files): Likewise.
30423         * modules/inet_ntop-tests (Files): Likewise.
30424         * modules/inet_pton-tests (Files): Likewise.
30425         * modules/isblank-tests (Files): Likewise.
30426         * modules/isfinite-tests (Files): Likewise.
30427         * modules/isinf-tests (Files): Likewise.
30428         * modules/isnan-tests (Files): Likewise.
30429         * modules/isnand-nolibm-tests (Files): Likewise.
30430         * modules/isnand-tests (Files): Likewise.
30431         * modules/isnanf-nolibm-tests (Files): Likewise.
30432         * modules/isnanf-tests (Files): Likewise.
30433         * modules/isnanl-nolibm-tests (Files): Likewise.
30434         * modules/isnanl-tests (Files): Likewise.
30435         * modules/lchown-tests (Files): Likewise.
30436         * modules/ldexpl-tests (Files): Likewise.
30437         * modules/link-tests (Files): Likewise.
30438         * modules/linkat-tests (Files): Likewise.
30439         * modules/linked-list-tests (Files): Likewise.
30440         * modules/linkedhash-list-tests (Files): Likewise.
30441         * modules/localename-tests (Files): Likewise.
30442         * modules/lseek-tests (Files): Likewise.
30443         * modules/lstat-tests (Files): Likewise.
30444         * modules/mbmemcasecmp-tests (Files): Likewise.
30445         * modules/mbmemcasecoll-tests (Files): Likewise.
30446         * modules/mbrtowc-tests (Files): Likewise.
30447         * modules/mbscasecmp-tests (Files): Likewise.
30448         * modules/mbscasestr-tests (Files): Likewise.
30449         * modules/mbschr-tests (Files): Likewise.
30450         * modules/mbscspn-tests (Files): Likewise.
30451         * modules/mbsinit-tests (Files): Likewise.
30452         * modules/mbsncasecmp-tests (Files): Likewise.
30453         * modules/mbsnrtowcs-tests (Files): Likewise.
30454         * modules/mbspbrk-tests (Files): Likewise.
30455         * modules/mbspcasecmp-tests (Files): Likewise.
30456         * modules/mbsrchr-tests (Files): Likewise.
30457         * modules/mbsrtowcs-tests (Files): Likewise.
30458         * modules/mbsspn-tests (Files): Likewise.
30459         * modules/mbsstr-tests (Files): Likewise.
30460         * modules/memchr-tests (Files): Likewise.
30461         * modules/memchr2-tests (Files): Likewise.
30462         * modules/memcmp-tests (Files): Likewise.
30463         * modules/memmem-tests (Files): Likewise.
30464         * modules/memrchr-tests (Files): Likewise.
30465         * modules/mkdir-tests (Files): Likewise.
30466         * modules/mkfifo-tests (Files): Likewise.
30467         * modules/mkfifoat-tests (Files): Likewise.
30468         * modules/mknod-tests (Files): Likewise.
30469         * modules/nanosleep-tests (Files): Likewise.
30470         * modules/nl_langinfo-tests (Files): Likewise.
30471         * modules/obstack-printf-tests (Files): Likewise.
30472         * modules/open-tests (Files): Likewise.
30473         * modules/openat-tests (Files): Likewise.
30474         * modules/pipe-filter-gi-tests (Files): Likewise.
30475         * modules/pipe-filter-ii-tests (Files): Likewise.
30476         * modules/pipe2-tests (Files): Likewise.
30477         * modules/popen-safer-tests (Files): Likewise.
30478         * modules/popen-tests (Files): Likewise.
30479         * modules/posixtm-tests (Files): Likewise.
30480         * modules/pread-tests (Files): Likewise.
30481         * modules/printf-frexp-tests (Files): Likewise.
30482         * modules/printf-frexpl-tests (Files): Likewise.
30483         * modules/printf-posix-tests (Files): Likewise.
30484         * modules/priv-set-tests (Files): Likewise.
30485         * modules/quotearg-tests (Files): Likewise.
30486         * modules/random_r-tests (Files): Likewise.
30487         * modules/rawmemchr-tests (Files): Likewise.
30488         * modules/rbtree-list-tests (Files): Likewise.
30489         * modules/rbtree-oset-tests (Files): Likewise.
30490         * modules/rbtreehash-list-tests (Files): Likewise.
30491         * modules/readlink-tests (Files): Likewise.
30492         * modules/remove-tests (Files): Likewise.
30493         * modules/rename-tests (Files): Likewise.
30494         * modules/renameat-tests (Files): Likewise.
30495         * modules/rmdir-tests (Files): Likewise.
30496         * modules/round-tests (Files): Likewise.
30497         * modules/roundf-tests (Files): Likewise.
30498         * modules/roundl-tests (Files): Likewise.
30499         * modules/safe-alloc-tests (Files): Likewise.
30500         * modules/setenv-tests (Files): Likewise.
30501         * modules/sigaction-tests (Files): Likewise.
30502         * modules/signbit-tests (Files): Likewise.
30503         * modules/sleep-tests (Files): Likewise.
30504         * modules/snprintf-posix-tests (Files): Likewise.
30505         * modules/snprintf-tests (Files): Likewise.
30506         * modules/sprintf-posix-tests (Files): Likewise.
30507         * modules/stat-tests (Files): Likewise.
30508         * modules/stat-time-tests (Files): Likewise.
30509         * modules/strcasestr-tests (Files): Likewise.
30510         * modules/strchrnul-tests (Files): Likewise.
30511         * modules/strerror-tests (Files): Likewise.
30512         * modules/striconv-tests (Files): Likewise.
30513         * modules/striconveh-tests (Files): Likewise.
30514         * modules/striconveha-tests (Files): Likewise.
30515         * modules/strsignal-tests (Files): Likewise.
30516         * modules/strstr-tests (Files): Likewise.
30517         * modules/strtod-tests (Files): Likewise.
30518         * modules/strverscmp-tests (Files): Likewise.
30519         * modules/symlink-tests (Files): Likewise.
30520         * modules/symlinkat-tests (Files): Likewise.
30521         * modules/trunc-tests (Files): Likewise.
30522         * modules/truncf-tests (Files): Likewise.
30523         * modules/truncl-tests (Files): Likewise.
30524         * modules/uname-tests (Files): Likewise.
30525         * modules/unicase/cased-tests (Files): Likewise.
30526         * modules/unicase/ignorable-tests (Files): Likewise.
30527         * modules/unicase/locale-language-tests (Files): Likewise.
30528         * modules/unicase/tolower-tests (Files): Likewise.
30529         * modules/unicase/totitle-tests (Files): Likewise.
30530         * modules/unicase/toupper-tests (Files): Likewise.
30531         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30532         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30533         * modules/unicase/u8-casefold-tests (Files): Likewise.
30534         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30535         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30536         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30537         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30538         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30539         * modules/unicase/u8-tolower-tests (Files): Likewise.
30540         * modules/unicase/u8-totitle-tests (Files): Likewise.
30541         * modules/unicase/u8-toupper-tests (Files): Likewise.
30542         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30543         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30544         * modules/unicase/u16-casefold-tests (Files): Likewise.
30545         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30546         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30547         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30548         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30549         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30550         * modules/unicase/u16-tolower-tests (Files): Likewise.
30551         * modules/unicase/u16-totitle-tests (Files): Likewise.
30552         * modules/unicase/u16-toupper-tests (Files): Likewise.
30553         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30554         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30555         * modules/unicase/u32-casefold-tests (Files): Likewise.
30556         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30557         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30558         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30559         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30560         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30561         * modules/unicase/u32-tolower-tests (Files): Likewise.
30562         * modules/unicase/u32-totitle-tests (Files): Likewise.
30563         * modules/unicase/u32-toupper-tests (Files): Likewise.
30564         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30565         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30566         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30567         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30568         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30569         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30570         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30571         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30572         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30573         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30574         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30575         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30576         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30577         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30578         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30579         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30580         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30581         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30582         * modules/unictype/block-list-tests (Files): Likewise.
30583         * modules/unictype/block-of-tests (Files): Likewise.
30584         * modules/unictype/block-test-tests (Files): Likewise.
30585         * modules/unictype/category-C-tests (Files): Likewise.
30586         * modules/unictype/category-Cc-tests (Files): Likewise.
30587         * modules/unictype/category-Cf-tests (Files): Likewise.
30588         * modules/unictype/category-Cn-tests (Files): Likewise.
30589         * modules/unictype/category-Co-tests (Files): Likewise.
30590         * modules/unictype/category-Cs-tests (Files): Likewise.
30591         * modules/unictype/category-L-tests (Files): Likewise.
30592         * modules/unictype/category-Ll-tests (Files): Likewise.
30593         * modules/unictype/category-Lm-tests (Files): Likewise.
30594         * modules/unictype/category-Lo-tests (Files): Likewise.
30595         * modules/unictype/category-Lt-tests (Files): Likewise.
30596         * modules/unictype/category-Lu-tests (Files): Likewise.
30597         * modules/unictype/category-M-tests (Files): Likewise.
30598         * modules/unictype/category-Mc-tests (Files): Likewise.
30599         * modules/unictype/category-Me-tests (Files): Likewise.
30600         * modules/unictype/category-Mn-tests (Files): Likewise.
30601         * modules/unictype/category-N-tests (Files): Likewise.
30602         * modules/unictype/category-Nd-tests (Files): Likewise.
30603         * modules/unictype/category-Nl-tests (Files): Likewise.
30604         * modules/unictype/category-No-tests (Files): Likewise.
30605         * modules/unictype/category-P-tests (Files): Likewise.
30606         * modules/unictype/category-Pc-tests (Files): Likewise.
30607         * modules/unictype/category-Pd-tests (Files): Likewise.
30608         * modules/unictype/category-Pe-tests (Files): Likewise.
30609         * modules/unictype/category-Pf-tests (Files): Likewise.
30610         * modules/unictype/category-Pi-tests (Files): Likewise.
30611         * modules/unictype/category-Po-tests (Files): Likewise.
30612         * modules/unictype/category-Ps-tests (Files): Likewise.
30613         * modules/unictype/category-S-tests (Files): Likewise.
30614         * modules/unictype/category-Sc-tests (Files): Likewise.
30615         * modules/unictype/category-Sk-tests (Files): Likewise.
30616         * modules/unictype/category-Sm-tests (Files): Likewise.
30617         * modules/unictype/category-So-tests (Files): Likewise.
30618         * modules/unictype/category-Z-tests (Files): Likewise.
30619         * modules/unictype/category-Zl-tests (Files): Likewise.
30620         * modules/unictype/category-Zp-tests (Files): Likewise.
30621         * modules/unictype/category-Zs-tests (Files): Likewise.
30622         * modules/unictype/category-and-not-tests (Files): Likewise.
30623         * modules/unictype/category-and-tests (Files): Likewise.
30624         * modules/unictype/category-byname-tests (Files): Likewise.
30625         * modules/unictype/category-name-tests (Files): Likewise.
30626         * modules/unictype/category-none-tests (Files): Likewise.
30627         * modules/unictype/category-of-tests (Files): Likewise.
30628         * modules/unictype/category-or-tests (Files): Likewise.
30629         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30630         * modules/unictype/combining-class-tests (Files): Likewise.
30631         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30632         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30633         * modules/unictype/ctype-blank-tests (Files): Likewise.
30634         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30635         * modules/unictype/ctype-digit-tests (Files): Likewise.
30636         * modules/unictype/ctype-graph-tests (Files): Likewise.
30637         * modules/unictype/ctype-lower-tests (Files): Likewise.
30638         * modules/unictype/ctype-print-tests (Files): Likewise.
30639         * modules/unictype/ctype-punct-tests (Files): Likewise.
30640         * modules/unictype/ctype-space-tests (Files): Likewise.
30641         * modules/unictype/ctype-upper-tests (Files): Likewise.
30642         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30643         * modules/unictype/decimal-digit-tests (Files): Likewise.
30644         * modules/unictype/digit-tests (Files): Likewise.
30645         * modules/unictype/mirror-tests (Files): Likewise.
30646         * modules/unictype/numeric-tests (Files): Likewise.
30647         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30648         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30649         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30650         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30651         Likewise.
30652         * modules/unictype/property-bidi-block-separator-tests (Files):
30653         Likewise.
30654         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30655         Likewise.
30656         * modules/unictype/property-bidi-common-separator-tests (Files):
30657         Likewise.
30658         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30659         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30660         Likewise.
30661         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30662         Likewise.
30663         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30664         Likewise.
30665         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30666         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30667         Likewise.
30668         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30669         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30670         Likewise.
30671         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30672         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30673         * modules/unictype/property-bidi-segment-separator-tests (Files):
30674         Likewise.
30675         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30676         * modules/unictype/property-byname-tests (Files): Likewise.
30677         * modules/unictype/property-combining-tests (Files): Likewise.
30678         * modules/unictype/property-composite-tests (Files): Likewise.
30679         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30680         * modules/unictype/property-dash-tests (Files): Likewise.
30681         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30682         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30683         Likewise.
30684         * modules/unictype/property-deprecated-tests (Files): Likewise.
30685         * modules/unictype/property-diacritic-tests (Files): Likewise.
30686         * modules/unictype/property-extender-tests (Files): Likewise.
30687         * modules/unictype/property-format-control-tests (Files): Likewise.
30688         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30689         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30690         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30691         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30692         * modules/unictype/property-hyphen-tests (Files): Likewise.
30693         * modules/unictype/property-id-continue-tests (Files): Likewise.
30694         * modules/unictype/property-id-start-tests (Files): Likewise.
30695         * modules/unictype/property-ideographic-tests (Files): Likewise.
30696         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30697         * modules/unictype/property-ids-trinary-operator-tests (Files):
30698         Likewise.
30699         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30700         * modules/unictype/property-iso-control-tests (Files): Likewise.
30701         * modules/unictype/property-join-control-tests (Files): Likewise.
30702         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30703         * modules/unictype/property-line-separator-tests (Files): Likewise.
30704         * modules/unictype/property-logical-order-exception-tests (Files):
30705         Likewise.
30706         * modules/unictype/property-lowercase-tests (Files): Likewise.
30707         * modules/unictype/property-math-tests (Files): Likewise.
30708         * modules/unictype/property-non-break-tests (Files): Likewise.
30709         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30710         * modules/unictype/property-numeric-tests (Files): Likewise.
30711         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30712         * modules/unictype/property-other-default-ignorable-code-point-tests
30713         (Files): Likewise.
30714         * modules/unictype/property-other-grapheme-extend-tests (Files):
30715         Likewise.
30716         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30717         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30718         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30719         * modules/unictype/property-other-math-tests (Files): Likewise.
30720         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30721         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30722         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30723         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30724         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30725         * modules/unictype/property-private-use-tests (Files): Likewise.
30726         * modules/unictype/property-punctuation-tests (Files): Likewise.
30727         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30728         * modules/unictype/property-radical-tests (Files): Likewise.
30729         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30730         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30731         * modules/unictype/property-space-tests (Files): Likewise.
30732         * modules/unictype/property-terminal-punctuation-tests (Files):
30733         Likewise.
30734         * modules/unictype/property-test-tests (Files): Likewise.
30735         * modules/unictype/property-titlecase-tests (Files): Likewise.
30736         * modules/unictype/property-unassigned-code-value-tests (Files):
30737         Likewise.
30738         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30739         * modules/unictype/property-uppercase-tests (Files): Likewise.
30740         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30741         * modules/unictype/property-white-space-tests (Files): Likewise.
30742         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30743         * modules/unictype/property-xid-start-tests (Files): Likewise.
30744         * modules/unictype/property-zero-width-tests (Files): Likewise.
30745         * modules/unictype/scripts-tests (Files): Likewise.
30746         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30747         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30748         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30749         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30750         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30751         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30752         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30753         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30754         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30755         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30756         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30757         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30758         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30759         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30760         * modules/uninorm/composition-tests (Files): Likewise.
30761         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30762         * modules/uninorm/decomposition-tests (Files): Likewise.
30763         * modules/uninorm/filter-tests (Files): Likewise.
30764         * modules/uninorm/nfc-tests (Files): Likewise.
30765         * modules/uninorm/nfd-tests (Files): Likewise.
30766         * modules/uninorm/nfkc-tests (Files): Likewise.
30767         * modules/uninorm/nfkd-tests (Files): Likewise.
30768         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30769         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30770         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30771         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30772         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30773         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30774         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30775         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30776         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30777         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30778         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30779         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30780         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30781         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30782         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30783         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30784         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30785         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30786         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30787         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30788         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30789         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30790         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30791         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30792         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30793         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30794         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30795         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30796         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30797         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30798         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30799         * modules/uniwidth/u8-width-tests (Files): Likewise.
30800         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30801         * modules/uniwidth/u16-width-tests (Files): Likewise.
30802         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30803         * modules/uniwidth/u32-width-tests (Files): Likewise.
30804         * modules/uniwidth/width-tests (Files): Likewise.
30805         * modules/unlink-tests (Files): Likewise.
30806         * modules/unsetenv-tests (Files): Likewise.
30807         * modules/usleep-tests (Files): Likewise.
30808         * modules/utimens-tests (Files): Likewise.
30809         * modules/utimensat-tests (Files): Likewise.
30810         * modules/vasnprintf-posix-tests (Files): Likewise.
30811         * modules/vasnprintf-tests (Files): Likewise.
30812         * modules/vasprintf-posix-tests (Files): Likewise.
30813         * modules/vasprintf-tests (Files): Likewise.
30814         * modules/vdprintf-posix-tests (Files): Likewise.
30815         * modules/vfprintf-posix-tests (Files): Likewise.
30816         * modules/vprintf-posix-tests (Files): Likewise.
30817         * modules/vsnprintf-posix-tests (Files): Likewise.
30818         * modules/vsnprintf-tests (Files): Likewise.
30819         * modules/vsprintf-posix-tests (Files): Likewise.
30820         * modules/wcrtomb-tests (Files): Likewise.
30821         * modules/wcsnrtombs-tests (Files): Likewise.
30822         * modules/wcsrtombs-tests (Files): Likewise.
30823         * modules/wctype-tests (Files): Likewise.
30824         * modules/wcwidth-tests (Files): Likewise.
30825         * modules/xmemdup0-tests (Files): Likewise.
30826         * modules/xprintf-posix-tests (Files): Likewise.
30827         * modules/xvasprintf-tests (Files): Likewise.
30828
30829 2009-12-24  Eric Blake  <ebb9@byu.net>
30830
30831         test-nanosleep: fix typo
30832         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30833         patch.
30834         Reported by Bruno Haible.
30835
30836 2009-12-24  Bruno Haible  <bruno@clisp.org>
30837
30838         Reduce namespace pollution on glibc systems.
30839         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30840         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30841         systems.
30842         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30843         <getopt.h> on glibc systems.
30844         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30845         systems.
30846         * lib/fcntl.c: Include <unistd.h> here instead.
30847
30848 2009-12-24  Bruno Haible  <bruno@clisp.org>
30849
30850         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30851
30852 2009-12-24  Eric Blake  <ebb9@byu.net>
30853
30854         tests: add signature checks
30855         * tests/signature.h (SIGNATURE_CHECK): New file.
30856         * modules/atexit-tests (Files): Use it.
30857         * modules/btowc-tests (Files): Likewise.
30858         * modules/canonicalize-lgpl-tests (Files): Likewise.
30859         * modules/ceilf-tests (Files): Likewise.
30860         * modules/ceill-tests (Files): Likewise.
30861         * modules/chown-tests (Files): Likewise.
30862         * modules/dprintf-posix-tests (Files): Likewise.
30863         * modules/dup2-tests (Files): Likewise.
30864         * modules/dup3-tests (Files): Likewise.
30865         * modules/duplocale-tests (Files): Likewise.
30866         * modules/fchdir-tests (Files): Likewise.
30867         * modules/fcntl-tests (Files): Likewise.
30868         * modules/fdopendir-tests (Files): Likewise.
30869         * modules/fflush-tests (Files): Likewise.
30870         * modules/flock-tests (Files): Likewise.
30871         * modules/floorf-tests (Files): Likewise.
30872         * modules/floorl-tests (Files): Likewise.
30873         * modules/fnmatch-tests (Files): Likewise.
30874         * modules/fopen-tests (Files): Likewise.
30875         * modules/fprintf-posix-tests (Files): Likewise.
30876         * modules/freopen-tests (Files): Likewise.
30877         * modules/frexp-nolibm-tests (Files): Likewise.
30878         * modules/frexp-tests (Files): Likewise.
30879         * modules/frexpl-nolibm-tests (Files): Likewise.
30880         * modules/frexpl-tests (Files): Likewise.
30881         * modules/fseek-tests (Files): Likewise.
30882         * modules/fseeko-tests (Files): Likewise.
30883         * modules/fsync-tests (Files): Likewise.
30884         * modules/ftell-tests (Files): Likewise.
30885         * modules/ftello-tests (Files): Likewise.
30886         * modules/futimens-tests (Files): Likewise.
30887         * modules/getaddrinfo-tests (Files): Likewise.
30888         * modules/getcwd-tests (Files): Likewise.
30889         * modules/getdelim-tests (Files): Likewise.
30890         * modules/getdtablesize-tests (Files): Likewise.
30891         * modules/getgroups-tests (Files): Likewise.
30892         * modules/gethostname-tests (Files): Likewise.
30893         * modules/getline-tests (Files): Likewise.
30894         * modules/getopt-posix-tests (Files): Likewise.
30895         * modules/gettimeofday-tests (Files): Likewise.
30896         * modules/glob-tests (Files): Likewise.
30897         * modules/iconv-tests (Files): Likewise.
30898         * modules/inet_ntop-tests (Files): Likewise.
30899         * modules/inet_pton-tests (Files): Likewise.
30900         * modules/isblank-tests (Files): Likewise.
30901         * modules/lchown-tests (Files): Likewise.
30902         * modules/ldexpl-tests (Files): Likewise.
30903         * modules/link-tests (Files): Likewise.
30904         * modules/linkat-tests (Files): Likewise.
30905         * modules/lseek-tests (Files): Likewise.
30906         * modules/lstat-tests (Files): Likewise.
30907         * modules/mbrtowc-tests (Files): Likewise.
30908         * modules/mbsinit-tests (Files): Likewise.
30909         * modules/mbsnrtowcs-tests (Files): Likewise.
30910         * modules/mbsrtowcs-tests (Files): Likewise.
30911         * modules/memchr-tests (Files): Likewise.
30912         * modules/memcmp-tests (Files): Likewise.
30913         * modules/memmem-tests (Files): Likewise.
30914         * modules/memrchr-tests (Files): Likewise.
30915         * modules/mkdir-tests (Files): Likewise.
30916         * modules/mkfifo-tests (Files): Likewise.
30917         * modules/mkfifoat-tests (Files): Likewise.
30918         * modules/mknod-tests (Files): Likewise.
30919         * modules/nanosleep-tests (Files): Likewise.
30920         * modules/nl_langinfo-tests (Files): Likewise.
30921         * modules/obstack-printf-tests (Files): Likewise.
30922         * modules/open-tests (Files): Likewise.
30923         * modules/openat-tests (Files): Likewise.
30924         * modules/perror-tests (Files): Likewise.
30925         * modules/pipe2-tests (Files): Likewise.
30926         * modules/poll-tests (Files): Likewise.
30927         * modules/popen-tests (Files): Likewise.
30928         * modules/posix_spawn-tests (Files): Likewise.
30929         * modules/posix_spawnp-tests (Files): Likewise.
30930         * modules/pread-tests (Files): Likewise.
30931         * modules/printf-posix-tests (Files): Likewise.
30932         * modules/pty-tests (Files): Likewise.
30933         * modules/random_r-tests (Files): Likewise.
30934         * modules/rawmemchr-tests (Files): Likewise.
30935         * modules/readlink-tests (Files): Likewise.
30936         * modules/remove-tests (Files): Likewise.
30937         * modules/rename-tests (Files): Likewise.
30938         * modules/renameat-tests (Files): Likewise.
30939         * modules/rmdir-tests (Files): Likewise.
30940         * modules/round-tests (Files): Likewise.
30941         * modules/roundf-tests (Files): Likewise.
30942         * modules/roundl-tests (Files): Likewise.
30943         * modules/select-tests (Files): Likewise.
30944         * modules/setenv-tests (Files): Likewise.
30945         * modules/sigaction-tests (Files): Likewise.
30946         * modules/sleep-tests (Files): Likewise.
30947         * modules/snprintf-posix-tests (Files): Likewise.
30948         * modules/snprintf-tests (Files): Likewise.
30949         * modules/sprintf-posix-tests (Files): Likewise.
30950         * modules/stat-tests (Files): Likewise.
30951         * modules/strcasestr-tests (Files): Likewise.
30952         * modules/strchrnul-tests (Files): Likewise.
30953         * modules/strerror-tests (Files): Likewise.
30954         * modules/strsignal-tests (Files): Likewise.
30955         * modules/strstr-tests (Files): Likewise.
30956         * modules/strtod-tests (Files): Likewise.
30957         * modules/strverscmp-tests (Files): Likewise.
30958         * modules/symlink-tests (Files): Likewise.
30959         * modules/symlinkat-tests (Files): Likewise.
30960         * modules/times-tests (Files): Likewise.
30961         * modules/trunc-tests (Files): Likewise.
30962         * modules/truncf-tests (Files): Likewise.
30963         * modules/truncl-tests (Files): Likewise.
30964         * modules/tsearch-tests (Files): Likewise.
30965         * modules/uname-tests (Files): Likewise.
30966         * modules/unlink-tests (Files): Likewise.
30967         * modules/unsetenv-tests (Files): Likewise.
30968         * modules/usleep-tests (Files): Likewise.
30969         * modules/utimensat-tests (Files): Likewise.
30970         * modules/vasprintf-tests (Files): Likewise.
30971         * modules/vdprintf-posix-tests (Files): Likewise.
30972         * modules/vfprintf-posix-tests (Files): Likewise.
30973         * modules/vprintf-posix-tests (Files): Likewise.
30974         * modules/vsnprintf-posix-tests (Files): Likewise.
30975         * modules/vsnprintf-tests (Files): Likewise.
30976         * modules/vsprintf-posix-tests (Files): Likewise.
30977         * modules/wcrtomb-tests (Files): Likewise.
30978         * modules/wcsnrtombs-tests (Files): Likewise.
30979         * modules/wcsrtombs-tests (Files): Likewise.
30980         * modules/wcwidth-tests (Files): Likewise.
30981         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30982         * tests/test-isinf.c (isinf): Likewise.
30983         * tests/test-isnan.c (isnan): Likewise.
30984         * tests/test-signbit.c (signbit): Likewise.
30985         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30986         declaration, either as macro or with correct signature.
30987         (select): Ensure function under test is declared with correct
30988         signature in correct header.
30989         * tests/test-atexit.c (atexit): Likewise.
30990         * tests/test-btowc.c (btowc): Likewise.
30991         * tests/test-canonicalize-lgpl.c (realpath)
30992         (canonicalize_file_name): Likewise.
30993         * tests/test-ceilf1.c (ceilf): Likewise.
30994         * tests/test-ceill.c (ceill): Likewise.
30995         * tests/test-chown.c (chown): Likewise.
30996         * tests/test-dprintf-posix.c (dprintf): Likewise.
30997         * tests/test-dup2.c (dup2): Likewise.
30998         * tests/test-dup3.c (dup3): Likewise.
30999         * tests/test-duplocale.c (duplocale): Likewise.
31000         * tests/test-fchdir.c (fchdir): Likewise.
31001         * tests/test-fchownat.c (fchownat): Likewise.
31002         * tests/test-fcntl.c (fcntl): Likewise.
31003         * tests/test-fdopendir.c (fdopendir): Likewise.
31004         * tests/test-fflush.c (fflush): Likewise.
31005         * tests/test-flock.c (flock): Likewise.
31006         * tests/test-floorf1.c (floorf): Likewise.
31007         * tests/test-floorl.c (floorl): Likewise.
31008         * tests/test-fnmatch.c (fnmatch): Likewise.
31009         * tests/test-fopen.c (fopen): Likewise.
31010         * tests/test-fprintf-posix.c (fprintf): Likewise.
31011         * tests/test-freopen.c (freopen): Likewise.
31012         * tests/test-frexp.c (frexp): Likewise.
31013         * tests/test-frexpl.c (frexpl): Likewise.
31014         * tests/test-fseek.c (fseek): Likewise.
31015         * tests/test-fseeko.c (fseeko): Likewise.
31016         * tests/test-fstatat.c (fstatat): Likewise.
31017         * tests/test-fsync.c (fsync): Likewise.
31018         * tests/test-ftell.c (ftell): Likewise.
31019         * tests/test-ftello.c (ftello): Likewise.
31020         * tests/test-futimens.c (futimens): Likewise.
31021         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31022         (gai_strerror): Likewise.
31023         * tests/test-getcwd.c (getcwd): Likewise.
31024         * tests/test-getdelim.c (getdelim): Likewise.
31025         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31026         * tests/test-getgroups.c (getgroups): Likewise.
31027         * tests/test-gethostname.c (gethostname): Likewise.
31028         * tests/test-getline.c (getline): Likewise.
31029         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31030         Likewise.
31031         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31032         * tests/test-glob.c (glob, globfree): Likewise.
31033         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31034         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31035         * tests/test-inet_pton.c (inet_pton): Likewise.
31036         * tests/test-isblank.c (isblank): Likewise.
31037         * tests/test-lchown.c (lchown): Likewise.
31038         * tests/test-ldexpl.c (ldexpl): Likewise.
31039         * tests/test-link.c (link): Likewise.
31040         * tests/test-linkat.c (linkat): Likewise.
31041         * tests/test-lseek.c (lseek): Likewise.
31042         * tests/test-lstat.c (lstat): Likewise.
31043         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31044         * tests/test-mbsinit.c (mbsinit): Likewise.
31045         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31046         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31047         * tests/test-memchr.c (memchr): Likewise.
31048         * tests/test-memcmp.c (memcmp): Likewise.
31049         * tests/test-memmem.c (memmem): Likewise.
31050         * tests/test-memrchr.c (memrchr): Likewise.
31051         * tests/test-mkdir.c (mkdir): Likewise.
31052         * tests/test-mkdirat.c (mkdirat): Likewise.
31053         * tests/test-mkfifo.c (mkfifo): Likewise.
31054         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31055         * tests/test-mknod.c (mknod): Likewise.
31056         * tests/test-nanosleep.c (nanosleep): Likewise.
31057         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31058         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31059         Likewise.
31060         * tests/test-open.c (open): Likewise.
31061         * tests/test-openat.c (openat): Likewise.
31062         * tests/test-perror.c (perror): Likewise.
31063         * tests/test-pipe2.c (pipe2): Likewise.
31064         * tests/test-poll.c (poll): Likewise.
31065         * tests/test-popen.c (popen, pclose): Likewise.
31066         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31067         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31068         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31069         (posix_spawn_file_actions_destroy)
31070         (posix_spawn_file_actions_addclose)
31071         (posix_spawn_file_actions_addopen)
31072         (posix_spawn_file_actions_adddup2): Likewise.
31073         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31074         * tests/test-pread.c (pread): Likewise.
31075         * tests/test-printf-posix.c (printf): Likewise.
31076         * tests/test-pty.c (openpty, forkpty): Likewise.
31077         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31078         (random_r): Likewise.
31079         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31080         * tests/test-readlink.c (readlink): Likewise.
31081         * tests/test-remove.c (remove): Likewise.
31082         * tests/test-rename.c (rename): Likewise.
31083         * tests/test-renameat.c (renameat): Likewise.
31084         * tests/test-rmdir.c (rmdir): Likewise.
31085         * tests/test-round1.c (round): Likewise.
31086         * tests/test-roundf1.c (roundf): Likewise.
31087         * tests/test-roundl.c (roundl): Likewise.
31088         * tests/test-setenv.c (setenv): Likewise.
31089         * tests/test-sigaction.c (sigaction): Likewise.
31090         * tests/test-sleep.c (sleep): Likewise.
31091         * tests/test-snprintf.c (snprintf): Likewise.
31092         * tests/test-sprintf-posix.c (sprintf): Likewise.
31093         * tests/test-stat.c (stat): Likewise.
31094         * tests/test-stpncpy.c (stpncpy): Likewise.
31095         * tests/test-strcasestr.c (strcasestr): Likewise.
31096         * tests/test-strchrnul.c (strchrnul): Likewise.
31097         * tests/test-strerror.c (strerror): Likewise.
31098         * tests/test-strsignal.c (strsignal): Likewise.
31099         * tests/test-strstr.c (strstr): Likewise.
31100         * tests/test-strtod.c (strtod): Likewise.
31101         * tests/test-strverscmp.c (strverscmp): Likewise.
31102         * tests/test-symlink.c (symlink): Likewise.
31103         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31104         * tests/test-times.c (times): Likewise.
31105         * tests/test-trunc1.c (trunc): Likewise.
31106         * tests/test-truncf1.c (truncf): Likewise.
31107         * tests/test-truncl.c (truncl): Likewise.
31108         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31109         Likewise.
31110         * tests/test-uname.c (uname): Likewise.
31111         * tests/test-unlink.c (unlink): Likewise.
31112         * tests/test-unlinkat.c (unlinkat): Likewise.
31113         * tests/test-unsetenv.c (unsetenv): Likewise.
31114         * tests/test-usleep.c (usleep): Likewise.
31115         * tests/test-utimensat.c (utimensat): Likewise.
31116         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31117         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31118         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31119         * tests/test-vprintf-posix.c (vprintf): Likewise.
31120         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31121         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31122         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31123         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31124         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31125         * tests/test-wcwidth.c (wcwidth): Likewise.
31126
31127         build: pull in conditional headers during GNULIB_POSIXCHECK
31128         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31129         definitions from any conditionally-included headers.
31130         * lib/stdlib.in.h (includes): Likewise.
31131         * lib/unistd.in.h (includes): Likewise.
31132
31133 2009-12-24  Bruno Haible  <bruno@clisp.org>
31134
31135         * tests/test-argv-iter.c: Include header file being tested immediately
31136         after config.h.
31137         * tests/test-base64.c: Likewise.
31138         * tests/test-flock.c: Likewise.
31139         * tests/test-fsync.c: Likewise.
31140         * tests/test-getdate.c: Likewise.
31141         * tests/test-getndelim2.c: Likewise.
31142         * tests/test-isfinite.c: Likewise.
31143         * tests/test-isinf.c: Likewise.
31144         * tests/test-strerror.c: Likewise.
31145         * tests/test-strsignal.c: Likewise.
31146
31147 2009-12-23  Eric Blake  <ebb9@byu.net>
31148
31149         unistd: work around cygwin bug
31150         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31151         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31152         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31153
31154 2009-12-23  Bruno Haible  <bruno@clisp.org>
31155
31156         localename: More tests.
31157         * tests/test-localename.c (SIZEOF): New macro.
31158         (categories): New variable.
31159         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31160         test_locale_name_default): Add test w.r.t. thread locale.
31161         (test_locale_name_thread): New function.
31162         (main): Invoke it.
31163
31164         localename: Make aware of thread locale.
31165         * lib/localename.h (gl_locale_name_thread): New declaration.
31166         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31167         behaviour with respect to thread locale.
31168         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31169         <langinfo.h>, glthread/lock.h.
31170         (SIZE_BITS): New macro.
31171         (string_hash): New function.
31172         (struct hash_node): New type.
31173         (HASH_TABLE_SIZE): New macro.
31174         (struniq_hash_table, struniq_lock): New variables.
31175         (struniq): New function.
31176         (gl_locale_name_thread): New function.
31177         (gl_locale_name): Invoke it.
31178         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31179         * modules/localename (Depends-on): Add lock.
31180         Reported by Mike Gran <spk121@yahoo.com>.
31181
31182 2009-12-23  Eric Blake  <ebb9@byu.net>
31183
31184         va-args: new module
31185         * modules/va-args: New file.
31186         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31187         * MODULES.html.sh (Core language properties): Mention it.
31188
31189         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31190         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31191         named alias for __attribute__((__unused__)).
31192         * lib/chown.c: Update client.
31193         * lib/fchmodat.c: Likewise.
31194         * lib/fts.c: Likewise.
31195         * lib/getdate.y: Likewise.
31196         * lib/getgroups.c: Likewise.
31197         * lib/getopt.c: Likewise.
31198         * lib/getugroups.c: Likewise.
31199         * lib/mkdir.c: Likewise.
31200         * lib/mkfifo.c: Likewise.
31201         * lib/mkfifoat.c: Likewise.
31202         * lib/mknod.c: Likewise.
31203         * lib/mknodat.c: Likewise.
31204         * lib/readlink.c: Likewise.
31205         * lib/se-context.in.h: Likewise.
31206         * lib/se-selinux.in.h: Likewise.
31207         * lib/sockets.c: Likewise.
31208         * lib/symlink.c: Likewise.
31209         * lib/symlinkat.c: Likewise.
31210         * lib/unicodeio.c: Likewise.
31211         * lib/unistr.h: Likewise.
31212         * tests/test-areadlink.c: Likewise.
31213         * tests/test-areadlinkat.c: Likewise.
31214         * tests/test-filenamecat.c: Likewise.
31215         * tests/test-fseeko.c: Likewise.
31216         * tests/test-ftello.c: Likewise.
31217         * tests/test-getdate.c: Likewise.
31218         * tests/test-getgroups.c: Likewise.
31219         * tests/test-gethostname.c: Likewise.
31220         * tests/test-quotearg.c: Likewise.
31221         * tests/test-version-etc.c: Likewise.
31222         * tests/test-xalloc-die.c: Likewise.
31223         * tests/test-xfprintf-posix.c: Likewise.
31224         * tests/test-xprintf-posix.c: Likewise.
31225         * tests/test-xvasprintf.c: Likewise.
31226
31227         tests: avoid compiler warnings
31228         * tests/test-fcntl.c (main): Delete unused parameters.
31229         * tests/test-freopen-safer.c (main): Likewise.
31230         * tests/test-xalloc-die.c (main): Mark unused parameters.
31231         * tests/test-fseeko.c (main): Likewise.
31232         * tests/test-ftello.c (main): Likewise.
31233         * tests/test-nanosleep.c (main): Avoid declaration warning.
31234         * tests/test-sleep.c (main): Likewise.
31235         * tests/test-unsetenv.c (main): Silence warning about string
31236         literal.
31237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31238
31239 2009-12-23  Bruno Haible  <bruno@clisp.org>
31240
31241         * tests/test-localename.c (test_locale_name): New function, extracted
31242         from main. Also test mixed situations.
31243         (test_locale_name_posix, test_locale_name_environ,
31244         test_locale_name_default): New functions.
31245         (main): Invoke them all.
31246         * modules/localename-tests (configure.ac): Test for newlocale.
31247
31248 2009-12-23  Bruno Haible  <bruno@clisp.org>
31249
31250         unistd: Ensure getcwd gets declared before being overridden.
31251         * lib/unistd.in.h: Conditionally include <io.h>.
31252
31253 2009-12-22  Bruno Haible  <bruno@clisp.org>
31254
31255         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31256         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31257         (gl_WCHAR_H): Invoke it.
31258         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31259         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31260         Reported by Karl Berry <karl@freefriends.org>.
31261
31262 2009-12-22  Eric Blake  <ebb9@byu.net>
31263
31264         math, unistd: avoid redundant includes
31265         * lib/math.in.h (isnan): No need to re-include <math.h>.
31266         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31267
31268         getsubopt: work around cygwin bug
31269         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31270         avoid conflicting with system getsubopt.
31271         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31272         bug.
31273
31274         getopt: synchronize from glibc
31275         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31276         parameter order.  Adjust all callers.
31277         (_getopt_internal_r, main): Adjust quoting in error messages.
31278         Drop considerations for outdated POSIX 1003.2 error message.
31279         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31280         callers.
31281         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31282
31283         test-getopt: test stderr behavior
31284         * modules/getopt-posix-tests (Depends-on): Add dup2.
31285         * tests/test-getopt.c (ASSERT): Avoid stderr.
31286         (main): Move stderr to a temporary file.
31287         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31288         Instead, add parameter to inform caller if output occurred.
31289         (test_getopt): Adjust all existing tests to expect silence, and
31290         add new tests of leading ":".
31291         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31292         glibc shortcomings with leading "-:" or "+:" in optstring.
31293         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31294         Likewise.
31295         * doc/posix-functions/getopt.texi (getopt): Likewise.
31296
31297         test-getopt: enhance test
31298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31299         supports optind=0.
31300         * tests/test-getopt.c (OPTIND_MIN): Move...
31301         * tests/test-getopt.h (OPTIND_MIN): ...here.
31302         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31303         Require that optind=0 works, since modern BSD supports it in
31304         addition to optreset, and since coreutils expects it.
31305         (test_getopt_long_only): New test.
31306         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31307         glibc shortcomings with 'W;', and enforcement of optind=0.
31308         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31309         Likewise.
31310
31311 2009-12-21  Bruno Haible  <bruno@clisp.org>
31312
31313         localename: Improvements for MacOS X and Cygwin.
31314         * lib/localename.h (gl_locale_name_environ): New declaration.
31315         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31316         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31317         (gl_locale_name_posix): Invoke it.
31318         (gl_locale_name_default): Add comments. Use Windows native API also on
31319         Cygwin.
31320
31321 2009-12-21  Bruno Haible  <bruno@clisp.org>
31322
31323         Update list of Win32 locale ids.
31324         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31325         (LANG_SAMI): Renamed from LANG_SAAMI.
31326         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31327         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31328         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31329         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31330         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31331         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31332         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31333         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31334         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31335         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31336         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31337         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31338         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31339         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31340         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31341         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31342         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31343         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31344         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31345         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31346         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31347         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31348         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31349         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31350         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31351         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31352         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31353         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31354         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31355         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31356         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31357         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31358         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31359         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31360         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31361         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31362         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31363         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31364         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31365         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31366         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31367         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31368         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31369         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31370         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31371         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31372         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31373         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31374         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31375         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31376         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31377         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31378         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31379         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31380         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31381         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31382         Add more languages and countries for Sami, Sorbian. Add more countries
31383         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31384         for Pashto. Change country for Syriac, Tswana.
31385
31386 2009-12-21  Eric Blake  <ebb9@byu.net>
31387
31388         test-utimens: avoid spurious failure
31389         * tests/test-chown.h (nap): Factor...
31390         * tests/nap.h: ...into new file.
31391         * tests/test-lchown.h (nap): Avoid duplication.
31392         * tests/test-utimens-common.h (nap): Use shared implementation,
31393         necessary on file systems with 1-second resolution.
31394         * modules/chown-tests (Files): Include new file.
31395         * modules/fdutimensat-tests (Files): Likewise.
31396         * modules/futimens-tests (Files): Likewise.
31397         * modules/lchown-tests (Files): Likewise.
31398         * modules/openat-tests (Files): Likewise.
31399         * modules/utimens-tests (Files): Likewise.
31400         * modules/utimensat-tests (Files): Likewise.
31401
31402 2009-12-19  Eric Blake  <ebb9@byu.net>
31403
31404         futimens, utimensat: work around Linux bug
31405         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31406         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31407         * lib/utimensat.c (rpl_utimensat): Work around it.
31408         * lib/futimens.c (rpl_futimens): Adjust comment.
31409
31410         utimens: work around Linux ctime bug
31411         * lib/utimens.c (detect_ctime_bug): New helper function.
31412         (update_timespec): Differentiate between workaround needed for
31413         this bug vs. what is needed for systems that lack utimensat.
31414         (fdutimens, lutimens): Work around bug.
31415
31416         utimens: check for ctime update
31417         * tests/test-utimens-common.h (check_ctime): Define.
31418         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31419         * tests/test-futimens.h (test_futimens): Likewise.
31420         * tests/test-lutimens.h (test_lutimens): Likewise.
31421         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31422         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31423
31424 2009-12-19  Bruno Haible  <bruno@clisp.org>
31425
31426         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31427         * tests/test-dprintf-posix2.sh: New file.
31428         * tests/test-dprintf-posix2.c: New file.
31429         * modules/dprintf-posix-tests (Files): Add them.
31430         (configure.ac): Check for getrlimit and setrlimit.
31431         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31432
31433 2009-12-19  Bruno Haible  <bruno@clisp.org>
31434
31435         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31436         * tests/test-fprintf-posix3.sh: New file.
31437         * tests/test-fprintf-posix3.c: New file.
31438         * modules/fprintf-posix-tests (Files): Add them.
31439         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31440
31441 2009-12-19  Eric Blake  <ebb9@byu.net>
31442
31443         dirfd: fix prototype
31444         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31445         * lib/dirfd.c (dirfd): Likewise.
31446
31447         canonicalize: reduce memory usage
31448         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31449         allocation to size.
31450         Reported by Solar Designer <solar@openwall.com>.
31451
31452 2009-12-19  Bruno Haible  <bruno@clisp.org>
31453
31454         New module attribute 'Applicability'.
31455         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31456         * gnulib-tool: New option --extract-applicability.
31457         (func_usage): Document it.
31458         (sed_extract_prog): Recognize it.
31459         (func_get_applicability): New function.
31460         (func_import): Generalize handling of 'link-warning' module.
31461         * modules/link-warning (Applicability): New section.
31462         * modules/arg-nonnull (Applicability): New section.
31463         Repoted by Simon Josefsson <simon@josefsson.org>.
31464
31465 2009-12-19  Bruno Haible  <bruno@clisp.org>
31466
31467         fflush: tweak
31468         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31469         * lib/fseeko.c (rpl_fseeko): Likewise.
31470
31471 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31472
31473         * lib/gl_list.h: Fix typo in comment.
31474
31475 2009-12-16  Eric Blake  <ebb9@byu.net>
31476
31477         fcntl: use to simplify other modules
31478         * modules/cloexec (Depends-on): Add fcntl.
31479         * modules/fchdir (Depends-on): Likewise.
31480         * modules/fd-safer-flag (Depends-on): Likewise.
31481         * modules/unistd-safer (Depends-on): Likewise.
31482         * modules/dup3 (configure.ac): Set module indicator.
31483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31484         missing.
31485         * lib/fchdir.c (_gl_register_dup): Fix comment.
31486         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31487         * lib/dup-safer.c (dup_safer): Likewise.
31488         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31489         * lib/dup3.c (dup3): Likewise.
31490         * tests/test-fchdir.c (main): Enhance test.
31491         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31492
31493         fcntl: port portions of fcntl to mingw
31494         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31495         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31496         replacement for mingw.
31497         * modules/fcntl (Description): Update.
31498         (Depends-on): Add dup2.
31499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31500         * modules/fcntl-h (Makefile.am): Substitute it.
31501         * lib/fcntl.in.h (fcntl): Update declaration.
31502         (F_DUPFD, F_GETFD): New macros, when needed.
31503         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31504         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31505         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31506         we now guarantee.
31507
31508         fcntl: work around cygwin bug in F_DUPFD
31509         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31510         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31511         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31512         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31513         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31514
31515         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31516         * modules/fcntl (Files): List new files.
31517         (configure.ac): Run a test.
31518         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31519         * lib/fcntl.c (rpl_fcntl): Likewise.
31520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31521         (gl_FCNTL_H): Always replace fcntl.h.
31522         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31523         * lib/fcntl.in.h (fcntl): Declare replacement.
31524         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31525         needed, plus a witness.
31526         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31527         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31528         * tests/test-fcntl.c: New file.
31529         * modules/fcntl-tests: Likewise.
31530
31531         binary-io: avoid potential compilation warning
31532         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31533         directives.
31534
31535         fflush: avoid compilation error on NetBSD
31536         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31537         between off_t and fpos_t, since the latter is sometimes a struct.
31538         * lib/fseeko.c (rpl_fseeko): Likewise.
31539         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31540
31541 2009-12-15  Eric Blake  <ebb9@byu.net>
31542
31543         fcntl-h, stdio, sys_ioctl: fix declarations
31544         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31545         function must not take arguments.
31546         * lib/sys_ioctl.in.h (ioctl): Likewise.
31547         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31548         (open): Add a link warning.
31549
31550 2009-12-15  Jim Meyering  <meyering@redhat.com>
31551
31552         areadlink, areadlink-with-size: relax license to LGPLv2+
31553         * modules/areadlink (License): Relax to LGPLv2+.
31554         * modules/areadlink-with-size (License): Likewise.
31555
31556 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31557             Bruno Haible  <bruno@clisp.org>
31558
31559         *printf: Fix memory leak.
31560         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31561         * lib/vfprintf.c (vfprintf): Likewise.
31562         * lib/dprintf.c (dprintf): Likewise.
31563         * lib/vdprintf.c (vdprintf): Likewise.
31564
31565 2009-12-14  Eric Blake  <ebb9@byu.net>
31566
31567         accept4: adjust module dependencies
31568         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31569
31570         utimens: one more try at avoiding compiler warning
31571         * lib/utimens.c (lutimens): Lower scope of result.
31572
31573 2009-12-13  Bruno Haible  <bruno@clisp.org>
31574
31575         Move the malloc checking from module 'list' to new module 'xlist'.
31576         * modules/xlist: New file.
31577         * lib/gl_xlist.h: New file.
31578         * lib/gl_xlist.c: New file.
31579         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31580         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31581         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31582         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31583         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31584         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31585         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31586         gl_sortedlist_nx_add): New declarations.
31587         (struct gl_list_implementation): Rename and change methods accordingly.
31588         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31589         (gl_list_nx_create): Renamed from gl_list_create.
31590         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31591         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31592         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31593         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31594         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31595         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31596         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31597         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31598         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31599         gl_list_create_empty.
31600         (gl_list_nx_create): Renamed from gl_list_create.
31601         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31602         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31603         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31604         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31605         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31606         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31607         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31608         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31609         * lib/gl_array_list.c: Don't include xalloc.h.
31610         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31611         NULL upon out-of-memory.
31612         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31613         out-of-memory.
31614         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31615         Change return type to 'int'.
31616         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31617         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31618         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31619         upon out-of-memory.
31620         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31621         upon out-of-memory.
31622         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31623         upon out-of-memory.
31624         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31625         upon out-of-memory.
31626         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31627         out-of-memory.
31628         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31629         Update.
31630         (gl_array_list_implementation): Update.
31631         * lib/gl_carray_list.c: Don't include xalloc.h.
31632         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31633         Return NULL upon out-of-memory.
31634         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31635         out-of-memory.
31636         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31637         Change return type to 'int'.
31638         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31639         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31640         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31641         upon out-of-memory.
31642         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31643         upon out-of-memory.
31644         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31645         out-of-memory.
31646         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31647         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31648         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31649         Update.
31650         (gl_carray_list_implementation): Update.
31651         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31652         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31653         gl_linked_create_empty. Return NULL upon out-of-memory.
31654         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31655         out-of-memory.
31656         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31657         Change return type to 'int'. Return -1 upon out-of-memory.
31658         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31659         out-of-memory.
31660         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31661         upon out-of-memory.
31662         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31663         upon out-of-memory.
31664         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31665         NULL upon out-of-memory.
31666         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31667         upon out-of-memory.
31668         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31669         out-of-memory.
31670         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31671         Update.
31672         * lib/gl_linked_list.c: Don't include xalloc.h.
31673         (gl_linked_list_implementation): Update.
31674         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31675         (add_to_bucket): Change return type to 'int'.
31676         (gl_linkedhash_list_implementation): Update.
31677         * lib/gl_anytree_list1.h (free_subtree): New function.
31678         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31679         gl_tree_create_empty. Return NULL upon out-of-memory.
31680         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31681         Change return type to 'int'. Return -1 upon out-of-memory.
31682         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31683         out-of-memory.
31684         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31685         (gl_tree_remove_node): New function, moved here from
31686         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31687         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31688         Update.
31689         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31690         malloc, not xmalloc. Return NULL upon out-of-memory.
31691         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31692         out-of-memory.
31693         (gl_tree_remove_node_from_tree): New function, extracted from
31694         gl_tree_remove_node.
31695         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31696         upon out-of-memory.
31697         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31698         out-of-memory.
31699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31700         upon out-of-memory.
31701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31702         upon out-of-memory.
31703         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31704         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31705         not xmalloc. Return NULL upon out-of-memory.
31706         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31707         out-of-memory.
31708         (gl_tree_remove_node_from_tree): New function, extracted from
31709         gl_tree_remove_node.
31710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31711         upon out-of-memory.
31712         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31713         out-of-memory.
31714         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31715         upon out-of-memory.
31716         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31717         upon out-of-memory.
31718         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31719         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31720         gl_anytree_list1.h before gl_anyavltree_list2.h.
31721         (gl_avltree_list_implementation): Update.
31722         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31723         gl_anytree_list1.h before gl_anyavltree_list2.h.
31724         (gl_rbtree_list_implementation): Update.
31725         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31726         Change return type to 'int'. Return -1 upon out-of-memory. Use
31727         __builtin_expect.
31728         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31729         (gl_avltreehash_list_implementation): Update.
31730         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31731         (gl_rbtreehash_list_implementation): Update.
31732         * modules/array-list (Depends-on): Remove xalloc.
31733         * modules/carray-list (Depends-on): Likewise.
31734         * modules/linked-list (Depends-on): Likewise.
31735         * modules/linkedhash-list (Depends-on): Likewise.
31736         * modules/avltree-list (Depends-on): Likewise.
31737         * modules/rbtree-list (Depends-on): Likewise.
31738         * modules/avltreehash-list (Depends-on): Likewise.
31739         * modules/rbtreehash-list (Depends-on): Likewise.
31740
31741         * modules/xsublist: New file.
31742         * lib/gl_xsublist.h: New file.
31743         * lib/gl_xsublist.c: New file.
31744         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31745         (gl_sublist_nx_create): New declaration.
31746         * lib/gl_sublist.c: Don't include xalloc.h.
31747         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31748         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31749         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31750         Change return type to 'int'. Return -1 upon out-of-memory.
31751         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31752         upon out-of-memory.
31753         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31754         NULL upon out-of-memory.
31755         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31756         upon out-of-memory.
31757         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31758         NULL upon out-of-memory.
31759         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31760         NULL upon out-of-memory.
31761         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31762         upon out-of-memory.
31763         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31764         (gl_sublist_list_implementation): Update.
31765         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31766         upon out-of-memory.
31767         * modules/sublist (Depends-on): Remove xalloc.
31768
31769         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31770         * tests/test-carray_list.c: Likewise.
31771         * tests/test-linked_list.c: Likewise.
31772         * tests/test-linkedhash_list.c: Likewise.
31773         * tests/test-avltree_list.c: Likewise.
31774         * tests/test-rbtree_list.c: Likewise.
31775         * tests/test-avltreehash_list.c: Likewise.
31776         * tests/test-rbtreehash_list.c: Likewise.
31777         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31778         * modules/carray-list-tests (Makefile.am): Likewise.
31779         * modules/linked-list-tests (Makefile.am): Likewise.
31780         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31781         * modules/avltree-list-tests (Makefile.am): Likewise.
31782         * modules/rbtree-list-tests (Makefile.am): Likewise.
31783         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31784         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31785
31786         * NEWS: Mention the changes.
31787
31788         * lib/clean-temp.c: Include gl_xlist.h.
31789         * modules/clean-temp (Depends-on): Add xlist.
31790
31791         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31792         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31793
31794         * tests/test-array_oset.c: Include gl_xlist.h.
31795         * modules/array-oset-tests (Depends-on): Add xlist.
31796
31797         Reported by José E. Marchesi <jemarch@gnu.org>.
31798
31799 2009-12-13  Bruno Haible  <bruno@clisp.org>
31800
31801         Move the malloc checking from module 'oset' to new module 'xoset'.
31802         * modules/xoset: New file.
31803         * lib/gl_xoset.h: New file.
31804         * lib/gl_xoset.c: New file.
31805         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31806         declarations.
31807         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31808         (struct gl_oset_implementation): Rename and change methods accordingly.
31809         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31810         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31811         'int'. Mark as __warn_unused_result__.
31812         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31813         gl_oset_create_empty.
31814         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31815         'int'.
31816         * lib/gl_array_oset.c: Don't include xalloc.h.
31817         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31818         malloc, not xmalloc.
31819         (grow): Change return type to 'int'. Don't call xalloc_die.
31820         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31821         to 'int'.
31822         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31823         'int'.
31824         (gl_array_oset_implementation): Update.
31825         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31826         gl_tree_create_empty.
31827         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31828         'int'.
31829         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31830         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31831         xmalloc.
31832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31833         not xmalloc.
31834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31835         xmalloc.
31836         (gl_avltree_oset_implementation): Update.
31837         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31839         xmalloc.
31840         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31841         not xmalloc.
31842         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31843         xmalloc.
31844         (gl_rbtree_oset_implementation): Update.
31845         * modules/array-oset (Depends-on): Remove xalloc.
31846         * modules/avltree-oset (Depends-on): Likewise.
31847         * modules/rbtree-oset (Depends-on): Likewise.
31848         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31849         * tests/test-avltree_oset.c: Likewise.
31850         * tests/test-rbtree_oset.c: Likewise.
31851         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31852         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31853         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31854         * NEWS: Mention the change.
31855
31856 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31857
31858         maint.mk: allow a project to override release-prep commands
31859         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31860         commands into a new rule.
31861         (release-prep): New rule.
31862         (release-prep-hook): New overridable variable.
31863
31864 2009-12-13  Bruno Haible  <bruno@clisp.org>
31865
31866         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31867
31868 2009-12-13  Jim Meyering  <meyering@redhat.com>
31869
31870         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31871         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31872
31873 2009-12-12  Bruno Haible  <bruno@clisp.org>
31874
31875         duplocale: Tweak.
31876         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31877
31878 2009-12-12  Karl Berry  <karl@gnu.org>
31879
31880         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31881
31882 2009-12-12  Bruno Haible  <bruno@clisp.org>
31883
31884         * m4/po.m4: Undo incorrect untabification.
31885
31886 2009-12-12  Bruno Haible  <bruno@clisp.org>
31887
31888         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31889         * modules/c-strtod (Depends-on): Add locale.
31890         * modules/c-strtold (Depends-on): Likewise.
31891
31892 2009-12-12  Bruno Haible  <bruno@clisp.org>
31893
31894         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31895
31896 2009-12-11  Eric Blake  <ebb9@byu.net>
31897
31898         setenv: relax requirement in light of POSIX ruling
31899         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31900         not NULL.
31901         * tests/test-setenv.c (main): Relax test.
31902         * tests/test-unsetenv.c (main): Likewise.
31903         * doc/posix-functions/setenv.texi (setenv): Document this.
31904         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31905
31906 2009-12-11  Bruno Haible  <bruno@clisp.org>
31907
31908         New module 'fd-safer-flag'.
31909         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31910         * lib/dup-safer.c (dup_safer_flag): Remove function.
31911         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31912         * lib/fd-safer.c (fd_safer_flag): Remove function.
31913         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31914         * modules/cloexec (configure.ac): Drop indicator macro.
31915         * modules/fd-safer-flag: New file.
31916         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31917         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31918         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31919
31920 2009-12-11  Bruno Haible  <bruno@clisp.org>
31921
31922         Tests for module 'nl_langinfo'.
31923         * modules/nl_langinfo-tests: New file.
31924         * tests/test-nl_langinfo.sh: New file.
31925         * tests/test-nl_langinfo.c: New file.
31926
31927         New module 'nl_langinfo'.
31928         * lib/nl_langinfo.c: New file.
31929         * m4/nl_langinfo.m4: New file.
31930         * modules/nl_langinfo: New file.
31931         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31932
31933 2009-12-11  Bruno Haible  <bruno@clisp.org>
31934
31935         Tests for module 'langinfo'.
31936         * modules/langinfo-tests: New file.
31937         * tests/test-langinfo.c: New file.
31938
31939         New module 'langinfo'.
31940         * lib/langinfo.in.h: New file.
31941         * m4/langinfo_h.m4: New file.
31942         * modules/langinfo: New file.
31943         * doc/posix-headers/langinfo.texi: Mention the new module.
31944
31945 2009-12-11  Bruno Haible  <bruno@clisp.org>
31946
31947         * lib/config.charset: Untabify.
31948
31949 2009-12-11  Bruno Haible  <bruno@clisp.org>
31950
31951         * modules/unistd-safer (configure.ac): Drop indicator macro.
31952
31953 2009-12-11  Bruno Haible  <bruno@clisp.org>
31954
31955         Move pipe2-safer code to its own file.
31956         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31957         * lib/pipe-safer.c (pipe2_safer): Remove function.
31958         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31959         (Makefile.am): Add it to lib_SOURCES.
31960
31961 2009-12-10  Bruno Haible  <bruno@clisp.org>
31962
31963         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31964
31965 2009-12-10  Bruno Haible  <bruno@clisp.org>
31966
31967         Declare which arguments expect non-NULL values, for GCC and clang.
31968         * build-aux/arg-nonnull.h: New file.
31969         * modules/arg-nonnull: New file.
31970         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31971         (inet_ntop, inet_pton): Use it.
31972         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31973         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31974         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31975         (open, openat): Use it.
31976         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31977         (fnmatch): Use it.
31978         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31979         (getopt, getopt_long, getopt_long_only): Use it.
31980         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31981         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31982         Use it.
31983         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31984         (iconv_open): Use it.
31985         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31986         (strtoimax, strtoumax): Use it.
31987         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31988         (duplocale): Use it.
31989         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31990         (frexp, frexpl): Use it.
31991         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31992         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31993         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31994         (tsearch, tfind, tdelete, twalk): Use it.
31995         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31996         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31997         sigpending): Use it.
31998         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31999         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32000         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32001         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32002         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32003         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32004         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32005         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32006         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32007         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32008         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32009         Use it.
32010         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32011         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32012         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32013         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32014         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32015         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32016         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32017         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32018         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32019         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32020         strtoull, unsetenv): Use it.
32021         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32022         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32023         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32024         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32025         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32026         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32027         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32028         (strcasecmp, strncasecmp): Use it.
32029         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32030         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32031         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32032         rpl_setsockopt): Use it.
32033         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32034         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32035         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32036         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32037         (gettimeofday): Use it.
32038         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32039         (times): Use it.
32040         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32041         (uname): Use it.
32042         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32043         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32044         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32045         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32046         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32047         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32048         unlinkat, write): Use it.
32049         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32050         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32051         * lib/argv-iter.h: Include arg-nonnull.h.
32052         (_ATTRIBUTE_NONNULL_): Remove macro.
32053         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32054         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32055         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32056         optimization.
32057         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32058         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32059         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32060         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32061         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32062         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32063         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32064         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32065         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32066         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32067         * modules/dirent (Depends-on): Add arg-nonnull.
32068         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32069         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32070         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32071         * modules/fnmatch (Depends-on): Add arg-nonnull.
32072         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32073         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32074         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32075         * modules/glob (Depends-on): Add arg-nonnull.
32076         (Makefile.am): Insert arg-nonnull.h into glob.h.
32077         * modules/iconv_open (Depends-on): Add arg-nonnull.
32078         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32079         * modules/inttypes (Depends-on): Add arg-nonnull.
32080         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32081         * modules/locale (Depends-on): Add arg-nonnull.
32082         (Makefile.am): Insert arg-nonnull.h into locale.h.
32083         * modules/math (Depends-on): Add arg-nonnull.
32084         (Makefile.am): Insert arg-nonnull.h into math.h.
32085         * modules/netdb (Depends-on): Add arg-nonnull.
32086         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32087         * modules/search (Depends-on): Add arg-nonnull.
32088         (Makefile.am): Insert arg-nonnull.h into search.h.
32089         * modules/signal (Depends-on): Add arg-nonnull.
32090         (Makefile.am): Insert arg-nonnull.h into signal.h.
32091         * modules/spawn (Depends-on): Add arg-nonnull.
32092         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32093         * modules/stdio (Depends-on): Add arg-nonnull.
32094         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32095         * modules/stdlib (Depends-on): Add arg-nonnull.
32096         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32097         * modules/string (Depends-on): Add arg-nonnull.
32098         (Makefile.am): Insert arg-nonnull.h into string.h.
32099         * modules/strings (Depends-on): Add arg-nonnull.
32100         (Makefile.am): Insert arg-nonnull.h into strings.h.
32101         * modules/sys_socket (Depends-on): Add arg-nonnull.
32102         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32103         * modules/sys_stat (Depends-on): Add arg-nonnull.
32104         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32105         * modules/sys_time (Depends-on): Add arg-nonnull.
32106         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32107         * modules/sys_times (Depends-on): Add arg-nonnull.
32108         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32109         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32110         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32111         * modules/time (Depends-on): Add arg-nonnull.
32112         (Makefile.am): Insert arg-nonnull.h into time.h.
32113         * modules/unistd (Depends-on): Add arg-nonnull.
32114         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32115         * modules/wchar (Depends-on): Add arg-nonnull.
32116         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32117         * modules/argv-iter (Depends-on): Add arg-nonnull.
32118         * tests/test-canonicalize.c (null_ptr): New function.
32119         (main): Use it.
32120         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32121         (main): Use it.
32122         * tests/test-memmem.c (null_ptr): New function.
32123         (main): Use it.
32124         Reported by Jim Meyering.
32125
32126 2009-12-10  Bruno Haible  <bruno@clisp.org>
32127
32128         Use spaces for indentation, not tabs.
32129         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32130         * m4/*.m4: Untabify.
32131         * build-aux/*.h: Untabify.
32132         * tests/**/*.[hc]: Untabify.
32133         * README: New section "Indent with spaces, not TABs", based on
32134         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32135         * NEWS: Mention the change.
32136
32137 2009-12-10  Bruno Haible  <bruno@clisp.org>
32138
32139         pty test: Fix link error.
32140         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32141         test_pty_LDADD.
32142
32143 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32144
32145         * modules/pty: New file.
32146         * modules/pty-tests: New file.
32147         * m4/pty.m4: New file.
32148         * tests/test-pty.c: New file.
32149         * doc/glibc-headers/pty.texi: Modified.
32150         * doc/glibc-functions/forkpty.texi: Modified.
32151         * doc/glibc-functions/openpty.texi: Modified.
32152
32153 2009-12-10  Bruno Haible  <bruno@clisp.org>
32154
32155         Avoid syntax error in C++ mode.
32156         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32157
32158 2009-12-10  Bruno Haible  <bruno@clisp.org>
32159
32160         Use sed with option -e.
32161         * gnulib-tool (func_version, func_emit_copyright_notice,
32162         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32163         option -e to sed.
32164         * modules/link-warning (Makefile.am): Likewise.
32165
32166 2009-12-10  Jim Meyering  <meyering@redhat.com>
32167
32168         mgetgroups: do not write bytes beyond end of malloc'd buffer
32169         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32170         username, we call getgroups with a one-element-shorter buffer,
32171         but still told it the length was original, max_n_groups.
32172
32173 2009-12-09  Eric Blake  <ebb9@byu.net>
32174
32175         cloexec: relax license
32176         * modules/cloexec (Maintainer): Add myself.
32177         (License): Use LGPL, not GPL.
32178
32179         link-warning: optimize generation
32180         * modules/link-warning (Makefile.am): Reduce process usage.
32181
32182 2009-12-09  Bruno Haible  <bruno@clisp.org>
32183
32184         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32185         workaround was added on 2009-11-17.
32186
32187 2009-12-09  Jim Meyering  <meyering@redhat.com>
32188             Bruno Haible  <bruno@clisp.org>
32189
32190         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32191         * modules/link-warning (Makefile.am): Make the comment-removing sed
32192         command more robust in the face of bootstrap-prepended comment lines.
32193
32194 2009-12-09  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32197         most one group.
32198
32199 2009-12-09  Simon Josefsson <simon@josefsson.org>
32200             Bruno Haible  <bruno@clisp.org>
32201
32202         * build-aux/link-warning.h: Add copyright notice.
32203         * modules/link-warning (Makefile.am): Generate link-warning.h from
32204         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32205         * NEWS: Mention change in link-warning module.
32206         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32207         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32208         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32209         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32210         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32211         * modules/math (Makefile.am): Add dependency to math.h.
32212         * modules/search (Makefile.am): Add dependency to search.h.
32213         * modules/signal (Makefile.am): Add dependency to signal.h.
32214         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32215         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32216         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32217         * modules/string (Makefile.am): Add dependency to string.h.
32218         * modules/strings (Makefile.am): Add dependency to strings.h.
32219         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32220         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32221         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32222         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32223         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32224         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32225         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32226         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32227         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32228
32229 2009-12-09  Bruno Haible  <bruno@clisp.org>
32230
32231         fchdir: Optimize away rpl_fstat when possible.
32232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32233         REPLACE_OPEN_DIRECTORY.
32234         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32235
32236 2009-12-09  Bruno Haible  <bruno@clisp.org>
32237
32238         * lib/fchdir.c: Update comment.
32239
32240 2009-12-09  Bruno Haible  <bruno@clisp.org>
32241
32242         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32243
32244 2009-12-08  Eric Blake  <ebb9@byu.net>
32245
32246         fchdir: avoid memory leak on re-registration.
32247         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32248
32249 2009-12-08  Jim Meyering  <meyering@redhat.com>
32250
32251         init.sh: avoid Solaris 10 /bin/sh portability problem
32252         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32253         sourced script:
32254           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32255           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32256           bar
32257         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32258         and two tests used that idiom.
32259         * tests/init.sh: Update suggested usage comments.
32260         (path_prepend_): New function, to be used in place
32261         of the --src-path=DIR option.
32262         (setup_): Move PATH-prepending code into path_prepend_.
32263         * tests/test-pread.sh: Adapt to new usage.
32264         * tests/test-xalloc-die.sh: Likewise.
32265
32266 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32267
32268         * doc/gnulib.texi (Glibc pty.h): Add.
32269         * doc/glibc-functions/forkpty.texi: Add.
32270         * doc/glibc-functions/openpty.texi: Add.
32271         Suggested by Bruno Haible.
32272
32273 2009-12-08  Eric Blake  <ebb9@byu.net>
32274
32275         fchdir: fix logic bugs
32276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32277         * tests/test-fchdir.c (main): Enhance test.
32278         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32279         is in use.
32280
32281         dup2: fix logic bugs
32282         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32283         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32284         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32285         exists.
32286         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32287
32288 2009-12-07  Eric Blake  <ebb9@byu.net>
32289
32290         unlink: fix m4 detection
32291         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32292
32293         unistd-safer: add unit test
32294         * modules/unistd-safer-tests: New file.
32295         * tests/test-dup-safer.c: Likewise.
32296         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32297         * tests/test-dup2.c (setmode): Likewise.
32298         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32299
32300         cloexec: preserve text vs. binary across dup_cloexec
32301         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32302         mode.
32303         * modules/dup2-tests (Depends-on): Add binary-io.
32304         * modules/cloexec-tests (Depends-on): Likewise.
32305         * tests/test-dup2.c (setmode, is_mode): New helpers.
32306         (main): Add tests that translation mode is preserved.
32307         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32308         Reported by Bruno Haible.
32309
32310         mgetgroups: reduce duplicate listings
32311         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32312         resulting array.
32313         * tests/test-chown.h (test_chown): Simplify client.
32314         * tests/test-lchown.h (test_lchown): Likewise.
32315
32316 2009-12-06  Bruno Haible  <bruno@clisp.org>
32317
32318         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32319         value.
32320
32321 2009-12-06  Bruno Haible  <bruno@clisp.org>
32322
32323         * lib/progname.c: Include stdio.h, stdlib.h.
32324         (set_program_name): Reject a NULL argument.
32325
32326 2009-12-05  Eric Blake  <ebb9@byu.net>
32327
32328         pipe2-safer: new module
32329         * modules/pipe2-safer: New file.
32330         * lib/unistd-safer.h (pipe2_safer): New prototype.
32331         * lib/unistd--.h (pipe2): New wrapper.
32332         * lib/pipe-safer.c (pipe2_safer): New function.
32333         * modules/pipe (Depends-on): Add pipe2-safer.
32334         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32335
32336         stdlib-safer: preserve cloexec flag for mkostemp[s]
32337         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32338         fd_safer_flag.
32339
32340         unistd-safer: allow preservation of cloexec status via flag
32341         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32342         prototypes.
32343         * lib/dup-safer.c (dup_safer_flag): New function.
32344         * lib/fd-safer.c (fd_safer_flag): Likewise.
32345         * modules/cloexec (configure.ac): Set witness.
32346
32347         test-dup2: enhance test
32348         * modules/dup2-tests (Depends-on): Add cloexec.
32349         * tests/test-dup2.c (main): Enhance test.
32350
32351         cloexec: add dup_cloexec
32352         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32353         header and comments.
32354         * lib/cloexec.c (set_cloexec_flag): Add comments.
32355         (dup_cloexec): New function, with mingw implementation borrowed
32356         from...
32357         * lib/w32spawn.h (dup_noinherit): ...here.
32358         * modules/execute (Depends-on): Add cloexec.
32359         * modules/pipe (Depends-on): Likewise.
32360         * modules/cloexec (Depends-on): Add dup2.
32361         * modules/cloexec-tests (Files): New file.
32362         * tests/test-cloexec.c: Likewise.
32363
32364         test-xalloc-die: fix test for mingw
32365         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32366         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32367         directory and .exe suffix off argv[0] output.
32368
32369         test-fseeko: fix test for mingw
32370         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32371         than undefining fseek, so test will pass on mingw.
32372
32373 2009-12-05  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/progname.h (set_program_name): Clarify specification.
32376         * lib/progname.c (set_program_name): Likewise.
32377         Reported by Jim Meyering.
32378
32379 2009-12-05  Jim Meyering  <meyering@redhat.com>
32380
32381         maint.mk: backslash-escape parens in default regexp
32382         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32383         backslash-escape the literal parentheses.
32384
32385         maint.mk: news-date-check: use grep -E
32386         * top/maint.mk (today): Define a Make variable, not a...
32387         (news-date-check): ...shell variable.
32388         (news-date-regexp): Use the Make variable.
32389         Use grep's -E option.  Change the failing diagnostic to mention
32390         the variable, $(news-date-regexp).
32391
32392 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32393
32394         maintainer-makefile: allow customization of NEWS entry format
32395         * top/maint.mk (news-date-regexp): New overridable variable.
32396         (news-date-check): Use it.
32397
32398 2009-12-04  Eric Blake  <ebb9@byu.net>
32399
32400         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32401         * lib/mgetgroups.h (xgetgroups): New prototype.
32402         * lib/mgetgroups.c (xgetgroups): New wrapper.
32403         (mgetgroups): Handle ENOSYS.
32404         * modules/mgetgroups (Depends-on): Add realloc.
32405         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32406
32407         mgetgroups: avoid argument promotion issues with -1
32408         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32409         for invalid gid_t.
32410         * tests/test-chown.h (getegid, test_chown): Likewise.
32411         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32412
32413 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32414
32415         exclude: Fix header file problems.
32416         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32417
32418 2009-12-01  Jim Meyering  <meyering@redhat.com>
32419
32420         fts: fts_open: do not let an empty string cause immediate failure
32421         This is required in support of GNU rm, for which the command
32422         "rm A '' B" must process and remove both A and B, in spite of
32423         the empty string argument.
32424         * lib/fts.c (fts_open): Do not let the presence of an empty string
32425         cause fts_open to fail immediately.  Most fts-using tools must be
32426         able to process all arguments, in order, and can be expected to
32427         diagnose such arguments themselves.
32428
32429 2009-11-30  Eric Blake  <ebb9@byu.net>
32430
32431         utimens: fix compilation error
32432         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32433         Declare variable at right scope.
32434
32435 2009-11-29  Jim Meyering  <meyering@redhat.com>
32436
32437         bootstrap: handle perl-5.11's changed --version output
32438         * build-aux/bootstrap (get_version): Handle perl separately,
32439         since perl-5.11's --version output is different.
32440
32441 2009-11-28  Jim Meyering  <meyering@redhat.com>
32442
32443         userspec: depend on the inttostr module, too
32444         * modules/userspec (Depends-on): Add inttostr.
32445
32446         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32447         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32448         number of MAXUID when it evaluates to (uid_t) -1.
32449         Likewise for group ID.  Reported by Matt McCutchen in
32450         <http://savannah.gnu.org/bugs/?28113>
32451
32452         userspec: reformat to use spaces, not TABs
32453         * lib/userspec.c: Expand TABs to spaces.
32454         Add Emacs' "indent-tabs-mode: nil" hint.
32455
32456 2009-11-27  Eric Blake  <ebb9@byu.net>
32457
32458         getopt-gnu: flush out another BSD bug
32459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32460         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32461         flush out BSD bug.
32462         * tests/test-getopt.h (test_getopt): End lists with NULL.
32463         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32464         (test_getopt_long_posix): Enhance test.
32465         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32466         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32467         getopt-gnu.
32468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32469         Likewise.
32470
32471 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32472
32473         * modules/idpriv-droptemp-tests (Notice): Fix text.
32474
32475 2009-11-27  Jim Meyering  <meyering@redhat.com>
32476
32477         test-xalloc-die: avoid spurious failure due to libtool argv difference
32478         In a libtool-enabled project, this test would fail due to a difference
32479         in the emitted program name, e.g.,
32480         -test-xalloc-die: memory exhausted
32481         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32482         Use program to avoid that.
32483         * modules/xalloc-die-tests (Depends-on): Add progname.
32484         * tests/test-xalloc-die.c: Include progname.h".
32485         (program_name): Remove decl.
32486         (main): Call set_program_name.
32487         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32488
32489 2009-11-26  Richard Jones  <rjones@redhat.com>
32490
32491         w32sock: leave win32 error in place.
32492         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32493
32494 2009-11-26  Eric Blake  <ebb9@byu.net>
32495
32496         init.sh: suggest to use skip_ and fail_ functions in comments
32497         * tests/init.sh: Add a sentence.
32498
32499 2009-11-25  Bruno Haible  <bruno@clisp.org>
32500
32501         init.sh: add documentation in comments
32502         * tests/init.sh: Add some developer and user documentation.
32503
32504 2009-11-26  Jim Meyering  <meyering@redhat.com>
32505
32506         init.sh: accommodate even those who specify bogus srcdir manually
32507         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32508         configure-time tests to be sanitized, so that there is no need to
32509         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32510         (with no double quotes) suffices.  However, since tests may be
32511         invoked manually, and since you may explicitly set srcdir to the
32512         name of a directory containing spaces, do quote its uses here.
32513         * tests/test-pread.sh: Likewise.
32514         Suggested by Bruno Haible.
32515
32516         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32517         * tests/test-pread.sh: Write no data into the pipe, because
32518         test-pread actually reads none.  This avoids a diagnostic,
32519         "bash: echo: write error: Broken pipe", that arises in the unusual
32520         event something is ignoring SIGPIPE, and might be interpreted
32521         as some sort of failure.  Reported by Bruno Haible.
32522
32523 2009-11-25  Jim Meyering  <meyering@redhat.com>
32524
32525         test-pread: cover failure with ESPIPE and EINVAL
32526         * tests/test-pread.c (main): Test for failure, too.
32527         * tests/test-pread.sh: Invoke with stdin on a pipe.
32528         Suggested by Eric Blake.
32529
32530         pread: improvement and fix
32531         * modules/pread (Depends-on): Depend on lseek, for portability to
32532         e.g., mingw.  Suggested by Eric Blake.
32533         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32534
32535         unistd.in.h: correct declaration of pread
32536         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32537         Reported by Richard W.M. Jones.
32538
32539         test-pread.sh: distribute the test script
32540         * modules/pread-tests (Files): Include test-pread.sh.
32541
32542         test-pread.sh: clean up
32543         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32544         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32545         That is unnecessary, since it's always ".".
32546         Suggestion from Eric Blake.
32547
32548         test-pread.sh: make executable
32549         * tests/test-pread.sh: Set executable bit.
32550         Reported by Eric Blake.
32551
32552         correct typo in test-pread.sh
32553         * tests/test-pread.sh: Add #! line.
32554
32555         test pread
32556         * tests/test-pread.c: New file.
32557         * tests/test-pread.sh: Likewise.
32558         * modules/pread-tests: Likewise.
32559
32560         pread: new module
32561         * modules/pread: New file.
32562         * lib/unistd.in.h (pread): Define/declare.
32563         * lib/pread.c (pread): New file.
32564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32565         * modules/unistd (Makefile.am): Substitute witnesses.
32566         * doc/posix-functions/pread.texi (pread): Update.
32567         * MODULES.html.sh: Add pread.
32568
32569 2009-11-25  Jim Meyering  <meyering@redhat.com>
32570
32571         tests/init.sh: new file to be used via most *.sh tests
32572         * tests/init.sh: New file.
32573
32574 2009-11-25  Eric Blake  <ebb9@byu.net>
32575
32576         utimens: work around older Linux failure with symlinks
32577         * lib/utimens.c (lutimensat_works_really): New variable.
32578         (fdutimens, lutimens): Use it to manage kernels that support
32579         nanosecond times on files, but not on symlinks.
32580         Reported by OndÅ™ej Vašík.
32581
32582         utimes: fix configure grammar
32583         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32584
32585 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32586
32587         regex: Fix fastmap for multibyte character ranges.
32588         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32589         characters when a multibyte character range is included.
32590
32591 2009-11-22  Andy Wingo  <wingo@pobox.com>
32592
32593         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32594         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32595
32596 2009-11-24  Bruno Haible  <bruno@clisp.org>
32597
32598         doc: Most *_l functions exist in MacOS X 10.5.
32599         * doc/posix-functions/duplocale.texi: Update platforms list.
32600         * doc/posix-functions/freelocale.texi: Likewise.
32601         * doc/posix-functions/newlocale.texi: Likewise.
32602         * doc/posix-functions/uselocale.texi: Likewise.
32603         * doc/posix-functions/isalnum_l.texi: Likewise.
32604         * doc/posix-functions/isalpha_l.texi: Likewise.
32605         * doc/posix-functions/isblank_l.texi: Likewise.
32606         * doc/posix-functions/iscntrl_l.texi: Likewise.
32607         * doc/posix-functions/isdigit_l.texi: Likewise.
32608         * doc/posix-functions/isgraph_l.texi: Likewise.
32609         * doc/posix-functions/islower_l.texi: Likewise.
32610         * doc/posix-functions/isprint_l.texi: Likewise.
32611         * doc/posix-functions/ispunct_l.texi: Likewise.
32612         * doc/posix-functions/isspace_l.texi: Likewise.
32613         * doc/posix-functions/isupper_l.texi: Likewise.
32614         * doc/posix-functions/iswalnum_l.texi: Likewise.
32615         * doc/posix-functions/iswalpha_l.texi: Likewise.
32616         * doc/posix-functions/iswblank_l.texi: Likewise.
32617         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32618         * doc/posix-functions/iswctype_l.texi: Likewise.
32619         * doc/posix-functions/iswdigit_l.texi: Likewise.
32620         * doc/posix-functions/iswgraph_l.texi: Likewise.
32621         * doc/posix-functions/iswlower_l.texi: Likewise.
32622         * doc/posix-functions/iswprint_l.texi: Likewise.
32623         * doc/posix-functions/iswpunct_l.texi: Likewise.
32624         * doc/posix-functions/iswspace_l.texi: Likewise.
32625         * doc/posix-functions/iswupper_l.texi: Likewise.
32626         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32627         * doc/posix-functions/isxdigit_l.texi: Likewise.
32628         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32629         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32630         * doc/posix-functions/strcoll_l.texi: Likewise.
32631         * doc/posix-functions/strfmon_l.texi: Likewise.
32632         * doc/posix-functions/strftime_l.texi: Likewise.
32633         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32634         * doc/posix-functions/strxfrm_l.texi: Likewise.
32635         * doc/posix-functions/tolower_l.texi: Likewise.
32636         * doc/posix-functions/toupper_l.texi: Likewise.
32637         * doc/posix-functions/towctrans_l.texi: Likewise.
32638         * doc/posix-functions/towlower_l.texi: Likewise.
32639         * doc/posix-functions/towupper_l.texi: Likewise.
32640         * doc/posix-functions/wcscoll_l.texi: Likewise.
32641         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32642         * doc/posix-functions/wctrans_l.texi: Likewise.
32643         * doc/posix-functions/wctype_l.texi: Likewise.
32644         * doc/glibc-functions/strptime_l.texi: Likewise.
32645         * doc/glibc-functions/strtod_l.texi: Likewise.
32646         * doc/glibc-functions/strtof_l.texi: Likewise.
32647         * doc/glibc-functions/strtol_l.texi: Likewise.
32648         * doc/glibc-functions/strtold_l.texi: Likewise.
32649         * doc/glibc-functions/strtoll_l.texi: Likewise.
32650         * doc/glibc-functions/strtoul_l.texi: Likewise.
32651         * doc/glibc-functions/strtoull_l.texi: Likewise.
32652         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32653         * doc/glibc-functions/wcstod_l.texi: Likewise.
32654         * doc/glibc-functions/wcstof_l.texi: Likewise.
32655         * doc/glibc-functions/wcstol_l.texi: Likewise.
32656         * doc/glibc-functions/wcstold_l.texi: Likewise.
32657         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32658         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32659         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32660
32661 2009-11-24  Bruno Haible  <bruno@clisp.org>
32662
32663         duplocale: Fix logic bug.
32664         * lib/duplocale.c: Don't include <langinfo.h>.
32665         (_NL_LOCALE_NAME): Remove macro.
32666         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32667         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32668
32669 2009-11-23  Jim Meyering  <meyering@redhat.com>
32670
32671         test-update-copyright: don't hard-code /usr/bin/perl
32672         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32673         perl to print the current year.  Gilles Espinasse reported that
32674         the replaced use of perl was hard-coded as /usr/bin/perl.
32675
32676 2009-11-23  Bruno Haible  <bruno@clisp.org>
32677
32678         duplocale: Add support for glibc 2.3.x.
32679         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32680
32681 2009-11-22  Bruno Haible  <bruno@clisp.org>
32682
32683         vasnprintf: Tiny optimization.
32684         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32685         MacOS X.
32686
32687 2009-11-22  Bruno Haible  <bruno@clisp.org>
32688
32689         Tests for module 'duplocale'.
32690         * modules/duplocale-tests: New file.
32691         * tests/test-duplocale.c: New file.
32692
32693         New module 'duplocale'.
32694         * m4/duplocale.m4: New file.
32695         * lib/locale.in.h (duplocale): New declaration.
32696         * lib/duplocale.c: New file.
32697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32698         gl_LOCALE_H_DEFAULTS): New macros.
32699         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32700         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32701         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32702         REPLACE_DUPLOCALE.
32703         * modules/duplocale: New file.
32704         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32705
32706 2009-11-22  Bruno Haible  <bruno@clisp.org>
32707
32708         * modules/locale-tests (configure.ac): Test for newlocale function.
32709         * tests/test-locale.c: When the system has extended locale functions,
32710         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32711
32712         locale: Make locale_t available when possible.
32713         * lib/locale.in.h: Include <xlocale.h> when it exists.
32714         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32715         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32716         * modules/locale (Depends-on): Add extensions.
32717         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32718         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32719
32720 2009-11-22  Bruno Haible  <bruno@clisp.org>
32721
32722         Add comments.
32723         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32724         invocation.
32725         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32726         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32727         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32728
32729 2009-11-22  Bruno Haible  <bruno@clisp.org>
32730
32731         error: account for the possibility of freopen (stdout).
32732         * lib/error.c: Include <unistd.h>.
32733         (flush_stdout): New function, extracted from error and error_at_line.
32734         Determine stdout's fd dynamically.
32735         (error, error_at_line): Invoke flush_stdout.
32736         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32737         * modules/error (Depends-on): Add unistd.
32738
32739 2009-11-22  Bruno Haible  <bruno@clisp.org>
32740
32741         diffseq: Add comment.
32742         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32743
32744 2009-11-22  Jim Meyering  <meyering@redhat.com>
32745
32746         c-stack: avoid defining an unused static function
32747         * lib/c-stack.c (find_stack_direction): Do not define this function
32748         when it will not be used.
32749
32750         diffseq: avoid spurious gcc warnings
32751         * lib/diffseq.h (IF_LINT2): Define.
32752         (compareseq): Use it to initialize two members of "part".
32753         This avoids two used-uninitialized warnings.
32754
32755 2009-11-21  Jim Meyering  <meyering@redhat.com>
32756
32757         c-stack: avoid "ignoring return value of `write'" warning
32758         * lib/c-stack.c: Include "ignore-value.h".
32759         (die): Explicitly ignore each write return value.
32760         * modules/c-stack (Depends-on): Add ignore-value.
32761
32762 2009-11-21  Bruno Haible  <bruno@clisp.org>
32763
32764         diffseq: reduce scope of variable 'best'.
32765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32766         variable, earlier used for two different purposes.
32767
32768 2009-11-21  Jim Meyering  <meyering@redhat.com>
32769
32770         diffseq: remove useless assignment to "best"
32771         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32772         assignment.  At that point "best" is already guaranteed to be zero.
32773
32774 2009-11-20  Eric Blake  <ebb9@byu.net>
32775
32776         build: mention ftp redirector in release announcements
32777         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32778         values that used to come from cfg.mk; mention FTP redirect URL.
32779         * build-aux/announce-gen: Mention the mirror list.
32780         Suggested by Karl Berry.
32781
32782         nanosleep: improve port to mingw
32783         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32785         LIB_NANOSLEEP, but only when needed.
32786         * modules/select (Link): Document LIBSOCKET.
32787         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32788         enough.
32789
32790         nanosleep: work around cygwin bug
32791         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32792         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32793         bug.
32794         (getnow): Delete, not needed.
32795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32796         LIB_CLOCK_GETTIME.
32797         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32798         clock-time, gettime.
32799         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32800         bug.
32801         * modules/nanosleep-tests: New test.
32802         * tests/test-nanosleep.c: New file.
32803
32804         sleep: work around cygwin bug
32805         * lib/sleep.c (rpl_sleep): Work around the bug.
32806         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32807         (gl_PREREQ_SLEEP): Delete unused macro.
32808         * modules/sleep (Depends-on): Add verify.
32809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32810         * modules/unistd (Makefile.am): Substitute witness.
32811         * lib/unistd.in.h (sleep): Update prototype.
32812         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32813         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32814         * modules/sleep-tests (Depends-on): Check for alarm.
32815
32816 2009-11-20  Jim Meyering  <meyering@redhat.com>
32817
32818         maint.mk: improve sc_prohibit_magic_number_exit
32819         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32820         so it does not match uses like System.exit(1).
32821         Add comments showing how to correct all offenders.
32822
32823 2009-11-19  Eric Blake  <ebb9@byu.net>
32824
32825         xalloc-die-tests: add missing library
32826         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32827
32828         test-xvasprintf: silence compiler warnings
32829         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32830         empty string from gcc.
32831
32832 2009-11-19  Jim Meyering  <meyering@redhat.com>
32833
32834         xfreopen: new module, from coreutils
32835         * modules/xfreopen: New module.
32836         * lib/xfreopen.c: New file.
32837         * lib/xfreopen.h: New file.
32838         * MODULES.html.sh (File stream based Input/Output"): Add it.
32839
32840 2009-11-19  Eric Blake  <ebb9@byu.net>
32841
32842         manywarnings: depend on warnings
32843         * modules/manywarnings (Depends-on): Add warnings.
32844
32845         build: avoid compiler warnings
32846         * lib/select.c (rpl_select): Delete unused variable.
32847         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32848
32849 2009-11-18  Eric Blake  <ebb9@byu.net>
32850
32851         tests: avoid false negative with --with-packager
32852         * tests/test-version-etc.sh: Discard packager information.
32853         * tests/test-argp-version-etc-1.sh: Likewise.
32854         Reported by Mike Frysinger.
32855
32856         utimens: fix regression on Solaris
32857         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32858         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32859         can only change fd timestamps via futimesat.  Instead, use an
32860         additional witness macro to avoid BSD bug.
32861         Reported by Jim Meyering.
32862
32863 2009-11-17  Eric Blake  <ebb9@byu.net>
32864
32865         usleep: use it to simplify tests
32866         * modules/stat-time-tests (Depends-on): Add usleep.
32867         (configure.ac): Drop usleep check.
32868         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32869         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32870         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32871         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32872         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32873         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32874         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32875         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32876         Likewise.
32877         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32878         * tests/test-lchown.h (nap): Likewise.
32879         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32880         * tests/test-stat-time.c (nap): Likewise.
32881         * tests/test-utimens-common.h (nap): Update comments.
32882
32883         usleep: new module
32884         * modules/usleep: New file.
32885         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32886         * lib/usleep.c (usleep): Likewise.
32887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32888         * modules/unistd (Makefile.am): Substitute witnesses.
32889         * lib/unistd.in.h (usleep): Add declaration.
32890         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32891         * MODULES.html.sh (Date and time): Likewise.
32892         * modules/usleep-tests (Depends-on): New test.
32893         * tests/test-usleep.c: New file.
32894
32895         chown: work around OpenBSD bug
32896         * lib/chown.c (rpl_chown): Work around the bug.
32897         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32898         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32900         * modules/chown (Depends-on): Add stdbool.
32901         * modules/lchown (Depends-on): Likewise.
32902         * doc/posix-functions/chown.texi (chown): Document the bug.
32903         * doc/posix-functions/lchown.texi (lchown): Likewise.
32904         * tests/test-lchown.h (test_chown): Relax test.
32905
32906         mkstemp: avoid conflict with C++ keyword template
32907         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32908         * lib/mkostemp.c (mkostemp): Likewise.
32909         * lib/mkostemps.c (mkostemps): Likewise.
32910         * lib/mkstemp.c (mkstemp): Likewise.
32911         * lib/mkstemps.c (mkstemps): Likewise.
32912
32913         xalloc-die-tests: optimize
32914         * tests/test-xalloc-die.sh: Reduce number of processes.
32915
32916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32917
32918         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32919         patch from ludo@gnu.org (Ludovic Courtès).
32920
32921 2009-11-17  Jim Meyering  <meyering@redhat.com>
32922
32923         version-etc: use proper license string
32924         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32925         * modules/version-etc-fsf: Likewise.
32926
32927 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32928
32929         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32930         printed to stdout.  Deal with EOL differences.
32931
32932 2009-11-17  Eric Blake  <ebb9@byu.net>
32933
32934         unsetenv: work around Solaris bug
32935         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32936         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32937         Reported by Jim Meyering.
32938
32939         vasnprintf: avoid compiler warnings
32940         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32941         variables.
32942         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32943
32944 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32945
32946         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32947         settings since xalloc-die is no longer the self test,
32948         xalloc-die.sh is.
32949
32950 2009-11-17  Jim Meyering  <meyering@redhat.com>
32951
32952         test-xalloc-die.sh: make the code agree with the commit log
32953         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32954         at the end, just in case you happen to have a test-xalloc-die
32955         program in some other PATH directory.
32956
32957         test-xalloc-die.sh: fix a portability bug
32958         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32959         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32960         Otherwise, argv[0] (as often seen in diagnostics) would be too
32961         system-dependent, sometimes with, and sometimes without the leading "./".
32962
32963         version-etc-fsf: relax license to LGPLv3+
32964         * modules/version-etc-fsf (License): Relax license.
32965
32966 2009-11-16  Eric Blake  <ebb9@byu.net>
32967
32968         xalloc-die-tests: avoid printing null pointer
32969         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32970         shell script.
32971         * tests/test-xalloc-die.c (program_name): Declare.
32972         * tests/test-xalloc-die.sh (tmpfiles): New file.
32973
32974         setenv, unsetenv: work around various bugs
32975         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32976         (setenv) [HAVE_SETENV]: Work around bugs.
32977         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32979         for bugs.
32980         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32981         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32983         * modules/stdlib (Makefile.am): Update substitutions.
32984         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32985         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32986         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32987         * modules/setenv-tests: New test.
32988         * modules/unsetenv-tests: Likewise.
32989         * tests/test-setenv.c: New file.
32990         * tests/test-unsetenv.c: Likewise.
32991
32992 2009-11-16  Jim Meyering  <meyering@redhat.com>
32993
32994         version-etc: relax license to LGPLv3+
32995         * modules/version-etc (License): Relax license.
32996
32997         better AC_REQUIRE expanded-before-required-warning avoidance
32998         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32999         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33000         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33001         which is no longer needed.
33002
33003 2009-11-16  Eric Blake  <ebb9@byu.net>
33004
33005         test-freading: clean up temporary file
33006         * tests/test-freading.c (main): Remove file on success, and use
33007         ASSERT more liberally.
33008         Reported by Jim Meyering.
33009
33010 2009-11-16  Jim Meyering  <meyering@redhat.com>
33011
33012         avoid new AC_REQUIRE expanded-before-required warnings
33013         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33014         merely using it.
33015         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33016         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33017
33018 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33019
33020         * tests/test-xalloc-die.c: New file.
33021         * modules/xalloc-die-tests: New file.
33022         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33023         XFAIL_TESTS so it can be appended by modules.
33024
33025 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33026
33027         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33028         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33029
33030 2009-11-14  Eric Blake  <ebb9@byu.net>
33031
33032         fnmatch: avoid compiler warning
33033         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33034         to silence compiler warning about mismatch signedness in ?:.
33035         Reported by Robert Millan.
33036
33037         intprops: add double-inclusion guard
33038         * lib/intprops.h: Allow idempotent includes.
33039         Suggested by Bruce Korb.
33040
33041         openat: detect Solaris fchownat bug
33042         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33043         penalizing glibc chownat when only lchownat is broken.
33044         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33045         trailing slash bugs.
33046         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33047         * modules/openat-tests (Files): Include more files.
33048         (Depends-on): Add mgetgroups, sleep, stat-time.
33049         (configure.ac): Add additional checks.
33050         (Makefile.am): Build new test.
33051         * tests/test-fchownat.c: New file.
33052
33053         lchown: detect Solaris and FreeBSD bug
33054         * lib/lchown.c (rpl_lchown): Work around bug.
33055         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33057         * modules/unistd (Makefile.am): Populate it.
33058         * lib/unistd.in.h (lchown): Update declaration.
33059         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33060         * modules/lchown-tests: New file.
33061         * tests/test-lchown.h (test_lchown): Likewise.
33062         * tests/test-lchown.c (main): Likewise.
33063
33064         chown: detect Solaris and FreeBSD bug
33065         * lib/chown.c (rpl_chown): Work around bug.
33066         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33067         (gl_PREREQ_CHOWN): Delete.
33068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33069         * modules/unistd (Makefile.am): Populate it.
33070         * lib/unistd.in.h (chown): Update declaration.
33071         * lib/lchown.c (chown): Update client.
33072         * modules/lchown (Depends-on): Add lstat.
33073         * doc/posix-functions/chown.texi (chown): Document the bug.
33074         * doc/posix-functions/getgroups.texi (getgroups): Document
33075         getgroups pitfall.
33076         * modules/chown-tests: New file.
33077         * tests/test-chown.h (test_chown): Likewise.
33078         * tests/test-chown.c (main): Likewise.
33079
33080 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33081
33082         gnulib-tool: correctly detect absence of m4 directories
33083         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33084
33085 2009-11-14  Jim Meyering  <meyering@redhat.com>
33086
33087         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33088         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33089
33090 2009-11-14  John W. Eaton  <jwe@gnu.org>
33091
33092         strftime.h: wrap funtion declaration in extern "C" block
33093         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33094
33095 2009-11-13  Eric Blake  <ebb9@byu.net>
33096
33097         getgroups: avoid compiler warning
33098         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33099
33100         getgroups: work around FreeBSD bug
33101         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33102         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33103         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33104         * tests/test-getgroups.c (main): Fix buffer overrun.
33105
33106         getgroups: avoid compilation failure
33107         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33108         * modules/getgroups (Depends-on): Add stdint.
33109
33110 2009-11-13  Jim Meyering  <meyering@redhat.com>
33111
33112         test-getgroups: avoid compilation failure
33113         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33114
33115 2009-11-13  Eric Blake  <ebb9@byu.net>
33116
33117         mgetgroups: new module, taken from coreutils
33118         * modules/mgetgroups: New file.
33119         * lib/mgetgroups.h: Likewise.
33120         * lib/mgetgroups.c (mgetgroups): Likewise.
33121         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33122         * MODULES.html.sh (Users and groups): Mention it.
33123
33124         getgroups: don't expose GETGROUPS_T to user
33125         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33126         an element at a time if GETGROUPS_T is wrong size.
33127         * lib/getugroups.h (getugroups): Change signature.
33128         * lib/unistd.in.h (getgroups): Likewise.
33129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33130         signature needs fixing.
33131         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33132         AC_TYPE_GETGROUPS.
33133         * modules/group-member (Depends-on): Add getgroups.
33134         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33135         (group_member): Rely on getgroups replacement.
33136         * lib/getugroups.c (getugroups): Use gid_t.
33137         * tests/test-getgroups.c (main): Likewise.
33138         * NEWS: Mention the signature change.
33139         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33140         problem with signature.
33141         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33142         GETGROUPS_T is still useful for setgroups.
33143
33144         getgroups, getugroups: provide stubs for mingw
33145         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33146         * lib/getugroups.c (getugroups): Likewise.
33147         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33148         function.  Modernize replacement scheme.
33149         (gl_PREREQ_GETGROUPS): Delete.
33150         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33151         * modules/getgroups (configure.ac): Declare witness.
33152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33153         * modules/unistd (Depends-on): Substitute witness.
33154         * lib/unistd.in.h (getgroups): Declare replacement.
33155
33156         getgroups: avoid calling exit
33157         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33158         drop xalloc.
33159         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33160         dependencies.
33161         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33162         exiting, in the rare case of malloc failure.
33163
33164         getgroups: fix logic error
33165         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33166         has more than 20 groups.
33167         * modules/getgroups-tests: New test.
33168         * tests/test-getgroups.c: New file.
33169
33170 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33171
33172         * tests/test-base64.c: Improve.
33173
33174 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33175
33176         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33177         Blake <ebb9@byu.net>.
33178
33179 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33180
33181         * tests/test-xvasprintf.c: Add %s%s related checks.
33182
33183 2009-11-12  Eric Blake  <ebb9@byu.net>
33184
33185         version-etc: match standards.texi style
33186         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33187         and use <> only for URLs.
33188
33189 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33190
33191         fts: do not fail on a submount during traversal
33192         * lib/fts.c (fts_build): Read the stat info again after opening
33193         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33194         Original report at http://bugzilla.redhat.com/501848.
33195
33196 2009-11-12  Jim Meyering  <meyering@redhat.com>
33197
33198         bootstrap: sync from coreutils
33199         * build-aux/bootstrap (bootstrap_epilogue): New function.
33200         Use git_modules_config in one more place.  This make bootstrap's
33201         --gnulib-srcdir option more useful for testing.
33202
33203         bootstrap: generalize autoheader check
33204         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33205         AC_CONFIG_HEADERS.
33206
33207 2009-11-11  Eric Blake  <ebb9@byu.net>
33208
33209         mkfifoat: use new modules for Solaris and BSD bugs
33210         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33211         * lib/mkfifoat.c (mknodat): Split...
33212         * lib/mknodat.c (mknodat): ...into new file.
33213         * modules/mkfifoat (Files): Ship new file.
33214         (Depends-on): Add mkfifo, mknod.
33215         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33216         (Depends-on): Add symlink.
33217         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33218         redundant with test_mkfifo.h.
33219         (do_mkfifoat, do_mknodat): New helpers.
33220
33221         mknod: new module
33222         * modules/mknod: New file.
33223         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33224         * lib/mknod.c (mknod): Likewise.
33225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33226         defaults.
33227         * modules/sys_stat (Makefile.am): Substitute them.
33228         * lib/sys_stat.in.h (mknod): Declare replacement.
33229         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33230         Document it.
33231         * doc/posix-functions/mknod.texi (mknod): Likewise.
33232         * modules/mknod-tests: New test.
33233         * tests/test-mknod.c: Likewise.
33234
33235         mkfifo: new module
33236         * modules/mkfifo: New file.
33237         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33238         * lib/mkfifo.c (mkfifo): Likewise.
33239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33240         defaults.
33241         * modules/sys_stat (Makefile.am): Substitute them.
33242         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33243         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33244         Document it.
33245         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33246         * modules/mkfifo-tests: New test.
33247         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33248         from test-mkfifoat.c.
33249         * tests/test-mkfifo.c: New file.
33250
33251         readlink: detect FreeBSD bug
33252         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33253         slash on symlink.
33254         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33255         * tests/test-readlink.h (test_readlink): Enhance test.
33256
33257         symlink: detect FreeBSD bug
33258         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33259         slash on symlink.
33260         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33261         * tests/test-symlink.h (test_symlink): Enhance test.
33262
33263 2009-11-10  Eric Blake  <ebb9@byu.net>
33264
33265         link: detect FreeBSD bug
33266         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33267         symlink.
33268         * doc/posix-functions/link.texi (link): Document the bug.
33269         * tests/test-link.h (test_link): Enhance test.
33270         * tests/test-linkat.c (main): Update caller.
33271
33272         unlink, remove: detect FreeBSD bug
33273         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33274         slash on symlink.
33275         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33276         * doc/posix-functions/remove.texi (remove): Likewise.
33277         * tests/test-unlink.h (test_unlink): Enhance test.
33278         * tests/test-remove.c (main): Likewise.
33279
33280 2009-11-09  Eric Blake  <ebb9@byu.net>
33281
33282         rename: detect FreeBSD bug
33283         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33284         slash on symlink.
33285         * modules/renameat-tests (Depends-on): Add filenamecat.
33286         * tests/test-rename.h (test_rename): Allow one more errno.
33287         * tests/test-renameat.c (main): Likewise.
33288         * doc/posix-functions/rename.texi (rename): Document the bug.
33289
33290         open: detect FreeBSD bug
33291         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33292         symlink.
33293         * doc/posix-functions/open.texi (open): Document the bug.
33294         * doc/posix-functions/utimes.texi (utimes): Likewise.
33295         * tests/test-open.h (test_open): Add parameters, and test symlink
33296         handling.
33297         * tests/test-open.c (main): Adjust caller.
33298         * tests/test-fcntl-safer.c (main): Likewise.
33299         * modules/open-tests (Depends-on): Add stdbool, symlink.
33300         * modules/fcntl-safer-tests (Depends-on): Likewise.
33301         * tests/test-openat.c (main): Add test-open tests.
33302
33303         stat: detect FreeBSD bug
33304         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33305         symlink.
33306         * doc/posix-functions/stat.texi (stat): Document the bug.
33307         * tests/test-stat.h (test_stat_func): Add argument.
33308         * tests/test-stat.c (main): Adjust caller.
33309         * tests/test-fstatat.c (main): Likewise.
33310         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33311         Reported by Jim Meyering.
33312
33313 2009-11-09  James Youngman  <jay@gnu.org>
33314
33315         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33316         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33317
33318 2009-11-08  Jim Meyering  <meyering@redhat.com>
33319
33320         utimens: remove invalid futimesat call
33321         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33322         It used the file descriptor of the target file as the DIR_FD
33323         parameter and NULL as the file name.  That caused failure with
33324         errno == EFAULT on FreeBSD-8.0-rc2
33325
33326 2009-11-07  Eric Blake  <ebb9@byu.net>
33327
33328         fflush, freadseek: use fseeko, not fseek
33329         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33330         (clear_ungetc_buffer): Avoid potential problems on large files.
33331         * lib/freadseek.c (freadseek): Likewise.
33332         * modules/freadseek (Depends-on): Add fseeko.
33333         * modules/fseek (configure.ac): Set a witness.
33334         * tests/test-fflush.c (main): Use fseeko.
33335         * tests/test-fpurge.c (fseek): Disable link warning.
33336         * tests/test-freadable.c (fseek): Likewise.
33337         * tests/test-freading.c (fseek): Likewise.
33338         * tests/test-fseeko.c (fseek): Likewise.
33339         * tests/test-ftell.c (fseek): Likewise.
33340         * tests/test-ftello.c (fseek): Likewise.
33341         * tests/test-fwritable.c (fseek): Likewise.
33342         * tests/test-fwriting.c (fseek): Likewise.
33343
33344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33345
33346         * modules/memchr (Depends-on): Drop getpagesize dependency.
33347
33348 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33349
33350         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33351         Reported by Ludovic Courtès.
33352         * build-aux/pmccabe2html: Improve example usage.
33353         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33354
33355 2009-11-06  Jim Meyering  <meyering@redhat.com>
33356
33357         do-release-commit-and-tag: New module.
33358         Automate the release-commit and tag process.
33359         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33360         * modules/do-release-commit-and-tag: New file.
33361         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33362
33363 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33364
33365         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33366         because test-select.c uses inet_pton.
33367
33368 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33369
33370         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33371         GETADDRINFO_LIB.  Bump serial number.
33372         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33373         Suggested by Eric Blake <ebb9@byu.net>.
33374
33375 2009-11-05  Eric Blake  <ebb9@byu.net>
33376
33377         strtod: detect darwin bug
33378         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33379         Reported by Leo Davis.
33380
33381         freopen-safer: new module
33382         * modules/freopen-safer: New module.
33383         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33384         * lib/freopen-safer.c (freopen_safer): New file.
33385         * lib/stdio-safer.h (freopen_safer): New declaration.
33386         * lib/stdio--.h (freopen): New override.
33387         * MODULES.html.sh (File stream based Input/Output): Mention it.
33388         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33389         freopen-safer module.
33390         * doc/posix-functions/stderr.texi (stderr): Likewise.
33391         * doc/posix-functions/stdin.texi (stdin): Likewise.
33392         * doc/posix-functions/stdout.texi (stdout): Likewise.
33393         * modules/freopen-safer-tests: New test.
33394         * tests/test-reopen-safer.c: New file.
33395
33396 2009-11-05  Jim Meyering  <meyering@redhat.com>
33397
33398         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33399         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33400
33401 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33402
33403         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33404
33405 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33406
33407         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33408
33409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33410
33411         Fix link error.
33412         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33413         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33414
33415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33416
33417         * tests/test-func.c: Also test value of __func__.
33418
33419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33420
33421         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33422         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33423
33424 2009-11-05  Bruno Haible  <bruno@clisp.org>
33425
33426         Fix link error.
33427         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33428         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33429         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33430
33431 2009-11-05  Bruno Haible  <bruno@clisp.org>
33432
33433         Tests for module 'inet_pton'.
33434         * modules/inet_pton-tests: New file.
33435         * tests/test-inet_pton.c: New file.
33436
33437 2009-11-05  Bruno Haible  <bruno@clisp.org>
33438
33439         Tests for module 'inet_ntop'.
33440         * modules/inet_ntop-tests: New file.
33441         * tests/test-inet_ntop.c: New file.
33442
33443 2009-11-04  Eric Blake  <ebb9@byu.net>
33444
33445         stdlib-safer: wrap all mkstemp variants
33446         * modules/mkostemp (configure.ac): Set witness.
33447         * modules/mkostemps (configure.ac): Likewise.
33448         * modules/mkstemps (configure.ac): Likewise.
33449         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33450         (mkstemps_safer): Wrap more functions.
33451         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33452         wrapping.
33453         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33454         (mkstemps_safer): Implement the wrappers.
33455
33456         mkstemps, mkostemps: new modules
33457         * modules/mkostemps: New module.
33458         * modules/mkstemps: Likewise.
33459         * lib/mkostemps.c (mkostemps): New file.
33460         * lib/mkstemps.c (mkstemps): Likewise.
33461         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33462         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33464         * modules/stdlib (Makefile.am): Substitute them.
33465         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33466         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33467         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33468         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33469         * MODULES.html.sh (File system functions): Mention them.
33470
33471         tempname: resync from glibc
33472         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33473         same values for __GT_FILE as glibc.  Abort even when assertions
33474         are disabled.
33475         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33476         match its value otherwise.  Allow idempotent inclusion.
33477         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33478         * lib/mkostemp.c (mkostemp): Likewise.
33479         * lib/mkstemp.c (mkstemp): Likewise.
33480         * lib/tmpfile.c (tmpfile): Likewise.
33481         * NEWS: Document this.
33482
33483         utimens: fix use of futimens on older Linux
33484         * lib/utimens.c (fdutimens): Use updated, rather than original,
33485         timespec to avoid bug in older Linux kernel.
33486         Reported by Simon Josefsson.
33487
33488 2009-11-04  Bruno Haible  <bruno@clisp.org>
33489
33490         Make num_processors more flexible and consistent.
33491         * lib/nproc.h (enum nproc_query): New type.
33492         (num_processors): Add a 'query' argument.
33493         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33494         (num_processors): Add a 'query' argument. Test the value of the
33495         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33496         mingw, count the number of CPUs available for the current process.
33497         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33498         Check for sched_getaffinity and sched_getaffinity_np.
33499         * modules/nproc (Depends-on): Add c-ctype, extensions.
33500         * NEWS: Mention the change.
33501
33502 2009-11-03  Bruno Haible  <bruno@clisp.org>
33503
33504         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33505
33506 2009-11-03  Jim Meyering  <meyering@redhat.com>
33507
33508         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33509         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33510         if it is defined.
33511
33512 2009-11-02  Eric Blake  <ebb9@byu.net>
33513
33514         mktime, timegm: share common declaration
33515         * lib/mktime-internal.h: New file.
33516         * lib/mktime.c: Use it rather than open-coding a declaration.
33517         * lib/timegm.c: Likewise.
33518         * modules/mktime (Files): Ship it.
33519         * modules/timegm (Files): Likewise.
33520         Suggested by Bruno Haible.
33521
33522         test-update-copyright: update test to match script changes
33523         * tests/test-update-copyright.sh: Avoid hard-coding perl
33524         location.  Don't update *.bak created by earlier runs.
33525
33526 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33527             Simon Josefsson  <simon@josefsson.org>
33528             Bruno Haible  <bruno@clisp.org>
33529
33530         Fix link error on Solaris 8.
33531         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33532         also in libnsl. Define also INET_PTON_LIB.
33533         * modules/inet_pton (Link): New section.
33534
33535 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33536             Bruno Haible  <bruno@clisp.org>
33537
33538         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33539         * modules/inet_ntop (Link): New section.
33540         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33541
33542 2009-11-02  Eric Blake  <ebb9@byu.net>
33543
33544         maint: avoid compiler warnings in m4 macros
33545         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33547
33548 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33549
33550         * m4/pmccabe2html.m4: Remove file.
33551         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33552         function.  Change maintainer.
33553         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33554         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33555         Courtès).
33556
33557 2009-10-31  Eric Blake  <ebb9@byu.net>
33558
33559         fseeko: fix m4 regression
33560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33561         regression from 2009-10-27.
33562         Reported by Ralf Wildenhues.
33563
33564 2009-10-31  Jim Meyering  <meyering@redhat.com>
33565
33566         inttostr: aesthetics and improved (compile-time) safety
33567         Define inttype_is_signed rather than inttype_is_unsigned,
33568         since the sole use is via "#if inttype_is_signed".
33569         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33570         inttype_is_unsigned.
33571         * lib/offtostr.c (inttype_is_signed): Likewise.
33572         * lib/uinttostr.c (inttype_is_signed): Likewise.
33573         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33574         * lib/inttostr.c (inttostr): Use verify to cross-check the
33575         inttype_is_signed value and the signedness of the actual type.
33576         * modules/inttostr (Depends-on): Add verify.
33577
33578 2009-10-30  Eric Blake  <ebb9@byu.net>
33579
33580         build: avoid compiler warnings
33581         * lib/fchmodat.c (lchmod): Mark unused variables.
33582         * lib/getopt.c (_getopt_initialize): Likewise.
33583         * lib/mktime.c (__mktime_internal): Provide prototype.
33584         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33585         older gcc that do not understand #pragma GCC diagnostic.
33586         * lib/uinttostr.c (inttype_is_unsigned): Define.
33587         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33588
33589 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33590
33591         stat: fix compilation on AIX
33592         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33593         only see struct stat64.
33594
33595 2009-10-30  Eric Blake  <ebb9@byu.net>
33596
33597         exclude: make more robust
33598         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33599         rather than masking a coding bug.
33600         Suggested by Bruno Haible.
33601
33602 2009-10-30  Jim Meyering  <meyering@redhat.com>
33603
33604         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33605         Rather than putting #!/usr/bin/perl on the first line,
33606         start with a variant of what's recommended by "man perlrun" that
33607         invokes the first "perl" program from your shell's search path.
33608         * build-aux/gitlog-to-changelog: Replace #!... as above.
33609         Add a "Local Variables" perl mode setting.
33610         Prompted by a patch from Ludovic Courtès.
33611         Improved by Eric Blake.
33612         * build-aux/useless-if-before-free: Likewise.
33613         * build-aux/announce-gen: Likewise.
33614         * build-aux/update-copyright: Likewise.
33615
33616 2009-10-29  Eric Blake  <ebb9@byu.net>
33617
33618         filenamecat-lgpl: adjust clients
33619         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33620         filenamecat.
33621         * modules/renameat (Depends-on): Likewise.
33622
33623         filenamecat: split into filenamecat-lgpl
33624         * modules/filenamecat-lgpl: New module.
33625         * modules/filenamecat (Files): Move library-safe files into
33626         filenamecat-lgpl.
33627         (Depends-on): Add filenamecat-lgpl.
33628         (configure.ac): Declare witness.
33629         * lib/filenamecat.h (file_name_concat): Only declare when using
33630         GPL module.
33631         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33632         Move...
33633         * lib/filenamecat-lgpl.c: ...into new file.
33634         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33635         (gl_FILE_NAME_CONCAT): Use it.
33636         * MODULES.html.sh (File system functions): Mention new module.
33637
33638         argp: avoid memory leak
33639         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33640         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33641         base_name, since the latter malloc()s and can call exit().
33642         Leak introduced 2006-07-03.
33643
33644         dirname-lgpl: adjust clients that don't need full dirname
33645         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33646         * modules/filenamecat (Depends-on): Likewise.
33647         * modules/linkat (Depends-on): Likewise.
33648         * modules/mkancesdirs (Depends-on): Likewise.
33649         * modules/mkdir (Depends-on): Likewise.
33650         * modules/openat (Depends-on): Likewise.
33651         * modules/savewd (Depends-on): Likewise.
33652         * modules/rename (Depends-on): Likewise.
33653         (License): Relax license.
33654         * modules/mkdir-tests (Depends-on): Drop progname.
33655         (Makefile.am): Delete unneeded LDADD.
33656         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33657
33658         dirname: split into dirname-lgpl
33659         * modules/dirname-lgpl: New module.
33660         * modules/dirname (Files): Move library-safe files into
33661         dirname-lgpl.
33662         (Depends-on): Add dirname-lgpl.
33663         (configure.ac): Declare witness.
33664         * modules/double-slash-root (License): Relax license.
33665         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33666         module.
33667         * lib/dirname.c (dir_len, mdir_name): Move...
33668         * lib/dirname-lgpl.c: ...into new file.
33669         * lib/basename.c (last_component, base_len): Move...
33670         * lib/basename-lgpl.c: ...into new file.
33671         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33672         (gl_DIRNAME): Use it.
33673         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33674         Mention new module.
33675         * modules/dirname-tests (Depends-on): Add progname.
33676         * tests/test-dirname.c (program_name): Delete.
33677
33678         mkdir: make safe for libraries
33679         * modules/mkdir (Depends-on): Drop xalloc.
33680         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33681         exit.
33682
33683         tests: avoid some compiler warnings
33684         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33685         literals.
33686         * tests/test-memchr.c (main): Avoid type mismatch.
33687         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33688         * tests/test-base64.c (main): Likewise.
33689         * tests/test-getdelim.c (main): Likewise.
33690         * tests/test-gethostname.c (main): Likewise.
33691         * tests/test-getline.c (main): Likewise.
33692         * tests/test-netinet_in.c (main): Likewise.
33693         * tests/test-select.c (open_server_socket, main): Likewise.
33694         * tests/test-select-stdin.c (main): Likewise.
33695         * tests/test-sockets.c (main): Likewise.
33696         * tests/test-strsignal.c (main): Likewise.
33697         * tests/test-sys_select.c (main): Likewise.
33698         * tests/test-sys_socket.c (main): Likewise.
33699         * tests/test-u64.c (main): Likewise.
33700         * tests/test-xfprintf-posix.c (main): Likewise.
33701         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33702
33703         sockets: avoid compiler warning
33704         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33705
33706         maint: detect usage(1) and other suspicious exits
33707         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33708
33709 2009-10-29  Jim Meyering  <meyering@redhat.com>
33710
33711         timespec: long-to-int truncation could make timespec_cmp malfunction
33712         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33713         a multiple of 2^32 nanoseconds as no difference.
33714
33715 2009-10-28  Jim Meyering  <meyering@redhat.com>
33716
33717         fprintftime: wrap macro code argument in "do {...} while(0)"
33718         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33719         cpy macro must be a statement that can be followed by a semicolon.
33720         Now that the else clause contains a comment and is hence longer
33721         than one line, I require curly braces.  That in turn requires
33722         that we wrap this code block in the standard do...while(0).
33723
33724         fprintftime: remove stray semicolon from previous change
33725         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33726
33727         fprintftime: avoid a warning about ignored fwrite return value
33728         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33729         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33730         that is unsafe.
33731         * modules/fprintftime (Depends-on): Add ignore-value.
33732
33733         exclude: avoid an unwarranted warning
33734         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33735
33736 2009-10-27  Eric Blake  <ebb9@byu.net>
33737
33738         fseek: avoid compilation failure when fflush is replaced
33739         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33740         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33741         module is in use.
33742         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33743         module is not in use; since REPLACE_FSEEK worked otherwise.
33744         (GNULIB_FTELLO): Likewise for ftell.
33745         Reported by Ian Beckwith and others.
33746
33747 2009-10-27  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33750         Reported by Jim Meyering.
33751
33752 2009-10-27  Jim Meyering  <jim@meyering.net>
33753             Bruno Haible  <bruno@clisp.org>
33754
33755         Avoid warning despite dropping the return value of fwrite.
33756         * lib/unicodeio.c: Include ignore-value.h.
33757         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33758         * modules/unicodeio (Depends-on): Add ignore-value.
33759
33760 2009-10-26  Eric Blake  <ebb9@byu.net>
33761
33762         areadlinkat: fix fallback path
33763         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33764         pointer and zero.
33765
33766 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33767
33768         Use a better IO block size for modern systems
33769         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33770         * lib/md2.c: Likewise.
33771         * lib/md4.c: Likewise.
33772         * lib/md5.c: Likewise.
33773         * lib/sha1.c: Likewise.
33774         * lib/sha256.c: Likewise.
33775         * lib/sha512.c: Likewise.
33776
33777 2009-10-22  Eric Blake  <ebb9@byu.net>
33778
33779         tests: avoid several compiler warnings
33780         * tests/test-getcwd.c (main): Avoid buffer underflow.
33781         * tests/test-getdate.c (main): String literals are not safe with
33782         putenv, so use setenv.  Declare unused argument.
33783         * modules/getdate-tests (Depends-on): Add setenv.
33784         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33785         problems with string literals in char *.
33786         * tests/test-hash.c (main): Avoid shadowing declaration.
33787         (insert_new): Treat string literals as char const *.
33788         * tests/test-getopt.h (test_getopt): Likewise.
33789         (getopt_loop): Alter types to minimize casting elsewhere.
33790         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33791         (test_getopt_long_posix): Likewise.
33792         (do_getopt_long): Add wrapper to minimize casting.
33793         * tests/test-atexit.c (clear_temp_file): Use void.
33794         * tests/test-areadlink-with-size.c (main): Declare unused
33795         arguments.
33796         * tests/test-areadlink.c (main): Likewise.
33797         * tests/test-areadlinkat-with-size.c (main): Likewise.
33798         * tests/test-areadlinkat.c (main): Likewise.
33799         * tests/test-canonicalize-lgpl.c (main): Likewise.
33800         * tests/test-canonicalize.c (main): Likewise.
33801         * tests/test-dirent-safer.c (main): Likewise.
33802         * tests/test-dirname.c (main): Likewise.
33803         * tests/test-dup2.c (main): Likewise.
33804         * tests/test-fchdir.c (main): Likewise.
33805         * tests/test-fcntl-h.c (main): Likewise.
33806         * tests/test-fcntl-safer.c (main): Likewise.
33807         * tests/test-fdopendir.c (main): Likewise.
33808         * tests/test-fdutimensat.c (main): Likewise.
33809         * tests/test-fflush.c (main): Likewise.
33810         * tests/test-filenamecat.c (main): Likewise.
33811         * tests/test-filevercmp.c (main): Likewise.
33812         * tests/test-fopen-safer.c (main): Likewise.
33813         * tests/test-fopen.c (main): Likewise.
33814         * tests/test-fpending.c (main): Likewise.
33815         * tests/test-fpurge.c (main): Likewise.
33816         * tests/test-freading.c (main): Likewise.
33817         * tests/test-fstatat.c (main): Likewise.
33818         * tests/test-fsync.c (main): Likewise.
33819         * tests/test-futimens.c (main): Likewise.
33820         * tests/test-getndelim2.c (main): Likewise.
33821         * tests/test-gettimeofday.c (main): Likewise.
33822         * tests/test-getopt.c (main): Likewise.
33823         * tests/test-i-ring.c (main): Likewise.
33824         * tests/test-inttypes.c (main): Likewise.
33825         * tests/test-link.c (main): Likewise.
33826         * tests/test-lstat.c (main): Likewise.
33827         * tests/test-math.c (main): Likewise.
33828         * tests/test-md5.c (main): Likewise.
33829         * tests/test-memchr2.c (main): Likewise.
33830         * tests/test-memrchr.c (main): Likewise.
33831         * tests/test-mkdir.c (main): Likewise.
33832         * tests/test-mkdirat.c (main): Likewise.
33833         * tests/test-mkfifoat.c (main): Likewise.
33834         * tests/test-open.c (main): Likewise.
33835         * tests/test-openat-safer.c (main): Likewise.
33836         * tests/test-openat.c (main): Likewise.
33837         * tests/test-quotearg.c (main): Likewise.
33838         * tests/test-rawmemchr.c (main): Likewise.
33839         * tests/test-readlink.c (main): Likewise.
33840         * tests/test-remove.c (main): Likewise.
33841         * tests/test-rename.c (main): Likewise.
33842         * tests/test-renameat.c (main): Likewise.
33843         * tests/test-rmdir.c (main): Likewise.
33844         * tests/test-sha1.c (main): Likewise.
33845         * tests/test-signal.c (main): Likewise.
33846         * tests/test-sigaction.c (main): Likewise.
33847         * tests/test-stat.c (main): Likewise.
33848         * tests/test-stat-time.c (main): Likewise.
33849         * tests/test-stddef.c (main): Likewise.
33850         * tests/test-stdint.c (main): Likewise.
33851         * tests/test-stdio.c (main): Likewise.
33852         * tests/test-stdlib.c (main): Likewise.
33853         * tests/test-strchrnul.c (main): Likewise.
33854         * tests/test-strerror.c (main): Likewise.
33855         * tests/test-string.c (main): Likewise.
33856         * tests/test-strtod.c (main): Likewise.
33857         * tests/test-strverscmp.c (main): Likewise.
33858         * tests/test-symlink.c (main): Likewise.
33859         * tests/test-symlinkat.c (main): Likewise.
33860         * tests/test-sys_stat.c (main): Likewise.
33861         * tests/test-sys_time.c (main): Likewise.
33862         * tests/test-time.c (main): Likewise.
33863         * tests/test-unistd.c (main): Likewise.
33864         * tests/test-unlink.c (main): Likewise.
33865         * tests/test-unlinkat.c (main): Likewise.
33866         * tests/test-utimens.c (main): Likewise.
33867         * tests/test-utimensat.c (main): Likewise.
33868         * tests/test-version-etc.c (main): Likewise.
33869         * tests/test-wchar.c (main): Likewise.
33870         * tests/test-wctype.c (main): Likewise.
33871         * tests/test-xprintf-posix.c (main): Likewise.
33872         * tests/test-posixtm.c (main): Likewise.
33873         (STREQ): Delete unused macro.
33874         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33875         shadowed variables.
33876         * tests/test-memchr.c (main): Likewise.
33877
33878 2009-10-21  Eric Blake  <ebb9@byu.net>
33879
33880         areadlinkat: avoid failure on older glibc
33881         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33882         rather than mis-comparing 0 against FUNC_RESULT of char*.
33883
33884 2009-10-21  Bruno Haible  <bruno@clisp.org>
33885
33886         * modules/stpncpy (License): Relicense under LGPLv2+.
33887         Reported by David Lutterkort <lutter@redhat.com>.
33888
33889 2009-10-20  Eric Blake  <ebb9@byu.net>
33890
33891         utimensat: work around Solaris 9 bug
33892         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33893         has trailing slash bugs.
33894         * tests/test-lutimens.h (test_lutimens): Enhance test.
33895         * tests/test-utimens.h (test_utimens): Likewise.
33896         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33897         * doc/posix-functions/utimes.texi (utimes): Likewise.
33898         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33899         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33900         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33901         * doc/posix-functions/futimens.texi (futimens): Likewise.
33902
33903         fdutimensat: new module
33904         * modules/fdutimensat: New file.
33905         * lib/fdutimensat.c (fdutimensat): Likewise.
33906         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33907         * MODULES.html.sh (File system functions): Mention module.
33908         * modules/fdutimensat-tests: New test.
33909         * tests/test-fdutimensat.c: Likewise.
33910
33911         doc: regenerate INSTALL
33912         * doc/INSTALL: Reflect recent autoconf update.
33913         * doc/INSTALL.ISO: Likewise.
33914         * doc/INSTALL.UTF-8: Likewise.
33915
33916 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33917
33918         acl: warn if ACL support is not detected
33919         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33920
33921 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33922
33923         * lib/nproc.h: Add extern "C" block for C++.
33924
33925 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33926             Bruno Haible  <bruno@clisp.org>
33927
33928         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33929         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33930         * doc/posix-functions/isalpha.texi: Likewise.
33931         * doc/posix-functions/isblank.texi: Likewise.
33932         * doc/posix-functions/iscntrl.texi: Likewise.
33933         * doc/posix-functions/isdigit.texi: Likewise.
33934         * doc/posix-functions/isgraph.texi: Likewise.
33935         * doc/posix-functions/islower.texi: Likewise.
33936         * doc/posix-functions/isprint.texi: Likewise.
33937         * doc/posix-functions/ispunct.texi: Likewise.
33938         * doc/posix-functions/isspace.texi: Likewise.
33939         * doc/posix-functions/isupper.texi: Likewise.
33940         * doc/posix-functions/isxdigit.texi: Likewise.
33941
33942 2009-10-18  Bruno Haible  <bruno@clisp.org>
33943
33944         Tests for module 'isblank'.
33945         * modules/isblank-tests: New file.
33946         * tests/test-isblank.c: New file.
33947
33948         New module 'isblank'.
33949         * lib/isblank.c: New file.
33950         * m4/isblank.m4: New file.
33951         * modules/isblank: New file.
33952         * doc/posix-functions/isblank.texi: Mention the new module.
33953
33954 2009-10-18  Bruno Haible  <bruno@clisp.org>
33955
33956         New module 'ctype'.
33957         * lib/ctype.in.h: New file.
33958         * m4/ctype.m4: New file.
33959         * modules/ctype: New file.
33960         * doc/posix-headers/ctype.texi: Mention the new module.
33961
33962 2009-10-18  Jim Meyering  <meyering@redhat.com>
33963
33964         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33965         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33966         right after its initialization, rather than farther down.
33967         Keeping these in close proximity makes it easier to ensure
33968         that each such variable is initialized.  E.g.,
33969
33970             LIB_CLOCK_GETTIME=
33971             AC_SUBST([LIB_CLOCK_GETTIME])
33972
33973         This change also increments these serial numbers.
33974         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33977
33978 2009-10-18  Bruno Haible  <bruno@clisp.org>
33979
33980         Don't let environment variables perturb build.
33981         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33982         (gl_PREREQ_GETHRXTIME): ... not here.
33983
33984 2009-10-18  Bruno Haible  <bruno@clisp.org>
33985
33986         Avoid symlink attack in localcharset module.
33987         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33988         (O_NOFOLLOW): Define fallback.
33989         (get_charset_aliases): Don't open the file if it is a symbolic link.
33990         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33991         gl_FCNTL_H.
33992         (gl_FCNTL_H): Require it.
33993         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33994         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33995         Reported by Fergal Glynn <fglynn@veracode.com>.
33996
33997 2009-10-18  Bruno Haible  <bruno@clisp.org>
33998
33999         Implement nproc for mingw.
34000         * lib/nproc.c: Include <windows.h>
34001         (num_processors): On native Windows platforms, try GetSystemInfo.
34002
34003 2009-10-18  Bruno Haible  <bruno@clisp.org>
34004
34005         Implement nproc for IRIX.
34006         * lib/nproc.c: Include <sys/sysmp.h>.
34007         (num_processors): On IRIX systems, try sysmp.
34008         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34009
34010 2009-10-18  Bruno Haible  <bruno@clisp.org>
34011
34012         Implement nproc for HP-UX.
34013         * lib/nproc.c: Include <sys/pstat.h>
34014         (num_processors): On HP-UX systems, try pstat_getdynamic.
34015         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34016         pstat_getdynamic.
34017
34018 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34019             Bruno Haible  <bruno@clisp.org>
34020
34021         Implement nproc for NetBSD, OpenBSD.
34022         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34023         (ARRAY_SIZE): New macro.
34024         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34025         * m4/nproc.m4: New file.
34026         * modules/nproc (Files): Add m4/nproc.m4.
34027         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34028         (Makefile.am): Instead, augment lib_SOURCES.
34029
34030 2009-10-18  Bruno Haible  <bruno@clisp.org>
34031
34032         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34033         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34034         sys/param.h.
34035
34036 2009-10-16  Eric Blake  <ebb9@byu.net>
34037
34038         utimensat: new module
34039         * modules/utimensat: New file.
34040         * lib/utimensat.c (utimensat): Likewise.
34041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34042         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34043         so we can work around Linux bugs.
34044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34045         * modules/sys_stat (Makefile.am): Substitute them.
34046         * lib/sys_stat.in.h (utimensat): Declare it.
34047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34048         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34049         * modules/utimensat-tests: New test.
34050         * tests/test-utimensat.c: Likewise.
34051
34052         utimens: let lutimens work on non-symlinks
34053         * lib/utimens.c (lutimens): Fall back to utimens rather than
34054         failing with ENOSYS, when file is not a symlink.
34055         (utimens): Reduce redirection.
34056         * tests/test-lutimens.h (test_lutimens): Update test to cover
34057         non-symlinks.
34058         * tests/test-utimens.h (test_utimens): Update test to cover
34059         symlinks.
34060         * tests/test-utimens.c (main): Update caller.
34061
34062         utimens: cache whether utimensat syscall works
34063         * lib/utimens.c (utimensat_works_really): New cache variable.
34064         (fdutimens, lutimens): Use it to avoid failing syscall.
34065
34066         test-stat-time, test-utimens: improve portability
34067         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34068         ext4 on alpha, and for cygwin.
34069         * tests/test-utimens-common.h: New file.
34070         (nap): Factor delays into single function.
34071         * tests/test-lutimens.h (test_lutimens): Use new header.
34072         * tests/test-futimens.h (test_futimens): Likewise.
34073         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34074         timestamps to occur from same machine, as was done previously for
34075         test_utimens.
34076         * modules/utimens-tests (Files): Ship new file.
34077         * modules/futimens-tests (Files): Likewise.
34078         Reported in part by Jim Meyering.
34079
34080         sys_stat: sort replacement declarations
34081         * lib/sys_stat.in.h: Sort declarations.
34082         * lib/futimens.c (futimens): Fix typo.
34083
34084 2009-10-15  Jim Meyering  <meyering@redhat.com>
34085
34086         don't let environment settings perturb build
34087         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34088         could cause a configure-time and/or build-time malfunction.
34089         Typically, a configure-time function-in-library test is performed
34090         via code like this:
34091
34092           LIB_VAR=
34093           AC_SUBST([LIB_VAR])
34094           prefix_saved_LIBS=$LIBS
34095             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34096                        [test "$ac_cv_search_FUNC" = "none required" ||
34097                         LIB_VAR=$ac_cv_search_FUNC])
34098           LIBS=$prefix_saved_LIBS
34099
34100         However, in each of the files affected by this change, the LIB_VAR=
34101         initialization was omitted.  Thus, when set in the environment, its
34102         value would propagate into generated Makefiles when FUNC is not found
34103         in LIB_NAME.
34104         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34105         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34107
34108 2009-10-14  Eric Blake  <ebb9@byu.net>
34109
34110         fchdir: avoid infinite recursion in mingw
34111         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34112         recursing.
34113
34114         test-stat-time: port to mingw
34115         * tests/test-stat-time.c (force_unlink): Return a value.
34116         (test_ctime) [W32]: Fix compilation error.
34117         (nap): Don't call usleep with too large an argument.  Use
34118         force_unlink.
34119         * doc/pastposix-functions/usleep.texi (usleep): Document the
34120         portability issue.
34121
34122 2009-10-13  Jim Meyering  <meyering@redhat.com>
34123
34124         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34125         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34126         * modules/pipe-filter-ii: Likewise.
34127         * modules/sys_socket-tests: Likewise.
34128         * modules/tsearch-tests: Likewise.
34129         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34130         (check): Depend on it.
34131
34132 2009-10-12  Eric Blake  <ebb9@byu.net>
34133
34134         utimens-tests: port to NFS file systems
34135         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34136         comparisons to avoid spurious failures from timestamp drift
34137         between NFS machines.
34138
34139 2009-10-12  Eric Blake  <ebb9@byu.net>
34140
34141         stat-time-tests: minor cleanups
34142         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34143         * tests/test-stat-time.c (nap): Separate assignment from call.
34144         Suggested by Paolo Bonzini and Bruno Haible.
34145
34146         sys_stat: guarantee struct timespec
34147         * lib/sys_stat.in.h (includes): Always include <time.h>
34148         * modules/sys_stat (Depends-on): Add time.
34149         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34150         mode_t permission values.
34151         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34152         get at subsecond timestamps.
34153
34154 2009-10-10  Eric Blake  <ebb9@byu.net>
34155
34156         futimens: new module
34157         * modules/futimens: New file.
34158         * lib/futimens.c (futimens): Likewise.
34159         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34160         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34161         we can work around Linux bugs.
34162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34163         * modules/sys_stat (Makefile.am): Substitute them.
34164         * lib/sys_stat.in.h (futimens): Declare it.
34165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34166         * doc/posix-functions/futimens.texi (futimens): Likewise.
34167         * modules/futimens-tests: New test.
34168         * tests/test-futimens.c: Likewise.
34169
34170         utimens: introduce fdutimens
34171         * lib/utimens.h (fdutimens): New prototype.
34172         * lib/utimens.c (gl_futimens): Move guts...
34173         (fdutimens): ...to new interface.
34174         * tests/test-utimens.c (do_fdutimens): Use it.
34175
34176         utimens: add UTIME_NOW and UTIME_OMIT support
34177         * lib/utimens.c (validate_timespec, update_timespec): New helper
34178         functions.
34179         (gl_futimens, lutimens): Use them.
34180         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34181         stdbool, sys_stat.
34182         (Link): Mention resulting library dependency.
34183         * modules/utimecmp (Link): Likewise.
34184         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34185         (Makefile.am): Pick up library dependency.
34186         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34187         definition.
34188         * tests/test-sys_stat.c: Test the definitions.
34189         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34190         * NEWS: Document library dependency.
34191
34192         utimecmp: support symlink timestamps
34193         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34194         hashing when possible.  Use pathconf when available.
34195         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34196         * modules/utimecmp (Depends-on): Add lstat.
34197
34198         utimens: add lutimens interface
34199         * lib/utimens.c (lutimens): New function.
34200         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34201         * lib/utimens.h (lutimens): Declare new interface.
34202         * tests/test-utimens.c (main): Enhance test.
34203         * tests/test-lutimens.h (test_lutimens): New file.
34204         * modules/utimens-tests (Files): Distribute it.
34205         (Depends-on): Add symlink.
34206         (configure.ac): Check for usleep.
34207
34208         utimens: validate futimens usage
34209         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34210         fewer syscalls on failure later on.  Avoid compiler warning on
34211         mingw.
34212         * modules/utimens (Depends-on): Add dup2.
34213
34214         utimens: add test
34215         * modules/utimens-tests: New test.
34216         * tests/test-utimens.h: New file.
34217         * tests/test-futimens.h: Likewise.
34218         * tests/test-utimens.c: Likewise.
34219
34220         doc: mention timestamp portability issues
34221         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34222         instead.
34223         * doc/posix-functions/utime.texi (utime): Likewise.
34224         * doc/posix-functions/utimes.texi (utimes): Likewise.
34225         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34226         instead.
34227         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34228         module.
34229         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34230         Mention weakness with symlink timestamps.
34231         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34232         to utimensat/futimens instead.
34233         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34234
34235         test-dup2: enhance test
34236         * tests/test-dup2.c (main): Also check AT_FDCWD.
34237
34238         test-stat-time: avoid more spurious failures
34239         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34240         xfs; and avoid race if the two timestamps cross quantization edge.
34241
34242         relocatable: prefer 'file system' over 'filesystem'
34243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34244         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34245         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34246         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34247         * lib/relocatable.c (compute_curr_prefix): Likewise.
34248
34249 2009-10-10  Jim Meyering  <meyering@redhat.com>
34250
34251         stat-time-tests: check for the usleep function
34252         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34253
34254 2009-10-10  Bruno Haible  <bruno@clisp.org>
34255
34256         * modules/xnanosleep: Put the Link section after the Include section.
34257
34258 2009-10-09  Eric Blake  <ebb9@byu.net>
34259
34260         dup2: work around FreeBSD 6.1 bug
34261         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34262         * doc/posix-functions/dup2.texi (dup2): Document it.
34263         Reported by Nelson H. F. Beebe and Jim Meyering.
34264
34265         test-stat-time: port to buggy NFS clients
34266         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34267         (test_ctime): Also skip test if mtime and ctime are skewed.
34268
34269         maint: prefer 'file system' over 'filesystem'
34270         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34271         * doc/posix-functions/lstat.texi (lstat): Likewise.
34272         * lib/file-has-acl.c (file_has_acl): Likewise.
34273         * lib/fwriteerror.c [TEST]: Likewise.
34274         * tests/test-areadlink.h (test_areadlink): Likewise.
34275         * tests/test-areadlinkat-with-size.c (main): Likewise.
34276         * tests/test-areadlinkat.c (main): Likewise.
34277         * tests/test-canonicalize-lgpl.c (main): Likewise.
34278         * tests/test-canonicalize.c (main): Likewise.
34279         * tests/test-fstatat.c (main): Likewise.
34280         * tests/test-linkat.c (main): Likewise.
34281         * tests/test-lstat.h (test_lstat_func): Likewise.
34282         * tests/test-mkdir.h (test_mkdir): Likewise.
34283         * tests/test-readlink.h (test_readlink): Likewise.
34284         * tests/test-remove.c (main): Likewise.
34285         * tests/test-rename.h (test_rename): Likewise.
34286         * tests/test-renameat.c (main): Likewise.
34287         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34288         * tests/test-symlink.h (test_symlink): Likewise.
34289         * tests/test-symlinkat.c (main): Likewise.
34290         * tests/test-unlink.h (test_unlink_func): Likewise.
34291         * tests/test-unlinkat.c (main): Likewise.
34292
34293         maint: make realtime library usage explicit
34294         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34295         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34296         * modules/settime (Link): Likewise.
34297         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34298
34299         test-stat-time: speed up execution
34300         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34301         warning on mingw.
34302         (nap): New helper function.
34303         (prepare_test): Use it to reduce sleep time.
34304         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34305         execution.
34306         * modules/stat-time-tests (configure.ac): Check for usleep.
34307
34308 2009-10-09  Jim Meyering  <meyering@redhat.com>
34309
34310         selinux-h: always use getfilecon wrappers
34311         * lib/getfilecon.c: New file.
34312         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34313         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34314         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34315         (fgetfilecon): Provide a stub.
34316         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34317         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34318         file unconditionally.
34319         When <selinux/selinux.h> is found, arrange to use wrappers.
34320         * modules/selinux-h (Files): Add getfilecon.c.
34321         (Makefile.am): Substitute include-next-related bits
34322         into the now-always-generated selinux/selinux.h file.
34323         * doc/glibc-functions/lgetfilecon.texi: New file.
34324         * doc/glibc-functions/fgetfilecon.texi: New file.
34325         * doc/glibc-functions/getfilecon.texi: New file.
34326         * doc/glibc-functions/getfilecon-desc.texi: New file.
34327         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34328         which to pull in the new files.
34329         * MODULES.html.sh (Misc): Add selinux-h.
34330
34331 2009-10-08  Jim Meyering  <meyering@redhat.com>
34332
34333         unistd: fix comment typo
34334         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34335
34336 2009-10-08  Eric Blake  <ebb9@byu.net>
34337
34338         areadlink: use SIZE_MAX consistently
34339         * modules/areadlink (Depends-on): Add stdint.
34340         * modules/areadlink-with-size (Depends-on): Likewise.
34341         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34342         gives NULL; drop sys/types, since unistd gives size_t; and add
34343         stdint for SIZE_MAX.
34344         (SIZE_MAX): Rely on headers.
34345         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34346         and add stdint.
34347         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34348         (SIZE_MAX): Likewise.
34349         (INITIAL_BUF_SIZE): Turn into enum.
34350         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34351
34352 2009-10-08  Jim Meyering  <meyering@redhat.com>
34353
34354         areadlinkat: avoid compilation failure
34355         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34356         Fix typo in comment.
34357
34358 2009-10-07  Eric Blake  <ebb9@byu.net>
34359
34360         areadlinkat-with-size: new module
34361         * modules/areadlinkat-with-size: New module.
34362         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34363         * lib/areadlink.h (areadlinkat): Declare it.
34364         * MODULES.html.sh (File system functions): Mention it.
34365         * modules/areadlinkat-with-size-tests: New test.
34366         * tests/test-areadlinkat-with-size.c: New file.
34367
34368         xreadlinkat: new module
34369         * modules/xreadlinkat: New module.
34370         * lib/xreadlinkat.c (xreadlinkat): New file.
34371         * lib/xreadlink.h (xreadlinkat): Declare it.
34372         * MODULES.html.sh (File system functions): Mention it.
34373
34374         areadlinkat: new module
34375         * lib/at-func.c (FUNC_FAIL): New define.
34376         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34377         * modules/areadlinkat: New module.
34378         * lib/linkat.c (areadlinkat): Move...
34379         * lib/areadlinkat.c (areadlinkat): ...to new file.
34380         * lib/areadlink.h (areadlinkat): Declare it.
34381         * modules/linkat (Depends-on): Add areadlinkat.
34382         * MODULES.html.sh (File system functions): Mention it.
34383         * modules/areadlinkat-tests: New test.
34384         * tests/test-areadlinkat.c: New file.
34385
34386         areadlink, areadlink-with-size: add tests
34387         * modules/areadlink-tests: New test.
34388         * modules/areadlink-with-size-tests: Likewise.
34389         * tests/test-areadlink.h: New file.
34390         * tests/test-areadlink.c: Likewise.
34391         * tests/test-areadlink-with-size.c: Likewise.
34392
34393         maint: minor cleanups
34394         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34395         _UNUSED_PARAMETER_ instead.
34396         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34397         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34398         * modules/linkat-tests (Files): Distribute test-link.h.
34399
34400         openat, utimens: whitespace cleanup
34401         * lib/openat.c: Prefer space throughout, rather than mix of 8
34402         spaces vs. tabs.
34403         * lib/at-func.c: Likewise.
34404         * lib/utimens.c: Likewise.
34405
34406         openat: avoid using wrong fd
34407         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34408         working directory chooses same fd.
34409         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34410
34411         mkdir, mkdirat: fix cygwin 1.5.x bug
34412         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34414         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34415         bug.
34416         (gl_PREREQ_MKDIR): Delete unused macro.
34417         * modules/mkdir (Files): Track file rename.
34418         (configure.ac): Update macro name.
34419         * modules/openat (Depends-on): Add mkdir.
34420         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34421
34422         mkdir, mkdirat: add tests
34423         * modules/mkdir-tests: New test.
34424         * tests/test-mkdir.h: New file.
34425         * tests/test-mkdir.c: Likewise.
34426         * tests/test-mkdirat.c: Likewise.
34427         * modules/openat-tests (Files): Add new files.
34428         (Makefile.am): Run new test.
34429
34430 2009-10-06  Eric Blake  <ebb9@byu.net>
34431
34432         doc: tweak *at function documentation
34433         * doc/posix-functions/faccessat.texi (faccessat): Mention
34434         known issue with replacement.
34435         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34436         * doc/posix-functions/linkat.texi (linkat): Likewise.
34437         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34438         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34439         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34440         * doc/posix-functions/renameat.texi (renameat): Likewise.
34441         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34442
34443         openat: fix GNU/Hurd bug in unlinkat
34444         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34445         broken.
34446         * doc/posix-functions/unlink.texi (unlink): Document this.
34447         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34448
34449         fdopendir: fix GNU/Hurd bug
34450         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34451         allowing non-directory fds.
34452         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34454         * modules/dirent (Makefile.am): Substitute it.
34455         * lib/dirent.in.h (fdopendir): Declare replacement.
34456         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34457         * tests/test-fdopendir.c (main): Test something other than
34458         /dev/null, since on Hurd that behaves like a directory.
34459
34460         test-symlink: port to GNU/Hurd
34461         * tests/test-symlink.h (test_symlink): Relax expected errno.
34462
34463         doc: tweak more cygwin information
34464         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34465         now compatible with glibc.
34466         * doc/posix-functions/getopt.texi (getopt): Likewise.
34467
34468         getopt-gnu: add another test
34469         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34470         guarantee behavior relied on by m4.
34471         * tests/test-getopt.c (main): Use it.
34472         * modules/getopt-posix-tests (Depends-on): Add setenv.
34473         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34474
34475         getopt: fix compilation on darwin
34476         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34477         include.
34478         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34479         Reported by Ludovic Courtès.
34480
34481 2009-10-06  Bruno Haible  <bruno@clisp.org>
34482
34483         * modules/size_max (Description): Discourage its use.
34484         Reported by Simon Josefsson.
34485
34486 2009-10-06  Jim Meyering  <meyering@redhat.com>
34487
34488         linkat: avoid compilation failure
34489         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34490
34491 2009-10-05  Eric Blake  <ebb9@byu.net>
34492
34493         linkat: support Linux 2.6.17
34494         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34495         linkat on Linux, but allow cache variable override.
34496         * lib/linkat.c (rpl_linkat): Define override.
34497         * modules/linkat (Depends-on): Add symlinkat.
34498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34499         * modules/unistd (Makefile.am): Substitute it.
34500         * lib/unistd.in.h (linkat): Declare replacement.
34501         Reported by Pádraig Brady.
34502
34503         quotearg: port test to systems with C.UTF-8 locale
34504         * tests/test-quotearg.c (struct result_strings): Add another
34505         member, differentiating between C.ASCII and C.UTF-8 handling.
34506         (compare_strings): Add parameter.
34507         (main): Adjust all callers.
34508
34509         getopt: avoid clash with FreeBSD _getopt_internal
34510         * lib/getopt.in.h (_getopt_internal): Override the name.
34511         * lib/getopt_int.h (includes): Pick up any overrides.
34512         Reported by Reuben Thomas.
34513
34514         hash: allow C89 compilation
34515         * lib/hash.c (check_tuning): Move declaration before statement.
34516         Reported by Reuben Thomas.
34517
34518 2009-10-05  Karl Berry  <karl@gnu.org>
34519
34520         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34521
34522 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34523             Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/uname.c (uname): Use a table-driven algorithm to compute
34526         Windows NT versions.
34527
34528 2009-10-04  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34531         program_invocation_short_name.
34532         * modules/progname (configure.ac): Test for presence of
34533         program_invocation_short_name.
34534         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34535
34536 2009-10-04  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/progname.c (set_program_name): Fix comment.
34539         Reported by Jim Meyering.
34540
34541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34542             Bruno Haible  <bruno@clisp.org>
34543
34544         * lib/uname.c: Include <string.h>.
34545         (uname): Do only one call to GetVersionEx in the common case.
34546
34547 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34548             Bruno Haible  <bruno@clisp.org>
34549
34550         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34551         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34552         (uname): Add support for Windows CE and various non-x86 CPU types.
34553
34554 2009-10-03  Bruno Haible  <bruno@clisp.org>
34555
34556         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34557         invocation to tests/configure.ac.
34558         Reported by Ian Beckwith <ianb@erislabs.net>.
34559
34560 2009-10-02  Eric Blake  <ebb9@byu.net>
34561
34562         fchdir: avoid compiler warning
34563         * lib/fchdir.c (canonicalize_file_name)
34564         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34565
34566         test-open: support mingw errno values
34567         * tests/test-open.h (test_open): Relax test.
34568         * tests/test-fopen.h (test_fopen): Likewise.
34569         * tests/test-openat-safer.c (main): Likewise.
34570
34571         open: fix opening directory on mingw
34572         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34573
34574         test-open: on GNU/Hurd, /dev/null is a directory
34575         * tests/test-fopen.h (main): Rename...
34576         (test_fopen): ...to this.  Use a guaranteed non-directory when
34577         confirming open behavior on trailing slash.
34578         * tests/test-openat-safer.c (main): Likewise.
34579         * tests/test-open.h (main): Likewise....
34580         (test_open): ...to this.
34581         * tests/test-fopen.c (main): Adjust caller.
34582         * tests/test-fopen-safer.c (main): Likewise.
34583         * tests/test-open.c (main): Likewise.
34584         * tests/test-fcntl-safer.c (main): Likewise.
34585         Reported by Samuel Thibault.
34586
34587         rename, fchdir: don't ignore chdir failure
34588         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34589         * lib/rename.c (rpl_rename) [W32]: Likewise.
34590         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34591         an empty destination directory if source cannot be renamed,
34592         although there is still possibility for failure.
34593         * doc/posix-functions/rename.texi (rename): Document the race.
34594         Reported by Jim Meyering.
34595
34596         maint: cleanup whitespace in recent commits
34597         * lib/rename.c (rpl_rename): Remove tabs.
34598         * tests/test-link.h (test_link): Likewise.
34599         * lib/fchdir.c (get_name): Likewise.
34600         Reported by Jim Meyering.
34601
34602 2009-10-02  Ben Pfaff  <blp@gnu.org>
34603
34604         relocatable-prog-wrapper: Add missing dependency on
34605         double-slash-root.
34606         * modules/relocatable-prog-wrapper: Add dependency.
34607         Reported by Ian Beckwith <ianb@erislabs.net>.
34608
34609 2009-10-02  Eric Blake  <ebb9@byu.net>
34610
34611         renameat: fix Solaris bugs
34612         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34613         needed fixing.
34614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34615         * modules/stdio (Makefile.am): Substitute it.
34616         * lib/stdio.in.h (renameat): Declare replacement.
34617         * lib/renameat.c (rpl_renameat): Implement fix.
34618
34619         renameat: new module
34620         * modules/renameat: New file.
34621         * lib/renameat.c (renameat): Likewise.
34622         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34624         * modules/stdio (Makefile.am): Substitute them.
34625         * lib/stdio.in.h (renameat): Declare it.
34626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34627         * doc/posix-functions/renameat.texi (renameat): Likewise.
34628         * modules/renameat-tests: New test.
34629         * tests/test-renameat.c: Likewise.
34630
34631         rename: fix mingw bugs
34632         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34633         directory overwrite bugs.
34634
34635         rename: fix another cygwin 1.5 bug
34636         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34637         checks.
34638         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34639         unnecessary cygwin workarounds.  Also work around bug with moving
34640         full directory onto an empty one.
34641         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34642
34643         rename-dest-slash: merge into rename module
34644         * modules/rename-dest-slash (Status): Mark obsolete.
34645         (Depends-on): Add rename.
34646         (Files): Let rename do it all.
34647         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34648         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34649         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34650         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34651         * lib/rename.c (rpl_rename): Update comments.
34652
34653         rename: fix cygwin 1.5.x bugs
34654         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34655         * lib/rename.c (rpl_rename): Work around them.
34656         * modules/rename (Depends-on): Add same-inode.
34657
34658         rename: fix Solaris 10 bug
34659         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34660         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34661         was the only bug.
34662
34663         rename: fix Solaris 9 bug
34664         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34665         on non-directory.  Avoid calling exit.
34666         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34667         strdup.
34668         * modules/rename-tests (Depends-on): Drop lstat.
34669         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34670         (gl_PREREQ_RENAME): Delete unused macro.
34671
34672         rename-dest-slash: fix NetBSD bug
34673         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34674         links.
34675         * modules/rename-dest-slash (Depends-on): Add same-inode.
34676
34677         rename-tests: new test, exposes several platform bugs
34678         * modules/rename-tests: New file.
34679         * tests/test-rename.h: Likewise.
34680         * tests/test-rename.c: Likewise.
34681         * doc/posix-functions/rename.texi (rename): Improve documentation,
34682         including bugs that will eventually be fixed in gnulib.
34683
34684 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34685
34686         * lib/uname.c: Include <stdlib.h>
34687         (uname): Assume version info is available.
34688
34689 2009-10-02  Jim Meyering  <meyering@redhat.com>
34690
34691         gnu-web-doc-update: correct --help output
34692         * build-aux/gnu-web-doc-update: Make --help output relevant.
34693
34694         gnu-web-doc-update: add standard options
34695         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34696
34697         gnu-web-doc-update: New module.
34698         Use this script to automatically update the on-line web documentation
34699         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34700         * modules/gnu-web-doc-update: New file, from coreutils.
34701         * build-aux/gnu-web-doc-update: New script.
34702
34703 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34704
34705         link: LoadLibrary is not needed.
34706         * lib/link.c: Use GetModuleHandle.
34707
34708 2009-10-01  Eric Blake  <ebb9@byu.net>
34709
34710         getopt: bump serial number
34711         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34712         change.
34713
34714         tests: tighten link, rmdir, and remove tests
34715         * tests/test-link.h (includes): No need to use <config.h> here.
34716         Clean up if directory hard link was created, otherwise test for
34717         trailing '.'.
34718         * tests/test-linkat.c (main): Simplify.
34719         * tests/test-remove.c (main): Enhance test for trailing '.'.
34720         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34721
34722 2009-10-01  Jim Meyering  <meyering@redhat.com>
34723
34724         maint.mk: requiring "make major" was annoying, for a "minor" release.
34725         What is intended is "stable", to contrast with alpha and beta,
34726         so require "make stable", not "make major".
34727         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34728         (get_tool_versions): Likewise.
34729         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34730
34731 2009-09-30  Ben Pfaff  <blp@gnu.org>
34732
34733         Fix broken build of replacement for Windows tmpfile().
34734         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34735         flags argument added along with the 'mkostemp' module.
34736
34737 2009-09-28  Bruno Haible  <bruno@clisp.org>
34738
34739         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34740         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34741         to 'remove_elt'.
34742         (gl_list_remove): Update.
34743         * lib/gl_list.c (gl_list_remove): Update.
34744         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34745         to 'remove_elt'.
34746         (gl_oset_remove): Update.
34747         * lib/gl_list.c (gl_oset_remove): Update.
34748         Reported by Eric Blake.
34749
34750 2009-09-28  Eric Blake  <ebb9@byu.net>
34751
34752         doc: mention yet more cygwin 1.7 status
34753         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34754         cygwin.
34755         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34756         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34757
34758         argp: fix test failure
34759         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34760         that are not upper-case.  Pass correct range to tolower.
34761
34762 2009-09-27  Jim Meyering  <meyering@redhat.com>
34763
34764         test-yesno: work around sparc-dash here-document infelicity
34765         Without this change, the literal \177 byte in a here document
34766         would make dash 0.5.5.1-3 access uninitialized memory.
34767         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34768         Instead, use a marker, "@", and filter through tr to create the desired
34769         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34770
34771 2009-09-27  Bruno Haible  <bruno@clisp.org>
34772
34773         Disable untested support for new flavours of ACLs on AIX.
34774         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34775         progress.
34776         * lib/set-mode-acl.c (qset_acl): Likewise.
34777
34778 2008-12-07  Bruno Haible  <bruno@clisp.org>
34779
34780         Add support for new flavours of ACLs on AIX. (Untested.)
34781         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34782         (file_has_acl): Add support for newer AIX.
34783         * lib/set-mode-acl.c (qset_acl): Likewise.
34784         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34785         Rainer Tammer <tammer@tammer.net>.
34786
34787 2009-09-26  Eric Blake  <ebb9@byu.net>
34788
34789         argp: fix compilation of getopt
34790         * lib/getopt.in.h (includes): Use different guard than glibc.
34791         Reported by Sergey Poznyakoff.
34792
34793         doc: mention more cygwin 1.7 status
34794         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34795         bug.
34796         * doc/posix-functions/execl.texi (execl): Likewise.
34797         * doc/posix-functions/execle.texi (execle): Likewise.
34798         * doc/posix-functions/execlp.texi (execlp): Likewise.
34799         * doc/posix-functions/execv.texi (execv): Likewise.
34800         * doc/posix-functions/execve.texi (execve): Likewise.
34801         * doc/posix-functions/execvp.texi (execvp): Likewise.
34802         * doc/glibc-functions/canonicalize_file_name.texi
34803         (canonicalize_file_name): Cygwin 1.7 now provides this.
34804         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34805         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34806         on AT_SYMLINK_NOFOLLOW.
34807
34808 2009-09-24  Eric Blake  <ebb9@byu.net>
34809
34810         test-linkat: make test more robust
34811         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34812
34813         getopt: fix inclusion guards for cygwin
34814         * modules/getopt-posix (Depends-on): Add include-next.
34815         (Makefile.am): Substitute more items in replacement header.
34816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34817         <getopt.h>.
34818         * lib/getopt.in.h (includes): Use split inclusion guard, and
34819         prefer <getopt.h> over include <unistd.h> when one is present.
34820         (option): Also override name of 'struct option'.
34821
34822         same-inode: revert prior change; it is not yet ready
34823         * NEWS: Undo mention of this change.
34824         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34825         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34826         * lib/cycle-check.c (cycle_check): Likewise.
34827         * lib/same.c (same_name): Likewise.
34828         * lib/at-func2.c (at_func2): Likewise.
34829
34830 2009-09-23  Eric Blake  <ebb9@byu.net>
34831
34832         linkat: new module
34833         * modules/linkat: New file.
34834         * lib/at-func2.c (at_func2): Likewise.
34835         * lib/linkat.c (linkat): Likewise.
34836         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34837         * lib/openat-priv.h (at_func2): Add declaration.
34838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34839         * modules/unistd (Makefile.am): Substitute them.
34840         * lib/unistd.in.h (linkat): Declare it.
34841         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34842         * doc/posix-functions/linkat.texi (linkat): Likewise.
34843         * doc/posix-functions/link.texi (link): Tweak wording.
34844         * tests/test-link.c (main): Move guts...
34845         * tests/test-link.h (test_link): ...into new file.
34846         * modules/linkat-tests: New test.
34847         * tests/test-linkat.c: Likewise.
34848         * modules/link-tests (Files): Ship new file.
34849         (Depends-on): Add stdbool.
34850
34851         dirname: add library-safe mdir_name
34852         * lib/dirname.h (mdir_name): New prototype.
34853         * lib/dirname.c (dir_name): Move guts...
34854         (mdir_name): ...to new function that avoids xalloc_die.
34855
34856         fchdir: another mingw fix
34857         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34858         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34859         on mingw (where it has not yet been ported), and make it optional
34860         elsewhere.
34861         (_gl_register_fd): Use it.
34862
34863         same-inode: make SAME_INODE tri-state, to port to mingw
34864         * NEWS: Mention this change.
34865         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34866         st_ino always being 0.
34867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34868         * lib/cycle-check.c (cycle_check): Likewise.
34869         * lib/same.c (same_name): Likewise.
34870
34871         lstat: avoid mingw compilation error
34872         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34873         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34874         lstat ourselves.
34875         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34876         was adequate.
34877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34878         the checks for lstat.
34879         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34880
34881         link: fix test failure on Solaris 9
34882         * lib/link.c (rpl_link): Don't assume link will catch bogus
34883         trailing slash on source.
34884
34885         test-symlinkat: enhance test
34886         * tests/test-readlink.c (main): Move guts...
34887         * tests/test-readlink.h (test_readlink): ...into new file.
34888         * tests/test-symlink.c (main): Move guts...
34889         * tests/test-symlink.h (test_symlink): ...into new file.
34890         * tests/test-symlinkat.c (main): Use new files for further
34891         coverage.
34892         (do_symlink, do_readlink): New helper functions.
34893         * modules/symlink-tests (Files): Ship new file.
34894         (Depends-on): Add stdbool.
34895         * modules/readlink-tests (Files): Ship new file.
34896         (Depends-on): Add stdbool.
34897         * modules/symlinkat-tests (Files): Use new files.
34898
34899 2009-09-23  Eric Blake  <ebb9@byu.net>
34900
34901         readlink: document portability issue with symlink length
34902         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34903         systems have bogus st_size on symlinks, and mention the
34904         areadlink-with-size module.
34905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34906         * doc/posix-functions/readlink.texi (readlink): Mention the
34907         areadlink module, and ERANGE failure.
34908         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34909         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34910
34911         readlink: fix Solaris 9 bug with trailing slash
34912         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34913         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34914         * doc/posix-functions/readlink.texi (readlink): Document this.
34915         * modules/readlink-tests: New test.
34916         * tests/test-readlink.c: Likewise.
34917
34918         readlink: fix cygwin 1.5.x bug with return type
34919         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34920         * lib/unistd.in.h (readlink): Use ssize_t.
34921         * lib/readlink.c (readlink): Likewise.
34922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34923         * modules/unistd (Makefile.am): Substitute it.
34924         * lib/unistd.in.h (readlink): Declare replacement.
34925         * doc/posix-functions/readlink.texi (readlink): Document this.
34926
34927         symlink: use throughout gnulib
34928         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34929         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34930         symlink is not used.
34931         * modules/symlinkat (Depends-on): Add symlink.
34932         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34933         * modules/canonicalize-tests (Depends-on): Likewise.
34934         * modules/lstat-tests (Depends-on): Likewise.
34935         * modules/openat-tests (Depends-on): Likewise.
34936         * modules/remove-tests (Depends-on): Likewise.
34937         * modules/rmdir-tests (Depends-on): Likewise.
34938         * modules/unlink-tests (Depends-on): Likewise.
34939         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34940         * tests/test-canonicalize.c (symlink): Likewise.
34941         * tests/test-fstatat.c (symlink): Likewise.
34942         * tests/test-lstat.c (symlink): Likewise.
34943         * tests/test-remove.c (symlink): Likewise.
34944         * tests/test-rmdir.c (symlink): Likewise.
34945         * tests/test-unlink.c (symlink): Likewise.
34946         * tests/test-unlinkat.c (symlink): Likewise.
34947
34948         symlink: new module, for Solaris 9 bug
34949         * modules/symlink: New file.
34950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34951         * lib/symlink.c: Likewise.
34952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34953         * modules/unistd (Makefile.am): Substitute them.
34954         * lib/unistd.in.h (symlink): Declare replacement.
34955         * MODULES.html.sh (File system functions): Mention it.
34956         * doc/posix-functions/symlink.texi (symlink): Likewise.
34957         * modules/symlink-tests: New test.
34958         * tests/test-symlink.c: Likewise.
34959
34960 2009-09-23  Bruno Haible  <bruno@clisp.org>
34961
34962         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34963         when needed.
34964         Test case: gnulib-tool --import --with-tests atexit inttypes.
34965         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34966
34967 2009-09-23  Bruno Haible  <bruno@clisp.org>
34968
34969         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34970         subcommand, not in a subshell.
34971
34972 2009-09-22  Eric Blake  <ebb9@byu.net>
34973
34974         unistd: sort replacement declarations
34975         * lib/unistd.in.h: Sort declarations.
34976
34977         open, openat: minor optimization
34978         * lib/open.c (open): If open succeeded, len is non-zero.
34979         * lib/openat.c (rpl_openat): Likewise.
34980
34981         link-follow: ensure correct result
34982         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34983         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34984         distinguish between possible failures.
34985
34986 2009-09-21  Eric Blake  <ebb9@byu.net>
34987
34988         fts: avoid compiler warning
34989         * lib/fts.c (dirent_inode_sort_may_be_useful)
34990         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34991
34992 2009-09-19  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/progreloc.c (canonicalize_file_name): New declaration.
34995
34996 2009-09-19  Eric Blake  <ebb9@byu.net>
34997
34998         link: fix quoting
34999         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35000
35001         openat: fix openat bugs on Solaris 9
35002         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35003         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35004         * modules/openat (Depends-on): Add open.
35005         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35006         * modules/fcntl-h (Makefile.am): Substitute it.
35007         * lib/fcntl.in.h (openat): Declare replacement.
35008         * doc/posix-functions/openat.texi (openat): Document this.
35009
35010         openat: move fstatat and unlinkat into correct files
35011         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35012         compiled.
35013         * lib/openat.c (fstatat, unlinkat): Move...
35014         * lib/fstatat.c (fstatat): ...into correct files.
35015         * lib/unlinkat.c (unlinkat): Likewise.
35016
35017         openat: fix unlinkat bugs on Solaris 9
35018         * lib/unlinkat.c (unlinkat): New file.
35019         * modules/openat (Depends-on): Add unlink.
35020         (Files): Distribute it.
35021         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35022         trailing slash behavior is broken.
35023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35024         * modules/unistd (Makefile.am): Substitute it.
35025         * lib/unistd.in.h (unlinkat): Declare replacement.
35026         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35027
35028         openat: fix fstatat bugs on Solaris 9
35029         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35030         stat.
35031         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35032
35033         test-unlinkat: enhance test, to expose Solaris 9 bug
35034         * tests/test-unlink.c (main): Factor guts...
35035         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35036         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35037         * tests/test-rmdir.c (main): Adjust caller.
35038         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35039         (unlinker): New helper function.
35040         (rmdirat): Enhance check.
35041         * modules/rmdir-tests (Depends-on): Add stdbool.
35042         * modules/unlink-tests (Depends-on): Likewise.
35043         (Files): Add test-unlink.h.
35044         * modules/openat-tests (Files): Likewise.
35045         (Depends-on): Add unlinkdir.
35046
35047         test-fstatat: new test, to expose Solaris 9 bugs
35048         * tests/test-stat.c (main): Factor guts...
35049         * tests/test-stat.h (test_stat_func): ...into new file.
35050         * tests/test-lstat.c (main): Factor guts...
35051         * tests/test-lstat.h (test_lstat_func): ...into new file.
35052         * tests/test-fstatat.c: New file.
35053         * modules/stat-tests (Files): Add test-stat.h.
35054         * modules/lstat-tests (Files): Add test-lstat.h.
35055         (Depends-on): Add stdbool.
35056         * modules/openat-tests (Depends-on): Add pathmax.
35057         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35058         (Makefile.am): Run new test.
35059
35060         remove: new module, for mingw and Solaris 9 bugs
35061         * modules/remove: New file.
35062         * lib/remove.c: Likewise.
35063         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35065         * modules/stdio (Makefile.am): Use them.
35066         * lib/stdio.in.h (remove): Declare replacement.
35067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35068         * doc/posix-functions/remove.texi (remove): Likewise.
35069         * modules/remove-tests: New test.
35070         * tests/test-remove.c: Likewise.
35071
35072         unlink: new module, for Solaris 9 bug
35073         * modules/unlink: New file.
35074         * lib/unlink.c: Likewise.
35075         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35077         * modules/unistd (Makefile.am): Use them.
35078         * lib/unistd.in.h (stat): Declare replacement.
35079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35080         * doc/posix-functions/unlink.texi (unlink): Likewise.
35081         * modules/unlink-tests: New test.
35082         * tests/test-unlink.c: Likewise.
35083
35084         lstat: fix Solaris 9 bug
35085         * lib/lstat.c (lstat): Also check for trailing slash on
35086         non-symlink, non-directories.  Use stat module to simplify logic.
35087         * doc/posix-functions/lstat.texi (lstat): Document it.
35088         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35089         (configure.ac): Check for symlink.
35090         * tests/test-lstat.c (main): Add more tests.
35091
35092         stat: add as dependency to other modules
35093         * modules/chown (Depends-on): Add stat.
35094         * modules/euidaccess (Depends-on): Likewise.
35095         * modules/fchdir (Depends-on): Likewise.
35096         * modules/isdir (Depends-on): Likewise.
35097         * modules/link (Depends-on): Likewise.
35098         * modules/lstat (Depends-on): Likewise.
35099         * modules/mkdir-p (Depends-on): Likewise.
35100         * modules/modechange (Depends-on): Likewise.
35101         * modules/open (Depends-on): Likewise.
35102         * modules/readlink (Depends-on): Likewise.
35103         * modules/same (Depends-on): Likewise.
35104
35105         stat: fix Solaris 9 bug
35106         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35107         slash.
35108         * lib/stat.c (rpl_stat): Work around it.
35109         * doc/posix-functions/stat.texi (stat): Update documentation.
35110
35111         stat: new module, for mingw bug
35112         * modules/stat: New file.
35113         * lib/stat.c: Likewise.
35114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35116         * modules/sys_stat (Makefile.am): Use them.
35117         * lib/sys_stat.in.h (stat): Declare replacement.
35118         * lib/openat.c (fstatat): Deal with lstat and stat being function
35119         macros.
35120         * modules/openat (Depends-on): Add inline.
35121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35122         * doc/posix-functions/stat.texi (stat): Likewise.
35123         * modules/stat-tests: New test.
35124         * tests/test-stat.c: Likewise.
35125
35126 2009-09-19  Jim Meyering  <meyering@redhat.com>
35127
35128         syntax-check: detect unnecessary inclusion of canonicalize.h
35129         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35130
35131 2009-09-19  Eric Blake  <ebb9@byu.net>
35132
35133         canonicalize-lgpl: adjust clients to use correct header
35134         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35135         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35136         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35137         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35138         * lib/progreloc.c (includes): Likewise.
35139
35140 2009-09-19  Jim Meyering  <meyering@redhat.com>
35141
35142         test-posixtm.c: correct a comment
35143         * tests/test-posixtm.c: Correct first-line comment.
35144         Spotted by Eric Blake.
35145
35146 2009-09-16  Jim Meyering  <meyering@redhat.com>
35147
35148         posixtm-tests: make T const-correct; add a test case
35149         * tests/test-posixtm.c (T): Declare const.
35150         Add a test for -(2^31+1).
35151         Remove useless can-succeed-only-in-2002 test.
35152
35153         posixtm-tests: adjust the sole failing test
35154         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35155         expected output matches what mktime now produces.  Cross-checked via
35156         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35157
35158         posixtm: move #ifdef'd tests into a new module
35159         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35160         * tests/test-posixtm.c: ... this new file.
35161         * modules/posixtm-tests: New module.
35162
35163 2009-09-19  Eric Blake  <ebb9@byu.net>
35164
35165         openat: simplify use of at-func.c
35166         * lib/at-func.c (includes): Include prerequisites here, to
35167         simplify requirements on client files.
35168         * lib/openat-priv.h: Add double-inclusion guard.
35169         * lib/faccessat.c (includes): Simplify.
35170         * lib/fchmodat.c (includes): Likewise.
35171         * lib/fchownat.c (includes): Likewise.
35172         * lib/mkdirat.c (includes): Likewise.
35173         * lib/mkfifoat.c (includes): Likewise.
35174         * lib/symlinkat.c (includes): Likewise.
35175
35176         openat: allow return of fd 0
35177         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35178         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35179         unistd-safer.
35180         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35181         <fcntl.h>; this module does not leak fds.
35182         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35183         must be allowed to return 0, leaving openat_safer to add the
35184         safety.
35185         (openat_permissive): Avoid writing to just-opened fd 2 if
35186         restoring the current directory fails.
35187         * lib/openat-die.c (openat_restore_fail): Add comment.
35188         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35189         (save_cwd): Guarantee safe fd, but without use of open_safer.
35190         * tests/test-openat.c: New test.
35191         * modules/openat-tests (Files, Makefile.am): Distribute and build
35192         new file.
35193
35194         relocatable-prog-wrapper: fix build
35195         * modules/relocatable-prog-wrapper (Files): Update name of
35196         canonicalize m4 file, broken on 2009-09-17.
35197         Reported by emad hajjar <aleppos@hotmail.com>.
35198
35199 2009-09-19  Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35202         * lib/safe-alloc.c: Likewise.
35203         Reported by Ian Beckwith <ianb@erislabs.net>.
35204
35205 2009-09-18  Bruno Haible  <bruno@clisp.org>
35206
35207         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35208         Reported by <erobles@sensacd.com.mx>.
35209
35210 2009-09-17  Eric Blake  <ebb9@byu.net>
35211
35212         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35213         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35214         slashes when checking if last component is missing.
35215         * tests/test-canonicalize.c (main): Test this.
35216
35217         canonicalize, canonicalize-lgpl: honor // if distinct from /
35218         * modules/canonicalize (Files): Add double-slash-root.m4.
35219         * modules/canonicalize-lgpl (Files): Likewise.
35220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35221         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35222         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35223         fallback definition.
35224         (canonicalize_filename_mode): Use it to protect //.
35225         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35226         (__realpath): Likewise.
35227         * tests/test-canonicalize.c (main): Test this.
35228         * tests/test-canonicalize-lgpl.c (main): Likewise.
35229         * modules/canonicalize-tests (Depends-on): Add same-inode.
35230         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35231
35232         canonicalize-lgpl: fix glibc bug with trailing slash
35233         * m4/canonicalize-lgpl.m4: Move contents...
35234         * m4/canonicalize.m4: ...here.
35235         (gl_CANONICALIZE_LGPL): Factor realpath check...
35236         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35237         glibc 2.3.5 bug, fixed 2005-04-27.
35238         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35239         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35240         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35241         * modules/canonicalize-lgpl (Files): Manage file rename.
35242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35243         * modules/stdlib (Makefile.am): Substitute witness.
35244         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35245         is needed.
35246         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35247         replacement is required.
35248         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35249         * doc/glibc-functions/canonicalize_file_name.texi
35250         (canonicalize_file_name): Document this.
35251         * doc/posix-functions/realpath.texi (realpath): Likewise.
35252
35253         canonicalize-lgpl: reject non-directory with trailing slash
35254         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35255         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35256         catches failures in glibc 2.3.5.
35257         * tests/test-canonicalize.c (main): Likewise.
35258
35259         canonicalize-lgpl: use native realpath if it works
35260         * lib/canonicalize-lgpl.c (realpath): Guard with
35261         FUNC_REALPATH_WORKS.
35262         * lib/stdlib.in.h (realpath): Make declaration optional based on
35263         HAVE_REALPATH.
35264         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35265         native realpath works.
35266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35267         * modules/stdlib (Makefile.am): Substitute witness.
35268
35269         canonicalize, canonicalize-lgpl: use <stdlib.h>
35270         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35271         (Include): Mention <stdlib.h>.
35272         (configure.ac): Mention functions we provide.
35273         * modules/canonicalize (configure.ac): Likewise.
35274         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35275         realpath if canonicalize_file_name is missing.
35276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35277         * modules/stdlib (Makefile.am): Substitute witnesses.
35278         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35279         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35280         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35281         * NEWS: Document this.
35282         * doc/glibc-functions/canonicalize_file_name.texi
35283         (canonicalize_file_name): Likewise.
35284         * doc/posix-functions/realpath.texi (realpath): Likewise.
35285         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35286
35287         test-canonicalize: consolidate into single C program
35288         * tests/test-canonicalize.sh: Delete; move setup into...
35289         * tests/test-canonicalize.c (main): ...the program, making it
35290         easier to run in debugger.  Add some tests.
35291         * modules/canonicalize-tests (Files): Remove unused file.
35292         (Depends-on): Add progname.
35293         (configure.ac, Makefile.am): Simplify.
35294
35295         test-canonicalize-lgpl: consolidate into single C program
35296         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35297         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35298         easier to run in debugger.  Add some tests.
35299         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35300         (configure.ac, Makefile.am): Simplify.
35301
35302         canonicalize: avoid resolvepath
35303         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35304         unnecessary checks.
35305         * lib/canonicalize.c (includes): Simplify.
35306         (canonicalize_file_name): Drop resolvepath implementation.
35307         * modules/canonicalize (Depends-on): Drop filenamecat.
35308
35309         canonicalize: don't lose errno
35310         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35311         over calls to free.
35312
35313         canonicalize: simplify errno handling
35314         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35315         assignment.
35316
35317         canonicalize, canonicalize-lgpl: update module dependencies
35318         * modules/canonicalize (Depends-on): Add extensions, lstat,
35319         pathmax, stdlib.
35320         (Files): Drop pathmax.h.
35321         (configure.ac): Adjust macro name.
35322         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35323         lstat, stdlib, sys_stat.
35324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35325         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35326         extensions.
35327         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35328         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35329         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35330         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35331         declaration, if available.
35332         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35333         we can rely on the readlink module.
35334         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35335         (includes): Use <unistd.h> unconditionally.
35336
35337 2009-09-17  Eric Blake  <ebb9@byu.net>
35338
35339         maint: make Include sections of modules consistent
35340         * modules/alloca: Use only header name; no need to list #include.
35341         * modules/alloca-opt: Likewise.
35342         * modules/arpa_inet: Likewise.
35343         * modules/canon-host: Likewise.
35344         * modules/configmake: Likewise.
35345         * modules/dirent: Likewise.
35346         * modules/eealloc: Likewise.
35347         * modules/environ: Likewise.
35348         * modules/fchdir: Likewise.
35349         * modules/fcntl: Likewise.
35350         * modules/fcntl-h: Likewise.
35351         * modules/gethrxtime: Likewise.
35352         * modules/gettime: Likewise.
35353         * modules/ignore-value: Likewise.
35354         * modules/inet_ntop: Likewise.
35355         * modules/inet_pton: Likewise.
35356         * modules/inttypes: Likewise.
35357         * modules/isnand-nolibm: Likewise.
35358         * modules/isnanf-nolibm: Likewise.
35359         * modules/mbchar: Likewise.
35360         * modules/mbfile: Likewise.
35361         * modules/mbiter: Likewise.
35362         * modules/mbuiter: Likewise.
35363         * modules/netdb: Likewise.
35364         * modules/netinet_in: Likewise.
35365         * modules/nproc: Likewise.
35366         * modules/pagealign_alloc: Likewise.
35367         * modules/poll: Likewise.
35368         * modules/printf-frexp: Likewise.
35369         * modules/pthread: Likewise.
35370         * modules/putenv: Likewise.
35371         * modules/random_r: Likewise.
35372         * modules/relocatable-prog: Likewise.
35373         * modules/search: Likewise.
35374         * modules/select: Likewise.
35375         * modules/selinux-h: Likewise.
35376         * modules/settime: Likewise.
35377         * modules/signal: Likewise.
35378         * modules/size_max: Likewise.
35379         * modules/socklen: Likewise.
35380         * modules/ssize_t: Likewise.
35381         * modules/stdarg: Likewise.
35382         * modules/stdbool: Likewise.
35383         * modules/stddef: Likewise.
35384         * modules/stdint: Likewise.
35385         * modules/stdio: Likewise.
35386         * modules/stdlib: Likewise.
35387         * modules/string: Likewise.
35388         * modules/strings: Likewise.
35389         * modules/sys_file: Likewise.
35390         * modules/sys_ioctl: Likewise.
35391         * modules/sys_select: Likewise.
35392         * modules/sys_socket: Likewise.
35393         * modules/sys_stat: Likewise.
35394         * modules/sys_time: Likewise.
35395         * modules/sys_times: Likewise.
35396         * modules/sys_utsname: Likewise.
35397         * modules/sys_wait: Likewise.
35398         * modules/sysexits: Likewise.
35399         * modules/time: Likewise.
35400         * modules/times: Likewise.
35401         * modules/tmpfile: Likewise.
35402         * modules/trim: Likewise.
35403         * modules/unistd: Likewise.
35404         * modules/wchar: Likewise.
35405         * modules/wctype: Likewise.
35406
35407 2009-09-17  Bruno Haible  <bruno@clisp.org>
35408
35409         Make getdate.y compile on QNX and NetBSD 5 / i386.
35410         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35411         TIME_T_FITS_IN_LONG_INT.
35412         * lib/getdate.y (long_time_t): New type.
35413         (relative_time): Change type of 'seconds' field to long_time_t.
35414         (get_date): Update types of local variables. Check against overflow
35415         during conversion from long_time_t to time_t.
35416         Reported by Matt Kraai <kraai@ftbfs.org>
35417         and Hasso Tepper <hasso@netbsd.org>.
35418
35419 2009-09-17  Bruno Haible  <bruno@clisp.org>
35420
35421         * modules/COPYING: Update copyright years.
35422         * modules/README: Likeiwse.
35423         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35424         Reported by Ian Beckwith <ianb@erislabs.net>.
35425
35426 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35427
35428         * users.txt: Update references for gnuit package.
35429
35430 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35431
35432         * m4/getdelim.m4: Fix typo in copyright line.
35433
35434 2009-09-17  Bruno Haible  <bruno@clisp.org>
35435
35436         * lib/atoll.c: Use the standard header with GPL copyright.
35437         * lib/argz.in.h: Likewise.
35438         * lib/glob.c: Likewise.
35439         * lib/glob-libc.h: Likewise.
35440         * lib/random_r.c: Likewise.
35441         * lib/siglist.h: Likewise.
35442         * lib/strsignal.c: Likewise.
35443         Reported by Ian Beckwith <ianb@erislabs.net>.
35444
35445 2009-09-17  Eric Blake  <ebb9@byu.net>
35446
35447         rmdir: ensure correct dependency order
35448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35449
35450 2009-09-17  Bruno Haible  <bruno@clisp.org>
35451
35452         Disable assertion that fails on NetBSD 5 / i386.
35453         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35454         Reported by Sam Steingold <sds@gnu.org>
35455         and Hasso Tepper <hasso@netbsd.org>.
35456
35457 2009-09-16  Eric Blake  <ebb9@byu.net>
35458
35459         unlinkdir: port to mingw
35460         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35461         on which no one can unlink a directory.
35462
35463         stdlib: sort witness names
35464         * modules/stdlib (Makefile.am): Sort replacements.
35465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35466         * lib/stdlib.in.h: Likewise.
35467
35468         parse-duration-tests: avoid link failure
35469         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35470         LIBINTL.
35471         Reported by Tom G. Christensen.
35472
35473         openat-tests: ensure unlinkat behaves like rmdir
35474         * tests/test-rmdir.c (main): Factor guts...
35475         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35476         * modules/rmdir-tests (Files): Ship new file.
35477         * modules/openat-tests: New test.
35478         * tests/test-unlinkat.c: Likewise.
35479
35480         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35481         * modules/rmdir-errno (Status, Notice): Now obsolete.
35482
35483         rmdir: work around cygwin 1.5.x and mingw bugs
35484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35485         * lib/rmdir.c (rmdir): Work around it.
35486         * modules/rmdir (Status, Notice): No longer obsolete.
35487         (Files): Add dos.m4.
35488         (Depends-on): Add unistd.
35489         (configure.ac): Set witnesses.
35490         (License): Relax to LGPLv2+.
35491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35492         * modules/unistd (Makefile.am): Substitute witnesses.
35493         * lib/unistd.in.h (rmdir): Declare replacement.
35494         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35495         * modules/rmdir-tests: New tests.
35496         * tests/test-rmdir.c: Likewise.
35497
35498 2009-09-15  Eric Blake  <ebb9@byu.net>
35499
35500         fchdir: improve use of replacement functions
35501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35503         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35504         REPLACE_CLOSEDIR.
35505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35506         * modules/sys_stat (Makefile.am): Substitute correct witness.
35507         * modules/dirent (Makefile.am): Likewise.
35508         * modules/unistd (Makefile.am): Likewise.
35509         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35510         * lib/unistd.in.h (dup): Likewise.
35511         * lib/sys_stat.in.h (fstat): Likewise.
35512
35513         maint: ignore gnulib-tool temp files
35514         * .gitignore: Ignore files created during gnulib-tool --test.
35515
35516 2009-09-13  Jim Meyering  <meyering@redhat.com>
35517
35518         posixtm: don't reject a time that specify "60" as the number of seconds
35519         * lib/posixtm.c (posixtime): The code to reject invalid dates
35520         would also reject a time specified with the .60 suffix.
35521         But POSIX allows that, in order to accommodate leap seconds.
35522         So don't reject it.
35523         (main): Adjust tests accordingly.
35524         * modules/posixtm (Depends-on): Add stpcpy.
35525
35526 2009-09-11  Jim Meyering  <meyering@redhat.com>
35527
35528         announce-gen: include [$release_type] in emitted Subject:
35529         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35530         e.g., [stable] in the emitted Subject: line.
35531
35532 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35533
35534         Remove obsolete macros from several modules.
35535         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35536         obsolete Autoconf macros with their modern counterparts.
35537         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35538         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35540         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35542         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35545         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35546         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35547         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35549         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35550         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35551         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35553         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35554         * m4/time_r.m4 (gl_TIME_R): Likewise.
35555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35556         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35557         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35558
35559         Fix copyright header in build-aux scripts.
35560         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35561         recommendation.
35562         * build-aux/ncftpput-ftp: Likewise.
35563         * build-aux/update-copyright: Likewise.
35564
35565 2009-09-09  Eric Blake  <ebb9@byu.net>
35566
35567         test-link: allow Linux choice of errno
35568         * tests/test-link.c (main): Relax test for alternate error.
35569
35570         strndup: fix improper m4 caching
35571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35572         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35573         (gl_PREREQ_STRNDUP): Delete.
35574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35575         * modules/string (Makefile.am): Substitute it.
35576         * lib/string.in.h (strndup): Modernize prototype.
35577
35578         getcwd: port to mingw
35579         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35580         different from the POSIX assumptions made throughout the getcwd
35581         module; fortunately, the mingw getcwd does not need replacement.
35582         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35583         * modules/getcwd-tests: New test.
35584         * tests/test-getcwd.c: Likewise.
35585
35586         link: fix platform bugs
35587         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35588         * lib/link.c (link): Work around them.  Fix related mingw bug.
35589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35590         * modules/unistd (Makefile.am): Substitute it.
35591         * lib/unistd.in.h (link): Declare replacement.
35592         * doc/posix-functions/link.texi (link): Document this.
35593         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35594
35595         test-link: consolidate into single C program, test more cases
35596         * tests/test-link.sh: Delete.
35597         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35598         at least Cygwin and Solaris.
35599         * modules/link-tests (Files): Remove unused file.
35600         (Depends-on): Add errno, sys_stat.
35601         (Makefile.am): Simplify.
35602
35603 2009-09-08  Bruno Haible  <bruno@clisp.org>
35604
35605         Work around towlower, towupper bug on mingw.
35606         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35607         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35608         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35609         * doc/posix-functions/towupper.texi: Likewise.
35610         Reported by Eric Blake.
35611
35612 2009-09-08  Jim Meyering  <meyering@redhat.com>
35613
35614         build: don't try to run autoheader if we don't use it
35615         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35616         is not used in configure.ac.
35617
35618 2009-09-08  Eric Blake  <ebb9@byu.net>
35619
35620         euidaccess: fix compilation error
35621         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35622
35623         rawmemchr: relax license
35624         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35625         okay.
35626         Reported by Jim Meyering.
35627
35628         mkfifoat: new module
35629         * modules/mkfifoat: New file.
35630         * lib/mkfifoat.c: Likewise.
35631         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35633         * modules/sys_stat (Makefile.am): Use them.
35634         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35635         * MODULES.html.sh (File system functions): Mention module.
35636         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35637         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35638         * modules/mkfifoat-tests: New test.
35639         * tests/test-mkfifoat.c: Likewise.
35640
35641         strchrnul: relax license
35642         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35643         okay.
35644         Reported by Jim Meyering.
35645
35646 2009-09-08  Eric Blake  <ebb9@byu.net>
35647
35648         fstatat: fix compilation on Solaris
35649         * lib/fstatat.c (includes): Add fcntl.h.
35650         Reported by Pádraig Brady.
35651
35652 2009-09-07  Eric Blake  <ebb9@byu.net>
35653
35654         rename: modernize replacement
35655         * modules/rename (Depends-on): Add stdio.
35656         (configure.ac): Declare witness.
35657         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35658         stdio take care of replacement.
35659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35660         * modules/stdio (Makefile.am): Substitute them.
35661         * lib/stdio.in.h (rename): Declare replacement.
35662         * lib/rename.c (includes): Allow cross-compilation to non-windows
35663         machines.
35664         * doc/posix-functions/rename.texi (rename): Improve
35665         documentation.
35666
35667         stdio: sort witness names
35668         * modules/stdio (Makefile.am): Sort replacements.
35669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35670         * lib/stdio.in.h: Likewise.
35671
35672         getcwd: minor cleanups
35673         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35674         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35675
35676         openat: provide more convenience names
35677         * modules/faccessat (configure.ac): Add C witness.
35678         * lib/unistd.in.h (readlinkat): Fix typo.
35679         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35680         convenience wrappers.
35681         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35682         wrappers in syntax checks.
35683
35684 2009-09-06  Eric Blake  <ebb9@byu.net>
35685
35686         doc: fix comments in recent patches
35687         * lib/faccessat.c: Mention correct function.
35688         * lib/fchmodat.c: Likewise.
35689         * lib/fchownat.c: Likewise.
35690         * lib/symlinkat.c: Likewise.
35691         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35692         constants.
35693
35694         faccessat, symlinkat: continue cleanup of previous patch
35695         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35696         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35697         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35699         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35700         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35701         set.
35702
35703 2009-09-06  Bruno Haible  <bruno@clisp.org>
35704
35705         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35706         (fstatat): Declare if GNULIB_FSTATAT is set.
35707         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35708         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35709         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35710         * modules/fcntl-h (Files): Remove m4/openat.m4.
35711         * modules/sys_stat (Files): Remove m4/openat.m4.
35712         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35713         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35714         * modules/unistd (Files): Remove m4/openat.m4.
35715         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35716         GNULIB_OPENAT.
35717         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35718         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35720         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35721         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35722         gl_OPENAT_DEFAULTS.
35723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35724         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35725         Don't require gl_OPENAT_DEFAULTS.
35726         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35727         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35728         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35729         (gl_OPENAT_DEFAULTS): Remove macro.
35730
35731 2009-09-06  Bruno Haible  <bruno@clisp.org>
35732
35733         * modules/openat (configure.ac): Remove unneeded witness.
35734
35735 2009-09-06  Bruno Haible  <bruno@clisp.org>
35736
35737         Set errno to ENOSYS when a function is entirely unsupported.
35738         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35739         EOPNOTSUPP.
35740         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35741         * modules/chown (Depends-on): Remove errno.
35742
35743 2009-09-06  Bruno Haible  <bruno@clisp.org>
35744
35745         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35746
35747 2009-09-06  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35750
35751 2009-09-06  Ben Pfaff  <blp@gnu.org>
35752             Bruno Haible  <bruno@clisp.org>
35753
35754         Work around a glibc bug in strtok_r.
35755         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35756         Undefine if UNDEFINE_STRTOK_R is set.
35757         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35759         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35760         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35761         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35762         UNDEFINE_STRTOK_R.
35763         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35764
35765 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35766
35767         exclude: minor fix
35768         * lib/exclude.c: Include wctype.h
35769
35770 2009-09-06  Akim Demaille  <demaille@gostai.com>
35771
35772         bootstrap: improve error message
35773         * build-aux/bootstrap (find_tool): Upon failure, report the list
35774         of candidates.
35775         Honor the initial value of the envvar.
35776
35777 2009-09-05  Eric Blake  <ebb9@byu.net>
35778
35779         symlinkat: new module
35780         * modules/symlinkat: New file.
35781         * lib/symlinkat.c: Likewise.
35782         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35784         * modules/unistd (Makefile.am): Use them.
35785         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35786         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35787         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35788         * MODULES.html.sh (File system functions): Mention module.
35789         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35790         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35791         * modules/symlinkat-tests: New test.
35792         * tests/test-symlinkat.c: Likewise.
35793
35794         test-openat-safer: add more checks
35795         * tests/test-openat-safer.c (main): Check more code paths.
35796
35797 2009-09-05  Jim Meyering  <meyering@redhat.com>
35798
35799         syntax-check: detect unnecessary inclusion of openat.h
35800         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35801
35802 2009-09-05  Bruno Haible  <bruno@clisp.org>
35803
35804         Support towlower, towupper.
35805         * doc/posix-functions/towlower.texi: Mention module wctype.
35806         * doc/posix-functions/towupper.texi: Likewise.
35807         * lib/wctype.in.h (towlower, towupper): New functions.
35808         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35809         (ASSERT): New macro.
35810         (e): New variable.
35811         (main): Test also towlower, towupper. Test WEOF argument.
35812         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35813
35814 2009-09-05  Bruno Haible  <bruno@clisp.org>
35815
35816         Fix conversion behaviour when the input is invalid.
35817         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35818         mark occurring in first pass of indirect conversion.
35819         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35820         input.
35821         Found by clang's static analyzer.
35822
35823 2009-09-05  Bruno Haible  <bruno@clisp.org>
35824
35825         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35826         where direct conversion is possible.
35827
35828 2009-09-04  Eric Blake  <ebb9@byu.net>
35829
35830         openat: fail with ENOENT on empty name
35831         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35832         buffer.
35833
35834         link-follow: fix logic bug in prior patch
35835         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35836         reversed sense of yes and no in prior patch.  Avoid confusing
35837         compilation failure with desired semantics.
35838
35839         link-follow: accomodate mingw and cross-compilation
35840         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35841         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35842         cross-compilation results to -1, to make linkat easier to
35843         implement when cross-compiling.  Trivially support mingw.
35844         * modules/link-follow (configure.ac): Call new name.
35845         * NEWS: Mention this.
35846
35847 2009-09-03  Eric Blake  <ebb9@byu.net>
35848
35849         faccessat: compile replacement
35850         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35851         needed.
35852
35853         fts: fix compilation error
35854         * lib/fts.c (includes): Re-add "openat.h", for
35855         openat_needs_fchdir.
35856
35857         faccessat: new module
35858         * modules/faccessat: New file.
35859         * lib/faccessat.c: Likewise.
35860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35862         * modules/unistd (Makefile.am): Use it.
35863         * lib/unistd.in.h (faccessat): Declare it.
35864         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35865         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35866         * MODULES.html.sh (File system functions): Mention it.
35867         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35868         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35869
35870         euidaccess: prefer POSIX over non-standard implementation
35871         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35872         * lib/euidaccess.c (euidaccess): Use it if available.
35873
35874         openat: make template easier to use
35875         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35876         AT_FUNC_F2 to be undefined.
35877         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35878         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35879         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35880         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35881         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35882         Likewise.
35883         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35884         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35885         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35886         Likewise.
35887
35888         openat: declare in POSIX headers
35889         * NEWS: Mention this.
35890         * modules/openat (configure.ac): Declare witnesses.
35891         (Depends-on): Add fcntl-h, sys_stat, unistd.
35892         (Include): Mention correct headers.
35893         * modules/fcntl-h (Depends-on): Add link-warning.
35894         (Files): Add openat.m4.
35895         (Makefile.am): Substitute witnesses.
35896         * modules/sys_stat (Files, Makefile.am): Likewise.
35897         * modules/unistd (Files, Makefile.am): Likewise.
35898         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35899         (gl_OPENAT_DEFAULTS): New macro.
35900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35903         (SYS_STAT_H): Remove unused variable.
35904         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35905         * lib/fcntl--.h (includes): Remove unneeded header.
35906         * lib/openat-safer.c (includes): Likewise.
35907         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35908         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35909         appropriate headers.
35910         (__OPENAT_PREFIX): Delete.
35911         * lib/fcntl.in.h (openat): Provide declaration.
35912         (AT_FDCWD): Fix Solaris bug.
35913         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35914         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35915         * lib/fchmodat.c (includes):  Adjust to find declaration.
35916         * lib/fchownat.c (includes): Likewise.
35917         * lib/mkdirat.c (includes): Likewise.
35918         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35919         still visible.
35920
35921 2009-09-02  Eric Blake  <ebb9@byu.net>
35922
35923         errno: use consistently
35924         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35925         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35926         * lib/canonicalize.c (ELOOP): Likewise.
35927         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35928         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35929         * lib/lchown.c (EOPNOTSUPP): Likewise.
35930         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35931         * lib/savewd.c (ESTALE): Likewise.
35932         * lib/settime.c (ENOSYS): Likewise.
35933         * lib/utimens.c (ENOSYS): Likewise.
35934         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35935         * lib/chdir-safer.c (ELOOP): Likewise.
35936         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35937         * modules/c-stack (Depends-on): Add errno.
35938         * modules/canonicalize (Depends-on): Likewise.
35939         * modules/chdir-safer (Depends-on): Likewise.
35940         * modules/fdopendir (Depends-on): Likewise.
35941         * modules/inet_ntop (Depends-on): Likewise.
35942         * modules/inet_pton (Depends-on): Likewise.
35943         * modules/lchown (Depends-on): Likewise.
35944         * modules/openat (Depends-on): Likewise.
35945         * modules/savewd (Depends-on): Likewise.
35946         * modules/settime (Depends-on): Likewise.
35947         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35948
35949         fts: avoid leaking fds
35950         * modules/fts (Depends-on): Add cloexec.
35951         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35952         flag.
35953
35954         fts: make directory fds more robust
35955         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35956         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35957
35958         backupfile, chdir-long, fts, savedir: make safer
35959         * lib/backupfile.c (includes): Use "dirent--.h", since
35960         numbered_backup can write to stderr during readdir.
35961         * lib/savedir.c (includes): Likewise.
35962         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35963         emulation can write to stderr on failure.
35964         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35965         * lib/getcwd.c: Document why opendir_safer is unused.
35966         * lib/glob.c: Likewise.
35967         * lib/scandir.c: Likewise.
35968         * lib/openat-proc.c: Likewise, for open_safer.
35969         * modules/backupfile (Depends-on): Add dirent-safer.
35970         * modules/savedir (Depends-on): Likewise.
35971         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35972         * modules/chdir-long (Depends-on): Add openat-safer.
35973
35974         openat-safer: new module
35975         * modules/openat-safer: New file.
35976         * lib/openat-safer.c: Likewise.
35977         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35978         * lib/fcntl-safer.h (openat_safer): Declare.
35979         * lib/fcntl--.h (openat): Override.
35980         * MODULES.html.sh (File descriptor based I/O): Mention it.
35981         * lib/openat.h: Add double-inclusion guards.
35982         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35983         "fcntl--.h", so we can implement openat.
35984         * modules/openat-safer-tests: New test.
35985         * tests/test-openat-safer.c: New file.
35986
35987         dirent-safer: new module
35988         * modules/dirent-safer: New file.
35989         * lib/dirent--.h: Likewise.
35990         * lib/dirent-safer.h: Likewise.
35991         * lib/opendir-safer.c: Likewise.
35992         * m4/dirent-safer.m4: Likewise.
35993         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35994         * modules/dirent-safer-tests: New test.
35995         * tests/test-dirent-safer.c: New file.
35996         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35997
35998         fdopendir: optimize on mingw
35999         * lib/unistd.in.h (_gl_directory_name): New prototype.
36000         * lib/fchdir.c (_gl_directory_name): Implement it.
36001         (fchdir): Use it to simplify implementation.
36002         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36003         fchdir, when available, to avoid calling [f]chdir().
36004
36005         fdopendir: split into its own module
36006         * lib/openat.c (fdopendir): Move...
36007         * lib/fdopendir.c: ...into new file.
36008         * modules/fdopendir: New module.
36009         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36010         * modules/openat (Depends-on): Add fdopendir.
36011         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36012         fdopendir here.
36013         * modules/savedir (Depends-on): Only need fdopendir, not full
36014         openat.
36015         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36016         * lib/openat.h (fdopendir): Drop prototype.
36017         * lib/dirent.in.h (fdopendir): Provide prototype.
36018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36019         * modules/dirent (Makefile.am): Substitute them.
36020         * MODULES.html.sh (File system functions): Mention it.
36021         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36022         * modules/fdopendir-tests: New file.
36023         * tests/test-fdopendir.c: Likewise.
36024
36025         fchdir: use more consistent macro convention
36026         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36027         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36028         REPLACE_FCHDIR, rather than relying on config.h macros.
36029         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36030         inside a single make-time REPLACE_FCHDIR block, rather than using
36031         the config.h FCHDIR_REPLACEMENT.
36032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36033         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36034         Manage fstat replacement.
36035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36036         REPLACE_FCHDIR.
36037         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36038         (Makefile.am): Substitute REPLACE_FCHDIR.
36039         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36040         FCHDIR_REPLACEMENT.
36041         * lib/dup-safer.c (dup_safer): Likewise.
36042         * lib/dup2.c (rpl_dup2): Likewise.
36043         * lib/dup3.c (rpl_dup3): Likewise.
36044         * lib/open.c (rpl_open): Likewise.
36045
36046         fchdir: simplify error handling, and support dup3
36047         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36048         stdbool, malloc-posix, realloc-posix.
36049         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36050         (ensure_dirs_slot): Return false on allocation failure.
36051         (rpl_dup2): Delete.
36052         (_gl_register_dup): New function.
36053         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36054         (_gl_register_fd): Close fd on allocation failure.
36055         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36056         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36057         prototype.
36058         (rpl_dup2_fchdir): Delete prototype.
36059         * lib/open.c (open): Update caller.
36060         * lib/dup2.c (dup2): Track fchdir metadata.
36061         * lib/dup3.c (dup3): Likewise.
36062         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36064
36065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36066
36067         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36068         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36069         don't pass arguments to AC_OUTPUT.
36070
36071 2009-09-02  Bruno Haible  <bruno@clisp.org>
36072
36073         * modules/mkdtemp (License): Relicense under LGPLv2+.
36074         Reported by Paolo Bonzini.
36075
36076 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36077
36078         Replace uses of obsolete autoconf macros in Jim's modules.
36079         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36080         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36081         can evoke a warning from autoconf when run with -Wobsolete
36082         enabled.  They were declared obsolete for good reasons (see
36083         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36084         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36085         should not continue using the deprecated macros.
36086         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36087         obsolete Autoconf macros with modern counterparts.
36088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36089         * m4/dos.m4 (gl_AC_DOS): Likewise.
36090         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36092         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36093         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36094         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36095         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36097         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36098         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36099         Likewise.
36100         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36102         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36103         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36104         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36105         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36106
36107 2009-09-01  Eric Blake  <ebb9@byu.net>
36108
36109         fchdir: fix off-by-one bug in previous patch
36110         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36111         (_gl_unregister_fd): Delete useless if.
36112
36113 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36114
36115         maint.mk: sort the list of syntax-check rules
36116         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36117         easier to get a sense of progress when the rules are run sequentially
36118         and take a long time.
36119
36120 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36121
36122         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36123         * modules/netinet_in: Likewise.
36124         * modules/sys_file: Likewise.
36125         * modules/sys_ioctl: Likewise.
36126         * modules/sys_select: Likewise.
36127         * modules/sys_socket: Likewise.
36128         * modules/sys_stat: Likewise.
36129         * modules/sys_time: Likewise.
36130         * modules/sys_times: Likewise.
36131         * modules/sys_utsname: Likewise.
36132         * modules/sys_wait: Likewise.
36133
36134 2009-09-01  Jim Meyering  <meyering@redhat.com>
36135
36136         fts: help ensure that return values are not ignored
36137         * lib/fts_.h (__GNUC_PREREQ): Define.
36138         (__attribute_warn_unused_result__): Define.
36139         (fts_children, fts_close, fts_open, fts_read): Declare with
36140         __attribute_warn_unused_result__.
36141
36142         fts: fts_close now fails also when closing a dir file descriptor fails
36143         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36144         and propagate to caller, along with errno.
36145
36146         announce-gen: correct formatting in --help output
36147         * build-aux/announce-gen (usage): Move the one-line description in
36148         --help output "up", to where it belongs, just after Usage:.
36149
36150 2009-08-31  Eric Blake  <ebb9@byu.net>
36151
36152         fchdir: port to mingw
36153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36154         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36155         opened, then use a substitute.
36156         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36157         replacement.
36158         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36159         (_gl_register_fd): No need to check stat if open already filters
36160         all directories.
36161         (fchdir): Fix error condition to match POSIX.
36162         * modules/fchdir (Depends-on): Add sys_stat.
36163         * doc/posix-functions/open.texi (open): Document the limitation.
36164         * modules/fchdir-tests: New file.
36165         * tests/test-fchdir.c: Likewise.
36166
36167         canonicalize: allow cross-testing from cygwin to mingw
36168         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36169         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36170         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36171         Likewise.
36172         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36173         target does not support symlinks.
36174         * tests/test-canonicalize-lgpl.sh: Likewise.
36175
36176         chown: avoid compilation warning on mingw
36177         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36178         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36179         mingw.
36180         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36181         * modules/chown (Depends-on): Add errno.
36182
36183 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36184
36185         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36186         command.
36187
36188 2009-08-31  Jim Meyering  <meyering@redhat.com>
36189
36190         canonicalize: remove useless initialization
36191         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36192         initialization of local, "end".
36193
36194 2009-08-30  Bruno Haible  <bruno@clisp.org>
36195
36196         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36197         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36198         ENOSYS.
36199
36200 2009-08-30  Bruno Haible  <bruno@clisp.org>
36201
36202         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36203         /usr/xpg4/bin/tr when it exists.
36204         * tests/test-pipe-filter-gi1.sh: Likewise.
36205
36206 2009-08-30  Bruno Haible  <bruno@clisp.org>
36207
36208         Work around deficient /usr/bin/id program on Solaris.
36209         * tests/test-file-has-acl.sh (ID): New variable.
36210         * tests/test-set-mode-acl.sh (ID): Likewise.
36211         * tests/test-copy-acl.sh (ID): Likewise.
36212         * tests/test-copy-file.sh (ID): Likewise.
36213
36214 2009-08-30  Bruno Haible  <bruno@clisp.org>
36215
36216         New module 'xstriconveh'.
36217         * lib/xstriconveh.h: New file.
36218         * lib/xstriconveh.c: New file.
36219         * modules/xstriconveh: New file.
36220
36221 2009-08-30  Bruno Haible  <bruno@clisp.org>
36222
36223         Make it easier to use mem_cd_iconveh.
36224         * lib/striconveh.h (iconveh_t): New type.
36225         (iconveh_open, iconveh_close): New declarations.
36226         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36227         with a single 'const iconveh_t *' argument.
36228         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36229         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36230         with a single 'const iconveh_t *' argument.
36231         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36232         * tests/test-striconveh.c (main): Update.
36233         * NEWS: Mention the change.
36234
36235 2009-08-30  Bruno Haible  <bruno@clisp.org>
36236
36237         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36238         problem.
36239
36240 2009-08-30  Bruno Haible  <bruno@clisp.org>
36241
36242         Work around iconv_open problem on Solaris.
36243         * lib/iconv_open-solaris.gperf: New file.
36244         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36245         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36246         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36247         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36248         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36249         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36250
36251 2009-08-29  Jim Meyering  <meyering@redhat.com>
36252
36253         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36254         * top/maint.mk (cvs-check): Remove target; it was just an alias
36255         to the better-named vc-diff-check.
36256         (maintainer-distcheck): Remove rule.  It was used only from
36257         the (alpha/beta/major) target, and all of its commands but one
36258         were coreutils-specific.
36259         (vc-dist): Remove rule.
36260         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36261         Run vc-diff-check, not vc-dist.
36262         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36263
36264 2009-08-27  Bruno Haible  <bruno@clisp.org>
36265
36266         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36267         of 0.
36268
36269 2009-08-27  Bruno Haible  <bruno@clisp.org>
36270
36271         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36272         compilers.
36273         * doc/func.texi: Document the SunPRO C bug.
36274
36275 2009-08-27  Bruno Haible  <bruno@clisp.org>
36276
36277         Fix link error on Solaris.
36278         * tests/test-parse-duration.c (xstrdup): Remove function.
36279
36280 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36281
36282         ignore-value: handle pointer types, too
36283         * lib/ignore-value.h (__attribute__): Remove definition.
36284         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36285         of a more concise and more-often effective "(void) i" statement.
36286         (ignore_ptr): New function to suppress warnings from functions that
36287         return pointers, and to make it explicit that one function doesn't
36288         handle all cases.
36289
36290 2009-08-25  Bruno Haible  <bruno@clisp.org>
36291
36292         dup2: work around a Linux bug.
36293         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36294         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36295         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36296         Reported by Simon Josefsson.
36297
36298 2009-08-25  Jim Meyering  <meyering@redhat.com>
36299
36300         libguestfs uses gnulib
36301         * users.txt: Add libguestfs.
36302
36303 2009-08-24  Eric Blake  <ebb9@byu.net>
36304
36305         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36306         * lib/pipe2.c (includes): Add binary-io.h.
36307         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36308
36309 2009-08-24  Bruno Haible  <bruno@clisp.org>
36310
36311         Tolerate declared but missing accept4 syscall.
36312         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36313         available.
36314         * lib/sys_socket.in.h (accept4): If the function is already present,
36315         override it.
36316         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36317         * modules/accept4 (Makefile.am): Compile accept4.c always.
36318         Reported by Paolo Bonzini and Eric Blake.
36319
36320 2009-08-23  Bruno Haible  <bruno@clisp.org>
36321
36322         New module 'accept4'.
36323         * lib/sys_socket.in.h (accept4): New declaration.
36324         * lib/accept4.c: New file.
36325         * m4/accept4.m4: New file.
36326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36327         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36328         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36329         HAVE_ACCEPT4.
36330         * modules/accept4: New file.
36331         * doc/glibc-functions/accept4.texi: Mention the new module.
36332
36333 2009-08-24  Jim Meyering  <meyering@redhat.com>
36334
36335         progname: also set global program_invocation_name, when possible
36336         Before this change, a libtool-enabled program that calls glibc's
36337         error function would report the program name as
36338         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36339         * modules/progname (configure.ac): Check for a declaration of
36340         program_invocation_name.
36341         * lib/progname.c:  Include <errno.h>.
36342         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36343         Set program_invocation_name.
36344
36345 2009-08-23  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/dup3.c: Include <string.h>.
36348
36349 2009-08-23  Bruno Haible  <bruno@clisp.org>
36350
36351         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36352         * lib/pipe2.c (pipe2): Likewise.
36353         Suggested by Eric Blake.
36354
36355 2009-08-23  Bruno Haible  <bruno@clisp.org>
36356
36357         Tolerate declared but missing dup3 syscall.
36358         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36359         * lib/unistd.in.h (dup3): If the function is already present,
36360         override it.
36361         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36362         * modules/dup3 (Makefile.am): Compile dup3.c always.
36363         Reported by Paolo Bonzini.
36364
36365 2009-08-23  Bruno Haible  <bruno@clisp.org>
36366
36367         Tolerate declared but missing pipe2 syscall.
36368         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36369         available.
36370         * lib/unistd.in.h (pipe2): If the function is already present,
36371         override it.
36372         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36373         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36374         Reported by Paolo Bonzini.
36375
36376 2009-08-23  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/pipe2.c (pipe2): Move #ifs inside function.
36379
36380 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36381
36382         quotearg: document limitations of quote_these_too
36383         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36384         those limitations are created.
36385         * lib/quotearg.h (set_char_quoting): Document that digits and
36386         letters that are special after backslash are not permitted.
36387         (quotearg_char): Cross-reference set_char_quoting documentation.
36388
36389 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36390
36391         quotearg: implement custom_quoting_style
36392         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36393         right_quote fields.
36394         (set_custom_quoting): New public function.
36395         (quotearg_buffer_restyled): Add left_quote and right_quote
36396         arguments, handle them very much like locale quoting, and update
36397         all uses.
36398         (quotearg_n_custom): New public function.
36399         (quotearg_n_custom_mem): New public function.
36400         (quotearg_custom): New public function.
36401         (quotearg_custom_mem): New public function.
36402         * lib/quotearg.h: Prototype and document new public functions.
36403         (enum quoting_style): For escape_quoting_style and
36404         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36405         ignored even though they're otherwise like c_quoting_style.
36406         Add custom_quoting_style member and document with comparison to
36407         clocale_quoting_style.
36408         * tests/test-quotearg.c (custom_quotes): New array.
36409         (custom_results): New array.
36410         (main): Extend to test custom quoting.
36411
36412 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36413
36414         quotearg: fix right quote escaping when it's in quote_these_too
36415         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36416         quote, be sure to prepend only one backslash.
36417         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36418         (main): Test it.
36419
36420 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36421
36422         quotearg-tests: test escaping of embedded locale quotes
36423         * tests/test-quotearg.c (struct result_strings): Add member for
36424         new input.
36425         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36426         (inputs): Add new input.
36427         (results_g): Add expected results.
36428         (flag_results): Likewise.
36429         (locale_results): Likewise.
36430         (compare_strings): Check those.
36431
36432 2009-08-23  Bruno Haible  <bruno@clisp.org>
36433
36434         Tests for module 'dup3'.
36435         * modules/dup3-tests: New file.
36436         * tests/test-dup3.c: New file.
36437
36438         New module 'dup3'.
36439         * lib/unistd.in.h (dup3): New declaration.
36440         * lib/dup3.c: New file.
36441         * m4/dup3.m4: New file.
36442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36443         HAVE_DUP3.
36444         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36445         * modules/dup3: New file.
36446         * doc/glibc-functions/dup3.texi: Mention the new module.
36447
36448 2009-08-23  Bruno Haible  <bruno@clisp.org>
36449
36450         Tweak the dup2 test.
36451         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36452         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36453         the test file is still empty. Fix argument order of lseek.
36454
36455 2009-08-23  Bruno Haible  <bruno@clisp.org>
36456
36457         Avoid test link errors when the modules getopt-gnu, gettext are used.
36458         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36460
36461 2009-08-23  Bruno Haible  <bruno@clisp.org>
36462
36463         Fix getdtablesize() on mingw.
36464         * lib/getdtablesize.c (getdtablesize): Implement differently.
36465         * lib/unistd.in.h (getdtablesize): Improve comment.
36466
36467 2009-08-23  Bruno Haible  <bruno@clisp.org>
36468
36469         New module 'mkostemp'.
36470         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36471         * lib/stdlib.in.h (mksotemp): New declaration.
36472         * lib/mkostemp.c: New file, from glibc with modifications.
36473         * lib/tempname.h (GT_FILE): Remove outdated comment.
36474         (gen_tempname): Add flags argument.
36475         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36476         (__GT_FILE): Map to 1.
36477         (small_open, large_open): Remove macros.
36478         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36479         * lib/mkstemp.c (mkstemp): Update.
36480         * lib/mkdtemp.c (mkdtemp): Likewise.
36481         * m4/mkostemp.m4: New file.
36482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36483         HAVE_MKOSTEMP.
36484         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36485         HAVE_MKOSTEMP.
36486         * modules/mkostemp: New file, based on modules/mkstemp.
36487         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36488         * NEWS: Mention the change.
36489
36490 2009-08-23  Bruno Haible  <bruno@clisp.org>
36491
36492         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36493         Reported by Eric Blake.
36494
36495 2009-08-23  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36498         Reported by Eric Blake.
36499
36500 2009-08-23  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36503         * modules/pipe2 (Depends-on): Likewise.
36504
36505 2009-08-23  Eric Blake  <ebb9@byu.net>
36506
36507         fcntl-h: add O_TTY_INIT support
36508         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36509         * tests/test-fcntl-h.c (o): Test it.
36510         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36511
36512         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36513         * modules/fcntl: Move <fcntl.h> header replacement...
36514         * modules/fcntl-h: ...to new name, so as not to collide with
36515         like-named function.
36516         * tests/test-fcntl.c: Rename...
36517         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36518         * modules/fcntl-tests: Rename...
36519         * modules/fcntl-h-tests: ...to this.  Update test file name.
36520         * modules/chdir-long (Depends-on): Update clients.
36521         * modules/chdir-safer (Depends-on): Likewise.
36522         * modules/fcntl-safer (Depends-on): Likewise.
36523         * modules/fts (Depends-on): Likewise.
36524         * modules/mkancesdirs (Depends-on): Likewise.
36525         * modules/mkdir-p (Depends-on): Likewise.
36526         * modules/open (Depends-on): Likewise.
36527         * modules/savewd (Depends-on): Likewise.
36528         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36529         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36530
36531 2009-08-22  Bruno Haible  <bruno@clisp.org>
36532
36533         * modules/binary-io (License): Relicense under LGPL.
36534         * modules/pipe2 (License): Likewise.
36535
36536 2009-08-22  Bruno Haible  <bruno@clisp.org>
36537
36538         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36539         return value.
36540         * lib/pipe-filter-gi.c (filter_init): Likewise.
36541         Reported by Eric Blake.
36542
36543 2009-08-22  Bruno Haible  <bruno@clisp.org>
36544
36545         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36546         * modules/pipe (Depends-on): Add pipe2.
36547
36548 2009-08-22  Bruno Haible  <bruno@clisp.org>
36549
36550         Tests for module 'pipe2'.
36551         * modules/pipe2-tests: New file.
36552         * tests/test-pipe2.c: New file.
36553
36554         New module 'pipe2'.
36555         * lib/unistd.in.h (pipe2): New declaration.
36556         * lib/pipe2.c: New file.
36557         * m4/pipe2.m4: New file.
36558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36559         HAVE_PIPE2.
36560         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36561         * modules/pipe2: New file.
36562         * doc/glibc-functions/pipe2.texi: Mention the new module.
36563
36564 2009-08-22  Bruno Haible  <bruno@clisp.org>
36565
36566         Reference some new glibc functions.
36567         * doc/glibc-functions/accept4.texi: New file.
36568         * doc/glibc-functions/dup3.texi: New file.
36569         * doc/glibc-functions/mkostemp.texi: New file.
36570         * doc/glibc-functions/pipe2.texi: New file.
36571         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36572         (Glibc sys/socket.h): Refer to accept4.
36573         (Glibc unistd.h): Refer to dup3, pipe2.
36574         Reported by Eric Blake.
36575
36576 2009-08-22  Jim Meyering  <meyering@redhat.com>
36577             Bruno Haible  <bruno@clisp.org>
36578
36579         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36580         This makes it so packages using automake-1.11's silent-rules option
36581         can print e.g., a single "GEN    configmake.h" line, rather than
36582         the 30+ statements that perform the job.  If you want to see the
36583         actual commands, you can still run "make V=1".
36584         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36585         so that make output is abbreviated when those variables are defined
36586         appropriately.
36587         * modules/argz: Likewise.
36588         * modules/arpa_inet: Likewise.
36589         * modules/byteswap: Likewise.
36590         * modules/configmake: Likewise.
36591         * modules/dirent: Likewise.
36592         * modules/errno: Likewise.
36593         * modules/fcntl: Likewise.
36594         * modules/float: Likewise.
36595         * modules/fnmatch: Likewise.
36596         * modules/getopt-posix: Likewise.
36597         * modules/glob: Likewise.
36598         * modules/iconv_open: Likewise.
36599         * modules/inttypes: Likewise.
36600         * modules/localcharset: Likewise.
36601         * modules/locale: Likewise.
36602         * modules/math: Likewise.
36603         * modules/netdb: Likewise.
36604         * modules/netinet_in: Likewise.
36605         * modules/poll: Likewise.
36606         * modules/posix_spawnp-tests: Likewise.
36607         * modules/sched: Likewise.
36608         * modules/search: Likewise.
36609         * modules/selinux-h: Likewise.
36610         * modules/signal: Likewise.
36611         * modules/spawn: Likewise.
36612         * modules/stdarg: Likewise.
36613         * modules/stdbool: Likewise.
36614         * modules/stddef: Likewise.
36615         * modules/stdint: Likewise.
36616         * modules/stdio: Likewise.
36617         * modules/stdlib: Likewise.
36618         * modules/string: Likewise.
36619         * modules/strings: Likewise.
36620         * modules/sys_file: Likewise.
36621         * modules/sys_ioctl: Likewise.
36622         * modules/sys_select: Likewise.
36623         * modules/sys_socket: Likewise.
36624         * modules/sys_stat: Likewise.
36625         * modules/sys_time: Likewise.
36626         * modules/sys_times: Likewise.
36627         * modules/sys_utsname: Likewise.
36628         * modules/sys_wait: Likewise.
36629         * modules/sysexits: Likewise.
36630         * modules/time: Likewise.
36631         * modules/unistd: Likewise.
36632         * modules/wchar: Likewise.
36633         * modules/wctype: Likewise.
36634
36635 2009-08-22  Jim Meyering  <meyering@redhat.com>
36636
36637         announce-gen: detect write failure
36638         * build-aux/announce-gen: Add Coda at end.
36639         Remove equivalent-but-more-verbose block at top.
36640
36641 2009-08-19  Akim Demaille  <demaille@gostai.com>
36642
36643         bootstrap: --help to stdout.
36644         * bootstrap (usage): Don't send --help to stderr.
36645         Use a here doc instead of a long string.
36646
36647 2009-08-21  Eric Blake  <ebb9@byu.net>
36648
36649         test-popen-safer: split from test-popen
36650         * tests/test-popen.c (main): Move...
36651         * tests/test-popen.h: ...into new file.
36652         * tests/test-popen-safer2.c: New file.
36653         * modules/popen-tests (Files): Add test-popen.h.
36654         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36655         Suggested by Bruno Haible.
36656
36657         test-fcntl-safer: split from test-open
36658         * tests/test-open.c (main): Move...
36659         * tests/test-open.h: ...into new file.
36660         * tests/test-fcntl-safer.c: New file.
36661         * modules/open-tests (Files): Add test-open.h.
36662         * modules/fcntl-safer-tests: New file.
36663         Suggested by Bruno Haible.
36664
36665         test-fopen-safer: split from test-fopen
36666         * tests/test-fopen.c (main): Move...
36667         * tests/test-fopen.h: ...into new file.
36668         * tests/test-fopen-safer.c: New file.
36669         * modules/fopen-tests (Files): Add test-fopen.h.
36670         * modules/fopen-safer-tests: New file.
36671         Suggested by Bruno Haible.
36672
36673 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36674
36675         popen-safer: test O_CLOEXEC at run-time.
36676         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36677
36678 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36679
36680         fcntl: move more flags to the header
36681         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36682         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36683         * lib/fcntl.in.h: Do both things here.
36684
36685 2009-08-21  Jim Meyering  <meyering@redhat.com>
36686
36687         consistently remove $@-t before redirecting to it
36688         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36689         * modules/alloca-opt: Likewise.
36690         * modules/byteswap: Likewise.
36691         * modules/fnmatch: Likewise.
36692         * modules/getopt-posix: Likewise.
36693         * modules/glob: Likewise.
36694         * modules/poll: Likewise.
36695         * modules/posix_spawnp-tests: Likewise.
36696         * modules/sys_socket: Likewise.
36697         * modules/sysexits: Likewise.
36698
36699 2009-08-21  Eric Blake  <ebb9@byu.net>
36700
36701         popen: simplify access to original popen
36702         * lib/popen.c (rpl_popen): No need to worry about popen being a
36703         macro.
36704         Reported by Bruno Haible.
36705
36706 2009-08-20  Eric Blake  <ebb9@byu.net>
36707
36708         build: avoid some compiler warnings
36709         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36710         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36711         type.
36712         (new_exclude_segment, excluded_file_pattern_p)
36713         (excluded_file_name_p): Reduce scope.
36714         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36715         old-style declaration.
36716
36717 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36718
36719         * tests/test-exclude1.sh: Handle Windows EOL.
36720         * tests/test-exclude2.sh: Likewise.
36721         * tests/test-exclude3.sh: Likewise.
36722         * tests/test-exclude4.sh: Likewise.
36723         * tests/test-exclude5.sh: Likewise.
36724         * tests/test-exclude6.sh: Likewise.
36725         * tests/test-exclude7.sh: Likewise.
36726
36727 2009-08-19  Akim Demaille  <demaille@gostai.com>
36728
36729         bootstrap: find sha1sum when named gsha1sum.
36730         * bootstrap (find_tool): New.
36731         ($SHA1SUM): New.
36732         Use it.
36733
36734 2009-08-20  Jim Meyering  <meyering@redhat.com>
36735
36736         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36737         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36738         expression that converts "." in a file name to "\." in the resulting
36739         regexp.  Start with a dummy statement, so that prior shell variable
36740         definitions are expanded portably.  Reported by Simon Josefsson.
36741
36742 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36743
36744         Fix polling for writeability of a screen buffer.
36745         * lib/poll.c: Distinguish input and screen buffers for the
36746         Win32 implementation.
36747         * lib/select.c: Likewise.
36748
36749 2009-08-19  Eric Blake  <ebb9@byu.net>
36750
36751         popen-safer: prevent popen from clobbering std descriptors
36752         * modules/popen-safer: New file.
36753         * lib/popen-safer.c: Likewise.
36754         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36755         * lib/stdio--.h (popen): Provide override.
36756         * lib/stdio-safer.h (popen_safer): Provide declaration.
36757         * tests/test-popen.c (includes): Partially test this.
36758         * modules/popen-safer-tests: New file, for more tests.
36759         * tests/test-popen-safer.c: Likewise.
36760         * MODULES.html.sh (file stream based Input/Output): Mention it.
36761
36762         tests: test some of the *-safer modules
36763         * modules/fopen-safer (Depends-on): Add fopen.
36764         * modules/fcntl-safer (Depends-on): Add fcntl.
36765         * modules/stdlib-safer (Depends-on): Add stdlib.
36766         (configure.ac): Set indicator.
36767         * modules/unistd-safer (configure.ac): Likewise.
36768         * modules/tmpfile-safer (configure.ac): Likewise.
36769         (Depends-on): Add tmpfile.
36770         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36771         active.
36772         * tests/test-fopen.c (includes): Test safer versions when they are
36773         in use.
36774         * tests/test-open.c (includes): Likewise.
36775
36776         popen: fix cygwin 1.5 bug when stdin closed
36777         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36778         * modules/popen: New file.
36779         * modules/popen-tests: Likewise.
36780         * tests/test-popen.c: Likewise.
36781         * m4/popen.m4: Likewise.
36782         * lib/popen.c: Likewise.
36783         * lib/stdio.in.h (popen): New declaration.
36784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36785         * modules/stdio (Makefile.am): Likewise.
36786         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36787
36788 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36789
36790         maint.mk: give full control over update-copyright exclusions
36791         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36792         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36793         (update-copyright): Don't force inclusion of top-level
36794         ChangeLog.  Don't force exclusion of all COPYING files, but make
36795         them the default exclusion instead.
36796
36797 2009-08-16  Bruno Haible  <bruno@clisp.org>
36798
36799         Fix test failures on Solaris 10.
36800         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36801         tests when Solaris iconv() is used.
36802         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36804         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36805         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36806         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36807
36808 2009-08-16  Bruno Haible  <bruno@clisp.org>
36809
36810         Fix test failures on Solaris 10.
36811         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36812         'tr' program and pass it as first argument.
36813         * tests/test-pipe-filter-gi1.sh: Likewise.
36814         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36815         program as first argument.
36816         * tests/test-pipe-filter-gi1.c (main): Likewise.
36817
36818 2009-08-16  Eric Blake  <ebb9@byu.net>
36819
36820         fpurge: fix previous commits
36821         * modules/fpurge (Makefile.am): Make replacement conditional,
36822         partially reverting 2007-04-29 change; missed in previous
36823         attempt.
36824         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36825         is missing.
36826
36827 2009-08-16  Bruno Haible  <bruno@clisp.org>
36828
36829         Clarify fpurge's effect on the file position.
36830         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36831         * tests/test-fpurge.c (main): Make a second pass for checking the file
36832         position.
36833
36834 2009-08-16  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36837         declaration of fpurge is missing.
36838         * tests/test-fpurge.c (main): Check that the file has not more contents
36839         than expected. Close the file before removing it.
36840
36841 2009-08-15  Eric Blake  <ebb9@byu.net>
36842
36843         fpurge: don't wrap working cygwin implementation
36844         * lib/fpurge.c (fpurge): Fix comment typo.
36845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36846         1.7 to avoid replacement.
36847         * tests/test-fpurge.c (main): Enhance test.
36848
36849 2009-08-15  Eric Blake  <ebb9@byu.net>
36850         and Jim Meyering  <meyering@redhat.com>
36851
36852         test-update-copyright: skip if perl is insufficient
36853         * tests/test-update-copyright.sh: Failure to run maintainer tool
36854         should not cause testsuite failure on cygwin 1.5.
36855
36856 2009-08-14  Eric Blake  <ebb9@byu.net>
36857
36858         doc: mention more functions added in cygwin 1.7.0
36859         * doc/posix-headers/limits.texi (limits.h): Update for recent
36860         cygwin additions.
36861         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36862         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36863         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36864         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36865         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36866
36867 2009-08-14  Eric Blake  <ebb9@byu.net>
36868
36869         maint.mk: simplify update-copyright rule
36870         * top/maint.mk (update-copyright-local): Delete, and document how
36871         to do it in cfg.mk instead.
36872         (update-copyright-exclude-regexp): Delete, and document how to do
36873         it in .x-update-copyright instead.
36874         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36875         exclude ChangeLog.
36876
36877 2009-08-14  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36880
36881 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36882
36883         maint.mk: support update-copyright-env
36884         * top/maint.mk (update-copyright-env): Define place-holder.
36885         (update-copyright): Expand $(update-copyright-env) before
36886         invoking update-copyright.
36887
36888 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36889
36890         update-copyright: implement forced reformatting
36891         * build-aux/update-copyright: Implement and document
36892         UPDATE_COPYRIGHT_FORCE.
36893         * tests/test-update-copyright.sh: Test it.
36894
36895 2009-08-14  Eric Blake  <ebb9@byu.net>
36896         and Bruno Haible  <bruno@clisp.org>
36897
36898         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36899         * tests/test-locale.c: Revert previous patch related to NULL.
36900         * tests/test-stdio.c: Likewise.
36901         * tests/test-stdlib.c: Likewise.
36902         * tests/test-string.c: Likewise.
36903         * tests/test-unistd.c: Likewise.
36904         * modules/time-tests (Depends-on): Add verify.
36905         * modules/wchar-tests (Depends-on): Likewise.
36906         * tests/test-time.c: Test for NULL compliance.
36907         * tests/test-wchar.c: Likewise.
36908         * modules/locale (Depends-on): Add stddef.
36909         * modules/stdio (Depends-on): Likewise.
36910         * modules/stdlib (Depends-on): Likewise.
36911         * modules/string (Depends-on): Likewise.
36912         * modules/time (Depends-on): Likewise.
36913         * modules/unistd (Depends-on): Likewise.
36914         * modules/wchar (Depends-on): Likewise.
36915         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36916         * lib/stdlib.in.h (includes): Likewise.
36917         * lib/string.in.h (includes): Likewise.
36918         * lib/time.in.h (includes): Likewise.
36919         * lib/unistd.in.h (includes): Likewise.
36920         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36921         replaced.
36922         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36923         * m4/stddef_h.m4: New file.
36924         * modules/stddef: Likewise.
36925         * lib/stddef.in.h: Likewise.
36926         * modules/stddef-tests: Likewise.
36927         * tests/test-stddef.c: Likewise.
36928         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36929         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36930         * doc/posix-headers/locale.texi (locale.h): Likewise.
36931         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36932         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36933         * doc/posix-headers/string.texi (string.h): Likewise.
36934         * doc/posix-headers/time.texi (time.h): Likewise.
36935         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36936         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36937
36938 2009-08-14  Eric Blake  <ebb9@byu.net>
36939
36940         doc: improve git diff of texinfo files
36941         * .gitattributes: Add rule for *.texi files, with hint on how to
36942         use it.
36943         Copied from m4, and based on a report by Bruno Haible.
36944
36945 2009-08-14  Bruno Haible  <bruno@clisp.org>
36946
36947         Disable multithread support by default on Cygwin 1.5.x for real.
36948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36949
36950 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36951
36952         update-copyright: much ado about intervals
36953         * build-aux/update-copyright: Implement and document
36954         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36955         of copyright year intervals.
36956         Also, document UPDATE_COPYRIGHT_YEAR.
36957         * tests/test-update-copyright.sh: Test it.
36958
36959         update-copyright: convert 2-digit to 4-digit years
36960         * build-aux/update-copyright: Implement and document.
36961         * tests/test-update-copyright.sh: Update.
36962
36963 2009-08-14  Jim Meyering  <meyering@redhat.com>
36964
36965         test-exclude: avoid coreutils "make check" failure
36966         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36967         just as in test-argmatch.c.
36968
36969 2009-08-13  Eric Blake  <ebb9@byu.net>
36970
36971         test-dup2: fix bad assumption
36972         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36973         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36974
36975         test-version-etc: fix CRLF portability issue
36976         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36977         recognize \r.
36978         * tests/test-argp-version-etc-1.sh: Likewise.
36979
36980         getopt: update client modules
36981         * modules/argp (Depends-on): Use getopt-gnu.
36982         * modules/git-merge-changelog (Depends-on): Likewise.
36983         * modules/long-options (Depends-on): Likewise.
36984         * modules/xstrtol (Depends-on): Likewise.
36985
36986 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36987
36988         * tests/test-version-etc.sh: Don't fail on different
36989         project/version.  Don't fail on CRLF differences.  Rewrite to use
36990         multiple -e instead of multiple sed forks, suggested by Eric Blake
36991         <ebb9@byu.net>.
36992         * tests/test-argp-version-etc-1.sh: Likewise.
36993
36994 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36995
36996         * tests/test-version-etc.sh: Don't fail on different
36997         project/version.
36998
36999 2009-08-12  Bruno Haible  <bruno@clisp.org>
37000
37001         Tests for modules 'getopt-posix', 'getopt-gnu'.
37002         * modules/getopt-posix-tests: New file.
37003         * tests/test-getopt.c: New file.
37004         * tests/test-getopt.h: New file.
37005         * tests/test-getopt_long.h: New file.
37006
37007         New modules 'getopt-posix', 'getopt-gnu'.
37008         * modules/getopt-gnu: New file, renamed from modules/getopt.
37009         * modules/getopt-posix: New file.
37010         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37011         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37012         (gl_GETOPT): Remove macro.
37013         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37014         Disable the test against BSD systems that declare optreset. Test
37015         against mingw bug. Test against lack of support of optional arguments
37016         on many platforms.
37017         * doc/glibc-headers/getopt.texi: Update module name and list of
37018         relevant platforms.
37019         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37020         'getopt-gnu' and more portability problems.
37021         * NEWS: Mention the changes.
37022
37023 2009-08-12  Bruno Haible  <bruno@clisp.org>
37024
37025         Ensure that optarg etc. get declared by <unistd.h>.
37026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37027         AC_USE_SYSTEM_EXTENSIONS.
37028         * modules/getopt (Depends-on): Add 'extensions'.
37029
37030 2009-08-12  Bruno Haible  <bruno@clisp.org>
37031
37032         Avoid test link errors.
37033         * modules/pipe-filter-ii-tests (Makefile.am): Define
37034         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37035         * modules/pipe-filter-gi-tests (Makefile.am): Define
37036         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37038
37039 2009-08-12  Bruno Haible  <bruno@clisp.org>
37040
37041         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37042         gl_GETOPT_SUBSTITUTE before.
37043         (gl_GETOPT): Use it.
37044         * m4/argp.m4 (gl_ARGP): Update.
37045         Reported by Sergey Poznyakoff.
37046
37047         * m4/getopt.m4: Reorder macros.
37048         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37049         (gl_GETOPT_SUBSTITUTE): Remove macro.
37050
37051 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37052
37053         Minor improvement in gitlog-to-changelog
37054
37055         * build-aux/gitlog-to-changelog: New option `--format' makes
37056         output format string configurable.
37057
37058 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37059
37060         Optimize exclude: use hash tables for non-wildcard patterns.
37061
37062         * lib/exclude.c: Include hash.h and mbuiter.h
37063         (struct exclude_pattern, exclude_segment): New data types.
37064         (struct exclude): Rewrite.
37065         (fnmatch_pattern_has_wildcards): New function.
37066         (new_exclude_segment, free_exclude_segment): New functions.
37067         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37068         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37069         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37070         * modules/exclude: Depend on hash and mbuiter.
37071
37072         * modules/exclude-tests: New file.
37073         * tests/test-exclude.c: New file.
37074         * tests/test-exclude1.sh: New file.
37075         * tests/test-exclude2.sh: New file.
37076         * tests/test-exclude3.sh: New file.
37077         * tests/test-exclude4.sh: New file.
37078         * tests/test-exclude5.sh: New file.
37079         * tests/test-exclude6.sh: New file.
37080         * tests/test-exclude7.sh: New file.
37081
37082 2009-08-12  Bruno Haible  <bruno@clisp.org>
37083
37084         Ensure that getopt() gets declared by <unistd.h>.
37085         * lib/unistd.in.h: Conditionally include getopt.h.
37086         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37087         Set GNULIB_UNISTD_H_GETOPT.
37088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37089         GNULIB_UNISTD_H_GETOPT.
37090         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37091
37092 2009-08-12  Bruno Haible  <bruno@clisp.org>
37093
37094         Clarify logic.
37095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37096         gl_replace_getopt instead of GETOPT_H.
37097
37098 2009-08-12  Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/getopt.m4: Add comments.
37101
37102 2009-08-12  Bruno Haible  <bruno@clisp.org>
37103
37104         Disable multithread support by default on Cygwin 1.5.x.
37105         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37106         set gl_use_threads=no if not specified otherwise.
37107
37108 2009-08-11  Bruno Haible  <bruno@clisp.org>
37109
37110         Avoid compilation error on NetBSD 5.0.
37111         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37112         * tests/test-stdio.c: Likewise.
37113         * tests/test-stdlib.c: Likewise.
37114         * tests/test-string.c: Likewise.
37115         * tests/test-unistd.c: Likewise.
37116         Reported by Greg Troxel <gdt@ir.bbn.com>
37117         at <https://savannah.gnu.org/support/?106973>.
37118
37119 2009-08-11  Bruno Haible  <bruno@clisp.org>
37120
37121         * modules/dup2-tests (Depends-on): Remove close.
37122
37123         Undo 2009-07-19 commit.
37124         * modules/acl-tests (Depends-on): Remove close.
37125         * modules/binary-io-tests (Depends-on): Likewise.
37126         * modules/closein-tests (Depends-on): Likewise.
37127         * modules/flock-tests (Depends-on): Likewise.
37128         * modules/fsync-tests (Depends-on): Likewise.
37129         * modules/lseek-tests (Depends-on): Likewise.
37130         * modules/pipe-tests (Depends-on): Likewise.
37131         * modules/posix_spawn-tests (Depends-on): Likewise.
37132         * modules/posix_spawnp-tests (Depends-on): Likewise.
37133         * modules/stat-time-tests (Depends-on): Likewise.
37134         * modules/yesno-tests (Depends-on): Likewise.
37135
37136 2009-08-10  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37139
37140 2009-08-10  Bruno Haible  <bruno@clisp.org>
37141
37142         Fix a gcc warning.
37143         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37144
37145 2009-08-10  Bruno Haible  <bruno@clisp.org>
37146
37147         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37148         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37149         not only the first time.
37150         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37151         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37152         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37153         is 1, not only the the first time.
37154
37155 2009-08-10  Bruno Haible  <bruno@clisp.org>
37156
37157         Make it possible to use module 'gethostname' without module 'close'.
37158         * lib/unistd.in.h (close): Evoke a link error only if
37159         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37161         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37162         * modules/unistd (Makefile.am): Substitute
37163         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37164         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37165         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37167         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37168         * modules/sys_ioctl (Makefile.am): Substitute
37169         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37170         * modules/socket (configure.ac): On native Windows, set
37171         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37172         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37173         Reported by Sam Steingold <sds@gnu.org>.
37174
37175 2009-08-10  Bruno Haible  <bruno@clisp.org>
37176
37177         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37178         * modules/ioctl (configure.ac): Likewise.
37179
37180 2009-08-10  Bruno Haible  <bruno@clisp.org>
37181
37182         Avoid collision between gnulib wrapper and libintl wrapper.
37183         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37184         already defined in intl/printf.c.
37185         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37186         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37187
37188 2009-08-09  Bruno Haible  <bruno@clisp.org>
37189
37190         Make <sys/select.h> really self-contained, also on Solaris 10.
37191         * lib/sys_select.in.h: Include <string.h>.
37192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37193         Solaris 10 problem.
37194         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37195         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37196         Reported by Jim Meyering.
37197
37198 2009-08-09  Bruno Haible  <bruno@clisp.org>
37199
37200         Avoid warnings from 'aclocal' that are due to a use of macro name
37201         AM_XGETTEXT_OPTION that is not defined in automake.
37202         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37203         automake.
37204         * modules/error (configure.ac): Likewise.
37205         * modules/propername (configure.ac): Likewise.
37206         * modules/vasprintf (configure.ac): Likewise.
37207         * modules/verror (configure.ac): Likewise.
37208         * modules/xprintf (configure.ac): Likewise.
37209         * modules/xvasprintf (configure.ac): Likewise.
37210
37211 2009-08-08  Bruno Haible  <bruno@clisp.org>
37212
37213         Avoid compilation error in C++ mode.
37214         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37215         Reported by Sam Steingold <sds@gnu.org>.
37216
37217 2009-08-08  Bruno Haible  <bruno@clisp.org>
37218
37219         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37220         for the various Unix platforms.
37221         * doc/posix-headers/limits.texi: Update platforms list regarding
37222         HOST_NAME_MAX.
37223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37224
37225 2009-08-07  Jim Meyering  <meyering@redhat.com>
37226
37227         selinux-at: fix typo in a comment
37228         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37229         Spotted by Paolo Bonzini.
37230
37231         selinux-at: remove redundant m4 code, add documentation
37232         * modules/selinux-at (configure.ac): Remove redundant code.
37233         LIB_SELINUX is already set via the dependent module, selinux-h.
37234         (Include): Add quotes around selinux-at.h.
37235         * lib/selinux-at.h: Add documentation.
37236         Reported by Bruno Haible in
37237         http://marc.info/?l=gnulib-bug&m=124958988300749
37238
37239 2009-08-07  Bruno Haible  <bruno@clisp.org>
37240
37241         Avoid link error on MacOS X 10.3 and 10.4.
37242         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37243         on non-ELF systems.
37244         * lib/argp-pv.c (argp_program_version): Likewise.
37245         Reported by Simon Josefsson.
37246
37247 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37248
37249         * tests/test-version-etc.sh: Use $EXEEXT.
37250
37251 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37252
37253         update-copyright: update documentation to point to maint.mk
37254         * build-aux/update-copyright: Here.
37255
37256 2009-08-06  Jim Meyering  <meyering@redhat.com>
37257
37258         maint.mk: support update-copyright-local
37259         * top/maint.mk (update-copyright-local): Define place-holder.
37260         (update-copyright): Depend on $(update-copyright-local).
37261
37262 2009-08-06  Jim Meyering  <meyering@redhat.com>
37263
37264         selinux-at: new module
37265         Initially written for coreutils, this module will soon be
37266         used by findutils, too.
37267         * MODULES.html.sh [Misc]: Add selinux-at.
37268         * lib/selinux-at.h: New file, from coreutils.
37269         * lib/selinux-at.c: Likewise.
37270         * modules/selinux-at: Likewise.
37271         (License): Change from LGPL to GPL, since it depends
37272         on the GPL'd openat module.
37273
37274         doc: update README
37275         * README: Remove references to cogito.
37276         Remove cvs-repo-updating instructions from 2007.
37277         Don't imply that CVS is better if you have limited disk space.
37278
37279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37280
37281         update-copyright: support C-style comments
37282         * build-aux/update-copyright: Implement and document.
37283         * tests/test-update-copyright.sh: Test.
37284
37285 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37286
37287         update-copyright: support omitted "(C)"
37288         * build-aux/update-copyright: Implement and document.  Also,
37289         allow variable whitespace before "(C)".
37290         * tests/test-update-copyright.sh: Test.
37291
37292 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37293
37294         update-copyright: don't trip on non-FSF copyright statements
37295         * build-aux/update-copyright: Fix so that the first correctly
37296         formatted FSF copyright statement is recognized no matter what
37297         appears before it.  Update documentation.
37298         * tests/test-update-copyright.sh: Test that.
37299
37300 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37301
37302         update-copyright: clean up code a little
37303         * build-aux/update-copyright: Append "_re" to the name of any
37304         variable holding a regular expression.
37305         Replace "old" and "new" with "stmt" in variable names.
37306         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37307         handled correctly.
37308         Format code more consistently.
37309
37310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37311
37312         update-copyright-tests: improve portability
37313         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37314         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37315
37316 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37317
37318         update-copyright: support @copyright{} and &copy;
37319         * build-aux/update-copyright: Implement and document.
37320         * tests/test-update-copyright.sh: Test.
37321
37322 2009-08-04  Jim Meyering  <meyering@redhat.com>
37323
37324         update-copyright-tests: correctly test EOL=\r\n handling
37325         * tests/test-update-copyright.sh: Put \r at the end of some lines
37326         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37327
37328         maint.mk: make update-copyright exclusion list more configurable
37329         * top/maint.mk (update-copyright): Default to excluding COPYING,
37330         but allow an override, in case someone does want to update that file.
37331
37332         maint.mk: don't update copyright date in COPYING
37333         * top/maint.mk (update-copyright): Exclude COPYING.
37334
37335         maint.mk: add a copyright-updating rule
37336         * top/maint.mk (update-copyright): New rule.
37337         Derived from coreutils/Makefile.am.
37338
37339         update-copyright: rename some variables
37340         * build-aux/update-copyright: Rename a few variables for clarity.
37341         Tweak syntax.  List Joel E. Denny as coauthor.
37342
37343 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37344
37345         update-copyright: fix bug for 2-digit last year and add tests
37346         * build-aux/update-copyright: Fix bug.
37347         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37348         specified.
37349         * modules/update-copyright-tests: New
37350         * tests/test-update-copyright.sh: New.
37351
37352 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37353
37354         update-copyright: handle leading tabs in line prefix
37355         * build-aux/update-copyright: Count leading tabs as 8 spaces
37356         when computing margin.  This helps with the formatting of
37357         ChangeLogs, for example.
37358         Fix documentation a little.
37359
37360 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37361
37362         update-copyright: support EOL=\r\n
37363         * build-aux/update-copyright: Implement that.
37364
37365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37366
37367         update-copyright: automatically format copyright statements
37368         * build-aux/update-copyright: Implement that.
37369         Also, be a little more predictable and safer by always failing
37370         when the full copyright format is not perfectly recognized as an
37371         unbroken whole.  Discussed at
37372         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37373         Rewrite documentation.
37374
37375 2009-08-03  Bruno Haible  <bruno@clisp.org>
37376
37377         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37378
37379 2009-08-02  Bruno Haible  <bruno@clisp.org>
37380
37381         Tests for module 'uname'.
37382         * modules/uname-tests: New file.
37383         * tests/test-uname.c: New file.
37384
37385         New module 'uname'.
37386         * lib/uname.c: New file.
37387         * m4/uname.m4: New file.
37388         * modules/uname: New file.
37389         * doc/posix-functions/uname.texi: Mention the new module.
37390
37391 2009-08-02  Bruno Haible  <bruno@clisp.org>
37392
37393         Tests for module 'sys_utsname'.
37394         * modules/sys_utsname-tests: New file.
37395         * tests/test-sys_utsname.c: New file.
37396
37397         New module 'sys_utsname'.
37398         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37399         * m4/sys_utsname_h.m4: New file.
37400         * modules/sys_utsname: New file.
37401         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37402
37403 2009-08-02  Bruno Haible  <bruno@clisp.org>
37404
37405         Implicitly initialize the sockets library.
37406         * lib/gethostname.c: Include sockets.h.
37407         (rpl_gethostname): Invoke gl_sockets_startup.
37408         * lib/socket.c: Include sockets.h.
37409         (rpl_socket): Invoke gl_sockets_startup.
37410         * modules/gethostname (Depends-on): Add sockets.
37411         * modules/socket (Depends-on): Likewise.
37412         * tests/test-poll.c: Don't include sockets.h.
37413         (main): Don't invoke gl_sockets_startup.
37414         * tests/test-select.c: Don't include sockets.h.
37415         (main): Don't invoke gl_sockets_startup.
37416
37417 2009-08-02  Bruno Haible  <bruno@clisp.org>
37418
37419         Allow multiple calls to gl_sockets_startup.
37420         * lib/sockets.c (initialized_sockets_version): New variable.
37421         (gl_sockets_startup): Do nothing if already called for this or a higher
37422         version.
37423         (gl_sockets_cleanup): Reset initialized_sockets_version.
37424
37425 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37426
37427         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37428         different project/version.
37429
37430 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37431             Bruno Haible  <bruno@clisp.org>
37432
37433         Tests for module 'pipe-filter-gi'.
37434         * modules/pipe-filter-gi-tests: New file.
37435         * tests/test-pipe-filter-gi1.sh: New file.
37436         * tests/test-pipe-filter-gi1.c: New file.
37437         * tests/test-pipe-filter-gi2.sh: New file.
37438         * tests/test-pipe-filter-gi2-main.c: New file.
37439         * tests/test-pipe-filter-gi2-child.c: New file.
37440
37441         New module 'pipe-filter-gi'.
37442         * lib/pipe-filter-gi.c: New file.
37443         * modules/pipe-filter-gi: New file.
37444
37445 2009-08-02  Bruno Haible  <bruno@clisp.org>
37446             Paolo Bonzini  <bonzini@gnu.org>
37447
37448         Tests for module 'pipe-filter-ii'.
37449         * modules/pipe-filter-ii-tests: New file.
37450         * tests/test-pipe-filter-ii1.sh: New file.
37451         * tests/test-pipe-filter-ii1.c: New file.
37452         * tests/test-pipe-filter-ii2.sh: New file.
37453         * tests/test-pipe-filter-ii2-main.c: New file.
37454         * tests/test-pipe-filter-ii2-child.c: New file.
37455
37456         New module 'pipe-filter-ii'.
37457         * lib/pipe-filter.h: New file.
37458         * lib/pipe-filter-ii.c: New file.
37459         * lib/pipe-filter-aux.h: New file.
37460         * modules/pipe-filter-ii: New file.
37461
37462 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37463
37464         * lib/gc-libgcrypt.c: Change copyright to FSF.
37465         * lib/gc-gnulib.c: Likewise.
37466
37467 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37468
37469         * lib/gethostname.c: Include limits.h.
37470
37471 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37472             Bruno Haible  <bruno@clisp.org>
37473
37474         Ensure HOST_NAME_MAX as part of the gethostname module.
37475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37476         define also HOST_NAME_MAX.
37477         * tests/test-gethostname.c: Include <limits.h>.
37478         (main): Check also HOST_NAME_MAX.
37479         * doc/posix-headers/limits.texi: Document the mingw problem.
37480
37481 2009-08-02  Bruno Haible  <bruno@clisp.org>
37482
37483         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37484         Add comments.
37485
37486 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37487
37488         * lib/gethostname.c: Add Windows wrapper.
37489         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37490         * modules/gethostname: Depend on sys_socket & errno, for also
37491         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37492         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37493
37494 2009-07-31  Jim Meyering  <meyering@redhat.com>
37495
37496         getloadavg: fix symbol name in comment
37497         * lib/getloadavg.c: Correct a typo I introduced when adding
37498         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37499         Matt Kraai spotted the problem.
37500
37501 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37502
37503         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37504         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37505         code also if ! defined N_NAME_POINTER.
37506         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37507         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37508         but the n_name member is a 12-byte array.
37509
37510 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37511
37512         update-copyright: generalize comment handling
37513         * build-aux/update-copyright: Handle copyright statements
37514         within more comment styles.
37515         Document usage.
37516         Report any file with an external copyright holder or parse failure.
37517
37518 2009-07-29  Jim Meyering  <meyering@redhat.com>
37519
37520         mktime: correct setting of REPLACE_MKTIME
37521         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37522
37523         update-copyright: new module
37524         * modules/update-copyright: New file.
37525         * build-aux/update-copyright: New file.
37526         * MODULES.html.sh (maint+release support): Add update-copyright.
37527
37528 2009-07-27  Bruno Haible  <bruno@clisp.org>
37529
37530         Fix compilation error when <ctime> is used and mktime is replaced.
37531         * lib/time.in.h (mktime): New declaration.
37532         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37533         REPLACE_MKTIME instead of defining mktime in config.h.
37534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37535         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37536         Reported by Ross McFarland <rwmcfa1@neces.com>.
37537
37538 2009-07-27  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37541         Reported by Matt Kraai <mkraai@beckman.com>.
37542
37543 2009-07-25  Jim Meyering  <meyering@redhat.com>
37544
37545         maint.mk: avoid warnings about missing files
37546         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37547         diagnostic when .prev-version does not exist.
37548         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37549         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37550         nonexistent cfg.mk.
37551         Suggestions from Simon Josefsson.
37552
37553 2009-07-25  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37556         defined as macros. Needed on QNX 6.4.1.
37557         Reported by Matt Kraai <mkraai@beckman.com>.
37558
37559 2009-07-23  Jim Meyering  <meyering@redhat.com>
37560
37561         maint.mk: invoke "make dist" with a working value of XZ_OPT
37562         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37563
37564 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37565
37566         Make fseeko.c compile on QNX.
37567         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37568
37569 2009-07-22  Peter Simons  <simons@cryp.to>
37570
37571         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37572         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37573         * lib/md4.h: Likewise.
37574         * lib/md5.h: Likewise.
37575         * lib/sha1.h: Likewise.
37576         * lib/sha256.h: Likewise.
37577         * lib/sha512.h: Likewise.
37578
37579         tests-sha1: don't assign literal string to 'char *' variable
37580         * tests/test-sha1.c (main): Declare locals with "const" to match
37581         attributes of the right hand side.
37582
37583 2009-07-21  Eric Blake  <ebb9@byu.net>
37584
37585         dup2: fix more mingw problems
37586         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37587         fd to itself.
37588         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37589         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37590         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37591         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37592         care of mingw bugs.
37593
37594 2009-07-21  Jim Meyering  <meyering@redhat.com>
37595
37596         vc-list-files: avoid failure when /bin/sh is dash
37597         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37598         On some Debian based systems, /bin/sh is a symlink to dash, and running
37599         this command would omit the "/" following each 'tests' prefix:
37600           dash -x build-aux/vc-list-files -C . tests
37601         That is because bash and dash work differently:
37602           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37603           bash ok
37604           dash odd
37605
37606 2009-07-21  Eric Blake  <ebb9@byu.net>
37607
37608         dup2-tests: test previous patch
37609         * modules/dup2-tests: New file.
37610         * tests/test-dup2.c: Likewise.
37611         * tests/test-open.c (main): Avoid unspecified behavior.
37612         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37613         test.
37614
37615         dup2: work around mingw and cygwin 1.5 bug
37616         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37618         * modules/unistd (Makefile.am): Substitute it.
37619         * lib/unistd.in.h (dup2): Declare the replacement.
37620         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37621         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37622         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37623         * modules/execute (Depends-on): Add dup2.
37624         * modules/fseterr (Depends-on): Likewise.
37625         * modules/pipe (Depends-on): Likewise.
37626         * modules/posix_spawn-internal (Depends-on): Likewise.
37627
37628 2009-07-21  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/.gitattributes: New file.
37631
37632 2009-07-20  Bruno Haible  <bruno@clisp.org>
37633
37634         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37635         (main): Use it.
37636
37637 2009-07-20  Eric Blake  <ebb9@byu.net>
37638
37639         test-pipe: make a bit more robust.
37640         * tests/test-pipe.c (myerr): Allow error messages regardless of
37641         what we do to stderr.
37642         (test_pipe): Rearrange to avoid deadlock.
37643         (child_main): Try a larger read, to ensure we avoided deadlock.
37644         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37645         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37646         if misused.
37647
37648 2009-07-19  Jim Meyering  <meyering@redhat.com>
37649
37650         fts: avoid false-positive cycle-detection
37651         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37652         for each new command line argument.
37653
37654 2009-07-19  Bruno Haible  <bruno@clisp.org>
37655
37656         Fix build error on mingw with the modules sys_select and unistd.
37657         * modules/acl-tests (Depends-on): Add close.
37658         * modules/binary-io-tests (Depends-on): Likewise.
37659         * modules/closein-tests (Depends-on): Likewise.
37660         * modules/flock-tests (Depends-on): Likewise.
37661         * modules/fsync-tests (Depends-on): Likewise.
37662         * modules/lseek-tests (Depends-on): Likewise.
37663         * modules/pipe-tests (Depends-on): Likewise.
37664         * modules/posix_spawn-tests (Depends-on): Likewise.
37665         * modules/posix_spawnp-tests (Depends-on): Likewise.
37666         * modules/stat-time-tests (Depends-on): Likewise.
37667         * modules/yesno-tests (Depends-on): Likewise.
37668
37669 2009-07-19  Bruno Haible  <bruno@clisp.org>
37670
37671         Unify conditionals.
37672         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37673         macros, not at the compiler macros.
37674         * lib/pipe.c: Likewise.
37675         * lib/execute.c: Likewise.
37676         * lib/spawni.c: Likewise.
37677
37678 2009-07-19  Bruno Haible  <bruno@clisp.org>
37679
37680         Fix handling of closed stdin/stdout/stderr on mingw.
37681         * lib/w32spawn.h: Include unistd.h.
37682         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37683         file descriptor with O_NOINHERIT flag.
37684         (fd_safer_noinherit): New function, based on fd-safer.c.
37685         (dup_safer_noinherit): New function, based on dup-safer.c.
37686         (undup_safer_noinherit): New function.
37687         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37688         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37689         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37690         instead of fd_safer.
37691         * tests/test-pipe.c: Include <windows.h>.
37692         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37693         result.
37694
37695         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37696         from main.
37697         (test_pipe): Pass an extra argument for disambiguation.
37698         (main): Invoke parent_main or child_main.
37699
37700         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37701         consistently.
37702
37703 2009-07-18  Eric Blake  <ebb9@byu.net>
37704
37705         test-pipe: fix mingw build
37706         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37707
37708 2009-07-18  Bruno Haible  <bruno@clisp.org>
37709
37710         * modules/pipe-tests (Makefile.am): Fix typo.
37711
37712 2009-07-18  Eric Blake  <ebb9@byu.net>
37713
37714         error: fix mingw build
37715         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37716         Reported by Bruno Haible.
37717
37718         error: avoid undefined use of stdout
37719         * lib/error.c (error, error_at_line): Check that fd 1 is open
37720         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37721         is handling faults and the close_stdout module wants to report the
37722         detection of closed stdout as an error.
37723
37724 2009-07-17  Eric Blake  <ebb9@byu.net>
37725
37726         pipe: be robust in face of closed fds
37727         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37728         should cause child to misbehave.
37729         * modules/pipe-tests: New module.
37730         * tests/test-pipe.c: New file.
37731         * tests/test-pipe.sh: New file.
37732         Reported by Akim Demaille.
37733
37734 2009-07-14  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37737         Reported by anonymous kc.
37738
37739 2009-07-07  Jim Meyering  <meyering@redhat.com>
37740
37741         maint.mk: don't look for translatable strings in *.m4 or *.mk
37742         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37743         when searching for translatable strings.
37744
37745 2009-07-05  Jim Meyering  <meyering@redhat.com>
37746
37747         remove superfluous parentheses in STREQ definition
37748         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37749         * lib/getugroups.c (STREQ): Likewise.
37750         * lib/fnmatch.c (STREQ): Likewise.
37751         Spotted by Bruno Haible.
37752
37753 2009-07-04  Jim Meyering  <meyering@redhat.com>
37754
37755         argv-iter: new module
37756         * MODULES.html.sh: Add argv-iter.
37757         * lib/argv-iter.c, lib/argv-iter.h: New files.
37758         * modules/argv-iter: New file.
37759         * modules/argv-iter-tests: New file.
37760         * tests/test-argv-iter.c: Test it.
37761
37762 2009-07-04  Bruno Haible  <bruno@clisp.org>
37763
37764         Fix assertion.
37765         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37766         contains more exact copies of a given entry than file2, leave the extra
37767         copies unpaired rather than aborting.
37768         Reported by Eric Blake.
37769
37770 2009-07-02  Bruno Haible  <bruno@clisp.org>
37771
37772         Speedup git-merge-changelog for git cherry-pick.
37773         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37774         (entries_mapping_get): New function, extracted from compute_mapping.
37775         (entries_mapping_reverse_get): New function.
37776         (compute_mapping): Add a 'full' argument. Return the result in a
37777         'struct entries_mapping'.
37778         (main): Update. Access the mappings through entries_mapping_get.
37779         Reported by Eric Blake.
37780
37781 2009-07-02  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37784         best_i.
37785
37786 2009-07-02  Bruno Haible  <bruno@clisp.org>
37787
37788         Speed up approximate search for matching ChangeLog entries.
37789         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37790         argument. Call fstrcmp_bounded instead of fstrcmp.
37791         (compute_mapping, try_split_merged_entry, main): Update callers.
37792
37793 2009-07-02  Bruno Haible  <bruno@clisp.org>
37794
37795         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37796
37797 2009-06-30  Bruno Haible  <bruno@clisp.org>
37798
37799         Reduce the number of uc_is_cased calls.
37800         * lib/unicase.h (casing_suffix_context_t): Add
37801         'first_char_except_ignorable' field.
37802         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37803         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37804         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37805         Update initializer.
37806         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37807         case-ignorable characters.
37808         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37809         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37810         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37811         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37812         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37813
37814 2009-06-30  Bruno Haible  <bruno@clisp.org>
37815
37816         Tests for module 'unicase/ignorable'.
37817         * modules/unicase/ignorable-tests: New file.
37818         * tests/unicase/test-ignorable.c: New file, generated by
37819         gen-uni-tables.
37820
37821         Tests for module 'unicase/cased'.
37822         * modules/unicase/cased-tests: New file.
37823         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37824         * tests/unicase/test-predicate-part1.h: New file, derived from
37825         tests/unictype/test-predicate-part1.h.
37826         * tests/unicase/test-predicate-part2.h: New file, same as
37827         tests/unictype/test-predicate-part2.h.
37828
37829         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37830         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37831         (output_casing_properties): New function.
37832         (main): Call it.
37833         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37834         * lib/unicase/cased.c: Include unictype/bitmap.h.
37835         (uc_is_cased): Define through a bitmap lookup.
37836         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37837         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37838         (uc_is_case_ignorable): Define through a bitmap lookup.
37839         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37840         lib/unictype/bitmap.h.
37841         (Depends-on): Add inline. Clean up.
37842         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37843         lib/unictype/bitmap.h.
37844         (Depends-on): Add inline. Clean up.
37845         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37846         recognition.
37847         * tests/unicase/test-u16-tolower.c (main): Likewise.
37848         * tests/unicase/test-u32-tolower.c (main): Likewise.
37849
37850 2009-06-30  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37853         * lib/unicase/u16-casemap.c: Likewise.
37854         * lib/unicase/u32-casemap.c: Likewise.
37855
37856 2009-06-29  Bruno Haible  <bruno@clisp.org>
37857
37858         Define u32_casefold as a wrapper around u32_ct_casefold.
37859         * lib/unicase/u32-casefold.c: Update.
37860         * modules/unicase/u32-casefold (Depends-on): Add
37861         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37862         unicase/empty-suffix-context. Clean up.
37863
37864         Define u16_casefold as a wrapper around u16_ct_casefold.
37865         * lib/unicase/u16-casefold.c: Update.
37866         * modules/unicase/u16-casefold (Depends-on): Add
37867         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37868         unicase/empty-suffix-context. Clean up.
37869
37870         Define u8_casefold as a wrapper around u8_ct_casefold.
37871         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37872         * lib/unicase/u8-casefold.c: Update.
37873         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37874         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37875
37876         Define u32_totitle as a wrapper around u32_ct_totitle.
37877         * lib/unicase/u32-totitle.c: Update.
37878         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37879         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37880
37881         Define u16_totitle as a wrapper around u16_ct_totitle.
37882         * lib/unicase/u16-totitle.c: Update.
37883         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37884         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37885
37886         Define u8_totitle as a wrapper around u8_ct_totitle.
37887         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37888         functions.
37889         (FUNC): Delegate to U_CT_TOTITLE.
37890         * lib/unicase/u8-totitle.c: Update.
37891         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37892         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37893
37894         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37895         invocation.
37896         * modules/unicase/u32-tolower (Depends-on): Add
37897         unicase/empty-prefix-context, unicase/empty-suffix-context.
37898
37899         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37900         invocation.
37901         * modules/unicase/u16-tolower (Depends-on): Add
37902         unicase/empty-prefix-context, unicase/empty-suffix-context.
37903
37904         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37905         * modules/unicase/u8-tolower (Depends-on): Add
37906         unicase/empty-prefix-context, unicase/empty-suffix-context.
37907
37908         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37909         invocation.
37910         * modules/unicase/u32-toupper (Depends-on): Add
37911         unicase/empty-prefix-context, unicase/empty-suffix-context.
37912
37913         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37914         invocation.
37915         * modules/unicase/u16-toupper (Depends-on): Add
37916         unicase/empty-prefix-context, unicase/empty-suffix-context.
37917
37918         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37919         * modules/unicase/u8-toupper (Depends-on): Add
37920         unicase/empty-prefix-context, unicase/empty-suffix-context.
37921
37922         New module 'unicase/u32-ct-casefold'.
37923         * lib/unicase/u32-ct-casefold.c: New file.
37924         * modules/unicase/u32-ct-casefold: New file.
37925
37926         New module 'unicase/u16-ct-casefold'.
37927         * lib/unicase/u16-ct-casefold.c: New file.
37928         * modules/unicase/u16-ct-casefold: New file.
37929
37930         New module 'unicase/u8-ct-casefold'.
37931         * lib/unicase/u8-ct-casefold.c: New file.
37932         * lib/unicase/u-ct-casefold.h: New file, derived from
37933         lib/unicase/u-casefold.h.
37934         * modules/unicase/u8-ct-casefold: New file.
37935
37936         New module 'unicase/u32-ct-totitle'.
37937         * lib/unicase/u32-ct-totitle.c: New file.
37938         * modules/unicase/u32-ct-totitle: New file.
37939
37940         New module 'unicase/u16-ct-totitle'.
37941         * lib/unicase/u16-ct-totitle.c: New file.
37942         * modules/unicase/u16-ct-totitle: New file.
37943
37944         New module 'unicase/u8-ct-totitle'.
37945         * lib/unicase/u8-ct-totitle.c: New file.
37946         * lib/unicase/u-ct-totitle.h: New file, derived from
37947         lib/unicase/u-totitle.h.
37948         * modules/unicase/u8-ct-totitle: New file.
37949
37950         New module 'unicase/u32-ct-tolower'.
37951         * lib/unicase/u32-ct-tolower.c: New file.
37952         * modules/unicase/u32-ct-tolower: New file.
37953
37954         New module 'unicase/u16-ct-tolower'.
37955         * lib/unicase/u16-ct-tolower.c: New file.
37956         * modules/unicase/u16-ct-tolower: New file.
37957
37958         New module 'unicase/u8-ct-tolower'.
37959         * lib/unicase/u8-ct-tolower.c: New file.
37960         * modules/unicase/u8-ct-tolower: New file.
37961
37962         New module 'unicase/u32-ct-toupper'.
37963         * lib/unicase/u32-ct-toupper.c: New file.
37964         * modules/unicase/u32-ct-toupper: New file.
37965
37966         New module 'unicase/u16-ct-toupper'.
37967         * lib/unicase/u16-ct-toupper.c: New file.
37968         * modules/unicase/u16-ct-toupper: New file.
37969
37970         New module 'unicase/u8-ct-toupper'.
37971         * lib/unicase/u8-ct-toupper.c: New file.
37972         * modules/unicase/u8-ct-toupper: New file.
37973
37974         Add context arguments to u*_casemap functions.
37975         * lib/unicase/unicasemap.h: Include unicase.h.
37976         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37977         suffix_context arguments.
37978         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37979         functions.
37980         (FUNC): Add prefix_context and suffix_context arguments. Use
37981         uc_is_cased and uc_is_case_ignorable.
37982         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37983         * lib/unicase/u16-casemap.c: Likewise.
37984         * lib/unicase/u32-casemap.c: Likewise.
37985         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37986         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37987         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37988         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37989         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37990         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37991
37992         New module 'unicase/u32-suffix-context'.
37993         * lib/unicase/u32-suffix-context.c: New file.
37994         * modules/unicase/u32-suffix-context: New file.
37995
37996         New module 'unicase/u16-suffix-context'.
37997         * lib/unicase/u16-suffix-context.c: New file.
37998         * modules/unicase/u16-suffix-context: New file.
37999
38000         New module 'unicase/u8-suffix-context'.
38001         * lib/unicase/u8-suffix-context.c: New file.
38002         * lib/unicase/u-suffix-context.h: New file.
38003         * modules/unicase/u8-suffix-context: New file.
38004
38005         New module 'unicase/empty-suffix-context'.
38006         * lib/unicase/empty-suffix-context.c: New file.
38007         * modules/unicase/empty-suffix-context: New file.
38008
38009         New module 'unicase/u32-prefix-context'.
38010         * lib/unicase/u32-prefix-context.c: New file.
38011         * modules/unicase/u32-prefix-context: New file.
38012
38013         New module 'unicase/u16-prefix-context'.
38014         * lib/unicase/u16-prefix-context.c: New file.
38015         * modules/unicase/u16-prefix-context: New file.
38016
38017         New module 'unicase/u8-prefix-context'.
38018         * lib/unicase/u8-prefix-context.c: New file.
38019         * lib/unicase/u-prefix-context.h: New file.
38020         * lib/unicase/context.h: New file.
38021         * modules/unicase/u8-prefix-context: New file.
38022
38023         New module 'unicase/empty-prefix-context'.
38024         * lib/unicase/empty-prefix-context.c: New file.
38025         * modules/unicase/empty-prefix-context: New file.
38026
38027         New module 'unicase/ignorable'.
38028         * lib/unicase/ignorable.c: New file.
38029         * modules/unicase/ignorable: New file.
38030
38031         New module 'unicase/cased'.
38032         * lib/unicase/caseprop.h: New file.
38033         * lib/unicase/cased.c: New file.
38034         * modules/unicase/cased: New file.
38035
38036         New functions for case mapping of substrings.
38037         * lib/unicase.h (casing_prefix_context_t): New type.
38038         (unicase_empty_prefix_context): New variable.
38039         (u8_casing_prefix_context, u16_casing_prefix_context,
38040         u32_casing_prefix_context, u8_casing_prefixes_context,
38041         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38042         declarations.
38043         (casing_suffix_context_t): New type.
38044         (unicase_empty_suffix_context): New variable.
38045         (u8_casing_suffix_context, u16_casing_suffix_context,
38046         u32_casing_suffix_context, u8_casing_suffixes_context,
38047         u16_casing_suffixes_context, u32_casing_suffixes_context,
38048         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38049         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38050         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38051         declarations.
38052
38053 2009-06-28  Jim Meyering  <meyering@redhat.com>
38054
38055         boostrap: indent only with spaces
38056         * build-aux/bootstrap: Indent only with spaces, never TABs.
38057
38058         bootstrap: split long lines
38059         * build-aux/bootstrap: Keep line length < 80.
38060
38061         bootstrap: sync from coreutils
38062         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38063         just as autoreconf does.  Verify a list of prerequisite
38064         package-name,version-number pairs if defined in bootstrap.conf.
38065         Refer to README-prereq, if prerequisites are not satisfied.
38066
38067 2009-06-27  Eric Blake  <ebb9@byu.net>
38068
38069         tests: add test for bogus NULL definition
38070         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38071         * tests/test-stdlib.c: Likewise.
38072         * tests/test-string.c: Likewise.
38073         * tests/test-locale.c: Likewise.
38074         * tests/test-unistd.c: Likewise.
38075         * modules/stdio-tests (Depends-on): Add verify.
38076         * modules/stdlib-tests (Depends-on): Likewise.
38077         * modules/string-tests (Depends-on): Likewise.
38078         * modules/locale-tests (Depends-on): Likewise.
38079         * modules/unistd-tests (Depends-on): Likewise.
38080
38081 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38082
38083         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38084         self-explaining comment.
38085         * m4/selinux-selinux-h: Update serial.
38086         (gl_LIBSELINUX): New macro, adding a warning for missing development
38087         packages to code extracted from...
38088         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38089         Add warning for missing development packages here, too.
38090
38091 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38092
38093         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38094
38095 2009-06-25  Eric Blake  <ebb9@byu.net>
38096
38097         version-etc: fix regression
38098         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38099         gcc.
38100         (version_etc): Use it, to catch bugs with trailing NULL.
38101         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38102         (version_etc_va): Fix logic bug.
38103         * modules/version-etc-tests: Add test.
38104         * tests/test-version-etc.c: New file.
38105         * tests/test-version-etc.sh: Likewise.
38106
38107 2009-06-25  Sam Steingold  <sds@gnu.org>
38108
38109         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38110         mbtowc declaration.
38111
38112 2009-06-25  Eric Blake  <ebb9@byu.net>
38113
38114         fpurge: migrate into <stdio.h>
38115         * lib/fpurge.h: Delete...
38116         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38117         * lib/fpurge.c (fpurge): Change declaring header.
38118         * modules/fpurge (Files): Drop deleted file.
38119         (Depends-on): Add stdio.
38120         (configure.ac): Set witness.
38121         * modules/stdio (Makefile.am): Support fpurge macros.
38122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38123         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38124         * lib/fflush.c: Update client.
38125         * tests/test-fpurge.c: Likewise.
38126         * NEWS: Mention the change.
38127
38128 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38129
38130         * lib/argp-version-etc.c (program_authors): Add const
38131         qualifier.
38132         * lib/version-etc.c: Fix typos in the comments.
38133         * modules/argp-version-etc: Depends on version-etc.
38134
38135 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38136
38137         argp-version-etc: new module.
38138
38139         * lib/argp-version-etc.c: New file.
38140         * lib/argp-version-etc.h: New file.
38141         * modules/argp-version-etc: New file.
38142         * modules/argp-version-etc-tests: New file.
38143         * tests/test-argp-version-etc.c: New test.
38144         * tests/test-argp-version-etc-1.sh: New test.
38145
38146 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38147
38148         Provide additional interfaces and documentation for version-etc
38149         module.
38150
38151         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38152         interfaces.
38153         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38154         prototypes.
38155
38156 2009-06-24  Bruno Haible  <bruno@clisp.org>
38157
38158         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38159         HAVE_LIB${NAME} macro.
38160         Reported by Sam Steingold <sds@gnu.org>.
38161
38162 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38163
38164         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38165         needed.
38166
38167 2009-06-21  Bruno Haible  <bruno@clisp.org>
38168
38169         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38170         work.
38171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38172         together with LIB${NAME}, LTLIB${NAME}.
38173         Reported by Sam Steingold <sds@gnu.org>.
38174
38175 2009-06-20  Jim Meyering  <meyering@redhat.com>
38176
38177         tests: make sc_require_test_exit_idiom more generic
38178         * top/maint.mk (Exit_witness_file): New overridable variable.
38179         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38180         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38181
38182 2009-06-19  Jim Meyering  <meyering@redhat.com>
38183
38184         hash: reverse order of src/dst parameters in an internal interface
38185         * lib/hash.c (transfer_entries): Reverse order of parameters to
38186         put DST before SRC.  Adjust callers.
38187
38188         tests: test-hash: avoid wholesale duplication
38189         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38190         Instead, use a loop and add a single conditional.
38191
38192         tests: test-hash: allow seed selection via a command line argument
38193         * tests/test-hash.c (get_seed): New function.
38194         (main): Use it.
38195
38196 2009-06-19  Eric Blake  <ebb9@byu.net>
38197
38198         hash: avoid memory leak on allocation failure
38199         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38200         failure.  Factor repeated algorithm...
38201         (transfer_entries): ...into new helper routine.
38202         (hash_delete): React to hash_rehash return value.
38203
38204         hash: reduce memory pressure in hash_rehash no-op case
38205         * lib/hash.c (next_prime): Avoid overflow.
38206         (hash_initialize): Factor bucket size computation...
38207         (compute_bucket_size): ...into new helper function.
38208         (hash_rehash): Use new function and open coding to reduce memory
38209         pressure, and avoid a memory leak in USE_OBSTACK code.
38210         Reported by Jim Meyering.
38211
38212 2009-06-18  Eric Blake  <ebb9@byu.net>
38213
38214         hash: make rotation more obvious
38215         * modules/hash (Depends-on): Add bitrotate and stdint.
38216         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38217         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38218         (SIZE_MAX): Rely on headers for definition.
38219         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38220         (raw_hasher): Use rotr_sz.
38221         Suggested by Jim Meyering.
38222
38223         hash: fix memory leak in last patch
38224         * lib/hash.c (hash_rehash): Avoid memory leak.
38225
38226         hash: avoid no-op rehashing
38227         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38228
38229         hash: provide default callback functions
38230         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38231         (hash_initialize): Use them as defaults.
38232         * tests/test-hash.c (main): Test this.
38233
38234         hash: minor optimization
38235         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38236         when possible.
38237         (hash_initialize): Document this promise.
38238         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38239         * tests/test-hash.c (hash_compare_strings): Test this.
38240
38241 2009-06-18  Bruno Haible  <bruno@clisp.org>
38242
38243         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38244         going to be replaced anyway.
38245
38246 2009-06-18  Bruno Haible  <bruno@clisp.org>
38247
38248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38249         in one place.
38250         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38251         be replaced anyway.
38252
38253 2009-06-18  Eric Blake  <ebb9@byu.net>
38254
38255         hash: check for resize before insertion
38256         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38257         threshold before insertion, so that a pathological hash_rehash
38258         that fills every bucket can still trigger another rehash.
38259
38260 2009-06-18  Jim Meyering  <meyering@redhat.com>
38261
38262         hash-tests: add a loop around the small tests
38263         * tests/test-hash.c (main): Repeat small tests with selected
38264         small initial table sizes.
38265
38266 2009-06-17  Eric Blake  <ebb9@byu.net>
38267
38268         hash: minor cleanups
38269         * lib/hash.h (hash_entry): Make opaque, by moving...
38270         * lib/hash.c (hash_entry): ...here.
38271         (hash_insert): Clarify restrictions on what can be inserted.
38272         (hash_get_next): Clarify when it is safe to remove an element
38273         during traversal.
38274         (check_tuning): Skip verification when tuning is known safe.
38275         (hash_initialize): Clarify restrictions on tuning.
38276
38277 2009-06-17  Jim Meyering  <jim@meyering.net>
38278         and Eric Blake  <ebb9@byu.net>
38279
38280         hash-tests: new module
38281         * modules/hash-tests: New file.
38282         * tests/test-hash.c: New file.
38283
38284 2009-06-17  Eric Blake  <ebb9@byu.net>
38285
38286         strstr-simple: document new module
38287         * MODULES.html.sh: Document new module.
38288
38289         strstr, strcasestr: replace on platforms with broken memchr
38290         * modules/strstr: Split into...
38291         * modules/strstr-simple: ...new module that does not care about
38292         performance, but does care about glibc bug.
38293         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38294         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38295         if platform memchr is broken, per Debian bug 521737.
38296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38297         memchr.
38298         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38299         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38300         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38301         * modules/mountlist (Depends-on): Add strstr-simple.
38302         * modules/gen-uni-tables (Depends-on): Likewise.
38303         * modules/argz (Depends-on): Add strstr.
38304
38305 2009-06-17  Bruno Haible  <bruno@clisp.org>
38306
38307         * modules/posix_spawn-internal (Depends-on): Add errno.
38308
38309 2009-06-17  Bruno Haible  <bruno@clisp.org>
38310
38311         Define missing ESTALE on Interix 3.5.
38312         * lib/errno.in.h (ESTALE): Assign a value if missing.
38313         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38315         missing.
38316         * doc/posix-headers/errno.texi: Mention the Interix bug.
38317         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38318
38319 2009-06-15  Eric Blake  <ebb9@byu.net>
38320
38321         memchr, memchr2: add valgrind exception
38322         * lib/memchr.valgrind: New file.
38323         * lib/memchr2.valgrind: New file.
38324         * modules/memchr (Files): Distribute valgrind file.
38325         * modules/memchr2 (Files): Likewise.
38326
38327         docs: memchr is no longer obsolete
38328         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38329         * lib/string.in.h (memchr): Simplify logic.
38330
38331 2009-06-14  Jim Meyering  <meyering@redhat.com>
38332
38333         link-follow: fix the "checking..." message to not mention trailing slash
38334         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38335         never considered trailing slashes.
38336
38337 2009-06-14  Bruno Haible  <bruno@clisp.org>
38338
38339         * m4/memchr.m4: Mention also the bug on IA-64.
38340         * doc/posix-functions/memchr.texi: Likewise.
38341
38342 2009-06-12  Eric Blake  <ebb9@byu.net>
38343
38344         memchr: detect broken x86_64 and alpha implementations
38345         * modules/memchr-tests (Depends-on): Move mmap detection...
38346         * modules/memchr (Depends-on): ...here.
38347         (configure.ac): Set indicator.
38348         * lib/string.in.h (memchr): Declare replacement.
38349         * modules/string (Makefile.am): Trigger replacement.
38350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38351         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38352         bugs.
38353         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38354         * modules/getpagesize (License): Relax license.
38355
38356 2009-06-11  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/idpriv.h: Add more references.
38359
38360 2009-06-08  Bruno Haible  <bruno@clisp.org>
38361
38362         Tests for module 'idpriv-droptemp'.
38363         * modules/idpriv-droptemp-tests: New file.
38364         * tests/test-idpriv-droptemp.sh: New file.
38365         * tests/test-idpriv-droptemp.su.sh: New file.
38366         * tests/test-idpriv-droptemp.c: New file.
38367
38368         New module 'idpriv-droptemp'.
38369         * lib/idpriv-droptemp.c: New file.
38370         * modules/idpriv-droptemp: New file.
38371
38372 2009-06-08  Bruno Haible  <bruno@clisp.org>
38373
38374         Tests for module 'idpriv-drop'.
38375         * modules/idpriv-drop-tests: New file.
38376         * tests/test-idpriv-drop.sh: New file.
38377         * tests/test-idpriv-drop.su.sh: New file.
38378         * tests/test-idpriv-drop.c: New file.
38379
38380         New module 'idpriv-drop'.
38381         * lib/idpriv.h: New file.
38382         * lib-idpriv-drop.c: New file.
38383         * m4/idpriv.m4: New file.
38384         * modules/idpriv-drop: New file.
38385
38386 2009-06-08  Bruno Haible  <bruno@clisp.org>
38387
38388         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38389         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38395
38396 2009-06-08  Eric Blake  <ebb9@byu.net>
38397
38398         test-strstr: use memory fence, when possible
38399         * tests/test-strstr.c (main): Use memory fence, in order to be
38400         more likely to trigger Debian bug 521737.
38401         * modules/strstr-tests (Files): Pull in additional files.
38402
38403         memchr: no longer obsolete, for wider field testing
38404         * modules/memchr (Status, Notice): Delete, this module is no
38405         longer obsolete.
38406         * modules/vasnprintf (Depends-on): Add memchr.
38407
38408 2009-06-07  Jim Meyering  <meyering@redhat.com>
38409
38410         hash: declare some functions with the warn_unused_result attribute
38411         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38412
38413 2009-06-07  Bruno Haible  <bruno@clisp.org>
38414
38415         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38416         Reported by Eric Blake.
38417
38418 2009-06-06  Eric Blake  <ebb9@byu.net>
38419
38420         test-alignof: fix typo with long double
38421         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38422         compiler error.
38423
38424 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38425
38426         Escape non-texinfo { and }s.
38427         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38428         markup error.
38429
38430 2009-06-04  Jim Meyering  <meyering@redhat.com>
38431
38432         gitlog-to-changelog: don't infloop on an empty commit log
38433         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38434         Reported by Boris Petersen <transacid@centerim.org>.
38435
38436 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38437
38438         version-etc: extend for packagers
38439         Add three new configure options, intended for packagers:
38440           --with-packager="packager name"
38441           --with-packager-version="packager-specific version"
38442           --with-packager-bug-reports="packager bug reporting"
38443         An example with coreutils:
38444           $ ./configure \
38445             --with-packager=Gentoo \
38446             --with-packager-bug-report=http://bugs.gentoo.org/ \
38447             --with-packager-version="patchset 1.6"
38448           $ ./src/ls --version | head -n2
38449           ls (GNU coreutils) 7.1-dirty
38450           Packaged by Gentoo (patchset 1.6)
38451         Note that the bug reporting info via --help doesn't show up because
38452         coreutils uses its own custom emit_bug_reporting_address() implementation
38453         in src/system.h.  If it didn't, it'd look like:
38454           $ ./src/ls --help | tail -n4
38455           Report bugs to <bug-coreutils@gnu.org>.
38456           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38457           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38458           General help using GNU software: <http://www.gnu.org/gethelp/>.
38459         * lib/version-etc.c: Print new information, if provided.
38460         * m4/version-etc.m4: New file.
38461         * modules/version-etc (Files): Add m4/version-etc.m4.
38462         (configure.ac): Add gl_VERSION_ETC.
38463
38464 2009-05-31  Bruno Haible  <bruno@clisp.org>
38465
38466         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38467         and 'int64_t'.
38468         * modules/alignof-tests (Dependencies): Add stdint.
38469         Reported by Eric Blake.
38470
38471 2009-05-31  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38474         restriction due to compiler bugs.
38475         Reported by Eric Blake.
38476
38477 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38478             Bruno Haible  <bruno@clisp.org>
38479
38480         Fix test-alignof failure.
38481         * lib/alignof.h (alignof_slot): New macro.
38482         (alignof_type): New macro, with the same semantics as the previous
38483         'alignof'.
38484         (alignof): Alias to alignof_slot.
38485         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38486         check that the results are usable as constant expressions.
38487
38488 2009-05-31  Bruno Haible  <bruno@clisp.org>
38489
38490         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38491         * tests/test-memchr.c (main): Check that memchr does not read past the
38492         first occurrence of the byte.
38493         * tests/test-strstr.c (main): Update comment.
38494         Suggested by Eric Blake.
38495
38496 2009-05-30  Bruno Haible  <bruno@clisp.org>
38497
38498         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38499         detail how to use dumpbin.
38500         Reported by David Byron <dbyron@dbyron.com>.
38501
38502 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38503
38504         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38505
38506 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38507
38508         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38509
38510 2009-05-28  Bruno Haible  <bruno@clisp.org>
38511
38512         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38513         build-aux/ files.
38514
38515 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38516
38517         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38518
38519 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38520
38521         * gnulib-tool (sed_transform_main_lib_file)
38522         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38523         regexps.
38524
38525 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38526
38527         * tests/test-strstr.c: Add another self-test.
38528         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38529         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38530
38531 2009-05-23  Bruno Haible  <bruno@clisp.org>
38532
38533         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38534         change.
38535
38536 2009-05-21  Bruno Haible  <bruno@clisp.org>
38537
38538         Simplify use of mode_t varargs.
38539         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38540         uses 'mode_t' or 'int'.
38541         * lib/openat.c (openat): Likewise.
38542         * lib/open-safer.c (open_safer): Likewise.
38543         * m4/mode_t.m4: New file.
38544         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38545         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38546         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38547         * modules/open (Files): Add m4/mode_t.m4.
38548         * modules/openat (Files): Likewise.
38549         * modules/fcntl-safer (Files): Likewise.
38550         Suggested by Eric Blake.
38551
38552 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38553
38554         * doc/glibc-functions/fallocate.texi: New file.
38555         * doc/gnulib.texi: Include it.
38556
38557 2009-05-21  Eric Blake  <ebb9@byu.net>
38558             Bruno Haible  <bruno@clisp.org>
38559
38560         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38561         invocations.
38562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38563
38564 2009-05-21  Eric Blake  <ebb9@byu.net>
38565             Bruno Haible  <bruno@clisp.org>
38566
38567         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38568         include_next. Fix of 2008-11-20 commit.
38569         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38570         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38571         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38572         NEXT_MATH_H.
38573         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38574         instead of NEXT_MATH_H.
38575
38576 2009-05-21  Bruno Haible  <bruno@clisp.org>
38577
38578         Avoid redefinition warnings for SIZE_MAX.
38579         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38580         Reported by Simon Josefsson.
38581
38582 2009-05-21  Bruno Haible  <bruno@clisp.org>
38583
38584         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38585         AC_CACHE_VAL.
38586
38587 2009-05-20  Bruno Haible  <bruno@clisp.org>
38588
38589         Make zeroptr.h work on mingw.
38590         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38591         mprotect.
38592         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38593         * modules/memchr2-tests (configure.ac): Likewise.
38594         * modules/memcmp-tests (configure.ac): Likewise.
38595         * modules/memmem-tests (configure.ac): Likewise.
38596         * modules/memrchr-tests (configure.ac): Likewise.
38597         Reported by Simon Josefsson.
38598
38599 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38600
38601         * tests/test-glob.c: Include string.h for strcmp prototype.
38602
38603 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38604
38605         * modules/getdelim (Depends-on): Add explicit stdint, although it
38606         was implicitly already pulled in via realloc-posix.
38607         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38608
38609 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38610
38611         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38612         G. Christensen" <tgc@jupiterrise.com>.
38613         * m4/sys_socket_h.m4: Check for sa_family_t.
38614         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38615         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38616         * tests/test-sys_socket.c: Check that sa_family_t works.
38617
38618 2009-05-18  Eric Blake  <ebb9@byu.net>
38619
38620         maint.mk: allow gnulib_dir in VPATH build
38621         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38622
38623 2009-05-15  Jim Meyering  <meyering@redhat.com>
38624
38625         maint.mk: Give gnulib_dir a default definition.
38626         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38627         Thus, most packages no longer need to specify this variable in cfg.mk
38628
38629 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38630
38631         rename.m4: fix typos that would make non-mingw cross-configure fail
38632         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38633
38634 2009-05-13  Eric Blake  <ebb9@byu.net>
38635
38636         mmap-anon: avoid out-of-order autoconf expansion
38637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38638         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38639         * modules/memchr-tests (Depends-on): Add extensions.
38640         * modules/memchr2-tests (Depends-on): Add extensions.
38641         * modules/memcmp-tests (Depends-on): Add extensions.
38642         * modules/memmem-tests (Depends-on): Add extensions.
38643         * modules/memrchr-tests (Depends-on): Add extensions.
38644
38645 2009-05-13  Bruno Haible  <bruno@clisp.org>
38646
38647         Make some tests ISO C 99 compliant.
38648         * tests/zerosize-ptr.h: New file.
38649         * tests/test-memchr.c: Include zerosize-ptr.h.
38650         (main): Use a zero-size object pointer instead of NULL.
38651         * tests/test-memchr2.c: Include zerosize-ptr.h.
38652         (main): Use a zero-size object pointer instead of NULL.
38653         * tests/test-memcmp.c: Include zerosize-ptr.h.
38654         (main): Use a zero-size object pointer instead of NULL.
38655         * tests/test-memmem.c: Include zerosize-ptr.h.
38656         (main): Use a zero-size object pointer instead of NULL.
38657         * tests/test-memrchr.c: Include zerosize-ptr.h.
38658         (main): Use a zero-size object pointer instead of NULL.
38659         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38660         m4/mmap-anon.m4.
38661         (Depends-on): Add getpagesize.
38662         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38663         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38664         m4/mmap-anon.m4.
38665         (Depends-on): Add getpagesize.
38666         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38667         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38668         m4/mmap-anon.m4.
38669         (Depends-on): Add getpagesize.
38670         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38671         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38672         m4/mmap-anon.m4.
38673         (Depends-on): Add getpagesize.
38674         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38675         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38676         m4/mmap-anon.m4.
38677         (Depends-on): Add getpagesize.
38678         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38679
38680 2009-05-12  Bruno Haible  <bruno@clisp.org>
38681
38682         Tests for module 'alignof'.
38683         * modules/alignof-tests: New file.
38684         * tests/test-alignof.c: New file.
38685
38686 2009-05-12  Bruno Haible  <bruno@clisp.org>
38687
38688         Fix alignof macro.
38689         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38690         vendor compilers that are always correct.
38691
38692 2009-05-12  Bruno Haible  <bruno@clisp.org>
38693
38694         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38696         not whether its fully works.
38697
38698 2009-05-12  Bruno Haible  <bruno@clisp.org>
38699
38700         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38701
38702 2009-05-12  Jim Meyering  <meyering@redhat.com>
38703
38704         * top/maint.mk: Adjust backslash alignment.
38705
38706 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38707
38708         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38709
38710 2009-05-11  Eric Blake  <ebb9@byu.net>
38711
38712         argp: avoid undefined behavior
38713         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38714         macros.
38715
38716 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38717
38718         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38719         user.name to prevent git commit from complaining.
38720
38721 2009-05-10  Bruno Haible  <bruno@clisp.org>
38722
38723         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38724         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38725         it rewrites every file name only once.
38726         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38727
38728 2009-05-08  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38731         instead of 'max'.
38732
38733 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38734
38735         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38736         sockaddr_storage test.
38737
38738 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38739
38740         * modules/sys_socket (Makefile.am): Substitute
38741         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38742         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38743         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38744         * tests/test-sys_socket.c: Check sockaddr_storage.
38745
38746 2009-05-08  Bruno Haible  <bruno@clisp.org>
38747
38748         New module 'alignof'.
38749         * lib/alignof.h: New file.
38750         * modules/alignof: New file.
38751
38752 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38753             Bruno Haible  <bruno@clisp.org>
38754
38755         Fix test-file-has-acl on FreeBSD.
38756         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38757         mask is implicitly added.
38758         * tests/test-file-has-acl.c: Include <signal.h>.
38759         (main): Terminate the test after 5 seconds.
38760         * modules/acl-tests (configure.ac): Check for alarm function.
38761
38762 2009-05-04  Bruno Haible  <bruno@clisp.org>
38763
38764         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38765         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38766         * modules/errno (configure.ac): Drop AC_REQUIRE.
38767         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38768         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38769
38770 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38771
38772         * modules/glob-tests: New module.
38773         * tests/test-glob.c: Add.
38774
38775 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38776
38777         * modules/fnmatch-tests: New module.
38778         * tests/test-fnmatch.c: Add.
38779
38780 2009-05-04  Eric Blake  <ebb9@byu.net>
38781
38782         maint: make the new no-submodule-changes rule VPATH-safe
38783         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38784
38785 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38786             Bruno Haible  <bruno@clisp.org>
38787
38788         acl: Fix infinite loop on FreeBSD.
38789         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38790         of return value from acl_get_entry.
38791         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38792         Likewise.
38793
38794 2009-05-03  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/acl-internal.h (acl_entries): Clarify return value.
38797         * lib/acl_entries.c (acl_entries): Likewise.
38798
38799 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38800
38801         Bug fix in acl module.
38802         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38803
38804 2009-05-03  Bruno Haible  <bruno@clisp.org>
38805
38806         Create gperf-generated file in the source dir, not in the build dir.
38807         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38808         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38809         * modules/unicase/locale-language (unicase/locale-languages.h):
38810         Likewise.
38811         * modules/unicase/special-casing (unicase/special-casing-table.h):
38812         Likewise.
38813         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38814         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38815         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38816         Reported by Ralf Wildenhues.
38817
38818 2009-05-03  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/fnmatch (Description, configure.ac): Taken from
38821         fnmatch-posix.
38822         * modules/fnmatch-posix: Turn into a symbolic reference to the
38823         'fnmatch' module, and deprecate.
38824         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38825
38826 2009-05-03  Bruno Haible  <bruno@clisp.org>
38827
38828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38829         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38830         Reported by Ralf Wildenhues.
38831
38832 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38833
38834         * m4/fnmatch.m4: Fix fnmatch re-define.
38835
38836 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38837
38838         priv-set: new module and tests; adapt write-any-file
38839         * lib/priv-set.c: New file.
38840         * lib/priv-set.h: New file.
38841         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38842         * lib/write-any-file.c: Simplify by using priv-set module.
38843         * m4/priv-set.m4: New file.
38844         * modules/priv-set: New file.
38845         * modules/unlinkdir: Add dependency on priv-set module.
38846         * modules/write-any-file: Likewise.
38847
38848         Tests for module 'priv-set'.
38849         * modules/priv-set-tests: New file.
38850         * tests/test-priv-set.c: New file.
38851
38852 2009-05-03  Jim Meyering  <meyering@redhat.com>
38853             Bruno Haible  <bruno@clisp.org>
38854
38855         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38856         use the converted UTF-8 variant of the name instead.
38857
38858 2009-05-03  Jim Meyering  <meyering@redhat.com>
38859
38860         tests: tighten some getdate tests
38861         * tests/test-getdate.c (main): Tighten tests: require equality,
38862         not just greater than.  Set TZ envvar to UTC0.
38863
38864 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38865
38866         getdate: correctly interpret "next monday" when run on a Monday
38867         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38868         that e.g., "next tues" (when run on a tuesday) results in a date
38869         that is one week in the future, and not today's date.
38870         I.e., add a week when the wday is the same as the current one.
38871         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38872         and earlier by Martin Bernreuther and Jan Minář.
38873         * tests/test-getdate.c (main): Check that "next DAY" is always in
38874         the future and that "last DAY" is always in the past.
38875
38876 2009-05-02  Jim Meyering  <meyering@redhat.com>
38877
38878         build: ensure that a release build fails when a submodule is unclean
38879         * top/maint.mk (no-submodule-changes): New rule.
38880         (alpha beta major): Depend on it.
38881
38882 2009-05-02  Bruno Haible  <bruno@clisp.org>
38883
38884         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38886         shell variable gl_fnmatch_required to detect which variant is
38887         requested.
38888         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38889         gl_FUNC_FNMATCH_POSIX.
38890         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38891         exclude fnmatch-posix.
38892
38893 2009-05-02  Bruno Haible  <bruno@clisp.org>
38894
38895         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38896         * modules/mbsrtowcs (License): Change to LGPLv2+.
38897         * modules/strnlen1 (License): Likewise.
38898         Reported by Simon Josefsson.
38899
38900 2009-05-02  Bruno Haible  <bruno@clisp.org>
38901
38902         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38903         "cross".
38904         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38905         gnulib-tool was called with option --source-base=lib.
38906
38907 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38908
38909         Use automake *-local hooks without commands, for extensibility.
38910         * modules/localcharset (Makefile.am): Rename install-exec-local
38911         rule to install-exec-localcharset, and make it a prerequisite of
38912         install-exec-local.  Likewise, rename the uninstall-local rule to
38913         uninstall-localcharset, and make it a prerequisite of the former.
38914
38915 2009-05-01  Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38918         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38919         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38921         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38922         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38923         m4/locale-zh.m4, m4/codeset.m4.
38924
38925         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38926         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38927         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38928         m4/locale-zh.m4.
38929
38930         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38931         REPLACE_WCRTOMB if mbstate_t must be replaced.
38932         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38933         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38934
38935 2009-05-01  Bruno Haible  <bruno@clisp.org>
38936
38937         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38938         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38939         dngettext, dcngettext, textdomain, bindtextdomain,
38940         bind_textdomain_codeset): Undefine before redefining.
38941
38942 2009-04-30  Bruno Haible  <bruno@clisp.org>
38943
38944         Fix bug introduced on 2009-04-25.
38945         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38946         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38947         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38948         is defined.
38949         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38950         is defined.
38951         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38952         is defined.
38953         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38954
38955 2009-04-28  Bruno Haible  <bruno@clisp.org>
38956
38957         Comment tweaks.
38958         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38959         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38960         * lib/unicase.h (u*_casexfrm): Likewise.
38961         Reported by Paolo Bonzini.
38962
38963 2009-04-28  Bruno Haible  <bruno@clisp.org>
38964
38965         Fix a compilation error.
38966         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38967         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38968         Reported by Jim Meyering.
38969
38970 2009-04-27  Bruno Haible  <bruno@clisp.org>
38971
38972         New module 'libunistring'.
38973         * modules/libunistring: New file.
38974         * m4/libunistring.m4: New file.
38975         * MODULES.html.sh (Unicode string functions): Add it.
38976
38977 2009-04-27  Eric Blake  <ebb9@byu.net>
38978
38979         maint.mk: allow package-specific header to provide <config.h>
38980         * top/maint.mk (sc_require_config_h): New variable.
38981         (sc_require_config_h, sc_require_config_h_first): Use it.
38982
38983 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38984
38985         * top/maint.mk (sc_avoid_if_before_free): Except
38986         useless-if-before-free script.
38987
38988 2009-04-27  Eric Blake  <ebb9@byu.net>
38989
38990         maintainer-makefile: depend on all required helper scripts
38991         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38992         useless-if-before-free.
38993         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38994         version, rather than assuming gnulib checkout is available.
38995         Reported by Simen Josefsson.
38996
38997 2009-04-26  Bruno Haible  <bruno@clisp.org>
38998
38999         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39000         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39001         "../" or "..".
39002
39003 2009-04-26  Bruno Haible  <bruno@clisp.org>
39004
39005         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39006         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39007         AC_LIB_HAVE_LINKFLAGS.
39008
39009 2009-04-26  Bruno Haible  <bruno@clisp.org>
39010
39011         Simplify calling convention of u*_conv_from_encoding.
39012         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39013         u32_conv_from_encoding): Expect a resultbuf argument and return the
39014         result directly as a pointer.
39015         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39016         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39017         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39018         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39019         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39020         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39021         Update.
39022         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39023         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39024         * lib/vasnprintf.c (VASNPRINTF): Update.
39025         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39026         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39027         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39028         * NEWS: Mention the change.
39029
39030 2009-04-26  Bruno Haible  <bruno@clisp.org>
39031
39032         Simplify calling convention of u*_conv_to_encoding.
39033         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39034         u32_conv_to_encoding): Expect a resultbuf argument and return the
39035         result directly as a pointer.
39036         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39037         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39038         freeing scaled_offsets if mem_iconveha failed.
39039         * lib/unicase/u-casexfrm.h (FUNC): Update.
39040         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39041         * lib/vasnprintf.c (VASNPRINTF): Update.
39042         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39043         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39044         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39045         * NEWS: Mention the change.
39046
39047 2009-04-26  Bruno Haible  <bruno@clisp.org>
39048
39049         Avoid test failures on AIX and OSF/1.
39050         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39051         malloc(0).
39052         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39053         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39054         Likewise.
39055         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39056         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39057         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39058         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39059         * doc/posix-functions/malloc.texi: Document the portability problem
39060         related to malloc(0).
39061
39062 2009-04-26  Bruno Haible  <bruno@clisp.org>
39063
39064         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39065         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39066         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39067
39068 2009-04-25  Bruno Haible  <bruno@clisp.org>
39069
39070         Avoid link error when creating a namespace clean library.
39071         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39072         as macro with arguments if already defined as an alias.
39073         * lib/signbitf.c (gl_signbitf): Don't undefine.
39074         * lib/signbitd.c (gl_signbitd): Don't undefine.
39075         * lib/signbitl.c (gl_signbitl): Don't undefine.
39076
39077 2009-04-25  Jim Meyering  <meyering@redhat.com>
39078
39079         vc-list-files: fix another quoting bug
39080         * build-aux/vc-list-files: Avoid sed backslash expansion
39081         of pathological directory names.
39082
39083 2009-04-25  Eric Blake  <ebb9@byu.net>
39084
39085         vc-list-files: fix shell quoting error
39086         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39087         timestamp.
39088
39089 2009-04-25  Jim Meyering  <meyering@redhat.com>
39090
39091         vc-list-files: restore lost functionality with subdir argument
39092         * build-aux/vc-list-files: When given a non-"." sub-directory
39093         argument, substitute the $dir/ prefix back onto each resulting name.
39094         Otherwise, coreutils' root_tests check would fail.
39095
39096 2009-04-24  Eric Blake  <ebb9@byu.net>
39097
39098         vc-list-files: ignore git symlinks
39099         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39100         than ls-files, to ignore git symlinks.
39101
39102         maint.mk: import improvements from m4
39103         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39104         (move_if_change): Delete unused macro.
39105         (news-date-check, vc-diff-check): Support VPATH builds.
39106         (announcement): Likewise.  Split --bootstrap-tools list...
39107         (boostrap-tools): ...into separate list, which can be overridden
39108         in cfg.mk.
39109         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39110         requiring dependency on useless-if-before-free module.
39111         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39112         Support VPATH builds.
39113
39114 2009-04-24  Jim Meyering  <meyering@redhat.com>
39115
39116         maint.mk: remove coreutils-specific rules and variables
39117         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39118         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39119         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39120
39121         maint.mk: remove obsolete rule
39122         * top/maint.mk (rel-check): Remove rule.
39123         (WGET, WGETFLAGS): Remove now-unused variables.
39124
39125 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39126
39127         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39128         consistency.
39129
39130         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39131         '$(PATH_SEPARATOR)' instead of ':'.
39132
39133 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39134
39135         * lib/getopt1.c (main): Use 'const' for static array.
39136
39137 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39138
39139         * top/maint.mk: Sync with coreutils.
39140         * NEWS: Explain incompatibilities.
39141
39142 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39143             Bruno Haible  <bruno@clisp.org>
39144
39145         Fix cross-compilation results.
39146         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39147         statement, as third argument of AC_TRY_RUN.
39148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39150         Likewise.
39151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39153         Likewise.
39154         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39156         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39157
39158 2009-04-20  Bruno Haible  <bruno@clisp.org>
39159
39160         Avoid test failure on mingw.
39161         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39162
39163 2009-04-20  Bruno Haible  <bruno@clisp.org>
39164
39165         Avoid compilation error on mingw.
39166         * modules/localename-tests (Depends-on): Add locale.
39167
39168 2009-04-19  Bruno Haible  <bruno@clisp.org>
39169
39170         Support for building a shared library on Windows platforms.
39171         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39172         (main): Test the presence of UNINORM_NFC here.
39173         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39174         (main): Test the presence of UNINORM_NFD here.
39175         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39176         (main): Test the presence of UNINORM_NFKC here.
39177         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39178         (main): Test the presence of UNINORM_NFKD here.
39179
39180 2009-04-19  Bruno Haible  <bruno@clisp.org>
39181
39182         Avoid a compiler warning.
39183         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39184         Change type of variable 'sequence'.
39185
39186 2009-04-19  Bruno Haible  <bruno@clisp.org>
39187
39188         * modules/configmake (Makefile.am): When the contents of configmake.h
39189         does not change, arrange to preserve its modification time.
39190
39191 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39192
39193         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39194         gettext domain.
39195
39196 2009-04-16  Jim Meyering  <meyering@redhat.com>
39197
39198         useless-if-before-free: improve conversion code
39199         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39200         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39201
39202 2009-04-14  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/fcntl (Depends-on): Add extensions.
39205         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39206
39207 2009-04-12  Ben Pfaff  <blp@gnu.org>
39208
39209         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39210         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39211
39212 2009-03-20  Ben Pfaff  <blp@gnu.org>
39213
39214         Make rename replace existing destinations on Windows.
39215         * m4/rename.m4: Add test for Mingw.
39216         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39217         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39218         * doc/posix-functions/rename.texi: Document.
39219
39220 2009-04-10  Bruno Haible  <bruno@clisp.org>
39221
39222         New include file "iconveh.h".
39223         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39224         * lib/striconveh.h: Include it.
39225         (enum iconv_ilseq_handler): Remove definition.
39226         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39227         striconveh.h.
39228         * lib/striconveha.c: Include striconveh.h.
39229         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39230         * modules/striconveh (Files): Add lib/iconveh.h.
39231         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39232         lib/striconveh.h.
39233
39234 2009-04-10  Bruno Haible  <bruno@clisp.org>
39235
39236         * lib/uniconv.h: Update comment.
39237
39238 2009-04-10  Bruno Haible  <bruno@clisp.org>
39239
39240         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39241         always.
39242         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39243         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39244         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39245         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39246         "unistring-notinline.h", so that the function gets defined always.
39247         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39248         * lib/unistr/u8-uctomb.c: Likewise.
39249         * lib/unistr/u16-mbtouc.c: Likewise.
39250         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39251         * lib/unistr/u16-uctomb.c: Likewise.
39252         * lib/unistr/u32-mbtouc.c: Likewise.
39253         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39254         * lib/unistr/u32-uctomb.c: Likewise.
39255
39256 2009-04-10  Bruno Haible  <bruno@clisp.org>
39257
39258         Mark 'utime' obsolete.
39259         * modules/utime (Status, Notice): New sections.
39260         Suggested by Jim Meyering.
39261
39262         Fix cross-compile guess for utime test.
39263         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39264         autoconf.
39265         * doc/posix-functions/utime.texi: Give more precisions.
39266         Reported by Jan <ipif@ymail.com>.
39267
39268 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39269
39270         filevercmp: correct today's change
39271         * lib/filevercmp.c: Also handle coreutils' test inputs.
39272         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39273
39274         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39275         for reporting it.
39276         * lib/filevercmp.c: Special handle for "", "." and "..".
39277         * tests/test-filevercmp.c: Enlarge the set suite.
39278
39279 2009-04-07  Jim Meyering  <meyering@redhat.com>
39280
39281         useless-if-before-free: show how to remove braced useless free, too
39282         * build-aux/useless-if-before-free: still only in a comment, though.
39283
39284 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39285
39286         maint.mk: import changes to syntax-check macros from coreutils
39287         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39288         Use them in the relevant macros.
39289
39290 2009-04-06  Bruno Haible  <bruno@clisp.org>
39291
39292         Fix unportable use of bit-fields.
39293         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39294         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39295         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39296
39297 2009-04-06  Bruno Haible  <bruno@clisp.org>
39298
39299         Avoid test failures on AIX and OSF/1.
39300         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39301         that malloc(0) = NULL.
39302         * tests/unicase/test-u8-tolower.c (check): Likewise.
39303         * tests/unicase/test-u8-totitle.c (check): Likewise.
39304         * tests/unicase/test-u8-toupper.c (check): Likewise.
39305         * tests/unicase/test-u16-casefold.c (check): Likewise.
39306         * tests/unicase/test-u16-tolower.c (check): Likewise.
39307         * tests/unicase/test-u16-totitle.c (check): Likewise.
39308         * tests/unicase/test-u16-toupper.c (check): Likewise.
39309         * tests/unicase/test-u32-casefold.c (check): Likewise.
39310         * tests/unicase/test-u32-tolower.c (check): Likewise.
39311         * tests/unicase/test-u32-totitle.c (check): Likewise.
39312         * tests/unicase/test-u32-toupper.c (check): Likewise.
39313         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39314         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39315         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39316         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39317         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39318         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39319         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39320         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39321         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39322         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39323         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39324         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39325
39326 2009-04-05  Bruno Haible  <bruno@clisp.org>
39327
39328         Work around an autoconf limitation.
39329         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39330         comment line if it would be longer than 3 KB.
39331
39332 2009-04-05  Bruno Haible  <bruno@clisp.org>
39333
39334         Avoid test failure with libiconv-1.13.
39335         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39336         of the expected test results.
39337
39338 2009-04-05  Bruno Haible  <bruno@clisp.org>
39339
39340         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39341         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39342         that it should be installed.
39343
39344 2009-04-05  Bruno Haible  <bruno@clisp.org>
39345
39346         * gnulib-tool: New option --copy-file.
39347         (func_usage): Document it.
39348         (func_dest_tmpfilename): Moved out of func_import.
39349         (func_add_file, func_update_file): New functions, extracted from
39350         func_import.
39351         (func_import): Update.
39352
39353 2009-04-05  Karl Berry  <karl@gnu.org>
39354
39355         * README: prominently mention gnulib-tool.
39356         Rearrange sections so getting the code is near the top.
39357
39358 2009-04-05  Bruno Haible  <bruno@clisp.org>
39359
39360         * lib/unicase.h: Mention u*_cmp2.
39361         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39362         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39363         * lib/unicase/ulc-casecmp.c: Likewise.
39364         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39365         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39366         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39367         unistr/u8-cmp.
39368         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39369         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39370         unistr/u16-cmp.
39371         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39372         unistr/u32-cmp.
39373
39374         * lib/uninorm.h: Mention u*_cmp2.
39375         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39376         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39377         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39378         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39379         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39380         unistr/u8-cmp.
39381         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39382         unistr/u16-cmp.
39383         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39384         unistr/u32-cmp.
39385
39386         New module 'unistr/u32-cmp2'.
39387         * lib/unistr/u32-cmp2.c: New file.
39388         * modules/unistr/u32-cmp2: New file.
39389
39390         New module 'unistr/u16-cmp2'.
39391         * lib/unistr/u16-cmp2.c: New file.
39392         * modules/unistr/u16-cmp2: New file.
39393
39394         New module 'unistr/u8-cmp2'.
39395         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39396         * lib/unistr/u8-cmp2.c: New file.
39397         * lib/unistr/u-cmp2.h: New file.
39398         * modules/unistr/u8-cmp2: New file.
39399
39400 2009-04-05  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/unictype.h (uc_property_is_valid): New macro.
39403         * tests/unictype/test-pr_byname.c (main): Use it.
39404
39405         * lib/unistr.h: Doc fixes.
39406         * lib/uniconv.h: Doc fixes.
39407         * lib/unictype.h: Doc fixes.
39408
39409 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39410
39411         Port coreutils 7.2 to Solaris 8.
39412
39413         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39414         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39415         for Solaris 8.  This is a bit of a hack, as it means it's the
39416         caller's responsibility to add -lnsl if needed, but most likely it
39417         won't be needed since only getaddrinfo uses this and getaddrinfo
39418         isn't needed on Solaris 8.
39419
39420         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39421         problem to Solaris 8 encountered with coreutils 7.2, which
39422         resulted in a message "fnmatch.c:292: warning: passing argument 4
39423         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39424         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39425
39426 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39427
39428         * m4/ld-version-script.m4: Add FIXME comment.
39429
39430 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39431
39432         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39433         SOVERSION variable.
39434
39435 2009-04-02  Bruno Haible  <bruno@clisp.org>
39436
39437         * Makefile (info, html, dvi, pdf): Combine the rules.
39438         Suggested by Jim Meyering.
39439
39440 2009-04-01  Bruno Haible  <bruno@clisp.org>
39441
39442         * Makefile (info, html, dvi, pdf): New targets.
39443         Reported by Reuben Thomas <rrt@sc3d.org>.
39444
39445 2009-04-01  Bruno Haible  <bruno@clisp.org>
39446
39447         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39448         can be put into PATH.
39449         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39450
39451 2009-04-01  Bruno Haible  <bruno@clisp.org>
39452
39453         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39454
39455 2009-04-01  Bruno Haible  <bruno@clisp.org>
39456
39457         Rename module 'visibility'.
39458         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39459         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39460         * doc/gnulib.texi: Update.
39461         * MODULES.html.sh (Misc): Update.
39462         * NEWS: Mention the change.
39463
39464 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39465
39466         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39467         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39468         Eric Blake <ebb9@byu.net> for review.
39469         * MODULES.html.sh: Add lib-msvc-compat.
39470         * doc/gnulib.texi: Link to new section.
39471         * m4/ld-output-def.m4: New file.
39472         * doc/ld-output-def.texi: New file.
39473
39474 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39475
39476         Rename ld-version-script to lib-symbol-versions.  Suggested by
39477         Bruno Haible <bruno@clisp.org>.
39478         * modules/ld-version-script: Renamed to lib-symbol-versions.
39479         * doc/ld-version-script.texi: Fix module name.
39480         * MODULES.html.sh: Add lib-symbol-versions.
39481
39482 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39483
39484         * modules/u64-tests: New file.
39485         * tests/test-u64.c: New file.
39486
39487 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39488
39489         * MODULES.html.sh: Mention u64.
39490         * modules/u64: New module.
39491         * modules/crypto/sha512: Depend on u64 module instead of providing
39492         u64.h.
39493
39494 2009-03-27  Eric Blake  <ebb9@byu.net>
39495
39496         test-strerror: make debugging EAI_SYSTEM easier
39497         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39498         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39499         failure was EAI_SYSTEM.
39500
39501 2009-03-25  Bruno Haible  <bruno@clisp.org>
39502
39503         Fix a problem with --enable-relocatable on Solaris 7.
39504         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39505         since 2008-02-24.
39506
39507 2009-03-25  Eric Blake  <ebb9@byu.net>
39508
39509         test-sockets: avoid gcc warning
39510         * tests/test-sockets.c (main): Silence compiler warning.
39511
39512 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39513
39514         New modules nproc, pthread, contributed by Glen Lenker.
39515
39516         * MODULES.html.sh: Add pthread, nproc.
39517         * lib/nproc.c: New file.
39518         * lib/nproc.h: New file.
39519         * lib/pthread.in.h: New file.
39520         * m4/pthread.m4: New file.
39521         * modules/nproc: New file.
39522         * modules/pthread: New file.
39523
39524 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39525
39526         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39527         New variable.
39528
39529 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39530
39531         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39532         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39533         * tests/test-filevercmp.c: Add tests for backup suffixes.
39534
39535 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39536
39537         * modules/stdlib (Depends-on): Add stdint, needed when defining
39538         struct random_data on, for example, HP-UX 10.20.  Reported by
39539         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39540
39541 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39542
39543         * lib/readline.c (readline): Call fflush on stdout after printing
39544         prompt.
39545
39546 2009-03-20  Bruno Haible  <bruno@clisp.org>
39547
39548         Remove dependency from 'close' module to -lws2_32 on native Windows.
39549         * lib/close-hook.h: New file.
39550         * lib/close-hook.c: New file.
39551         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39552         w32sock.h.
39553         (_gl_close_fd_maybe_socket): Remove function.
39554         (rpl_close): Invoke execute_all_close_hooks instead of
39555         _gl_close_fd_maybe_socket.
39556         * lib/sockets.c: Include close-hook.h, w32sock.h.
39557         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39558         (close_sockets_hook): New variable.
39559         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39560         (gl_sockets_cleanup): Unregister it.
39561         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39562         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39563         * modules/close-hook: New file.
39564         * modules/close (Files): Remove lib/w32sock.h.
39565         (Depends-on): Add close-hook.
39566         (Link): Remove section.
39567         * modules/sockets (Files): Add lib/w32sock.h.
39568         (Depends-on): Add close-hook.
39569         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39570         invocation.
39571         * NEWS: Mention that LIB_CLOSE is gone.
39572
39573 2009-03-23  Eric Blake  <ebb9@byu.net>
39574
39575         signal-tests: test previous patch
39576         * tests/test-signal.c: New file.
39577         * modules/signal-tests: Likewise.
39578
39579         signal.h: always support 'volatile sig_atomic_t'
39580         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39581         (gl_SIGNAL_H_DEFAULTS): Add a default.
39582         * modules/signal (Makefile.am): Substitute if needed.
39583         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39584         users can blindly add volatile.
39585         * doc/posix-headers/signal.texi (signal.h): Document it.
39586         Reported by Matthew Woehlke.
39587
39588 2009-03-23  Jim Meyering  <meyering@redhat.com>
39589
39590         pathmax: PATH_MAX: use pathconf only when available
39591         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39592         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39593         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39594         This avoids a link failure in a PSP cross-compilation environment
39595         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39596
39597         * lib/vasnprintf.c (divide): Fix typo in comment.
39598
39599 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39600
39601         * gnulib-tool (func_filter_filelist): Fix comment.
39602
39603 2009-03-20  Bruno Haible  <bruno@clisp.org>
39604
39605         Make sockets.h self-contained.
39606         * lib/sockets.c: Include sockets.h first.
39607         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39608
39609 2009-03-19  Eric Blake  <ebb9@byu.net>
39610
39611         doc: mention more functions added in cygwin 1.7.0
39612         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39613         addition.
39614         * doc/posix-functions/log2f.texi: Likewise.
39615
39616 2009-03-19  Jim Meyering  <meyering@redhat.com>
39617
39618         fsusage: avoid syntax error due to statement-before-declaration
39619         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39620         after all declarations.  Reported by Matthew Woehlke in
39621         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39622
39623 2009-03-18  Eric Blake  <ebb9@byu.net>
39624
39625         build-aux/compile: sync from automake
39626         * build-aux/compile: New file, from automake.
39627         * config/srclist.txt: Mention build-aux/compile.
39628
39629 2009-03-17  Bruno Haible  <bruno@clisp.org>
39630
39631         * lib/git-merge-changelog.c: Fix typo in comment.
39632         Reported by Reuben Thomas <rrt@sc3d.org>.
39633
39634 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39635
39636         * m4/regex.m4: update and improve help for
39637         --without-included-regex.
39638
39639 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39640
39641         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39642         failure on missing include files.
39643
39644 2009-03-17  Eric Blake  <ebb9@byu.net>
39645
39646         doc: mention more functions added in cygwin 1.7.0
39647         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39648         addition.
39649         * doc/posix-functions/fwscanf.texi: Likewise.
39650         * doc/posix-functions/swprintf.texi: Likewise.
39651         * doc/posix-functions/swscanf.texi: Likewise.
39652         * doc/posix-functions/vfwprintf.texi: Likewise.
39653         * doc/posix-functions/vfwscanf.texi: Likewise.
39654         * doc/posix-functions/vswprintf.texi: Likewise.
39655         * doc/posix-functions/vswscanf.texi: Likewise.
39656         * doc/posix-functions/vwprintf.texi: Likewise.
39657         * doc/posix-functions/vwscanf.texi: Likewise.
39658         * doc/posix-functions/wcscasecmp.texi: Likewise.
39659         * doc/posix-functions/wcsdup.texi: Likewise.
39660         * doc/posix-functions/wcsftime.texi: Likewise.
39661         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39662         * doc/posix-functions/wprintf.texi: Likewise.
39663         * doc/posix-functions/wscanf.texi: Likewise.
39664         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39665
39666 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39667
39668         maint.mk: really add $(AM_MAKEFLAGS)
39669         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39670         was inadvertently omitted in the last commit.
39671         Spotted by Bruno Haible.
39672
39673         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39674         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39675         $(AM_MAKEFLAGS)' rather than plain `make'.
39676
39677         gnulib-tool: execute $MAKE not make
39678         * gnulib-tool: Default $MAKE to 'make'.
39679         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39680         than make.  Initialize $MAKE in the do-autobuild script.
39681
39682         gnulib-tool: use $MAKE not make in generated files
39683         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39684         make, in generated files.  Initialize $MAKE in the do-autobuild
39685         script.
39686
39687         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39688
39689         GNUmakefile: disable parallelism only for multiple, recursive targets
39690         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39691         additions in the Makefile.
39692         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39693         by Automake.
39694         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39695         are listed on the command line and at least one of them is
39696         listed in $(ALL_RECURSIVE_TARGETS).
39697
39698 2009-03-14  Bruno Haible  <bruno@clisp.org>
39699
39700         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39701         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39702         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39703         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39704         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39705         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39706         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39707         unistr/u8-uctomb.
39708         * modules/unistr/u8-strchr (Depends-on): Likewise.
39709         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39710         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39711         unistr/u16-uctomb.
39712         * modules/unistr/u16-strchr (Depends-on): Likewise.
39713         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39714
39715 2009-03-12  Bruno Haible  <bruno@clisp.org>
39716
39717         Work around select() bug on Interix 3.5.
39718         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39719         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39720         * m4/select.m4: New file.
39721         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39722         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39723         * modules/select (Files): Add m4/select.m4.
39724         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39725         * modules/nanosleep (Depends-on): Add select.
39726         * modules/poll (Depends-on): Likewise.
39727         * doc/posix-functions/select.texi: Mention the Interix bug.
39728         Reported by Markus Duft <mduft@gentoo.org>.
39729
39730         * lib/select.c: Renamed from lib/winsock-select.c.
39731         * modules/select (Files): Add lib/select.c, remove
39732         lib/winsock-select.c.
39733         (configure.ac): Update.
39734
39735 2009-03-12  Jim Meyering  <meyering@redhat.com>
39736
39737         avoid gcc warnings about unused macro definitions
39738         * lib/readtokens.c (STREQ): Remove unused definition.
39739         * lib/xmalloc.c (SIZE_MAX): Likewise.
39740         * lib/openat-die.c (N_): Likewise.
39741         * lib/mountlist.c (SIZE_MAX): Remove definition.
39742         Instead, include <stdint.h>.
39743         * lib/readutmp.c: Likewise.
39744         * modules/readutmp (Depends-on): Add stdint.
39745         * modules/mountlist (Depends-on): Add stdint.
39746         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39747
39748 2009-03-10  Bruno Haible  <bruno@clisp.org>
39749
39750         Tests for module 'mbmemcasecoll'.
39751         * modules/mbmemcasecoll-tests: New file.
39752         * tests/test-mbmemcasecoll1.sh: New file.
39753         * tests/test-mbmemcasecoll2.sh: New file.
39754         * tests/test-mbmemcasecoll3.sh: New file.
39755         * tests/test-mbmemcasecoll.c: New file.
39756
39757         New module 'mbmemcasecoll'.
39758         * lib/mbmemcasecoll.h: New file.
39759         * lib/mbmemcasecoll.c: New file.
39760         * modules/mbmemcasecoll: New file.
39761
39762         * tests/test-mbmemcasecmp.h: New file, extracted from
39763         tests/test-mbmemcasecmp.c.
39764         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39765         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39766         (main): Update.
39767         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39768
39769 2009-03-09  Bruno Haible  <bruno@clisp.org>
39770
39771         Tests for module 'mbmemcasecmp'.
39772         * modules/mbmemcasecmp-tests: New file.
39773         * tests/test-mbmemcasecmp1.sh: New file.
39774         * tests/test-mbmemcasecmp2.sh: New file.
39775         * tests/test-mbmemcasecmp3.sh: New file.
39776         * tests/test-mbmemcasecmp.c: New file.
39777
39778         New module 'mbmemcasecmp'.
39779         * lib/mbmemcasecmp.h: New file.
39780         * lib/mbmemcasecmp.c: New file.
39781         * modules/mbmemcasecmp: New file.
39782
39783 2009-03-09  Bruno Haible  <bruno@clisp.org>
39784
39785         Tests for module 'unicase/ulc-casecoll'.
39786         * modules/unicase/ulc-casecoll-tests: New file.
39787         * tests/unicase/test-ulc-casecoll1.sh: New file.
39788         * tests/unicase/test-ulc-casecoll2.sh: New file.
39789         * tests/unicase/test-ulc-casecoll.c: New file.
39790
39791         New module 'unicase/ulc-casecoll'.
39792         * lib/unicase.h (ulc_casecoll): New declaration.
39793         * lib/unicase/ulc-casecoll.c: New file.
39794         * modules/unicase/ulc-casecoll: New file.
39795
39796         New module 'unicase/ulc-casexfrm'.
39797         * lib/unicase.h (ulc_casexfrm): New declaration.
39798         * lib/unicase/ulc-casexfrm.c: New file.
39799         * modules/unicase/ulc-casexfrm: New file.
39800
39801 2009-03-09  Bruno Haible  <bruno@clisp.org>
39802
39803         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39804         invocations.
39805
39806         * m4/mbscasecmp.m4: Remove file.
39807         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39808         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39809
39810         * m4/mbscasestr.m4: Remove file.
39811         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39812         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39813
39814         * m4/mbschr.m4: Remove file.
39815         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39816         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39817
39818         * m4/mbscspn.m4: Remove file.
39819         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39820         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39821
39822         * m4/mbslen.m4: Remove file.
39823         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39824         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39825
39826         * m4/mbsncasecmp.m4: Remove file.
39827         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39828         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39829
39830         * m4/mbsnlen.m4: Remove file.
39831         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39832         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39833
39834         * m4/mbspbrk.m4: Remove file.
39835         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39836         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39837
39838         * m4/mbspcasecmp.m4: Remove file.
39839         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39840         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39841
39842         * m4/mbsrchr.m4: Remove file.
39843         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39844         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39845
39846         * m4/mbssep.m4: Remove file.
39847         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39848         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39849
39850         * m4/mbsspn.m4: Remove file.
39851         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39852         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39853
39854         * m4/mbsstr.m4: Remove file.
39855         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39856         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39857
39858         * m4/mbstok_r.m4: Remove file.
39859         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39860         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39861
39862         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39863
39864         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39865         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39866
39867         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39868
39869 2009-03-08  Bruno Haible  <bruno@clisp.org>
39870
39871         Tests for module 'unicase/ulc-casecmp'.
39872         * modules/unicase/ulc-casecmp-tests: New file.
39873         * tests/unicase/test-ulc-casecmp1.sh: New file.
39874         * tests/unicase/test-ulc-casecmp2.sh: New file.
39875         * tests/unicase/test-ulc-casecmp.c: New file.
39876
39877         New module 'unicase/ulc-casecmp'.
39878         * lib/unicase.h (ulc_casecmp): New declaration.
39879         * lib/unicase/ulc-casecmp.c: New file.
39880         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39881         'const SRC_UNIT *'.
39882         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39883         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39884         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39885         * modules/unicase/ulc-casecmp: New file.
39886
39887         Tests for module 'unicase/u32-is-cased'.
39888         * modules/unicase/u32-is-cased-tests: New file.
39889         * tests/unicase/test-u32-is-cased.c: New file.
39890
39891         Tests for module 'unicase/u16-is-cased'.
39892         * modules/unicase/u16-is-cased-tests: New file.
39893         * tests/unicase/test-u16-is-cased.c: New file.
39894
39895         Tests for module 'unicase/u8-is-cased'.
39896         * modules/unicase/u8-is-cased-tests: New file.
39897         * tests/unicase/test-u8-is-cased.c: New file.
39898         * tests/unicase/test-is-cased.h: New file.
39899
39900         New module 'unicase/u32-is-cased'.
39901         * lib/unicase/u32-is-cased.c: New file.
39902         * modules/unicase/u32-is-cased: New file.
39903
39904         New module 'unicase/u16-is-cased'.
39905         * lib/unicase/u16-is-cased.c: New file.
39906         * modules/unicase/u16-is-cased: New file.
39907
39908         New module 'unicase/u8-is-cased'.
39909         * lib/unicase/u8-is-cased.c: New file.
39910         * lib/unicase/u-is-cased.h: New file.
39911         * modules/unicase/u8-is-cased: New file.
39912
39913         Tests for module 'unicase/u32-is-casefolded'.
39914         * modules/unicase/u32-is-casefolded-tests: New file.
39915         * tests/unicase/test-u32-is-casefolded.c: New file.
39916
39917         Tests for module 'unicase/u16-is-casefolded'.
39918         * modules/unicase/u16-is-casefolded-tests: New file.
39919         * tests/unicase/test-u16-is-casefolded.c: New file.
39920
39921         Tests for module 'unicase/u8-is-casefolded'.
39922         * modules/unicase/u8-is-casefolded-tests: New file.
39923         * tests/unicase/test-u8-is-casefolded.c: New file.
39924         * tests/unicase/test-is-casefolded.h: New file.
39925
39926         New module 'unicase/u32-is-casefolded'.
39927         * lib/unicase/u32-is-casefolded.c: New file.
39928         * modules/unicase/u32-is-casefolded: New file.
39929
39930         New module 'unicase/u16-is-casefolded'.
39931         * lib/unicase/u16-is-casefolded.c: New file.
39932         * modules/unicase/u16-is-casefolded: New file.
39933
39934         New module 'unicase/u8-is-casefolded'.
39935         * lib/unicase/u8-is-casefolded.c: New file.
39936         * modules/unicase/u8-is-casefolded: New file.
39937
39938         Tests for module 'unicase/u32-is-titlecase'.
39939         * modules/unicase/u32-is-titlecase-tests: New file.
39940         * tests/unicase/test-u32-is-titlecase.c: New file.
39941
39942         Tests for module 'unicase/u16-is-titlecase'.
39943         * modules/unicase/u16-is-titlecase-tests: New file.
39944         * tests/unicase/test-u16-is-titlecase.c: New file.
39945
39946         Tests for module 'unicase/u8-is-titlecase'.
39947         * modules/unicase/u8-is-titlecase-tests: New file.
39948         * tests/unicase/test-u8-is-titlecase.c: New file.
39949         * tests/unicase/test-is-titlecase.h: New file.
39950
39951         New module 'unicase/u32-is-titlecase'.
39952         * lib/unicase/u32-is-titlecase.c: New file.
39953         * modules/unicase/u32-is-titlecase: New file.
39954
39955         New module 'unicase/u16-is-titlecase'.
39956         * lib/unicase/u16-is-titlecase.c: New file.
39957         * modules/unicase/u16-is-titlecase: New file.
39958
39959         New module 'unicase/u8-is-titlecase'.
39960         * lib/unicase/u8-is-titlecase.c: New file.
39961         * modules/unicase/u8-is-titlecase: New file.
39962
39963         Tests for module 'unicase/u32-is-lowercase'.
39964         * modules/unicase/u32-is-lowercase-tests: New file.
39965         * tests/unicase/test-u32-is-lowercase.c: New file.
39966
39967         Tests for module 'unicase/u16-is-lowercase'.
39968         * modules/unicase/u16-is-lowercase-tests: New file.
39969         * tests/unicase/test-u16-is-lowercase.c: New file.
39970
39971         Tests for module 'unicase/u8-is-lowercase'.
39972         * modules/unicase/u8-is-lowercase-tests: New file.
39973         * tests/unicase/test-u8-is-lowercase.c: New file.
39974         * tests/unicase/test-is-lowercase.h: New file.
39975
39976         New module 'unicase/u32-is-lowercase'.
39977         * lib/unicase/u32-is-lowercase.c: New file.
39978         * modules/unicase/u32-is-lowercase: New file.
39979
39980         New module 'unicase/u16-is-lowercase'.
39981         * lib/unicase/u16-is-lowercase.c: New file.
39982         * modules/unicase/u16-is-lowercase: New file.
39983
39984         New module 'unicase/u8-is-lowercase'.
39985         * lib/unicase/u8-is-lowercase.c: New file.
39986         * modules/unicase/u8-is-lowercase: New file.
39987
39988         Tests for module 'unicase/u32-is-uppercase'.
39989         * modules/unicase/u32-is-uppercase-tests: New file.
39990         * tests/unicase/test-u32-is-uppercase.c: New file.
39991
39992         Tests for module 'unicase/u16-is-uppercase'.
39993         * modules/unicase/u16-is-uppercase-tests: New file.
39994         * tests/unicase/test-u16-is-uppercase.c: New file.
39995
39996         Tests for module 'unicase/u8-is-uppercase'.
39997         * modules/unicase/u8-is-uppercase-tests: New file.
39998         * tests/unicase/test-u8-is-uppercase.c: New file.
39999         * tests/unicase/test-is-uppercase.h: New file.
40000
40001         New module 'unicase/u32-is-uppercase'.
40002         * lib/unicase/u32-is-uppercase.c: New file.
40003         * modules/unicase/u32-is-uppercase: New file.
40004
40005         New module 'unicase/u16-is-uppercase'.
40006         * lib/unicase/u16-is-uppercase.c: New file.
40007         * modules/unicase/u16-is-uppercase: New file.
40008
40009         New module 'unicase/u8-is-uppercase'.
40010         * lib/unicase/u8-is-uppercase.c: New file.
40011         * modules/unicase/u8-is-uppercase: New file.
40012
40013         New module 'unicase/u32-is-invariant'.
40014         * lib/unicase/u32-is-invariant.c: New file.
40015         * modules/unicase/u32-is-invariant: New file.
40016
40017         New module 'unicase/u16-is-invariant'.
40018         * lib/unicase/u16-is-invariant.c: New file.
40019         * modules/unicase/u16-is-invariant: New file.
40020
40021         New module 'unicase/u8-is-invariant'.
40022         * lib/unicase/u8-is-invariant.c: New file.
40023         * lib/unicase/invariant.h: New file.
40024         * lib/unicase/u-is-invariant.h: New file.
40025         * modules/unicase/u8-is-invariant: New file.
40026
40027         Tests for module 'unicase/u32-casecoll'.
40028         * modules/unicase/u32-casecoll-tests: New file.
40029         * tests/unicase/test-u32-casecoll.c: New file.
40030
40031         Tests for module 'unicase/u16-casecoll'.
40032         * modules/unicase/u16-casecoll-tests: New file.
40033         * tests/unicase/test-u16-casecoll.c: New file.
40034
40035         Tests for module 'unicase/u8-casecoll'.
40036         * modules/unicase/u8-casecoll-tests: New file.
40037         * tests/unicase/test-u8-casecoll.c: New file.
40038
40039         New module 'unicase/u32-casecoll'.
40040         * lib/unicase/u32-casecoll.c: New file.
40041         * modules/unicase/u32-casecoll: New file.
40042
40043         New module 'unicase/u16-casecoll'.
40044         * lib/unicase/u16-casecoll.c: New file.
40045         * modules/unicase/u16-casecoll: New file.
40046
40047         New module 'unicase/u8-casecoll'.
40048         * lib/unicase/u8-casecoll.c: New file.
40049         * lib/unicase/u-casecoll.h: New file.
40050         * modules/unicase/u8-casecoll: New file.
40051
40052         New module 'unicase/u32-casexfrm'.
40053         * lib/unicase/u32-casexfrm.c: New file.
40054         * modules/unicase/u32-casexfrm: New file.
40055
40056         New module 'unicase/u16-casexfrm'.
40057         * lib/unicase/u16-casexfrm.c: New file.
40058         * modules/unicase/u16-casexfrm: New file.
40059
40060         New module 'unicase/u8-casexfrm'.
40061         * lib/unicase/u8-casexfrm.c: New file.
40062         * lib/unicase/u-casexfrm.h: New file.
40063         * modules/unicase/u8-casexfrm: New file.
40064
40065         Tests for module 'unicase/u32-casecmp'.
40066         * modules/unicase/u32-casecmp-tests: New file.
40067         * tests/unicase/test-u32-casecmp.c: New file.
40068
40069         Tests for module 'unicase/u16-casecmp'.
40070         * modules/unicase/u16-casecmp-tests: New file.
40071         * tests/unicase/test-u16-casecmp.c: New file.
40072
40073         Tests for module 'unicase/u8-casecmp'.
40074         * modules/unicase/u8-casecmp-tests: New file.
40075         * tests/unicase/test-u8-casecmp.c: New file.
40076         * tests/unicase/test-casecmp.h: New file.
40077
40078         New module 'unicase/u32-casecmp'.
40079         * lib/unicase/u32-casecmp.c: New file.
40080         * modules/unicase/u32-casecmp: New file.
40081
40082         New module 'unicase/u16-casecmp'.
40083         * lib/unicase/u16-casecmp.c: New file.
40084         * modules/unicase/u16-casecmp: New file.
40085
40086         New module 'unicase/u8-casecmp'.
40087         * lib/unicase/u8-casecmp.c: New file.
40088         * lib/unicase/u-casecmp.h: New file.
40089         * modules/unicase/u8-casecmp: New file.
40090
40091         Tests for module 'unicase/u32-casefold'.
40092         * modules/unicase/u32-casefold-tests: New file.
40093         * tests/unicase/test-u32-casefold.c: New file.
40094
40095         Tests for module 'unicase/u16-casefold'.
40096         * modules/unicase/u16-casefold-tests: New file.
40097         * tests/unicase/test-u16-casefold.c: New file.
40098
40099         Tests for module 'unicase/u8-casefold'.
40100         * modules/unicase/u8-casefold-tests: New file.
40101         * tests/unicase/test-u8-casefold.c: New file.
40102
40103         New module 'unicase/u32-casefold'.
40104         * lib/unicase/u32-casefold.c: New file.
40105         * modules/unicase/u32-casefold: New file.
40106
40107         New module 'unicase/u16-casefold'.
40108         * lib/unicase/u16-casefold.c: New file.
40109         * modules/unicase/u16-casefold: New file.
40110
40111         New module 'unicase/u8-casefold'.
40112         * lib/unicase/u8-casefold.c: New file.
40113         * lib/unicase/u-casefold.h: New file.
40114         * modules/unicase/u8-casefold: New file.
40115
40116         New module 'unicase/tocasefold'.
40117         * lib/unicase/casefold.h: New file.
40118         * lib/unicase/tocasefold.c: New file.
40119         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40120         * modules/unicase/tocasefold: New file.
40121
40122         Tests for module 'unicase/u32-totitle'.
40123         * modules/unicase/u32-totitle-tests: New file.
40124         * tests/unicase/test-u32-totitle.c: New file.
40125
40126         Tests for module 'unicase/u16-totitle'.
40127         * modules/unicase/u16-totitle-tests: New file.
40128         * tests/unicase/test-u16-totitle.c: New file.
40129
40130         Tests for module 'unicase/u8-totitle'.
40131         * modules/unicase/u8-totitle-tests: New file.
40132         * tests/unicase/test-u8-totitle.c: New file.
40133
40134         New module 'unicase/u32-totitle'.
40135         * lib/unicase/u32-totitle.c: New file.
40136         * modules/unicase/u32-totitle: New file.
40137
40138         New module 'unicase/u16-totitle'.
40139         * lib/unicase/u16-totitle.c: New file.
40140         * modules/unicase/u16-totitle: New file.
40141
40142         New module 'unicase/u8-totitle'.
40143         * lib/unicase/u8-totitle.c: New file.
40144         * lib/unicase/u-totitle.h: New file.
40145         * modules/unicase/u8-totitle: New file.
40146
40147         Tests for module 'unicase/u32-tolower'.
40148         * modules/unicase/u32-tolower-tests: New file.
40149         * tests/unicase/test-u32-tolower.c: New file.
40150
40151         Tests for module 'unicase/u16-tolower'.
40152         * modules/unicase/u16-tolower-tests: New file.
40153         * tests/unicase/test-u16-tolower.c: New file.
40154
40155         Tests for module 'unicase/u8-tolower'.
40156         * modules/unicase/u8-tolower-tests: New file.
40157         * tests/unicase/test-u8-tolower.c: New file.
40158
40159         New module 'unicase/u32-tolower'.
40160         * lib/unicase/u32-tolower.c: New file.
40161         * modules/unicase/u32-tolower: New file.
40162
40163         New module 'unicase/u16-tolower'.
40164         * lib/unicase/u16-tolower.c: New file.
40165         * modules/unicase/u16-tolower: New file.
40166
40167         New module 'unicase/u8-tolower'.
40168         * lib/unicase/u8-tolower.c: New file.
40169         * modules/unicase/u8-tolower: New file.
40170
40171         Tests for module 'unicase/u32-toupper'.
40172         * modules/unicase/u32-toupper-tests: New file.
40173         * tests/unicase/test-u32-toupper.c: New file.
40174
40175         Tests for module 'unicase/u16-toupper'.
40176         * modules/unicase/u16-toupper-tests: New file.
40177         * tests/unicase/test-u16-toupper.c: New file.
40178
40179         Tests for module 'unicase/u8-toupper'.
40180         * modules/unicase/u8-toupper-tests: New file.
40181         * tests/unicase/test-u8-toupper.c: New file.
40182
40183         New module 'unicase/u32-toupper'.
40184         * lib/unicase/u32-toupper.c: New file.
40185         * modules/unicase/u32-toupper: New file.
40186
40187         New module 'unicase/u16-toupper'.
40188         * lib/unicase/u16-toupper.c: New file.
40189         * modules/unicase/u16-toupper: New file.
40190
40191         New module 'unicase/u8-toupper'.
40192         * lib/unicase/u8-toupper.c: New file.
40193         * modules/unicase/u8-toupper: New file.
40194
40195         New module 'unicase/u32-casemap'.
40196         * lib/unicase/u32-casemap.c: New file.
40197         * modules/unicase/u32-casemap: New file.
40198
40199         New module 'unicase/u16-casemap'.
40200         * lib/unicase/u16-casemap.c: New file.
40201         * modules/unicase/u16-casemap: New file.
40202
40203         New module 'unicase/u8-casemap'.
40204         * lib/unicase/unicasemap.h: New file.
40205         * lib/unicase/u8-casemap.c: New file.
40206         * lib/unicase/u-casemap.h: New file.
40207         * modules/unicase/u8-casemap: New file.
40208
40209         New module 'unicase/special-casing'.
40210         * lib/unicase/special-casing.h: New file.
40211         * lib/unicase/special-casing.c: New file.
40212         * lib/unicase/special-casing-table.gperf: New file, generated by
40213         gen-uni-tables.c.
40214         * modules/unicase/special-casing: New file.
40215
40216         Tests for module 'unicase/locale-language'.
40217         * modules/unicase/locale-language-tests: New file.
40218         * tests/unicase/test-locale-language.sh: New file.
40219         * tests/unicase/test-locale-language.c: New file.
40220
40221         New module 'unicase/locale-language'.
40222         * lib/unicase/locale-language.c: New file.
40223         * lib/unicase/locale-languages.gperf: New file.
40224         * modules/unicase/locale-language: New file.
40225
40226         Generate more tables for case conversion and case folding.
40227         * lib/gen-uni-tables.c (SCC_*): New enum items.
40228         (struct special_casing_rule): New type.
40229         (casing_rules, num_casing_rules, allocated_casing_rules): New
40230         variables.
40231         (add_casing_rule, fill_casing_rules): New functions.
40232         (struct casefold_rule): New type.
40233         (casefolding_rules, num_casefolding_rules,
40234         allocated_casefolding_rules): New variables.
40235         (fill_casefolding_rules): New function.
40236         (unicode_casefold): New variable.
40237         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40238         sort_casing_rules, output_casing_rules): New functions.
40239         (main): Accept to more arguments: SpecialCasing.txt and
40240         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40241         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40242         Output mapping for casefolding.
40243
40244         * lib/unicase.h: Include stdbool.h, uninorm.h.
40245         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40246         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40247         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40248         arguments.
40249         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40250         resultp arguments.
40251         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40252         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40253         resultp arguments.
40254         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40255         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40256         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40257         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40258         declarations.
40259         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40260
40261 2009-03-08  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40264         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40265         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40266         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40267
40268 2009-03-07  Bruno Haible  <bruno@clisp.org>
40269
40270         Adjust u*_normcmp, u*_normcoll API.
40271         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40272         u16_normcoll, u32_normcoll): Change failure conventions.
40273         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40274         errno and return -1.
40275         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40276
40277 2009-03-07  Bruno Haible  <bruno@clisp.org>
40278
40279         Tests for module 'uninorm/u32-normcoll'.
40280         * modules/uninorm/u32-normcoll-tests: New file.
40281         * tests/uninorm/test-u32-normcoll.c: New file.
40282
40283         Tests for module 'uninorm/u16-normcoll'.
40284         * modules/uninorm/u16-normcoll-tests: New file.
40285         * tests/uninorm/test-u16-normcoll.c: New file.
40286
40287         Tests for module 'uninorm/u8-normcoll'.
40288         * modules/uninorm/u8-normcoll-tests: New file.
40289         * tests/uninorm/test-u8-normcoll.c: New file.
40290
40291 2009-03-07  Bruno Haible  <bruno@clisp.org>
40292
40293         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40294         tests/uninorm/test-u32-normcmp.c.
40295         * tests/uninorm/test-u32-normcmp.c: Include it.
40296         (test_nonascii): New function, extracted from main. Add some more
40297         tests.
40298         (main): Invoke test_ascii and test_nonascii.
40299         * modules/uninorm/u32-normcmp-tests (Files): Add
40300         tests/uninorm/test-u32-normcmp.h.
40301         (Depends-on): Remove uninorm/u32-normcmp.
40302
40303         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40304         tests/uninorm/test-u16-normcmp.c.
40305         * tests/uninorm/test-u16-normcmp.c: Include it.
40306         (test_nonascii): New function, extracted from main. Add some more
40307         tests.
40308         (main): Invoke test_ascii and test_nonascii.
40309         * modules/uninorm/u16-normcmp-tests (Files): Add
40310         tests/uninorm/test-u16-normcmp.h.
40311         (Depends-on): Remove uninorm/u16-normcmp.
40312
40313         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40314         tests/uninorm/test-u8-normcmp.c.
40315         * tests/uninorm/test-u8-normcmp.c: Include it.
40316         (test_nonascii): New function, extracted from main. Add some more
40317         tests.
40318         (main): Invoke test_ascii and test_nonascii.
40319         * modules/uninorm/u8-normcmp-tests (Files): Add
40320         tests/uninorm/test-u8-normcmp.h.
40321         (Depends-on): Remove uninorm/u8-normcmp.
40322
40323 2009-03-07  Bruno Haible  <bruno@clisp.org>
40324
40325         New module 'uninorm/u32-normcoll'.
40326         * lib/uninorm/u32-normcoll.c: New file.
40327         * modules/uninorm/u32-normcoll: New file.
40328
40329         New module 'uninorm/u16-normcoll'.
40330         * lib/uninorm/u16-normcoll.c: New file.
40331         * modules/uninorm/u16-normcoll: New file.
40332
40333         New module 'uninorm/u8-normcoll'.
40334         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40335         declarations.
40336         * lib/uninorm/u8-normcoll.c: New file.
40337         * lib/uninorm/u-normcoll.h: New file.
40338         * modules/uninorm/u8-normcoll: New file.
40339
40340         New module 'uninorm/u32-normxfrm'.
40341         * lib/uninorm/u32-normxfrm.c: New file.
40342         * modules/uninorm/u32-normxfrm: New file.
40343
40344         New module 'uninorm/u16-normxfrm'.
40345         * lib/uninorm/u16-normxfrm.c: New file.
40346         * modules/uninorm/u16-normxfrm: New file.
40347
40348         New module 'uninorm/u8-normxfrm'.
40349         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40350         declarations.
40351         * lib/uninorm/u8-normxfrm.c: New file.
40352         * lib/uninorm/u-normxfrm.h: New file.
40353         * modules/uninorm/u8-normxfrm: New file.
40354
40355 2009-03-07  Bruno Haible  <bruno@clisp.org>
40356
40357         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40358         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40359         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40360
40361 2009-03-07  Bruno Haible  <bruno@clisp.org>
40362
40363         New module 'memxfrm'.
40364         * lib/memxfrm.h: New file.
40365         * lib/memxfrm.c: New file.
40366         * modules/memxfrm: New file.
40367
40368 2009-03-07  Bruno Haible  <bruno@clisp.org>
40369
40370         New module 'memcmp2'.
40371         * lib/memcmp2.h: New file.
40372         * lib/memcmp2.c: New file.
40373         * modules/memcmp2: New file.
40374
40375 2009-03-07  Bruno Haible  <bruno@clisp.org>
40376
40377         Tests for module 'uninorm/decomposing-form'.
40378         * modules/uninorm/decomposing-form-tests: New file.
40379         * tests/uninorm/test-decomposing-form.c: New file.
40380
40381         New module 'uninorm/decomposing-form'.
40382         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40383         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40384         Add 'decomposing_variant' field.
40385         * lib/uninorm/decomposing-form.c: New file.
40386         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40387         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40388         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40389         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40390         * modules/uninorm/decomposing-form: New file.
40391         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40392         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40393
40394 2009-03-07  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40397         strings.
40398
40399 2009-03-06  Bruno Haible  <bruno@clisp.org>
40400
40401         Tests for module 'uninorm/u32-normcmp'.
40402         * tests/uninorm/test-u32-normcmp.c: New file.
40403         * modules/uninorm/u32-normcmp-tests: New file.
40404
40405         Tests for module 'uninorm/u16-normcmp'.
40406         * tests/uninorm/test-u16-normcmp.c: New file.
40407         * modules/uninorm/u16-normcmp-tests: New file.
40408
40409         Tests for module 'uninorm/u8-normcmp'.
40410         * tests/uninorm/test-u8-normcmp.c: New file.
40411         * modules/uninorm/u8-normcmp-tests: New file.
40412
40413         New module 'uninorm/u32-normcmp'.
40414         * lib/uninorm/u32-normcmp.c: New file.
40415         * modules/uninorm/u32-normcmp: New file.
40416
40417         New module 'uninorm/u16-normcmp'.
40418         * lib/uninorm/u16-normcmp.c: New file.
40419         * modules/uninorm/u16-normcmp: New file.
40420
40421         New module 'uninorm/u8-normcmp'.
40422         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40423         declarations.
40424         * lib/uninorm/u8-normcmp.c: New file.
40425         * lib/uninorm/u-normcmp.h: New file.
40426         * modules/uninorm/u8-normcmp: New file.
40427
40428 2009-03-06  Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40431         Reported by Eric Blake.
40432
40433 2009-03-06  Eric Blake  <ebb9@byu.net>
40434             Bruno Haible  <bruno@clisp.org>
40435
40436         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40437         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40438         condition.
40439         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40440         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40441         condition.
40442         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40443
40444 2009-03-06  Eric Blake  <ebb9@byu.net>
40445
40446         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40447         to avoid compiler warnings.
40448         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40449
40450 2009-03-05  Bruno Haible  <bruno@clisp.org>
40451
40452         * tests/test-ftell.c (main): Disable test beyond end of file on
40453         FreeMiNT.
40454         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40455
40456 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40457
40458         * lib/filevercmp.c: Move hidden files up in ordering.
40459         * tests/test-filevercmp.c: Add tests for hidden files.
40460
40461 2009-03-04  Bruno Haible  <bruno@clisp.org>
40462
40463         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40464         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40465         AM_CFLAGS.
40466         Reported by Simon Josefsson.
40467
40468 2009-03-03  Bruno Haible  <bruno@clisp.org>
40469
40470         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40471         Reported by Simon Josefsson.
40472
40473         * doc/ld-version-script.texi: Update node reference.
40474
40475 2009-03-03  Bruno Haible  <bruno@clisp.org>
40476
40477         * modules/visibility (License): Change to 'unlimited'.
40478         Suggested by Simon Josefsson.
40479
40480 2009-03-03  Jim Meyering  <meyering@redhat.com>
40481
40482         unlinkdir: cannot_unlink_dir may modify process state
40483         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40484         it's neither thread-safe nor appropriate for use in a library.
40485
40486 2009-03-03  Eric Blake  <ebb9@byu.net>
40487
40488         test-closein: silence test under Darwin
40489         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40490         care if it dies from EPIPE or EBADF.
40491
40492 2009-03-03  Bruno Haible  <bruno@clisp.org>
40493
40494         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40495         earlier.
40496         * doc/visibility.texi: Fix @node and @section.
40497
40498 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40499
40500         * doc/gnulib.texi: Link to sections for ld version script and
40501         visibility.
40502         * doc/visibility.texi: Add @node and @section.
40503         * modules/ld-version-script: New module.
40504         * m4/ld-version-script.m4: New file.
40505         * doc/ld-version-script.texi: New file.
40506
40507 2009-03-02  David Lutterkort  <lutter@redhat.com>
40508
40509         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40511
40512 2009-03-02  Bruno Haible  <bruno@clisp.org>
40513
40514         * doc/visibility.texi: Mention libtool's -export-symbols option.
40515
40516 2009-03-02  Jim Meyering  <meyering@redhat.com>
40517
40518         announce-gen: new option: --no-print-checksums
40519         * build-aux/announce-gen (usage): Describe it.
40520         (print_checksums): Print a newline here, not in the [*] footnote.
40521         (main): Honor it.
40522
40523 2009-03-01  Bruno Haible  <bruno@clisp.org>
40524
40525         Use socklen_t in the native Windows replacements prototypes.
40526         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40527         instead of 'int'.
40528         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40529         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40530         * modules/getsockopt (Depends-on): Add socklen.
40531         * modules/setsockopt (Depends-on): Add socklen.
40532
40533 2009-03-01  Bruno Haible  <bruno@clisp.org>
40534
40535         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40536         least 4.2.
40537
40538 2009-03-01  Eric Blake  <ebb9@byu.net>
40539             Bruno Haible  <bruno@clisp.org>
40540
40541         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40542         error messages.
40543         * lib/wait-process.c (wait_subprocess): Omit error message about
40544         deadly signal sent to the child of termsigp != NULL.
40545
40546 2009-03-01  Eric Blake  <ebb9@byu.net>
40547
40548         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40549
40550 2009-03-01  Bruno Haible  <bruno@clisp.org>
40551
40552         Avoid a gcc warning.
40553         * tests/test-sched.c (b): Make global.
40554         Reported by Eric Blake.
40555
40556 2009-01-19  Martin Lambers  <marlam@marlam.de>
40557
40558         Provide POSIX semantics for socket timeout options on W32.
40559         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40560         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40561         * modules/setsockopt: Depend on sys_time module for struct timeval.
40562         * modules/getsockopt: Depend on sys_time module for struct timeval.
40563
40564 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40565
40566         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40567         __USE_GNU, for consistency with netdb.in.h.
40568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40569
40570 2009-03-01  Bruno Haible  <bruno@clisp.org>
40571
40572         More support for FreeMiNT.
40573         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40574         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40575
40576 2009-03-01  Bruno Haible  <bruno@clisp.org>
40577
40578         More support for FreeMiNT.
40579         * lib/fpurge.c (fpurge): Correct last commit.
40580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40581
40582 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40583
40584         Fix unportable awk script in vc-list-files.
40585         * build-aux/vc-list-files: In the replacement awk script, use
40586         substr with a second argument of 1, not zero.
40587         Report by Simon Josefsson.
40588
40589 2009-02-28  Bruno Haible  <bruno@clisp.org>
40590
40591         More support for FreeMiNT.
40592         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40593         to FreeMiNT today.
40594         * lib/fwriting.c (fwriting): Likewise.
40595         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40596
40597 2009-02-28  Bruno Haible  <bruno@clisp.org>
40598
40599         * tests/test-freadseek.c (main): Disable test beyond end of file on
40600         FreeMiNT.
40601         * tests/test-ftello.c (main): Likewise.
40602         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40603
40604 2009-02-28  Bruno Haible  <bruno@clisp.org>
40605
40606         Add tentative support for FreeMiNT.
40607         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40608         * lib/fpurge.c (fpurge): Likewise.
40609         * lib/freadable.c (freadable): Likewise.
40610         * lib/freading.c (freading): Likewise.
40611         * lib/freadptr.c (freadptr): Likewise.
40612         * lib/freadseek.c (freadptrinc): Likewise.
40613         * lib/fseeko.c (rpl_fseeko): Likewise.
40614         * lib/fseterr.c (fseterr): Likewise.
40615         * lib/fwritable.c (fwritable): Likewise.
40616         * lib/fwriting.c (fwriting): Likewise.
40617         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40618         Hourihane.
40619         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40620
40621 2009-02-28  Bruno Haible  <bruno@clisp.org>
40622
40623         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40624         SIGCHLD.
40625         Reported by Jim Meyering.
40626
40627 2009-02-28  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40630         Mention the results of these tests on various platforms.
40631         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40632         order.
40633         * doc/posix-functions/printf.texi: Likewise.
40634         * doc/posix-functions/snprintf.texi: Likewise.
40635         * doc/posix-functions/sprintf.texi: Likewise.
40636         * doc/posix-functions/vfprintf.texi: Likewise.
40637         * doc/posix-functions/vprintf.texi: Likewise.
40638         * doc/posix-functions/vsnprintf.texi: Likewise.
40639         * doc/posix-functions/vsprintf.texi: Likewise.
40640         * doc/glibc-functions/obstack_printf.texi: Likewise.
40641         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40642
40643 2009-02-28  Bruno Haible  <bruno@clisp.org>
40644
40645         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40646         Reported by Loïc Minier <lool@dooz.org>.
40647
40648 2009-02-27  Bruno Haible  <bruno@clisp.org>
40649
40650         * gnulib-tool (func_import): Make the sed expression used to create the
40651         sed script for updating the .gitignore file POSIX compliant.
40652         Reported by Eric Blake.
40653
40654 2009-02-27  Bruno Haible  <bruno@clisp.org>
40655
40656         * gnulib-tool (sed): Don't alias as "sed --posix".
40657         Reported by Eric Blake.
40658
40659 2009-02-27  Bruno Haible  <bruno@clisp.org>
40660
40661         Avoid test link errors.
40662         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40663         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40664         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40665         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40667
40668 2009-02-27  Bruno Haible  <bruno@clisp.org>
40669
40670         Avoid spurious "(cached)" in configure output.
40671         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40672         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40673         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40674         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40675         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40676         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40677         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40678         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40679         Reported by Eric Blake.
40680
40681 2009-02-27  Eric Blake  <ebb9@byu.net>
40682
40683         printf: fix regression in previous patch
40684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40685
40686 2009-02-27  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40689         value.
40690         * lib/stdint.in.h: Likewise.
40691         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40692
40693 2009-02-27  Eric Blake  <ebb9@byu.net>
40694
40695         doc: mention more functions added in cygwin 1.7.0
40696         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40697         addition.
40698         * doc/posix-functions/open_wmemstream.texi: Likewise.
40699         * doc/posix-functions/wcsnlen.texi: Likewise.
40700         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40701         * doc/posix-functions/wcstod.texi: Likewise.
40702         * doc/posix-functions/wcstof.texi: Likewise.
40703         * doc/posix-functions/wcstoimax.texi: Likewise.
40704         * doc/posix-functions/wcstok.texi: Likewise.
40705         * doc/posix-functions/wcstoumax.texi: Likewise.
40706
40707         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40709         * doc/posix-functions/fprintf.texi: Update.
40710         * doc/posix-functions/printf.texi: Update.
40711         * doc/posix-functions/snprintf.texi: Update.
40712         * doc/posix-functions/sprintf.texi: Update.
40713         * doc/posix-functions/vfprintf.texi: Update.
40714         * doc/posix-functions/vprintf.texi: Update.
40715         * doc/posix-functions/vsnprintf.texi: Update.
40716         * doc/posix-functions/vsprintf.texi: Update.
40717         * doc/glibc-functions/obstack_printf.texi: Update.
40718         * doc/glibc-functions/obstack_vprintf.texi: Update.
40719
40720 2009-02-26  Eric Blake  <ebb9@byu.net>
40721
40722         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40723         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40724         compilation bug by using runtime conversion.
40725         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40726         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40727         * modules/ceill-tests (Files): Use nan.h.
40728         * modules/floorl-tests (Files): Likewise.
40729         * modules/frexpl-tests (Files): Likewise.
40730         * modules/isnanl-tests (Files): Likewise.
40731         * modules/ldexpl-tests (Files): Likewise.
40732         * modules/roundl-tests (Files): Likewise.
40733         * modules/truncl-tests (Files): Likewise.
40734         * tests/test-ceill.c (main): Use a working NaN.
40735         * tests/test-floorl.c (main): Likewise.
40736         * tests/test-frexpl.c (main): Likewise.
40737         * tests/test-isnan.c (test_long_double): Likewise.
40738         * tests/test-isnanl.h (main): Likewise.
40739         * tests/test-ldexpl.h (main): Likewise.
40740         * tests/test-roundl.h (main): Likewise.
40741         * tests/test-truncl.h (main): Likewise.
40742         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40743
40744 2009-02-26  Eric Blake  <ebb9@byu.net>
40745             Bruno Haible  <bruno@clisp.org>
40746
40747         Work around a *printf bug with %ls on Solaris.
40748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40749         precision is specified, sprintf stops converting the wide string
40750         argument when the number of bytes that have been produced by this
40751         conversion equals or exceeds the precision.
40752         * doc/posix-functions/fprintf.texi: Update.
40753         * doc/posix-functions/printf.texi: Update.
40754         * doc/posix-functions/snprintf.texi: Update.
40755         * doc/posix-functions/sprintf.texi: Update.
40756         * doc/posix-functions/vfprintf.texi: Update.
40757         * doc/posix-functions/vprintf.texi: Update.
40758         * doc/posix-functions/vsnprintf.texi: Update.
40759         * doc/posix-functions/vsprintf.texi: Update.
40760         * doc/glibc-functions/obstack_printf.texi: Update.
40761         * doc/glibc-functions/obstack_vprintf.texi: Update.
40762
40763 2009-02-26  Eric Blake  <ebb9@byu.net>
40764
40765         stdlib: favor compiler check of random.h
40766         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40767         to avoid an ObjC random.h installed by Swarm.
40768
40769 2009-02-26  Bruno Haible  <bruno@clisp.org>
40770
40771         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40772         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40773         Reported by Gary V. Vaughan <gary@gnu.org>.
40774
40775 2009-02-26  Bruno Haible  <bruno@clisp.org>
40776
40777         Fix *printf behaviour regarding the %ls directive.
40778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40779         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40780         NEED_PRINTF_DIRECTIVE_LS.
40781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40782         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40784         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40785         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40786         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40792         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40796         * doc/posix-functions/fprintf.texi: Update.
40797         * doc/posix-functions/printf.texi: Update.
40798         * doc/posix-functions/snprintf.texi: Update.
40799         * doc/posix-functions/sprintf.texi: Update.
40800         * doc/posix-functions/vfprintf.texi: Update.
40801         * doc/posix-functions/vprintf.texi: Update.
40802         * doc/posix-functions/vsnprintf.texi: Update.
40803         * doc/posix-functions/vsprintf.texi: Update.
40804         * doc/glibc-functions/obstack_printf.texi: Update.
40805         * doc/glibc-functions/obstack_vprintf.texi: Update.
40806         Reported by Eric Blake.
40807
40808 2009-02-25  Bruno Haible  <bruno@clisp.org>
40809
40810         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40811         with known value.
40812         Reported by Gary V. Vaughan <gary@gnu.org>.
40813
40814 2009-02-25  Bruno Haible  <bruno@clisp.org>
40815
40816         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40817         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40818         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40819         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40820         Reported by Gary V. Vaughan <gary@gnu.org>.
40821
40822 2009-02-25  Bruno Haible  <bruno@clisp.org>
40823
40824         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40825         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40826         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40827         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40828         Reported by Gary V. Vaughan <gary@gnu.org>.
40829
40830 2009-02-25  Eric Blake  <ebb9@byu.net>
40831
40832         tests: skip fseek/ftell tests if ungetc is broken
40833         * m4/ungetc.m4: New file.
40834         * modules/fseek-tests: Split test, so ungetc dependency is
40835         separate from rest of test.
40836         * modules/fseeko-tests: Likewise.
40837         * modules/ftell-tests: Likewise.
40838         * modules/ftello-tests: Likewise.
40839         * tests/test-fseek.c (main): Isolate ungetc dependency.
40840         * tests/test-fseeko.c (main): Likewise.
40841         * tests/test-ftell.c (main): Likewise.
40842         * tests/test-ftello.c (main): Likewise.
40843         * tests/test-fseek2.sh: New file.
40844         * tests/test-fseeko2.sh: Likewise.
40845         * tests/test-ftell2.sh: Likewise.
40846         * tests/test-ftello2.sh: Likewise.
40847
40848 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40849
40850         test-getaddrinfo: fix usage of skip return code 77
40851         * tests/test-gettaddrinfo.c: Return skip code 77 only
40852         for first occurance of skip (4x77 is not 77)
40853
40854 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40855
40856         strtod: avoid C99 decl-after-statement
40857         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40858
40859 2009-02-24  Eric Blake  <ebb9@byu.net>
40860
40861         strtod: detect HP-UX 11.31 bug
40862         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40863         Reported by Gary V. Vaughan.
40864
40865 2009-02-23  Bruno Haible  <bruno@clisp.org>
40866
40867         Fix invalid read past end of memory block.
40868         * lib/vasnprintf.c (DCHAR_SET): Define.
40869         (local_wcslen): Define only when needed.
40870         (local_strnlen, local_wcsnlen): New functions.
40871         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40872         directives that involve a conversion ourselves.
40873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40874         wcsnlen, mbrtowc, wcrtomb.
40875         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40876         * tests/test-vasprintf-posix.c (test_function): Likewise.
40877         * tests/test-snprintf-posix.h (test_function): Likewise.
40878         * tests/test-sprintf-posix.h (test_function): Likewise.
40879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40880
40881 2009-02-22  Bruno Haible  <bruno@clisp.org>
40882
40883         Implement new clarified decomposition of Hangul syllables.
40884         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40885         of type LTV, return only a pairwise decomposition.
40886         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40887         Likewise.
40888         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40889         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40890         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40891
40892 2009-02-22  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40895         zero-length results and shrink excess allocated memory.
40896         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40897         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40898         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40899         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40900         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40901         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40902         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40903         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40904         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40905         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40906         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40907         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40908
40909 2009-02-21  Bruno Haible  <bruno@clisp.org>
40910
40911         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40912         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40913         spaces after a period. Put a space between a macro name and its
40914         argument list. Trivial rewordings.
40915         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40916         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40917         (main): Return 0 explicitly.
40918
40919 2009-02-21  Bruno Haible  <bruno@clisp.org>
40920
40921         Tests for module 'uninorm/filter'.
40922         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40923         * modules/uninorm/filter-tests: New file.
40924
40925         New module 'uninorm/filter'.
40926         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40927         uninorm_filter_flush, uninorm_filter_free): New declarations.
40928         * lib/uninorm/uninorm-filter.c: New file.
40929         * modules/uninorm/filter: New file.
40930
40931 2009-02-21  Bruno Haible  <bruno@clisp.org>
40932
40933         Tests for module 'uninorm/nfkc'.
40934         * tests/uninorm/test-nfkc.c: New file.
40935         * tests/uninorm/test-u8-nfkc.c: New file.
40936         * tests/uninorm/test-u16-nfkc.c: New file.
40937         * tests/uninorm/test-u32-nfkc.c: New file.
40938         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40939         * tests/uninorm/test-u32-nfkc-big.c: New file.
40940         * modules/uninorm/nfkc-tests: New file.
40941
40942         New module 'uninorm/nfkc'.
40943         * lib/uninorm/nfkc.c: New file.
40944         * modules/uninorm/nfkc: New file.
40945
40946         Tests for module 'uninorm/nfkd'.
40947         * tests/uninorm/test-nfkd.c: New file.
40948         * tests/uninorm/test-u8-nfkd.c: New file.
40949         * tests/uninorm/test-u16-nfkd.c: New file.
40950         * tests/uninorm/test-u32-nfkd.c: New file.
40951         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40952         * tests/uninorm/test-u32-nfkd-big.c: New file.
40953         * modules/uninorm/nfkd-tests: New file.
40954
40955         New module 'uninorm/nfkd'.
40956         * lib/uninorm/nfkd.c: New file.
40957         * modules/uninorm/nfkd: New file.
40958
40959         Tests for module 'uninorm/nfc'.
40960         * tests/uninorm/test-nfc.c: New file.
40961         * tests/uninorm/test-u8-nfc.c: New file.
40962         * tests/uninorm/test-u16-nfc.c: New file.
40963         * tests/uninorm/test-u32-nfc.c: New file.
40964         * tests/uninorm/test-u32-nfc-big.sh: New file.
40965         * tests/uninorm/test-u32-nfc-big.c: New file.
40966         * modules/uninorm/nfc-tests: New file.
40967
40968         New module 'uninorm/nfc'.
40969         * lib/uninorm/nfc.c: New file.
40970         * modules/uninorm/nfc: New file.
40971
40972         Tests for module 'uninorm/nfd'.
40973         * tests/uninorm/test-nfd.c: New file.
40974         * tests/uninorm/test-u8-nfd.c: New file.
40975         * tests/uninorm/test-u16-nfd.c: New file.
40976         * tests/uninorm/test-u32-nfd.c: New file.
40977         * tests/uninorm/test-u32-nfd-big.sh: New file.
40978         * tests/uninorm/test-u32-nfd-big.c: New file.
40979         * tests/uninorm/test-u32-normalize-big.h: New file.
40980         * tests/uninorm/test-u32-normalize-big.c: New file.
40981         * tests/uninorm/NormalizationTest.txt: New file, created from
40982         Unicode 5.1.0 NormalizationTest.txt.
40983         * modules/uninorm/nfd-tests: New file.
40984
40985         New module 'uninorm/nfd'.
40986         * lib/uninorm/nfd.c: New file.
40987         * modules/uninorm/nfd: New file.
40988
40989         New module 'uninorm/u32-normalize'.
40990         * lib/uninorm/u32-normalize.c: New file.
40991         * modules/uninorm/u32-normalize: New file.
40992
40993         New module 'uninorm/u16-normalize'.
40994         * lib/uninorm/u16-normalize.c: New file.
40995         * modules/uninorm/u16-normalize: New file.
40996
40997         New module 'uninorm/u8-normalize'.
40998         * lib/uninorm/u8-normalize.c: New file.
40999         * lib/uninorm/normalize-internal.h: New file.
41000         * lib/uninorm/u-normalize-internal.h: New file.
41001         * modules/uninorm/u8-normalize: New file.
41002
41003         New module 'uninorm/decompose-internal'.
41004         * lib/uninorm/decompose-internal.c: New file.
41005         * modules/uninorm/decompose-internal: New file.
41006
41007         Tests for module 'uninorm/composition'.
41008         * tests/uninorm/test-composition.c: New file.
41009         * modules/uninorm/composition-tests: New file.
41010
41011         New module 'uninorm/composition'.
41012         * lib/uninorm/composition.c: New file.
41013         * lib/uninorm/composition-table.gperf: New file, generated by
41014         gen-uni-tables.
41015         * modules/uninorm/composition: New file.
41016
41017         Tests for module 'uninorm/compat-decomposition'.
41018         * tests/uninorm/test-compat-decomposition.c: New file.
41019         * modules/uninorm/compat-decomposition-tests: New file.
41020
41021         New module 'uninorm/compat-decomposition'.
41022         * lib/uninorm/decompose-internal.h: New file.
41023         * lib/uninorm/compat-decomposition.c: New file.
41024         * modules/uninorm/compat-decomposition: New file.
41025
41026         Tests for module 'uninorm/canonical-decomposition'.
41027         * tests/uninorm/test-canonical-decomposition.c: New file.
41028         * modules/uninorm/canonical-decomposition-tests: New file.
41029
41030         New module 'uninorm/canonical-decomposition'.
41031         * lib/uninorm/canonical-decomposition.c: New file.
41032         * modules/uninorm/canonical-decomposition: New file.
41033
41034         Tests for module 'uninorm/decomposition'.
41035         * tests/uninorm/test-decomposition.c: New file.
41036         * modules/uninorm/decomposition-tests: New file.
41037
41038         New module 'uninorm/decomposition'.
41039         * lib/uninorm/decomposition.c: New file.
41040         * modules/uninorm/decomposition: New file.
41041
41042         New module 'uninorm/decomposition-table'.
41043         * lib/uninorm/decomposition-table.h: New file.
41044         * lib/uninorm/decomposition-table.c: New file.
41045         * lib/uninorm/decomposition-table1.h: New file, generated by
41046         gen-uni-tables.
41047         * lib/uninorm/decomposition-table2.h: New file, generated by
41048         gen-uni-tables.
41049         * modules/uninorm/decomposition-table: New file.
41050
41051         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41052         (UC_DECOMP_*): New enumeration items.
41053         (get_decomposition): New function.
41054         (struct decomp_table): New type.
41055         (output_decomposition, output_decomposition_tables): New functions.
41056         (unicode_composition_exclusions): New variable.
41057         (fill_composition_exclusions, debug_output_composition_tables): New
41058         functions.
41059         (main): Accept one more argument. Invoke fill_composition_exclusions.
41060         Output decomposition and composition tables.
41061
41062         New module 'uninorm/base'.
41063         * lib/uninorm.h: New file.
41064         * lib/unictype.h: Update comment.
41065         * modules/uninorm/base: New file.
41066
41067 2009-02-21  David Lutterkort  <lutter@redhat.com>
41068
41069         Tests for module 'safe-alloc'.
41070         * tests/test-safe-alloc.c: New file.
41071         * modules/safe-alloc-tests: New file.
41072
41073         New module 'safe-alloc'.
41074         * lib/safe-alloc.h: New file.
41075         * lib/safe-alloc.c: New file.
41076         * m4/safe-alloc.m4: New file.
41077         * modules/safe-alloc: New file.
41078         * doc/safe-alloc.texi: New file.
41079         * doc/gnulib.texi: Include it.
41080         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41081         safe-alloc.
41082
41083 2009-02-18  Bruno Haible  <bruno@clisp.org>
41084
41085         Fix link error on non-glibc systems.
41086         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41087         variable.
41088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41089
41090 2009-02-18  Jim Meyering  <meyering@redhat.com>
41091
41092         fts: avoid used-uninitialized error due to recent change
41093         * lib/fts.c (fts_read): Guard uses of the new member,
41094         parent->fts_n_dirs_remaining, since it's not relevant for
41095         the parent of a directory specified on the command-line.
41096
41097 2009-02-17  James Youngman  <jay@gnu.org>
41098             Bruno Haible  <bruno@clisp.org>
41099
41100         * m4/include_next.m4: Reformulate comment.
41101
41102 2009-02-16  Jim Meyering  <meyering@redhat.com>
41103
41104         fts: add #if guards so that the fts_lgpl module still builds
41105         * lib/fts.c: Guard just-added hash-table-using parts with
41106         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41107         Reported by Simon Josefsson.
41108
41109 2009-02-15  Bruno Haible  <bruno@clisp.org>
41110
41111         * modules/array-mergesort-tests: New file.
41112         * tests/test-array-mergesort.c: New file.
41113
41114         New module 'array-mergesort'.
41115         * modules/array-mergesort: New file.
41116         * lib/array-mergesort.h: New file.
41117
41118 2009-02-15  Bruno Haible  <bruno@clisp.org>
41119
41120         Fix 2009-02-07 commit.
41121         * lib/gen-uni-tables.c (output_predicate, output_category,
41122         output_combclass, output_bidi_category, output_decimal_digit,
41123         output_digit, output_numeric, output_mirror, output_scripts,
41124         output_ident_category, output_simple_mapping): Fix format directives.
41125         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41126
41127 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41128
41129         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41130         fixes are available from IBM.
41131
41132 2009-02-13  Jim Meyering  <meyering@redhat.com>
41133
41134         fts: arrange not to stat non-directories in more cases
41135         This makes GNU find (when it doesn't need to stat each file)
41136         *much* more efficient at traversing reiserfs file systems.
41137         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41138         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41139         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41140         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41141         (leaf_optimization_applies): New function.
41142         (LCO_hash, LCO_compare): New helper functions.
41143         (link_count_optimize_ok): New function.
41144         (fts_stat): Initialize new member (if dir).
41145         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41146         we've just stat'ed a directory.  Skip the stat call when possible.
41147         ---
41148         Note this AFS-related exchange:
41149         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41150         and note find's pioctl call in find/fstype.c.
41151         But that is necessary only if you want to enable the
41152         optimization for AFS, and for now, I don't.
41153
41154         fts: move a function definition "up" (no semantic change)
41155         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41156         "up" to precede upcoming use of a related function.
41157
41158 2009-02-11  Jim Meyering  <meyering@redhat.com>
41159
41160         fts: correct internal computation of nlinks (optimization-related)
41161         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41162         whether the current entry is a directory, so don't test it.
41163
41164 2009-02-10  Bruno Haible  <bruno@clisp.org>
41165
41166         Tests for module 'uniwbrk/ulc-wordbreaks'.
41167         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41168         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41169         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41170
41171         Tests for module 'uniwbrk/u32-wordbreaks'.
41172         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41173         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41174
41175         Tests for module 'uniwbrk/u16-wordbreaks'.
41176         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41177         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41178
41179         Tests for module 'uniwbrk/u8-wordbreaks'.
41180         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41181         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41182
41183 2009-02-10  Bruno Haible  <bruno@clisp.org>
41184
41185         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41186         property.
41187         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41188         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41189         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41190
41191 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41192
41193         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41194         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41195
41196 2009-02-10  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41199         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41200         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41201         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41202         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41203         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41204
41205 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41206
41207         * lib/sockets.h (gl_fd_to_handle): New function.
41208
41209         * tests/test-sockets.c: Call gl_fd_to_handle.
41210
41211 2009-02-09  Bruno Haible  <bruno@clisp.org>
41212
41213         * doc/havelib.texi: Document the conventions on bi-arch systems.
41214
41215 2009-02-08  Bruno Haible  <bruno@clisp.org>
41216
41217         Document the AC_LIB_LINKFLAGS macro.
41218         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41219         * doc/gnulib.texi: Include it.
41220
41221 2009-02-08  Bruno Haible  <bruno@clisp.org>
41222
41223         Fix wrong order of sections, compared to TOC.
41224         * doc/gnulib.texi: Include relocatable-maint.texi after the
41225         "Regular expressions" node, not before.
41226
41227 2009-02-08  Bruno Haible  <bruno@clisp.org>
41228
41229         Tests for module 'unicase/totitle'.
41230         * modules/unicase/totitle-tests: New file.
41231
41232         Tests for module 'unicase/tolower'.
41233         * modules/unicase/tolower-tests: New file.
41234
41235         Tests for module 'unicase/toupper'.
41236         * modules/unicase/toupper-tests: New file.
41237         * tests/unicase/test-mapping-part1.h: New file.
41238         * tests/unicase/test-mapping-part2.h: New file.
41239
41240         New module 'unicase/totitle'.
41241         * modules/unicase/totitle: New file.
41242         * lib/unicase/totitle.c: New file.
41243
41244         New module 'unicase/tolower'.
41245         * modules/unicase/tolower: New file.
41246         * lib/unicase/tolower.c: New file.
41247
41248         New module 'unicase/toupper'.
41249         * modules/unicase/toupper: New file.
41250         * lib/unicase/toupper.c: New file.
41251         * lib/unicase/simple-mapping.h: New file.
41252
41253         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41254         (mapping_table): New structure.
41255         (output_simple_mapping): New function.
41256         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41257         * modules/gen-uni-tables (Description): Update.
41258         * lib/unicase/toupper.h: New file, automatically generated by
41259         gen-uni-tables.
41260         * lib/unicase/tolower.h: New file, automatically generated by
41261         gen-uni-tables.
41262         * lib/unicase/totitle.h: New file, automatically generated by
41263         gen-uni-tables.
41264         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41265         gen-uni-tables.
41266         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41267         gen-uni-tables.
41268         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41269         gen-uni-tables.
41270
41271         New module 'unicase/base'.
41272         * modules/unicase/base: New file.
41273         * lib/unicase.h: New file.
41274
41275 2009-02-08  Bruno Haible  <bruno@clisp.org>
41276
41277         New module 'uniwbrk/ulc-wordbreaks'.
41278         * modules/uniwbrk/ulc-wordbreaks: New file.
41279         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41280
41281         New module 'uniwbrk/u32-wordbreaks'.
41282         * modules/uniwbrk/u32-wordbreaks: New file.
41283         * lib/uniwbrk/u32-wordbreaks.c: New file.
41284
41285         New module 'uniwbrk/u16-wordbreaks'.
41286         * modules/uniwbrk/u16-wordbreaks: New file.
41287         * lib/uniwbrk/u16-wordbreaks.c: New file.
41288
41289         New module 'uniwbrk/u8-wordbreaks'.
41290         * modules/uniwbrk/u8-wordbreaks: New file.
41291         * lib/uniwbrk/u8-wordbreaks.c: New file.
41292         * lib/uniwbrk/u-wordbreaks.h: New file.
41293
41294         New module 'uniwbrk/table'.
41295         * modules/uniwbrk/table: New file.
41296         * lib/uniwbrk/wbrktable.h: New file.
41297         * lib/uniwbrk/wbrktable.c: New file.
41298
41299         New module 'uniwbrk/wordbreak-property'.
41300         * modules/uniwbrk/wordbreak-property: New file.
41301         * lib/uniwbrk/wordbreak-property.c: New file.
41302
41303         * lib/gen-uni-tables.c (WBP_*): New enum items.
41304         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41305         (unicode_org_wbp): New variable.
41306         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41307         New functions.
41308         (wbp_table): New structure.
41309         (output_wbp, output_wbrk_tables): New functions.
41310         (main): Accept additional argument. Invoke fill_org_wbp,
41311         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41312         output_wbrk_tables.
41313         * modules/gen-uni-tables (Description): Update.
41314         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41315         gen-uni-tables.
41316
41317         New module 'uniwbrk/base'.
41318         * modules/uniwbrk/base: New file.
41319         * lib/uniwbrk.h: New file.
41320
41321 2009-02-08  Bruno Haible  <bruno@clisp.org>
41322
41323         Update to Unicode 5.1.0.
41324         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41325         U+2185..U+2188.
41326         (is_property_default_ignorable_code_point): Don't include characters
41327         of category Cc or Cs and not-a-characters.
41328         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41329         U+0D79, U+109E, U+109F, U+A60C.
41330         * lib/unictype/bidi_of.h: Regenerated.
41331         * lib/unictype/blocks.h: Regenerated.
41332         * lib/unictype/categ_C.h: Regenerated.
41333         * lib/unictype/categ_Cf.h: Regenerated.
41334         * lib/unictype/categ_Cn.h: Regenerated.
41335         * lib/unictype/categ_L.h: Regenerated.
41336         * lib/unictype/categ_Ll.h: Regenerated.
41337         * lib/unictype/categ_Lm.h: Regenerated.
41338         * lib/unictype/categ_Lo.h: Regenerated.
41339         * lib/unictype/categ_Lu.h: Regenerated.
41340         * lib/unictype/categ_M.h: Regenerated.
41341         * lib/unictype/categ_Mc.h: Regenerated.
41342         * lib/unictype/categ_Me.h: Regenerated.
41343         * lib/unictype/categ_Mn.h: Regenerated.
41344         * lib/unictype/categ_N.h: Regenerated.
41345         * lib/unictype/categ_Nd.h: Regenerated.
41346         * lib/unictype/categ_Nl.h: Regenerated.
41347         * lib/unictype/categ_No.h: Regenerated.
41348         * lib/unictype/categ_P.h: Regenerated.
41349         * lib/unictype/categ_Pd.h: Regenerated.
41350         * lib/unictype/categ_Pe.h: Regenerated.
41351         * lib/unictype/categ_Pf.h: Regenerated.
41352         * lib/unictype/categ_Pi.h: Regenerated.
41353         * lib/unictype/categ_Po.h: Regenerated.
41354         * lib/unictype/categ_Ps.h: Regenerated.
41355         * lib/unictype/categ_S.h: Regenerated.
41356         * lib/unictype/categ_Sk.h: Regenerated.
41357         * lib/unictype/categ_Sm.h: Regenerated.
41358         * lib/unictype/categ_So.h: Regenerated.
41359         * lib/unictype/categ_of.h: Regenerated.
41360         * lib/unictype/combining.h: Regenerated.
41361         * lib/unictype/ctype_alnum.h: Regenerated.
41362         * lib/unictype/ctype_alpha.h: Regenerated.
41363         * lib/unictype/ctype_graph.h: Regenerated.
41364         * lib/unictype/ctype_lower.h: Regenerated.
41365         * lib/unictype/ctype_print.h: Regenerated.
41366         * lib/unictype/ctype_punct.h: Regenerated.
41367         * lib/unictype/ctype_upper.h: Regenerated.
41368         * lib/unictype/decdigit.h: Regenerated.
41369         * lib/unictype/digit.h: Regenerated.
41370         * lib/unictype/mirror.h: Regenerated.
41371         * lib/unictype/numeric.h: Regenerated.
41372         * lib/unictype/pr_alphabetic.h: Regenerated.
41373         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41374         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41375         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41376         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41377         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41378         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41379         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41380         * lib/unictype/pr_combining.h: Regenerated.
41381         * lib/unictype/pr_dash.h: Regenerated.
41382         * lib/unictype/pr_decimal_digit.h: Regenerated.
41383         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41384         * lib/unictype/pr_deprecated.h: Regenerated.
41385         * lib/unictype/pr_diacritic.h: Regenerated.
41386         * lib/unictype/pr_extender.h: Regenerated.
41387         * lib/unictype/pr_format_control.h: Regenerated.
41388         * lib/unictype/pr_grapheme_base.h: Regenerated.
41389         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41390         * lib/unictype/pr_grapheme_link.h: Regenerated.
41391         * lib/unictype/pr_id_continue.h: Regenerated.
41392         * lib/unictype/pr_id_start.h: Regenerated.
41393         * lib/unictype/pr_ideographic.h: Regenerated.
41394         * lib/unictype/pr_ignorable_control.h: Regenerated.
41395         * lib/unictype/pr_lowercase.h: Regenerated.
41396         * lib/unictype/pr_math.h: Regenerated.
41397         * lib/unictype/pr_numeric.h: Regenerated.
41398         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41399         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41400         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41401         * lib/unictype/pr_other_id_continue.h: Regenerated.
41402         * lib/unictype/pr_other_lowercase.h: Regenerated.
41403         * lib/unictype/pr_other_math.h: Regenerated.
41404         * lib/unictype/pr_punctuation.h: Regenerated.
41405         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41406         * lib/unictype/pr_soft_dotted.h: Regenerated.
41407         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41408         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41409         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41410         * lib/unictype/pr_uppercase.h: Regenerated.
41411         * lib/unictype/pr_xid_continue.h: Regenerated.
41412         * lib/unictype/pr_xid_start.h: Regenerated.
41413         * lib/unictype/pr_zero_width.h: Regenerated.
41414         * lib/unictype/scripts.h: Regenerated.
41415         * lib/unictype/scripts_byname.gperf: Regenerated.
41416         * lib/unictype/sy_java_ident.h: Regenerated.
41417         * lib/unilbrk/lbrkprop1.h: Regenerated.
41418         * lib/unilbrk/lbrkprop2.h: Regenerated.
41419         * tests/unictype/test-categ_C.c: Regenerated.
41420         * tests/unictype/test-categ_Cf.c: Regenerated.
41421         * tests/unictype/test-categ_Cn.c: Regenerated.
41422         * tests/unictype/test-categ_L.c: Regenerated.
41423         * tests/unictype/test-categ_Ll.c: Regenerated.
41424         * tests/unictype/test-categ_Lm.c: Regenerated.
41425         * tests/unictype/test-categ_Lo.c: Regenerated.
41426         * tests/unictype/test-categ_Lu.c: Regenerated.
41427         * tests/unictype/test-categ_M.c: Regenerated.
41428         * tests/unictype/test-categ_Mc.c: Regenerated.
41429         * tests/unictype/test-categ_Me.c: Regenerated.
41430         * tests/unictype/test-categ_Mn.c: Regenerated.
41431         * tests/unictype/test-categ_N.c: Regenerated.
41432         * tests/unictype/test-categ_Nd.c: Regenerated.
41433         * tests/unictype/test-categ_Nl.c: Regenerated.
41434         * tests/unictype/test-categ_No.c: Regenerated.
41435         * tests/unictype/test-categ_P.c: Regenerated.
41436         * tests/unictype/test-categ_Pd.c: Regenerated.
41437         * tests/unictype/test-categ_Pe.c: Regenerated.
41438         * tests/unictype/test-categ_Pf.c: Regenerated.
41439         * tests/unictype/test-categ_Pi.c: Regenerated.
41440         * tests/unictype/test-categ_Po.c: Regenerated.
41441         * tests/unictype/test-categ_Ps.c: Regenerated.
41442         * tests/unictype/test-categ_S.c: Regenerated.
41443         * tests/unictype/test-categ_Sk.c: Regenerated.
41444         * tests/unictype/test-categ_Sm.c: Regenerated.
41445         * tests/unictype/test-categ_So.c: Regenerated.
41446         * tests/unictype/test-ctype_alnum.c: Regenerated.
41447         * tests/unictype/test-ctype_alpha.c: Regenerated.
41448         * tests/unictype/test-ctype_graph.c: Regenerated.
41449         * tests/unictype/test-ctype_lower.c: Regenerated.
41450         * tests/unictype/test-ctype_print.c: Regenerated.
41451         * tests/unictype/test-ctype_punct.c: Regenerated.
41452         * tests/unictype/test-ctype_upper.c: Regenerated.
41453         * tests/unictype/test-decdigit.h: Regenerated.
41454         * tests/unictype/test-digit.h: Regenerated.
41455         * tests/unictype/test-numeric.h: Regenerated.
41456         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41457         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41458         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41459         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41460         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41461         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41462         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41463         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41464         * tests/unictype/test-pr_combining.c: Regenerated.
41465         * tests/unictype/test-pr_dash.c: Regenerated.
41466         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41467         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41468         * tests/unictype/test-pr_deprecated.c: Regenerated.
41469         * tests/unictype/test-pr_diacritic.c: Regenerated.
41470         * tests/unictype/test-pr_extender.c: Regenerated.
41471         * tests/unictype/test-pr_format_control.c: Regenerated.
41472         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41473         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41474         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41475         * tests/unictype/test-pr_id_continue.c: Regenerated.
41476         * tests/unictype/test-pr_id_start.c: Regenerated.
41477         * tests/unictype/test-pr_ideographic.c: Regenerated.
41478         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41479         * tests/unictype/test-pr_lowercase.c: Regenerated.
41480         * tests/unictype/test-pr_math.c: Regenerated.
41481         * tests/unictype/test-pr_numeric.c: Regenerated.
41482         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41483         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41484         Regenerated.
41485         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41486         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41487         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41488         * tests/unictype/test-pr_other_math.c: Regenerated.
41489         * tests/unictype/test-pr_punctuation.c: Regenerated.
41490         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41491         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41492         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41493         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41494         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41495         * tests/unictype/test-pr_uppercase.c: Regenerated.
41496         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41497         * tests/unictype/test-pr_xid_start.c: Regenerated.
41498         * tests/unictype/test-pr_zero_width.c: Regenerated.
41499
41500         Update to Unicode 5.1.0.
41501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41502         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41503         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41504         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41505         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41506         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41507         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41508         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41509         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41510         (nonspacing_table_ind): Update.
41511         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41512
41513         Update to Unicode 5.1.0.
41514         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41515         code transform.
41516         * lib/uniname/uniname.c (unicode_character_name,
41517         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41518         * lib/uniname/uninames.h: Regenerated.
41519         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41520
41521 2009-02-07  Bruno Haible  <bruno@clisp.org>
41522
41523         Merge gen-ctype and gen-lbrk into a single program.
41524         * lib/gen-uni-tables.c: New file, incorporating
41525         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41526         Add directory prefixes to the names of the generated files.
41527         * lib/unictype/gen-ctype.c: Remove file.
41528         * lib/unilbrk/gen-lbrk.c: Remove file.
41529         * modules/gen-uni-tables: New file.
41530         * modules/unictype/gen-ctype: Remove file.
41531         * modules/unilbrk/gen-lbrk: Remove file.
41532
41533 2009-02-07  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41536
41537         New module 'unistr/u32-strcoll'.
41538         * modules/unistr/u32-strcoll: New file.
41539         * lib/unistr/u32-strcoll.c: New file.
41540
41541         New module 'unistr/u16-strcoll'.
41542         * modules/unistr/u16-strcoll: New file.
41543         * lib/unistr/u16-strcoll.c: New file.
41544
41545         New module 'unistr/u8-strcoll'.
41546         * modules/unistr/u8-strcoll: New file.
41547         * lib/unistr/u8-strcoll.c: New file.
41548         * lib/unistr/u-strcoll.h: New file.
41549
41550 2009-02-07  Bruno Haible  <bruno@clisp.org>
41551
41552         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41553         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41554         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41555         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41556         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41557         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41558
41559 2009-02-07  Bruno Haible  <bruno@clisp.org>
41560
41561         Make 64-bit clean.
41562         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41563         output_combclass, output_bidi_category, output_decimal_digit,
41564         output_digit, output_numeric, output_mirror, output_scripts,
41565         output_ident_category): Use proper width specifier in format strings.
41566
41567 2009-02-07  Bruno Haible  <bruno@clisp.org>
41568
41569         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41570         failure behaviour.
41571
41572 2009-02-07  Jim Meyering  <meyering@redhat.com>
41573
41574         regex: avoid compilation failure with upcoming gcc-4.4
41575         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41576         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41577         "... error: integer overflow in preprocessor expression".
41578
41579 2009-02-05  Ben Pfaff  <blp@gnu.org>
41580
41581         Fix link errors on Windows when close module is used.
41582         * modules/close: Add $(LIB_CLOSE) to Link section.
41583         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41584         $(LIB_CLOSE) on Windows.
41585
41586 2009-02-05  Jim Meyering  <meyering@redhat.com>
41587
41588         still avoid unused-parameter warnings, but do it cleanly
41589         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41590         (get_fs_usage): Cast to void instead.
41591         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41592         (dev_from_mount_options, read_file_system_list): Cast to void.
41593         Prompted by Bruno Haible.
41594
41595 2009-02-04  Jim Meyering  <meyering@redhat.com>
41596
41597         fsusage.c: correct copyright year
41598         * lib/fsusage.c: Reflect year in which the change is pushed into
41599
41600         avoid misc. warnings
41601         * lib/fsusage.c (UNUSED_PARAM): Define.
41602         (get_fs_usage): Mark parameter "disk" as unused.
41603         * lib/getugroups.c (getgrent): Use "void" in prototype.
41604         * lib/mountlist.c: Mark unused parameters.
41605         (read_file_system_list): Declare a local with "const".
41606         * lib/nanosleep.c (getnow): Declare static.
41607         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41608
41609         dirfd: set errno upon failure
41610         * lib/dirfd.c: Include <errno.h>.
41611         Set errno to ENOTSUP when returning -1.
41612         * modules/dirfd (Depends-on): Add errno.
41613         Suggested by John Kodis <kodis@comcast.net>.
41614
41615 2009-02-01  Bruno Haible  <bruno@clisp.org>
41616
41617         Don't assume sizeof (long) >= sizeof (void *).
41618         * lib/memcmp.c: Include stdint.h.
41619         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41620         srcp2 to 'const byte *'.
41621         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41622         types to uintptr_t.
41623         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41624         * modules/memcmp (Depends-on): Add stdint.
41625         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41626
41627 2009-01-30  Eric Blake  <ebb9@byu.net>
41628
41629         fix more require-before-expand issues
41630         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41631         expand, AC_PROG_AWK.
41632         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41633
41634 2009-01-28  Eric Blake  <ebb9@byu.net>
41635
41636         version-etc: use consistent URL formatting
41637         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41638         Improve formatting.  Use fputs for string without %.
41639
41640 2009-01-28  Jim Meyering  <meyering@redhat.com>
41641
41642         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41643         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41644         "underquoted definition of NAME" from autoconf-2.59.
41645
41646 2009-01-28  Bruno Haible  <bruno@clisp.org>
41647
41648         * doc/gnulib.texi: Add "Obsolete modules" to index.
41649
41650 2009-01-28  Jim Meyering  <meyering@redhat.com>
41651
41652         useless-if-before-free: recognize more variants
41653         * build-aux/useless-if-before-free: Also recognize e.g.,
41654         if (NULL != p) free (p);
41655
41656 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41657
41658         test-getaddrinfo: skip (don't fail) this test when there's no network
41659         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41660         on the presumption that it means you lack network access.
41661
41662 2009-01-26  Jim Meyering  <meyering@redhat.com>
41663
41664         fflush: avoid warnings on modern systems
41665         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41666         pos and result, into scopes where they're used.
41667
41668 2009-01-26  Eric Blake  <ebb9@byu.net>
41669
41670         Silence warning reintroduced by recent extensions patch.
41671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41672         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41673         autoconf.
41674
41675         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41676         * m4/00gnulib.m4: New file.
41677         * gnulib-tool (func_get_filelist): Always use it.
41678         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41679         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41680
41681 2009-01-25  Bruno Haible  <bruno@clisp.org>
41682
41683         Make test-quotearg work on MacOS X and AIX.
41684         * tests/test-quotearg.sh: New file.
41685         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41686         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41687         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41688         include <libintl.h>.
41689         (fake_locale): Remove variable.
41690         (gettext, dgettext, dcgettext): Remove functions.
41691         (main): Instead of setting a fake locale, set a real locale. Call
41692         textdomain and bindtextdomain.
41693         * modules/quotearg-tests (Files): Add the new files.
41694         (Depends-on): Add gettext, setenv, unsetenv.
41695         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41696         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41697         Augment TESTS_ENVIRONMENT.
41698
41699 2009-01-25  Bruno Haible  <bruno@clisp.org>
41700
41701         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41702         fr_FR.ISO8859-1 locale on MacOS X.
41703         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41704         ja_JP.eucJP locale on MacOS X.
41705         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41706         zh_CN.GB18030 locale on MacOS X.
41707
41708 2009-01-25  Bruno Haible  <bruno@clisp.org>
41709
41710         Avoid link errors on MacOS X 10.3.
41711         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41712         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41713
41714 2009-01-25  Bruno Haible  <bruno@clisp.org>
41715
41716         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41717         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41718         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41719         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41720         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41721         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41722         posix_spawnattr_init, posix_spawnattr_setsigmask,
41723         posix_spawnattr_setflags, posix_spawnattr_destroy.
41724
41725         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41726         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41727         * modules/execute (Files): Remove m4/posix_spawn.m4.
41728         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41729         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41730         posix_spawnattr_init, posix_spawnattr_setsigmask,
41731         posix_spawnattr_setflags, posix_spawnattr_destroy.
41732
41733 2009-01-25  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/glthread/threadlib.c: Include <stdlib.h>.
41736
41737 2009-01-25  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/glthread/threadlib.c (dummy): New declaration.
41740
41741 2009-01-25  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41744         multibyte characters also for the GB18030 encoding. Don't crash when
41745         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41746
41747 2009-01-25  Bruno Haible  <bruno@clisp.org>
41748
41749         Avoid redefining 'struct random_data' on OSF/1 5.1.
41750         * lib/stdlib.in.h: Include <random.h> if it exists.
41751         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41752         HAVE_RANDOM_H. Include <random.h> when testing whether
41753         'struct random_data' exists.
41754         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41755
41756 2009-01-25  Bruno Haible  <bruno@clisp.org>
41757
41758         Don't install charset.alias on MacOS X >= 10.3.
41759         * lib/localcharset.c (DARWIN7): New macro.
41760         (get_charset_aliases): Hardcode the result for Darwin7.
41761         * modules/localcharset (install-exec-local): Don't install
41762         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41763
41764 2009-01-25  Bruno Haible  <bruno@clisp.org>
41765
41766         Don't install charset.alias on mingw and Cygwin.
41767         * modules/localcharset (install-exec-local): Don't install
41768         charset.alias on mingw and Cygwin, if the file does not yet exist.
41769         The result for these platforms is hardcoded in localcharset.c.
41770
41771 2009-01-25  Bruno Haible  <bruno@clisp.org>
41772
41773         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41775         before requiring AC_USE_SYSTEM_EXTENSIONS.
41776
41777 2009-01-25  Jim Meyering  <meyering@redhat.com>
41778
41779         c-strtod: avoid warnings
41780         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41781         "assignment discards qualifiers from pointer target type" warnings.
41782
41783 2009-01-24  Bruno Haible  <bruno@clisp.org>
41784
41785         Add support for non-UTF-8 locales on MacOS X.
41786         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41787         canonical encodings. For Darwin 7 and newer, don't map traditional
41788         encodings to UTF-8.
41789         Reported by Vincent Lefevre <vincent@vinc17.org>
41790         at <http://savannah.gnu.org/bugs/?25235>.
41791
41792 2009-01-24  Bruno Haible  <bruno@clisp.org>
41793
41794         * doc/gnulib.texi (Obsolete modules): New section.
41795         Reported by Mike Frysinger <vapier@gentoo.org>.
41796
41797 2009-01-24  Bruno Haible  <bruno@clisp.org>
41798
41799         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41800         (%.dvi): New rule.
41801
41802 2009-01-24  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41805         Reported by Eric Blake.
41806
41807 2009-01-24  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41810         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41811         Reported by Gary V. Vaughan <gary@gnu.org>.
41812
41813 2009-01-24  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41816
41817 2009-01-23  Bruno Haible  <bruno@clisp.org>
41818
41819         Make c-strtod, c-strtold usable in libraries.
41820         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41821         (C_STRTOD): Call strdup instead of xstrdup.
41822         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41823         * modules/c-strtold (Depends-on): Likewise.
41824         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41825         * NEWS: Mention the change.
41826         Reported by Michael Gold <mgold@ncf.ca>.
41827
41828 2009-01-23  Jim Meyering  <meyering@redhat.com>
41829
41830         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41831         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41832         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41833
41834 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41835
41836         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41837         GNU CoreUtils.
41838         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41839         * modules/version-etc (Description): Update.
41840
41841 2009-01-22  Bruno Haible  <bruno@clisp.org>
41842
41843         Cache the C locale object.
41844         * lib/c-strtod.c (c_locale_cache): New variable.
41845         (c_locale): New function.
41846         (C_STRTOD): Use it, and don't call freelocale.
41847         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41848         Suggested by Paolo Bonzini.
41849
41850 2009-01-21  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41853         conditions other than overflow.
41854
41855 2009-01-21  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/c-strtod.c: Include errno.h.
41858         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41859         value from STRTOD_L and STRTOD.
41860
41861 2009-01-21  Bruno Haible  <bruno@clisp.org>
41862         and Jim Meyering  <meyering@redhat.com>
41863
41864         nanosleep: skip configure test (fail it) for apple universal builds
41865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41866         universal builds, assume that nanosleep does not work.
41867         * modules/nanosleep (Depends-on): Add multiarch.
41868
41869         mktime: skip configure test (fail it) for apple universal builds
41870         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41871         universal builds, assume that mktime does not work.
41872         * modules/mktime (Depends-on): Add multiarch.
41873
41874 2009-01-21  Eric Blake  <ebb9@byu.net>
41875
41876         multiarch: avoid expand-before-require warning
41877         * modules/multiarch (configure.ac): Require, rather than expand,
41878         gl_MULTIARCH.
41879         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41880         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41881         enforce that all clients require it.  Partial reversion of
41882         2008-12-29 patch.
41883
41884         error: avoid expand-before-require warning
41885         * modules/errno (configure.ac): Require, rather than expand,
41886         gl_HEADER_ERRNO_H.
41887         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41888         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41889         enforce that all clients require it.
41890
41891         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41892         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41893         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41894         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41895
41896 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41897
41898         Revert:
41899         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41900
41901         regex: do not depend on obsolete modules.
41902         * modules/regex: Remove memcmp and memmove.
41903
41904 2009-01-20  Bruno Haible  <bruno@clisp.org>
41905
41906         Make the 'link' module link on Windows NT 4.
41907         * lib/link.c (_WIN32_WINNT): Don't define.
41908         (CreateHardLinkFuncType): New type.
41909         (CreateHardLinkFunc, initialized): New variables.
41910         (initialize): New function.
41911         (link): Invoke CreateHardLink indirectly through the function pointer.
41912
41913 2009-01-20  Bruno Haible  <bruno@clisp.org>
41914
41915         Fix compilation failure on mingw.
41916         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41917
41918 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41919
41920         * doc/c-strtod.texi: Mention a couple of restrictions.
41921
41922 2009-01-20  Jim Meyering  <meyering@redhat.com>
41923
41924         gettimeofday: move more declarations out of functions
41925         * lib/gettimeofday.c: Move extern declarations of tzset and
41926         gmtime out of containing functions.  Prompted by Bruno Haible.
41927
41928 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41929
41930         regex: do not depend on obsolete modules.
41931         * modules/regex: Remove memcmp and memmove.
41932
41933 2009-01-19  Bruno Haible  <bruno@clisp.org>
41934
41935         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41936         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41937         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41938         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41939         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41940
41941 2009-01-19  Bruno Haible  <bruno@clisp.org>
41942
41943         * tests/test-link.c: Include <errno.h>.
41944         (main): Exit with code 77 when a hard link cannot be created due to
41945         the file system.
41946         * tests/test-link.sh: Skip test when a hard link cannot be created due
41947         to the file system.
41948         Suggested by Eric Blake.
41949
41950 2009-01-19  Martin Lambers  <marlam@marlam.de>
41951
41952         * modules/link-tests: New file.
41953         * tests/test-link.sh: New file.
41954         * tests/test-link.c: New file.
41955
41956 2009-01-19  Eric Blake  <ebb9@byu.net>
41957
41958         doc: mention another function added in cygwin 1.7.0
41959         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41960         Another new function in cygwin 1.7.
41961
41962 2009-01-19  Bruno Haible  <bruno@clisp.org>
41963
41964         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41965         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41966         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41967         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41968         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41969         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41970         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41971         * m4/md4.m4 (gl_MD4): Likewise.
41972         * m4/md5.m4 (gl_MD5): Likewise.
41973         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41974         * m4/sha1.m4 (gl_SHA1): Likewise.
41975         * m4/sha256.m4 (gl_SHA256): Likewise.
41976         * m4/sha512.m4 (gl_SHA512): Likewise.
41977
41978 2009-01-19  Bruno Haible  <bruno@clisp.org>
41979
41980         * modules/uniname/uniname-tests (Depends-on): Add progname.
41981         * tests/uniname/test-uninames.c: Include progname.h.
41982         (main): Call set_program_name.
41983
41984         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41985         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41986         (main): Call set_program_name.
41987
41988         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41989         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41990         (main): Call set_program_name.
41991
41992         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41993         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41994         (main): Call set_program_name.
41995
41996         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41997         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41998         (main): Call set_program_name.
41999
42000         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42001         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42002         (main): Call set_program_name.
42003
42004         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42005         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42006         (main): Call set_program_name.
42007
42008         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42009         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42010         (main): Call set_program_name.
42011
42012         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42013         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42014         (main): Call set_program_name.
42015
42016 2009-01-19  Eric Blake  <ebb9@byu.net>
42017
42018         test-unistd: test previous patch
42019         * tests/test-unistd.c: Test *_FILENO macros.
42020
42021         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42022         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42023         Guarantee a definition.
42024         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42025         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42026         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42027         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42028         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42029         Likewise.
42030         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42031         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42032         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42033         Likewise.
42034         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42035         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42036         (STDERR_FILENO): Likewise.
42037         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42038         (STDERR_FILENO): Likewise.
42039         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42040         (STDERR_FILENO): Likewise.
42041         Reported by Elbert Pol.
42042
42043 2009-01-19  Eric Blake  <ebb9@byu.net>
42044
42045         doc: mention more functions added in cygwin 1.7.0
42046         * doc/posix-functions/abort.texi (abort): Update wording related
42047         to cygwin.
42048         * doc/posix-functions/daylight.texi (daylight): Likewise.
42049         * doc/posix-functions/optarg.texi (optarg): Likewise.
42050         * doc/posix-functions/optarg.texi (opterr): Likewise.
42051         * doc/posix-functions/optarg.texi (optind): Likewise.
42052         * doc/posix-functions/optarg.texi (optopt): Likewise.
42053         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42054         worked in 1.5.x, and was withdrawn in 1.7.
42055         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42056         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42057         cygwin versions.
42058         * doc/posix-functions/perror.texi (perror): Likewise.
42059         * doc/posix-functions/printf.texi (printf): Likewise.
42060         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42061         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42062         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42063         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42064         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42065         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42066         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42067         Likewise.
42068         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42069         Likewise.
42070         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42071         this function.
42072         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42073         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42074         Likewise.
42075         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42076         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42077         * doc/posix-functions/confstr.texi (confstr): Likewise.
42078         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42079         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42080         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42081         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42082         * doc/posix-functions/fputws.texi (fputws): Likewise.
42083         * doc/posix-functions/fwide.texi (fwide): Likewise.
42084         * doc/posix-functions/getwc.texi (getwc): Likewise.
42085         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42086         * doc/posix-functions/putwc.texi (putwc): Likewise.
42087         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42088         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42089         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42090         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42091         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42092         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42093         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42094         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42095         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42096         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42097         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42098
42099 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42100
42101         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42102         * lib/ioctl.c: Include <sys/ioctl.h>.
42103
42104 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42105
42106         * modules/getdate-tests (Depends-on): Add progname.
42107         * tests/test-getdate.c: Use progname module, to avoid link errors
42108         on non-glibc systems.
42109
42110 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42111
42112         * modules/filenamecat-tests (Depends-on): Add progname.
42113         * modules/fstrcmp-tests (Depends-on): Likewise.
42114
42115         * tests/test-filenamecat.c: Use progname module, to avoid link
42116         errors on non-glibc systems.
42117         * tests/test-fstrcmp.c: Likewise.
42118
42119 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42120
42121         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42122         * lib/gettimeofday.c: Move extern declaration out of function.
42123
42124 2009-01-18  Bruno Haible  <bruno@clisp.org>
42125
42126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42127         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42128         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42129
42130 2009-01-18  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/strftime.c (MEMPCPY): Remove unused macro.
42133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42134
42135 2009-01-18  Martin Lambers  <marlam@marlam.de>
42136
42137         New module 'link'.
42138         * lib/unistd.in.h (link): New declaration.
42139         * lib/link.c: New file.
42140         * m4/link.m4: New file.
42141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42142         HAVE_LINK.
42143         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42144         * modules/link: New file.
42145         * doc/posix-functions/link.texi: Mention the new module.
42146
42147 2009-01-18  Bruno Haible  <bruno@clisp.org>
42148
42149         * tests/test-avltree_list.c (main): Call set_program_name.
42150         * tests/test-avltree_oset.c (main): Likewise.
42151         * tests/test-obstack-printf.c: Include progname.h.
42152         (main): Call set_program_name.
42153         * tests/test-quotearg.c: Include progname.h.
42154         (main): Call set_program_name.
42155         * tests/test-xmemdup0.c: Include progname.h.
42156         (main): Call set_program_name.
42157
42158 2009-01-18  Bruno Haible  <bruno@clisp.org>
42159
42160         New module 'alphasort'.
42161         * lib/dirent.in.h (alphasort): New declaration.
42162         * lib/alphasort.c: New file, from glibc with modifications.
42163         * m4/alphasort.m4: New file.
42164         * modules/alphasort: New file.
42165         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42166         HAVE_ALPHASORT.
42167         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42168         HAVE_ALPHASORT.
42169         * doc/posix-functions/alphasort.texi: Mention the new module and the
42170         portability problems.
42171
42172 2009-01-18  Bruno Haible  <bruno@clisp.org>
42173
42174         New module 'scandir'.
42175         * lib/dirent.in.h (scandir): New declaration.
42176         * lib/scandir.c: New file, from glibc with modifications.
42177         * m4/scandir.m4: New file.
42178         * modules/scandir: New file.
42179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42180         HAVE_SCANDIR.
42181         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42182         HAVE_SCANDIR.
42183         * doc/posix-functions/scandir.texi: Mention the new module and the
42184         portability problems.
42185
42186 2009-01-17  Bruno Haible  <bruno@clisp.org>
42187
42188         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42189         Update documentation.
42190         (func_remove_suffix): Escape all dots in the suffix. Update
42191         documentation.
42192         (func_filter_filelist): Update documentation.
42193         Reported by Ralf Wildenhues.
42194
42195 2009-01-17  Bruno Haible  <bruno@clisp.org>
42196
42197         * modules/dprintf-posix-tests: New file.
42198         * tests/test-dprintf-posix.sh: New file.
42199         * tests/test-dprintf-posix.c: New file.
42200
42201         New modules 'dprintf', 'dprintf-posix'.
42202         * lib/stdio.in.h (dprintf): New declaration.
42203         * lib/dprintf.c: New file.
42204         * m4/dprintf.m4: New file.
42205         * m4/dprintf-posix.m4: New file.
42206         * modules/dprintf: New file.
42207         * modules/dprintf-posix: New file.
42208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42209         HAVE_DPRINTF, REPLACE_DPRINTF.
42210         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42211         HAVE_DPRINTF, REPLACE_DPRINTF.
42212         * doc/posix-functions/dprintf.texi: Mention the new modules.
42213
42214 2009-01-17  Bruno Haible  <bruno@clisp.org>
42215
42216         * modules/vdprintf-posix-tests: New file.
42217         * tests/test-vdprintf-posix.sh: New file.
42218         * tests/test-vdprintf-posix.c: New file.
42219
42220         New modules 'vdprintf', 'vdprintf-posix'.
42221         * lib/stdio.in.h (vdprintf): New declaration.
42222         * lib/vdprintf.c: New file.
42223         * m4/vdprintf.m4: New file.
42224         * m4/vdprintf-posix.m4: New file.
42225         * modules/vdprintf: New file.
42226         * modules/vdprintf-posix: New file.
42227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42228         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42229         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42230         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42231         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42232
42233 2009-01-17  Bruno Haible  <bruno@clisp.org>
42234
42235         Fix replacement of fopen on mingw.
42236         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42237         mingw.
42238
42239 2009-01-17  Bruno Haible  <bruno@clisp.org>
42240
42241         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42242         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42243
42244 2009-01-17  Bruno Haible  <bruno@clisp.org>
42245
42246         Avoid test-fflush2.sh failure on mingw.
42247         * tests/test-fflush2.c: Include binary-io.h.
42248         (main): Put standard input into binary mode.
42249         * modules/fflush-tests (Depends-on): Add binary-io.
42250
42251 2009-01-17  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/wchar.in.h: In another particular situation, include only the
42254         system's <wchar.h> file.
42255         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42256         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42257         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42258
42259 2009-01-17  Bruno Haible  <bruno@clisp.org>
42260
42261         Support for stripping executables in --enable-relocatable.
42262         * build-aux/install-reloc: Expect one more argument, or an environment
42263         variable RELOC_STRIP_PROG. If set, strip the destination program and
42264         its wrapper.
42265         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42266         RELOC_STRIP_PROG.
42267         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42268         to set RELOCATABLE_STRIP.
42269         * NEWS: Mention the new Makefile requirement.
42270
42271 2009-01-17  Bruno Haible  <bruno@clisp.org>
42272
42273         * build-aux/install-reloc: Remove debugging information left over by
42274         C compiler on MacOS X.
42275
42276 2009-01-17  Bruno Haible  <bruno@clisp.org>
42277
42278         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42279         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42280         _NSGetExecutablePath.
42281
42282 2009-01-16  Jim Meyering  <meyering@redhat.com>
42283
42284         strerror: avoid warnings about discarding "const"
42285         * lib/strerror.c (rpl_strerror): Instead of returning a const
42286         string from each and every "case", use a variable, and add a single
42287         cast after the switch.
42288
42289 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42290
42291         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42292
42293 2009-01-16  Bruno Haible  <bruno@clisp.org>
42294
42295         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42296         array initializer syntax that also works in C++ mode.
42297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42298
42299 2009-01-16  Jim Meyering  <meyering@redhat.com>
42300
42301         poll: suppress a warning
42302         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42303         to ignore "...unsigned expression < 0 is always false" warnings.
42304
42305 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42306
42307         poll: remove declarations of unused variables
42308         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42309         sockbuf and optlen.
42310
42311 2009-01-15  Bruno Haible  <bruno@clisp.org>
42312
42313         Make fflush-after-ungetc POSIX compliant on BSD systems.
42314         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42315         (clear_ungetc_buffer): Implement also for other systems.
42316         (rpl_fflush): On glibc systems, invoke
42317         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42318         clear_ungetc_buffer after fetching the stream's position, not before.
42319
42320 2009-01-15  Bruno Haible  <bruno@clisp.org>
42321
42322         Make fflush-after-ungetc POSIX compliant on glibc systems.
42323         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42324         after ungetc.
42325         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42326         (rpl_fflush): On glibc systems, simply call the system's fflush
42327         function after clearing the ungetc buffer.
42328         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42329         Instead, lseek only to the end of file, then use the system's fseeko
42330         for the rest. On glibc systems, reset the EOF indicator bit.
42331
42332 2009-01-15  Jim Meyering  <meyering@redhat.com>
42333
42334         openmp.m4: revert quote-adding change, for portability to older autoconf
42335         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42336         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42337         Simon Josefsson noticed the problem when using autoconf-2.61.
42338
42339 2009-01-15  Bruno Haible  <bruno@clisp.org>
42340
42341         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42342         * tests/test-fflush2.c (ASSERT): Always fail.
42343         (main): Add two tests for fflush() after ungetc(), taking into account
42344         the Austin Group's clarification.
42345         Suggested by Eric Blake.
42346
42347 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42348
42349         mktime.m4: remove K&R-style function prototypes
42350         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42351         for the Sun C++ compiler.
42352
42353 2009-01-14  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42356         while including <wchar.h>.
42357         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42358         the system's <wchar.h> file.
42359         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42360
42361 2009-01-14  Bruno Haible  <bruno@clisp.org>
42362
42363         * m4/csharp.m4: Don't mention gettext on the serial number line.
42364         * m4/csharpexec.m4: Likewise.
42365         * m4/eaccess.m4: Likewise.
42366         * m4/javaexec.m4: Likewise.
42367         * m4/sig_atomic_t.m4: Likewise.
42368         * m4/tmpdir.m4: Likewise.
42369         * m4/intldir.m4: Bump gettext version.
42370         * m4/lib-ld.m4: Likewise.
42371
42372 2009-01-14  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/progname.c (set_program_name): Add more comments.
42375         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42376
42377 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42378
42379         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42380         were sys/stat.h does not define it.
42381
42382 2009-01-14  Jim Meyering  <meyering@redhat.com>
42383
42384         many *.m4 files: improve m4 quoting
42385         99% of this change was performed by running the following commands:
42386         git ls-files | grep '\.m4$' | xargs perl -pi \
42387           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42388           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42389           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42390           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42391         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42392         The remainder were to add Copyright dates, increment serial numbers,
42393         undo some changes in comments, exclude m4/intl.m4, and add quotes
42394         around the "1" in ",1" where the unusual spacing prohibited the
42395         above regexps from doing the job.  For more details, see
42396         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42397         * m4/acl.m4: Modified.
42398         * m4/afs.m4: Likewise.
42399         * m4/alloca.m4: Likewise.
42400         * m4/argp.m4: Likewise.
42401         * m4/argz.m4: Likewise.
42402         * m4/atexit.m4: Likewise.
42403         * m4/bison-i18n.m4: Likewise.
42404         * m4/bison.m4: Likewise.
42405         * m4/byteswap.m4: Likewise.
42406         * m4/c-stack.m4: Likewise.
42407         * m4/c-strtod.m4: Likewise.
42408         * m4/calloc.m4: Likewise.
42409         * m4/canonicalize-lgpl.m4: Likewise.
42410         * m4/chown.m4: Likewise.
42411         * m4/clock_time.m4: Likewise.
42412         * m4/codeset.m4: Likewise.
42413         * m4/copy-file.m4: Likewise.
42414         * m4/csharp.m4: Likewise.
42415         * m4/csharpcomp.m4: Likewise.
42416         * m4/csharpexec.m4: Likewise.
42417         * m4/d-ino.m4: Likewise.
42418         * m4/d-type.m4: Likewise.
42419         * m4/dirfd.m4: Likewise.
42420         * m4/double-slash-root.m4: Likewise.
42421         * m4/eaccess.m4: Likewise.
42422         * m4/eealloc.m4: Likewise.
42423         * m4/environ.m4: Likewise.
42424         * m4/errno_h.m4: Likewise.
42425         * m4/euidaccess.m4: Likewise.
42426         * m4/execute.m4: Likewise.
42427         * m4/fatal-signal.m4: Likewise.
42428         * m4/fchdir.m4: Likewise.
42429         * m4/fcntl_h.m4: Likewise.
42430         * m4/fileblocks.m4: Likewise.
42431         * m4/filenamecat.m4: Likewise.
42432         * m4/findprog.m4: Likewise.
42433         * m4/flexmember.m4: Likewise.
42434         * m4/fnmatch.m4: Likewise.
42435         * m4/fopen.m4: Likewise.
42436         * m4/fpending.m4: Likewise.
42437         * m4/fprintf-posix.m4: Likewise.
42438         * m4/free.m4: Likewise.
42439         * m4/frexp.m4: Likewise.
42440         * m4/frexpl.m4: Likewise.
42441         * m4/fsusage.m4: Likewise.
42442         * m4/ftruncate.m4: Likewise.
42443         * m4/gc-camellia.m4: Likewise.
42444         * m4/gc-random.m4: Likewise.
42445         * m4/gc.m4: Likewise.
42446         * m4/getaddrinfo.m4: Likewise.
42447         * m4/getcwd-abort-bug.m4: Likewise.
42448         * m4/getcwd-path-max.m4: Likewise.
42449         * m4/getdate.m4: Likewise.
42450         * m4/getdomainname.m4: Likewise.
42451         * m4/getgroups.m4: Likewise.
42452         * m4/gethostname.m4: Likewise.
42453         * m4/gethrxtime.m4: Likewise.
42454         * m4/getline.m4: Likewise.
42455         * m4/getloadavg.m4: Likewise.
42456         * m4/getndelim2.m4: Likewise.
42457         * m4/getpass.m4: Likewise.
42458         * m4/gettext.m4: Likewise.
42459         * m4/gettime.m4: Likewise.
42460         * m4/gettimeofday.m4: Likewise.
42461         * m4/gnulib-common.m4: Likewise.
42462         * m4/group-member.m4: Likewise.
42463         * m4/host-os.m4: Likewise.
42464         * m4/iconv.m4: Likewise.
42465         * m4/iconv_open.m4: Likewise.
42466         * m4/inet_ntop.m4: Likewise.
42467         * m4/inet_pton.m4: Likewise.
42468         * m4/inline.m4: Likewise.
42469         * m4/intldir.m4: Likewise.
42470         * m4/intlmacosx.m4: Likewise.
42471         * m4/intmax.m4: Likewise.
42472         * m4/intmax_t.m4: Likewise.
42473         * m4/inttypes.m4: Likewise.
42474         * m4/inttypes_h.m4: Likewise.
42475         * m4/inttypes-pri.m4: Likewise.
42476         * m4/isapipe.m4: Likewise.
42477         * m4/isnand.m4: Likewise.
42478         * m4/isnanf.m4: Likewise.
42479         * m4/isnanl.m4: Likewise.
42480         * m4/javacomp.m4: Likewise.
42481         * m4/javaexec.m4: Likewise.
42482         * m4/jm-winsz1.m4: Likewise.
42483         * m4/jm-winsz2.m4: Likewise.
42484         * m4/lchown.m4: Likewise.
42485         * m4/lcmessage.m4: Likewise.
42486         * m4/ldexpl.m4: Likewise.
42487         * m4/lib-ld.m4: Likewise.
42488         * m4/lib-link.m4: Likewise.
42489         * m4/libsigsegv.m4: Likewise.
42490         * m4/link-follow.m4: Likewise.
42491         * m4/localcharset.m4: Likewise.
42492         * m4/locale-fr.m4: Likewise.
42493         * m4/locale-ja.m4: Likewise.
42494         * m4/locale-tr.m4: Likewise.
42495         * m4/locale-zh.m4: Likewise.
42496         * m4/lock.m4: Likewise.
42497         * m4/longlong.m4: Likewise.
42498         * m4/ls-mntd-fs.m4: Likewise.
42499         * m4/lstat.m4: Likewise.
42500         * m4/malloc.m4: Likewise.
42501         * m4/mathl.m4: Likewise.
42502         * m4/mbrtowc.m4: Likewise.
42503         * m4/mbstate_t.m4: Likewise.
42504         * m4/mbswidth.m4: Likewise.
42505         * m4/memchr.m4: Likewise.
42506         * m4/memcmp.m4: Likewise.
42507         * m4/memcpy.m4: Likewise.
42508         * m4/memmem.m4: Likewise.
42509         * m4/memmove.m4: Likewise.
42510         * m4/mempcpy.m4: Likewise.
42511         * m4/memrchr.m4: Likewise.
42512         * m4/memset.m4: Likewise.
42513         * m4/minmax.m4: Likewise.
42514         * m4/mkdir-slash.m4: Likewise.
42515         * m4/mkdtemp.m4: Likewise.
42516         * m4/mktime.m4: Likewise.
42517         * m4/mmap-anon.m4: Likewise.
42518         * m4/mountlist.m4: Likewise.
42519         * m4/nanosleep.m4: Likewise.
42520         * m4/nls.m4: Likewise.
42521         * m4/nocrash.m4: Likewise.
42522         * m4/open.m4: Likewise.
42523         * m4/openat.m4: Likewise.
42524         * m4/openmp.m4: Likewise.
42525         * m4/pathmax.m4: Likewise.
42526         * m4/perl.m4: Likewise.
42527         * m4/physmem.m4: Likewise.
42528         * m4/pipe.m4: Likewise.
42529         * m4/po.m4: Likewise.
42530         * m4/poll.m4: Likewise.
42531         * m4/posixtm.m4: Likewise.
42532         * m4/posixver.m4: Likewise.
42533         * m4/printf-frexp.m4: Likewise.
42534         * m4/printf-frexpl.m4: Likewise.
42535         * m4/printf-posix.m4: Likewise.
42536         * m4/printf-posix-rpl.m4: Likewise.
42537         * m4/printf.m4: Likewise.
42538         * m4/progtest.m4: Likewise.
42539         * m4/putenv.m4: Likewise.
42540         * m4/readline.m4: Likewise.
42541         * m4/readlink.m4: Likewise.
42542         * m4/readutmp.m4: Likewise.
42543         * m4/realloc.m4: Likewise.
42544         * m4/regex.m4: Likewise.
42545         * m4/relocatable.m4: Likewise.
42546         * m4/relocatable-lib.m4: Likewise.
42547         * m4/rename-dest-slash.m4: Likewise.
42548         * m4/rename.m4: Likewise.
42549         * m4/rmdir-errno.m4: Likewise.
42550         * m4/rmdir.m4: Likewise.
42551         * m4/roundf.m4: Likewise.
42552         * m4/roundl.m4: Likewise.
42553         * m4/rpmatch.m4: Likewise.
42554         * m4/save-cwd.m4: Likewise.
42555         * m4/selinux-selinux-h.m4: Likewise.
42556         * m4/setenv.m4: Likewise.
42557         * m4/settime.m4: Likewise.
42558         * m4/sig2str.m4: Likewise.
42559         * m4/sig_atomic_t.m4: Likewise.
42560         * m4/signalblocking.m4: Likewise.
42561         * m4/signbit.m4: Likewise.
42562         * m4/sigpipe.m4: Likewise.
42563         * m4/sockets.m4: Likewise.
42564         * m4/sockpfaf.m4: Likewise.
42565         * m4/st_dm_mode.m4: Likewise.
42566         * m4/stat-time.m4: Likewise.
42567         * m4/stdbool.m4: Likewise.
42568         * m4/stdint.m4: Likewise.
42569         * m4/stdint_h.m4: Likewise.
42570         * m4/stpcpy.m4: Likewise.
42571         * m4/stpncpy.m4: Likewise.
42572         * m4/strcase.m4: Likewise.
42573         * m4/strchrnul.m4: Likewise.
42574         * m4/strcspn.m4: Likewise.
42575         * m4/strdup.m4: Likewise.
42576         * m4/strftime.m4: Likewise.
42577         * m4/strndup.m4: Likewise.
42578         * m4/strnlen.m4: Likewise.
42579         * m4/strpbrk.m4: Likewise.
42580         * m4/strptime.m4: Likewise.
42581         * m4/strsep.m4: Likewise.
42582         * m4/strtod.m4: Likewise.
42583         * m4/strtoimax.m4: Likewise.
42584         * m4/strtok_r.m4: Likewise.
42585         * m4/strtol.m4: Likewise.
42586         * m4/strtoll.m4: Likewise.
42587         * m4/strtoul.m4: Likewise.
42588         * m4/strtoull.m4: Likewise.
42589         * m4/strtoumax.m4: Likewise.
42590         * m4/strverscmp.m4: Likewise.
42591         * m4/threadlib.m4: Likewise.
42592         * m4/timegm.m4: Likewise.
42593         * m4/tm_gmtoff.m4: Likewise.
42594         * m4/tmpdir.m4: Likewise.
42595         * m4/tmpfile.m4: Likewise.
42596         * m4/tzset.m4: Likewise.
42597         * m4/uintmax_t.m4: Likewise.
42598         * m4/unlinkdir.m4: Likewise.
42599         * m4/unlocked-io.m4: Likewise.
42600         * m4/uptime.m4: Likewise.
42601         * m4/userspec.m4: Likewise.
42602         * m4/utimbuf.m4: Likewise.
42603         * m4/utime.m4: Likewise.
42604         * m4/utimes-null.m4: Likewise.
42605         * m4/utimes.m4: Likewise.
42606         * m4/vararrays.m4: Likewise.
42607         * m4/vasnprintf.m4: Likewise.
42608         * m4/vfprintf-posix.m4: Likewise.
42609         * m4/vprintf-posix.m4: Likewise.
42610         * m4/wait-process.m4: Likewise.
42611         * m4/wchar_t.m4: Likewise.
42612         * m4/wint_t.m4: Likewise.
42613         * m4/write-any-file.m4: Likewise.
42614         * m4/yield.m4: Likewise.
42615
42616 2009-01-13  Bruno Haible  <bruno@clisp.org>
42617
42618         Avoid test-copy-file.sh failures when ACL support insufficient.
42619         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42620         TESTS_ENVIRONMENT.
42621         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42622         Reported by Jim Meyering.
42623
42624 2009-01-13  Bruno Haible  <bruno@clisp.org>
42625
42626         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42627         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42628         * modules/unistdio/u8-printf-parse (Files): Likewise.
42629         * modules/unistdio/u32-printf-parse (Files): Likewise.
42630         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42631
42632 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42633
42634         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42635         and m4/inttypes_h.m4 too.
42636
42637 2009-01-12  Eric Blake  <ebb9@byu.net>
42638
42639         tests: IRIX 6.2 cc can't compile -0.0 into .data
42640         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42641         rather than at compile-time.
42642         * tests/test-floorl.c (minus_zero): Likewise.
42643         * tests/test-frexpl.c (minus_zero): Likewise.
42644         * tests/test-isnan.c (minus_zerol): Likewise.
42645         * tests/test-isnanl.h (minus_zero): Likewise.
42646         * tests/test-ldexpl.c (minus_zero): Likewise.
42647         * tests/test-roundl.c (minus_zero): Likewise.
42648         * tests/test-signbit.c (minus_zerol): Likewise.
42649         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42650         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42651         * tests/test-truncl.c (minus_zero): Likewise.
42652         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42653         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42654         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42655
42656 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42657
42658         regex: fix glibc bug 9697
42659         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42660         handling.
42661
42662 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42663
42664         regex: fix glibc bug 697
42665         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42666         being NULL also if there are no backreferences.
42667
42668 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42669
42670         regex: merge glibc changes
42671         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42672         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42673         re_string_skip_chars, re_string_reconstruct): Likewise.
42674         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42675
42676 2009-01-07  Jim Meyering  <meyering@redhat.com>
42677
42678         poll: filter through cppi
42679         * lib/poll.c: Indent cpp directives to reflect nesting.
42680
42681 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42682
42683         poll: don't return uninitialized
42684         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42685
42686 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42687
42688         avoid compile failure on AIX 6.1
42689         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42690         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42691
42692 2009-01-04  Jim Meyering  <meyering@redhat.com>
42693
42694         remove duplicate inclusion of <stdio.h>
42695         * tests/test-fprintf-posix.c: Likewise.
42696         * tests/test-printf-posix.c: Likewise.
42697         * tests/test-snprintf-posix.c: Likewise.
42698         * tests/test-sprintf-posix.c: Likewise.
42699         * tests/test-vasprintf-posix.c: Likewise.
42700         * tests/test-vfprintf-posix.c: Likewise.
42701         * tests/test-vprintf-posix.c: Likewise.
42702         * tests/test-vsnprintf-posix.c: Likewise.
42703         * tests/test-vsprintf-posix.c: Likewise.
42704
42705 2009-01-03  Jim Meyering  <meyering@redhat.com>
42706
42707         gnulib-tool: fix sed-based filtering
42708         * gnulib-tool (func_filter_filelist): Remove extra backslash
42709         in sed_fff_filter definition.
42710
42711 2009-01-02  Jim Meyering  <meyering@redhat.com>
42712
42713         strftime: avoid compilation failure on Solaris 2.6
42714         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42715         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42716         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42717         be available.  Reported by Tom G. Christensen.  Details in
42718         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42719
42720 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42721             Bruno Haible  <bruno@clisp.org>
42722
42723         Speed up gnulib-tool by doing more string processing through shell
42724         built-ins.
42725         * gnulib-tool (fast_func_append): New variable.
42726         (func_remove_prefix, func_remove_suffix): New functions.
42727         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42728         (func_filter_filelist): New function.
42729         (func_get_dependencies): Use func_remove_suffix instead of sed.
42730         (func_get_automake_snippet): Use func_filter_filelist instead of a
42731         subshell and sed invocation.
42732
42733 2009-01-01  Bruno Haible  <bruno@clisp.org>
42734
42735         Fix a security bug.
42736         * gnulib-tool (func_import, import, update): Don't allow the characters
42737         '"', '$', '`', '\' in macro arguments that become part of commands that
42738         are evaluated.
42739
42740 2009-01-01  Bruno Haible  <bruno@clisp.org>
42741
42742         * gnulib-tool (func_reset_sigpipe): Add more comments.
42743
42744 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42745
42746         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42747         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42748         already know the answer.
42749
42750 2009-01-01  Jim Meyering  <meyering@redhat.com>
42751
42752         * lib/version-etc.c (version_etc_va): Update copyright year.
42753
42754 2008-12-30  Bruno Haible  <bruno@clisp.org>
42755
42756         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42757         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42758         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42759
42760 2008-12-29  Eric Blake  <ebb9@byu.net>
42761
42762         multiarch: avoid autoconf AC_REQUIRE bug
42763         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42764         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42765         2.63 and older.
42766         Reported by Bruno Haible, and analyzed in
42767         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42768
42769 2008-12-29  Bruno Haible  <bruno@clisp.org>
42770
42771         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42772         files in subdirectories correctly.
42773         Reported by Ralf Wildenhues.
42774
42775 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42776
42777         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42778         rather than 'join FILE -', for Solaris join.
42779
42780 2008-12-29  Bruno Haible  <bruno@clisp.org>
42781
42782         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42783         quoting.
42784         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42785         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42786         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42787         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42788         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42789         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42790         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42792         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42793         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42794         * m4/nls.m4 (AM_NLS): Likewise.
42795         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42796         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42797         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42798         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42799         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42801         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42802         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42803         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42805         * m4/xsize.m4 (gl_XSIZE): Likewise.
42806         Suggested by Jim Meyering.
42807
42808 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42809
42810         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42811         * lib/parse-duration.c: use a switch instead of cascading if's.
42812
42813 2008-12-29  Eric Blake  <ebb9@byu.net>
42814
42815         wchar.h: supply WEOF on Irix 5.3
42816         * lib/wchar.in.h (wint_t): Also supply WEOF.
42817         * lib/wctype.in.h (wint_t): Likewise.
42818         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42819         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42820         Reported by Tom G. Christensen.
42821
42822 2008-12-26  Bruno Haible  <bruno@clisp.org>
42823
42824         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42825         i486, i586, i686.
42826
42827 2008-12-26  Bruno Haible  <bruno@clisp.org>
42828
42829         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42830
42831 2008-12-26  Bruno Haible  <bruno@clisp.org>
42832
42833         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42834         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42835         not __STDC_CONSTANT_MACROS.
42836         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42837
42838 2008-12-25  Bruno Haible  <bruno@clisp.org>
42839
42840         Add support for universal builds to vasnprintf.
42841         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42842         universal builds, guess no.
42843         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42844         * modules/vasprintf-posix (Depends-on): Likewise.
42845         * modules/fprintf-posix (Depends-on): Likewise.
42846         * modules/vfprintf-posix (Depends-on): Likewise.
42847         * modules/snprintf-posix (Depends-on): Likewise.
42848         * modules/vsnprintf-posix (Depends-on): Likewise.
42849         * modules/sprintf-posix (Depends-on): Likewise.
42850         * modules/vsprintf-posix (Depends-on): Likewise.
42851         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42852         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42853         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42854         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42856         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42857         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42858
42859         Add support for universal builds to <inttypes.h>.
42860         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42861         _SCNu64_PREFIX): In Apple
42862         universal builds, define directly, using _LP64.
42863         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42864         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42865         * modules/inttypes (Depends-on): Add multiarch.
42866         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42867
42868         Add support for universal builds to <stdint.h>.
42869         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42870         universal builds, define directly, using _LP64.
42871         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42872         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42873         and size_t.
42874         * modules/stdint (Depends-on): Add multiarch.
42875         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42876
42877         New module 'multiarch'.
42878         * modules/multiarch: New file.
42879         * m4/multiarch.m4: New file.
42880
42881 2008-12-25  Bruno Haible  <bruno@clisp.org>
42882
42883         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42884
42885 2008-12-25  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/btowc (License): Relicense under LGPLv2+.
42888         * modules/mbsinit (License): Likewise.
42889         * modules/mbrtowc (License): Likewise.
42890         * modules/wcrtomb (License): Likewise.
42891         * modules/streq (License): Likewise.
42892         Reported by David Lutterkort <lutter@redhat.com>.
42893
42894 2008-12-23  Bruno Haible  <bruno@clisp.org>
42895
42896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42897
42898 2008-12-23  Bruno Haible  <bruno@clisp.org>
42899
42900         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42902         GETADDRINFO_LIB, not in LIBS.
42903         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42904         * modules/canon-host (Link): Likewise.
42905         * NEWS: Mention the change.
42906         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42907         GETADDRINFO_LIB.
42908
42909 2008-12-22  Bruno Haible  <bruno@clisp.org>
42910
42911         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42912         * doc/posix-functions/iswalpha_l.texi: Likewise.
42913         * doc/posix-functions/iswblank_l.texi: Likewise.
42914         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42915         * doc/posix-functions/iswctype_l.texi: Likewise.
42916         * doc/posix-functions/iswdigit_l.texi: Likewise.
42917         * doc/posix-functions/iswgraph_l.texi: Likewise.
42918         * doc/posix-functions/iswlower_l.texi: Likewise.
42919         * doc/posix-functions/iswprint_l.texi: Likewise.
42920         * doc/posix-functions/iswpunct_l.texi: Likewise.
42921         * doc/posix-functions/iswspace_l.texi: Likewise.
42922         * doc/posix-functions/iswupper_l.texi: Likewise.
42923         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42924         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42925         * doc/posix-functions/open_wmemstream.texi: Likewise.
42926         * doc/posix-functions/swscanf.texi: Likewise.
42927         * doc/posix-functions/towctrans_l.texi: Likewise.
42928         * doc/posix-functions/towlower.texi: Likewise.
42929         * doc/posix-functions/towlower_l.texi: Likewise.
42930         * doc/posix-functions/towupper.texi: Likewise.
42931         * doc/posix-functions/towupper_l.texi: Likewise.
42932         * doc/posix-functions/vfwprintf.texi: Likewise.
42933         * doc/posix-functions/vfwscanf.texi: Likewise.
42934         * doc/posix-functions/vswscanf.texi: Likewise.
42935         * doc/posix-functions/vwprintf.texi: Likewise.
42936         * doc/posix-functions/vwscanf.texi: Likewise.
42937         * doc/posix-functions/wcpcpy.texi: Likewise.
42938         * doc/posix-functions/wcpncpy.texi: Likewise.
42939         * doc/posix-functions/wcscasecmp.texi: Likewise.
42940         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42941         * doc/posix-functions/wcscoll_l.texi: Likewise.
42942         * doc/posix-functions/wcsdup.texi: Likewise.
42943         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42944         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42945         * doc/posix-functions/wcsnlen.texi: Likewise.
42946         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42947         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42948         * doc/posix-functions/wctrans_l.texi: Likewise.
42949         * doc/posix-functions/wctype_l.texi: Likewise.
42950         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42951         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42952         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42953         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42954         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42955         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42956         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42957         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42958         * doc/glibc-functions/wcschrnul.texi: Likewise.
42959         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42960         * doc/glibc-functions/wcstod_l.texi: Likewise.
42961         * doc/glibc-functions/wcstof_l.texi: Likewise.
42962         * doc/glibc-functions/wcstol_l.texi: Likewise.
42963         * doc/glibc-functions/wcstold_l.texi: Likewise.
42964         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42965         * doc/glibc-functions/wcstoq.texi: Likewise.
42966         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42967         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42968         * doc/glibc-functions/wcstouq.texi: Likewise.
42969         * doc/glibc-functions/wmempcpy.texi: Likewise.
42970
42971 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42972             Eric Blake  <ebb9@byu.net>
42973             Paolo Bonzini  <bonzini@gnu.org>
42974             Bruno Haible  <bruno@clisp.org>
42975
42976         Make c-stack work on Haiku.
42977         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42978         (c_stack_action): Use SA_ONSTACK flag.
42979
42980 2008-12-22  Bruno Haible  <bruno@clisp.org>
42981
42982         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42983
42984 2008-12-22  Bruno Haible  <bruno@clisp.org>
42985
42986         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42987         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42988         being overridden.
42989         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42990         New macros.
42991         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42993         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42994         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42995
42996 2008-12-22  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42999         from test code.
43000
43001 2008-12-22  Eric Blake  <ebb9@byu.net>
43002
43003         Avoid gcc warnings on cygwin.
43004         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43005         Avoid unused variable.
43006         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43007         Likewise.
43008
43009 2008-12-22  Bruno Haible  <bruno@clisp.org>
43010
43011         Remove HAVE_MBRTOWC conditionals.
43012         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43013         (mbscasecmp): Assume mbrtowc function.
43014         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43015         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43016         * lib/mbschr.c: Include mbuiter.h unconditionally.
43017         (mbschr): Assume mbrtowc function.
43018         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43019         (mbscspn): Assume mbrtowc function.
43020         * lib/mbslen.c: Include mbuiter.h unconditionally.
43021         (mbslen): Assume mbrtowc function.
43022         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43023         (mbsncasecmp): Assume mbrtowc function.
43024         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43025         (mbsnlen): Assume mbrtowc function.
43026         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43027         (mbspbrk): Assume mbrtowc function.
43028         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43029         (mbspcasecmp): Assume mbrtowc function.
43030         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43031         (mbsrchr): Assume mbrtowc function.
43032         * lib/mbssep.c: Include mbuiter.h unconditionally.
43033         (mbssep): Assume mbrtowc function.
43034         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43035         (mbsspn): Assume mbrtowc function.
43036         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43037         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43038         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43039         (mbstok_r): Assume mbrtowc function.
43040         * lib/propername.c: Include mbuiter.h unconditionally.
43041         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43042         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43043         (trim2): Assume mbrtowc function.
43044         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43045         (mbsnwidth): Assume mbrtowc function.
43046         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43047         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43048         fallback definitions.
43049         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43050
43051 2008-12-22  Bruno Haible  <bruno@clisp.org>
43052
43053         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43054
43055 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43056
43057         * modules/regex: Request emulations for the mb*/wc* functions we need.
43058         * m4/regex.m4: Don't look for those functions here.
43059         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43060
43061 2008-12-22  Bruno Haible  <bruno@clisp.org>
43062
43063         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43064
43065 2008-12-21  Bruno Haible  <bruno@clisp.org>
43066
43067         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43068         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43069         (Include): Remove conditionalization.
43070         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43071         (Include): Remove conditionalization.
43072         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43073         (Include): Remove conditionalization.
43074         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43075         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43076         * NEWS: Mention the change.
43077         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43078         via Sergey Poznyakoff <gray@gnu.org.ua>.
43079
43080 2008-12-21  Bruno Haible  <bruno@clisp.org>
43081
43082         * MODULES.html.sh (Extended multibyte and wide character utilities
43083         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43084         wcrtomb, wcsrtombs.
43085         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43086         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43087         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43088         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43089
43090 2008-12-21  Bruno Haible  <bruno@clisp.org>
43091
43092         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43093
43094 2008-12-21  Bruno Haible  <bruno@clisp.org>
43095
43096         * modules/wcsnrtombs-tests: New file.
43097         * tests/test-wcsnrtombs1.sh: New file.
43098         * tests/test-wcsnrtombs2.sh: New file.
43099         * tests/test-wcsnrtombs3.sh: New file.
43100         * tests/test-wcsnrtombs4.sh: New file.
43101         * tests/test-wcsnrtombs.c: New file.
43102
43103         New module 'wcsnrtombs'.
43104         * lib/wchar.in.h (wcsnrtombs): New declaration.
43105         * lib/wcsnrtombs.c: New file.
43106         * lib/wcsrtombs-state.c: New file.
43107         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43108         (internal_state): Remove variable.
43109         * m4/wcsnrtombs.m4: New file.
43110         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43111         compilation units.
43112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43113         HAVE_WCSNRTOMBS.
43114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43115         HAVE_WCSNRTOMBS.
43116         * modules/wcsnrtombs: New file.
43117         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43118         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43119
43120 2008-12-21  Bruno Haible  <bruno@clisp.org>
43121
43122         * modules/wcsrtombs-tests: New file.
43123         * tests/test-wcsrtombs1.sh: New file.
43124         * tests/test-wcsrtombs2.sh: New file.
43125         * tests/test-wcsrtombs3.sh: New file.
43126         * tests/test-wcsrtombs4.sh: New file.
43127         * tests/test-wcsrtombs.c: New file.
43128
43129         New module 'wcsrtombs'.
43130         * lib/wchar.in.h (wcsrtombs): New declaration.
43131         * lib/wcsrtombs.c: New file.
43132         * m4/wcsrtombs.m4: New file.
43133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43134         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43136         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43137         * modules/wcsrtombs: New file.
43138         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43139         bugs.
43140
43141 2008-12-21  Bruno Haible  <bruno@clisp.org>
43142
43143         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43144         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43145         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43146         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43147         if not correct.
43148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43149         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43150         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43151         m4/locale-zh.m4, m4/codeset.m4.
43152         * doc/posix-functions/wcrtomb.texi: Document the bug.
43153
43154 2008-12-21  Bruno Haible  <bruno@clisp.org>
43155
43156         Work around a btowc() bug on IRIX 6.5.
43157         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43158         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43159         REPLACE_WTOBC if not.
43160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43161         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43162         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43163
43164 2008-12-21  Bruno Haible  <bruno@clisp.org>
43165
43166         * modules/wcrtomb-tests: New file.
43167         * tests/test-wcrtomb.sh: New file.
43168         * tests/test-wcrtomb.c: New file.
43169
43170         New module 'wcrtomb'.
43171         * lib/wchar.in.h (wcrtomb): New declaration.
43172         * lib/wcrtomb.c: New file.
43173         * m4/wcrtomb.m4: New file.
43174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43175         HAVE_WCRTOMB.
43176         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43177         HAVE_WCRTOMB.
43178         * modules/wcrtomb: New file.
43179         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43180
43181 2008-12-21  Bruno Haible  <bruno@clisp.org>
43182
43183         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43184         * modules/mbsrtowcs (Files): Likewise.
43185         * modules/wctob (Files): Likewise.
43186         * modules/c-strcase-tests (Files): Likewise.
43187         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43188         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43189         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43190         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43191         * modules/vasnprintf-posix-tests (Files): Likewise.
43192
43193 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43194
43195         gitlog-to-changelog: pass all command-line arguments to git-log
43196         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43197         it is sometimes convenient to filter the commits in various ways.
43198         gitlog-to-changelog only allows --since to specify a start date,
43199         but git-log itself supports many other filtering mechanisms.
43200         At the moment, I want to filter by branch name.  Rather than
43201         adding a --branch option to gitlog-to-changelog, it seems more
43202         flexible to simply pass all options directly to git-log and let
43203         git do the work.  Notice that this effectively makes --since a
43204         redundant option for gitlog-to-changelog, but removing it would
43205         require current usage to change since calls would then require
43206         an additional '--'.
43207
43208 2008-12-21  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/mbsnrtowcs-tests: New file.
43211         * tests/test-mbsnrtowcs1.sh: New file.
43212         * tests/test-mbsnrtowcs2.sh: New file.
43213         * tests/test-mbsnrtowcs3.sh: New file.
43214         * tests/test-mbsnrtowcs4.sh: New file.
43215         * tests/test-mbsnrtowcs.c: New file.
43216
43217         New module 'mbsnrtowcs'.
43218         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43219         * lib/mbsnrtowcs.c: New file.
43220         * lib/mbsrtowcs-state.c: New file.
43221         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43222         (internal_state): Remove variable.
43223         * m4/mbsnrtowcs.m4: New file.
43224         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43225         compilation units.
43226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43227         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43228         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43229         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43230         * modules/mbsnrtowcs: New file.
43231         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43232         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43233         portability problem.
43234
43235 2008-12-21  Bruno Haible  <bruno@clisp.org>
43236
43237         Work around mbsrtowcs bug.
43238         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43239         (gl_FUNC_MBSRTOWCS): Invoke it.
43240         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43241         m4/locale-zh.m4.
43242         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43243
43244 2008-12-21  Bruno Haible  <bruno@clisp.org>
43245
43246         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43247
43248 2008-12-21  Bruno Haible  <bruno@clisp.org>
43249
43250         Update doc for AIX.
43251         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43252         16-bit wchar_t type.
43253         * doc/posix-functions/btowc.texi: Likewise.
43254         * doc/posix-functions/fgetwc.texi: Likewise.
43255         * doc/posix-functions/fgetws.texi: Likewise.
43256         * doc/posix-functions/fputwc.texi: Likewise.
43257         * doc/posix-functions/fputws.texi: Likewise.
43258         * doc/posix-functions/fwide.texi: Likewise.
43259         * doc/posix-functions/fwprintf.texi: Likewise.
43260         * doc/posix-functions/fwscanf.texi: Likewise.
43261         * doc/posix-functions/getwchar.texi: Likewise.
43262         * doc/posix-functions/getwc.texi: Likewise.
43263         * doc/posix-functions/iswalnum.texi: Likewise.
43264         * doc/posix-functions/iswalpha.texi: Likewise.
43265         * doc/posix-functions/iswblank.texi: Likewise.
43266         * doc/posix-functions/iswcntrl.texi: Likewise.
43267         * doc/posix-functions/iswctype.texi: Likewise.
43268         * doc/posix-functions/iswdigit.texi: Likewise.
43269         * doc/posix-functions/iswgraph.texi: Likewise.
43270         * doc/posix-functions/iswlower.texi: Likewise.
43271         * doc/posix-functions/iswprint.texi: Likewise.
43272         * doc/posix-functions/iswpunct.texi: Likewise.
43273         * doc/posix-functions/iswspace.texi: Likewise.
43274         * doc/posix-functions/iswupper.texi: Likewise.
43275         * doc/posix-functions/iswxdigit.texi: Likewise.
43276         * doc/posix-functions/mbrtowc.texi: Likewise.
43277         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43278         * doc/posix-functions/mbstowcs.texi: Likewise.
43279         * doc/posix-functions/mbtowc.texi: Likewise.
43280         * doc/posix-functions/putwchar.texi: Likewise.
43281         * doc/posix-functions/putwc.texi: Likewise.
43282         * doc/posix-functions/swprintf.texi: Likewise.
43283         * doc/posix-functions/tolower.texi: Likewise.
43284         * doc/posix-functions/toupper.texi: Likewise.
43285         * doc/posix-functions/towctrans.texi: Likewise.
43286         * doc/posix-functions/ungetwc.texi: Likewise.
43287         * doc/posix-functions/vswprintf.texi: Likewise.
43288         * doc/posix-functions/wcrtomb.texi: Likewise.
43289         * doc/posix-functions/wcscat.texi: Likewise.
43290         * doc/posix-functions/wcschr.texi: Likewise.
43291         * doc/posix-functions/wcscmp.texi: Likewise.
43292         * doc/posix-functions/wcscoll.texi: Likewise.
43293         * doc/posix-functions/wcscpy.texi: Likewise.
43294         * doc/posix-functions/wcscspn.texi: Likewise.
43295         * doc/posix-functions/wcsftime.texi: Likewise.
43296         * doc/posix-functions/wcslen.texi: Likewise.
43297         * doc/posix-functions/wcsncat.texi: Likewise.
43298         * doc/posix-functions/wcsncmp.texi: Likewise.
43299         * doc/posix-functions/wcsncpy.texi: Likewise.
43300         * doc/posix-functions/wcspbrk.texi: Likewise.
43301         * doc/posix-functions/wcsrchr.texi: Likewise.
43302         * doc/posix-functions/wcsrtombs.texi: Likewise.
43303         * doc/posix-functions/wcsspn.texi: Likewise.
43304         * doc/posix-functions/wcsstr.texi: Likewise.
43305         * doc/posix-functions/wcstod.texi: Likewise.
43306         * doc/posix-functions/wcstof.texi: Likewise.
43307         * doc/posix-functions/wcstoimax.texi: Likewise.
43308         * doc/posix-functions/wcstok.texi: Likewise.
43309         * doc/posix-functions/wcstold.texi: Likewise.
43310         * doc/posix-functions/wcstoll.texi: Likewise.
43311         * doc/posix-functions/wcstol.texi: Likewise.
43312         * doc/posix-functions/wcstombs.texi: Likewise.
43313         * doc/posix-functions/wcstoull.texi: Likewise.
43314         * doc/posix-functions/wcstoul.texi: Likewise.
43315         * doc/posix-functions/wcstoumax.texi: Likewise.
43316         * doc/posix-functions/wcswidth.texi: Likewise.
43317         * doc/posix-functions/wcsxfrm.texi: Likewise.
43318         * doc/posix-functions/wctob.texi: Likewise.
43319         * doc/posix-functions/wctomb.texi: Likewise.
43320         * doc/posix-functions/wctrans.texi: Likewise.
43321         * doc/posix-functions/wctype.texi: Likewise.
43322         * doc/posix-functions/wcwidth.texi: Likewise.
43323         * doc/posix-functions/wmemchr.texi: Likewise.
43324         * doc/posix-functions/wmemcmp.texi: Likewise.
43325         * doc/posix-functions/wmemcpy.texi: Likewise.
43326         * doc/posix-functions/wmemmove.texi: Likewise.
43327         * doc/posix-functions/wmemset.texi: Likewise.
43328         * doc/posix-functions/wprintf.texi: Likewise.
43329         * doc/posix-functions/wscanf.texi: Likewise.
43330
43331 2008-12-21  Bruno Haible  <bruno@clisp.org>
43332
43333         Update doc for HP-UX 11.11.
43334         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43335         in HP-UX version 11.00, not in all versions of HP-UX 11.
43336         * doc/posix-functions/fwide.texi: Likewise.
43337         * doc/posix-functions/fwprintf.texi: Likewise.
43338         * doc/posix-functions/fwscanf.texi: Likewise.
43339         * doc/posix-functions/inet_ntop.texi: Likewise.
43340         * doc/posix-functions/inet_pton.texi: Likewise.
43341         * doc/posix-functions/mbrlen.texi: Likewise.
43342         * doc/posix-functions/mbrtowc.texi: Likewise.
43343         * doc/posix-functions/mbsinit.texi: Likewise.
43344         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43345         * doc/posix-functions/swprintf.texi: Likewise.
43346         * doc/posix-functions/swscanf.texi: Likewise.
43347         * doc/posix-functions/towctrans.texi: Likewise.
43348         * doc/posix-functions/vfwprintf.texi: Likewise.
43349         * doc/posix-functions/vswprintf.texi: Likewise.
43350         * doc/posix-functions/vwprintf.texi: Likewise.
43351         * doc/posix-functions/wcrtomb.texi: Likewise.
43352         * doc/posix-functions/wcsrtombs.texi: Likewise.
43353         * doc/posix-functions/wcsstr.texi: Likewise.
43354         * doc/posix-functions/wctob.texi: Likewise.
43355         * doc/posix-functions/wctrans.texi: Likewise.
43356         * doc/posix-functions/wmemchr.texi: Likewise.
43357         * doc/posix-functions/wmemcmp.texi: Likewise.
43358         * doc/posix-functions/wmemcpy.texi: Likewise.
43359         * doc/posix-functions/wmemmove.texi: Likewise.
43360         * doc/posix-functions/wmemset.texi: Likewise.
43361         * doc/posix-functions/wprintf.texi: Likewise.
43362         * doc/posix-functions/wscanf.texi: Likewise.
43363
43364 2008-12-21  Bruno Haible  <bruno@clisp.org>
43365
43366         Work around a portability problem.
43367         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43368         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43369
43370 2008-12-20  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43373         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43374         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43376         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43377
43378         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43379         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43380         set.
43381         (GNULIB_defined_mbstate_t): New macro.
43382         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43383         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43384         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43385         reuses the system's mbrtowc function but works around the bugs.
43386         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43387         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43388         macros.
43389         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43390         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43391         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43392         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43393         REPLACE_MBSINIT if mbsinit needs to be overridden.
43394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43395         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43396         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43397         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43398         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43399         m4/locale-zh.m4.
43400         (Depends): Add mbsinit.
43401         * modules/mbsinit (Depends): Add mbrtowc.
43402         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43403
43404 2008-12-20  Bruno Haible  <bruno@clisp.org>
43405
43406         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43407         so that there are no conversion errors on AIX.
43408         * tests/test-mbsrtowcs.c (main): LIkewise.
43409
43410 2008-12-20  Bruno Haible  <bruno@clisp.org>
43411
43412         Work around wctob bug on Solaris <= 9.
43413         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43414         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43416         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43417         * modules/wctob (Files): Add m4/locale-fr.m4.
43418         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43419
43420 2008-12-20  Bruno Haible  <bruno@clisp.org>
43421
43422         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43423         /dev/null.
43424         * tests/test-select-in.sh: Likewise.
43425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43426
43427 2008-12-20  Bruno Haible  <bruno@clisp.org>
43428
43429         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43430         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43431         Cygwin 1.5.x.
43432
43433 2008-12-20  Bruno Haible  <bruno@clisp.org>
43434
43435         Ensure mbstate_t is defined on HP-UX 11.11.
43436         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43437         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43438         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43439         AC_USE_SYSTEM_EXTENSIONS.
43440         * modules/fnmatch (Depends-on): Add extensions.
43441         * modules/mbrlen (Depends-on): Likewise.
43442         * modules/mbrtowc (Depends-on): Likewise.
43443         * modules/mbsinit (Depends-on): Likewise.
43444         * modules/mbsrtowcs (Depends-on): Likewise.
43445         * modules/mbswidth (Depends-on): Likewise.
43446         * modules/quotearg (Depends-on): Likewise.
43447         * modules/strftime (Depends-on): Likewise.
43448
43449 2008-12-20  Bruno Haible  <bruno@clisp.org>
43450
43451         Ensure wctob is declared on IRIX 6.5.
43452         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43453         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43454         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43456         of HAVE_WCTOB.
43457         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43458         HAVE_WCTOB.
43459         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43460
43461 2008-12-19  Bruno Haible  <bruno@clisp.org>
43462
43463         * modules/mbsrtowcs-tests: New file.
43464         * tests/test-mbsrtowcs1.sh: New file.
43465         * tests/test-mbsrtowcs2.sh: New file.
43466         * tests/test-mbsrtowcs3.sh: New file.
43467         * tests/test-mbsrtowcs4.sh: New file.
43468         * tests/test-mbsrtowcs.c: New file.
43469
43470         New module 'mbsrtowcs'.
43471         * lib/wchar.in.h (mbsrtowcs): New declaration.
43472         * lib/mbsrtowcs.c: New file.
43473         * m4/mbsrtowcs.m4: New file.
43474         * modules/mbsrtowcs: New file.
43475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43476         HAVE_MBSRTOWCS.
43477         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43478         HAVE_MBSRTOWCS.
43479         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43480
43481 2008-12-19  Bruno Haible  <bruno@clisp.org>
43482
43483         New module 'mbrlen'.
43484         * lib/wchar.in.h (mbrlen): New declaration.
43485         * lib/mbrlen.c: New file.
43486         * m4/mbrlen.m4: New file.
43487         * modules/mbrlen: New file.
43488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43489         HAVE_MBRLEN.
43490         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43491         HAVE_MBRLEN.
43492         * doc/posix-functions/mbrlen.texi: Document the new module.
43493
43494 2008-12-19  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43497         * modules/mbrtowc (Depends-on): Add verify.
43498         Suggested by Paul Eggert.
43499
43500 2008-12-18  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/mbsinit-tests: New file.
43503         * tests/test-mbsinit.sh: New file.
43504         * tests/test-mbsinit.c: New file.
43505
43506 2008-12-18  Bruno Haible  <bruno@clisp.org>
43507
43508         * modules/mbrtowc-tests: New file.
43509         * tests/test-mbrtowc1.sh: New file.
43510         * tests/test-mbrtowc2.sh: New file.
43511         * tests/test-mbrtowc3.sh: New file.
43512         * tests/test-mbrtowc4.sh: New file.
43513         * tests/test-mbrtowc.c: New file.
43514
43515         New module 'mbrtowc'.
43516         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43517         mbsinit and mbrtowc.
43518         (mbrtowc): New declaration.
43519         * lib/mbrtowc.c: New file.
43520         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43521         * modules/mbrtowc: New file.
43522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43523         HAVE_MBRTOWC.
43524         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43525         HAVE_MBRTOWC.
43526         * doc/posix-functions/mbrtowc.texi: Document the new module.
43527
43528 2008-12-18  Bruno Haible  <bruno@clisp.org>
43529
43530         New module 'wctob'.
43531         * lib/wchar.in.h (wctob): New declaration.
43532         * lib/wctob.c: New file.
43533         * m4/wctob.m4: New file.
43534         * modules/wctob: New file.
43535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43536         HAVE_WCTOB.
43537         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43538         * doc/posix-functions/wctob.texi: Document the new module.
43539
43540 2008-12-18  Bruno Haible  <bruno@clisp.org>
43541
43542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43543         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43544
43545 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43546
43547         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43548         G. Christensen" <tgc@jupiterrise.com>.
43549
43550         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43551         G. Christensen" <tgc@jupiterrise.com>.
43552
43553         * lib/flock.c: Need to include string.h.  Reported by "Tom
43554         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43555         <ebb9@byu.net>.
43556
43557 2008-12-18  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/locale-ja.m4: New file, from GNU gettext.
43560
43561 2008-12-17  Bruno Haible  <bruno@clisp.org>
43562
43563         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43564         Suggested by Eric Blake.
43565
43566 2008-12-17  Bruno Haible  <bruno@clisp.org>
43567
43568         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43569
43570 2008-12-17  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43573         * modules/mbsinit (Depends-on): Add verify.
43574         Suggested by Paul Eggert.
43575
43576 2008-12-17  Bruno Haible  <bruno@clisp.org>
43577
43578         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43579         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43580         gl_FUNC_MBRTOWC.
43581         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43582         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43583         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43584         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43585         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43586         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43587         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43588         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43589         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43590         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43591         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43592         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43593         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43594         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43595         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43596         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43597         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43598         * modules/trim (configure.ac): Likewise.
43599
43600 2008-12-17  Bruno Haible  <bruno@clisp.org>
43601
43602         * modules/btowc-tests: New file.
43603         * tests/test-btowc1.sh: New file.
43604         * tests/test-btowc2.sh: New file.
43605         * tests/test-btowc.c: New file.
43606
43607         New module 'btowc'.
43608         * lib/wchar.in.h (btowc): New declaration.
43609         * lib/btowc.c: New file.
43610         * m4/btowc.m4: New file.
43611         * modules/btowc: New file.
43612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43613         HAVE_BTOWC.
43614         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43615         * doc/posix-functions/btowc.texi: Document the new module.
43616
43617 2008-12-17  Bruno Haible  <bruno@clisp.org>
43618
43619         New module 'mbsinit'.
43620         * lib/wchar.in.h (mbsinit): New declaration.
43621         * lib/mbsinit.c: New file.
43622         * m4/mbsinit.m4: New file.
43623         * modules/mbsinit: New file.
43624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43625         HAVE_MBSINIT.
43626         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43627         HAVE_MBSINIT.
43628         * doc/posix-functions/mbsinit.texi: Document the new module.
43629
43630 2008-12-16  Bruno Haible  <bruno@clisp.org>
43631
43632         * lib/unistd.in.h: Add comment.
43633         * tests/test-environ.c: Don't include <stdlib.h>.
43634
43635 2008-12-16  Bruno Haible  <bruno@clisp.org>
43636
43637         * lib/parse-duration.h (parse_duration): Document return value
43638         convention.
43639         * lib/parse-duration.c: Include specification header first. Add
43640         comments.
43641         (_): Remove macro.
43642         (parse_year_month_day, parse_hour_minute_second): Move side effects
43643         outside of strchr call.
43644         (parse_non_iso8601): Move side effects outside of isspace call.
43645         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43646         call.
43647
43648 2008-12-16  Bruno Haible  <bruno@clisp.org>
43649
43650         * tests/test-parse-duration.sh: Produce no output when the test
43651         succeeds.
43652
43653 2008-12-16  Bruno Haible  <bruno@clisp.org>
43654
43655         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43656         expressions.
43657
43658 2008-12-15  Bruno Haible  <bruno@clisp.org>
43659
43660         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43661         * doc/glibc-functions/flistxattr.texi: Likewise.
43662         * doc/glibc-functions/fopencookie.texi: Likewise.
43663         * doc/glibc-functions/fremovexattr.texi: Likewise.
43664         * doc/glibc-functions/fsetxattr.texi: Likewise.
43665         * doc/glibc-functions/getxattr.texi: Likewise.
43666         * doc/glibc-functions/lgetxattr.texi: Likewise.
43667         * doc/glibc-functions/listxattr.texi: Likewise.
43668         * doc/glibc-functions/llistxattr.texi: Likewise.
43669         * doc/glibc-functions/lremovexattr.texi: Likewise.
43670         * doc/glibc-functions/lsetxattr.texi: Likewise.
43671         * doc/glibc-functions/removexattr.texi: Likewise.
43672         * doc/glibc-functions/setxattr.texi: Likewise.
43673         * doc/posix-functions/open_memstream.texi: Likewise.
43674
43675 2008-12-15  Eric Blake  <ebb9@byu.net>
43676
43677         Update doc for cygwin 1.7.
43678         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43679         functions.
43680         * doc/posix-functions/fchmodat.texi: Likewise.
43681         * doc/posix-functions/fchownat.texi: Likewise.
43682         * doc/posix-functions/fdopendir.texi: Likewise.
43683         * doc/posix-functions/fmemopen.texi: Likewise.
43684         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43685         * doc/posix-functions/fstatat.texi: Likewise.
43686         * doc/posix-functions/futimens.texi: Likewise.
43687         * doc/posix-functions/gai_strerror.texi: Likewise.
43688         * doc/posix-functions/getaddrinfo.texi: Likewise.
43689         * doc/posix-functions/getnameinfo.texi: Likewise.
43690         * doc/posix-functions/if_freenameindex.texi: Likewise.
43691         * doc/posix-functions/if_indextoname.texi: Likewise.
43692         * doc/posix-functions/if_nameindex.texi: Likewise.
43693         * doc/posix-functions/if_nametoindex.texi: Likewise.
43694         * doc/posix-functions/insque.texi: Likewise.
43695         * doc/posix-functions/linkat.texi: Likewise.
43696         * doc/posix-functions/llrint.texi: Likewise.
43697         * doc/posix-functions/llrintf.texi: Likewise.
43698         * doc/posix-functions/llrintl.texi: Likewise.
43699         * doc/posix-functions/lockf.texi: Likewise.
43700         * doc/posix-functions/lrintl.texi: Likewise.
43701         * doc/posix-functions/mkdirat.texi: Likewise.
43702         * doc/posix-functions/mkfifoat.texi: Likewise.
43703         * doc/posix-functions/mknodat.texi: Likewise.
43704         * doc/posix-functions/mq_close.texi: Likewise.
43705         * doc/posix-functions/mq_getattr.texi: Likewise.
43706         * doc/posix-functions/mq_notify.texi: Likewise.
43707         * doc/posix-functions/mq_open.texi: Likewise.
43708         * doc/posix-functions/mq_receive.texi: Likewise.
43709         * doc/posix-functions/mq_send.texi: Likewise.
43710         * doc/posix-functions/mq_setattr.texi: Likewise.
43711         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43712         * doc/posix-functions/mq_timedsend.texi: Likewise.
43713         * doc/posix-functions/mq_unlink.texi: Likewise.
43714         * doc/posix-functions/open_memstream.texi: Likewise.
43715         * doc/posix-functions/openat.texi: Likewise.
43716         * doc/posix-functions/posix_fadvise.texi: Likewise.
43717         * doc/posix-functions/posix_fallocate.texi: Likewise.
43718         * doc/posix-functions/posix_madvise.texi: Likewise.
43719         * doc/posix-functions/posix_memalign.texi: Likewise.
43720         * doc/posix-functions/posix_openpt.texi: Likewise.
43721         * doc/posix-functions/readlinkat.texi: Likewise.
43722         * doc/posix-functions/remque.texi: Likewise.
43723         * doc/posix-functions/renameat.texi: Likewise.
43724         * doc/posix-functions/rintl.texi: Likewise.
43725         * doc/posix-functions/sem_unlink.texi: Likewise.
43726         * doc/posix-functions/shm_open.texi: Likewise.
43727         * doc/posix-functions/shm_unlink.texi: Likewise.
43728         * doc/posix-functions/signgam.texi: Likewise.
43729         * doc/posix-functions/sigset.texi: Likewise.
43730         * doc/posix-functions/stpcpy.texi: Likewise.
43731         * doc/posix-functions/stpncpy.texi: Likewise.
43732         * doc/posix-functions/strerror.texi: Likewise.
43733         * doc/posix-functions/strtod.texi: Likewise.
43734         * doc/posix-functions/symlinkat.texi: Likewise.
43735         * doc/posix-functions/unlinkat.texi: Likewise.
43736         * doc/posix-functions/utimensat.texi: Likewise.
43737         * doc/glibc-functions/bindresvport.texi: Likewise.
43738         * doc/glibc-functions/dn_expand.texi: Likewise.
43739         * doc/glibc-functions/exp10.texi: Likewise.
43740         * doc/glibc-functions/exp10f.texi: Likewise.
43741         * doc/glibc-functions/fgetxattr.texi: Likewise.
43742         * doc/glibc-functions/flistxattr.texi: Likewise.
43743         * doc/glibc-functions/fopencookie.texi: Likewise.
43744         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43745         * doc/glibc-functions/fremovexattr.texi: Likewise.
43746         * doc/glibc-functions/fsetxattr.texi: Likewise.
43747         * doc/glibc-functions/getifaddrs.texi: Likewise.
43748         * doc/glibc-functions/getxattr.texi: Likewise.
43749         * doc/glibc-functions/lgetxattr.texi: Likewise.
43750         * doc/glibc-functions/listxattr.texi: Likewise.
43751         * doc/glibc-functions/llistxattr.texi: Likewise.
43752         * doc/glibc-functions/lremovexattr.texi: Likewise.
43753         * doc/glibc-functions/lsetxattr.texi: Likewise.
43754         * doc/glibc-functions/pow10.texi: Likewise.
43755         * doc/glibc-functions/pow10f.texi: Likewise.
43756         * doc/glibc-functions/rcmd_af.texi: Likewise.
43757         * doc/glibc-functions/removexattr.texi: Likewise.
43758         * doc/glibc-functions/res_init.texi: Likewise.
43759         * doc/glibc-functions/res_mkquery.texi: Likewise.
43760         * doc/glibc-functions/res_query.texi: Likewise.
43761         * doc/glibc-functions/res_querydomain.texi: Likewise.
43762         * doc/glibc-functions/res_send.texi: Likewise.
43763         * doc/glibc-functions/rresvport_af.texi: Likewise.
43764         * doc/glibc-functions/setxattr.texi: Likewise.
43765         * doc/glibc-functions/strcasestr.texi: Likewise.
43766
43767 2008-12-15  Bruno Haible  <bruno@clisp.org>
43768
43769         Fix compilation error on OSF/1 4.0.
43770         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43771         <sys/time.h>, simply delegate to the system header.
43772         Reported by Daniel Richard G. <oss@teragram.com>.
43773
43774 2008-12-15  Bruno Haible  <bruno@clisp.org>
43775
43776         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43777         * doc/posix-functions/fchmodat.texi: Likewise.
43778         * doc/posix-functions/fchownat.texi: Likewise.
43779         * doc/posix-functions/fdopendir.texi: Likewise.
43780         * doc/posix-functions/fstatat.texi: Likewise.
43781         * doc/posix-functions/mkdirat.texi: Likewise.
43782         * doc/posix-functions/unlinkat.texi: Likewise.
43783
43784 2008-12-14  Bruno Haible  <bruno@clisp.org>
43785
43786         Update doc for POSIX:2008.
43787         * doc/posix-functions/faccessat.texi: New file.
43788         * doc/posix-functions/fchmodat.texi: New file.
43789         * doc/posix-functions/fchownat.texi: New file.
43790         * doc/posix-functions/fdopendir.texi: New file.
43791         * doc/posix-functions/fstatat.texi: New file.
43792         * doc/posix-functions/futimens.texi: New file.
43793         * doc/posix-functions/linkat.texi: New file.
43794         * doc/posix-functions/mkdirat.texi: New file.
43795         * doc/posix-functions/mkfifoat.texi: New file.
43796         * doc/posix-functions/mknodat.texi: New file.
43797         * doc/posix-functions/open_wmemstream.texi: New file.
43798         * doc/posix-functions/openat.texi: New file.
43799         * doc/posix-functions/psiginfo.texi: New file.
43800         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43801         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43802         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43803         * doc/posix-functions/readlinkat.texi: New file.
43804         * doc/posix-functions/renameat.texi: New file.
43805         * doc/posix-functions/strerror_l.texi: New file.
43806         * doc/posix-functions/symlinkat.texi: New file.
43807         * doc/posix-functions/unlinkat.texi: New file.
43808         * doc/posix-functions/utimensat.texi: New file.
43809         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43810
43811 2008-12-14  Bruno Haible  <bruno@clisp.org>
43812
43813         Update doc for POSIX:2008.
43814         * doc/posix-functions/alphasort.texi: Renamed from
43815         doc/glibc-functions/alphasort.texi.
43816         * doc/posix-functions/dirfd.texi: Renamed from
43817         doc/glibc-functions/dirfd.texi.
43818         * doc/posix-functions/dprintf.texi: Renamed from
43819         doc/glibc-functions/dprintf.texi.
43820         * doc/posix-functions/duplocale.texi: Renamed from
43821         doc/glibc-functions/duplocale.texi.
43822         * doc/posix-functions/fexecve.texi: Renamed from
43823         doc/glibc-functions/fexecve.texi.
43824         * doc/posix-functions/fmemopen.texi: Renamed from
43825         doc/glibc-functions/fmemopen.texi.
43826         * doc/posix-functions/freelocale.texi: Renamed from
43827         doc/glibc-functions/freelocale.texi.
43828         * doc/posix-functions/getdate_err.texi: Renamed from
43829         doc/glibc-functions/getdate_err.texi.
43830         * doc/posix-functions/isalnum_l.texi: Renamed from
43831         doc/glibc-functions/isalnum_l.texi.
43832         * doc/posix-functions/isalpha_l.texi: Renamed from
43833         doc/glibc-functions/isalpha_l.texi.
43834         * doc/posix-functions/isblank_l.texi: Renamed from
43835         doc/glibc-functions/isblank_l.texi.
43836         * doc/posix-functions/iscntrl_l.texi: Renamed from
43837         doc/glibc-functions/iscntrl_l.texi.
43838         * doc/posix-functions/isdigit_l.texi: Renamed from
43839         doc/glibc-functions/isdigit_l.texi.
43840         * doc/posix-functions/isgraph_l.texi: Renamed from
43841         doc/glibc-functions/isgraph_l.texi.
43842         * doc/posix-functions/islower_l.texi: Renamed from
43843         doc/glibc-functions/islower_l.texi.
43844         * doc/posix-functions/isprint_l.texi: Renamed from
43845         doc/glibc-functions/isprint_l.texi.
43846         * doc/posix-functions/ispunct_l.texi: Renamed from
43847         doc/glibc-functions/ispunct_l.texi.
43848         * doc/posix-functions/isspace_l.texi: Renamed from
43849         doc/glibc-functions/isspace_l.texi.
43850         * doc/posix-functions/isupper_l.texi: Renamed from
43851         doc/glibc-functions/isupper_l.texi.
43852         * doc/posix-functions/iswalnum_l.texi: Renamed from
43853         doc/glibc-functions/iswalnum_l.texi.
43854         * doc/posix-functions/iswalpha_l.texi: Renamed from
43855         doc/glibc-functions/iswalpha_l.texi.
43856         * doc/posix-functions/iswblank_l.texi: Renamed from
43857         doc/glibc-functions/iswblank_l.texi.
43858         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43859         doc/glibc-functions/iswcntrl_l.texi.
43860         * doc/posix-functions/iswctype_l.texi: Renamed from
43861         doc/glibc-functions/iswctype_l.texi.
43862         * doc/posix-functions/iswdigit_l.texi: Renamed from
43863         doc/glibc-functions/iswdigit_l.texi.
43864         * doc/posix-functions/iswgraph_l.texi: Renamed from
43865         doc/glibc-functions/iswgraph_l.texi.
43866         * doc/posix-functions/iswlower_l.texi: Renamed from
43867         doc/glibc-functions/iswlower_l.texi.
43868         * doc/posix-functions/iswprint_l.texi: Renamed from
43869         doc/glibc-functions/iswprint_l.texi.
43870         * doc/posix-functions/iswpunct_l.texi: Renamed from
43871         doc/glibc-functions/iswpunct_l.texi.
43872         * doc/posix-functions/iswspace_l.texi: Renamed from
43873         doc/glibc-functions/iswspace_l.texi.
43874         * doc/posix-functions/iswupper_l.texi: Renamed from
43875         doc/glibc-functions/iswupper_l.texi.
43876         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43877         doc/glibc-functions/iswxdigit_l.texi.
43878         * doc/posix-functions/isxdigit_l.texi: Renamed from
43879         doc/glibc-functions/isxdigit_l.texi.
43880         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43881         doc/glibc-functions/mbsnrtowcs.texi.
43882         * doc/posix-functions/mkdtemp.texi: Renamed from
43883         doc/glibc-functions/mkdtemp.texi.
43884         * doc/posix-functions/newlocale.texi: Renamed from
43885         doc/glibc-functions/newlocale.texi.
43886         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43887         doc/glibc-functions/nl_langinfo_l.texi.
43888         * doc/posix-functions/open_memstream.texi: Renamed from
43889         doc/glibc-functions/open_memstream.texi.
43890         * doc/posix-functions/opterr.texi: Renamed from
43891         doc/glibc-functions/opterr.texi.
43892         * doc/posix-functions/optind.texi: Renamed from
43893         doc/glibc-functions/optind.texi.
43894         * doc/posix-functions/optopt.texi: Renamed from
43895         doc/glibc-functions/optopt.texi.
43896         * doc/posix-functions/psignal.texi: Renamed from
43897         doc/glibc-functions/psignal.texi.
43898         * doc/posix-functions/scandir.texi: Renamed from
43899         doc/glibc-functions/scandir.texi.
43900         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43901         doc/glibc-functions/sched_get_priority_min.texi.
43902         * doc/posix-functions/signgam.texi: Renamed from
43903         doc/glibc-functions/signgam.texi.
43904         * doc/posix-functions/stpcpy.texi: Renamed from
43905         doc/glibc-functions/stpcpy.texi.
43906         * doc/posix-functions/stpncpy.texi: Renamed from
43907         doc/glibc-functions/stpncpy.texi.
43908         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43909         doc/glibc-functions/strcasecmp_l.texi.
43910         * doc/posix-functions/strcoll_l.texi: Renamed from
43911         doc/glibc-functions/strcoll_l.texi.
43912         * doc/posix-functions/strfmon_l.texi: Renamed from
43913         doc/glibc-functions/strfmon_l.texi.
43914         * doc/posix-functions/strftime_l.texi: Renamed from
43915         doc/glibc-functions/strftime_l.texi.
43916         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43917         doc/glibc-functions/strncasecmp_l.texi.
43918         * doc/posix-functions/strndup.texi: Renamed from
43919         doc/glibc-functions/strndup.texi.
43920         * doc/posix-functions/strnlen.texi: Renamed from
43921         doc/glibc-functions/strnlen.texi.
43922         * doc/posix-functions/strsignal.texi: Renamed from
43923         doc/glibc-functions/strsignal.texi.
43924         * doc/posix-functions/strxfrm_l.texi: Renamed from
43925         doc/glibc-functions/strxfrm_l.texi.
43926         * doc/posix-functions/timer_gettime.texi: Renamed from
43927         doc/glibc-functions/timer_gettime.texi.
43928         * doc/posix-functions/tolower_l.texi: Renamed from
43929         doc/glibc-functions/tolower_l.texi.
43930         * doc/posix-functions/toupper_l.texi: Renamed from
43931         doc/glibc-functions/toupper_l.texi.
43932         * doc/posix-functions/towctrans_l.texi: Renamed from
43933         doc/glibc-functions/towctrans_l.texi.
43934         * doc/posix-functions/towlower_l.texi: Renamed from
43935         doc/glibc-functions/towlower_l.texi.
43936         * doc/posix-functions/towupper_l.texi: Renamed from
43937         doc/glibc-functions/towupper_l.texi.
43938         * doc/posix-functions/uselocale.texi: Renamed from
43939         doc/glibc-functions/uselocale.texi.
43940         * doc/posix-functions/vdprintf.texi: Renamed from
43941         doc/glibc-functions/vdprintf.texi.
43942         * doc/posix-functions/wcpcpy.texi:
43943         Renamed from doc/glibc-functions/wcpcpy.texi.
43944         * doc/posix-functions/wcpncpy.texi: Renamed from
43945         doc/glibc-functions/wcpncpy.texi.
43946         * doc/posix-functions/wcscasecmp.texi: Renamed from
43947         doc/glibc-functions/wcscasecmp.texi.
43948         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43949         doc/glibc-functions/wcscasecmp_l.texi.
43950         * doc/posix-functions/wcscoll_l.texi: Renamed from
43951         doc/glibc-functions/wcscoll_l.texi.
43952         * doc/posix-functions/wcsdup.texi: Renamed from
43953         doc/glibc-functions/wcsdup.texi.
43954         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43955         doc/glibc-functions/wcsncasecmp.texi.
43956         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43957         doc/glibc-functions/wcsncasecmp_l.texi.
43958         * doc/posix-functions/wcsnlen.texi: Renamed from
43959         doc/glibc-functions/wcsnlen.texi.
43960         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43961         doc/glibc-functions/wcsnrtombs.texi.
43962         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43963         doc/glibc-functions/wcsxfrm_l.texi.
43964         * doc/posix-functions/wctrans_l.texi: Renamed from
43965         doc/glibc-functions/wctrans_l.texi.
43966         * doc/posix-functions/wctype_l.texi: Renamed from
43967         doc/glibc-functions/wctype_l.texi.
43968         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43969         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43970         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43971         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43972         these subsections.
43973         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43974         Remove sections.
43975
43976 2008-12-14  Bruno Haible  <bruno@clisp.org>
43977
43978         Update doc for POSIX:2008.
43979         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43980
43981 2008-12-14  Bruno Haible  <bruno@clisp.org>
43982
43983         Update doc for POSIX:2008.
43984         * doc/pastposix-functions/bcmp.texi: Renamed from
43985         doc/posix-functions/bcmp.texi.
43986         * doc/pastposix-functions/bcopy.texi: Renamed from
43987         doc/posix-functions/bcopy.texi.
43988         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43989         doc/posix-functions/bsd_signal.texi.
43990         * doc/pastposix-functions/bzero.texi: Renamed from
43991         doc/posix-functions/bzero.texi.
43992         * doc/pastposix-functions/ecvt.texi: Renamed from
43993         doc/posix-functions/ecvt.texi.
43994         * doc/pastposix-functions/fcvt.texi: Renamed from
43995         doc/posix-functions/fcvt.texi.
43996         * doc/pastposix-functions/ftime.texi: Renamed from
43997         doc/posix-functions/ftime.texi.
43998         * doc/pastposix-functions/gcvt.texi: Renamed from
43999         doc/posix-functions/gcvt.texi.
44000         * doc/pastposix-functions/getcontext.texi: Renamed from
44001         doc/posix-functions/getcontext.texi.
44002         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44003         doc/posix-functions/gethostbyaddr.texi.
44004         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44005         doc/posix-functions/gethostbyname.texi.
44006         * doc/pastposix-functions/getwd.texi: Renamed from
44007         doc/posix-functions/getwd.texi.
44008         * doc/pastposix-functions/h_errno.texi: Renamed from
44009         doc/posix-functions/h_errno.texi.
44010         * doc/pastposix-functions/index.texi: Renamed from
44011         doc/posix-functions/index.texi.
44012         * doc/pastposix-functions/makecontext.texi: Renamed from
44013         doc/posix-functions/makecontext.texi.
44014         * doc/pastposix-functions/mktemp.texi: Renamed from
44015         doc/posix-functions/mktemp.texi.
44016         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44017         doc/posix-functions/pthread_attr_getstackaddr.texi.
44018         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44019         doc/posix-functions/pthread_attr_setstackaddr.texi.
44020         * doc/pastposix-functions/rindex.texi: Renamed from
44021         doc/posix-functions/rindex.texi.
44022         * doc/pastposix-functions/scalb.texi: Renamed from
44023         doc/posix-functions/scalb.texi.
44024         * doc/pastposix-functions/setcontext.texi: Renamed from
44025         doc/posix-functions/setcontext.texi.
44026         * doc/pastposix-functions/swapcontext.texi: Renamed from
44027         doc/posix-functions/swapcontext.texi.
44028         * doc/pastposix-functions/ualarm.texi: Renamed from
44029         doc/posix-functions/ualarm.texi.
44030         * doc/pastposix-functions/usleep.texi: Renamed from
44031         doc/posix-functions/usleep.texi.
44032         * doc/pastposix-functions/vfork.texi: Renamed from
44033         doc/posix-functions/vfork.texi.
44034         * doc/pastposix-functions/wcswcs.texi: Renamed from
44035         doc/posix-functions/wcswcs.texi.
44036         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44037         (Function Substitutes): Update.
44038
44039 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44040
44041         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44042         m4/strerror.m4.
44043
44044 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44045             Bruno Haible  <bruno@clisp.org>
44046
44047         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44048
44049 2008-12-13  Bruno Haible  <bruno@clisp.org>
44050
44051         * modules/strtoull (Depends-on): Remove unistd.
44052
44053 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44054
44055         * modules/strtoull (Depends-on): Add stdlib.
44056
44057 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44058
44059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44060
44061 2008-12-10  Jim Meyering  <meyering@redhat.com>
44062
44063         gl_ASSERT: don't say assertions are disabled when they're not
44064         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44065         "checking whether to enable assertions... no", when they are in
44066         fact enabled.  This is solely a bug in the output of configure.
44067         In spite of saying "no", NDEBUG was not defined in that case.
44068         Also, as noted by Eric Blake, leave assertions enabled upon
44069         --enable-assert=INVALID.
44070
44071 2008-12-10  Bruno Haible  <bruno@clisp.org>
44072
44073         Change MODULES.html to refer to POSIX:2008 where possible.
44074         * MODULES.html.sh (POSIX2008_URL): New variable.
44075         (posix_headers): Remove sys/timeb, ucontext.
44076         (posix2001_headers): New variable.
44077         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44078         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44079         index, makecontext, mktemp, pthread_attr_getstackaddr,
44080         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44081         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44082         (posix2001_functions): New variable.
44083         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44084         otherwise.
44085
44086 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44087
44088         add missing include to parse-duration.c
44089         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44090         * modules/parse-duration (Depends-on): Add xalloc.
44091
44092         fix sed script reading maint.mk
44093         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44094         (syntax-check-rules): Use it.
44095
44096 2008-12-09  Bruno Haible  <bruno@clisp.org>
44097
44098         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44099         MacOS X 10.4/PowerPC.
44100         Reported by Simon Josefsson.
44101
44102 2008-12-08  Jim Meyering  <meyering@redhat.com>
44103
44104         work around mingw's lack of some S_IF definitions
44105         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44106         Reported by Simon Josefsson.
44107
44108 2008-12-08  Bruno Haible  <bruno@clisp.org>
44109
44110         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44111         applied to variables. Needed on MacOS X 10.4/PowerPC.
44112         Reported by Simon Josefsson.
44113
44114 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44115         and Eric Blake  <ebb9@byu.net>
44116
44117         assert: honor --enable-assert
44118         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44119         order to honor --enable-assert, rather than treating it as a
44120         synonym for --disable-assert.
44121
44122 2008-12-08  Jim Meyering  <meyering@redhat.com>
44123
44124         * lib/posixtm.c: Remove now-useless declaration of mktime.
44125
44126         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44127
44128 2008-12-07  Bruno Haible  <bruno@clisp.org>
44129
44130         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44131         test_once): Mark functions as static.
44132         * tests/test-tls.c (test_tls): Likewise.
44133
44134 2008-12-07  Bruno Haible  <bruno@clisp.org>
44135
44136         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44137         iconv_register_autodetect.
44138
44139 2008-12-07  Jim Meyering  <meyering@redhat.com>
44140
44141         posixtm.c: avoid a warning
44142         * lib/posixtm.c (posixtime): Don't initialize tm0.
44143         It's no longer needed to placate gcc4's -Wuninitialized,
44144         and the attempt to placate would elicit a new warning.
44145
44146         unicodeio.c: mark unused parameters
44147         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44148         (fallback_failure_callback): Likewise.
44149
44150 2008-12-07  Bruno Haible  <bruno@clisp.org>
44151
44152         * gnulib-tool (func_create_testdir): When building the tests
44153         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44154         Reported by Simon Josefsson.
44155
44156 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44157
44158         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44159
44160 2008-12-06  Bruno Haible  <bruno@clisp.org>
44161
44162         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44163         Suggested by Eric Blake.
44164
44165 2008-12-06  Bruno Haible  <bruno@clisp.org>
44166
44167         Fix a c-stack test failure on MacOS X.
44168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44169         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44170         handler for SIGBUS as well.
44171         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44172         install a signal handler for SIGBUS as well.
44173         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44174
44175 2008-12-06  Bruno Haible  <bruno@clisp.org>
44176
44177         Advocacy documentation.
44178         * doc/gnulib-intro.texi (Benefits): New section.
44179         * doc/gnulib.texi: Update.
44180
44181 2008-12-06  Bruno Haible  <bruno@clisp.org>
44182
44183         Document the 'manywarnings' module.
44184         * doc/manywarnings.texi: New file.
44185         * doc/gnulib.texi: Include it.
44186
44187 2008-12-05  Eric Blake  <ebb9@byu.net>
44188
44189         tests: silence some gcc warnings
44190         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44191         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44192         type mismatches.
44193
44194 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44195             Bruno Haible  <bruno@clisp.org>
44196
44197         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44198
44199 2008-11-29  Jim Meyering  <meyering@redhat.com>
44200
44201         unicodeio.c: mark unused parameters
44202         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44203         (fallback_failure_callback): Likewise.
44204
44205         fts: fix a thinko
44206         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44207         (set_stat_type): Return S_IF*-valued "type" directly.
44208         Prompted by James Youngman's spotting a related bug.
44209         Confirmed by further testing through find.
44210
44211         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44212         * lib/fts.c (D_TYPE): Define.
44213         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44214         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44215         (s_ifmt_shift_bits): New function.
44216         (set_stat_type): New function.
44217         (fts_build): When not calling fts_stat, call set_stat_type
44218         to propagate dirent.d_type info to fts_read caller.
44219         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44220         fts_statp->st_mode type information may be valid.
44221
44222 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44223
44224         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44225         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44226         <sds@gnu.org>.
44227
44228 2008-11-20  Bruno Haible  <bruno@clisp.org>
44229
44230         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44231         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44232         INCLUDE_NEXT.
44233         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44234         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44235         * modules/math (Makefile.am): Substitute
44236         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44238
44239 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44240             Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/stdint.in.h: Define all type macros so that their expansion is
44243         a single typedef'ed token. Fixes a compilation failure in Boost which
44244         does "using ::int8_t;".
44245
44246 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44247
44248         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44249         gl_MANYWARN_ALL_GCC.
44250         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44251         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44252         * modules/manywarnings: New file.
44253         * MODULES.html.sh: Mention manywarnings module.
44254
44255 2008-11-18  Bruno Haible  <bruno@clisp.org>
44256
44257         * doc/gnulib-tool.texi (Unit tests): New section.
44258
44259 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44260
44261         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44262         paths like 'lib/po/foo.po'.
44263
44264 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44265
44266         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44267         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44268
44269 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44270
44271         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44272         parameter works.
44273
44274 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44275
44276         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44277
44278 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44279
44280         * modules/parse-duration-tests: New file.
44281         * tests/test-parse-duration.sh: New file.
44282         * tests/test-parse-duration.c: New file.
44283
44284         New module 'parse-duration'.
44285         * lib/parse-duration.h: New file.
44286         * lib/parse-duration.c: New file.
44287         * modules/parse-duration: New file.
44288
44289 2008-11-17  Bruno Haible  <bruno@clisp.org>
44290
44291         * tests/test-select-out.sh: Comment out the first pipe test.
44292         Reported by Simon Josefsson.
44293
44294 2008-11-17  Bruno Haible  <bruno@clisp.org>
44295
44296         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44298         gl_HOSTENT.
44299
44300 2008-11-17  Bruno Haible  <bruno@clisp.org>
44301
44302         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44303         -lnetwork and -lnet. Needed for Haiku and BeOS.
44304
44305 2008-11-16  Bruno Haible  <bruno@clisp.org>
44306
44307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44308
44309 2008-11-16  Bruno Haible  <bruno@clisp.org>
44310
44311         Avoid test failure on Haiku.
44312         * tests/test-fsync.c: Include <errno.h>.
44313         (main): Don't require that fsync (0) fails.
44314
44315 2008-11-15  Bruno Haible  <bruno@clisp.org>
44316
44317         New module 'hostent'.
44318         * modules/hostent: New file.
44319         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44320
44321 2008-11-15  Bruno Haible  <bruno@clisp.org>
44322
44323         New module 'servent'.
44324         * modules/servent: New file.
44325         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44326
44327 2008-11-15  Bruno Haible  <bruno@clisp.org>
44328
44329         Avoid generating same test program with two different rules.
44330         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44331         test-frexp to test-frexp-nolibm.
44332         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44333         test-frexpl to test-frexpl-nolibm.
44334
44335 2008-11-15  Bruno Haible  <bruno@clisp.org>
44336
44337         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44338         $(FREXPL_LIBM).
44339
44340 2008-11-15  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/netdb.in.h: Activate the definitions also when the system's
44343         <netdb.h> has 'struct addrinfo'.
44344         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44345         EAI_OVERFLOW or AI_NUMERICSERV.
44346         * doc/posix-headers/netdb.texi: Document the problem.
44347
44348 2008-11-15  Bruno Haible  <bruno@clisp.org>
44349
44350         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44351
44352         Make the 'sched' module work on platforms where <sched.h> exists but
44353         is incomplete (such as Haiku).
44354         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44355         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44356         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44357         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44358         HAVE_STRUCT_SCHED_PARAM.
44359         * modules/sched (Depends-on): Add include_next.
44360         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44361         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44362         * doc/posix-headers/sched.texi: Document the issue.
44363
44364 2008-11-13  Jim Meyering  <meyering@redhat.com>
44365
44366         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44367         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44368         test would fail due to the difference in the Report bugs to ...
44369         line.  The expected address is empty, "<>", while the actual
44370         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44371
44372 2008-11-12  Bruno Haible  <bruno@clisp.org>
44373
44374         lstat: don't compile lstat.c on systems lacking lstat
44375         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44376         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44377         Reported by Daniel P. Berrange via Jim Meyering.
44378
44379 2008-11-12  Jim Meyering  <meyering@redhat.com>
44380
44381         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44382
44383 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44384
44385         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44386         instead.
44387
44388 2008-11-12  Bruno Haible  <bruno@clisp.org>
44389
44390         * lib/unicodeio.c: Include unistr.h.
44391         (utf8_wctomb): Remove function.
44392         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44393
44394 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44395
44396         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44397         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44398         <bruno@clisp.org>.
44399         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44400
44401 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44402
44403         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44404         * doc/gnulib.texi: Add section for warnings.
44405
44406 2008-11-11  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/sockets.h: Add a comment.
44409
44410 2008-11-11  Karl Berry  <karl@gnu.org>
44411
44412         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44413
44414 2008-11-11  Eric Blake  <ebb9@byu.net>
44415
44416         fdl.texi: avoid git symlinks
44417         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44418
44419 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44420
44421         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44422
44423 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44424
44425         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44426         (gl_WARN_ADD): Substitute $2 if literal.
44427
44428 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44429
44430         * m4/warning.m4: Remove.
44431
44432 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44433
44434         * m4/warnings.m4: Almost complete rewrite. :-)
44435
44436 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44437
44438         * modules/warnings: New module.
44439         * m4/warnings.m4: New file.
44440         * MODULES.html.sh: Mention warnings module.
44441         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44442         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44443
44444 2008-11-10  Eric Blake  <ebb9@byu.net>
44445
44446         fdl.texi: make a symlink to the latest version
44447         * doc/standards.texi: Revert today's earlier change.
44448         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44449         * doc/fdl.texi: ...and replace this with a symlink to the newer
44450         fdl-1.3.texi.
44451
44452 2008-11-10  Bruno Haible  <bruno@clisp.org>
44453
44454         * tests/test-select-fd.c (main): Accept the result file name as fourth
44455         argument.
44456         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44457         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44458
44459 2008-11-10  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44462         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44463         as autoconf-substituted macros.
44464         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44466         gl_NETDB_H_DEFAULTS. Set these variables.
44467         * modules/netdb (Makefile.am): Substitute these variables.
44468
44469 2008-11-10  Eric Blake  <ebb9@byu.net>
44470
44471         standards.texi: include correct file for FDL 1.3
44472         * doc/standards.texi (GNU Free Documentation License): Change
44473         include file to pull in FDL 1.3, not 1.2.
44474
44475         fdl.texi: revert accidental change to license
44476         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44477
44478 2008-11-10  Bruno Haible  <bruno@clisp.org>
44479
44480         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44481         cross-compiling guesses also when the native compile gives no result.
44482
44483 2008-11-10  Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/spawni.c (__spawni): Force variable into the stack.
44486
44487 2008-11-10  Bruno Haible  <bruno@clisp.org>
44488
44489         Add support for Haiku.
44490         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44491         glibc and BeOS, but also on Haiku.
44492         * lib/fpurge.c (fpurge): Likewise.
44493         * lib/freadable.c (freadable): Likewise.
44494         * lib/freadahead.c (freadahead): Likewise.
44495         * lib/freading.c (freading): Likewise.
44496         * lib/freadptr.c (freadptr): Likewise.
44497         * lib/freadseek.c (freadptrinc): Likewise.
44498         * lib/fseeko.c (rpl_fseeko): Likewise.
44499         * lib/fseterr.c (fseterr): Likewise.
44500         * lib/fwritable.c (fwritable): Likewise.
44501         * lib/fwriting.c (fwriting): Likewise.
44502         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44503
44504 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44505
44506         * lib/config.charset: Treat Haiku like BeOS.
44507
44508 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44509
44510         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44511         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44512
44513 2008-11-08  Bruno Haible  <bruno@clisp.org>
44514
44515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44516         AC_CACHE_CHECK.
44517
44518 2008-11-08  Bruno Haible  <bruno@clisp.org>
44519
44520         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44521
44522 2008-11-08  Bruno Haible  <bruno@clisp.org>
44523
44524         * tests/test-select-fd.c: New file.
44525         * tests/test-select-in.sh: New file.
44526         * tests/test-select-out.sh: New file.
44527         * tests/test-select-stdin.c: New file.
44528         * modules/select-tests (Files): Add the new files.
44529         (Depends-on): Add gettimeofday.
44530         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44531         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44532         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44533
44534 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44535             Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44538
44539 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44540
44541         * build-aux/pmccabe2html: Added support for C++ source files.
44542
44543 2008-11-05  Ben Pfaff  <blp@gnu.org>
44544
44545         Fix lib/close.c build on Windows.
44546         * modules/close (Files): Add lib/w32sock.h.
44547
44548 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44549
44550         Accept Bison's NEWS format.
44551         * build-aux/announce-gen (print_news_deltas): Tweak
44552         $re_prefix.
44553
44554 2008-11-04  Bruno Haible  <bruno@clisp.org>
44555
44556         * modules/random_r (Maintainer): Add glibc.
44557
44558 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44559
44560         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44561         by karl@freefriends.org (Karl Berry).
44562         * doc/alloca.texi: Likewise.
44563         * doc/c-ctype.texi: Likewise.
44564         * doc/c-strcase.texi: Likewise.
44565         * doc/c-strcaseeq.texi: Likewise.
44566         * doc/c-strcasestr.texi: Likewise.
44567         * doc/c-strstr.texi: Likewise.
44568         * doc/c-strtod.texi: Likewise.
44569         * doc/c-strtold.texi: Likewise.
44570         * doc/ctime.texi: Likewise.
44571         * doc/error.texi: Likewise.
44572         * doc/fdl.texi: Likewise.
44573         * doc/gcd.texi: Likewise.
44574         * doc/getdate.texi: Likewise.
44575         * doc/gnulib-intro.texi: Likewise.
44576         * doc/gnulib-tool.texi: Likewise.
44577         * doc/gnulib.texi: Likewise.
44578         * doc/inet_ntoa.texi: Likewise.
44579         * doc/maintain.texi: Likewise.
44580         * doc/make-stds.texi: Likewise.
44581         * doc/quote.texi: Likewise.
44582         * doc/regexprops-generic.texi: Likewise.
44583         * doc/standards.texi: Likewise.
44584         * doc/verify.texi: Likewise.
44585         * doc/visibility.texi: Likewise.
44586         * doc/gnulib.texi (GNU Free Documentation License): Include
44587         fdl-1.3.texi instead of fdl.texi.
44588
44589 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44590
44591         * doc/fdl-1.3.texi: New file, from
44592         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44593         * modules/fdl-1.3: Add.
44594         * MODULES.html.sh: Add fdl-1.3.
44595
44596 2008-11-03  Bruno Haible  <bruno@clisp.org>
44597
44598         Make determination of absolute name of header file work with AIX xlc.
44599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44600         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44601         preprocessing.
44602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44603         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44604
44605 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44606
44607         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44608         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44609         <ludo@gnu.org>.
44610
44611 2008-11-02  Bruno Haible  <bruno@clisp.org>
44612
44613         Mark 'strpbrk' obsolete.
44614         * modules/strpbrk (Status, Notice): New sections.
44615         * modules/strtok_r (Depends-on): Add strpbrk.
44616
44617 2008-11-02  Bruno Haible  <bruno@clisp.org>
44618
44619         Mark 'strdup' obsolete.
44620         * modules/strdup (Status, Notice): New sections.
44621         * modules/findprog (Depends-on): Add strdup.
44622         * modules/getaddrinfo (Depends-on): Likewise.
44623         * modules/localename (Depends-on): Likewise.
44624         * modules/relocatable-lib (Depends-on): Likewise.
44625         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44626         * modules/relocatable-prog (Depends-on): Likewise.
44627         * modules/trim (Depends-on): Likewise.
44628         * modules/unictype/gen-ctype (Depends-on): Likewise.
44629         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44630
44631 2008-11-02  Bruno Haible  <bruno@clisp.org>
44632
44633         Mark 'strcspn' obsolete.
44634         * modules/strcspn (Status, Notice): New sections.
44635
44636 2008-11-02  Bruno Haible  <bruno@clisp.org>
44637
44638         Mark 'rmdir' obsolete.
44639         * modules/rmdir (Status, Notice): New sections.
44640         * modules/clean-temp (Depends-on): Add rmdir.
44641         * modules/openat (Depends-on): Likewise.
44642
44643 2008-11-02  Bruno Haible  <bruno@clisp.org>
44644
44645         Mark 'raise' obsolete.
44646         * modules/raise (Status, Notice): New sections.
44647         (Include): Specify <signal.h>.
44648         * modules/stdio (Depends-on): Add raise.
44649         * modules/write (Depends-on): Likewise.
44650
44651 2008-11-02  Bruno Haible  <bruno@clisp.org>
44652
44653         Mark 'memset' obsolete.
44654         * modules/memset (Status, Notice): New sections.
44655
44656 2008-11-02  Bruno Haible  <bruno@clisp.org>
44657
44658         Mark 'memmove' obsolete.
44659         * modules/memmove (Status, Notice): New sections.
44660         * modules/argp (Depends-on): Add memmove.
44661         * modules/argz (Depends-on): Likewise.
44662         * modules/canonicalize (Depends-on): Likewise.
44663         * modules/canonicalize-lgpl (Depends-on): Likewise.
44664         * modules/fts (Depends-on): Likewise.
44665         * modules/getcwd (Depends-on): Likewise.
44666         * modules/human (Depends-on): Likewise.
44667         * modules/regex (Depends-on): Likewise.
44668         * modules/striconveh (Depends-on): Likewise.
44669         * modules/trim (Depends-on): Likewise.
44670         * modules/unistr/u8-move (Depends-on): Likewise.
44671         * modules/unistr/u16-move (Depends-on): Likewise.
44672         * modules/unistr/u32-move (Depends-on): Likewise.
44673
44674 2008-11-02  Bruno Haible  <bruno@clisp.org>
44675
44676         Mark 'memcpy' obsolete.
44677         * modules/memcpy (Status, Notice): New sections.
44678
44679 2008-11-02  Bruno Haible  <bruno@clisp.org>
44680
44681         Mark 'memcmp' obsolete.
44682         * modules/memcmp (Status, Notice): New sections.
44683         * modules/argmatch (Depends-on): Add memchr.
44684         * modules/backupfile (Depends-on): Likewise.
44685         * modules/c-strcasestr (Depends-on): Likewise.
44686         * modules/crypto/des (Depends-on): Likewise.
44687         * modules/csharpcomp (Depends-on): Likewise.
44688         * modules/fnmatch (Depends-on): Likewise.
44689         * modules/git-merge-changelog (Depends-on): Likewise.
44690         * modules/isnand (Depends-on): Likewise.
44691         * modules/isnand-nolibm (Depends-on): Likewise.
44692         * modules/isnanf (Depends-on): Likewise.
44693         * modules/isnanf-nolibm (Depends-on): Likewise.
44694         * modules/isnanl (Depends-on): Likewise.
44695         * modules/isnanl-nolibm (Depends-on): Likewise.
44696         * modules/mbchar (Depends-on): Likewise.
44697         * modules/memcoll (Depends-on): Likewise.
44698         * modules/quotearg (Depends-on): Likewise.
44699         * modules/regex (Depends-on): Likewise.
44700         * modules/relocatable-prog (Depends-on): Likewise.
44701         * modules/same (Depends-on): Likewise.
44702         * modules/signbit (Depends-on): Likewise.
44703         * modules/strcasestr-simple (Depends-on): Likewise.
44704         * modules/unictype/gen-ctype (Depends-on): Likewise.
44705         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44706         * modules/uniname/uniname (Depends-on): Likewise.
44707         * modules/unistr/u8-cmp (Depends-on): Likewise.
44708
44709 2008-11-02  Bruno Haible  <bruno@clisp.org>
44710
44711         Mark 'memchr' obsolete.
44712         * modules/memchr (Status, Notice): New sections.
44713         * modules/argp (Depends-on): Add memchr.
44714         * modules/base64 (Depends-on): Likewise.
44715         * modules/c-strcasestr (Depends-on): Likewise.
44716         * modules/chdir-long (Depends-on): Likewise.
44717         * modules/fnmatch (Depends-on): Likewise.
44718         * modules/getsubopt (Depends-on): Likewise.
44719         * modules/git-merge-changelog (Depends-on): Likewise.
44720         * modules/glob (Depends-on): Likewise.
44721         * modules/strcasestr-simple (Depends-on): Likewise.
44722         * modules/strnlen (Depends-on): Likewise.
44723
44724 2008-11-02  Bruno Haible  <bruno@clisp.org>
44725
44726         Mark 'atexit' obsolete.
44727         * modules/atexit (Status, Notice): New sections.
44728         * modules/chdir-long (Depends-on): Add atexit.
44729         * modules/wait-process (Depends-on): Likewise.
44730
44731 2008-11-02  Bruno Haible  <bruno@clisp.org>
44732
44733         * gnulib-tool: New option --with-obsolete.
44734         (func_usage): Document it.
44735         (func_modules_transitive_closure): Drop obsolete dependencies if
44736         incobsolete is not true.
44737         (func_import): Read and save the incobsolete variable to the cache.
44738
44739 2008-11-02  Bruno Haible  <bruno@clisp.org>
44740
44741         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44742         * gnulib-tool: New option --extract-status.
44743         (func_usage): Document it.
44744         (sed_extract_prog): Recognize it.
44745         (func_get_status): New function.
44746
44747 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44748
44749         * modules/sockets (License): Change from LGPL to LGPLv2+.
44750
44751 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44752
44753         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44754
44755 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44756
44757         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44758         Mention times and sys_times.
44759         * modules/sys_times, modules/sys_times-tests: New modules.
44760         * modules/times, modules/times-tests: Likewise
44761         * m4/sys_times_h.m4: New file.
44762         * lib/sys_times.in.h: Likewise
44763         * lib/times.c: Likewise.
44764         * tests/test-sys_times.c: Likewise.
44765         * tests/test-times.c: Likewise.
44766         * doc/posix-headers/sys_times.texi: Update.
44767         * doc/posix-functions/times.texi: Update.
44768
44769 2008-10-28  Jim Meyering  <meyering@redhat.com>
44770
44771         * modules/tempname (Depends-on): Add lstat.
44772
44773         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44774
44775 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44776
44777         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44778         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44779         using idiom used elsewhere in gnulib.
44780
44781 2008-10-27  Jim Meyering  <meyering@redhat.com>
44782
44783         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44784
44785 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44786
44787         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44788         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44789         programs.
44790         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44791
44792 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44793
44794         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44795
44796 2008-10-27  Bruno Haible  <bruno@clisp.org>
44797
44798         * tests/test-lstat.c: Include <stdio.h>.
44799
44800 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44801
44802         * modules/lstat-tests: New module.
44803         * tests/test-lstat.c: New file.
44804
44805 2008-10-26  Jim Meyering  <meyering@redhat.com>
44806
44807         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44808
44809 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44810             Bruno Haible  <bruno@clisp.org>
44811
44812         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44813         * modules/configmake (Include): Add a note that the include must come
44814         after all system headers.
44815         * lib/javaversion.c: Include configmake.h after all other includes.
44816
44817 2008-10-26  Bruno Haible  <bruno@clisp.org>
44818
44819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44820         HAVE_STRUCT_RANDOM_DATA to 1.
44821         (gl_STDLIB_H): Simplify.
44822
44823 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44824
44825         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44826         substitute HAVE_STRUCT_RANDOM_DATA.
44827         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44828         random_data.
44829         * modules/stdlib (Makefile.am): Substitute
44830         HAVE_STRUCT_RANDOM_DATA.
44831
44832 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44833
44834         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44835         * doc/gnulib-intro.texi (Copyright): Likewise.
44836
44837 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44838
44839         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44840         findings.
44841
44842 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44843             Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/unistd.in.h: Include <winsock2.h>.
44846         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44847         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44848         Provide dummy declarations.
44849         (gethostname): Override.
44850         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44851         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44852         gl_PREREQ_SYS_H_WINSOCK2.
44853         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44854         * doc/posix-functions/gethostname.texi: More details.
44855
44856 2008-10-25  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44859         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44860         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44861
44862         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44863         here ...
44864         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44866         gl_UNISTD_H_DEFAULTS.
44867
44868 2008-10-25  Eric Blake  <ebb9@byu.net>
44869
44870         signbit: avoid spurious compiler failure
44871         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44872         declarations inside function.
44873
44874 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44875             Bruno Haible  <bruno@clisp.org>
44876
44877         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44878         * modules/random_r (Depends-on): Add stdint.
44879
44880 2008-10-24  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44883         Eggert.
44884         * modules/strerror (License): Likewise.
44885
44886 2008-10-24  Jim Meyering  <meyering@redhat.com>
44887
44888         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44889         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44890
44891 2008-10-24  Eric Blake  <ebb9@byu.net>
44892
44893         getgroups: fix compilation when getgroups is available
44894         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44895         but with <config.h> override of getgroups disabled.
44896
44897 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44898
44899         * doc/gnulib.texi (Header files): Add note about C++ problems.
44900         Explained by Bruno Haible <bruno@clisp.org>.
44901
44902 2008-10-23  Bruno Haible  <bruno@clisp.org>
44903
44904         Define a dummy SA_NODEFER macro on Interix.
44905         * lib/signal.in.h (SA_NODEFER): Define fallback.
44906         Reported by Aleksey Cheusov <cheusov@tut.by> via
44907         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44908
44909 2008-10-23  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/freadahead (License): Change to LGPLv2+.
44912         Suggested by Simon Josefsson.
44913
44914 2008-10-23  Jim Meyering  <meyering@redhat.com>
44915
44916         random_r: new module
44917         * modules/random_r: New file.
44918         * m4/random_r.m4: New file.
44919         * lib/random_r.c: New file, from glibc.
44920         * modules/random_r-tests: New file.
44921         * tests/test-random_r.c: New file.
44922         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44923          Declare.
44924         (RAND_MAX): Define.
44925         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44926         * modules/stdlib: Substitute them, too.
44927         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44928         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44929         * doc/glibc-functions/random_r.texi: Likewise.
44930         * doc/glibc-functions/setstate_r.texi: Likewise.
44931         * doc/glibc-functions/srandom_r.texi: Likewise.
44932         * config/srclist.txt: Mention it.
44933
44934 2008-10-23  David Lutterkort  <lutter@redhat.com>
44935
44936         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44937         link requirement
44938
44939 2008-10-23  Jim Meyering  <meyering@redhat.com>
44940
44941         selinux-h: mark parameters of stub functions as intentionally unused
44942         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44943         * lib/se-context.in.h: Likewise.
44944
44945 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44946
44947         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44948
44949 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44950
44951         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44952
44953 2008-10-22  Eric Blake  <ebb9@byu.net>
44954
44955         glthread/thread: avoid compiler warning
44956         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44957         Add unreachable abort to silence compiler.
44958
44959 2008-10-22  Eric Blake  <ebb9@byu.net>
44960
44961         netdb: also supply struct addrinfo for cygwin 1.5.x
44962         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44963         older cygwin.
44964         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44965         cygwin.
44966         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44967
44968 2008-10-22  Bruno Haible  <bruno@clisp.org>
44969
44970         * users.txt: Update entry about pspp.
44971
44972 2008-10-21  Bruno Haible  <bruno@clisp.org>
44973
44974         Simplification.
44975         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44976         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44977
44978         Simplification.
44979         * lib/ioctl.c (ioctl): Don't undefine.
44980         * lib/socket.c (socket): Don't undefine.
44981
44982         Remove unused module indicator macros.
44983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44984         GNULIB_$1 as a C macro.
44985
44986         * doc/posix-functions/close.texi: Undo last change.
44987         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44988         Windows platforms.
44989
44990 2008-10-21  Bruno Haible  <bruno@clisp.org>
44991
44992         Add gethostname() declaration to <unistd.h>.
44993         * lib/unistd.in.h (gethostname): New declaration.
44994         * lib/gethostname.c: Include <unistd.h>.
44995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44996         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44998         and HAVE_GETHOSTNAME.
44999         * modules/gethostname (Depends-on): Add unistd.
45000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45001         (Include): Specify <unistd.h>.
45002         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45003         HAVE_GETHOSTNAME.
45004         * tests/test-gethostname.c: Include <unistd.h> first.
45005
45006 2008-10-21  Bruno Haible  <bruno@clisp.org>
45007
45008         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45009         * modules/select-tests (Depends-on): Likewise.
45010         Reported by Simon Josefsson.
45011
45012 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45013
45014         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45015         * lib/accept.c: New file, based on winsock.c.
45016         * lib/bind.c: New file, based on winsock.c.
45017         * lib/connect.c: New file, based on winsock.c.
45018         * lib/getpeername.c: New file, based on winsock.c.
45019         * lib/getsockname.c: New file, based on winsock.c.
45020         * lib/getsockopt.c: New file, based on winsock.c.
45021         * lib/ioctl.c: New file, based on winsock.c.
45022         * lib/listen.c: New file, based on winsock.c.
45023         * lib/recv.c: New file, based on winsock.c.
45024         * lib/recvfrom.c: New file, based on winsock.c.
45025         * lib/send.c: New file, based on winsock.c.
45026         * lib/sendto.c: New file, based on winsock.c.
45027         * lib/setsockopt.c: New file, based on winsock.c.
45028         * lib/shutdown.c: New file, based on winsock.c.
45029         * lib/socket.c: New file, based on winsock.c.
45030         * lib/w32sock.h: New file, based on winsock.c.
45031         * lib/winsock.c: Remove file.
45032         * modules/accept: Likewise.
45033         * modules/bind: Likewise.
45034         * modules/connect: Likewise.
45035         * modules/getpeername: Likewise.
45036         * modules/getsockname: Likewise.
45037         * modules/getsockopt: Likewise.
45038         * modules/ioctl: Likewise.
45039         * modules/listen: Likewise.
45040         * modules/recv: Likewise.
45041         * modules/recvfrom: Likewise.
45042         * modules/send: Likewise.
45043         * modules/sendto: Likewise.
45044         * modules/setsockopt: Likewise.
45045         * modules/shutdown: Likewise.
45046         * modules/socket: Use socket.c instead of winsock.c.
45047         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45048         * doc/posix-functions/accept.texi: Doc fix.
45049         * doc/posix-functions/bind.texi: Doc fix.
45050         * doc/posix-functions/close.texi: Doc fix.
45051         * doc/posix-functions/connect.texi: Doc fix.
45052         * doc/posix-functions/getpeername.texi: Doc fix.
45053         * doc/posix-functions/getsockname.texi: Doc fix.
45054         * doc/posix-functions/getsockopt.texi: Doc fix.
45055         * doc/posix-functions/ioctl.texi: Doc fix.
45056         * doc/posix-functions/listen.texi: Doc fix.
45057         * doc/posix-functions/recv.texi: Doc fix.
45058         * doc/posix-functions/recvfrom.texi: Doc fix.
45059         * doc/posix-functions/send.texi: Doc fix.
45060         * doc/posix-functions/sendto.texi: Doc fix.
45061         * doc/posix-functions/setsockopt.texi: Doc fix.
45062         * doc/posix-functions/shutdown.texi: Doc fix.
45063         * doc/posix-functions/socket.texi: Doc fix.
45064
45065 2008-10-20  Bruno Haible  <bruno@clisp.org>
45066
45067         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45068         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45069         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45070         as an alias for SIGABRT.
45071         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45072         (sigaction): Map it to SIGABRT.
45073         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45074
45075 2008-10-20  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/fts.c: Don't include lstat.h.
45078         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45079
45080         Move the lstat() declaration to <sys/stat.h>.
45081         * lib/lstat.h: Remove file.
45082         * lib/sys_stat.in.h: Add special invocation convention.
45083         (lstat): New declaration.
45084         * lib/lstat.c (orig_lstat): New function.
45085         (rpl_lstat): Use orig_lstat instead of lstat.
45086         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45087         AC_C_INLINE. Set REPLACE_LSTAT.
45088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45089         and REPLACE_LSTAT.
45090         * modules/lstat (Files): Remove lib/lstat.h.
45091         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45092         (Include): Specify <sys/stat.h> instead of lstat.h.
45093         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45094         REPLACE_LSTAT.
45095         * NEWS: Mention the change.
45096
45097 2008-10-20  Bruno Haible  <bruno@clisp.org>
45098
45099         * modules/posix_spawn-tests: New file.
45100         * tests/test-posix_spawn3.c: New file.
45101
45102 2008-10-20  Bruno Haible  <bruno@clisp.org>
45103
45104         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45105         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45106         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45107         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45108         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45109
45110 2008-10-20  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45113         of posix_spawn on AIX 5.3.
45114
45115 2008-10-20  Bruno Haible  <bruno@clisp.org>
45116
45117         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45118
45119 2008-10-20  Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45122         of AC_LANG_PROGRAM.
45123
45124 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45125
45126         * lib/netdb.in.h: Don't define GNU specific constants until they
45127         are supported or needed.  Reported by Bruno Haible
45128         <bruno@clisp.org>.
45129
45130 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45131
45132         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45133
45134 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45135
45136         * lib/getaddrinfo.h: Remove file.
45137         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45138         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45139         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45140         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45141         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45142         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45143         * tests/test-getaddrinfo.c: Likewise.
45144         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45145         * NEWS: Mention change.
45146
45147 2008-10-19  Bruno Haible  <bruno@clisp.org>
45148
45149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45150
45151 2008-10-19  Bruno Haible  <bruno@clisp.org>
45152
45153         * lib/wait-process.c: Include simply <sys/wait.h>.
45154         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45155         WIFSTOPPED): Remove fallback definitions.
45156         * modules/wait-process (Depends-on): Add sys_wait.
45157
45158         New module 'sys_wait'.
45159         * modules/sys_wait: New file.
45160         * lib/sys_wait.in.h: New file, partially copied from
45161         lib/wait-process.c.
45162         * m4/sys_wait_h.m4: New file.
45163         * doc/posix-headers/sys_wait.texi: Mention the new module.
45164
45165 2008-10-19  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45168
45169 2008-10-19  Bruno Haible  <bruno@clisp.org>
45170
45171         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45172         * lib/wait-process.c (WAIT_T): Remove type.
45173         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45174         (wait_subprocess): Update.
45175
45176 2008-10-19  Bruno Haible  <bruno@clisp.org>
45177
45178         New module 'atoll'.
45179         * modules/atoll: New file.
45180         * lib/stdlib.in.h (atoll): New declaration.
45181         * lib/atoll.c: New file, from glibc with modifications.
45182         * m4/atoll.m4: New file.
45183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45184         HAVE_ATOLL.
45185         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45186         * doc/posix-functions/atoll.texi: Mention the new module.
45187
45188 2008-10-19  Bruno Haible  <bruno@clisp.org>
45189
45190         Add strtoull() declaration to <stdlib.h>.
45191         * lib/stdlib.in.h (strtoull): New declaration.
45192         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45193         Set HAVE_STRTOULL.
45194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45195         HAVE_STRTOULL.
45196         * modules/strtoull (Depends-on): Add stdlib.
45197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45198         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45199         HAVE_STRTOULL.
45200
45201 2008-10-19  Bruno Haible  <bruno@clisp.org>
45202
45203         Add strtoll() declaration to <stdlib.h>.
45204         * lib/stdlib.in.h (strtoll): New declaration.
45205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45206         Set HAVE_STRTOLL.
45207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45208         HAVE_STRTOLL.
45209         * modules/strtoll (Depends-on): Add stdlib.
45210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45211         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45212
45213 2008-10-19  Bruno Haible  <bruno@clisp.org>
45214
45215         * modules/bcopy (Depends-on): Add strings.
45216         (Include): Specify <strings.h>.
45217
45218 2008-10-19  Bruno Haible  <bruno@clisp.org>
45219
45220         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45221
45222 2008-10-19  Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45225         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45226         mingw.
45227
45228 2008-10-19  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/atanl.c: Don't include isnanl.h.
45231         * lib/cosl.c: Likewise.
45232         * lib/ldexpl.c: Likewise.
45233         * lib/logl.c: Likewise.
45234         * lib/sinl.c: Likewise.
45235         * lib/sqrtl.c: Likewise.
45236         * lib/tanl.c: Likewise.
45237
45238         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45239         * lib/isnanf.h: Remove file.
45240         * lib/isnand.h: Remove file.
45241         * lib/isnanl.h: Remove file.
45242         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45243         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45244         macros.
45245         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45246         HAVE_ISNANF, don't define it as a C macro.
45247         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45248         HAVE_ISNAND, don't define it as a C macro.
45249         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45250         HAVE_ISNANL, don't define it as a C macro.
45251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45252         HAVE_ISNAN[FDL].
45253         * modules/isnanf (Files): Remove lib/isnanf.h.
45254         (Depends-on): Add math.
45255         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45256         (Include): Specify <math.h> instead of isnanf.h.
45257         * modules/isnand (Files): Remove lib/isnand.h.
45258         (Depends-on): Add math.
45259         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45260         (Include): Specify <math.h> instead of isnand.h.
45261         * modules/isnanl (Files): Remove lib/isnanl.h.
45262         (Depends-on): Add math.
45263         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45264         (Include): Specify <math.h> instead of isnanl.h.
45265         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45266         HAVE_ISNAN[FDL].
45267         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45268         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45269         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45270         * NEWS: Mention the change.
45271
45272 2008-10-18  Bruno Haible  <bruno@clisp.org>
45273
45274         Add getusershell(), setusershell(), endusershell() declarations to
45275         <unistd.h>.
45276         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45277         declarations.
45278         * lib/getusershell.c: Include unistd.h.
45279         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45280         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45281         HAVE_GETUSERSHELL.
45282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45283         and HAVE_GETUSERSHELL.
45284         * modules/getusershell (Depends-on): Add unistd, extensions.
45285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45286         (Include): Specify <unistd.h>.
45287         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45288         HAVE_GETUSERSHELL.
45289
45290 2008-10-18  Bruno Haible  <bruno@clisp.org>
45291
45292         Add a getloadavg() declaration to <stdlib.h>.
45293         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45294         getloadavg declaration.
45295         (getloadavg): New declaration.
45296         * lib/getloadavg.c: Include <stdlib.h> first.
45297         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45298         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45299         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45301         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45302         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45304         (Include): Specify <stdlib.h>.
45305         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45306         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45307
45308 2008-10-18  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/dirchownmod.c: Don't include lchmod.h.
45311
45312         Move the lchmod() declaration to <sys/stat.h>.
45313         * lib/lchmod.h: Remove file.
45314         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45315         (lchmod): New declaration, moved here from lib/lchown.h.
45316         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45317         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45319         and HAVE_LCHMOD.
45320         * modules/lchmod (Files): Remove lib/lchmod.h.
45321         (Depends-on): Add sys_stat, extensions.
45322         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45323         (Include): Specify <sys/stat.h> instead of lchmod.h.
45324         * modules/sys_stat (Depends-on): Add link-warning.
45325         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45326         definition of GL_LINK_WARNING.
45327         * NEWS: Mention the change.
45328
45329 2008-10-18  Bruno Haible  <bruno@clisp.org>
45330
45331         * lib/fchdir.c: Don't include dirfd.h.
45332         * lib/fts.c: Likewise.
45333         * lib/getcwd.c: Likewise.
45334         * lib/glob.c: Likewise.
45335
45336         Move the dirfd() declaration to <dirent.h>.
45337         * lib/dirfd.h: Remove file.
45338         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45339         (dirfd): New declaration.
45340         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45341         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45342         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45343         HAVE_DECL_DIRFD.
45344         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45345         HAVE_DECL_DIRFD.
45346         * modules/dirfd (Files): Remove lib/dirfd.h.
45347         (Depends-on): Add dirent, extensions.
45348         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45349         (Include): Specify <dirent.h> instead of dirfd.h.
45350         * modules/dirent (Depends-on): Add link-warning.
45351         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45352         definition of GL_LINK_WARNING.
45353         * NEWS: Mention the change.
45354
45355 2008-10-18  Bruno Haible  <bruno@clisp.org>
45356
45357         Move the euidaccess() declaration to <unistd.h>.
45358         * lib/euidaccess.h: Remove file.
45359         * lib/unistd.in.h (euidaccess): New declaration.
45360         * lib/euidaccess.c: Don't include euidaccess.h.
45361         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45362         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45364         and HAVE_EUIDACCESS.
45365         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45366         (Depends-on): Add unistd.
45367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45368         (Include): Specify <unistd.h> instead of euidaccess.h.
45369         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45370         HAVE_EUIDACCESS.
45371         * NEWS: Mention the change.
45372
45373 2008-10-18  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45376
45377         Move the getdomainname() declaration to <unistd.h>.
45378         * lib/getdomainname.h: Remove file.
45379         * lib/unistd.in.h (getdomainname): New declaration.
45380         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45381         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45382         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45383         HAVE_GETDOMAINNAME.
45384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45385         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45386         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45387         (Depends-on): Add unistd, extensions.
45388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45389         (Includes): Specify <unistd.h> instead of getdomainname.h.
45390         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45391         HAVE_GETDOMAINNAME.
45392         * NEWS: Mention the change.
45393
45394 2008-10-18  Bruno Haible  <bruno@clisp.org>
45395
45396         * modules/dirent: New file.
45397         * m4/dirent_h.m4: New file.
45398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45399         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45400         * modules/fchdir (Files): Remove lib/dirent.in.h.
45401         (Depends-on): Add dirent.
45402         (Makefile.am): Move rules to modules/dirent.
45403         * doc/posix-headers/dirent.texi: Mention the new module.
45404
45405 2008-10-18  Bruno Haible  <bruno@clisp.org>
45406
45407         Avoid -Wunused-parameter warnings in public gnulib header files.
45408         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45409         macro.
45410         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45411
45412 2008-10-18  Bruno Haible  <bruno@clisp.org>
45413
45414         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45415         * doc/glibc-functions/error.texi: Mention the module 'error'.
45416         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45417         * doc/glibc-functions/getdomainname.texi: Mention the module
45418         'getdomainname'.
45419         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45420         * doc/glibc-functions/getpagesize.texi: Mention the module
45421         'getpagesize'.
45422         * doc/glibc-functions/getusershell.texi: Mention the module
45423         'getusershell'.
45424         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45425         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45426         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45427         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45428         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45429         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45430         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45431         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45432         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45433         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45434         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45435         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45436         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45437         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45438
45439 2008-10-17  Bruno Haible  <bruno@clisp.org>
45440
45441         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45442         HP-UX and IRIX, use -0.0L.
45443         * tests/test-ceill.c (minus_zero): Likewise.
45444         * tests/test-floorl.c (minus_zero): Likewise.
45445         * tests/test-frexpl.c (minus_zero): Likewise.
45446         * tests/test-isnan.c (minus_zerol): Likewise.
45447         * tests/test-isnanl.h (minus_zero): Likewise.
45448         * tests/test-ldexpl.c (minus_zero): Likewise.
45449         * tests/test-roundl.c (minus_zero): Likewise.
45450         * tests/test-signbit.c (minus_zerol): Likewise.
45451         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45452         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45453         * tests/test-truncl.c (minus_zero): Likewise.
45454         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45455         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45456         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45457         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45458
45459 2008-10-17  Bruno Haible  <bruno@clisp.org>
45460
45461         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45462         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45463         that it gets activated only for gcc >= 3.0.
45464         * lib/dirent.in.h: Likewise.
45465         * lib/errno.in.h: Likewise.
45466         * lib/fcntl.in.h: Likewise.
45467         * lib/float.in.h: Likewise.
45468         * lib/iconv.in.h: Likewise.
45469         * lib/inttypes.in.h: Likewise.
45470         * lib/locale.in.h: Likewise.
45471         * lib/math.in.h: Likewise.
45472         * lib/netdb.in.h: Likewise.
45473         * lib/netinet_in.in.h: Likewise.
45474         * lib/search.in.h: Likewise.
45475         * lib/signal.in.h: Likewise.
45476         * lib/spawn.in.h: Likewise.
45477         * lib/stdarg.in.h: Likewise.
45478         * lib/stdint.in.h: Likewise.
45479         * lib/stdio.in.h: Likewise.
45480         * lib/stdlib.in.h: Likewise.
45481         * lib/string.in.h: Likewise.
45482         * lib/strings.in.h: Likewise.
45483         * lib/sys_file.in.h: Likewise.
45484         * lib/sys_ioctl.in.h: Likewise.
45485         * lib/sys_select.in.h: Likewise.
45486         * lib/sys_socket.in.h: Likewise.
45487         * lib/sys_stat.in.h: Likewise.
45488         * lib/sys_time.in.h: Likewise.
45489         * lib/sysexits.in.h: Likewise.
45490         * lib/time.in.h: Likewise.
45491         * lib/unistd.in.h: Likewise.
45492         * lib/wchar.in.h: Likewise.
45493         * lib/wctype.in.h: Likewise.
45494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45495
45496 2008-10-17  Jim Meyering  <meyering@redhat.com>
45497
45498         ignore-value: don't depend on inline module
45499         * modules/ignore-value (Depends-on): Remove 'inline'.
45500         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45501         Suggestion from Bruno Haible.
45502
45503 2008-10-17  Bruno Haible  <bruno@clisp.org>
45504
45505         New implementation of condition variables for Win32.
45506         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45507         (gl_linked_waitqueue_t): New type.
45508         (gl_cond_t): Use it.
45509         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45510         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45511         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45512         (glthread_cond_init_func, glthread_cond_wait_func,
45513         glthread_cond_timedwait_func, glthread_cond_signal_func,
45514         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45515         Reimplemented on the basis of gl_linked_waitqueue_t.
45516         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45517         gl_waitqueue_t.
45518         (gl_rwlock_t): Update.
45519         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45520
45521 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45522
45523         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45524         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45525
45526 2008-10-17  Jim Meyering  <meyering@redhat.com>
45527
45528         ignore-value: new module
45529         * modules/ignore-value: New file.
45530         * lib/ignore-value.h: New file.
45531         * MODULES.html.sh (Compiler warning management): New section,
45532         just for this module.  More to come.
45533
45534 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45535
45536         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45537         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45538         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45539
45540 2008-10-16  Jim Meyering  <meyering@redhat.com>
45541
45542         openat-die.c: avoid 'no previous prototype' warning
45543         * lib/openat-die.c: Include "openat.h".
45544         Reported by Reuben Thomas <rrt@sc3d.org>.
45545
45546 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45547
45548         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45549         * lib/netdb.in.h: Fix typo.
45550         Reported by Bruno Haible  <bruno@clisp.org>
45551
45552         * lib/netdb.in.h: Include sys/socket.h for platforms without
45553         netdb.h, to get structures like hostent on MinGW.
45554         * modules/netdb (Depends-on): Add sys_socket.
45555
45556 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45557
45558         * modules/netdb, modules/netdb-tests: New file.
45559         * m4/netdb_h.m4: New file.
45560         * lib/netdb.in.h: Add, currently just an empty file pending
45561         definitions.
45562         * tests/test-netdb.c: New file.
45563         * doc/posix-headers/netdb.texi: Mention that we replace it if
45564         needed.
45565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45566         netdb.
45567
45568 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45569
45570         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45571         with code.
45572
45573 2008-10-13  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/glthread/cond.c (glthread_cond_wait_func,
45576         glthread_cond_timedwait_func): Add a comment.
45577
45578 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45579
45580         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45581         * tests/test-select.c: Likewise,
45582
45583 2008-10-13  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/glthread/cond.c (glthread_cond_wait_func,
45586         glthread_cond_timedwait_func): Fix variable name.
45587         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45588
45589 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45590
45591         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45593         struct sockaddr.sa_len.
45594         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45595
45596 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45597
45598         * build-aux/pmccabe2html: Add css and css_url parameters.
45599
45600 2008-10-12  Bruno Haible  <bruno@clisp.org>
45601
45602         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45603         calling aclx_get.
45604         Reported by Rainer Tammer <tammer@tammer.net>.
45605
45606 2008-10-12  Bruno Haible  <bruno@clisp.org>
45607
45608         Use msvcrt aware primitives for creation/termination of Win32 threads.
45609         * lib/glthread/thread.c: Include <process.h>.
45610         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45611         (wrapper_func): Update signature.
45612         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45613
45614 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45615             Bruno Haible  <bruno@clisp.org>
45616
45617         Provide a Win32 implementation of the 'cond' module.
45618         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45619         * lib/glthread/cond.c (glthread_cond_init_func,
45620         glthread_cond_wait_func, glthread_cond_timedwait_func,
45621         glthread_cond_signal_func, glthread_cond_broadcast_func,
45622         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45623         * modules/cond (Dependencies): Add gettimeofday.
45624
45625 2008-10-11  Bruno Haible  <bruno@clisp.org>
45626
45627         Make sleep work on older versions of mingw.
45628         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45629         only whether it exists.
45630         * doc/posix-functions/sleep.texi: Mention the problem with older
45631         versions of mingw.
45632
45633 2008-10-11  Bruno Haible  <bruno@clisp.org>
45634
45635         New module 'shutdown'.
45636         * modules/shutdown: New file.
45637         * lib/sys_socket.in.h (shutdown): New declaration.
45638         * lib/winsock.c (shutdown): New function.
45639         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45640         GNULIB_SHUTDOWN.
45641         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45642         * doc/posix-functions/shutdown.texi: Document the new module.
45643
45644 2008-10-11  Jim Meyering  <meyering@redhat.com>
45645
45646         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45647
45648 2008-10-11  Bruno Haible  <bruno@clisp.org>
45649
45650         New module 'fclose'.
45651         * modules/fclose: New file.
45652         * lib/stdio.in.h (fclose): New declaration.
45653         * lib/fclose.c: New file.
45654         * m4/fclose.m4: New file.
45655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45656         REPLACE_FCLOSE.
45657         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45658         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45659         REPLACE_FCLOSE.
45660         * modules/close (Depends-on): fclose.
45661         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45662
45663 2008-10-11  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45666         set errno and don't call _close.
45667
45668 2008-10-10  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45671         ACL, not afterwards. Fixes test failure on Cygwin.
45672
45673 2008-10-09  Ben Pfaff  <blp@gnu.org>
45674
45675         * build-aux/announce-gen: Fix gnulib version related part of usage
45676         message.  Die with a useful error message if no tarballs are
45677         found.
45678
45679 2008-10-10  Jim Meyering  <meyering@redhat.com>
45680
45681         bootstrap: use git's --depth=N option only if it's supported
45682         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45683         recognize the --depth option.  Reported by Pádraig Brady.
45684
45685 2008-10-09  Bruno Haible  <bruno@clisp.org>
45686
45687         New module 'ioctl'.
45688         * modules/ioctl: New file.
45689         * lib/sys_socket.in.h (ioctl): Remove declaration.
45690         * lib/winsock.c: Include <sys/ioctl.h>.
45691         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45692         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45693         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45694         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45695         * doc/posix-functions/ioctl.texi: Mention the new module.
45696
45697 2008-10-09  Bruno Haible  <bruno@clisp.org>
45698
45699         New module 'sys_ioctl'.
45700         * lib/sys_ioctl.in.h: New file.
45701         * m4/sys_ioctl_h.m4: New file.
45702         * modules/sys_ioctl: New file.
45703         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45704
45705 2008-10-09  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45708         * lib/winsock.c: Include <stdarg.h>.
45709         (rpl_ioctl): Change to second argument 'int' and then varargs.
45710
45711 2008-10-09  Bruno Haible  <bruno@clisp.org>
45712
45713         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45714         when the sys_socket module is present and the system has <winsock2.h>.
45715
45716 2008-10-09  Bruno Haible  <bruno@clisp.org>
45717
45718         * doc/posix-functions/close.texi: Mention module 'close' instead of
45719         module 'sys_socket'.
45720
45721 2008-10-09  Bruno Haible  <bruno@clisp.org>
45722
45723         * doc/glibc-headers/sys_ioctl.texi: New file.
45724         * doc/gnulib.texi: Include it.
45725
45726 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45727             Bruno Haible  <bruno@clisp.org>
45728
45729         Combine the two replacements of 'close'.
45730         * lib/sys_socket.in.h (close): Define to a reminder to include
45731         <unistd.h>.
45732         (_gl_close_fd_maybe_socket): New declaration.
45733         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45734         * lib/winsock.c (close): Remove undefinition.
45735         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45736         needed for the gnulib module 'close'.
45737         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45738         define to an error symbol or to a warning, if suitable.
45739         * lib/close.c: Include <sys/socket.h>.
45740         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45742         UNISTD_H_HAVE_WINSOCK2_H.
45743         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45745         UNISTD_H_HAVE_WINSOCK2_H.
45746         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45747         (configure.ac): Set a module indicator.
45748         (Makefile.am): Substitute GNULIB_CLOSE.
45749         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45750         * modules/poll-tests (Depends-on): Add close.
45751         * modules/select-tests (Depends-on): Likewise.
45752
45753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45754             Bruno Haible  <bruno@clisp.org>
45755
45756         New module 'close'.
45757         * modules/close: New file.
45758         * lib/unistd.in.h (close): Move declaration out of the
45759         FCHDIR_REPLACEMENT scope.
45760         (_gl_unregister_fd): New declaration.
45761         * lib/close.c: New file.
45762         * lib/fchdir.c (rpl_close): Remove function.
45763         * m4/close.m4: New file.
45764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45765         close.
45766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45767         REPLACE_CLOSE.
45768         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45769         REPLACE_CLOSE.
45770         * modules/fchdir (Depends-on): Add close.
45771
45772 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45773             Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/fcntl.in.h (open): Simplify conditionals.
45776         (_gl_register_fd): New declaration.
45777         * lib/fchdir.c (rpl_open): Remove function.
45778         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45779         also.
45780         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45782         open.
45783
45784 2008-10-09  Jim Meyering  <meyering@redhat.com>
45785
45786         GNUmakefile: use the more name-space-friendly "_version"
45787         * top/GNUmakefile (_dummy): Update.
45788         (_version): Rename from "version".
45789
45790 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45791             Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45794         rpl_close.
45795         (_gl_register_fd): New function, extracted from rpl_open.
45796         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45797         (rpl_open, rpl_opendir): Use _gl_register_fd.
45798
45799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45800
45801         Fix organization of 'open' replacement.
45802         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45803         (gl_FUNC_OPEN): Use it.
45804         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45805
45806 2008-10-08  Bruno Haible  <bruno@clisp.org>
45807
45808         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45809
45810 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45811
45812         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45813         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45814         listen).
45815
45816 2008-10-08  Eric Blake  <ebb9@byu.net>
45817
45818         GNUmakefile: add 'make version' target
45819         * top/GNUmakefile (_curr-ver): Split version update rules...
45820         (version): ...into a target.
45821
45822 2008-10-07  Bruno Haible  <bruno@clisp.org>
45823
45824         Use a more portable replacement expression for -0.0L.
45825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45826         instead of -0.0L. Fix m4 quotation.
45827
45828         * tests/test-signbit.c: Include <float.h>.
45829         (minus_zero): New variable.
45830         (test_signbitl): Use minus_zero instead of -zero.
45831         * modules/signbit-tests (Depends-on): Add float.
45832
45833         * tests/test-ceill.c: Include <float.h>.
45834         (zero): Remove variable.
45835         (minus_zero): New variable.
45836         (main): Use minus_zero instead of -zero.
45837         * modules/ceill-tests (Depends-on): Add float.
45838
45839         * tests/test-floorl.c: Include <float.h>.
45840         (zero): Remove variable.
45841         (minus_zero): New variable.
45842         (main): Use minus_zero instead of -zero.
45843         * modules/floorl-tests (Depends-on): Add float.
45844
45845         * tests/test-roundl.c: Include <float.h>.
45846         (zero): Remove variable.
45847         (minus_zero): New variable.
45848         (main): Use minus_zero instead of -zero.
45849         * modules/roundl-tests (Depends-on): Add float.
45850
45851         * tests/test-truncl.c: Include <float.h>.
45852         (zero): Remove variable.
45853         (minus_zero): New variable.
45854         (main): Use minus_zero instead of -zero.
45855         * modules/truncl-tests (Depends-on): Add float.
45856
45857         * tests/test-frexpl.c (zero): Remove variable.
45858         (minus_zero): New variable.
45859         (main): Use minus_zero instead of -zero.
45860         * modules/frexpl-tests (Depends-on): Add float.
45861
45862         * tests/test-isnan.c (zerol): Remove variable.
45863         (minus_zerol): New variable.
45864         (test_long_double): Use minus_zerol instead of -zerol.
45865         * modules/isnan-tests (Depends-on): Add float.
45866
45867         * tests/test-isnanl.h (zero): Remove variable.
45868         (minus_zero): New variable.
45869         (main): Use minus_zero instead of -zero.
45870         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45871         * modules/isnanl-tests (Depends-on): Add float.
45872
45873         * tests/test-ldexpl.c (zero): Remove variable.
45874         (minus_zero): New variable.
45875         (main): Use minus_zero instead of -zero.
45876         * modules/ldexpl-tests (Depends-on): Add float.
45877
45878         * tests/test-snprintf-posix.h (zerol): Remove variable.
45879         (minus_zerol): New variable.
45880         (test_function): Use minus_zerol instead of -zerol.
45881         * modules/snprintf-posix-tests (Depends-on): Add float.
45882         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45883
45884         * tests/test-sprintf-posix.h (zerol): Remove variable.
45885         (minus_zerol): New variable.
45886         (test_function): Use minus_zerol instead of -zerol.
45887         * modules/sprintf-posix-tests (Depends-on): Add float.
45888         * modules/vsprintf-posix-tests (Depends-on): Add float.
45889
45890         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45891         (minus_zerol): New variable.
45892         (test_function): Use minus_zerol instead of -zerol.
45893         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45894
45895         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45896         (minus_zerol): New variable.
45897         (test_function): Use minus_zerol instead of -zerol.
45898         * modules/vasprintf-posix-tests (Depends-on): Add float.
45899
45900 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45901
45902         * MODULES.html.sh (Support for building documentation): Mention
45903         pmccabe2html.  Sort entries.
45904
45905         Add pmccabe2html module, from gnupdf.
45906         * build-aux/pmccabe.css: New file.
45907         * build-aux/pmccabe2html: New file.
45908         * m4/pmccabe2html.m4: New file.
45909         * modules/pmccabe2html: New file.
45910
45911 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45912
45913         flock: new module
45914         * MODULES.html.sh: Add to list of modules.
45915         * lib/flock.c: flock implementation for Windows and Unix systems
45916         which have fcntl.
45917         * doc/glibc-functions/flock.texi: Update documentation.
45918         * lib/sys_file.in.h: <sys/file.h> header file.
45919         * m4/flock.m4: M4 macros.
45920         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45921         * modules/flock: flock module.
45922         * modules/flock-tests: flock tests module.
45923         * modules/sys_file: sys/file.h module.
45924         * tests/test-flock.c: test suite for flock.
45925
45926 2008-10-06  Jim Meyering  <meyering@redhat.com>
45927
45928         bootstrap: check for LT_INIT more portably still ;-)
45929         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45930         Spotted by Bruno Haible.
45931
45932 2008-10-06  Eric Blake  <ebb9@byu.net>
45933
45934         test-signbit: avoid tripping Irix cc bug on -0.0L
45935         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45936         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45937         entire testsuite consistent and avoids an Irix 6.2 bug.
45938
45939 2008-10-05  Bruno Haible  <bruno@clisp.org>
45940             Jim Meyering  <jim@meyering.net>
45941
45942         Add an option for ignoring EPIPE during close_stdout.
45943         * lib/closeout.h: Include <stdbool.h>.
45944         (close_stdout_set_ignore_EPIPE): New declaration.
45945         * lib/closeout.c: Include <stdbool.h>.
45946         (ignore_EPIPE): New variable.
45947         (close_stdout_set_ignore_EPIPE): New function.
45948         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45949         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45950         failure.
45951         * modules/closeout (Depends-on): Add stdbool.
45952
45953 2008-10-05  Bruno Haible  <bruno@clisp.org>
45954
45955         * modules/accept: New file.
45956         * modules/bind: New file.
45957         * modules/connect: New file.
45958         * modules/getpeername: New file.
45959         * modules/getsockname: New file.
45960         * modules/getsockopt: New file.
45961         * modules/listen: New file.
45962         * modules/recv: New file.
45963         * modules/recvfrom: New file.
45964         * modules/send: New file.
45965         * modules/sendto: New file.
45966         * modules/setsockopt: New file.
45967         * modules/socket: New file.
45968         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45969         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45970         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45971         the particular module is requested. Add a link warning when the
45972         particular module is not requested.
45973         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45974         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45975         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45976         the particular module is requested.
45977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45978         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45979         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45980         * modules/sys_socket (Depends-on): Add link-warning.
45981         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45982         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45983         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45984         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45985         GL_LINK_WARNING.
45986         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45987         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45988         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45989         * doc/posix-functions/getpeername.texi: Mention the new module
45990         'getpeername'.
45991         * doc/posix-functions/getsockname.texi: Mention the new module
45992         'getsockname'.
45993         * doc/posix-functions/getsockopt.texi: Mention the new module
45994         'getsockopt'.
45995         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45996         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45997         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45998         * doc/posix-functions/send.texi: Mention the new module 'send'.
45999         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46000         * doc/posix-functions/setsockopt.texi: Mention the new module
46001         'setsockopt'.
46002         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46003         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46004         listen, connect, accept.
46005         * modules/select-tests (Depends-on): Likewise.
46006
46007 2008-10-05  Bruno Haible  <bruno@clisp.org>
46008
46009         * lib/winsock.c (strerror): Remove unused #undef.
46010         (rpl_close): Remove unused local variable.
46011
46012         * modules/sys_socket (Depends-on); Add errno.
46013
46014 2008-10-05  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46017         (select): Add a link warning when the 'select' module is not used.
46018         * modules/sys_select (Depends-on): Add link-warning.
46019         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46020         Suggested by Paolo Bonzini.
46021
46022 2008-10-05  Jim Meyering  <meyering@redhat.com>
46023
46024         bootstrap: check for LT_INIT more portably
46025         * build-aux/bootstrap: Avoid using grep -E, since it's not
46026         portable enough.  Suggestion from Bruno Haible.
46027
46028 2008-10-05  Bruno Haible  <bruno@clisp.org>
46029
46030         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46031         as being fixed by gnulib.
46032
46033 2008-10-05  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/select-tests: New file, mostly copied from
46036         modules/sys_select-tests.
46037         * tests/test-select.c: New file, mostly copied from
46038         tests/test-sys_select.c.
46039         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46040         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46041         (Makefile.am): Remove test_sys_select_LDADD.
46042
46043         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46044         to an undefined symbol, for an error message.
46045         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46046         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46047         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46048         winsock-select.c here.
46049         * modules/sys_select (Files): Remove lib/winsock-select.c.
46050         (Depends-on): Remove alloca.
46051         (Makefile.am): Substitute GNULIB_SELECT.
46052         * modules/select: New file.
46053         * doc/posix-functions/select.texi: Update.
46054
46055 2008-10-05  Bruno Haible  <bruno@clisp.org>
46056
46057         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46058         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46059         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46060         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46061         getdtablesize.
46062         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46063         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46064
46065 2008-10-05  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/getdtablesize-tests: New file.
46068         * tests/test-getdtablesize.c: New file.
46069
46070         New module 'getdtablesize'.
46071         * lib/unistd.in.h (getdtablesize): New declaration.
46072         * lib/getdtablesize.c: New file.
46073         * m4/getdtablesize.m4: New file.
46074         * modules/getdtablesize: New file.
46075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46076         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46077         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46078         HAVE_GETDTABLESIZE.
46079         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46080
46081 2008-10-05  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/sched (Makefile.am): Fix typo.
46084         Reported by Simon Josefsson.
46085
46086 2008-10-05  Jim Meyering  <meyering@redhat.com>
46087
46088         bootstrap: check for LT_INIT, too
46089         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46090         are deprecated.  Suggestion from Ralf Wildenhues.
46091
46092 2008-10-05  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46095         overriding them by ours.
46096         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46097
46098 2008-10-05  Jim Meyering  <meyering@redhat.com>
46099
46100         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46101         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46102         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46103
46104 2008-10-04  Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/dup2 (License): Change to LGPLv2+.
46107         * modules/sleep (License): Likewise.
46108         * modules/perror (License): Likewise.
46109         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46110         Blake.
46111         * modules/signal (License): Likewise.
46112         * modules/sigprocmask (License): Likewise.
46113         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46114         Meyering.
46115
46116 2008-10-04  Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46119         Reported by Rainer Tammer <tammer@tammer.net>.
46120
46121 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46122             Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46125         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46126         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46127
46128 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46129
46130         filevercmp: new module
46131         * lib/filevercmp.h: New function filevercmp comparing version strings.
46132         * lib/filevercmp.c: Implementation of filevercmp function.
46133         * modules/filevercmp: Module metadata.
46134         * tests/test-filevercmp.c: Unit test for new module.
46135         * modules/filevercmp-tests: Unit test metadata.
46136         * MODULES.html.sh: Add filevercmp module.
46137
46138 2008-10-03  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/c-ctype.h: Add comment.
46141         Reported by Jim Meyering.
46142
46143 2008-10-02  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46146
46147 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46148
46149         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46150         name of bootstrap.conf accordingly.
46151
46152 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46153
46154         * build-aux/bootstrap: Install git-merge-changelog configuration
46155         items into .gitconfig if needed.
46156
46157 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46158
46159         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46160         git repository, and initialize/update it accordingly.
46161
46162 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46163
46164         * modules/fsync-tests: New file.
46165         * tests/test-fsync.c: New file.
46166
46167         New module 'fsync'.
46168         * lib/fsync.c: New file.
46169         * m4/fsync.m4: New file.
46170         * modules/fsync: New file.
46171         * lib/unistd.in.h (fsync): New declaration.
46172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46173         GNULIB_FSYNC and HAVE_FSYNC.
46174         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46175         * MODULES.html.sh (posix_functions): Add fsync.
46176         * doc/posix-functions/fsync.texi: Mention the new module.
46177
46178 2008-10-02  Jim Meyering  <meyering@redhat.com>
46179
46180         fts.c: sync with similar code from coreutils' remove.c
46181         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46182         Guard also with "#if defined __linux__", since for now at least,
46183         this code is Linux-kernel-specific.
46184
46185 2008-10-02  Jim Meyering  <meyering@redhat.com>
46186
46187         fts: bug fixes
46188         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46189         Include <sys/vfs.h>, not <sys/statfs.h>.
46190
46191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46192         Include <sys/vfs.h>, not <sys/statfs.h>.
46193
46194 2008-10-01  Bruno Haible  <bruno@clisp.org>
46195
46196         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46198         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46199         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46200         * doc/posix-functions/posix_spawnp.texi: Likewise.
46201         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46202         whether posix_spawn actually works.
46203         * m4/pipe.m4 (gl_PIPE): Likewise.
46204         * modules/execute (Files): Add m4/posix_spawn.m4.
46205         * modules/pipe (Files): Add m4/posix_spawn.m4.
46206         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46207
46208 2008-10-01  Jim Meyering  <meyering@redhat.com>
46209
46210         remove trailing spaces
46211         * NEWS: Likewise.
46212         * lib/poll.c (poll): Likewise.
46213         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46214         * lib/winsock.c (rpl_close): Likewise.
46215         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46216         * modules/yield: Likewise.
46217         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46218         * tests/test-sys_select.c (connect_to_socket): Likewise.
46219
46220         fts.c: adjust a new interface to be more generally useful
46221         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46222         (fts_build): Adjust caller.
46223
46224 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46225
46226         * modules/cond-tests: New file.
46227         * tests/test-cond.c: New file.
46228
46229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46230             Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/cond (Dependencies): Add errno, time.
46233         * lib/glthread/cond.h: Include <time.h>.
46234         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46235         across platforms.
46236
46237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46238             Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46241
46242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46243             Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/tls-tests (Depends-on): Add thread, yield.
46246         (configure.ac): Remove all checks.
46247         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46248         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46249         gl_thread_self): Remove definitions. Include glthread/thread.h and
46250         glthread/yield.h instead.
46251         (test_tls): Pass an additional NULL argument to gl_thread_join.
46252
46253 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46254             Bruno Haible  <bruno@clisp.org>
46255
46256         * modules/lock-tests (Depends-on): Add thread, yield.
46257         (configure.ac): Remove all checks.
46258         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46259         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46260         gl_thread_self): Remove definitions. Include glthread/thread.h and
46261         glthread/yield.h instead.
46262         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46263         additional NULL argument to gl_thread_join.
46264
46265 2008-09-30  Bruno Haible  <bruno@clisp.org>
46266
46267         Fix the Win32 implementation of the 'thread' module.
46268         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46269         pointer type.
46270         (gl_thread_self): Invoke gl_thread_self_func.
46271         (gl_thread_self_func): New declaration.
46272         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46273         (do_init_self_key, init_self_key): New functions.
46274         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46275         Remove some fields.
46276         (running_threads, running_lock): Remove variables.
46277         (get_current_thread_handle): New function.
46278         (gl_thread_self_func, wrapper_func, glthread_create_func,
46279         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46280         simplified.
46281
46282 2008-09-30  Bruno Haible  <bruno@clisp.org>
46283
46284         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46285         files.
46286
46287 2008-09-30  Jim Meyering  <meyering@redhat.com>
46288
46289         fts.m4: correct the test for statfs.f_type
46290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46291         when checking for statfs.f_type.
46292
46293 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46294
46295         tests: avoid some compiler warnings
46296         * tests/test-memchr.c (main): Pass NULL indirectly.
46297         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46298
46299 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46300
46301         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46302         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46303         exactly specified dayshifts.
46304         (dayshift): New rule.
46305         (rel): Add dayshift.
46306         (relative_time_table) [tomorrow, yesterday, today, now]:
46307         Use tDAY_SHIFT in place of tDAY_UNIT.
46308         * tests/test-getdate.c: Add tests for now-disallowed countable
46309         dayshifts, e.g., "4 yesterday ago".
46310
46311 2008-09-29  Bruno Haible  <bruno@clisp.org>
46312
46313         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46314         * tests/test-posix_spawn1.in.sh: Renamed from
46315         tests/test-posix_spawn.in.sh.
46316         * tests/test-posix_spawn2.c: New file.
46317         * tests/test-posix_spawn2.in.sh: New file.
46318         * modules/posix_spawnp-tests (Files): Update.
46319         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46320
46321 2008-09-29  Bruno Haible  <bruno@clisp.org>
46322
46323         Propagate effects of putenv/setenv/unsetenv to child processes.
46324         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46325         * lib/pipe.c (create_pipe): Likewise.
46326
46327 2008-09-29  Bruno Haible  <bruno@clisp.org>
46328
46329         Enable use of shell scripts as executables in mingw.
46330         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46331         run the program as a shell script.
46332         * lib/pipe.c (create_pipe): Likewise.
46333         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46334         resulting array.
46335
46336 2008-09-29  Eric Blake  <ebb9@byu.net>
46337
46338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46339
46340 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46341
46342         * doc/posix-functions/accept.texi: Update mingw problems.
46343         * doc/posix-functions/bind.texi: Update mingw problems.
46344         * doc/posix-functions/close.texi: Update mingw problems.
46345         * doc/posix-functions/connect.texi: Update mingw problems.
46346         * doc/posix-functions/getpeername.texi: Update mingw problems.
46347         * doc/posix-functions/getsockname.texi: Update mingw problems.
46348         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46349         * doc/posix-functions/ioctl.texi: Update mingw problems.
46350         * doc/posix-functions/listen.texi: Update mingw problems.
46351         * doc/posix-functions/recv.texi: Update mingw problems.
46352         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46353         * doc/posix-functions/select.texi: Update mingw problems.
46354         * doc/posix-functions/send.texi: Update mingw problems.
46355         * doc/posix-functions/sendto.texi: Update mingw problems.
46356         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46357         * doc/posix-functions/socket.texi: Update mingw problems.
46358
46359 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46360             Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/sys_select.in.h: Include sys/time.h.
46363         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46364         * modules/sys_select: Depend on sys_time.
46365         * tests/test-sys_select.c: Test that sys/select.h defines struct
46366         timeval fully.
46367
46368 2008-09-29  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46371         * lib/sys_select.in.h: Likewise.
46372
46373 2008-09-29  Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46376
46377 2008-09-29  Bruno Haible  <bruno@clisp.org>
46378
46379         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46380         Set LIBSOCKET instead of augmenting LIBS.
46381         * modules/sockets (Link): New section.
46382         * modules/sockets-tests (test_sockets_LDADD): New variable.
46383         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46384         * modules/poll-tests (test_poll_LDADD): New variable.
46385         * NEWS: Document the change.
46386
46387 2008-09-29  Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46390         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46391         ARPA_INET_H directly.
46392         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46393
46394 2008-09-28  Bruno Haible  <bruno@clisp.org>
46395
46396         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46397         from gl_HEADER_SYS_SOCKET.
46398         (gl_HEADER_SYS_SOCKET): Invoke it.
46399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46400
46401 2008-09-28  Bruno Haible  <bruno@clisp.org>
46402
46403         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46404         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46405         Needed on OSF/1 4.0.
46406
46407 2008-09-28  Bruno Haible  <bruno@clisp.org>
46408
46409         Override open more carefully.
46410         * lib/open.c (orig_open): New function.
46411         (rpl_open): Use orig_open instead of open.
46412         * lib/fcntl.in.h: Add special invocation convention.
46413         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46414         (gl_FUNC_OPEN): Invoke it.
46415
46416         Override freopen more carefully.
46417         * lib/freopen.c (orig_freopen): New function.
46418         (rpl_freopen): Use orig_freopen instead of freopen.
46419         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46420         (gl_FUNC_FREOPEN): Invoke it.
46421
46422         Override fopen more carefully.
46423         * lib/fopen.c (orig_fopen): New function.
46424         (rpl_fopen): Use orig_fopen instead of fopen.
46425         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46426         (gl_FUNC_FOPEN): Invoke it.
46427         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46428
46429 2008-09-28  Bruno Haible  <bruno@clisp.org>
46430
46431         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46432         SIGPIPE.
46433
46434 2008-09-28  Bruno Haible  <bruno@clisp.org>
46435
46436         * tests/test-sigaction.c (handler, main): Disable the check whether
46437         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46438         glibc systems with LinuxThreads.
46439
46440 2008-09-28  Bruno Haible  <bruno@clisp.org>
46441
46442         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46443
46444         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46445         with AIX xlc.
46446         * lib/fcntl.in.h (open): Likewise.
46447         Reported by Rainer Tammer <tammer@tammer.net>.
46448
46449 2008-09-28  Bruno Haible  <bruno@clisp.org>
46450
46451         * modules/posix_spawnp-tests: New file.
46452         * tests/test-posix_spawn.c: New file.
46453         * tests/test-posix_spawn.in.sh: New file.
46454
46455         New module 'posix_spawnp'.
46456         * modules/posix_spawnp: New file.
46457         * lib/spawnp.c: New file, from GNU libc with modifications.
46458         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46459
46460         New module 'posix_spawn'.
46461         * modules/posix_spawn: New file.
46462         * lib/spawn.c: New file, from GNU libc with modifications.
46463         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46464
46465         New module 'posix_spawnattr_destroy'.
46466         * modules/posix_spawnattr_destroy: New file.
46467         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46468         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46469         module.
46470
46471         New module 'posix_spawnattr_setsigmask'.
46472         * modules/posix_spawnattr_setsigmask: New file.
46473         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46474         modifications.
46475         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46476         new module.
46477
46478         New module 'posix_spawnattr_getsigmask'.
46479         * modules/posix_spawnattr_getsigmask: New file.
46480         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46481         modifications.
46482         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46483         new module.
46484
46485         New module 'posix_spawnattr_setsigdefault'.
46486         * modules/posix_spawnattr_setsigdefault: New file.
46487         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46488         modifications.
46489         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46490         new module.
46491
46492         New module 'posix_spawnattr_getsigdefault'.
46493         * modules/posix_spawnattr_getsigdefault: New file.
46494         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46495         modifications.
46496         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46497         new module.
46498
46499         New module 'posix_spawnattr_setschedpolicy'.
46500         * modules/posix_spawnattr_setschedpolicy: New file.
46501         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46502         modifications.
46503         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46504         new module.
46505
46506         New module 'posix_spawnattr_getschedpolicy'.
46507         * modules/posix_spawnattr_getschedpolicy: New file.
46508         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46509         modifications.
46510         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46511         new module.
46512
46513         New module 'posix_spawnattr_setschedparam'.
46514         * modules/posix_spawnattr_setschedparam: New file.
46515         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46516         modifications.
46517         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46518         new module.
46519
46520         New module 'posix_spawnattr_getschedparam'.
46521         * modules/posix_spawnattr_getschedparam: New file.
46522         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46523         modifications.
46524         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46525         new module.
46526
46527         New module 'posix_spawnattr_setpgroup'.
46528         * modules/posix_spawnattr_setpgroup: New file.
46529         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46530         modifications.
46531         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46532         module.
46533
46534         New module 'posix_spawnattr_getpgroup'.
46535         * modules/posix_spawnattr_getpgroup: New file.
46536         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46537         modifications.
46538         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46539         module.
46540
46541         New module 'posix_spawnattr_setflags'.
46542         * modules/posix_spawnattr_setflags: New file.
46543         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46544         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46545         module.
46546
46547         New module 'posix_spawnattr_getflags'.
46548         * modules/posix_spawnattr_getflags: New file.
46549         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46550         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46551         module.
46552
46553         New module 'posix_spawnattr_init'.
46554         * modules/posix_spawnattr_init: New file.
46555         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46556         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46557         module.
46558
46559         New module 'posix_spawn_file_actions_destroy'.
46560         * modules/posix_spawn_file_actions_destroy: New file.
46561         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46562         modifications.
46563         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46564         the new module.
46565
46566         New module 'posix_spawn_file_actions_addopen'.
46567         * modules/posix_spawn_file_actions_addopen: New file.
46568         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46569         modifications.
46570         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46571         the new module.
46572
46573         New module 'posix_spawn_file_actions_adddup2'.
46574         * modules/posix_spawn_file_actions_adddup2: New file.
46575         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46576         modifications.
46577         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46578         the new module.
46579
46580         New module 'posix_spawn_file_actions_addclose'.
46581         * modules/posix_spawn_file_actions_addclose: New file.
46582         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46583         modifications.
46584         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46585         the new module.
46586
46587         New module 'posix_spawn_file_actions_init'.
46588         * modules/posix_spawn_file_actions_init: New file.
46589         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46590         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46591         new module.
46592
46593         New module 'posix_spawn-internal'.
46594         * modules/posix_spawn-internal: New file.
46595         * lib/spawn_int.h: New file, from GNU libc with modifications.
46596         * lib/spawni.c: New file, from GNU libc with modifications.
46597         * m4/posix_spawn.m4: New file.
46598
46599         New module 'spawn'.
46600         * modules/spawn: New file.
46601         * lib/spawn.in.h: New file, from GNU libc with modifications.
46602         * m4/spawn_h.m4: New file.
46603         * doc/posix-headers/spawn.texi: Mention the new module.
46604
46605 2008-09-28  Bruno Haible  <bruno@clisp.org>
46606
46607         * modules/sched-tests: New file.
46608         * tests/test-sched.c: New file.
46609
46610         New module 'sched'.
46611         * modules/sched: New file.
46612         * lib/sched.in.h: New file.
46613         * m4/sched_h.m4: New file.
46614         * doc/posix-headers/sched.texi: Mention the new module.
46615
46616 2008-09-27  Eric Blake  <ebb9@byu.net>
46617
46618         Fix previous patch, and tweak references to $0.
46619         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46620         (func_version, func_gnulib_dir): Don't call this program
46621         gnulib-tool.
46622         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46623         with using $0 in function.
46624         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46625         (func_fatal_error): Reuse the name the user invoked us with.
46626
46627 2008-09-27  Bruno Haible  <bruno@clisp.org>
46628
46629         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46630         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46631         (gl_ICONV_H): Not here.
46632         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46633         instead of assigning ICONV_H directly.
46634
46635         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46637         WCHAR_H directly.
46638
46639 2008-09-27  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46642         * modules/arpa_inet (Depends-on): Add link-warning.
46643         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46644         * modules/unistd (Makefile.am): Likewise.
46645
46646 2008-09-26  Bruno Haible  <bruno@clisp.org>
46647
46648         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46649         variables.
46650         (func_version): Essentially copied from gnulib-tool.
46651         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46652         func_readlink): Copied from gnulib-tool.
46653
46654 2008-09-26  Bruno Haible  <bruno@clisp.org>
46655
46656         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46657         invoking git-version-gen.
46658
46659 2008-09-26  Bruno Haible  <bruno@clisp.org>
46660
46661         * posix-modules: Update to directory names changed on 2008-01-19.
46662         Remove commas in output before splitting into words. No more need to
46663         avoid 'ftruncate' since 2007-02-19.
46664
46665 2008-09-26  Bruno Haible  <bruno@clisp.org>
46666
46667         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46668
46669 2008-09-26  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46672         * modules/fwriteerror (Depends-on): Add errno.
46673
46674 2008-09-26  Bruno Haible  <bruno@clisp.org>
46675
46676         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46677         * tests/test-vc-list-files-cvs.sh: Likewise.
46678
46679 2008-09-26  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/posix-headers/sys_resource.texi: Reorder items.
46682
46683 2008-09-26  Jim Meyering  <meyering@redhat.com>
46684
46685         fts: tweak inode comparison function
46686         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46687         inode numbers, as documented.
46688
46689         fts: sort dirent entries on inode number before traversing
46690         This avoids a quadratic, seek-related performance penalty when
46691         operating on a directory containing many entries (measurable at 10k;
46692         3.5 hours at 2 million entries with a cold cache) on certain types
46693         of file systems, including ext3 and ext4, but not tmpfs.
46694         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46695         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46696         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46697         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46698         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46699         (fts_build): Set the stat.st_ino member from D_INO.
46700         If it is likely to be useful, sort dirent entries on inode number.
46701
46702         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46703         and the struct statfs.f_type member.
46704         * modules/fts (Depends-on): Add d-ino.
46705
46706 2008-09-26  Bruno Haible  <bruno@clisp.org>
46707
46708         * modules/sigpipe-die (Depends-on): Add sigpipe.
46709
46710         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46711         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46712         and GNULIB_STDIO_H_SIGPIPE are set.
46713         * lib/stdio-write.c: New file.
46714         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46715         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46716         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46717         REPLACE_STDIO_WRITE_FUNCS.
46718         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46719         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46720         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46721         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46722         * modules/stdio (Files): Add lib/stdio-write.c.
46723         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46724         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46725         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46726         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46727         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46728         REPLACE_FPRINTF_POSIX.
46729         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46730         REPLACE_PRINTF_POSIX.
46731         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46732         REPLACE_VFPRINTF_POSIX.
46733         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46734         REPLACE_VPRINTF_POSIX.
46735         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46736         SIGPIPE issue.
46737         * doc/posix-functions/fputc.texi: Likewise.
46738         * doc/posix-functions/fputs.texi: Likewise.
46739         * doc/posix-functions/fwrite.texi: Likewise.
46740         * doc/posix-functions/printf.texi: Likewise.
46741         * doc/posix-functions/putc.texi: Likewise.
46742         * doc/posix-functions/putchar.texi: Likewise.
46743         * doc/posix-functions/puts.texi: Likewise.
46744         * doc/posix-functions/vfprintf.texi: Likewise.
46745         * doc/posix-functions/vprintf.texi: Likewise.
46746
46747         * modules/safe-write (Depends-on): Add write.
46748
46749         * modules/sigpipe-tests: New file.
46750         * tests/test-sigpipe.c: New file.
46751         * tests/test-sigpipe.sh: New file.
46752
46753         * modules/write: New file.
46754         * lib/unistd.in.h: Include <sys/types.h>.
46755         (write): New declaration.
46756         * lib/write.c: New file.
46757         * m4/write.m4: New file.
46758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46759         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46760         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46761         GNULIB_WRITE, REPLACE_WRITE.
46762         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46763         and the SIGPIPE issue.
46764
46765         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46766         (raise): New declaration.
46767         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46768         (ext_signal): New function.
46769         (rpl_raise): New function.
46770         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46771         GNULIB_SIGNAL_H_SIGPIPE.
46772         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46773         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46774
46775         * modules/sigpipe: New file.
46776         * m4/sigpipe.m4: New file.
46777
46778 2008-09-25  Derek Price  <derek@ximbiot.com>
46779             Bruno Haible  <bruno@clisp.org>
46780
46781         * gnulib-tool (func_import): Report all license incompatibilities, not
46782         just the first one.
46783
46784 2008-09-25  Bruno Haible  <bruno@clisp.org>
46785
46786         * gnulib-tool (func_import): When computing the edits, consider not
46787         only the Makefile.ams that exist but also those that will be generated.
46788
46789 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46790
46791         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46792         fixes gnulib-tool --test warning about duplicate dependency.
46793
46794 2008-09-25  Bruno Haible  <bruno@clisp.org>
46795
46796         * gnulib-tool: Don't ask the user to perform edits in the generated
46797         Makefile.ams.
46798         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46799         apply to the Makefile.am being generated.
46800         (func_emit_tests_Makefile_am): Execute edits that apply to the
46801         Makefile.am being generated.
46802         (func_import): Setup list of Makefile.am edits before emitting the
46803         Makefile.ams, not at the end.
46804         (func_create_testdir): Update.
46805         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46806
46807 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46808
46809         * gnulib-tool (func_import): Store the --tests-base option in the
46810         comment in gnulib-cache.m4.
46811
46812 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46813
46814         * NEWS: Document increased portability that sys_select now provides.
46815
46816         * lib/sys_select.in.h: Install select wrapper.
46817         * lib/sys_socket.in.h: Use more descriptive name when there is no
46818         select wrapper.
46819         * lib/winsock-select.c: New.
46820         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46821         Require gl_HEADER_SYS_SOCKET.
46822         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46823         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46824         * tests/test-sys_select.c: Add functional tests.
46825
46826 2008-09-24  Eric Blake  <ebb9@byu.net>
46827
46828         open, fopen: close fd leak in last patch
46829         * lib/open.c (rpl_open): Close fd before returning error.
46830         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46831         * doc/posix-functions/open.texi (open): Document that Irix also
46832         has the bug.
46833         * doc/posix-functions/fopen.texi (fopen): Likewise.
46834         Reported by Paolo Bonzini.
46835
46836 2008-09-24  Bruno Haible  <bruno@clisp.org>
46837
46838         Ensure that a filename ending in a slash cannot be used to access a
46839         non-directory.
46840         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46841         to check whether it's really a directory.
46842         * lib/fopen.c: Include fcntl.h, unistd.h.
46843         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46844         and fdopen().
46845         * modules/fopen (Depends-on): Add unistd.
46846         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46847         * tests/test-fopen.c (main): Likewise.
46848         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46849         * doc/posix-functions/fopen.texi: Likewise.
46850         Reported by Eric Blake.
46851
46852 2008-09-23  Eric Blake  <ebb9@byu.net>
46853
46854         c-stack: avoid compiler optimizations when provoking overflow
46855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46856         recursion harder to optimize, to ensure a stack overflow occurs.
46857         * tests/test-c-stack.c (recurse): Likewise.
46858         Borrowed from libsigsegv.
46859
46860         c-stack: work around Irix sigaltstack bug
46861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46862         whether sigaltstack uses wrong end of stack_t (copied in part from
46863         libsigsegv).
46864         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46865         Irix bug, without requiring an over-allocation.
46866         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46867         bug.
46868
46869         fopen: document mingw bug on directories
46870         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46871         not allowing a stream visiting a directory, even though reading
46872         from such a stream is not portable.
46873
46874 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46875
46876         * lib/poll.c: Rewrite.
46877         * modules/poll: Depend on alloca.
46878
46879 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46880
46881         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46882         instead define prototypes for a full set of wrappers.  Ensure
46883         that Cygwin does not use the compatibility code, which is only
46884         for MinGW.
46885         * lib/winsock.c: New.
46886         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46887         * modules/sys_socket: Add lib/winsock.c.
46888
46889         * modules/poll-tests: Add errno and perror.
46890         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46891
46892 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46893
46894         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46895
46896 2008-09-23  Bruno Haible  <bruno@clisp.org>
46897
46898         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46899         * doc/glibc-functions/*: Likewise.
46900
46901 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46902
46903         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46904         success.
46905
46906 2008-09-22  Eric Blake  <ebb9@byu.net>
46907             Bruno Haible  <bruno@clisp.org>
46908
46909         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46910         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46911         supply %A but mishandle pseudo-NaN.
46912         Reported by Simon Josefsson.
46913
46914 2008-09-21  Bruno Haible  <bruno@clisp.org>
46915
46916         * tests/test-lock.c (main): Tweak skip message.
46917         * tests/test-tls.c (main): Likewise.
46918
46919 2008-09-21  Bruno Haible  <bruno@clisp.org>
46920
46921         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46922         whether 'struct sigaction' has sa_sigaction here...
46923         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46924         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46925
46926 2008-09-21  Bruno Haible  <bruno@clisp.org>
46927
46928         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46929         section.
46930         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46931         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46932         the new section.
46933         (Support for obsolete systems lacking POSIX:2001): New section.
46934         (String handling <string.h>): Move strdup to the new section.
46935         Suggested by Simon Josefsson and Paolo Bonzini.
46936
46937 2008-09-21  Bruno Haible  <bruno@clisp.org>
46938
46939         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46940         exponents in %e and %g results on 'long double'. Needed for mingw's
46941         improved *printf functions.
46942         * tests/test-vasprintf-posix.c (test_function): Likewise.
46943         * tests/test-snprintf-posix.h (test_function): Likewise.
46944         * tests/test-sprintf-posix.h (test_function): Likewise.
46945         Reported by Eric Blake.
46946
46947 2008-09-21  Bruno Haible  <bruno@clisp.org>
46948
46949         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46950         * tests/test-sprintf-posix.h (test_function): Likewise.
46951
46952 2008-09-21  Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/getpass (Depends-on): Add strdup-posix.
46955
46956         New module 'strdup-posix'.
46957         * modules/strdup-posix: New file.
46958         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46959         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46961         REPLACE_STRDUP.
46962         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46963         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46965         strdup-posix.
46966
46967         * modules/strdup (Depends-on): Remove malloc-posix.
46968
46969 2008-09-20  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46972         Wildenhues.
46973
46974 2008-09-20  Bruno Haible  <bruno@clisp.org>
46975
46976         Ensure that wint_t gets defined on IRIX 5.3.
46977         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46978         * lib/wctype.in.h (wint_t): Likewise.
46979         (__wctype_wint_t): Remove type.
46980         (isw*): Use wint_t instead of __wctype_wint_t.
46981         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46982         * modules/wchar (Files): Add m4/wint_t.m4.
46983         (Makefile.am): Substitute HAVE_WINT_T.
46984         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46985         * tests/test-wctype.c: Check that wint_t is defined.
46986         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46987         * doc/posix-headers/wctype.texi: Likewise.
46988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46989
46990 2008-09-18  Bruno Haible  <bruno@clisp.org>
46991
46992         * gnulib-tool (func_exit): Update comment.
46993
46994 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46995
46996         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46997         assumes strdup exists and does not depend on strdup to return
46998         ENOMEM on out of memory conditions.
46999
47000 2008-09-18  Bruno Haible  <bruno@clisp.org>
47001
47002         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47003         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47004         digits for the exponent.
47005
47006 2008-09-18  Jim Meyering  <meyering@redhat.com>
47007             Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/vasnprintf.c (decimal_point_char): Define also if
47010         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47011
47012 2008-09-16  Bruno Haible  <bruno@clisp.org>
47013         and Eric Blake  <ebb9@byu.net>
47014
47015         vasnprintf: support Irix 5.3
47016         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47017         that mishandle long double infinity.
47018         Reported by Tom G. Christensen.
47019
47020 2008-09-16  Bruno Haible  <bruno@clisp.org>
47021
47022         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47023         Solaris 9.
47024         * doc/glibc-functions/alphasort.texi: Likewise.
47025         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47026
47027 2008-09-16  Jim Meyering  <meyering@redhat.com>
47028
47029         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47030         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47031         a umask modification leak out of a subshell.  Otherwise, the
47032         opensolaris /bin/sh would be accepted and thus cause unwarranted
47033         failures in the coreutils test suite.
47034
47035 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47036
47037         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47038         to succeed.
47039
47040 2008-09-16  Jim Meyering  <meyering@redhat.com>
47041
47042         avoid spurious test failure when library is built without ACL support
47043         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47044         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47045         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47046         * tests/test-copy-acl.sh: Likewise.
47047
47048 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47049
47050         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47051         based on character occurrence counts.
47052
47053 2008-09-15  Eric Blake  <ebb9@byu.net>
47054
47055         tests: avoid some compiler warnings
47056         * tests/test-memchr.c (main): Pass NULL indirectly.
47057         * tests/test-closein.c (main): Avoid unused variable.
47058
47059 2008-09-15  Bruno Haible  <bruno@clisp.org>
47060
47061         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47062         are missing on OpenBSD 4.0 individually.
47063         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47064
47065 2008-09-15  Bruno Haible  <bruno@clisp.org>
47066
47067         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47068         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47069         * doc/posix-functions/perror.texi: Likewise.
47070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47071         is missing.
47072         Reported by Eric Blake.
47073
47074         * lib/errno.in.h: Use replacement values >= 2000.
47075         Reported by Eric Blake.
47076
47077 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47078
47079         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47080         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47081         limit.
47082         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47083         compareseq was aborted.
47084
47085 2008-09-14  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47088         yvec_edit_count.
47089         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47090         (fstrcmp_bounded): Simplify result computation accordingly.
47091
47092 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47093
47094         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47095         (fstrcmp): Define in terms of fstrcmp_bounded.
47096         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47097         lower_bound argument.
47098         Return quickly if the result is certainly < lower_bound.
47099         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47100
47101 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47102
47103         * lib/diffseq.h (EARLY_ABORT): New macro.
47104         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47105         evaluates to true.
47106
47107 2008-09-14  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/perror-tests: New file.
47110         * tests/test-perror.sh: New file.
47111         * tests/test-perror.c: New file.
47112
47113         New module 'perror'.
47114         * lib/stdio.in.h (perror): New declaration.
47115         * lib/perror.c: New file.
47116         * m4/perror.m4: New file.
47117         * modules/perror: New file.
47118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47119         * doc/posix-functions/perror.texi: Mention the perror module.
47120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47121         REPLACE_PERROR.
47122         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47123         REPLACE_PERROR.
47124
47125 2008-09-14  Bruno Haible  <bruno@clisp.org>
47126
47127         * modules/stdio (Makefile.am): Reorder to match the order in
47128         lib/stdio.in.h.
47129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47130
47131 2008-09-13  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47134
47135 2008-09-13  Bruno Haible  <bruno@clisp.org>
47136
47137         Extend strerror to cover the added errno values.
47138         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47139         (rpl_strerror): Provide error messages for the added errno values and
47140         for the WSA* values.
47141         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47142         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47143         strerror.
47144         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47145         * modules/strerror (Depends-on): Add errno.
47146         * doc/posix-functions/strerror.texi: Document the change.
47147         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47148         and EOVERFLOW.
47149
47150 2008-09-13  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/EOVERFLOW: Remove file.
47153         * m4/eoverflow.m4: Remove file.
47154         * modules/EOVERFLOW-tests: Remove file.
47155         * tests/test-EOVERFLOW.c: Remove file.
47156         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47157         * modules/ftell (Depends-on): Likewise.
47158         * modules/getdelim (Depends-on): Likewise.
47159         * modules/getugroups (Depends-on): Likewise.
47160         * modules/poll (Depends-on): Likewise.
47161         * modules/snprintf (Depends-on): Likewise.
47162         * modules/sprintf-posix (Depends-on): Likewise.
47163         * modules/vasnprintf (Depends-on): Likewise.
47164         * modules/vasprintf (Depends-on): Likewise.
47165         * modules/vfprintf-posix (Depends-on): Likewise.
47166         * modules/vsnprintf (Depends-on): Likewise.
47167         * modules/vsprintf-posix (Depends-on): Likewise.
47168         * modules/xvasprintf (Depends-on): Likewise.
47169         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47170         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47171         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47172         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47174         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47175         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47176         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47177         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47178         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47179         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47180         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47181         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47182         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47183         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47184         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47185         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47186         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47187         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47188         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47189         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47190         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47191         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47192         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47193         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47194         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47195         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47196         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47197         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47198         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47199         * MODULES.html.sh: Remove EOVERFLOW.
47200         * NEWS: Mention the change.
47201
47202 2008-09-13  Bruno Haible  <bruno@clisp.org>
47203
47204         * modules/errno-tests: New file.
47205         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47206
47207         * lib/errno.in.h: New file.
47208         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47209         * modules/errno: New file.
47210         * doc/posix-headers/errno.texi: Update documentation.
47211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47212
47213 2008-09-13  Bruno Haible  <bruno@clisp.org>
47214
47215         * tests/test-poll.c: Use #if for native Windows, rather than testing
47216         __MSVCRT__.
47217
47218 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47219             Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/glob.c: Don't include <pwd.h> on native Windows.
47222         (WINDOWS32): New macro.
47223         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47224
47225 2008-09-13  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47228         (ETIMEDOUT): Remove macro.
47229         (glthread_cond_timedwait_multithreaded): New declaration.
47230         (glthread_cond_timedwait): Use it.
47231         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47232         (glthread_cond_timedwait_multithreaded): New function.
47233
47234 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47235
47236         * modules/poll-tests: Do not check for io.h.
47237         * tests/test-poll.c: Check for __MSVCRT__ instead.
47238
47239 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47240
47241         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47242         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47243         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47244
47245 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47246
47247         * modules/poll-tests: New.
47248         * tests/test-poll.c: New.
47249
47250 2008-09-12  Eric Blake  <ebb9@byu.net>
47251
47252         frexp: test for NetBSD failure on -0.0
47253         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47254         not all, bugs from NetBSD 3.0 have been fixed.
47255         * doc/posix-functions/frexp.texi (frexp): Document bug.
47256         Reported by Thomas Klausner.
47257
47258         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47259         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47260         literal -0.0.
47261         Reported by Jonathan C. Patschke <jp@centtech.com>.
47262
47263 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47264
47265         * lib/glthread/cond.h: Use dummy implementation also if
47266         USE_WIN32_THREADS.
47267
47268 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47269
47270         * modules/fnmatch-posix (License): Change to LGPLv2+.
47271         * modules/fnmatch-gnu (License): Likewise.
47272
47273 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47274
47275         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47276
47277 2008-09-11  Jim Meyering  <meyering@redhat.com>
47278
47279         * users.txt: Add gtk-vnc.
47280
47281 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47282
47283         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47284         rotate amounts.
47285
47286         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47287         required for 16-bit and 8-bit rotates.
47288         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47289         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47290         UINT8_MAX instead of hard-coded constants.
47291         Suggested by Paul Eggert.
47292
47293 2008-09-07  Bruno Haible  <bruno@clisp.org>
47294
47295         * tests/test-striconveh.c (main): Check behaviour when converting from
47296         UTF-7.
47297
47298         Make striconveh work better with stateful encodings.
47299         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47300         that iconv does not increment the inptr when returning -1/EINVAL.
47301
47302 2008-09-07  Bruno Haible  <bruno@clisp.org>
47303
47304         * build-aux/config.rpath: Update according to libtool-2.2.6.
47305         * build-aux/config.libpath: Likewise.
47306
47307 2008-09-06  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47310         * lib/freadptr.c (freadptr): Likewise.
47311         * lib/freadseek.c (freadptrinc): Likewise.
47312         Reported by Simon Josefsson.
47313
47314 2008-09-06  Bruno Haible  <bruno@clisp.org>
47315
47316         * modules/freadptr (License): Change to LGPLv2+.
47317         * modules/freadseek (License): Likewise.
47318         Suggested by Eric Blake.
47319
47320         * modules/memchr2 (License): Change to LGPLv2+.
47321         Approved by Eric Blake.
47322
47323 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47324             Bruno Haible  <bruno@clisp.org>
47325
47326         Make gnulib-tool work with native 'sed' on AIX.
47327         * gnulib-tool (sed_noop): New variable.
47328         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47329         func_add_or_update, func_create_testdir): Use it to initialize sed
47330         script variables.
47331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47332
47333 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47334             Bruno Haible  <bruno@clisp.org>
47335
47336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47337         also works after #include directives.
47338
47339 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47340
47341         getdate.y: reject an out-of-range timezone value
47342         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47343         the range [-24...+24].  When specified with only one or two digits,
47344         * tests/test-getdate.c: Tests for the fix.
47345         * doc/getdate.texi: Document this change.
47346
47347 2008-09-03  Bruno Haible  <bruno@clisp.org>
47348
47349         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47350
47351 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47352
47353         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47354         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47355         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47356         Blake <ebb9@byu.net>.
47357
47358         * tests/test-bitrotate.c: Add more test vectors.
47359
47360 2008-09-02  Eric Blake  <ebb9@byu.net>
47361
47362         vasnprintf-posix: handle large precision via %.*d
47363         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47364         when handling it ourselves.
47365         * tests/test-vasnprintf-posix.c (test_function): Add test.
47366         * tests/test-snprintf-posix.h (test_function): Likewise.
47367         * tests/test-sprintf-posix.h (test_function): Likewise.
47368         * tests/test-vasprintf-posix.c (test_function): Likewise.
47369         Reported by Alain Guibert.
47370
47371 2008-09-01  Eric Blake  <ebb9@byu.net>
47372
47373         c-stack: make configure-time check more robust
47374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47375         successful sigaction call.
47376         Reported by Tom G. Christensen.
47377
47378 2008-09-01  Bruno Haible  <bruno@clisp.org>
47379
47380         New module 'findprog-lgpl'.
47381         * modules/findprog-lgpl: New file.
47382         * lib/findprog-lgpl.c: New file.
47383         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47384         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47385         to decide whether to use strdup or xstrdup, concatenated_filename or
47386         xconcatenated_filename.
47387
47388 2008-09-01  Bruno Haible  <bruno@clisp.org>
47389
47390         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47391         'xconcat-filename' (GPL).
47392         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47393         (License): Change to LGPLv2+.
47394         * modules/xconcat-filename: New file.
47395         * lib/concat-filename.h (concatenated_filename): Change specification.
47396         (xconcatenated_filename): New declaration.
47397         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47398         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47399         memory situations.
47400         * lib/xconcat-filename.c: New file.
47401         * NEWS: Mention the change.
47402         * lib/findprog.c: Include concat-filename.h, not filename.h.
47403         (find_in_path): Use xconcatenated_filename instead of
47404         concatenated_filename.
47405         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47406         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47407         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47408         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47409         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47410         instead of concatenated_filename.
47411         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47412         (execute_java_class): Use xconcatenated_filename instead of
47413         concatenated_filename.
47414         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47415         * modules/javacomp (Depends-on): Likewise.
47416         * modules/javaexec (Depends-on): Likewise.
47417
47418 2008-09-01  Bruno Haible  <bruno@clisp.org>
47419
47420         Split module 'filename' into 'filename' and 'concat-filename'.
47421         * modules/filename: Keep only lib/filename.h.
47422         (License): Change to LGPLv2+.
47423         * modules/concat-filename: New file, extracted from modules/filename.
47424         * lib/filename.h (concatenated_filename): Remove declaration.
47425         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47426         * lib/concat-filename.c: Include concat-filename.h.
47427         * NEWS: Mention the change.
47428
47429 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47430
47431         * lib/bitrotate.h (rotl8, rotr8): Add.
47432
47433         * modules/bitrotate (configure.ac): Need
47434         AC_REQUIRE([AC_C_INLINE]).
47435         (Description): Mention stdint.h.  Reported by Bruno Haible
47436         <bruno@clisp.org>.
47437
47438         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47439         Paolo Bonzini <bonzini@gnu.org>.
47440
47441 2008-08-31  Bruno Haible  <bruno@clisp.org>
47442
47443         Assume Solaris specific bi-arch conventions on Solaris systems.
47444         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47445         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47446         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47447         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47448         like acl_libdirstem.
47449         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47450         acl_libdirstem.
47451         * NEWS: Mention the change.
47452         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47453
47454 2008-08-31  Jim Meyering  <meyering@redhat.com>
47455
47456         * lib/strftime.h: Add comments describing the two added arguments.
47457
47458         remove duplicate #include directives
47459         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47460         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47461
47462 2008-08-31  Bruno Haible  <bruno@clisp.org>
47463
47464         New module 'sigpipe-die'.
47465         * modules/sigpipe-die: New file.
47466         * lib/sigpipe-die.h: New file.
47467         * lib/sigpipe-die.c: New file.
47468         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47469
47470 2008-08-31  Bruno Haible  <bruno@clisp.org>
47471
47472         Don't override previously installed signal handlers.
47473         * lib/fatal-signal.c (saved_sigactions): New variable.
47474         (uninstall_handlers): Reset the signal to the saved handler, not
47475         to SIG_DFL (except when ignored).
47476         (install_handlers): Save the previous handlers.
47477
47478 2008-08-30  Bruno Haible  <bruno@clisp.org>
47479
47480         * gnulib-tool (func_reset_sigpipe): New function.
47481         (func_get_automake_snippet, func_modules_transitive_closure,
47482         func_import): Invoke it before a join command that reads from stdin,
47483         to avoid "echo: write error: Broken pipe" error messages on stderr.
47484         Reported by Sam Steingold <sds@gnu.org>.
47485
47486 2008-08-30  Bruno Haible  <bruno@clisp.org>
47487
47488         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47489         Code copied from m4/open.m4.
47490         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47491         access and the filename ends in a slash. Code copied from lib/open.c.
47492         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47493         * tests/test-fopen.c (main): Check against bug with trailing slash.
47494
47495 2008-08-29  Bruno Haible  <bruno@clisp.org>
47496
47497         Avoid some "gcc -pedantic" warnings.
47498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47499         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47500         * lib/dirent.in.h: Likewise.
47501         * lib/fcntl.in.h: Likewise.
47502         * lib/float.in.h: Likewise.
47503         * lib/iconv.in.h: Likewise.
47504         * lib/inttypes.in.h: Likewise.
47505         * lib/locale.in.h: Likewise.
47506         * lib/math.in.h: Likewise.
47507         * lib/netinet_in.in.h: Likewise.
47508         * lib/search.in.h: Likewise.
47509         * lib/signal.in.h: Likewise.
47510         * lib/stdarg.in.h: Likewise.
47511         * lib/stdint.in.h: Likewise.
47512         * lib/stdio.in.h: Likewise.
47513         * lib/stdlib.in.h: Likewise.
47514         * lib/string.in.h: Likewise.
47515         * lib/strings.in.h: Likewise.
47516         * lib/sys_select.in.h: Likewise.
47517         * lib/sys_socket.in.h: Likewise.
47518         * lib/sys_stat.in.h: Likewise.
47519         * lib/sys_time.in.h: Likewise.
47520         * lib/sysexits.in.h: Likewise.
47521         * lib/time.in.h: Likewise.
47522         * lib/unistd.in.h: Likewise.
47523         * lib/wchar.in.h: Likewise.
47524         * lib/wctype.in.h: Likewise.
47525         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47526         * modules/fchdir (Makefile.am): Likewise.
47527         * modules/fcntl (Makefile.am): Likewise.
47528         * modules/float (Makefile.am): Likewise.
47529         * modules/iconv_open (Makefile.am): Likewise.
47530         * modules/inttypes (Makefile.am): Likewise.
47531         * modules/locale (Makefile.am): Likewise.
47532         * modules/math (Makefile.am): Likewise.
47533         * modules/netinet_in (Makefile.am): Likewise.
47534         * modules/search (Makefile.am): Likewise.
47535         * modules/signal (Makefile.am): Likewise.
47536         * modules/stdarg (Makefile.am): Likewise.
47537         * modules/stdint (Makefile.am): Likewise.
47538         * modules/stdio (Makefile.am): Likewise.
47539         * modules/stdlib (Makefile.am): Likewise.
47540         * modules/string (Makefile.am): Likewise.
47541         * modules/strings (Makefile.am): Likewise.
47542         * modules/sys_select (Makefile.am): Likewise.
47543         * modules/sys_socket (Makefile.am): Likewise.
47544         * modules/sys_stat (Makefile.am): Likewise.
47545         * modules/sys_time (Makefile.am): Likewise.
47546         * modules/sysexits (Makefile.am): Likewise.
47547         * modules/time (Makefile.am): Likewise.
47548         * modules/unistd (Makefile.am): Likewise.
47549         * modules/wchar (Makefile.am): Likewise.
47550         * modules/wctype (Makefile.am): Likewise.
47551         Reported by Reuben Thomas <rrt@sc3d.org>.
47552
47553 2008-08-29  Bruno Haible  <bruno@clisp.org>
47554
47555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47556         any more.
47557
47558 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47559
47560         * MODULES.html.sh (Misc): Add bitrotate.
47561
47562         * modules/bitrotate: New file.
47563
47564         * lib/bitrotate.h: New file.
47565
47566         * modules/bitrotate-tests: New file.
47567
47568         * tests/test-bitrotate.c: New file.
47569
47570         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47571         on the bitrotate module.
47572
47573         * lib/arctwo.c: Use new bitrotate module.
47574
47575 2008-08-29  Jim Meyering  <meyering@redhat.com>
47576
47577         bootstrap: merge changes from coreutils
47578         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47579         of copied files.  Remove a kludge, now that this is fixed.
47580         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47581         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47582         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47583
47584 2008-08-29  Bruno Haible  <bruno@clisp.org>
47585
47586         * MODULES.html.sh: Remove --cvs-urls option.
47587
47588 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47589
47590         maint.mk: adjust to file name change
47591         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47592
47593 2008-08-28  Jim Meyering  <meyering@redhat.com>
47594
47595         * modules/getndelim2 (License): Relicense to LGPLv2+.
47596         Approved by Richard Stallman for the version of 1995, and by
47597         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47598
47599 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47600
47601         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47602         dummy if one is not available.  Do not touch them if
47603         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47604         (getc_maybe_unlocked): New.
47605         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47606
47607 2008-08-26  Eric Blake  <ebb9@byu.net>
47608
47609         doc/INSTALL: resync from autoconf
47610         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47611         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47612         moving...
47613         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47614         * INSTALL: Regenerate.
47615         * INSTALL.ISO: New file.
47616         * INSTALL.UTF-8: Likewise.
47617
47618 2008-08-26  Jim Meyering  <meyering@redhat.com>
47619
47620         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47621         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47622         these definitions conditional, so that they may be overridden, too.
47623
47624 2008-08-26  Bruno Haible  <bruno@clisp.org>
47625
47626         Generate INSTALL file variants with prettier quotes.
47627         * doc/Makefile (INSTALL_PRELUDE): New macro.
47628         (INSTALL): Use it.
47629         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47630
47631 2008-08-26  Bruno Haible  <bruno@clisp.org>
47632
47633         Run makeinfo in an English locale.
47634         * doc/Makefile (MAKEINFO): New variable.
47635
47636 2008-08-26  Bruno Haible  <bruno@clisp.org>
47637
47638         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47639         Suggested by Eric Blake.
47640
47641 2008-08-25  Bruno Haible  <bruno@clisp.org>
47642
47643         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47644
47645 2008-08-25  Eric Blake  <ebb9@byu.net>
47646
47647         c-stack: test that stack overflow can be caught
47648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47649         that platform allows handling stack overflow; at least OS/2 EMX
47650         has sigaltstack, but crashes before transferring control to
47651         handler on stack overflow.
47652         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47653         check for HAVE_STACK_OVERFLOW_HANDLING.
47654         Reported by Elbert Pol.
47655
47656 2008-08-25  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/posix-functions/strftime.texi: Fix description of strftime
47659         module.
47660
47661 2008-08-24  Bruno Haible  <bruno@clisp.org>
47662
47663         * tests/uniwidth/test-uc_width2.c: New file.
47664         * tests/uniwidth/test-uc_width2.sh: New file.
47665         * modules/uniwidth/width-tests (Files): Add the new files.
47666         (TESTS): Add uniwidth/test-uc_width2.sh.
47667         (TESTS_ENVIRONMENT): New variable.
47668         (check_PROGRAMS): Add test-uc_width2.
47669         (test_uc_width2_SOURCES): New variable.
47670
47671         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47672         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47673         not 0x00AB.
47674         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47675
47676 2008-08-22  Eric Blake  <ebb9@byu.net>
47677
47678         test-lock, test-tls: mention why a test is skipped
47679         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47680         skipped.
47681         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47682
47683         count-one-bits: relax license
47684         * modules/count-one-bits (License): Relicense to LGPLv2+.
47685         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47686
47687 2008-08-22  Andreas Schwab  <schwab@suse.de>
47688
47689         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47690         Remove spurious space in assignment.
47691
47692 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47693
47694         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47695         Paul Eggert <eggert@CS.UCLA.EDU>.
47696
47697 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47698
47699         * modules/gettext: Add m4/threadlib.m4.
47700
47701 2008-08-19  Eric Blake  <ebb9@byu.net>
47702
47703         test-c-stack: fix compilation failure on FreeBSD 5.0
47704         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47705         headers before <sys/resource.h>.
47706         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47707         the bug.
47708         Reported by Nelson H. F. Beebe.
47709
47710         strverscmp: migrate from "strverscmp.h" to <string.h>
47711         * modules/string (Makefile.am): Add new hooks.
47712         * modules/strverscmp (Files): Remove strverscmp.h.
47713         (Depends-on): Add string.
47714         (configure.ac): Add indicator.
47715         (Include): Mention new header.
47716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47717         defaults.
47718         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47719         results.
47720         * lib/strverscmp.h: Delete.
47721         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47722         * tests/test-strverscmp.c (includes): Adjust client.
47723         * lib/check-version.c (includes): Likewise.
47724         * NEWS: Document the change.
47725
47726         strverscmp: add unit test
47727         * modules/strverscmp-tests: New file.
47728         * tests/test-strverscmp.c: Likewise.
47729
47730 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47731
47732         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47733         regarding Windows crypto stuff, from Mono.
47734
47735 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47736
47737         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47738         if present, for intel RND.  Return error on failures.
47739
47740 2008-08-18  Ben Pfaff  <blp@gnu.org>
47741
47742         gitlog-to-changelog: give better diagnostic for failed pipe-open
47743         * build-aux/gitlog-to-changelog: Improve error message: suggest
47744         that the version of Git may be too old.
47745
47746 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47747
47748         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47749         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47750
47751 2008-08-18  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47754         pthread_in_use().
47755
47756 2008-08-18  Bruno Haible  <bruno@clisp.org>
47757
47758         * lib/glthread/threadlib.c: Include <pthread.h>.
47759
47760 2008-08-18  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47763         glthread_recursive_lock_* macros.
47764         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47765         Fix syntax error.
47766
47767 2008-08-18  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/glthread/thread.c: Avoid forcing a context switch right after
47770         thread creation.
47771
47772 2008-08-17  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47775         * lib/glthread/thread.h: Provide Win32 specific implementation.
47776         * modules/thread (Files): Add lib/glthread/thread.c.
47777         (Depends-on): Add lock.
47778         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47779
47780 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47781
47782         New module 'yield'.
47783         * modules/yield: New file.
47784         * lib/glthread/yield.h: New file.
47785         * m4/yield.m4: New file.
47786         * MODULES.html.sh (Multithreading): Add yield.
47787
47788 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47789
47790         New module 'thread'.
47791         * modules/thread: New file.
47792         * lib/glthread/thread.h: New file.
47793         * m4/thread.m4: New file.
47794         * MODULES.html.sh (Multithreading): Add thread.
47795
47796 2008-08-17  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/glthread/lock.h: Include <stdlib.h> always.
47799         * lib/glthread/tls.h: Likewise.
47800         * lib/glthread/cond.h: Likewise.
47801
47802 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47803
47804         New module 'cond'.
47805         * modules/cond: New file.
47806         * lib/glthread/cond.h: New file.
47807         * lib/glthread/cond.c: New file.
47808         * m4/cond.m4: New file.
47809         * MODULES.html.sh (Multithreading): Add cond.
47810
47811 2008-08-16  Eric Blake  <ebb9@byu.net>
47812
47813         c-stack: fix regression on Irix 5.3 from 2008-06-21
47814         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47815         sa_sigaction...
47816         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47817         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47818         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47819         * modules/signal (Makefile.am): Use the value.
47820         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47821         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47822         * doc/posix-headers/signal.texi (signal.h): Document this
47823         portability issue.
47824         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47825         Reported by Tom G. Christensen.
47826
47827 2008-08-17  Bruno Haible  <bruno@clisp.org>
47828
47829         New module 'threadlib'.
47830         * modules/threadlib: New file.
47831         * lib/glthread/threadlib.c: New file, extracted from
47832         lib/glthread/lock.c.
47833         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47834         functions.
47835         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47836         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47837         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47838         macros.
47839         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47840         (gl_DISABLE_THREADS): Remove macro.
47841         * modules/lock (Files): Remove build-aux/config.rpath.
47842         (Depends-on): Remove havelib. Add threadlib.
47843         (configure.ac-early): Remove section.
47844         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47845         * modules/tls (Depends-on): Remove lock. Add threadlib.
47846         (Link): New section, copied from threadlib.
47847         * MODULES.html.sh (Multithreading): Add threadlib.
47848
47849 2008-08-14  Bruno Haible  <bruno@clisp.org>
47850
47851         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47852         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47853         glthread_rwlock_unlock, glthread_rwlock_destroy,
47854         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47855         glthread_recursive_lock_destroy): Define as macros always.
47856         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47857         glthread_lock_lock.
47858         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47859         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47860         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47861         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47862         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47863         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47864         (glthread_recursive_lock_lock_func): Renamed from
47865         glthread_recursive_lock_lock.
47866         (glthread_recursive_lock_unlock_func): Renamed from
47867         glthread_recursive_lock_unlock.
47868         (glthread_recursive_lock_destroy_func): Renamed from
47869         glthread_recursive_lock_destroy.
47870
47871 2008-08-14  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/glthread/lock.h: Renamed from lib/lock.h.
47874         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47875         * lib/glthread/tls.h: Renamed from lib/tls.h.
47876         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47877         * lib/fstrcmp.c: Update includes.
47878         * lib/strsignal.c: Update includes.
47879         * modules/lock (Files, Makefile.am): Update.
47880         (Include): Change to "glthread/lock.h".
47881         * modules/tls (Files, Makefile.am): Update.
47882         (Include): Change to "glthread/tls.h".
47883         * tests/test-lock.c: Update includes.
47884         * tests/test-tls.c: Update includes.
47885         * NEWS: Mention the renamed header files.
47886
47887 2008-08-11  Jim Meyering  <meyering@redhat.com>
47888
47889         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47890
47891 2008-08-11  Eric Blake  <ebb9@byu.net>
47892
47893         test-c-stack: avoid C99-ism
47894         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47895         before statement.
47896         Reported by Alain Guibert.
47897
47898 2008-08-10  Jim Meyering  <meyering@redhat.com>
47899
47900         ensure that return value of uinttostr et al are not ignored
47901         * lib/inttostr.h (__GNUC_PREREQ): Define.
47902         (__attribute_warn_unused_result__): Define.
47903         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47904
47905 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47906
47907         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47908         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47909
47910 2008-08-07  Jim Meyering  <meyering@redhat.com>
47911
47912         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47913
47914         * modules/mkstemp (License): Relicense under LGPLv2+.
47915         * modules/tempname (License): Likewise.
47916
47917 2008-08-06  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/poll.c (poll): Further micro-optimization.
47920
47921 2008-08-06  Jim Meyering  <meyering@redhat.com>
47922
47923         inet_pton.c: use locale-independent tolower
47924         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47925         (inet_pton6): Use c_tolower rather than tolower.
47926         * modules/inet_pton (Depends-on): Add c-ctype.
47927
47928 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47929
47930         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47931         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47932
47933 2008-08-06  Jim Meyering  <meyering@redhat.com>
47934
47935         * modules/inet_pton (License): Relicense under LGPLv2+.
47936
47937 2008-08-03  Bruno Haible  <bruno@clisp.org>
47938
47939         Additional non-aborting API for lock and tls.
47940         * lib/lock.h: Include <errno.h>.
47941         (glthread_lock_init): New macro/function.
47942         (gl_lock_init): Define as wrapper around glthread_lock_init.
47943         (glthread_lock_lock): New macro/function.
47944         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47945         (glthread_lock_unlock): New macro/function.
47946         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47947         (glthread_lock_destroy): New macro/function.
47948         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47949         (glthread_rwlock_init): New macro/function.
47950         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47951         (glthread_rwlock_rdlock): New macro/function.
47952         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47953         (glthread_rwlock_wrlock): New macro/function.
47954         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47955         (glthread_rwlock_unlock): New macro/function.
47956         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47957         (glthread_rwlock_destroy): New macro/function.
47958         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47959         (glthread_recursive_lock_init): New macro/function.
47960         (gl_recursive_lock_init): Define as wrapper around
47961         glthread_recursive_lock_init.
47962         (glthread_recursive_lock_lock): New macro/function.
47963         (gl_recursive_lock_lock): Define as wrapper around
47964         glthread_recursive_lock_lock.
47965         (glthread_recursive_lock_unlock): New macro/function.
47966         (gl_recursive_lock_unlock): Define as wrapper around
47967         glthread_recursive_lock_unlock.
47968         (glthread_recursive_lock_destroy): New macro/function.
47969         (gl_recursive_lock_destroy): Define as wrapper around
47970         glthread_recursive_lock_destroy.
47971         (glthread_once): New macro/function.
47972         (gl_once): Define as wrapper around glthread_once.
47973         Update function declarations.
47974         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47975         glthread_rwlock_init. Return error code.
47976         (glthread_rwlock_rdlock_multithreaded): Renamed from
47977         glthread_rwlock_rdlock. Return error code.
47978         (glthread_rwlock_wrlock_multithreaded): Renamed from
47979         glthread_rwlock_wrlock. Return error code.
47980         (glthread_rwlock_unlock_multithreaded): Renamed from
47981         glthread_rwlock_unlock. Return error code.
47982         (glthread_rwlock_destroy_multithreaded): Renamed from
47983         glthread_rwlock_destroy. Return error code.
47984         (glthread_recursive_lock_init_multithreaded): Renamed from
47985         glthread_recursive_lock_init. Return error code.
47986         (glthread_recursive_lock_lock_multithreaded): Renamed from
47987         glthread_recursive_lock_lock. Return error code.
47988         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47989         glthread_recursive_lock_unlock. Return error code.
47990         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47991         glthread_recursive_lock_destroy. Return error code.
47992         (glthread_once_call): Make static.
47993         (glthread_once_multithreaded): Renamed from glthread_once.
47994         * lib/tls.h: Include <errno.h>.
47995         (glthread_tls_key_init): New macro/function.
47996         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47997         (glthread_tls_set): New macro/function.
47998         (gl_tls_set): Define as wrapper around glthread_tls_set.
47999         (glthread_tls_key_destroy): New macro/function.
48000         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48001         Update function declarations.
48002         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48003         glthread_tls_get.
48004         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48005
48006 2008-08-04  Eric Blake  <ebb9@byu.net>
48007
48008         gnumakefile: use space, not TAB, outside of targets
48009         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48010
48011 2008-08-02  Jim Meyering  <meyering@redhat.com>
48012
48013         getdate.y: avoid locale-dependent date parsing failure
48014         In Turkish locales, getdate would fail to recognize keywords
48015         containing a lowercase "i".  The solution is not to rely on
48016         locale-sensitive case-conversion.
48017         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48018         (lookup_word): Use c_toupper in place of toupper.
48019         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48020         Reported by Vefa Bicakci <bicave@superonline.com> in
48021         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48022         * modules/getdate (Depends-on): Add c-ctype.
48023
48024 2008-08-02  Bruno Haible  <bruno@clisp.org>
48025
48026         * gnulib-tool (func_import): When updating or creating a .gitignore
48027         file, prepend each added line with a slash, and ignore leading slashes
48028         from the existing lines.
48029         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48030
48031 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48032
48033         Portability fix for GNU make 3.79.1.
48034         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48035         versions do not understand.
48036
48037 2008-08-01  Bruno Haible  <bruno@clisp.org>
48038
48039         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48040         * tests/test-isnanf.h (zero): New variable.
48041         (main): Avoid literal -0.0f.
48042         * tests/test-isnand.h (zero): New variable.
48043         (main): Avoid literal -0.0.
48044         * tests/test-isnanl.h (zero): New variable.
48045         (main): Avoid literal -0.0L.
48046         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48047         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48048         -0.0, -0.0L.
48049         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48050         (test_signbitd): Avoid literal -0.0.
48051         (test_signbitl): Avoid literal -0.0L.
48052         * tests/test-ceilf1.c (zero): New variable.
48053         (main): Avoid literal -0.0f.
48054         * tests/test-ceill.c (zero): New variable.
48055         (main): Avoid literal -0.0L.
48056         * tests/test-floorf1.c (zero): New variable.
48057         (main): Avoid literal -0.0f.
48058         * tests/test-floorl.c (zero): New variable.
48059         (main): Avoid literal -0.0L.
48060         * tests/test-roundf1.c (zero): New variable.
48061         (main): Avoid literal -0.0f.
48062         * tests/test-round1.c (zero): New variable.
48063         (main): Avoid literal -0.0.
48064         * tests/test-roundl.c (zero): New variable.
48065         (main): Avoid literal -0.0L.
48066         * tests/test-truncf1.c (zero): New variable.
48067         (main): Avoid literal -0.0f.
48068         * tests/test-trunc1.c (zero): New variable.
48069         (main): Avoid literal -0.0.
48070         * tests/test-truncl.c (zero): New variable.
48071         (main): Avoid literal -0.0L.
48072         * tests/test-frexp.c (zero): New variable.
48073         (main): Avoid literal -0.0.
48074         * tests/test-frexpl.c (zero): New variable.
48075         (main): Avoid literal -0.0L.
48076         * tests/test-ldexpl.c (zero): New variable.
48077         (main): Avoid literal -0.0L.
48078         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48079         (zerod, zerol): New variables.
48080         (test_function): Avoid literals -0.0, -0.0L.
48081         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48082         (zerod, zerol): New variables.
48083         (test_function): Avoid literals -0.0, -0.0L.
48084         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48085         (zerod, zerol): New variables.
48086         (test_function): Avoid literals -0.0, -0.0L.
48087         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48088         (zerod, zerol): New variables.
48089         (test_function): Avoid literals -0.0, -0.0L.
48090         * tests/test-strtod.c (zero): New variable.
48091         (main): Avoid literal -0.0.
48092         Reported by Jonathan C. Patschke <jp@centtech.com>.
48093
48094 2008-07-31  Jim Meyering  <meyering@redhat.com>
48095
48096         sha256.h: correct definition of SHA224_DIGEST_SIZE
48097         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48098         Reported by Paulie Pena IV <paulie4@gmail.com>.
48099         Define as 224 / 8, rather than as a literal.
48100         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48101         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48102         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48103
48104 2008-07-31  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48107         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48108         Reported by Jonathan Patschke <jp@centtech.com>.
48109
48110 2008-07-31  Bruno Haible  <bruno@clisp.org>
48111
48112         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48113         Reported by Paolo Bonzini <bonzini@gnu.org>.
48114
48115 2008-07-30  Eric Blake  <ebb9@byu.net>
48116
48117         test-strtod: allow compilation without -lm
48118         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48119         Reported by Dennis Clarke <blastwave@gmail.com>.
48120
48121 2008-07-28  Jim Meyering  <meyering@redhat.com>
48122
48123         bootstrap: work also when there are no .po files in po/
48124         * build-aux/bootstrap (update_po_files): Complete the change
48125         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48126
48127 2008-07-27  Jim Meyering  <meyering@redhat.com>
48128
48129         * users.txt: Add zile.
48130
48131 2008-07-26  Ben Pfaff  <blp@gnu.org>
48132
48133         Add missing dependencies on new m4/exponent[fdl].m4 files.
48134         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48135         * modules/isnand-nolibm: Add m4/exponentd.m4.
48136         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48137         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48138         m4/isnan[fdl].m4, because the macros actually used moved.
48139         Reported by Jim Meyering.
48140
48141 2008-07-14  Ben Pfaff  <blp@gnu.org>
48142
48143         Add isinf module.
48144         * lib/isinf.c: New file.
48145         * lib/math.in.h: Define isinf macro if we have decided to replace
48146         it.
48147         * m4/isinf.m4: New file.
48148         * m4/math_h.m4: Initialize and substitute variables for isinf
48149         module.
48150         * modules/isinf: New file.
48151         * modules/isinf-tests: New file.
48152         * modules/math: Add substitutions for new module.
48153         * tests/test-isinf.c: New file.
48154         * doc/posix-functions/isinf.texi: Mention new module.
48155         * MODULES.html.sh: Mention new module.
48156
48157 2008-07-14  Ben Pfaff  <blp@gnu.org>
48158
48159         Factor out some macros for use by additional modules.
48160         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48161         exponentf.m4.
48162         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48163         exponentd.m4.
48164         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48165         file exponentl.m4.
48166         * m4/exponentf.m4: New file.
48167         * m4/exponentd.m4: New file.
48168         * m4/exponentl.m4: New file.
48169         * modules/isnanf: Use new file m4/exponentf.m4.
48170         * modules/isnand: Use new file m4/exponentd.m4.
48171         * modules/isnanl: Use new file m4/exponentl.m4.
48172
48173 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48174
48175         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48176         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48177         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48178         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48179
48180         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48181         readlink on platforms without PATH_MAX.
48182
48183 2008-07-21  Eric Blake  <ebb9@byu.net>
48184
48185         Warn, not fail, on stale version.
48186         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48187
48188         Don't allow installation with stale devel version number.
48189         * top/GNUmakefile (_is-install-target): New macro.
48190         (_curr-ver): Forbid installation with stale version number.
48191
48192 2008-07-20  Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48195         TESTS_ENVIRONMENT.
48196         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48197
48198 2008-07-20  Bruno Haible  <bruno@clisp.org>
48199
48200         * lib/c-stack.h (c_stack_action): Add documentation.
48201         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48202
48203 2008-07-20  Bruno Haible  <bruno@clisp.org>
48204
48205         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48206         * modules/readlink (License): Likewise.
48207
48208 2008-07-17  Eric Blake  <ebb9@byu.net>
48209
48210         * modules/c-stack (Link): Fix typo.
48211
48212         Make c-stack use libsigsegv, when available.
48213         * modules/c-stack (Depends-on): Add libsigsegv.
48214         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48215         needed.
48216         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48217         (segv_handler, overflow_handler, c_stack_action)
48218         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48219         implementation when libsigsegv is available, but only when using
48220         the library is necessary.
48221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48222         comment, explaining why XSI check fails on Linux.
48223         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48224         * tests/test-c-stack2.sh: Tweak skip message.
48225         * NEWS: Document new link-time requirements.
48226
48227 2008-07-16  Eric Blake  <ebb9@byu.net>
48228
48229         c-stack: Expose false positives when not using libsigsegv.
48230         * modules/c-stack-tests (Files): Expand test.
48231         * tests/test-c-stack.c (main): Add means to conditionally trigger
48232         non-overflow SIGSEGV.
48233         * tests/test-c-stack2.sh: New file.
48234
48235 2008-07-14  Bruno Haible  <bruno@clisp.org>
48236
48237         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48238         Reported by Eric Blake.
48239
48240 2008-07-14  Sam Steingold  <sds@gnu.org>
48241             Bruno Haible  <bruno@clisp.org>
48242
48243         New module libsigsegv.
48244         * modules/libsigsegv: New file.
48245         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48246         modifications.
48247         * MODULES.html.sh (Signal handling): New section.
48248
48249 2008-07-14  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/unictype/ctype-* (Description): Add the word "function".
48252         Improves the resulting doc in MODULES.html.
48253
48254 2008-07-12  Ben Pfaff  <blp@gnu.org>
48255
48256         Add longlong module.
48257         * modules/longlong: New file.
48258
48259 2008-07-12  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48262         to empty.
48263
48264 2008-07-10  Ben Pfaff  <blp@gnu.org>
48265
48266         Add isnan module.
48267         * doc/posix-functions/isnan.texi: Mention new module.
48268         * lib/math.in.h: Define isnan macro if we have decided to replace
48269         it.
48270         * m4/isnan.m4: New file.
48271         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48272         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48273         also.
48274         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48275         redundancy.
48276         * m4/math_h.m4: Initialize and substitute variables for isnan
48277         module.
48278         * modules/isnan: New file.
48279         * modules/isnan-tests: New file.
48280         * modules/math: Add substitutions for new module.
48281         * tests/test-isnan.c: New file.
48282         * MODULES.html.sh: Mention new module.
48283
48284 2008-07-10  Ben Pfaff  <blp@gnu.org>
48285
48286         Add isnanf module.
48287         * lib/isnanf.m4: New file.
48288         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48289         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48290         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48291         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48292         * modules/isnanf: New file.
48293         * modules/isnanf-tests: New file.
48294         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48295         files.
48296         * tests/test-isnanf-nolibm.c: factored most of its contents into
48297         new file tests/test-isnanf.h.
48298         * tests/test-isnanf.h: New file.
48299         * tests/test-isnanf.c: New file.
48300         * MODULES.html.sh: Mention new module.
48301         * doc/glibc-functions/isnanf.texi: Mention new module.
48302
48303 2008-07-10  Ben Pfaff  <blp@gnu.org>
48304
48305         Add isnand module.
48306         * lib/isnand.h: New file.
48307         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48308         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48309         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48310         functionality also.
48311         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48312         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48313         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48314         * modules/isnand: New file.
48315         * modules/isnand-tests: New file.
48316         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48317         files.
48318         * tests/test-isnand-nolibm.c: factored most of its contents into
48319         new file tests/test-isnand.h.
48320         * tests/test-isnand.h: New file.
48321         * tests/test-isnand.c: New file.
48322         * MODULES.html.sh: Mention new module.
48323
48324 2008-07-10  Ben Pfaff  <blp@gnu.org>
48325
48326         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48327         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48328         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48329         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48330         * modules/isnanf-nolibm: Update references to renamed files.
48331         * modules/isnand-nolibm: Likewise.
48332         * modules/isnanf-nolibm-tests: Likewise.
48333         * modules/isnand-nolibm-tests: Likewise.
48334         * lib/frexp.c: Likewise.
48335         * lib/isfinite.c: Likewise.
48336         * lib/signbitd.c: Likewise.
48337         * lib/signbitf.c: Likewise.
48338         * lib/vasnprintf.c: Likewise.
48339         * tests/test-ceilf1.c: Likewise.
48340         * tests/test-ceilf2.c: Likewise.
48341         * tests/test-floorf1.c: Likewise.
48342         * tests/test-floorf2.c: Likewise.
48343         * tests/test-frexp.c: Likewise.
48344         * tests/test-round1.c: Likewise.
48345         * tests/test-round2.c: Likewise.
48346         * tests/test-roundf1.c: Likewise.
48347         * tests/test-strtod.c: Likewise.
48348         * tests/test-trunc1.c: Likewise.
48349         * tests/test-trunc2.c: Likewise.
48350         * tests/test-truncf1.c: Likewise.
48351         * tests/test-truncf2.c: Likewise.
48352         * NEWS: Mention the renamed header files.
48353
48354 2008-07-11  Jim Meyering  <meyering@redhat.com>
48355
48356         vc-list-files: make the last-resort awk code more portable
48357         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48358         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48359         does not support it.
48360
48361 2008-07-10  Eric Blake  <ebb9@byu.net>
48362
48363         Work with tar's bootstrap.
48364         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48365         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48366         an m4 comment.
48367
48368 2008-07-09  Jim Meyering  <meyering@redhat.com>
48369
48370         posix-shell.m4: fix typo that made this test malfunction
48371         * m4/posix-shell.m4: Remove capitalization in variable name.
48372
48373 2008-07-08  Bruno Haible  <bruno@clisp.org>
48374
48375         * m4/onceonly.m4: Update comments.
48376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48377
48378 2008-07-04  Jim Meyering  <meyering@redhat.com>
48379
48380         * users.txt: Add vc-dwim.
48381         (bison, coreutils): Use the gitweb URL.
48382
48383 2008-07-03  Jim Meyering  <meyering@redhat.com>
48384
48385         * users.txt: Add libffcall.  From Sam Steingold.
48386
48387 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48388
48389         getdate.y: do not ignore TZ with relative day, month or year offset
48390         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48391         relative-date-handling, since otherwise, the latter would clobber the
48392         sole output (an updated Start value) of the tz-handling block.
48393         * tests/test-getdate.c: Tests for the fix
48394
48395 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48396
48397         Recognize 'foo_LIBRARIES += libgnu.a'.
48398         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48399         makefile snippet has already specified an installation location,
48400         also using '+='.
48401
48402 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48403
48404         getdate.y: factor out common actions
48405         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48406         Use them in place of open-coded actions.
48407
48408 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48409
48410         Add self-test for getdate module.
48411         * modules/getdate-tests: New file.
48412         * tests/test-getdate.c: New file.
48413
48414 2008-06-29  Bruno Haible  <bruno@clisp.org>
48415
48416         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48417         .gitignore.
48418         Reported by Sylvain Beucler <beuc@beuc.net>.
48419
48420 2008-06-29  Bruno Haible  <bruno@clisp.org>
48421
48422         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48423         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48424
48425 2008-06-29  Bruno Haible  <bruno@clisp.org>
48426
48427         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48428         EXTRA_DIST.
48429         Reported by Sylvain Beucler <beuc@beuc.net>.
48430
48431 2008-06-26  Jim Meyering  <meyering@redhat.com>
48432
48433         make several modules depend on the "open" module
48434         This provides slightly increased consistency when opening-for-write
48435         the name of a non-directory spelled with a trailing slash.
48436         * modules/chdir-safer: Likewise.
48437         * modules/chown: Likewise.
48438         * modules/clean-temp: Likewise.
48439         * modules/copy-file: Likewise.
48440         * modules/fchdir: Likewise.
48441         * modules/fcntl-safer: Likewise.
48442         * modules/pipe: Likewise.
48443         * modules/utime: Likewise.
48444         Prompted by Eric Blake and Bruno Haible.
48445
48446 2008-06-24  Andreas Schwab  <schwab@suse.de>
48447
48448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48449         literals can be used as initializers for global variables.
48450
48451 2008-06-23  Eric Blake  <ebb9@byu.net>
48452
48453         Make gnulib-cache.m4 easier to diff.
48454         * gnulib-tool (func_import): Allow newlines when reading cached
48455         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48456
48457 2008-06-23  Bruno Haible  <bruno@clisp.org>
48458
48459         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48460         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48461         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48462         m4/signalblocking.m4.
48463         (gl_PREREQ_SIGACTION): Don't invoke it.
48464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48465         gl_PREREQ_SIG_HANDLER_H.
48466         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48467         Don't check for sigaction here.
48468
48469 2008-06-23  Bruno Haible  <bruno@clisp.org>
48470
48471         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48472         (install_handlers): Don't set the SA_RESETHAND flag.
48473
48474 2008-06-23  Bruno Haible  <bruno@clisp.org>
48475
48476         * m4/sigaction.m4: Comment fixes.
48477         * lib/signal.in.h: Likewise.
48478
48479 2008-06-23  Eric Blake  <ebb9@byu.net>
48480
48481         Fix typo.
48482         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48483
48484         Avoid SA_ namespace.
48485         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48486         Reported by Ralf Wildenhues.
48487
48488         Avoid test failure due to SA_RESTORER.
48489         * tests/test-sigaction.c (SA_MASK): New macro.
48490         (main): Avoid failing due to extension flags being set.
48491         Reported by Jim Meyering.
48492
48493         Revert use of sig-handler.h in sigprocmask.c.
48494         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48495         it requires the existence of struct sigaction.
48496         * lib/sigprocmask.c (handler_t): Restore typedef.
48497         (rpl_signal, old_handlers): Use local type.
48498
48499 2008-06-22  Bruno Haible  <bruno@clisp.org>
48500
48501         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48502         conditionally.
48503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48504
48505 2008-06-22  Bruno Haible  <bruno@clisp.org>
48506
48507         * doc/posix-functions/siginterrupt.texi: Move note.
48508
48509         * lib/signal.in.h (SA_RESTART): New macro.
48510         * lib/sigaction.c: Update comment.
48511
48512         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48513
48514         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48515         (gl_PREREQ_SIGPROCMASK): Invoke it.
48516         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48517
48518         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48519
48520         * lib/sigprocmask.c: Update a comment.
48521
48522 2008-06-21  Eric Blake  <ebb9@byu.net>
48523
48524         Use sigaction module rather than signal().
48525         * modules/c-stack (Depends-on): Add sigaction.
48526         * modules/fatal-signal (Depends-on): Likewise.
48527         * modules/nanosleep (Depends-on): Likewise.
48528         * modules/sigprocmask (Files): Add sig-handler.h.
48529         * modules/sigaction (Files): Likewise.
48530         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48531         Eggert.
48532         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48533         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48534         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48535         (init_fatal_signals): Likewise.
48536         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48537         (siginterrupt): Delete fallback.
48538         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48539         instead.
48540         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48541         siginterrupt.
48542
48543         New module sigaction, for mingw.
48544         * modules/sigaction: New module...
48545         * modules/sigaction-tests: ...and its test.
48546         * m4/sigaction.m4: New file.
48547         * lib/sigaction.c: Likewise.
48548         * tests/test-sigaction.c: Likewise.
48549         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48550         * modules/signal (Makefile.am): Likewise.
48551         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48552         needed.
48553         * doc/posix-headers/signal.texi (signal.h): Mention provided
48554         types.
48555         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48556         that sigaction is preferable.
48557         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48558         module.
48559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48560         sigaction.
48561
48562         Improve robustness of sigprocmask by overriding signal.
48563         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48564         is in use.
48565         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48566         (SIGKILL, SIGSTOP): Provide fallbacks.
48567         (rpl_signal): Implement.
48568         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48569         signal can be called inside handlers.
48570
48571         Fix nanosleep module on mingw.
48572         * modules/nanosleep (Depends-on): Add sys_select.
48573         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48574
48575         Fix licensing of sigprocmask.
48576         * modules/raise (License): Relicense as LGPL.
48577
48578 2008-06-21  Bruno Haible  <bruno@clisp.org>
48579
48580         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48581         result if it contains question marks.
48582         Reported by Michael Geng <linux@michaelgeng.de>.
48583
48584 2008-06-19  Bruno Haible  <bruno@clisp.org>
48585
48586         Fix CVS-ism.
48587         * doc/gnulib.texi: Include updated-stamp.texi.
48588         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48589         (updated-stamp.texi): New rule.
48590         (gnulib.info): Depend on it.
48591         * doc/.gitignore: Add updated-stamp.texi.
48592         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48593
48594 2008-06-19  Bruno Haible  <bruno@clisp.org>
48595
48596         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48597         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48598
48599 2008-06-19  Eric Blake  <ebb9@byu.net>
48600
48601         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48602         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48603         Reported by Stepan Kasal.
48604
48605 2008-06-18  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48608         Reported by Eric Blake.
48609
48610 2008-06-18  Eric Blake  <ebb9@byu.net>
48611
48612         Work around cygwin 1.5.25 strsignal bug.
48613         * tests/test-strsignal.c: Allow for const char *.
48614         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48615
48616 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48617
48618         * users.txt: Update URL to article and add author/date
48619         information.
48620
48621 2008-06-17  Bruno Haible  <bruno@clisp.org>
48622
48623         New macro gl_DISABLE_THREADS.
48624         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48625         if the user did not pass --enable-threads or --disable-threads option.
48626         (gl_DISABLE_THREADS): New macro.
48627         Reported by Eric Blake <ebb9@byu.net>.
48628
48629 2008-06-17  Bruno Haible  <bruno@clisp.org>
48630
48631         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48632         when the macro ignores it.
48633         Based on a patch by Eric Blake <ebb9@byu.net>.
48634
48635 2008-06-17  Bruno Haible  <bruno@clisp.org>
48636
48637         * modules/tls (License): Change to LGPLv2+.
48638         Reported by Eric Blake.
48639
48640 2008-06-17  Eric Blake  <ebb9@byu.net>
48641
48642         Simplify c-stack prerequisites.
48643         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48644         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48645         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48646         check.
48647         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48648         <sys/resource.h>.
48649
48650         Move c-stack test into testsuite.
48651         * modules/c-stack-tests: New file.
48652         * lib/c-stack.c [DEBUG]: Move test program...
48653         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48654         fail test if sigaltstack is lacking.
48655         * tests/test-c-stack.sh: New driver file.
48656
48657 2008-06-16  Eric Blake  <ebb9@byu.net>
48658
48659         Use raise module consistently.
48660         * modules/fatal-signal (Depends-on): Add raise.
48661         * modules/sigprocmask (Depends-on): Likewise.
48662         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48663         * lib/sigprocmask.c (sigprocmask): Likewise.
48664         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48665         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48666
48667         Fix compliance bug in sigpending.
48668         * lib/sigprocmask.c (sigpending): Return pending array via
48669         parameter, not return value.
48670
48671 2008-06-14  Eric Blake  <ebb9@byu.net>
48672
48673         Improve obstack-printf test code.
48674         * tests/test-obstack-printf.c (test_function): Fix comment, and
48675         simplify usage of obstack_* in macros.  Add a test for coverage.
48676         Reported by Bruno Haible.
48677
48678 2008-06-14  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48681         array size as a constant, not as a const variable.
48682         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48683         AC_USE_SYSTEM_EXTENSIONS.
48684         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48685         Test whether the obstack_printf function actually exists.
48686         * modules/obstack-printf (Depends-on): Add extensions.
48687         (Include): Remove obstack.h.
48688         * modules/obstack-printf-posix (Depends-on): Add extensions.
48689         (Include): Remove obstack.h.
48690
48691 2008-06-13  Eric Blake  <ebb9@byu.net>
48692
48693         Add obstack-printf and obstack-printf-posix modules.
48694         * modules/obstack-printf: New file.
48695         * modules/obstack-printf-posix: Likewise.
48696         * MODULES.html.sh (Misc): Mention them.
48697         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48698         Likewise.
48699         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48700         Likewise.
48701         * modules/stdio (Makefile.am): Accomodate new modules.
48702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48703         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48704         Declare.
48705         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48706         functions.
48707         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48708         (gl_REPLACE_OBSTACK_PRINTF): New macros
48709         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48710         * tests/test-obstack-printf.c: New file.
48711         * modules/obstack-printf-tests: Likewise.
48712         * modules/obstack-printf-posix-tests: Likewise.
48713
48714 2008-06-11  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48717         * lib/open.c: Include errno.h.
48718         (open): Fail when attempting to write to a file that has a trailing
48719         slash.
48720         * tests/test-open.c (main): Test against trailing slash bug.
48721         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48722
48723 2008-06-10  Bruno Haible  <bruno@clisp.org>
48724
48725         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48726         for $? to work inside the trap command, with various /bin/sh-s.
48727         * tests/test-vc-list-files-cvs.sh: Likewise.
48728
48729 2008-06-10  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/acl-internal.h: Don't include gettext.h here.
48732         * lib/set-mode-acl.c: Include gettext.h here.
48733         * lib/copy-acl.c: Likewise.
48734
48735 2008-06-10  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48738         * lib/wait-process.c (wait_subprocess): Likewise.
48739         * lib/execute.h (execute): Add termsigp argument.
48740         * lib/execute.c (execute): Likewise.
48741         * lib/csharpcomp.c (compile_csharp_using_pnet,
48742         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48743         * lib/csharpexec.c (execute_csharp_using_pnet,
48744         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48745         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48746         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48747         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48748         is_jikes_present): Update.
48749         * lib/javaexec.c (execute_java_class): Update.
48750         * lib/javaversion.c (execute_and_read_line): Update.
48751         * NEWS: Document the changes.
48752         Reported by Eric Blake.
48753
48754 2008-06-10  Eric Blake  <ebb9@byu.net>
48755
48756         Add missing include.
48757         * tests/test-strstr.c (includes): Add <signal.h>.
48758         * tests/test-strcasestr.c (includes): Likewise.
48759         * tests/test-memmem.c (includes): Likewise.
48760
48761 2008-06-10  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/wait-process.c (wait_subprocess): Add an assertion.
48764
48765 2008-06-10  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48768
48769 2008-06-10  Bruno Haible  <bruno@clisp.org>
48770
48771         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48772         using alarm().
48773         * tests/test-strcasestr.c (main): Likewise.
48774         * tests/test-strstr.c (main): Likewise.
48775
48776 2008-06-09  Bruno Haible  <bruno@clisp.org>
48777
48778         Work around the Solaris 10 ACE ACLs ABI change.
48779         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48780         declare if ACL_NO_TRIVIAL is present.
48781         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48782         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48783         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48784         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48785         define if ACL_NO_TRIVIAL is present.
48786         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48787         and use the current ABI.
48788         (file_has_acl): Use same #if condition as elsewhere.
48789         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48790         in use, and use the current ABI.
48791         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48792         Reported by Jim Meyering.
48793
48794 2008-06-09  Eric Blake  <ebb9@byu.net>
48795
48796         Work around environments that (stupidly) ignore SIGALRM.
48797         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48798         before using alarm().
48799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48801         Reported by Ian Beckwith <ianb@erislabs.net>.
48802
48803         Produce autobuild blurb earlier in log.
48804         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48805
48806 2008-06-09  Jim Meyering  <meyering@redhat.com>
48807         and OndÅ™ej Vašík  <ovasik@redhat.com>
48808
48809         utimens.c: correct kernel bug work-around
48810         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48811         failure, not success, and the kernel bug we're trying to work
48812         around affects not just the utimensat call, but also the fallback
48813         futimens call.
48814         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48815         not success.
48816         [HAVE_FUTIMENS]: Use the same work-around, here.
48817
48818 2008-06-09  Jim Meyering  <meyering@redhat.com>
48819
48820         add more guards around definition of ACE_-related code
48821         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48822         ALLOW and ACE_OWNER are also defined.
48823
48824 2008-06-08  Bruno Haible  <bruno@clisp.org>
48825
48826         * lib/acl-internal.h: Add me as co-author.
48827         * lib/file-has-acl.c: Likewise.
48828         * lib/set-mode-acl.c: Likewise.
48829         * lib/copy-acl.c: Likewise.
48830
48831 2008-06-08  Bruno Haible  <bruno@clisp.org>
48832
48833         Add support for AIX ACLs.
48834         * lib/acl-internal.h (acl_nontrivial): New declaration.
48835         * lib/file-has-acl.c (acl_nontrivial): New function.
48836         (file_has_acl): Add implementation using AIX 4 ACL API.
48837         * lib/set-mode-acl.c (qset_acl): Likewise.
48838         * lib/copy-acl.c (qcopy_acl): Likewise.
48839
48840 2008-06-08  Bruno Haible  <bruno@clisp.org>
48841
48842         Add support for HP-UX ACLs.
48843         * lib/acl-internal.h (acl_nontrivial): New declaration.
48844         * lib/file-has-acl.c (acl_nontrivial): New function.
48845         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48846         * lib/set-mode-acl.c (qset_acl): Likewise.
48847         * lib/copy-acl.c (qcopy_acl): Likewise.
48848
48849 2008-06-08  Bruno Haible  <bruno@clisp.org>
48850
48851         Add support for Cygwin ACLs.
48852         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48853         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48854         the chmod_or_fchmod call.
48855         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48856
48857 2008-06-08  Bruno Haible  <bruno@clisp.org>
48858
48859         Fix bug with setuid modes in Solaris 10+ code.
48860         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48861         succeeded, when the mode contains some special bits.
48862
48863 2008-06-08  Bruno Haible  <bruno@clisp.org>
48864
48865         Add support for Solaris 7..10 ACLs.
48866         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48867         declarations.
48868         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48869         functions.
48870         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48871         * lib/set-mode-acl.c (qset_acl): Likewise.
48872         * lib/copy-acl.c (qcopy_acl): Likewise.
48873
48874 2008-06-08  Bruno Haible  <bruno@clisp.org>
48875
48876         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48877         declaration.
48878         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48879         (acl_access_nontrivial): Remove MacOS X case.
48880         (file_has_acl): Use acl_extended_nontrivial.
48881         * lib/copy-acl.c (qcopy_acl): Likewise.
48882
48883 2008-06-08  Bruno Haible  <bruno@clisp.org>
48884
48885         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48886
48887 2008-06-08  Jim Meyering  <meyering@redhat.com>
48888
48889         * modules/acl (Maintainer): Add Bruno Haible.
48890
48891 2008-06-07  Bruno Haible  <bruno@clisp.org>
48892
48893         Improve support for Tru64 ACLs.
48894         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48895         ACL on OSF/1.
48896
48897 2008-06-07  Bruno Haible  <bruno@clisp.org>
48898
48899         Add support for MacOS X ACLs.
48900         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48901         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48902         * lib/set-mode-acl.c (qset_acl): Likewise.
48903         * lib/copy-acl.c (qcopy_acl): Likewise.
48904
48905 2008-06-07  Bruno Haible  <bruno@clisp.org>
48906
48907         Fix memory leak introduced on 2008-05-22.
48908         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48909         use.
48910
48911 2008-06-07  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48914         to construct an empty ACL.
48915
48916 2008-06-07  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48919         precisely.
48920         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48921
48922 2008-06-07  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48925         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48926
48927 2008-06-07  Bruno Haible  <bruno@clisp.org>
48928
48929         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48930         regardless of POSIX.
48931         * doc/posix-functions/_longjmp.texi: Likewise.
48932         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48933         SystemV platform in this case.
48934
48935 2008-06-06  Eric Blake  <ebb9@byu.net>
48936
48937         Document abort() bugs.
48938         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48939
48940         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48941         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48942         sigsetjmp.
48943         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48944         siglongjmp, but only as a macro.
48945         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48946         is obsolete.
48947         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48948
48949         Tweak documentation to cover cygwin argz bugs.
48950         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48951         argz bug fix; no code change needed since no cygwin releases
48952         occurred between the last fix and the bug being tested.
48953         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48954         module and recently fixed cygwin bugs.
48955         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48956         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48957         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48958         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48959         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48960         Likewise.
48961         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48962         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48963         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48964         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48965         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48966         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48967         Likewise.
48968
48969         Avoid gcc warning on cygwin.
48970         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48971         !ACL_NO_TRIVIAL]: Avoid unused variable.
48972
48973 2008-06-05  Eric Blake  <ebb9@byu.net>
48974
48975         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48976         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48977         git-version-gen fails to come up with a version.
48978         Reported by Simon Josefsson.
48979
48980 2008-06-05  Jim Meyering  <meyering@redhat.com>
48981             Paul Eggert  <eggert@cs.ucla.edu>
48982
48983         utimens.c: work around a probable Linux kernel bug
48984         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48985         appears to be a kernel bug that causes utimensat to return 280
48986         instead of 0, indicating success.
48987
48988 2008-06-04  Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48991         2008-06-01 commit.
48992
48993 2008-06-04  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48996         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48997         (file_has_acl): Use it. Save errno afterwards.
48998         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48999
49000 2008-06-03  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49003         draft code. Simplify #ifs.
49004         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49005         Put Solaris code after POSIX-draft code. Fix comments regarding
49006         Solaris 10, HP-UX. Mention Cygwin.
49007         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49008
49009 2008-06-03  Eric Blake  <ebb9@byu.net>
49010
49011         Provide fallback for older kernels.
49012         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49013         Provide runtime fallback if kernel lacks support.
49014         Reported by Mike Frysinger.
49015
49016 2008-06-02  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49019         it exists.
49020
49021 2008-06-02  Bruno Haible  <bruno@clisp.org>
49022
49023         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49024         * lib/copy-acl.c (qcopy_acl): Update comment.
49025
49026 2008-06-02  Bruno Haible  <bruno@clisp.org>
49027
49028         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49029         like ACL APIs.
49030
49031 2008-06-02  Bruno Haible  <bruno@clisp.org>
49032
49033         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49034         * tests/test-set-mode-acl.sh: Likewise.
49035         * tests/test-copy-acl.sh: Likewise.
49036         * tests/test-copy-file.sh: Likewise.
49037
49038 2008-06-02  Bruno Haible  <bruno@clisp.org>
49039
49040         * tests/test-file-has-acl.sh: Remove unused code.
49041
49042 2008-06-01  Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49045         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49046         messages.
49047         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49048
49049 2008-06-01  Bruno Haible  <bruno@clisp.org>
49050
49051         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49052         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49053         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49054         APIs.
49055         * modules/acl-tests (configure.ac): Remove tests now contained in
49056         m4/acl.m4.
49057
49058 2008-06-02  Jim Meyering  <meyering@redhat.com>
49059
49060         announce-gen: use a better key-server host name
49061         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49062         it may be more consistently reliable.  Suggested by Werner Koch
49063         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49064
49065 2008-06-01  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49068         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49069
49070 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49071
49072         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49073
49074 2008-06-01  Bruno Haible  <bruno@clisp.org>
49075
49076         New ACL tests.
49077         * tests/test-file-has-acl.sh: New file.
49078         * tests/test-file-has-acl.c: New file.
49079         * tests/test-set-mode-acl.sh: New file.
49080         * tests/test-set-mode-acl.c: New file.
49081         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49082         * tests/test-copy-acl.c: New file.
49083         * modules/acl-tests: New file, based on modules/copy-file-tests.
49084         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49085         (Depends-on): Add acl-tests.
49086         (configure.ac): Remove checks.
49087         (Makefile.am): Don't create test-sameacls program here any more.
49088
49089 2008-06-01  Bruno Haible  <bruno@clisp.org>
49090
49091         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49092         * tests/test-sameacls.c: Include progname.h.
49093         (main): Invoke set_program_name. Portability fixes for MacOS X,
49094         Solaris, HP-UX.
49095
49096 2008-06-01  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49099         function.
49100         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49101
49102 2008-06-01  Bruno Haible  <bruno@clisp.org>
49103
49104         * modules/rpmatch (Depends-on): Add strdup.
49105
49106 2008-06-01  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/pipe.c: Include unistd-safer.h.
49109         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49110         * modules/pipe (Depends-on): Add unistd-safer.
49111
49112 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49113
49114         * modules/autobuild (configure.ac): Call AB_INIT.
49115
49116 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49117
49118         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49119         Suggested by Bruno Haible <bruno@clisp.org>.
49120
49121 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49122
49123         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49124         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49125         <bruno@clisp.org>.
49126
49127 2008-05-29  Eric Blake  <ebb9@byu.net>
49128
49129         Prefer new POSIX 200x interfaces over futimesat.
49130         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49131         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49132         when available.
49133         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49134
49135 2008-05-28  Bruno Haible  <bruno@clisp.org>
49136
49137         * modules/stpcpy (License): Change to LGPLv2+.
49138         Requested by David Lutterkort <dlutter@redhat.com>.
49139
49140 2008-05-27  Bruno Haible  <bruno@clisp.org>
49141
49142         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49143         current mingw.
49144         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49145
49146 2008-05-27  Bruno Haible  <bruno@clisp.org>
49147
49148         * modules/iconv_open (Link): New section, from module 'iconv'.
49149         * modules/striconv (Link): Likewise.
49150         * modules/striconveh (Link): Likewise.
49151         * modules/xstriconv (Link): Likewise.
49152         * modules/unicodeio (Link): Likewise.
49153         * modules/propername (Link): Likewise.
49154         Reported by Jim Meyering.
49155
49156 2008-05-26  Jim Meyering  <meyering@redhat.com>
49157
49158         sha256: do not artificially restrict buffer length to be < 2^32
49159         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49160         uint32_t to size_t.
49161         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49162         to match.
49163
49164         avoid unaligned access errors, e.g., on sparc
49165         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49166         direct access through a possibly-unaligned uint64* pointer.
49167         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49168         direct access through a possibly-unaligned uint32* pointer.
49169         Prompted by this patch from Tom "spot" Callaway:
49170         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49171
49172         sha512.c: fix typo in comment
49173         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49174
49175 2008-05-25  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49178         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49179         (Makefile.am): Update lib_SOURCES.
49180
49181 2008-05-25  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49184
49185 2008-05-25  Jim Meyering  <meyering@redhat.com>
49186
49187         useless-if-before-free: freed expr may have white-space differences
49188         * build-aux/useless-if-before-free: Recognize cases in which the
49189         freed expression differs from the tested one in embedded white
49190         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49191         $1 was used, so we can't make any regexp shy.  Improved tests now
49192         detect this.
49193
49194         useless-if-before-free: accept white space in the expression.
49195         * build-aux/useless-if-before-free: For now, any white space
49196         in the expression must be identical in the free argument.
49197
49198         useless-if-before-free: efficiency tweak
49199         * build-aux/useless-if-before-free: Make the expression-matching
49200         regexp "shy".
49201         Make the *outer* regexp shy, not the expr-matching one.
49202
49203         update code-in-comment to accept cast of free arg
49204         * build-aux/useless-if-before-free: Update regexp.
49205
49206 2008-05-25  Bruno Haible  <bruno@clisp.org>
49207
49208         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49209         * modules/copy-file-tests (Files, Makefile.am): Update.
49210         * tests/test-copy-file.c (func_test_copy): Update.
49211
49212 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49213
49214         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49215
49216 2008-05-23  Bruno Haible  <bruno@clisp.org>
49217
49218         Improve support for ACLs on OSF/1.
49219         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49220         Remove fallback for unknown flavors of ACLs.
49221
49222 2008-05-22  Bruno Haible  <bruno@clisp.org>
49223
49224         Add support for ACLs on OSF/1.
49225         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49226         replacements.
49227         (acl_free_text): New macro fallback.
49228         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49229         acl_free.
49230         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49231         acl_free_text function. Require AC_C_INLINE.
49232
49233 2008-05-22  Bruno Haible  <bruno@clisp.org>
49234
49235         Make copy_acl work on MacOS X 10.5.
49236         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49237         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49238         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49239         If MODE_INSIDE_ACL, don't assume that every system has the same text
49240         representation for ACLs as FreeBSD.
49241         * lib/copy-acl.c (copy_acl): Add support for platforms with
49242         !MODE_INSIDE_ACL.
49243         * lib/file-has-acl.c (file_has_acl): Likewise.
49244         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49245         FreeBSD, MacOS X, or IRIX, respectively.
49246
49247 2008-05-22  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/acl.h: Don't include <sys/acl.h>.
49250         (GETACLCNT): Move fallback to lib/acl-internal.h.
49251         * lib/acl-internal.h: Include <sys/acl.h> here.
49252         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49253
49254 2008-05-22  Bruno Haible  <bruno@clisp.org>
49255
49256         Split off copy_acl function to separate file.
49257         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49258         * lib/acl.c (copy_acl): Moved function to separate file.
49259         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49260         * modules/acl (Files): Add lib/copy-acl.c.
49261         (Makefiles.am): Augment lib_SOURCES.
49262
49263 2008-05-22  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/copy-file-tests: New file.
49266         * tests/test-copy-file.sh: New file.
49267         * tests/test-copy-file.c: New file.
49268         * tests/test-copy-file-sameacls.c: New file.
49269
49270 2008-05-22  Eric Blake  <ebb9@byu.net>
49271
49272         Avoid gcc warning.
49273         * tests/test-memcmp.c (main): Pass NULL indirectly.
49274
49275 2008-05-21  Bruno Haible  <bruno@clisp.org>
49276
49277         Add reference doc about ACLs.
49278         * doc/acl-resources.txt: New file.
49279         * doc/acl-cygwin.txt: New file.
49280
49281 2008-05-21  Bruno Haible  <bruno@clisp.org>
49282
49283         Avoid one more warning from gcc.
49284         * lib/vasnprintf.c (IF_LINT): Update comments.
49285         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49286
49287 2008-05-21  Jim Meyering  <meyering@redhat.com>
49288
49289         avoid a warning from gcc
49290         * lib/vasnprintf.c (IF_LINT): Define.
49291         (scale10_round_decimal_long_double):
49292         Use it to avoid a "may be used uninitialized" warning.
49293         (scale10_round_decimal_double): Likewise.
49294
49295 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49296
49297         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49298         declared.
49299
49300 2008-05-20  Bruno Haible  <bruno@clisp.org>
49301
49302         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49303         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49304
49305 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49306
49307         * modules/memcmp-tests: New file.
49308         * tests/test-memcmp.c: New file.
49309
49310 2008-05-19  Bruno Haible  <bruno@clisp.org>
49311
49312         * modules/propername (Notice, configure.ac): Put quoted "..." into
49313         --keyword option.
49314         * lib/propername.h: Update comments accordingly.
49315         Reported by Eric Blake.
49316
49317 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49318
49319         * modules/getpass-gnu (Depends-on): Add fseeko.
49320
49321 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49322
49323         * modules/base64-tests: New file.
49324
49325 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49326
49327         * lib/base64.c (base64_decode_ctx): If a decode context structure
49328         was passed in use it to ignore newlines.  If a context structure
49329         was _not_ passed in, continue to treat newlines as garbage (this
49330         is the historical behavior).  Formerly base64_decode.
49331         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49332         takes a decode context structure.
49333         * lib/base64.h (base64_decode): Macro for four-argument calls.
49334         (base64_decode_alloc): Likewise.
49335         * lib/base64.c (base64_decode_ctx): If a decode context structure
49336         was passed in use it to ignore newlines.  If a context structure
49337         was _not_ passed in, continue to treat newlines as garbage (this
49338         is the historical behavior).  Formerly base64_decode.
49339         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49340         takes a decode context structure.
49341         * lib/base64.h (base64_decode): Macro for four-argument calls.
49342         (base64_decode_alloc): Likewise.
49343
49344 2008-05-19  Jim Meyering  <meyering@redhat.com>
49345
49346         avoid a warning from gcc
49347         * lib/trim.c (IF_LINT): Define.
49348         (trim2): Use it to avoid a "may be used uninitialized" warning.
49349
49350         Fix doc typo.
49351         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49352
49353 2008-05-19  Bruno Haible  <bruno@clisp.org>
49354
49355         * doc/glibc-functions/getpass.texi: Document limits of other
49356         implementations.
49357
49358 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49359             Bruno Haible <bruno@clisp.org>
49360
49361         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49362
49363 2008-05-18  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/propername: New file, from GNU gettext.
49366         * lib/propername.h: New file, from GNU gettext.
49367         * lib/propername.c: New file, from GNU gettext.
49368         * MODULES.html.sh (Internationalization functions): Add propername.
49369
49370 2008-05-16  Jim Meyering  <meyering@redhat.com>
49371             Bruno Haible  <bruno@clisp.org>
49372
49373         Avoid some warnings from "gcc -Wshadow".
49374         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49375
49376 2008-05-15  Eric Blake  <ebb9@byu.net>
49377
49378         Extend previous patch to cygwin 1.7.0.
49379         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49380         fast implementation in cygwin >= 1.7.0.
49381         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49383
49384 2008-05-15  Bruno Haible  <bruno@clisp.org>
49385
49386         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49387         implementation in glibc >= 2.9.
49388         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49390
49391 2008-05-15  Bruno Haible  <bruno@clisp.org>
49392
49393         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49394         (Unicode string functions): Add unilbrk/*.
49395         Reported by Karl Berry.
49396
49397 2008-05-15  Eric Blake  <ebb9@byu.net>
49398
49399         Fix violation of <stdbool.h> replacement in regex.
49400         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49401         * lib/regexec.c (re_search_internal): Likewise.
49402         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49403
49404 2008-05-15  Jim Meyering  <meyering@redhat.com>
49405
49406         avoid distracting test output when git or cvs is not found
49407         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49408         * tests/test-vc-list-files-git.sh: Likewise.
49409
49410 2008-05-15  Eric Blake  <ebb9@byu.net>
49411
49412         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49413         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49414         glibc version.
49415         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49416         * doc/posix-functions/strstr.texi (strstr): Likewise.
49417         * lib/str-two-way.h (MAX): Sychronize with glibc.
49418
49419 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49420
49421         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49422         opr.ctx_type.
49423         (calc_first): Initialize constraint field.
49424         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49425         Fix grammar.
49426         (duplicate_node): Merge constraint field for all node types.
49427         (calc_eclosure_iter): Look at constraint field for all node types.
49428         * lib/regex_internal.c (create_cd_newstate): Don't look at
49429         opr.ctx_type.
49430
49431 2008-05-14  Bruno Haible  <bruno@clisp.org>
49432
49433         Help GCC to do better code generation.
49434         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49435         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49436         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49437         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49438         Declare with attribute 'malloc' if supported.
49439
49440 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49441
49442         use "echo STR|wc -c" rather than unportable "expr length STR"
49443         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49444         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49445
49446 2008-05-14  Jim Meyering  <meyering@redhat.com>
49447
49448         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49449         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49450         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49451         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49452         via Collin Lasse.
49453
49454 2008-05-14  Eric Blake  <ebb9@byu.net>
49455
49456         Avoid quadratic growth in gl_LIBSOURCES.
49457         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49458         Suggested by Bruno Haible.
49459
49460         Test xmemdup0.
49461         * modules/xmemdup0-tests: New file.
49462         * tests/test-xmemdup0.c: Likewise.
49463
49464 2008-05-13  Eric Blake  <ebb9@byu.net>
49465
49466         Split xmemdup0 into its own module.
49467         * modules/xmemdup0: New file.
49468         * lib/xmemdup0.h: Likewise.
49469         * lib/xmemdup0.c: Likewise.
49470         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49471         * lib/xalloc.h (xmemdup0): Remove.
49472         * lib/xmalloc.c (xmemdup0): Likewise.
49473
49474 2008-05-13  Eric Blake  <ebb9@byu.net>
49475             Bruno Haible  <bruno@clisp.org>
49476
49477         Reduce number of forks required during autoconf.
49478         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49479         and gl_LIBSOURCES_DIR.
49480         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49481         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49482         m4_syscmd per file.
49483         <m4_foreach_w>: Move...
49484         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49485
49486 2008-05-13  Eric Blake  <ebb9@byu.net>
49487
49488         * gnulib-tool: Fix various comment typos.
49489
49490 2008-05-12  Bruno Haible  <bruno@clisp.org>
49491
49492         Tailor the linebreaking algorithm.
49493         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49494
49495 2008-05-12  Bruno Haible  <bruno@clisp.org>
49496
49497         Update to Unicode 5.0.0.
49498         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49499         LBP_JV, LBP_JT. Redistribute values.
49500         (unilbrk_table): Change size.
49501         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49502         Unicode TR#14 rev. 22.
49503         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49504         LBP_JV, LBP_JT. Redistribute values.
49505         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49506         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49507         Update.
49508         * lib/unilbrk/lbrkprop1.h: Regenerated.
49509         * lib/unilbrk/lbrkprop2.h: Regenerated.
49510         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49511         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49512         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49513         Likewise.
49514         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49515         Likewise.
49516         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49517         result.
49518         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49519         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49520         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49521         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49522         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49523         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49524
49525 2008-05-11  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49528
49529 2008-05-11  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49532         * modules/unilbrk/gen-lbrk: New file.
49533
49534 2008-05-11  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49537         * m4/sha512.m4 (gl_SHA512): Likewise.
49538
49539 2008-05-11  Jim Meyering  <meyering@redhat.com>
49540
49541         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49542         * modules/crypto/sha256: New file.
49543         * modules/crypto/sha512: Likewise.
49544         * lib/sha256.c: Likewise.
49545         * lib/sha256.h: Likewise.
49546         * lib/sha512.c: Likewise.
49547         * lib/sha512.h: Likewise.
49548         * lib/u64.h: Likewise.
49549         * m4/sha256.m4: Likewise.
49550         * m4/sha512.m4: Likewise.
49551         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49552
49553 2008-05-10  Bruno Haible  <bruno@clisp.org>
49554
49555         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49556         (Input/Output <stdio.h>): Add xprintf.
49557         (Signal handling <signal.h>): Add strsignal.
49558         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49559         (Core language properties): Add func.
49560         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49561         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49562         strings.
49563         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49564         (Input/output): New section.
49565         (File system functions): Add openat-die, stat-macros.
49566         (Networking functions): Add sockets.
49567         (Unicode string functions): Add unictype/*.
49568         (Support for building libraries and executables): Add gperf.
49569         (Support for building documentation): Add agpl-3.0.
49570         (Misc): Add nocrash.
49571
49572 2008-05-10  Bruno Haible  <bruno@clisp.org>
49573
49574         * modules/unictype/gen-ctype: New file.
49575
49576 2008-05-10  Jim Meyering  <meyering@redhat.com>
49577
49578         Make chdir-safer.c more efficient on a system with no symlinks.
49579         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49580         also if ELOOP is zero.  Suggested by Bruno Haible.
49581
49582         Make chdir-safer.c slightly safer.
49583         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49584         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49585
49586         Avoid compile failure on systems without ELOOP (like mingw).
49587         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49588         Reported by Bruno Haible.
49589
49590 2008-05-10  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49593         (is_utf8_encoding): Use a case-insensitive comparison.
49594         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49595         streq.
49596
49597 2008-05-10  Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49600         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49601         * lib/unilbrk/ulc-common.h (iconv_string_length,
49602         iconv_string_keeping_offsets): Remove declarations.
49603         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49604         Don't include <iconv.h>, streq.h, xsize.h.
49605         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49606         conversion.
49607         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49608         <iconv.h>, streq.h, xsize.h.
49609         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49610         conversion.
49611         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49612         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49613         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49614         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49615
49616 2008-05-10  Bruno Haible  <bruno@clisp.org>
49617
49618         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49619         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49620
49621         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49622         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49623
49624         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49625         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49626
49627         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49628         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49629
49630         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49631         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49632
49633         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49634         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49635
49636         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49637         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49638
49639         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49640         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49641
49642 2008-05-10  Bruno Haible  <bruno@clisp.org>
49643
49644         Split up 'linebreak' module.
49645         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49646         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49647         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49648         modifications.
49649         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49650         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49651         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49652         lib/linebreak.c.
49653         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49654         lib/linebreak.c.
49655         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49656         lib/linebreak.c.
49657         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49658         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49659         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49660         lib/linebreak.c.
49661         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49662         lib/linebreak.c.
49663         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49664         lib/linebreak.c.
49665         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49666         lib/linebreak.c.
49667         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49668         lib/linebreak.c.
49669         * modules/unilbrk/base: New file.
49670         * modules/unilbrk/tables: New file.
49671         * modules/unilbrk/u8-possible-linebreaks: New file.
49672         * modules/unilbrk/u16-possible-linebreaks: New file.
49673         * modules/unilbrk/u32-possible-linebreaks: New file.
49674         * modules/unilbrk/ulc-common: New file.
49675         * modules/unilbrk/ulc-possible-linebreaks: New file.
49676         * modules/unilbrk/u8-width-linebreaks: New file.
49677         * modules/unilbrk/u16-width-linebreaks: New file.
49678         * modules/unilbrk/u32-width-linebreaks: New file.
49679         * modules/unilbrk/ulc-width-linebreaks: New file.
49680         * lib/linebreak.h: Remove file.
49681         * lib/linebreak.c: Remove file.
49682         * m4/linebreak.m4: Remove file.
49683         * modules/linebreak: Remove file.
49684         * NEWS: Mention the changes.
49685
49686 2008-05-09  Eric Blake  <ebb9@byu.net>
49687
49688         Add xmemdup0.
49689         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49690         implementation.
49691         * lib/xmalloc.c (xmemdup0): New C implementation.
49692
49693 2008-05-08  Bruno Haible  <bruno@clisp.org>
49694
49695         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49696
49697 2008-05-07  Eric Blake  <ebb9@byu.net>
49698
49699         Support cross-compilation of <wctype.h>.
49700         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49701         AC_CACHE_CHECK.
49702
49703 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49704
49705         * build-aux/vc-list-files: Add support for bzr.
49706
49707 2008-05-03  Jim Meyering  <meyering@redhat.com>
49708
49709         avoid failed assertion with tight malloc
49710         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49711
49712 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49713
49714         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49715         are needed from arpa/inet.h.
49716         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49717         Reported by Bruno Haible.
49718
49719 2008-05-02  Jim Meyering  <meyering@redhat.com>
49720
49721         avoid compilation error on FreeBSD 6
49722         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49723
49724 2008-05-01  Jim Meyering  <meyering@redhat.com>
49725
49726         useless-if-before-free: correct --help's exit status description
49727         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49728         for one or more matches, etc.  Reported by Bruno Haible.
49729
49730         vc-list-files: make the stand-alone gnulib test work
49731         * modules/vc-list-files-tests (configure.ac):
49732         Define and AC_SUBST abs_aux_dir.
49733         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49734         $(abs_top_srcdir) to each script and having each of them
49735         duplicate the work of setting PATH, set PATH here, using
49736         the new variable, abs_aux_dir instead.
49737         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49738         * tests/test-vc-list-files-git.sh: Likewise.
49739         Reported by Bruno Haible.
49740
49741 2008-05-01  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49744         reallocation. Rename 'done' to 'found_delimiter'.
49745
49746 2008-05-01  Jim Meyering  <meyering@redhat.com>
49747
49748         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49749         * build-aux/vc-list-files: Use `...`, not $(...).
49750
49751 2008-04-30  Jim Meyering  <meyering@redhat.com>
49752
49753         add tests for vc-list-files
49754         * modules/vc-list-files-tests: New module.
49755         * tests/test-vc-list-files-cvs.sh: New file.
49756         * tests/test-vc-list-files-git.sh: New file.
49757
49758         avoid a warning from gcc
49759         * lib/getndelim2.c (IF_LINT): Define.
49760         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49761
49762         vc-list-files: work properly with build-aux/cvsu, too
49763         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49764         to all cvs-based clauses.
49765
49766         vc-list-files: work properly in the CVS+awk case, too
49767         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49768
49769         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49770         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49771         take more than one file argument, so .  Add quotes, just in case $dir
49772         ever contains a shell meta-character.  Prompted by Soren Hansen in
49773         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49774
49775 2008-04-29  Eric Blake  <ebb9@byu.net>
49776
49777         Optimize getndelim2 to use block operations when possible.
49778         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49779         freadseek, and memchr2.
49780         * lib/getndelim2.c (getndelim2): Use them for block reads.
49781
49782 2008-04-29  Bruno Haible  <bruno@clisp.org>
49783
49784         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49786         * modules/inet_ntop (Depends-on): Add extensions.
49787         * modules/inet_pton (Depends-on): Likewise.
49788         Reported by Simon Josefsson.
49789
49790 2008-04-29  Jim Meyering  <meyering@redhat.com>
49791
49792         When the is more than one match in a block, match all of them.
49793         * build-aux/useless-if-before-free: Iterate through each block
49794         until there are no more matches.
49795
49796         Fix broken useless-if-before-free script.
49797         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49798         the expression to match cast of argument to free-like function.
49799
49800 2008-04-29  Eric Blake  <ebb9@byu.net>
49801
49802         Use new header.
49803         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49804
49805 2008-04-29  Jim Meyering  <meyering@redhat.com>
49806
49807         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49808         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49809         by gnulib to exist and to declare e.g., inet_ntop.
49810         Don't include "inet_ntop.h", now removed.
49811
49812         * m4/arpa_inet_h.m4: Remove trailing blanks.
49813
49814 2008-04-29  Eric Blake  <ebb9@byu.net>
49815
49816         Silence valgrind on safe reads beyond potential array bounds.
49817         * lib/rawmemchr.valgrind: New file.
49818         * lib/strchrnul.valgrind: Likewise.
49819         * modules/rawmemchr (Files): Distribute new file.
49820         * modules/strchrnul (Files): Likewise.
49821         Suggested by Bruno Haible.
49822
49823 2008-04-29  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49826         (inet_ntop, inet_pton): Change portability warning's wording.
49827         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49828         Invoke gl_CHECK_NEXT_HEADERS.
49829         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49830         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49831         set ARPA_INET_H.
49832         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49833         * modules/arpa_inet (Description): No longer only for systems that
49834         lack it.
49835         (Depends-on): Add include_next.
49836         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49837         HAVE_ARPA_INET_H.
49838
49839 2008-04-29  Jim Meyering  <meyering@redhat.com>
49840
49841         * modules/mkdir (License): Re-license as LGPLv2+.
49842
49843 2008-04-29  Bruno Haible  <bruno@clisp.org>
49844
49845         * modules/rawmemchr (Maintainer): Set to Eric.
49846         * modules/strchrnul (Maintainer): Likewise.
49847
49848 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49849
49850         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49851         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49852
49853         * modules/arpa_inet (arpa/inet.h): Use them.
49854
49855 2008-04-28  Eric Blake  <ebb9@byu.net>
49856
49857         Test getndelim2.
49858         * modules/getndelim2-tests: New file.
49859         * tests/test-getndelim2.c: Likewise.
49860         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49861         stream.
49862         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49863
49864         * MODULES.html.sh: Document new module.
49865
49866 2008-04-20  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/c-stack.c (die): Use raise.
49869         * modules/c-stack (Depends-on): Add raise.
49870
49871 2008-04-28  Bruno Haible  <bruno@clisp.org>
49872
49873         Expect rpmatch to be declared.
49874         * lib/yesno.c (rpmatch): Remove declaration.
49875
49876         Declare rpmatch.
49877         * lib/stdlib.in.h (rpmatch): New declaration.
49878         * lib/rpmatch.c: Include <stdlib.h> first.
49879         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49880         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49882         HAVE_RPMATCH.
49883         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49884         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49885         (Include): Set to <stdlib.h>.
49886         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49887         HAVE_RPMATCH.
49888         * NEWS: Document the change.
49889
49890 2008-04-28  Bruno Haible  <bruno@clisp.org>
49891
49892         Change rpmatch to use nl_langinfo when appropriate.
49893         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49894         (N_): New macro.
49895         (localized_pattern): New function/macro.
49896         (try): Remove match, nomatch arguments. Copy the pattern into safe
49897         memory before caching it.
49898         (rpmatch): Use localized_pattern. Add translator comments.
49899         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49900         Suggested by Eric Blake.
49901         * modules/rpmatch (Depends-on): Add stdbool.
49902
49903 2008-04-28  Eric Blake  <ebb9@byu.net>
49904
49905         Add rawmemchr module, matching glibc.
49906         * modules/string (Makefile.am): New indicator.
49907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49908         * lib/string.in.h (rawmemchr): Declare when appropriate.
49909         * modules/rawmemchr: New file.
49910         * m4/rawmemchr.m4: Likewise.
49911         * lib/rawmemchr.c: Likewise.
49912         * modules/rawmemchr-tests: Likewise.
49913         * tests/test-rawmemchr.c: Likewise.
49914         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49915         module.
49916         * modules/strchrnul (Depends-on): Add rawmemchr.
49917         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49918
49919         Whitespace cleanup.
49920         * tests/test-strchrnul.c: Reindent.
49921         * lib/strchrnul.c: Likewise.
49922
49923         Optimize and test strchrnul.
49924         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49925         * modules/strchrnul-tests: New file.
49926         * tests/test-strchrnul.c: Likewise.
49927
49928         Remove intprops dependency.
49929         * modules/memchr (Depends-on): Remove intprops.
49930         * modules/memrchr (Depends-on): Likewise.
49931         * modules/memchr2 (Depends-on): Likewise.
49932         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49933         * lib/memrchr.c (__memrchr): Likewise.
49934         * lib/memrchr2.c (memchr2): Likewise.
49935         Reported by Simon Josefsson.
49936
49937 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49938
49939         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49940         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49941
49942 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49943
49944         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49945
49946         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49947
49948         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49949
49950         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49951         declarations.
49952         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49953
49954         * m4/inet_pton.m4: Don't check for header files.
49955
49956         * m4/inet_ntop.m4: Don't check for header files.
49957
49958 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49959
49960         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49961         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49962         trigger for cygwin).
49963         Reported by Bruno Haible  <bruno@clisp.org>.
49964
49965 2008-04-28  Bruno Haible  <bruno@clisp.org>
49966
49967         * doc/posix-functions/strdup.texi: Mention mingw problem.
49968
49969 2008-04-27  Bruno Haible  <bruno@clisp.org>
49970
49971         * modules/stat-time-tests (Depends-on): Add sleep.
49972         * tests/test-stat-time.c (force_unlink): New function.
49973         (cleanup): Use it.
49974         (test_mtime): Remove the ctime related tests.
49975         (test_ctime): New function, containing the ctime related tests.
49976         (main): Call test_ctime, except on native Windows platforms.
49977
49978 2008-04-27  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/rpmatch.c (rpmatch): Add some comments.
49981         Reported by James Youngman <jay@gnu.org>.
49982
49983 2008-04-27  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49986         quiet NaNs.
49987
49988 2008-04-27  Bruno Haible  <bruno@clisp.org>
49989
49990         Make test-yesno.sh work on mingw.
49991         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49992         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49993         (main): Set stdin to binary mode.
49994         * modules/yesno-tests (Depends-on): Add binary-io.
49995
49996 2008-04-27  Bruno Haible  <bruno@clisp.org>
49997
49998         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49999         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50000         argument that lie outside the IEEE 854 domain.
50001         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50002         (gl_ISFINITE): Use it.
50003         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50004
50005 2008-04-27  Bruno Haible  <bruno@clisp.org>
50006
50007         Allow local renaming in config.h.
50008         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50009
50010 2008-04-27  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/memchr.c (__memchr): Change type of 'i'.
50013         * lib/memchr2.c (memchr2): Likewise.
50014
50015 2008-04-26  Eric Blake  <ebb9@byu.net>
50016         and Bruno Haible  <bruno@clisp.org>
50017
50018         Optimize and test memrchr.
50019         * modules/memrchr (Depends-on): Add intprops.
50020         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50021         * modules/memrchr-tests: New file.
50022         * tests/test-memrchr.c: New file.
50023
50024 2008-04-26  Bruno Haible  <bruno@clisp.org>
50025
50026         Add tentative support for DragonFly BSD.
50027         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50028         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50029         fp.
50030         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50031         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50032         * lib/fpurge.c (fpurge): Likewise.
50033         * lib/freadable.c (freaadable): Likewise.
50034         * lib/freadahead.c (freadahead): Likewise.
50035         * lib/freading.c (freading): Likewise.
50036         * lib/freadptr.c (freadptr): Likewise.
50037         * lib/freadseek.c (freadptrinc): Likewise.
50038         * lib/fseeko.c (fseeko): Likewise.
50039         * lib/fseterr.c (fseterr): Likewise.
50040         * lib/fwritable.c (fwritable): Likewise.
50041         * lib/fwriting.c (fwriting): Likewise.
50042
50043 2008-04-26  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/stdio-impl.h: New file.
50046         * lib/fbufmode.c: Include stdio-impl.h.
50047         (fbufmode): Use fp_, remove redundant #defines.
50048         * lib/fflush.c: Include stdio-impl.h.
50049         (clear_ungetc_buffer): Remove redundant #defines.
50050         * lib/fpurge.c: Include stdio-impl.h.
50051         (fpurge): Remove redundant #defines.
50052         * lib/freadable.c: Include stdio-impl.h.
50053         (freadable): Remove redundant #defines.
50054         * lib/freadahead.c: Include stdio-impl.h.
50055         (freadahead): Remove redundant #defines.
50056         * lib/freading.c: Include stdio-impl.h.
50057         (freading): Remove redundant #defines.
50058         * lib/freadptr.c: Include stdio-impl.h.
50059         (freadptr): Remove redundant #defines.
50060         * lib/freadseek.c: Include stdio-impl.h.
50061         (freadptrinc): Remove redundant #defines.
50062         * lib/fseeko.c: Include stdio-impl.h.
50063         (rpl_fseeko): Remove redundant #defines.
50064         * lib/fseterr.c: Include stdio-impl.h.
50065         (fseterr): Remove redundant #defines.
50066         * lib/fwritable.c: Include stdio-impl.h.
50067         (fwritable: Remove redundant #defines.
50068         * lib/fwriting.c: Include stdio-impl.h.
50069         (fwriting): Remove redundant #defines.
50070         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50071         * modules/fflush (Files): Likewise.
50072         * modules/fpurge (Files): Likewise.
50073         * modules/freadable (Files): Likewise.
50074         * modules/freadahead (Files): Likewise.
50075         * modules/freading (Files): Likewise.
50076         * modules/freadptr (Files): Likewise.
50077         * modules/freadseek (Files): Likewise.
50078         * modules/fseeko (Files): Likewise.
50079         * modules/fseterr (Files): Likewise.
50080         * modules/fwritable (Files): Likewise.
50081         * modules/fwriting (Files): Likewise.
50082
50083 2008-04-26  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50086         restore_seek_optimization, update_fpos_cache): New functions, extracted
50087         from rpl_fflush.
50088         (rpl_fflush): Use them.
50089         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50090         (gl_REPLACE_FFLUSH): Use it.
50091
50092 2008-04-26  Bruno Haible  <bruno@clisp.org>
50093
50094         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50095         on Solaris.
50096         * tests/test-xstrtoimax.sh: Likewise.
50097         * tests/test-xstrtoumax.sh: Likewise.
50098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50099
50100 2008-04-26  Bruno Haible  <bruno@clisp.org>
50101
50102         * modules/memchr-tests: New file.
50103         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50104
50105 2008-04-26  Eric Blake  <ebb9@byu.net>
50106             Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/memchr.c: Include intprops.h.
50109         (__memchr): Optimize parallel detection of matching bytes. Rename local
50110         variables. Add explanatory comments.
50111
50112 2008-04-26  Bruno Haible  <bruno@clisp.org>
50113
50114         Fix module 'memchr', broken since 2000-10-28.
50115         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50116
50117 2008-04-26  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50120         comments.
50121
50122 2008-04-25  Eric Blake  <ebb9@byu.net>
50123
50124         Use native fstatat on cygwin 1.7.0.
50125         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50126         first.
50127
50128 2008-04-23  Eric Blake  <ebb9@byu.net>
50129
50130         Improve memchr2 performance.
50131         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50132         NUL bytes.
50133         * modules/memchr2 (Depends-on): Use intprops.h.
50134
50135 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50136
50137         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50138         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50139         <blp@cs.stanford.edu>.
50140
50141 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50142
50143         * lib/arpa_inet.in.h: New file.
50144
50145         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50146         (Makefile.am): Sed in substitute header file.
50147
50148         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50149         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50150
50151         * modules/inet_ntop (configure.ac): Use
50152         gl_ARPA_INET_MODULE_INDICATOR.
50153
50154         * modules/inet_pton (configure.ac): Use
50155         gl_ARPA_INET_MODULE_INDICATOR.
50156
50157 2008-04-22  Jim Meyering  <meyering@redhat.com>
50158
50159         * modules/verify (License): Re-license as LGPLv2+.
50160
50161 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50162
50163         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50164         parameter to void* as per POSIX standard (MinGW uses char*).
50165
50166 2008-04-21  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50169         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50170         Define to replacements if REPLACE_ISWCNTRL is 1.
50171         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50172         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50173         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50174         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50175         what it fixes.
50176         * doc/posix-functions/iswalpha.texi: Likewise.
50177         * doc/posix-functions/iswblank.texi: Likewise.
50178         * doc/posix-functions/iswcntrl.texi: Likewise.
50179         * doc/posix-functions/iswdigit.texi: Likewise.
50180         * doc/posix-functions/iswgraph.texi: Likewise.
50181         * doc/posix-functions/iswlower.texi: Likewise.
50182         * doc/posix-functions/iswprint.texi: Likewise.
50183         * doc/posix-functions/iswpunct.texi: Likewise.
50184         * doc/posix-functions/iswspace.texi: Likewise.
50185         * doc/posix-functions/iswupper.texi: Likewise.
50186         * doc/posix-functions/iswxdigit.texi: Likewise.
50187         Reported by Alain Guibert.
50188
50189 2008-04-21  Bruno Haible  <bruno@clisp.org>
50190
50191         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50192         Patch by Alain Guibert.
50193
50194 2008-04-21  Bruno Haible  <bruno@clisp.org>
50195
50196         Fix test failures on mingw.
50197         * tests/test-xstrtol.c (print_no_progname): New function.
50198         (main): Install it in error_print_progname hook.
50199         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50200         * tests/test-xstrtoimax.sh: Likewise.
50201         * tests/test-xstrtoumax.sh: Likewise.
50202
50203 2008-04-21  Bruno Haible  <bruno@clisp.org>
50204
50205         Fix test failure on mingw.
50206         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50207
50208 2008-04-21  Bruno Haible  <bruno@clisp.org>
50209
50210         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50211         Actually assign a value.
50212
50213 2008-04-20  Bruno Haible  <bruno@clisp.org>
50214
50215         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50216         take 2.
50217         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50218         'canonicalize-lgpl' module is also used.
50219         * lib/canonicalize-lgpl.c: Undo last change.
50220         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50221
50222 2008-04-20  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50225         config.h. Provide _mkdir based fallback for mingw.
50226         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50227         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50228         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50229         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50230         rather than defining mkdir in config.h.
50231         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50232         (gl_SYS_STAT_H_DEFAULTS): New macro.
50233         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50234         HAVE_IO_H any more.
50235         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50236         HAVE_DECL_MKDIR and HAVE_IO_H.
50237
50238 2008-04-20  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/isapipe.c: Port to native Windows platforms.
50241
50242 2008-04-20  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50245
50246 2008-04-21  Eric Blake  <ebb9@byu.net>
50247
50248         Work around preprocessors that don't handle UINTMAX_MAX.
50249         * lib/memchr2.c (memchr2): Avoid embedded #if.
50250         Reported by Alain Guibert, fix suggested by Bruno Haible.
50251
50252 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50253
50254         * doc/posix-functions/strftime.texi (strftime): Explain better
50255         Windows incompatibility.  Suggested by Micah Cowan
50256         <micah@cowan.name>.
50257
50258 2008-04-20  Bruno Haible  <bruno@clisp.org>
50259
50260         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50261         unistr/u8-mblen.
50262
50263 2008-04-20  Bruno Haible  <bruno@clisp.org>
50264
50265         Fix test failure on platforms with non-GNU iconv.
50266         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50267         (U_TO_U8): Use it, rather than u16_to_u8.
50268         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50269         units at the end of the input string.
50270         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50271
50272 2008-04-20  Bruno Haible  <bruno@clisp.org>
50273
50274         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50275         when the resulting length is 0.
50276         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50277
50278 2008-04-20  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50281         works.
50282         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50283
50284 2008-04-20  Bruno Haible  <bruno@clisp.org>
50285
50286         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50287         * modules/tsearch-tests (configure.ac): Test for initstate function.
50288
50289 2008-04-20  Bruno Haible  <bruno@clisp.org>
50290
50291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50292         for nlink_t if missing.
50293         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50294
50295 2008-04-19  Bruno Haible  <bruno@clisp.org>
50296
50297         Work around snprintf bug on Linux libc5.
50298         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50300         gl_SNPRINTF_SIZE1.
50301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50302         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50303         that test failed.
50304         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50305         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50306         * modules/snprintf (Files): Add m4/printf.m4.
50307         * modules/vsnprintf (Files): Likewise.
50308         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50309         * doc/posix-functions/vsnprintf.texi: Likewise.
50310
50311 2008-04-19  Bruno Haible  <bruno@clisp.org>
50312
50313         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50314         from 0.0058 to less than 10^-7.
50315
50316 2008-04-19  Bruno Haible  <bruno@clisp.org>
50317
50318         Fix rounding when a precision is given.
50319         * lib/vasnprintf.c (is_borderline): New function.
50320         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50321         9...9x.
50322         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50323         %e, %g.
50324         * tests/test-vasprintf-posix.c (test_function): Likewise.
50325         * tests/test-snprintf-posix.h (test_function): Likewise.
50326         * tests/test-sprintf-posix.h (test_function): Likewise.
50327         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50328         * tests/test-printf-posix.h (test_function): Likewise.
50329         * tests/test-printf-posix.output: Update.
50330         Reported by John Darrington <john@darrington.wattle.id.au> via
50331         Ben Pfaff <blp@cs.stanford.edu>.
50332
50333 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50334
50335         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50336         Suggested by Bruno Haible <bruno@clisp.org>.
50337
50338 2008-04-17  Bruno Haible  <bruno@clisp.org>
50339
50340         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50341         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50342         implementation.
50343         Patch by Bruce Merry <bmerry@gmail.com>.
50344
50345 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50346
50347         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50348         doesn't work under Windows.
50349
50350 2008-04-16  Bruno Haible  <bruno@clisp.org>
50351
50352         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50353         New macros.
50354         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50355         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50356         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50357         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50358         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50359         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50360         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50361         macros.
50362         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50363         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50364         Northern Sotho, Uighur.
50365
50366 2008-04-16  Bruno Haible  <bruno@clisp.org>
50367
50368         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50369         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50370         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50371         Reported by Daniel Bergström <daniel@octocode.com>.
50372
50373 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50374             Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50377         function.
50378         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50379         New functions, mostly extracted from gl_locale_name_default.
50380         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50381
50382 2008-04-16  Eric Blake  <ebb9@byu.net>
50383
50384         Adjust strtod detection to catch glibc 2.7 bug.
50385         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50386         Reported by John Gatewood Ham.
50387
50388 2008-04-16  Bruno Haible  <bruno@clisp.org>
50389
50390         Add tentative support for Linux libc5.
50391         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50392         * lib/fpurge.c (fpurge): Likewise.
50393         * lib/freadable.c (freadable): Likewise.
50394         * lib/freadahead.c (freadahead): Likewise.
50395         * lib/freading.c (freading): Likewise.
50396         * lib/freadptr.c (freadptr): Likewise.
50397         * lib/freadseek.c (freadptrinc): Likewise.
50398         * lib/fseeko.c (rpl_fseeko): Likewise.
50399         * lib/fseterr.c (fseterr): Likewise.
50400         * lib/fwritable.c (fwritable): Likewise.
50401         * lib/fwriting.c (fwriting): Likewise.
50402         Reported by Alain Guibert <alguibert+bts@free.fr>.
50403
50404 2008-04-15  Bruno Haible  <bruno@clisp.org>
50405
50406         * modules/mathl (configure.ac): Define module indicator.
50407
50408 2008-04-15  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/logl.c (logl): Remove unused variables.
50411
50412 2008-04-15  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50415         fails.
50416
50417 2008-04-15  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/trim.c (trim2): Fix argument of isspace() macro.
50420
50421 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50422
50423         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50424         to 0.
50425         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50426
50427 2008-04-14  Bruno Haible  <bruno@clisp.org>
50428
50429         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50430         AC_LANG_PROGRAM argument.
50431         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50432         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50434         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50435         * m4/math_h.m4 (gl_MATH_H): Likewise.
50436         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50437         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50438         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50439         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50440         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50441         * m4/regex.m4 (gl_REGEX): Likewise.
50442         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50443         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50446         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50447         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50450
50451 2008-04-14  Jim Meyering  <meyering@redhat.com>
50452
50453         test-strtod: fix typos: s/abs/fabs/
50454         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50455
50456 2008-04-13  Bruno Haible  <bruno@clisp.org>
50457
50458         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50459         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50460         module is also used and while not building the reloc-wrapper.
50461
50462 2008-04-13  Bruno Haible  <bruno@clisp.org>
50463
50464         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50465
50466 2008-04-13  Bruno Haible  <bruno@clisp.org>
50467
50468         Fix AIX compilation failure introduced on 2008-04-02.
50469         * tests/test-frexp.c (exp): Undefine before redefining.
50470         * tests/test-frexpl.c (exp): Likewise.
50471
50472 2008-04-13  Bruno Haible  <bruno@clisp.org>
50473
50474         Work around a HP-UX stdio bug.
50475         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50476         * tests/test-ftello.c (main): Likewise.
50477         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50478         * doc/posix-functions/ftello.texi: Likewise.
50479
50480 2008-04-13  Bruno Haible  <bruno@clisp.org>
50481
50482         Make test-signbit pass on HP-UX/hppa.
50483         * tests/test-signbit.c (minus_zerol): New variable.
50484         (test_signbitl): Use it.
50485
50486 2008-04-13  Bruno Haible  <bruno@clisp.org>
50487
50488         Make truncl work on OSF/1 4.0.
50489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50490         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50491         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50493         HAVE_DECL_TRUNCL.
50494         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50495         HAVE_DECL_TRUNCL.
50496         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50497
50498 2008-04-13  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50501
50502 2008-04-13  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50505         expression, so as to avoid HP-UX 11 cc compiler bug.
50506
50507 2008-04-13  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50510
50511 2008-04-13  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/git-merge-changelog.c: Remove empty declaration outside of
50514         functions.
50515
50516 2008-04-13  Bruno Haible  <bruno@clisp.org>
50517
50518         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50519
50520 2008-04-13  Bruno Haible  <bruno@clisp.org>
50521
50522         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50523         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50525         also if it exists but lacks definitions of the SHUT_* macros.
50526         * modules/sys_socket (Description): Update.
50527         Reported by Elbert Pol <e.pol@chello.nl>.
50528
50529 2008-04-13  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/localcharset.c (OS2): Don't redefine if already defined.
50532         Reported by Elbert Pol <e.pol@chello.nl>.
50533
50534 2008-04-13  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/binary-io.h [__EMX__]: Include <io.h>.
50537         Reported by Elbert Pol <e.pol@chello.nl>.
50538
50539 2008-04-12  Bruno Haible  <bruno@clisp.org>
50540
50541         * lib/fpucw.h: Enable the definitions also for x86_64.
50542         Needed for NetBSD/x86_64.
50543         Reported by Thomas Klausner <tk@giga.or.at>.
50544
50545 2008-04-12  Bruno Haible  <bruno@clisp.org>
50546
50547         * tests/test-strtod.c: Include isnand.h.
50548         (main): Use isnand instead of isnan.
50549         Reported by Jim Meyering.
50550
50551 2008-04-12  Bruno Haible  <bruno@clisp.org>
50552
50553         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50554         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50555
50556 2008-04-12  Jim Meyering  <meyering@redhat.com>
50557
50558         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50559
50560 2008-04-12  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50563         Reported by Elbert Pol <e.pol@chello.nl>.
50564
50565 2008-04-12  Eric Blake  <ebb9@byu.net>
50566
50567         Work around Solaris 10 math.h bug.
50568         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50569         (gl_MATH_H_DEFAULTS): Set up default.
50570         * modules/math (Makefile.am): Replace new indicators.
50571         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50572         * tests/test-math.c (main): Test this.
50573         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50574         * doc/posix-headers/math.texi (math.h): Mention bug.
50575         Reported by Nelson H. F. Beebe and Jim Meyering.
50576
50577 2008-04-11  Bruno Haible  <bruno@clisp.org>
50578
50579         Adapt to future versions of Apple GCC.
50580         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50581         Reported by Peter O'Gorman <peter@pogma.com>.
50582
50583 2008-04-11  Bruno Haible  <bruno@clisp.org>
50584
50585         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50586
50587 2008-04-11  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50590
50591         * modules/getaddrinfo-tests (Makefile.am): Define
50592         test_getaddrinfo_LDADD.
50593
50594 2008-04-11  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50597         (init): Fix syntax error.
50598         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50599         is declared.
50600
50601 2008-04-11  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50604         * modules/glob (Depends-on): Add stdbool.
50605
50606 2008-04-11  Bruno Haible  <bruno@clisp.org>
50607
50608         * lib/trim.c: Include <string.h>.
50609
50610 2008-04-11  Eric Blake  <ebb9@byu.net>
50611
50612         Avoid compile failure on OS/2.
50613         * lib/regex_internal.h (internal_function): Disable optimization
50614         on OS/2 (__EMX__), where it caused compiler error.
50615         Reported by Elbert Pol.
50616
50617 2008-04-11  Bruno Haible  <bruno@clisp.org>
50618
50619         Flush the standard error stream before aborting. Needed on mingw.
50620         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50621         * tests/test-array_list.c (ASSERT): Likewise.
50622         * tests/test-array_oset.c (ASSERT): Likewise.
50623         * tests/test-avltree_list.c (ASSERT): Likewise.
50624         * tests/test-avltree_oset.c (ASSERT): Likewise.
50625         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50626         * tests/test-binary-io.c (ASSERT): Likewise.
50627         * tests/test-byteswap.c (ASSERT): Likewise.
50628         * tests/test-c-ctype.c (ASSERT): Likewise.
50629         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50630         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50631         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50632         * tests/test-c-strstr.c (ASSERT): Likewise.
50633         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50634         * tests/test-canonicalize.c (ASSERT): Likewise.
50635         * tests/test-carray_list.c (ASSERT): Likewise.
50636         * tests/test-ceilf1.c (ASSERT): Likewise.
50637         * tests/test-ceilf2.c (ASSERT): Likewise.
50638         * tests/test-ceill.c (ASSERT): Likewise.
50639         * tests/test-count-one-bits.c (ASSERT): Likewise.
50640         * tests/test-fbufmode.c (ASSERT): Likewise.
50641         * tests/test-fflush2.c (ASSERT): Likewise.
50642         * tests/test-floorf1.c (ASSERT): Likewise.
50643         * tests/test-floorf2.c (ASSERT): Likewise.
50644         * tests/test-floorl.c (ASSERT): Likewise.
50645         * tests/test-fopen.c (ASSERT): Likewise.
50646         * tests/test-fpending.c (ASSERT): Likewise.
50647         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50648         * tests/test-fpurge.c (ASSERT): Likewise.
50649         * tests/test-freadable.c (ASSERT): Likewise.
50650         * tests/test-freadahead.c (ASSERT): Likewise.
50651         * tests/test-freading.c (ASSERT): Likewise.
50652         * tests/test-freadptr.c (ASSERT): Likewise.
50653         * tests/test-freadptr2.c (ASSERT): Likewise.
50654         * tests/test-freadseek.c (ASSERT): Likewise.
50655         * tests/test-freopen.c (ASSERT): Likewise.
50656         * tests/test-frexp.c (ASSERT): Likewise.
50657         * tests/test-frexpl.c (ASSERT): Likewise.
50658         * tests/test-fseek.c (ASSERT): Likewise.
50659         * tests/test-fseeko.c (ASSERT): Likewise.
50660         * tests/test-fstrcmp.c (ASSERT): Likewise.
50661         * tests/test-ftell.c (ASSERT): Likewise.
50662         * tests/test-ftello.c (ASSERT): Likewise.
50663         * tests/test-func.c (ASSERT): Likewise.
50664         * tests/test-fwritable.c (ASSERT): Likewise.
50665         * tests/test-fwriting.c (ASSERT): Likewise.
50666         * tests/test-getdelim.c (ASSERT): Likewise.
50667         * tests/test-getline.c (ASSERT): Likewise.
50668         * tests/test-i-ring.c (ASSERT): Likewise.
50669         * tests/test-iconv-utf.c (ASSERT): Likewise.
50670         * tests/test-iconv.c (ASSERT): Likewise.
50671         * tests/test-isfinite.c (ASSERT): Likewise.
50672         * tests/test-isnand.c (ASSERT): Likewise.
50673         * tests/test-isnanf.c (ASSERT): Likewise.
50674         * tests/test-isnanl.h (ASSERT): Likewise.
50675         * tests/test-ldexpl.c (ASSERT): Likewise.
50676         * tests/test-linked_list.c (ASSERT): Likewise.
50677         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50678         * tests/test-localename.c (ASSERT): Likewise.
50679         * tests/test-lseek.c (ASSERT): Likewise.
50680         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50681         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50682         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50683         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50684         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50685         * tests/test-mbschr.c (ASSERT): Likewise.
50686         * tests/test-mbscspn.c (ASSERT): Likewise.
50687         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50688         * tests/test-mbspbrk.c (ASSERT): Likewise.
50689         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50690         * tests/test-mbsrchr.c (ASSERT): Likewise.
50691         * tests/test-mbsspn.c (ASSERT): Likewise.
50692         * tests/test-mbsstr1.c (ASSERT): Likewise.
50693         * tests/test-mbsstr2.c (ASSERT): Likewise.
50694         * tests/test-mbsstr3.c (ASSERT): Likewise.
50695         * tests/test-memchr2.c (ASSERT): Likewise.
50696         * tests/test-memmem.c (ASSERT): Likewise.
50697         * tests/test-open.c (ASSERT): Likewise.
50698         * tests/test-printf-frexp.c (ASSERT): Likewise.
50699         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50700         * tests/test-printf-posix.c (ASSERT): Likewise.
50701         * tests/test-quotearg.c (ASSERT): Likewise.
50702         * tests/test-rbtree_list.c (ASSERT): Likewise.
50703         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50704         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50705         * tests/test-round1.c (ASSERT): Likewise.
50706         * tests/test-roundf1.c (ASSERT): Likewise.
50707         * tests/test-roundl.c (ASSERT): Likewise.
50708         * tests/test-signbit.c (ASSERT): Likewise.
50709         * tests/test-sleep.c (ASSERT): Likewise.
50710         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50711         * tests/test-snprintf.c (ASSERT): Likewise.
50712         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50713         * tests/test-stat-time.c (ASSERT): Likewise.
50714         * tests/test-strcasestr.c (ASSERT): Likewise.
50715         * tests/test-strerror.c (ASSERT): Likewise.
50716         * tests/test-striconv.c (ASSERT): Likewise.
50717         * tests/test-striconveh.c (ASSERT): Likewise.
50718         * tests/test-striconveha.c (ASSERT): Likewise.
50719         * tests/test-strsignal.c (ASSERT): Likewise.
50720         * tests/test-strstr.c (ASSERT): Likewise.
50721         * tests/test-strtod.c (ASSERT): Likewise.
50722         * tests/test-trunc1.c (ASSERT): Likewise.
50723         * tests/test-trunc2.c (ASSERT): Likewise.
50724         * tests/test-truncf1.c (ASSERT): Likewise.
50725         * tests/test-truncf2.c (ASSERT): Likewise.
50726         * tests/test-truncl.c (ASSERT): Likewise.
50727         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50728         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50729         * tests/test-vasnprintf.c (ASSERT): Likewise.
50730         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50731         * tests/test-vasprintf.c (ASSERT): Likewise.
50732         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50733         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50734         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50735         * tests/test-vsnprintf.c (ASSERT): Likewise.
50736         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50737         * tests/test-wcwidth.c (ASSERT): Likewise.
50738         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50739         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50740         * tests/test-xvasprintf.c (ASSERT): Likewise.
50741         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50742         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50743         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50744         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50745         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50746         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50747         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50748         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50749         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50750         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50751         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50752         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50753         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50754         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50755         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50756         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50757         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50758         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50759         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50760         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50761         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50762         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50763         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50764         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50765         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50766         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50767         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50768         * tests/unictype/test-combining.c (ASSERT): Likewise.
50769         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50770         * tests/unictype/test-digit.c (ASSERT): Likewise.
50771         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50772         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50773         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50774         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50775         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50776         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50777         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50778         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50779         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50780         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50781         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50782         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50783         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50784         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50785         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50786         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50787         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50788         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50789         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50790         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50791         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50792         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50793         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50794         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50795         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50796         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50797         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50798         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50799         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50800         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50801         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50802         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50803         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50804         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50805         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50806         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50807         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50808         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50809         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50810         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50811         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50812         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50813         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50814         Reported by Eric Blake.
50815
50816 2008-04-11  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/wchar.in.h: Tweak comment.
50819
50820 2008-04-11  Bruno Haible  <bruno@clisp.org>
50821
50822         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50823         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50824         gl_COMMON.
50825         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50826
50827 2008-04-11  Bruno Haible  <bruno@clisp.org>
50828
50829         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50830
50831 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50832
50833         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50834         of attempting to use non-existing /dev/*random.  Based on patch
50835         from Adam Strzelecki <ono@java.pl> in
50836         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50837
50838 2008-04-08  Bruno Haible  <bruno@clisp.org>
50839
50840         Add tentative support for emx+gcc.
50841         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50842         * lib/fpurge.c (fpurge): Likewise.
50843         * lib/freadable.c (freadable): Likewise.
50844         * lib/freadahead.c (freadahead): Likewise.
50845         * lib/freading.c (freading): Likewise.
50846         * lib/freadptr.c (freadptr): Likewise.
50847         * lib/freadseek.c (freadptrinc): Likewise.
50848         * lib/fseeko.c (rpl_fseeko): Likewise.
50849         * lib/fseterr.c (fseterr): Likewise.
50850         * lib/fwritable.c (fwritable): Likewise.
50851         * lib/fwriting.c (fwriting): Likewise.
50852         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50853
50854 2008-04-09  Eric Blake  <ebb9@byu.net>
50855
50856         Avoid some autoconf warnings.
50857         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50858         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50859         * m4/afs.m4 (gl_AFS): Likewise.
50860         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50861         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50863         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50864         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50865         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50866         (AC_CHECK_DECLS_ONCE): Likewise.
50867         Rename file...
50868         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50869         gnulib-tool requires autoconf 2.59 or better.
50870         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50871
50872 2008-04-08  Eric Blake  <ebb9@byu.net>
50873
50874         Use 'git describe --match' if present (added in git 1.5.5).
50875         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50876         if possible.
50877
50878 2008-04-08  Bruno Haible  <bruno@clisp.org>
50879
50880         Add tentative support for OpenServer.
50881         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50882         _ptr, _cnt.
50883         * lib/fpurge.c (fpurge): Likewise.
50884         * lib/freadable.c (freadable): Likewise.
50885         * lib/freadahead.c (freadahead): Likewise.
50886         * lib/freading.c (freading): Likewise.
50887         * lib/freadptr.c (freadptr): Likewise.
50888         * lib/freadseek.c (freadptrinc): Likewise.
50889         * lib/fseeko.c (rpl_fseeko): Likewise.
50890         * lib/fseterr.c (fseterr): Likewise.
50891         * lib/fwritable.c (fwritable): Likewise.
50892         * lib/fwriting.c (fwriting): Likewise.
50893         Reported by Roger Cornelius <rac@tenzing.org> and
50894         Brian K. White <brian@aljex.com>.
50895
50896 2008-04-06  Jim Meyering  <meyering@redhat.com>
50897
50898         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50899
50900 2008-04-06  Bruno Haible  <bruno@clisp.org>
50901
50902         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50903         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50904         * tests/test-printf-posix.sh: Likewise.
50905         * tests/test-vfprintf-posix.sh: Likewise.
50906         * tests/test-vprintf-posix.sh: Likewise.
50907         * tests/test-xprintf-posix.sh: Likewise.
50908
50909 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50910
50911         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50912         hide error from 'ls', needed on OS/2.
50913         Report by Elbert Pol <elbert.pol@gmail.com>.
50914
50915 2008-04-04  Eric Blake  <ebb9@byu.net>
50916
50917         Make test-fseeko.c failures meaningful.
50918         * tests/test-fseeko.c: Print line number on failure.
50919         * tests/test-fseek.c: Likewise.
50920         Reported by Nelson H. F. Beebe.
50921
50922         Improve strtod bug detection check.
50923         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50924         required for Solaris 10.
50925         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50926
50927 2008-04-04  Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50930         by m4/setenv.m4.
50931
50932 2008-04-03  Eric Blake  <ebb9@byu.net>
50933
50934         Ensure sane .version contents.
50935         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50936         version string.
50937         * build-aux/git-version-gen: Improve documentation.
50938
50939         Make GNU make output nicer.
50940         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50941         MAKECMDGOALS to enforce message for all command line targets.  Set
50942         srcdir for use in maint.mk.
50943
50944         Another maintainer tweak.
50945         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50946         a target that regenerates version.
50947
50948 2008-04-03  Jim Meyering  <meyering@redhat.com>
50949
50950         vc-list-files: don't cause coreutils "make po-check" failure
50951         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50952
50953 2008-04-03  Eric Blake  <ebb9@byu.net>
50954
50955         Allow VPATH usage of vc-list-files.
50956         * build-aux/vc-list-files (scriptversion): Add timestamp.
50957         (options): Add --help, --version, -C.
50958         (CVS): Support installed cvsu.
50959
50960 2008-04-02  Bruno Haible  <bruno@clisp.org>
50961
50962         Avoid some "statement with no effect" warnings from gcc.
50963         * tests/test-wctype.c (main): Explicitly ignore unused values.
50964         Reported by Jim Meyering.
50965
50966 2008-04-02  Jim Meyering  <meyering@redhat.com>
50967
50968         Avoid some warnings from "gcc -Wshadow".
50969         * tests/test-frexp.c (exp): Define to a different identifier.
50970         * tests/test-frexpl.c (exp): Likewise.
50971
50972 2008-04-03  Jim Meyering  <meyering@redhat.com>
50973
50974         bootstrap: remove dangling *.[ch] symlinks from lib
50975         * build-aux/bootstrap [dangling symlink removal]: Move find's
50976         -depth option to precede all others, to avoid a warning.
50977         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50978
50979 2008-04-02  Bruno Haible  <bruno@clisp.org>
50980
50981         Avoid some warnings from "gcc -Wshadow".
50982         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50983         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50984         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50985         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50986         Reported by Jim Meyering.
50987
50988 2008-04-01  Bruno Haible  <bruno@clisp.org>
50989
50990         Fix test to work on IRIX 6.5 with cc.
50991         * tests/test-math.c (numeric_equal): New function.
50992         (main): Use it.
50993
50994 2008-04-01  Bruno Haible  <bruno@clisp.org>
50995
50996         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50997
50998 2008-04-01  Bruno Haible  <bruno@clisp.org>
50999
51000         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51001         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51002         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51003         (Depends-on): Remove math.
51004
51005         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51006         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51007         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51008         (Depends-on): Remove math.
51009
51010         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51011         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51012         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51013         (Depends-on): Remove math.
51014         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51015         (Depends-on): Remove math.
51016
51017         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51018         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51019         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51020         (Depends-on): Remove math.
51021         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51022         (Depends-on): Remove math.
51023
51024         * tests/test-round1.c: Include nan.h.
51025         (main): Use NaNd instead of NAN.
51026         * modules/round-tests (Files): Add tests/nan.h.
51027
51028         * tests/test-trunc1.c: Include nan.h.
51029         (main): Use NaNd instead of NAN.
51030         * modules/trunc-tests (Files): Add tests/nan.h.
51031
51032         * tests/test-roundf1.c: Include nan.h.
51033         (main): Use NaNf instead of NAN.
51034         * modules/roundf-tests (Files): Add tests/nan.h.
51035
51036         * tests/test-truncf1.c: Include nan.h.
51037         (main): Use NaNf instead of NAN.
51038         * modules/truncf-tests (Files): Add tests/nan.h.
51039
51040         * tests/test-ceilf1.c: Include nan.h.
51041         (main): Use NaNf instead of NAN.
51042         * modules/ceilf-tests (Files): Add tests/nan.h.
51043
51044         * tests/test-floorf1.c: Include nan.h.
51045         (main): Use NaNf instead of NAN.
51046         * modules/floorf-tests (Files): Add tests/nan.h.
51047
51048         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51049         (main): Use NaNf instead of NAN.
51050         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51051
51052         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51053         (main): Use NaNd instead of NAN.
51054         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51055
51056         * tests/test-frexp.c: Include nan.h.
51057         (main): Use NaNd instead of NAN.
51058         * modules/frexp-tests (Files): Add tests/nan.h.
51059
51060         * lib/isnan.c: Don't include <math.h>.
51061         (FUNC): Don't use NAN macro.
51062         * modules/isnand-nolibm (Depends-on): Remove math.
51063         * modules/isnanf-nolibm (Depends-on): Remove math.
51064         * modules/isnanl (Depends-on): Remove math.
51065         * modules/isnanl-nolibm (Depends-on): Remove math.
51066
51067         * tests/nan.h: New file.
51068
51069 2008-04-01  Eric Blake  <ebb9@byu.net>
51070
51071         Fix typos.
51072         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51073         values to be the right type.
51074
51075         For now, cater to gnulib strtod inaccuracies.
51076         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51077         fractional results.  While not as nice from a QoI perspective, it
51078         is a quicker patch than correctly implementing decimal to binary
51079         rounding.
51080
51081 2008-03-31  Eric Blake  <ebb9@byu.net>
51082
51083         Guarantee a definition of NAN.
51084         * lib/math.in.h (NAN): Define if missing.
51085         * tests/test-math.c (main): Test it.
51086         * doc/posix-headers/math.texi (math.h): Document this.
51087         * lib/isnan.c (rpl_isnand): Use it.
51088         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51089         * tests/test-floorf1.c (NaN): Likewise.
51090         * tests/test-frexp.c (NaN): Likewise.
51091         * tests/test-isnand.c (NaN): Likewise.
51092         * tests/test-isnanf.c (NaN): Likewise.
51093         * tests/test-round1.c (NaN): Likewise.
51094         * tests/test-roundf1.c (NaN): Likewise.
51095         * tests/test-snprintf-posix.h (NaN): Likewise.
51096         * tests/test-sprintf-posix.h (NaN): Likewise.
51097         * tests/test-trunc1.c (NaN): Likewise.
51098         * tests/test-truncf1.c (NaN): Likewise.
51099         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51100         * tests/test-vasprintf-posix.c (NaN): Likewise.
51101         * modules/isnand-nolibm (Depends-on): Add math.
51102         * modules/isnanf-nolibm (Depends-on): Likewise.
51103         * modules/isnanl (Depends-on): Likewise.
51104         * modules/isnanl-nolibm (Depends-on): Likewise.
51105         * modules/snprintf-posix-tests (Depends-on): Likewise.
51106         * modules/sprintf-posix-tests (Depends-on): Likewise.
51107         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51108         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51109         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51110         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51111
51112 2008-03-31  Bruno Haible  <bruno@clisp.org>
51113
51114         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51115         * doc/posix-functions/strtod.texi: Likewise.
51116
51117 2008-03-31  Bruno Haible  <bruno@clisp.org>
51118
51119         * tests/test-strtod.c (main): Don't use C99 syntax.
51120
51121 2008-03-31  Bruno Haible  <bruno@clisp.org>
51122
51123         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51124         Reported by Eric Blake.
51125
51126 2008-03-31  Jim Meyering  <meyering@redhat.com>
51127
51128         Don't compare actual signbit return values.
51129         * tests/test-strtod.c (main): Rather, compare only their
51130         zero/non-zero nature.
51131
51132 2008-03-31  Eric Blake  <ebb9@byu.net>
51133
51134         More strtod documentation.
51135         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51136         failures as distinct bugs.
51137
51138 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51139
51140         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51141         Problem reported by Erik Benada in
51142         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51143
51144 2008-03-30  Bruno Haible  <bruno@clisp.org>
51145
51146         * tests/test-strtod.c: Add comments about which assertion fails on which
51147         platform.
51148         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51149
51150 2008-03-30  Eric Blake  <ebb9@byu.net>
51151
51152         Test signbit behavior on zeros.
51153         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51154         (test_signbitd, test_signbitl): Likewise.
51155
51156         More strtod touchups.
51157         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51158         sign of negative underflow, for now.  Use .5, not .1.
51159         * doc/posix-functions/strtod.texi (strtod): Mention these
51160         limitations.
51161         Reported by Jim Meyering.
51162
51163 2008-03-30  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51166         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51167
51168 2008-03-30  Bruno Haible  <bruno@clisp.org>
51169
51170         Avoid failure when attempting to return empty iconv results on some
51171         platforms.
51172         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51173         allocation, don't report ENOMEM when the resulting string is empty.
51174
51175 2008-03-30  Bruno Haible  <bruno@clisp.org>
51176
51177         Fix buffer overrun.
51178         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51179         Don't consider the width for tmp_length. Check count against tmp_length
51180         before doing the padding. Ensure enough allocation during padding.
51181
51182 2008-03-30  Eric Blake  <ebb9@byu.net>
51183
51184         strtod touchups.
51185         * lib/strtod.c (strtod): Avoid compiler warnings.
51186         Reported by Jim Meyering.
51187
51188 2008-03-30  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51191         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51192         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51193         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51194         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51195         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51196         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51197         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51198
51199         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51200         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51201         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51202         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51203         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51204         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51205         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51206         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51207
51208         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51209         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51210         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51211         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51212         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51213         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51214         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51215         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51216
51217         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51218         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51219
51220         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51221         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51222
51223         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51224         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51225
51226         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51228         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51229
51230         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51232         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51233
51234         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51236         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51237
51238         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51240         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51241
51242         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51243         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51245         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51246         (Depends-on): Add EOVERFLOW.
51247         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51248         (Depends-on): Add EOVERFLOW.
51249         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51250         (Depends-on): Add EOVERFLOW.
51251         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51252         (Depends-on): Add EOVERFLOW.
51253         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51254         (Depends-on): Add EOVERFLOW.
51255         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51256         (Depends-on): Add EOVERFLOW.
51257         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51258         (Depends-on): Add EOVERFLOW.
51259         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51260         (Depends-on): Add EOVERFLOW.
51261
51262         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51264         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51265
51266         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51268         * modules/snprintf (Depends-on): Add EOVERFLOW.
51269
51270         * lib/poll.c (EOVERFLOW): Remove fallback.
51271         * modules/poll (Depends-on): Add EOVERFLOW.
51272
51273         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51274         * modules/getugroups (Depends-on): Add EOVERFLOW.
51275
51276         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51277         * modules/getdelim (Depends-on): Add EOVERFLOW.
51278
51279         * lib/ftell.c (EOVERFLOW): Remove fallback.
51280         * modules/ftell (Depends-on): Add EOVERFLOW.
51281
51282         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51284         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51285
51286         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51287
51288         * modules/EOVERFLOW-tests: New file.
51289         * tests/test-EOVERFLOW.c: New file.
51290
51291         * modules/EOVERFLOW: New file.
51292         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51293
51294 2008-03-30  Bruno Haible  <bruno@clisp.org>
51295
51296         Fix bug introduced on 2007-06-10.
51297         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51298         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51299
51300 2008-03-30  Bruno Haible  <bruno@clisp.org>
51301
51302         Improve freadseek's efficiency after ungetc.
51303         * lib/freadseek.c: Include freadahead.h.
51304         (freadptrinc): New function, extracted from freadseek.
51305         (freadseek): Use it in a loop. Use freadahead to determine the number
51306         of loop iterations.
51307         * modules/freadseek (Depends-on): Add freadahead.
51308         (configure.ac): Require AC_C_INLINE.
51309
51310 2008-03-30  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/freadseek.c (freadseek): Don't ignore the return value of
51313         freadptr.
51314
51315 2008-03-29  Eric Blake  <ebb9@byu.net>
51316
51317         Add hex float support.
51318         * modules/strtod (Depends-on): Add c-ctype.
51319         (Link): Mention POW_LIB.
51320         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51321         whitespace between 'e' and exponent.
51322         * tests/test-strtod.c (main): Enable hex float tests.
51323         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51324         now provides.
51325
51326         Document various strtod bugs, with some fixes.
51327         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51328         "-0x", "inf", "nan", and hex constants.
51329         * doc/posix-functions/atof.texi (atof): Likewise.
51330         * modules/stdlib (Makefile.am): Support strtod.
51331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51332         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51333         detect additional strtod bugs.
51334         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51335         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51336         bool where appropriate.  Parse 'inf' and 'nan'.
51337         * tests/test-strtod.c: New file.
51338         * modules/strtod (Depends-on): Add stdbool, stdlib.
51339         (configure.ac): Turn on module indicator.
51340         * modules/strtod-tests: New module.
51341
51342 2008-03-29  Eric Blake  <ebb9@byu.net>
51343
51344         Fix ftell on mingw.
51345         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51346         * modules/ftell-tests (Depends-on): Add binary-io.
51347         * modules/ftello-tests (Depends-on): Likewise.
51348         * tests/test-ftell.c (main): Enhance test to cover behavior after
51349         ungetc.  Enforce binary mode.
51350         * tests/test-ftello.c (main): Likewise.
51351
51352         Pass test-freadseek on cygwin.
51353         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51354         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51355         ungetc buffer.
51356
51357         * tests/test-fflush2.c (main): Fix typo.
51358
51359 2008-03-29  Bruno Haible  <bruno@clisp.org>
51360
51361         * tests/test-fflush2.c (main): Temporarily disable the contents of
51362         this test.
51363         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51364         Reported by Eric Blake.
51365
51366 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51367
51368         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51369         (GC_SHA224_DIGEST_SIZE): Add.
51370
51371         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51372         (gc_hash_digest_length): Likewise.
51373         (gc_hash_buffer): Likewise.
51374
51375 2008-03-25  Bruno Haible  <bruno@clisp.org>
51376
51377         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51378         detail which gettext release to use.
51379         Reported by Simon Josefsson.
51380
51381 2008-03-26  Jim Meyering  <meyering@redhat.com>
51382
51383         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51384         * modules/gnumakefile (clean-GNUmakefile): Also, use
51385         test ... && ... || : syntax rather than if-then ... fi.
51386
51387         gnumakefile: Don't double-quote-expand $(VPATH) value.
51388         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51389
51390 2008-03-24  Eric Blake  <ebb9@byu.net>
51391
51392         Alter GNUmakefile to install into top directory.
51393         * modules/maintainer-makefile: Split, and add dependency...
51394         * modules/gnumakefile: to this new module.
51395         * build-aux/GNUmakefile: Move...
51396         * top/GNUmakefile: ...here.
51397         * build-aux/maint.mk: Move...
51398         * top/maint.mk: ...here.
51399         * MODULES.html.sh (Support for maintaining...): Document new
51400         module.
51401
51402 2008-03-23  Bruno Haible  <bruno@clisp.org>
51403
51404         * gnulib-tool: New options --vc-files, --no-vc-files.
51405         (func_usage): Document them.
51406         (vc_files): New variable.
51407         (func_import): Consider vc_files.
51408         (func_create_testdir): Set vc_files to empty.
51409         Suggested by Jim Meyering and Karl Berry.
51410
51411 2008-03-23  Bruno Haible  <bruno@clisp.org>
51412
51413         Fix regex compilation error on HP-UX 11.
51414         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51415         * modules/regex (Files): Add m4/mbstate_t.m4.
51416         Reported by Ton Voon <ton.voon@altinity.com>.
51417
51418 2008-03-23  Bruno Haible  <bruno@clisp.org>
51419
51420         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51421
51422 2008-03-23  Eric Blake  <ebb9@byu.net>
51423             Bruno Haible  <bruno@clisp.org>
51424
51425         Install files from top/ in the destination directory.
51426         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51427         augmentation also for the files from top/.
51428         (func_import, func_create_testdir): Rewrite file names:
51429         top/filename -> filename.
51430
51431 2008-03-23  Bruno Haible  <bruno@clisp.org>
51432
51433         Tweak "gnulib --version" output.
51434         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51435
51436 2008-03-23  Bruno Haible  <bruno@clisp.org>
51437
51438         Tweak "gnulib --version" output.
51439         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51440         rather than contents of ChangeLog, when possible.
51441
51442 2008-03-21  Eric Blake  <ebb9@byu.net>
51443
51444         More --version tweaks.
51445         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51446         date of last ChangeLog entry.
51447
51448 2008-03-21  Jim Meyering  <meyering@redhat.com>
51449
51450         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51451
51452 2008-03-20  Eric Blake  <ebb9@byu.net>
51453
51454         VPATH fix.
51455         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51456
51457 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51458
51459         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51460         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51461
51462 2008-03-20  Eric Blake  <ebb9@byu.net>
51463
51464         Sync GNUmakefile with coreutils.
51465         * build-aux/GNUmakefile (have-Makefile): Rename...
51466         (_have-Makefile): ...to this, for namespace consideration.
51467         (GNUmakefile.cfg): Include, if present.
51468         (_autoreconf): Define a default.
51469         (_is-dist-target): New rule for rebuilds to pick up intra-release
51470         version.
51471         (maint-cfg.mk): Rename...
51472         (cfg.mk): ...to this.
51473
51474 2008-03-18  Jim Meyering  <meyering@redhat.com>
51475
51476         New script and module: mktempd
51477         * MODULES.html.sh (maint+release support): Add mktempd.
51478         * build-aux/mktempd: New file.
51479         * modules/mktempd: New file.
51480
51481 2008-03-15  Jim Meyering  <meyering@redhat.com>
51482
51483         Undo last change.
51484         * lib/sha1.c, lib/md5.c: 63 != ~63.
51485         Reported by Andreas Schwab.
51486
51487         sha1.c, md5.c: Hoist a redundant expression.
51488         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51489         "ctx->buflen" only once, before calling *_process_block.
51490         * lib/md5.c (md5_process_bytes): Likewise.
51491
51492 2008-03-14  Eric Blake  <ebb9@byu.net>
51493
51494         Bump copyright year in files generated by gnulib-tool.
51495         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51496         gnulib-tool, rather than hard-coding it.
51497
51498         Fix 'gnulib-tool --version' output to work with git.
51499         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51500         (startup): ...here.
51501         (func_version): Use it to invoke git-version-gen, rather than
51502         relying on CVS keyword expansion.  Modernize wording.
51503         (cvsdatestamp, last_checkin_date, version): Kill unused
51504         variables.
51505
51506 2008-03-12  Jim Meyering  <meyering@redhat.com>
51507
51508         Recognize optional cast of the argument to free.
51509         * build-aux/useless-if-before-free: Update regexps.
51510
51511         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51512
51513 2008-03-11  Bruno Haible  <bruno@clisp.org>
51514
51515         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51516         by a single package.
51517         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51518         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51519         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51520         Reported by Sam Steingold <sds@gnu.org>.
51521
51522 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51523
51524         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51525         repositories.
51526
51527 2008-03-11  Bruno Haible  <bruno@clisp.org>
51528
51529         Avoid conflicts between local macro definitions.
51530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51531         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51532
51533 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51534             Bruno Haible  <bruno@clisp.org>
51535
51536         Make va_copy work with some version of xlc on AIX 5.1.
51537         * lib/stdarg.in.h: New file.
51538         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51539         On AIX, use a <stdarg.h> file substitute.
51540         * modules/stdarg (Files): Add lib/stdarg.in.h.
51541         (Depends-on): Add include_next.
51542         (Makefile.am): Build a stdarg.h substitute if requested.
51543         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51544
51545 2008-03-10  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51549         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51550
51551 2008-03-10  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/stdlib (Depends-on): Add include_next, remove
51554         absolute-header.
51555
51556 2008-03-09  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/freadahead.h (freadahead): Document more precisely.
51559         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51560         the sum of both buffer sizes.
51561         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51562         * NEWS: Document the change.
51563
51564 2008-03-09  Bruno Haible  <bruno@clisp.org>
51565
51566         Extend freadptr to return also the buffer size.
51567         * lib/freadptr.h (freadptr): Add sizep argument.
51568         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51569         (freadptr): Add sizep argument. Determine buffer size like freadahead
51570         does.
51571         * tests/test-freadptr.c: Don't include freadahead.h.
51572         (main): Adapt for new calling convention of freadptr.
51573         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51574         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51575         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51576         tests/test-freadptr2.sh.
51577         (Depends): Remove freadahead.
51578         (TESTS): Add test-freadptr2.sh.
51579         (check_PROGRAMS): Add test-freadptr2.
51580
51581 2008-03-09  Bruno Haible  <bruno@clisp.org>
51582
51583         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51584         Report and solution by Simon Josefsson.
51585
51586 2008-03-06  Bruno Haible  <bruno@clisp.org>
51587
51588         Make fflush after ungetc work on BSD platforms.
51589         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51590         * tests/test-fflush2.c: New file.
51591         * tests/test-fflush2.sh: New file.
51592         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51593         tests/test-fflush2.c.
51594         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51595         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51596
51597 2008-03-06  Eric Blake  <ebb9@byu.net>
51598
51599         Likewise for ftello.
51600         * modules/ftello (Dependencies): Add extensions.
51601         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51602
51603 2008-03-06  Bruno Haible  <bruno@clisp.org>
51604
51605         * modules/fseeko (Dependencies): Add extensions.
51606         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51607         Needed on glibc systems.
51608
51609 2008-03-06  Bruno Haible  <bruno@clisp.org>
51610
51611         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51612         email address.
51613         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51614
51615 2008-03-06  Bruno Haible  <bruno@clisp.org>
51616
51617         * users.txt: Add libgnupdf.
51618
51619 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51620
51621         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51622         (Header File Substitutes, Function Substitutes,
51623         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51624         (Build robot for gnulib): Fix typo.
51625
51626 2008-03-06  Bruno Haible  <bruno@clisp.org>
51627
51628         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51629         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51630
51631 2008-03-06  Bruno Haible  <bruno@clisp.org>
51632
51633         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51634         * doc/gnulib.texi: Include it.
51635
51636 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51637
51638         * modules/func (License): Change license to unlimited; there was
51639         no LGPL parts in the module anyway.
51640
51641 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51642
51643         * modules/__func__: Renamed to modules/func.
51644         * modules/__func__-tests: Renamed to modules/func-tests.
51645         * tests/test-__func__.c: Renamed to tests/test-func.c.
51646         * m4/__func__.m4: Renamed to m4/func.m4.
51647         * doc/gnulib.texi (__func__): Section renamed to func.
51648         Suggested by Eric Blake <ebb9@byu.net>.
51649
51650 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51651
51652         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51653         about __func__.  Make example self-contained.  Suggested by Eric
51654         Blake <ebb9@byu.net>.
51655
51656         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51657         Suggested by Eric Blake <ebb9@byu.net>.
51658
51659 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51660
51661         * modules/__func__: New file.
51662         * modules/__func__-tests: New file.
51663         * tests/test-__func__.c: New file.
51664         * m4/__func__.m4: New file.
51665         * doc/gnulib.texi (__func__): Document __func__ module.
51666
51667 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51668
51669         * modules/byteswap (License): Re-license as LGPLv2+.
51670
51671 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51672
51673         * doc/Makefile: Add pdf target.
51674
51675 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51676
51677         * modules/inline (License): Use 'unlimited', since there are only
51678         *.m4 files in this module.
51679
51680 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51681             Bruno Haible  <bruno@clisp.org>
51682
51683         Add support for HP C 7.1 on OpenVMS 8.3.
51684         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51685
51686 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51687
51688         Update VMS specifics.
51689         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51690
51691 2008-03-02  Jim Meyering  <meyering@redhat.com>
51692
51693         Remove the last dependency on the "free" module.
51694         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51695         Reported by Bob Proulx.
51696
51697         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51698
51699         Remove useless "if" tests before free.  Deprecate "free" module.
51700         * doc/posix-functions/free.texi: Mention that this
51701         module is no longer useful.
51702         * modules/free (Notice): Say this module is obsolete.
51703         * modules/readutmp (Depends-on): Remove free.
51704         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51705         * lib/putenv.c (putenv): Likewise.
51706         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51707         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51708         * tests/test-c-strcasestr.c (main): Likewise.
51709         * tests/test-c-strstr.c (main): Likewise.
51710         * tests/test-mbscasestr1.c (main): Likewise.
51711         * tests/test-mbscasestr2.c (main): Likewise.
51712         * tests/test-mbsstr1.c (main): Likewise.
51713         * tests/test-mbsstr2.c (main): Likewise.
51714         * tests/test-memmem.c (main): Likewise.
51715         * tests/test-strcasestr.c (main): Likewise.
51716         * tests/test-striconv.c (main): Likewise.
51717         * tests/test-striconveh.c (main): Likewise.
51718         * tests/test-striconveha.c (main): Likewise.
51719         * tests/test-strstr.c (main): Likewise.
51720
51721         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51722
51723         bootstrap: sync from coreutils again
51724         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51725
51726 2008-03-01  Jim Meyering  <meyering@redhat.com>
51727
51728         bootstrap: sync from coreutils
51729         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51730         also when the target doesn't exist.
51731
51732 2008-03-01  Eric Blake  <ebb9@byu.net>
51733
51734         Fix bugs in last patch.
51735         * lib/memchr2.c (memchr2): Fix typo.
51736         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51737         extension.
51738         Reported by Bruce Korb.
51739
51740         New module 'memchr2'.
51741         * modules/memchr2: New file.
51742         * modules/memchr2-tests: Likewise.
51743         * lib/memchr2.h: Likewise.
51744         * lib/memchr2.c: Likewise, based on memchr.c.
51745         * tests/test-memchr2.c: New test.
51746         * MODULES.html.sh (String handling): Add memchr2.
51747
51748 2008-02-29  Bruno Haible  <bruno@clisp.org>
51749
51750         * modules/freadseek-tests: New file.
51751         * tests/test-freadseek.sh: New file.
51752         * tests/test-freadseek.c: New file.
51753
51754         New module 'freadseek'.
51755         * modules/freadseek: New file.
51756         * lib/freadseek.h: New file.
51757         * lib/freadseek.c: New file.
51758         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51759
51760 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51761
51762         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51763         wydawca.
51764
51765         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51766         program_invocation_name and program_invocation_short_name are
51767         present.
51768
51769 2008-02-28  Bruno Haible  <bruno@clisp.org>
51770
51771         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51772         * tests/test-freadptr.sh: Also test non-seekable stdin.
51773
51774 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51775
51776         * build-aux/bootstrap (source_base, m4_base)
51777         (doc_base, tests_base): New variables.
51778         (gnulib_tool_options): Do not hardcode base directories, use
51779         the above variables instead.
51780
51781 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51782
51783         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51784
51785 2008-02-28  Bruno Haible  <bruno@clisp.org>
51786
51787         * modules/freadptr-tests: New file.
51788         * tests/test-freadptr.sh: New file.
51789         * tests/test-freadptr.c: New file.
51790
51791         New module 'freadptr'.
51792         * modules/freadptr: New file.
51793         * lib/freadptr.h: New file.
51794         * lib/freadptr.c: New file.
51795         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51796
51797 2008-02-26  Karl Berry  <karl@freefriends.org>
51798
51799         Sync from Libtool:
51800         * libltdl/argz.c (argz_add, argz_count): New functions.
51801         * libltdl/argz.in.h: Declare them.
51802         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51803
51804 2008-02-22  Bruno Haible  <bruno@clisp.org>
51805
51806         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51807         is a pointer type.  Needed for HP-UX 10.
51808         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51809         * doc/posix-functions/gmtime_r.texi: Likewise.
51810         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51811
51812 2008-02-24  Bruno Haible  <bruno@clisp.org>
51813
51814         * modules/environ-tests: New file.
51815         * tests/test-environ.c: New file.
51816
51817         New module 'environ'.
51818         * modules/environ: New file.
51819         * lib/unistd.in.h (environ): New declaration.
51820         * m4/environ.m4: New file.
51821         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51822         after use.
51823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51824         HAVE_DECL_ENVIRON.
51825         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51826         HAVE_DECL_ENVIRON.
51827         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51828         wrong claim that 'environ' is missing on some systems.
51829         * modules/execute (Depends-on): Add environ.
51830         * lib/execute.c (environ): Remove fallback declaration.
51831         * modules/pipe (Depends-on): Add environ.
51832         * lib/pipe.c (environ): Remove fallback declaration.
51833         * modules/setenv (Depends-on): Add environ.
51834         * lib/setenv.c (environ): Remove fallback declaration.
51835         * modules/unsetenv (Depends-on): Add environ.
51836         * lib/unsetenv.c (environ): Remove fallback declaration.
51837         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51838         m4/environ.m4.
51839         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51840         (gl_PREREQ_UNSETENV): Likewise.
51841
51842 2008-02-24  Bruno Haible  <bruno@clisp.org>
51843
51844         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51845
51846 2008-02-20  Bob Proulx  <bob@proulx.com>
51847
51848         Enable use of older two part flavor 'git describe'.
51849         * build-aux/git-version-gen: If using the older two part flavor of
51850         git version then recreate the third part now present in the
51851         newer three part flavor of git describe.
51852
51853 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51854
51855         * lib/fts.c (fts_build): Typo correction to comment.
51856
51857 2008-02-17  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51860         generating no-op conflicts.
51861
51862 2008-02-17  Bruno Haible  <bruno@clisp.org>
51863
51864         Speed up by 10%.
51865         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51866         result_entries, rather than an index-based loop.
51867
51868 2008-02-17  Bruno Haible  <bruno@clisp.org>
51869
51870         Speed up by 25%.
51871         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51872         'hashcode_cached'.
51873         (entry_create): New function.
51874         (entry_hashcode): Use the cached hashcode if possible.
51875         (read_changelog_file, try_split_merged_entry): Use entry_create.
51876
51877 2008-02-17  Bruno Haible  <bruno@clisp.org>
51878
51879         Speed up from O(n^2) to O(n) for long ChangeLog files.
51880         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51881         (read_changelog_file): Change implementation of entries_reversed list
51882         to rbtreehash.
51883         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51884
51885 2008-02-17  Bruno Haible  <bruno@clisp.org>
51886
51887         New option --split-merged-entry.
51888         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51889         (find_paragraph_end, try_split_merged_entry): New functions.
51890         (long_options): Add option --split-merged-entry.
51891         (usage): Document option --split-merged-entry.
51892         (main): Implement option --split-merged-entry.
51893         Reported by Eric Blake.
51894
51895 2008-02-17  Bruno Haible  <bruno@clisp.org>
51896
51897         * lib/git-merge-changelog.c: Include c-strstr.h.
51898         (main): Support the "git pull --rebase" situation.
51899         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51900         Reported by Eric Blake.
51901
51902 2008-02-16  Eric Blake  <ebb9@byu.net>
51903
51904         Avoid doubling \ in common case of "c-maybe" quoting style.
51905         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51906         eliding outer quotes.
51907         * lib/quotearg.h: Document this.
51908         * tests/test-quotearg.c (result_strings, inputs, results_g)
51909         (flag_results, locale_results): Test it by adding a new string to
51910         each test group.
51911         (compare_strings): Test new string.
51912
51913 2008-02-13  Eric Blake  <ebb9@byu.net>
51914
51915         Avoid trigraph quoting in default output.
51916         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51917         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51918         unless explicitly requested.
51919         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51920
51921 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51922
51923         Don't rely on signed integer overflowing to negative value.
51924         * lib/getugroups.c (getugroups): Include <limits.h>.
51925         Instead, compare against INT_MAX, and increment only if the test passes.
51926
51927 2008-02-13  Jim Meyering  <meyering@redhat.com>
51928         and Eric Blake  <ebb9@byu.net>
51929
51930         Avoid shadowing warning and compile errors on Linux.
51931         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51932         forwarding macros on Linux.
51933         (dcgettext): Define a stub, for Linux.
51934         (results_g, main): Avoid warnings.
51935
51936 2008-02-12  Eric Blake  <ebb9@byu.net>
51937
51938         Silence warning in last patch.
51939         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51940
51941         Quotearg part 4: add tests, fix c-maybe colon quoting.
51942         * lib/quotearg.h: Improve documentation.
51943         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51944         escapes when adding outer quotes.  When quoting trigraphs, use
51945         valid C notation.  When quoting NUL, omit extra characters if next
51946         character is not digit.  Alter prototype.
51947         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51948         callers.
51949         * modules/quotearg-tests: New module.
51950         * tests/test-quotearg.c: New test.
51951
51952 2008-02-07  Eric Blake  <ebb9@byu.net>
51953
51954         Quotearg part 3: add flag to control outer quote elision.
51955         * lib/quotearg.h (c_maybe_quoting_style): New style.
51956         (enum quoting_flags): Better documentation of flags.
51957         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51958         c-maybe style.
51959         (quotearg_buffer_restyled): Handle new flag to elide outer
51960         quotes.
51961
51962         Quotearg part 2: add flag that can control NUL elision.
51963         * lib/quotearg.h (set_quoting_flags): New prototype.
51964         * lib/quotearg.c (struct quoting_options): Add flag field.
51965         (set_quoting_flags): New function.
51966         (quotearg_buffer_restyled): Add flags parameter.
51967         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51968         (quotearg_n_options): Set the flag, since length cannot be
51969         returned.
51970         (quoting_options_from_style): Default flags correctly.
51971
51972         Quotearg part 1: more wrappers, restore quotearg_char state.
51973         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51974         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51975         (quotearg_colon_mem): New wrappers.
51976         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51977         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51978         functions.
51979         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51980         (quotearg_colon_mem): New functions.
51981
51982 2008-02-11  Bruno Haible  <bruno@clisp.org>
51983
51984         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51985         library in the current directory: it does not work with parallel make.
51986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51987
51988 2008-02-11  Bruno Haible  <bruno@clisp.org>
51989
51990         * .gitattributes: New file.
51991
51992 2008-02-11  Jim Meyering  <meyering@redhat.com>
51993
51994         useless-if-before-free: Fix reversed exit values.
51995         * build-aux/useless-if-before-free: Use correct values
51996         for EXIT_MATCH and EXIT_NO_MATCH.
51997
51998         * build-aux/useless-if-before-free: Close stdout carefully.
51999
52000 2008-02-10  Bruno Haible  <bruno@clisp.org>
52001
52002         New module 'git-merge-changelog'.
52003         * modules/git-merge-changelog: New file.
52004         * lib/git-merge-changelog.c: New file.
52005
52006 2008-02-10  Jim Meyering  <meyering@redhat.com>
52007
52008         useless-if-before-free: New option: --list (-l).
52009
52010         useless-if-before-free: Don't exit immediately upon open failure.
52011         * build-aux/useless-if-before-free: Exit 2 for errors.
52012         Upon failure to open a file, don't exit immediately.
52013         Rather, just warn and continue with any remaining files.
52014
52015 2008-02-10  Bruno Haible  <bruno@clisp.org>
52016
52017         New abstract list operation 'node_set_value'.
52018         * lib/gl_list.h (gl_list_node_set_value): New function.
52019         (struct gl_list_implementation): New field node_set_value.
52020         * lib/gl_list.c (gl_list_node_set_value): New function.
52021         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52022         (gl_array_list_implementation): Update.
52023         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52024         (gl_carray_list_implementation): Update.
52025         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52026         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52027         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52028         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52029         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52030         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52031         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52032         Update.
52033         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52034         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52035         (gl_sublist_list_implementation): Update.
52036
52037 2008-02-10  Bruno Haible  <bruno@clisp.org>
52038
52039         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52040         Needed when ELEMENT is #defined to 'some_type *'.
52041
52042 2008-02-10  Jim Meyering  <meyering@redhat.com>
52043
52044         New script and module: useless-if-before-free
52045         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52046         * build-aux/useless-if-before-free: New file.
52047         * modules/useless-if-before-free: New file.
52048
52049         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52050
52051         xstrtol_error: Fix typo.
52052         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52053         s/exit_failure/exit_status/.
52054
52055 2008-02-09  Jim Meyering  <meyering@redhat.com>
52056
52057         New script and module: gitlog-to-changelog
52058         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52059         * modules/gitlog-to-changelog: New file.
52060         * build-aux/gitlog-to-changelog: New file.
52061
52062 2008-02-08  Jim Meyering  <meyering@redhat.com>
52063
52064         Avoid two "parameter unused" warnings.
52065         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52066         Mark "st" as used.
52067
52068         Use "git COMMAND", not "git-COMMAND".
52069         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52070         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52071         * build-aux/git-version-gen: Use "git status", not "git-status".
52072
52073 2008-02-07  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52076         Avoids a crash on Windows Vista.
52077         Reported by Adam Strzelecki <ono@java.pl> via
52078         Simon Josefsson <simon@josefsson.org>.
52079
52080 2008-02-06  Bruno Haible  <bruno@clisp.org>
52081
52082         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52083         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52084         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52086         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52088         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52089         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52097         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52098         left-adjust flag.
52099         * tests/test-snprintf-posix.h (test_function): Likewise.
52100         * tests/test-sprintf-posix.h (test_function): Likewise.
52101         * tests/test-vasprintf-posix.c (test_function): Likewise.
52102         * doc/posix-functions/fprintf.texi: Update.
52103         * doc/posix-functions/printf.texi: Update.
52104         * doc/posix-functions/snprintf.texi: Update.
52105         * doc/posix-functions/sprintf.texi: Update.
52106         * doc/posix-functions/vfprintf.texi: Update.
52107         * doc/posix-functions/vprintf.texi: Update.
52108         * doc/posix-functions/vsnprintf.texi: Update.
52109         * doc/posix-functions/vsprintf.texi: Update.
52110         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52111
52112 2008-02-06  Bruno Haible  <bruno@clisp.org>
52113
52114         Fix bug introduced on 2008-01-26.
52115         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52116
52117 2008-02-06  Bruno Haible  <bruno@clisp.org>
52118
52119         Fix bug introduced on 2007-06-10.
52120         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52121         !NEED_PRINTF_FLAG_ZERO.
52122
52123 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52124
52125         getloadavg: use libperfstat on AIX5
52126         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52127
52128 2008-02-03  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/diffseq.h: Add comments about required #includes.
52131         Reported by Michael Biggs <gnulib@doubleplum.net>.
52132
52133 2008-02-01  Bruno Haible  <bruno@clisp.org>
52134
52135         * users.txt: Add gnuit.
52136
52137 2008-01-31  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/md4.c (set_uint32): Mark as inline.
52140         * lib/md5.c (set_uint32): Likewise.
52141         * lib/sha1.c (set_uint32): Likewise.
52142         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52143         * m4/md5.m4 (gl_MD5): Likewise.
52144         * m4/sha1.m4 (gl_SHA1): Likewise.
52145
52146 2008-01-31  Jim Meyering  <meyering@redhat.com>
52147
52148         Use "sizeof VAR", rather than a literal "4".
52149         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52150         * lib/md4.c (md4_read_ctx): Likewise.
52151         * lib/sha1.c (sha1_read_ctx): Likewise.
52152
52153 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52154
52155         * tests/test-sha1.c: New file, based on test-md5.c.
52156
52157         * modules/crypto/sha1-tests: New file.
52158
52159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52160
52161         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52162
52163 2008-01-31  Jim Meyering  <meyering@redhat.com>
52164
52165         Prefer "sizeof v" over the equivalent "4".
52166         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52167         * lib/md5.c (set_uint32): Likewise.
52168         * lib/sha1.c (set_uint32): Likewise.
52169
52170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52171
52172         * lib/sha1.c (set_uint32): Mark function as static.
52173
52174 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52175
52176         md2: clarify comments to say that alignment is not required.
52177         * lib/md2.h: Remove warning about alignment in comment.
52178         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52179         never been required.
52180
52181 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52182
52183         md4: adapt alignment constraint fix from sha1.
52184         * lib/md4.c (set_uint32): New function, from sha1.c
52185         (md4_read_ctx): Use it.
52186         (md4_finish_ctx): Doc fix.
52187         * lib/md4.h: Doc fix.
52188
52189 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52190
52191         md5: adapt alignment constraint fix from sha1.
52192         * lib/md5.c (set_uint32): New function, from sha1.c
52193         (md5_read_ctx): Use it.
52194         (md5_finish_ctx): Doc fix.
52195         * lib/md5.h: Doc fix.
52196
52197 2008-01-30  Peter Palfrader  <weasel@debian.org>
52198
52199         sha1: remove the result buffer alignment constraint
52200         * lib/sha1.c (set_uint32): New function.
52201         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52202         constraint.
52203         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52204         * lib/sha1.h: Likewise.
52205
52206 2008-01-30  Andreas Schwab  <schwab@suse.de>
52207             Bruno Haible  <bruno@clisp.org>
52208
52209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52210         correct definition of LDBL_MIN_EXP.
52211
52212 2008-01-30  Karl Berry  <karl@gnu.org>
52213
52214         * config/srclist-update: try to preserve x bit on updates.
52215         * config/srclistvars.sh: update for karl.
52216
52217 2008-01-29  Jim Meyering  <meyering@redhat.com>
52218
52219         vasnprintf.c: Avoid warning about unused label
52220         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52221         "overflow" label definition and associated code with the
52222         same cpp condition that guards the sole use of that label.
52223
52224 2008-01-26  Bruno Haible  <bruno@clisp.org>
52225
52226         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52227         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52228         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52229         * lib/isnanl-nolibm.h (isnanl): Likewise.
52230         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52231
52232 2008-01-26  Bruno Haible  <bruno@clisp.org>
52233
52234         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52235         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52236
52237 2008-01-26  Bruno Haible  <bruno@clisp.org>
52238
52239         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52240         GCC >= 4.0 built-in.
52241         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52242
52243 2008-01-26  Bruno Haible  <bruno@clisp.org>
52244
52245         Rename isnan, applicable to 'double' only, to isnand.
52246         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52247         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52248         (configure.ac): Update.
52249         (Include): Replace "isnan.h" with "isnand.h".
52250         * m4/isnand.m4: Renamed from m4/isnan.m4.
52251         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52252         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52253         instead of isnan.c.
52254         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52255         instead of HAVE_ISNAN_IN_LIBC.
52256         (isnand): Renamed from isnan.
52257         * lib/isnand.c: New file.
52258         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52259         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52260         (Makefile.am): Update.
52261         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52262         Include isnand.h instead of isnan.h.
52263         (main): Test isnand instead of isnan.
52264         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52265         isnan-nolibm.
52266         * modules/frexp (Depends-on): Likewise.
52267         * modules/frexp-tests (Depends-on): Likewise.
52268         * modules/frexp-nolibm (Depends-on): Likewise.
52269         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52270         * modules/isfinite (Depends-on): Likewise.
52271         * modules/round-tests (Depends-on): Likewise.
52272         * modules/signbit (Depends-on): Likewise.
52273         * modules/signbit-tests (Depends-on): Likewise.
52274         * modules/snprintf-posix (Depends-on): Likewise.
52275         * modules/sprintf-posix (Depends-on): Likewise.
52276         * modules/trunc-tests (Depends-on): Likewise.
52277         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52278         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52279         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52281         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52282         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52283         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52284         * modules/vasnprintf-posix (Depends-on): Likewise.
52285         * modules/vasprintf-posix (Depends-on): Likewise.
52286         * modules/vfprintf-posix (Depends-on): Likewise.
52287         * modules/vsnprintf-posix (Depends-on): Likewise.
52288         * modules/vsprintf-posix (Depends-on): Likewise.
52289         * lib/frexp.c: Include isnand.h instead of isnan.h.
52290         (ISNAN): Set to isnand instead of isnan.
52291         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52292         (gl_isfinited): Use isnand instead of isnan.
52293         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52294         (gl_signbitd): Use isnand instead of isnan.
52295         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52296         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52297         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52298         (main): Use isnand instead of isnan.
52299         * tests/test-round1.c: Include isnand.h.
52300         (main): Use isnand instead of isnan.
52301         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52302         (ISNAN): Set to isnand instead of isnan.
52303         * tests/test-trunc1.c: Include isnand.h.
52304         (main): Use isnand instead of isnan.
52305         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52306         (equal): Use isnand instead of isnan.
52307         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52308         isnand-nolibm.
52309         * NEWS: Mention the change.
52310
52311 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52312             Bruno Haible  <bruno@clisp.org>
52313
52314         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52315         the GCC builtins for signbits are present and set
52316         REPLACE_SIGNBIT_USING_GCC if so.
52317         * lib/math.in.h (signbit): Define using GCC builtins if
52318         REPLACE_SIGNBIT_USING_GCC is set.
52319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52320         REPLACE_SIGNBIT_USING_GCC.
52321         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52322
52323 2008-01-25  Jim Meyering  <meyering@redhat.com>
52324
52325         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52326         * lib/poll.c: Include <config.h>, not "config.h".
52327         * tests/test-getaddrinfo.c: Likewise.
52328
52329 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52330
52331         * modules/sockets-tests: New file.
52332
52333 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52334
52335         * modules/sockets: New module, can be used to call WSA_Startup and
52336         WSA_Cleanup when needed.
52337
52338         * lib/sockets.h, lib/sockets.c: New files.
52339
52340         * m4/sockets.m4: New file.
52341
52342         * tests/test-sockets.c: New file.
52343
52344 2008-01-19  Bruno Haible  <bruno@clisp.org>
52345
52346         * doc/posix-headers: Renamed from doc/headers.
52347         * doc/posix-functions: Renamed from doc/functions.
52348         * doc/gnulib.texi: Update.
52349
52350 2008-01-19  Bruno Haible  <bruno@clisp.org>
52351
52352         * doc/glibc-functions/strcasestr.texi: Include contents of
52353         doc/functions/strcasestr.texi, fixing the list of platforms.
52354         * doc/functions/strcasestr.texi: Remove file.
52355
52356 2008-01-19  Bruno Haible  <bruno@clisp.org>
52357
52358         * doc/glibc-functions/memmem.texi: Include contents of
52359         doc/functions/memmem.texi.
52360         * doc/functions/memmem.texi: Remove file.
52361
52362 2008-01-18  Bruno Haible  <bruno@clisp.org>
52363
52364         * doc/glibc-functions/*.texi: New files.
52365         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52366         to use the new files.
52367
52368 2008-01-17  Bruno Haible  <bruno@clisp.org>
52369
52370         * tests/test-gethostname.c (main): Fix printf statement.
52371
52372 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52373
52374         * modules/gethostname-tests: New file.
52375
52376         * tests/test-gethostname.c: New file.
52377
52378 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52379
52380         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52381         used by the UNAME case.  Reported by Bruno Haible
52382         <bruno@clisp.org>.
52383
52384 2008-01-17  Eric Blake  <ebb9@byu.net>
52385
52386         Convert c-strcasestr to be more efficient.
52387         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52388         (Depends-on): Add c-strcase, remove malloca, strnlen.
52389         * tests/test-c-strcasestr.c (main): Enhance test.
52390         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52391
52392 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52393
52394         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52395         Use it in creating po/Makevars.
52396
52397 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52398
52399         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52400         Applications that requires it should initialize libgcrypt
52401         manually.
52402
52403 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52404
52405         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52406
52407 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         Fix problem with getdate on mingw32 reported by Simon Josefsson
52410         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52411         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52412         tzname", when deciding whether to declare tzname.
52413         * lib/strftime.c (tzname): Likewise.
52414
52415 2008-01-15  Bruno Haible  <bruno@clisp.org>
52416
52417         Work around a MacOS X 10.5 bug in frexpl().
52418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52419         * doc/functions/frexpl.texi: Document the bug.
52420         Reported by Elias Pipping <pipping@gentoo.org>.
52421
52422 2008-01-14  Eric Blake  <ebb9@byu.net>
52423
52424         Touch up previous patch.
52425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52426         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52427
52428         Convert strcasestr module to use Two-Way algorithm.
52429         * modules/strcasestr-simple: New module, based on the old
52430         strcasestr, but with Two-Way rather than KMP.
52431         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52432         * lib/string.in.h (rpl_strcasestr): Declare.
52433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52434         performance.
52435         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52436         * modules/string (Makefile.am): Support strcasestr.
52437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52438         * modules/strcasestr-tests (Depends-on): Check for alarm.
52439         * tests/test-strcasestr.c: Augment test.
52440         * lib/str-two-way.h: Clean up stray macro.
52441         * NEWS: Document new module.
52442         * MODULES.html.sh (string handling): Likewise.
52443         * doc/functions/strcasestr.texi: New file.
52444         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52445         here, since it is not a POSIX function.
52446
52447 2008-01-14  Colin Watson  <cjwatson@debian.org>
52448             Bruno Haible  <bruno@clisp.org>
52449
52450         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52451         works fine; if not, set REPLACE_STRSIGNAL.
52452         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52454         REPLACE_STRSIGNAL.
52455         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52456         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52457         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52458
52459 2008-01-14  Bruno Haible  <bruno@clisp.org>
52460
52461         * modules/strsignal (Include): Change to <string.h>.
52462
52463 2008-01-14  Colin Watson  <cjwatson@debian.org>
52464
52465         * modules/argp (Notice): Add a notice recommending to change
52466         XGETTEXT_OPTIONS.
52467         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52468
52469 2008-01-13  Colin Watson  <cjwatson@debian.org>
52470
52471         * modules/strsignal-tests: New file.
52472         * tests/test-strsignal.c: New file.
52473
52474         * lib/strsignal.c: New file, from glibc with modifications.
52475         * lib/siglist.h: New file, from glibc with modifications.
52476         * lib/string.in.h (strsignal): New declaration.
52477         * m4/strsignal.m4: New file.
52478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52479         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52480         * modules/strsignal: New file.
52481         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52482         HAVE_DECL_STRSIGNAL.
52483
52484 2008-01-13  Bruno Haible  <bruno@clisp.org>
52485
52486         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52487         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52488         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52490
52491 2008-01-13  Bruno Haible  <bruno@clisp.org>
52492
52493         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52494         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52495         * lib/argp.h (__attribute__): Likewise.
52496         * lib/c-stack.c (__attribute__): Likewise.
52497         * lib/error.h (__attribute__): Likewise.
52498         * lib/fts.c (__attribute__): Likewise.
52499         * lib/openat.h (__attribute__): Likewise.
52500         * lib/stdio.in.h (__attribute__): Likewise.
52501         * lib/string.in.h (__attribute__): Likewise.
52502         * lib/utimens.c (__attribute__): Likewise.
52503         * lib/vasnprintf.h (__attribute__): Likewise.
52504         * lib/xalloc.h (__attribute__): Likewise.
52505         * lib/xprintf.h (__attribute__): Likewise.
52506         * lib/xstrtol.h (__attribute__): Likewise.
52507         * lib/xvasprintf.h (__attribute__): Likewise.
52508
52509 2008-01-12  Bruno Haible  <bruno@clisp.org>
52510
52511         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52512         * doc/glibc-headers/a.out.texi: New file.
52513         * doc/glibc-headers/aliases.texi: New file.
52514         * doc/glibc-headers/alloca.texi: New file.
52515         * doc/glibc-headers/ar.texi: New file.
52516         * doc/glibc-headers/argp.texi: New file.
52517         * doc/glibc-headers/argz.texi: New file.
52518         * doc/glibc-headers/byteswap.texi: New file.
52519         * doc/glibc-headers/crypt.texi: New file.
52520         * doc/glibc-headers/endian.texi: New file.
52521         * doc/glibc-headers/envz.texi: New file.
52522         * doc/glibc-headers/err.texi: New file.
52523         * doc/glibc-headers/error.texi: New file.
52524         * doc/glibc-headers/execinfo.texi: New file.
52525         * doc/glibc-headers/fpu_control.texi: New file.
52526         * doc/glibc-headers/fstab.texi: New file.
52527         * doc/glibc-headers/fts.texi: New file.
52528         * doc/glibc-headers/getopt.texi: New file.
52529         * doc/glibc-headers/ieee754.texi: New file.
52530         * doc/glibc-headers/ifaddrs.texi: New file.
52531         * doc/glibc-headers/libintl.texi: New file.
52532         * doc/glibc-headers/mcheck.texi: New file.
52533         * doc/glibc-headers/mntent.texi: New file.
52534         * doc/glibc-headers/obstack.texi: New file.
52535         * doc/glibc-headers/paths.texi: New file.
52536         * doc/glibc-headers/printf.texi: New file.
52537         * doc/glibc-headers/pty.texi: New file.
52538         * doc/glibc-headers/resolv.texi: New file.
52539         * doc/glibc-headers/shadow.texi: New file.
52540         * doc/glibc-headers/sysexits.texi: New file.
52541         * doc/glibc-headers/ttyent.texi: New file.
52542
52543 2008-01-12  Jim Meyering  <meyering@redhat.com>
52544
52545         announce-gen: emit Gnulib's git-based version string.
52546         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52547         New option --gnulib-version=V, where V is expected to be
52548         the output of running git describe in the gnulib directory.
52549         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52550         not useful, and plan to stop publishing an xdelta file with each
52551         coreutils release.
52552
52553         * build-aux/announce-gen: Also check for lzma-compressed files.
52554
52555 2008-01-11  Bruno Haible  <bruno@clisp.org>
52556
52557         * tests/test-memmem.c (main): Increase maximum allowed time.
52558         * tests/test-strstr.c (main): Likewise.
52559
52560 2008-01-11  Bruno Haible  <bruno@clisp.org>
52561
52562         * doc/functions/memmem.texi: Add more precisions about platforms.
52563         * doc/functions/strstr.texi: Likewise.
52564
52565 2008-01-10  Eric Blake  <ebb9@byu.net>
52566
52567         * m4/strstr.m4: Delete cruft from copy-n-paste.
52568         Reported by Bruno Haible.
52569
52570 2008-01-10  Bruno Haible  <bruno@clisp.org>
52571
52572         Make c-strstr rely on strstr.
52573         * lib/c-strstr.c: Don't include str-kmp.h.
52574         (c_strstr): Define in terms of strstr.
52575         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52576         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52577
52578 2008-01-10  Bruno Haible  <bruno@clisp.org>
52579
52580         * doc/gnulib.texi (String Functions in C Locale): New section.
52581         * doc/c-ctype.texi: New file.
52582         * doc/c-strcase.texi: New file.
52583         * doc/c-strcaseeq.texi: New file.
52584         * doc/c-strcasestr.texi: New file.
52585         * doc/c-strstr.texi: New file.
52586         * doc/c-strtod.texi: New file.
52587         * doc/c-strtold.texi: New file.
52588
52589 2008-01-10  Eric Blake  <ebb9@byu.net>
52590
52591         * lib/relocatable.h: Fix a comment.
52592
52593 2008-01-10  Eric Blake  <ebb9@byu.net>
52594
52595         Share two-way algorithm.
52596         * lib/str-two-way.h: New file, merged from...
52597         * lib/memmem.c: ...here...
52598         * lib/strstr.c: ...and here.
52599         * modules/memmem (Files): Use it.
52600         * modules/strstr (Files): Likewise.
52601
52602         Avoid quadratic strstr implementations.
52603         * lib/strstr.c: New file.
52604         * m4/strstr.m4: Likewise.
52605         * modules/strstr: Likewise.
52606         * modules/strstr-tests: Likewise.
52607         * tests/test-strstr.c: Likewise.
52608         * lib/string.in.h (rpl_strstr): Declare.
52609         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52611         * modules/string (Makefile.am): Likewise.
52612         * MODULES.html.sh (string handling): Mention new module.
52613         * doc/functions/strstr.texi (strstr): Document the bug.
52614
52615 2008-01-10  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/relocatable.h (relocate): State whether result is freshly
52618         allocated or not.
52619         * lib/relocatable.c (relocate): Return a freshly allocated string
52620         instead of a pointer to a privately held string.
52621         Reported by Sylvain Beucler <beuc@gnu.org>.
52622
52623 2008-01-10  Colin Watson  <cjwatson@debian.org>
52624
52625         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52626         s/S_ISNLK/S_ISLNK/.
52627
52628 2008-01-09  Bruno Haible  <bruno@clisp.org>
52629
52630         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52631         and other files.
52632         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52633         if it's only a guess.
52634         * modules/memmem: Simplify by depending on memmem-simple.
52635
52636 2008-01-09  Bruno Haible  <bruno@clisp.org>
52637
52638         Work around OpenBSD 4.0 tdelete() bug.
52639         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52640         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52641         macros and don't redefine the enum values.
52642         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52643         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52644         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52645
52646 2008-01-09  Bruno Haible  <bruno@clisp.org>
52647
52648         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52649         (main): Don't perform the tests if setlocale did not install a UTF-8
52650         locale. Needed on OpenBSD 4.0.
52651         * modules/wcwidth-tests (Depends-on): Add localcharset.
52652
52653 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52656         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52657         * NEWS: announce this.
52658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52659
52660 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52661         and Eric Blake  <ebb9@byu.net>
52662
52663         Add memmem-simple module.
52664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52665         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52666         * modules/memmem-simple: New file.
52667         * modules/memmem (Description): Tweak.
52668         * MODULES.html.sh (string handling): Mention new module.
52669         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52670         addressed by memmem-simple.
52671         * NEWS: Document the difference.
52672
52673 2008-01-09  Eric Blake  <ebb9@byu.net>
52674
52675         Give gcc some memmem optimization hints.
52676         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52677         (strcasestr): Declare as pure.
52678         * modules/memmem (Maintainer): Claim my implementation.
52679
52680 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52681
52682         Support AIX 6.1 and higher.
52683         * build-aux/config.libpath: Likewise.
52684         * build-aux/config.rpath: Likewise.
52685
52686 2008-01-08  Jim Meyering  <meyering@redhat.com>
52687             Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52690         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52691         Reported by Peter Fales in
52692         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52693
52694 2008-01-08  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/unictype/category-of (Depends-on): Add
52697         unictype/category-none.
52698         * modules/unictype/category-and-tests (Depends-on): Add
52699         unictype/category-{L,N,Lu,Nd}.
52700         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52701         * modules/unictype/category-or-tests (Depends-on): Add
52702         unictype/category-{L,N}.
52703         * modules/unictype/category-name-tests (Depends-on): Add
52704         unictype/category-{Z,Nl}.
52705         Reported by Simon Josefsson.
52706
52707 2008-01-08  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52710         convention better.
52711         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52712         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52713         Reported by Peter Miller <millerp@canb.auug.org.au>.
52714
52715 2008-01-08  Eric Blake  <ebb9@byu.net>
52716
52717         Rewrite memmem to guarantee linear complexity without malloc.
52718         * lib/memmem.c (memmem): Use Two-Way rather than
52719         Knuth-Morris-Pratt, to allow O(1) space usage.
52720         (critical_factorization, two_way_short_needle)
52721         (two_way_long_needle): New functions.
52722         (knuth_morris_pratt): Delete.
52723         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52724         Add stdint.
52725         * tests/test-memmem.c (main): Add tests for periodic needle and
52726         sublinear performance.
52727         * doc/functions/memmem.texi (memmem): Document other deficiencies
52728         in cygwin and older glibc.
52729
52730 2008-01-08  Bruno Haible  <bruno@clisp.org>
52731
52732         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52733         augmentation.
52734
52735 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52736
52737         Add a configure time option: --disable-acl.
52738         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52739         AC_ARG_ENABLE(acl).
52740
52741 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52742
52743         * tests/test-localename.c: Don't include obsolete "setenv.h".
52744
52745         * modules/localename-tests (Depends-on): Need unsetenv.
52746
52747 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52748
52749         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52750
52751 2008-01-06  Colin Watson  <cjwatson@debian.org>
52752
52753         * users.txt: Add man-db.
52754
52755 2008-01-07  Bruno Haible  <bruno@clisp.org>
52756
52757         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52758         previous section name.
52759
52760 2008-01-07  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/progname.c (set_program_name): Don't strip off a leading
52763         "lt-" prefix outside a .libs directory.
52764         Suggested by Paul Eggert.
52765
52766 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52767             Bruno Haible  <bruno@clisp.org>
52768
52769         Improve memory cleanup in 'relocatable' module.
52770         * lib/relocatable.h (compute_curr_prefix): Change return type to
52771         'char *'.
52772         * lib/relocatable.c (compute_curr_prefix): Change return type to
52773         'char *'. Free curr_installdir after use.
52774         (relocate): Free curr_prefix_better after use.
52775         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52776
52777 2008-01-01  Bruno Haible  <bruno@clisp.org>
52778
52779         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52780         failure on older glibc systems.
52781         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52782
52783 2008-01-05  Eric Blake  <ebb9@byu.net>
52784
52785         Avoid quadratic system memmem.
52786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52787         Reported by Ralf Wildenhues.
52788
52789         Fix memmem test for mingw.
52790         * modules/memmem-tests (configure.ac): Check for alarm.
52791         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52792         it.
52793         * doc/functions/memmem.texi: New file.
52794         * doc/gnulib.texi (Function Substitutes): Add memmem.
52795         Reported by Bruno Haible.
52796
52797 2008-01-04  Bruno Haible  <bruno@clisp.org>
52798
52799         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52800         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52801         gl_HEADER_STRING_H_DEFAULTS.
52802
52803 2008-01-04  Eric Blake  <ebb9@byu.net>
52804
52805         Shorten duration of memmem test.
52806         * tests/test-memmem.c (main): Use alarm to declare failure if test
52807         is taking too long.
52808         Reported by Ralf Wildenhues.
52809
52810 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52811
52812         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52813         string, needed by strerror.
52814
52815 2008-01-03  Colin Watson  <cjwatson@debian.org>
52816             Bruno Haible  <bruno@clisp.org>
52817
52818         * doc/gnulib-tool.texi (Localization): New section.
52819
52820 2008-01-02  Bruno Haible  <bruno@clisp.org>
52821
52822         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52823         variables to 'unsigned char *' type.
52824         Reported by Paul Eggert.
52825
52826 2008-01-02  Jim Meyering  <jim@meyering.net>
52827
52828         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52829
52830 2007-12-31  Jim Meyering  <jim@meyering.net>
52831
52832         Avoid use of private FTS type name.
52833         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52834
52835 2007-12-30  Karl Berry  <karl@gnu.org>
52836
52837         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52838         work around defect in Texinfo and/or the standalone Info browser.
52839
52840 2007-12-30  Bruno Haible  <bruno@clisp.org>
52841
52842         Unify 5 copies of the KMP code.
52843         * lib/str-kmp.h: New file.
52844         * lib/c-strcasestr.c: Include str-kmp.h.
52845         (knuth_morris_pratt): Remove function.
52846         (c_strcasestr): Update.
52847         * lib/c-strstr.c: Include str-kmp.h.
52848         (knuth_morris_pratt): Remove function.
52849         (c_strcasestr): Update.
52850         * lib/mbscasestr.c: Include str-kmp.h.
52851         (knuth_morris_pratt_unibyte): Remove function.
52852         * lib/mbsstr.c: Include str-kmp.h.
52853         (knuth_morris_pratt_unibyte): Remove function.
52854         * lib/strcasestr.c: Include str-kmp.h.
52855         (knuth_morris_pratt): Remove function.
52856         (strcasestr): Update.
52857         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52858         * modules/c-strstr (Files): Likewise.
52859         * modules/mbscasestr (Files): Likewise.
52860         * modules/mbsstr (Files): Likewise.
52861         * modules/strcasestr (Files): Likewise.
52862         Suggested by Paul Eggert.
52863
52864 2007-12-30  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52867         defined.
52868
52869 2007-12-30  Bruno Haible  <bruno@clisp.org>
52870
52871         * lib/xmalloca.h: Include xalloc.h.
52872         (xnmalloca): New macro.
52873
52874 2007-12-30  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/malloca.h (nmalloca): New macro.
52877         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52878         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52879         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52880         knuth_morris_pratt_multibyte): Likewise.
52881         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52882         knuth_morris_pratt_multibyte): Likewise.
52883         * lib/memmem.c (knuth_morris_pratt): Likewise.
52884         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52885
52886 2007-12-25  Bruno Haible  <bruno@clisp.org>
52887
52888         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52889         * lib/glob.c: Don't include openat.h.
52890         (link_exists2_p): Add back the code that deals with the
52891         !GLOB_ALTDIRFUNC case.
52892         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52893         let it do the filename concatenation.
52894         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52895         * modules/glob (Depends-on): Remove openat.
52896
52897 2007-12-31  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/dirfd (License): Change to LGPLv2+.
52900         Approved by Jim Meyering.
52901
52902 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52905         when multiplying M by sizeof (size_t).
52906
52907 2007-12-10  Martin Lambers  <marlam@marlam.de>
52908
52909         Override getpagesize on mingw.
52910         * lib/getpagesize.c: New file.
52911         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52912         * modules/getpagesize (Files): Add lib/getpagesize.c.
52913         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52915         REPLACE_GETPAGESIZE.
52916         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52917
52918 2007-12-25  Bruno Haible  <bruno@clisp.org>
52919
52920         * modules/localcharset (Notice): New field.
52921         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52922         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52923
52924 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52925             Bruno Haible  <bruno@clisp.org>
52926
52927         Avoid using the syntax symbol() in formatted documentation.
52928         * MODULES.html.sh (func_module): When replacing symbol() with a
52929         hyperlink, remove the parentheses. Show an error if some remain.
52930         Recognize and render the '...' syntax.
52931         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52932         Rework. Add paragraph about GCC's inlining.
52933         * doc/alloca.texi: Likewise.
52934         * doc/error.texi: Remove parentheses from symbol reference.
52935         * doc/gnulib-intro.texi: Likewise.
52936         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52937         * modules/fnmatch (Description): Reword to say "the ... function".
52938         * modules/full-read (Description): Likewise.
52939         * modules/full-write (Description): Likewise.
52940         * modules/safe-read (Description): Likewise.
52941         * modules/safe-write (Description): Likewise.
52942         * modules/strchrnul (Description): Likewise.
52943         * modules/trim (Description): Likewise.
52944         * modules/error (Description): Remove parentheses from symbol
52945         references.
52946         * modules/verror (Description): Likewise.
52947         Reported by Karl Berry.
52948
52949 2007-12-25  Bruno Haible  <bruno@clisp.org>
52950
52951         Fixup after 2007-10-16 commit.
52952         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52953
52954 2007-12-24  Bruno Haible  <bruno@clisp.org>
52955
52956         Make --enable-relocatable work with DESTDIR.
52957         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52958         to compute installdir from destprog.
52959         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52960         also set the RELOC_DESTDIR variable.
52961         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52962
52963 2007-12-24  Bruno Haible  <bruno@clisp.org>
52964
52965         Fix link error due to xalloc_die().
52966         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52967         of xreadlink.
52968         * lib/relocwrapper.c: Update comments.
52969         * build-aux/install-reloc: Remove xreadlink.c from file list.
52970         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52971         xreadlink.c.
52972         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52973
52974 2007-12-24  Bruno Haible  <bruno@clisp.org>
52975
52976         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52977         * lib/setenv.h: Remove file.
52978         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52979         lib/setenv.h.
52980         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52981         (Depends-on): Add stdlib.
52982         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52983         gl_FUNC_UNSETENV.
52984         (Include): Replace setenv.h with <stdlib.h>.
52985         * modules/unsetenv: New file.
52986         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52987         * lib/unsetenv.c: Include <stdlib.h> first.
52988         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52989         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52990         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52991         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52992         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52993         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52995         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52996         * doc/functions/unsetenv.texi: Update.
52997         * modules/xsetenv (Depends-on): Add unsetenv.
52998         * modules/getdate (Depends-on): Likewise.
52999         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53000         * lib/xsetenv.c: Don't include setenv.h.
53001         * lib/getdate.y: Likewise.
53002         * lib/relocwrapper.c: Likewise.
53003         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53004         (Depends-on): Add stdlib.
53005         * NEWS: Mention the changes.
53006         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53007
53008 2007-12-23  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53011         indentation.
53012
53013 2007-12-23  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/c-strcasestr.c: Add more comments.
53016         * lib/c-strstr.c: Likewise.
53017         * lib/mbscasestr.c: Likewise.
53018         * lib/mbsstr.c: Likewise.
53019         * lib/strcasestr.c: Likewise.
53020         * lib/memmem.c: Likewise.
53021
53022 2007-12-23  Bruno Haible  <bruno@clisp.org>
53023
53024         * tests/test-memmem.c: Include <string.h> first.
53025
53026 2007-12-22  Bruno Haible  <bruno@clisp.org>
53027
53028         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53029         the contents of $testsbase.
53030         Reported by Ralf Wildenhues.
53031
53032 2007-12-22  Bruno Haible  <bruno@clisp.org>
53033
53034         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53035         two variables local_ldadd_before, local_ldadd_last.
53036
53037 2007-12-20  Eric Blake  <ebb9@byu.net>
53038
53039         Work around circular library issue when cross-compiling.
53040         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53041         that progname.o does not need to pull in rpl_memcmp.
53042
53043 2007-12-19  Eric Blake  <ebb9@byu.net>
53044
53045         Fix memmem to avoid O(n^2) worst-case complexity.
53046         * lib/memmem.c (knuth_morris_pratt): New function.
53047         (memmem): Use it if first few naive iterations fail.
53048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53049         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53050         * modules/memchr (License): Likewise.
53051         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53052         malloca.
53053         * tests/test-memmem.c: Rewrite, borrowing ideas from
53054         test-mbsstr1.c; the old version wouldn't even compile!
53055         * modules/memmem-tests: New file.
53056         * lib/string.in.h (rpl_memmem): Add declaration.
53057         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53059         REPLACE_MEMMEM.
53060
53061 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53062
53063         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53064         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53065         before any system include files, and undef after them all.  This
53066         should fix a problem on VMS reported by John E. Malmberg in
53067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53068
53069 2007-12-17  Eric Blake  <ebb9@byu.net>
53070
53071         Revert addition of verify, for BSD/OS.
53072         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53073         can't handle large files, for the sake of obsolete platforms.
53074         * modules/fseeko (Depends-on): Remove verify.
53075         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53076         * doc/functions/ftello.texi (ftello): Likewise.
53077         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53078         Reported by Larry Jones.
53079
53080 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53081
53082         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53083         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53084
53085 2007-12-17  Jim Meyering  <meyering@redhat.com>
53086
53087         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53088         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53089         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53090         * modules/getcwd (Depends-on): Add openat.
53091         Reported by Petr Salinger.
53092
53093 2007-12-17  Bruno Haible  <bruno@clisp.org>
53094
53095         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53096         avoid a segmentation fault of the configure test on x86_64 systems.
53097
53098 2007-12-15  Jim Meyering  <meyering@redhat.com>
53099
53100         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53101
53102 2007-12-13  Eric Blake  <ebb9@byu.net>
53103
53104         Another fseek test.
53105         * tests/test-fseek.c (main): Also test ungetc handling.
53106         * tests/test-fseeko.c (main): Likewise.
53107         * modules/fseeko (Depends-on): Add verify.
53108         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53109         large.
53110         Reported by Larry Jones.
53111
53112         Fix fseeko on mingw.
53113         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53114         seek.
53115
53116         Beef up fseek tests.
53117         * tests/test-fseek.c (main): Also test eof handling.
53118         * tests/test-fseeko.c (main): Likewise.
53119         Reported by Larry Jones.
53120
53121 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53122
53123         Fix fseeko on BSD-based platforms.
53124         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53125         successful seek.
53126
53127 2007-12-12  Eric Blake  <ebb9@byu.net>
53128
53129         Allow circular dependency of separate libtests.a
53130         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53131         when use_libtests.
53132
53133 2007-12-11  Eric Blake  <ebb9@byu.net>
53134
53135         Fix bug with -0.0L in previous patch.
53136         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53137         * tests/test-isnan.c (main): Also test on zeroes.
53138         * tests/test-isnanf.c (main): Likewise.
53139         * tests/test-isnanl.h (main): Likewise.
53140
53141         Detect pseudo-denormals on x86 even when cross-compiling.
53142         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53143         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53144         invalid bit patterns that happen to satisfy ==.
53145
53146         Avoid link failures with separate libtests.a.
53147         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53148         last, to satisfy circular dependencies.
53149
53150 2007-12-11  Eric Blake  <ebb9@byu.net>
53151         and Bruno Haible  <bruno@clisp.org>
53152
53153         Fix OpenBSD 4.0 <float.h> handling of long double.
53154         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53155         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53156         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53157
53158 2007-12-11  Jim Meyering  <meyering@redhat.com>
53159
53160         * users.txt: Add libvirt.
53161
53162         Support versions of autoconf prior to 2.59c.
53163         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53164         if it is not already defined.
53165
53166 2007-12-09  Bruno Haible  <bruno@clisp.org>
53167
53168         Let 'gnulib-tool --import' collect sources needed for the tests in
53169         tests/ rather than in lib/.
53170         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53171         argument. If true, add rules to generate libtests.a, and put libtests.a
53172         into $(LDADD). Consider source files in subdirectories and set
53173         uses_subdirs.
53174         (func_emit_initmacro_start, func_emit_initmacro_end,
53175         func_emit_initmacro_done): Pass all arguments explicitly.
53176         (func_import): Determine two module lists main_modules,
53177         testsrelated_modules. Determine use_libtests. Determine two variables
53178         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53179         instead of just sed_transform_lib_file. Determine two variables
53180         main_files and testsrelated_files. Compute 'files' as the union of
53181         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53182         func_add_or_update. In the generated gnulib-comp.m4, collect the
53183         object files for tests/ in different variables than those for lib/.
53184         Substitute LIBTESTS_LIBDEPS.
53185         (func_create_testdir): Combine the uses_subdirs results from
53186         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53187
53188 2007-12-09  Bruno Haible  <bruno@clisp.org>
53189
53190         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53191         the build-aux directory.
53192
53193 2007-12-09  Bruno Haible  <bruno@clisp.org>
53194
53195         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53196         introduced on 2006-09-09.
53197
53198 2007-12-07  Jim Meyering  <meyering@redhat.com>
53199
53200         Let these macros work also with autoconf-2.59.
53201         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53202         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53203         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53204
53205 2007-12-06  Jim Meyering  <meyering@redhat.com>
53206
53207         Avoid a configure-time syntax error in gl_FUNC_ACL.
53208         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53209         function in each branch, before testing the cache variable.
53210
53211 2007-12-04  Eric Blake  <ebb9@byu.net>
53212
53213         Make scripts executable.
53214         * build-aux/config.guess: Add execute permissions.
53215         * build-aux/config.sub: Likewise.
53216         * build-aux/gendocs.sh: Likewise.
53217
53218         Fix frexp on mingw.
53219         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53220         cross-compiling.
53221         * doc/functions/frexp.texi (frexp): Document the bug.
53222
53223         Make cygwin fseeko check more reliable.
53224         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53225         version numbers, rather than unrelated feature check.
53226         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53227         * doc/functions/ftello.texi (ftello): Likewise.
53228         Reported by Bruno Haible.
53229
53230         * m4/strerror.m4: Bump version number.
53231
53232 2007-12-03  Bruno Haible  <bruno@clisp.org>
53233
53234         * doc/functions/mprotect.texi: Mention the mingw problem.
53235
53236 2007-12-03  Eric Blake  <ebb9@byu.net>
53237
53238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53239         REPLACE_STRERROR is initialized before this macro.
53240
53241 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53242
53243         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53244         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53245         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53246         put -lsec in even for programs other than 'ls'.  This fixes a problem
53247         for gettext reported by Bruno Haible in
53248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53249         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53250         Add support for Solaris 10.  This isn't efficient, but should get the
53251         job done for now.
53252
53253 2007-12-03  James Youngman  <jay@gnu.org>
53254
53255         * doc/regexprops-generic.texi: change "an close-group" to "a
53256         close-group" and "illegal" to "not allowed".
53257
53258 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53259
53260         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53261         pr_byname.h. Needed for the rare case when the maintainer has done
53262         "make maintainer-clean" in the source directory and then attempts a
53263         build outside the source directory.
53264         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53265         scripts_byname.h.
53266
53267 2007-12-02  Martin Lambers <marlam@marlam.de>
53268             Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/getpagesize.h: Remove file.
53271         * lib/unistd.in.h: Include declaration of getpagesize here.
53272         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53273         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53274         HAVE_SYS_PARAM_H.
53275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53276         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53277         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53278         (Depends-on): Add unistd.
53279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53280         (Include): Use <unistd.h> instead of getpagesize.h.
53281         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53282         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53283         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53284         gl_GETPAGESIZE invocation, already handled by module dependency.
53285         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53286
53287 2007-12-02  Bruno Haible  <bruno@clisp.org>
53288
53289         * modules/strings-tests: New file.
53290         * tests/test-strings.c: New file.
53291
53292         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53293         * lib/strings.in.h: New file.
53294         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53295         * m4/strings_h.m4: New file.
53296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53297         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53298         * modules/strings: New file.
53299         * modules/string (Makefile.am): Update.
53300         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53301         Reported by Karl Berry.
53302
53303 2007-12-01  Eric Blake  <ebb9@byu.net>
53304
53305         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53306         accomodate fix in cygwin 1.5.25.
53307
53308 2007-12-01  Jim Meyering  <meyering@redhat.com>
53309
53310         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53311         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53312         that would inhibit utf8-optimization of a regexp containing line-
53313         or buffer-anchors, e.g., `^', `$'.
53314
53315 2007-11-30  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53318         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53319         glthread_recursive_lock_init.
53320         * lib/lock.c (glthread_recursive_lock_init)
53321         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53322         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53323
53324 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         New function qset_acl, like set_acl but with syscall semantics.
53327         * lib/acl.h (qset_acl): New decl.
53328         * lib/acl.c (qset_acl): New function.
53329         (set_acl): Use new function.  Use more-consistent diagnostics.
53330
53331 2007-11-28  Jim Meyering  <meyering@redhat.com>
53332
53333         * modules/physmem (License): Change from GPL to LGPLv2+.
53334
53335 2007-11-26  Bruno Haible  <bruno@clisp.org>
53336
53337         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53338         'long double' type has excess precision.
53339         Reported by Jim Meyering in
53340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53341
53342 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53343
53344         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53345         Sync from <http://gnu.org/licenses>.
53346         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53347         with license text from same location.
53348         * doc/maintain.texi, doc/standards.texi:  Sync from
53349         <http://savannah.gnu.org/projects/gnustandards>.
53350
53351 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53352         and Jim Meyering  <meyering@redhat.com>
53353
53354         Adjust getdate' grammar to accept a slightly more regular language.
53355         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53356         Before, the former was rejected.
53357         * lib/getdate.y (digits_to_date_time): New function, factored
53358         out of ...
53359         (number): ...here.  Just call digits_to_date_time.
53360         (hybrid): New non-terminal to handle an <unsigned number,
53361         signed relative offset> sequence consistently.
53362
53363 2007-11-18  Jim Meyering  <meyering@redhat.com>
53364
53365         Pull my changes from coreutils:
53366         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53367         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53368         use of $gnulib_tool_option_extras, so that it's separated from the
53369         preceding argument.
53370
53371         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53372         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53373         parent destination directories before copying a file into place.
53374
53375 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53376
53377         bootstrap: work also with 4-argument variant of AC_INIT
53378         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53379
53380 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         Port test-getaddrinfo to Solaris.
53383         Problem reported by Bruno Haible in
53384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53385         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53386         explanation of setting 'hints'.
53387         Don't reject an implementation merely because it returns EAI_SERVICE.
53388         (EAI_SERVICE): Define to 0 if not defined.
53389
53390 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         The license of gnu-make and posix-shell is now "GPLed build tool".
53393         * modules/gnu-make (License): Likewise.
53394         * modules/posix-shell (License): Likewise.
53395
53396         New module posix-shell, for determining a POSIX shell
53397         or perhaps something that is close enough to a POSIX shell.
53398         * m4/posix-shell.m4: New file.
53399         * modules/posix-shell: New file.
53400
53401         * MODULES.html.sh: Mention new module.
53402
53403         New module gnu-make, for determining whether we're using GNU Make.
53404         * m4/gnu-make.m4: New file.
53405         * modules/gnu-make: New file.
53406         * MODULES.html.sh: Mention new module.
53407
53408 2007-11-14  Jim Meyering  <meyering@redhat.com>
53409
53410         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53411         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53412         use this macro to create a function _definition_.
53413         Remove useless "#undef ARGMATCH_DIE".
53414
53415 2007-11-14  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/config.charset: Update for OpenBSD 4.1.
53418         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53419
53420 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         Document 64-bit #if problems in stdint.texi.
53423         * doc/headers/stdint.texi (stdint.h): Mention problems with
53424         64-bit-#if, and how to work around them.
53425
53426         Don't insist on 'long long int' support in the preprocessor.  It
53427         breaks too many things.  For example, PRIdMAX still uses a 'long
53428         long int' format with the latest Sun compiler, even though
53429         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53430         preprocessor problem.  This causes the latest coreutils to dump
53431         core on Solaris 10 sparc with the Sun C compiler.
53432         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53433         the troublesome expressions at configure-time, not at #if-time.
53434         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53435         preprocessor.
53436         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53437         compile-time C checks, done at 'configure'-time.
53438         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53439         * modules/inttypes (Makefile): Substitute the new symbols that
53440         gl_INTTYPES_H now generates.
53441         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53442
53443 2007-11-12  Bruno Haible  <bruno@clisp.org>
53444
53445         Tests for Unicode character classification functions.
53446
53447         * modules/unictype/bidicategory-byname-tests: New file.
53448         * modules/unictype/bidicategory-name-tests: New file.
53449         * modules/unictype/bidicategory-of-tests: New file.
53450         * modules/unictype/bidicategory-test-tests: New file.
53451         * modules/unictype/block-list-tests: New file.
53452         * modules/unictype/block-of-tests: New file.
53453         * modules/unictype/block-test-tests: New file.
53454         * modules/unictype/category-C-tests: New file.
53455         * modules/unictype/category-Cc-tests: New file.
53456         * modules/unictype/category-Cf-tests: New file.
53457         * modules/unictype/category-Cn-tests: New file.
53458         * modules/unictype/category-Co-tests: New file.
53459         * modules/unictype/category-Cs-tests: New file.
53460         * modules/unictype/category-L-tests: New file.
53461         * modules/unictype/category-Ll-tests: New file.
53462         * modules/unictype/category-Lm-tests: New file.
53463         * modules/unictype/category-Lo-tests: New file.
53464         * modules/unictype/category-Lt-tests: New file.
53465         * modules/unictype/category-Lu-tests: New file.
53466         * modules/unictype/category-M-tests: New file.
53467         * modules/unictype/category-Mc-tests: New file.
53468         * modules/unictype/category-Me-tests: New file.
53469         * modules/unictype/category-Mn-tests: New file.
53470         * modules/unictype/category-N-tests: New file.
53471         * modules/unictype/category-Nd-tests: New file.
53472         * modules/unictype/category-Nl-tests: New file.
53473         * modules/unictype/category-No-tests: New file.
53474         * modules/unictype/category-P-tests: New file.
53475         * modules/unictype/category-Pc-tests: New file.
53476         * modules/unictype/category-Pd-tests: New file.
53477         * modules/unictype/category-Pe-tests: New file.
53478         * modules/unictype/category-Pf-tests: New file.
53479         * modules/unictype/category-Pi-tests: New file.
53480         * modules/unictype/category-Po-tests: New file.
53481         * modules/unictype/category-Ps-tests: New file.
53482         * modules/unictype/category-S-tests: New file.
53483         * modules/unictype/category-Sc-tests: New file.
53484         * modules/unictype/category-Sk-tests: New file.
53485         * modules/unictype/category-Sm-tests: New file.
53486         * modules/unictype/category-So-tests: New file.
53487         * modules/unictype/category-Z-tests: New file.
53488         * modules/unictype/category-Zl-tests: New file.
53489         * modules/unictype/category-Zp-tests: New file.
53490         * modules/unictype/category-Zs-tests: New file.
53491         * modules/unictype/category-and-not-tests: New file.
53492         * modules/unictype/category-and-tests: New file.
53493         * modules/unictype/category-byname-tests: New file.
53494         * modules/unictype/category-name-tests: New file.
53495         * modules/unictype/category-none-tests: New file.
53496         * modules/unictype/category-of-tests: New file.
53497         * modules/unictype/category-or-tests: New file.
53498         * modules/unictype/category-test-withtable-tests: New file.
53499         * modules/unictype/combining-class-tests: New file.
53500         * modules/unictype/ctype-alnum-tests: New file.
53501         * modules/unictype/ctype-alpha-tests: New file.
53502         * modules/unictype/ctype-blank-tests: New file.
53503         * modules/unictype/ctype-cntrl-tests: New file.
53504         * modules/unictype/ctype-digit-tests: New file.
53505         * modules/unictype/ctype-graph-tests: New file.
53506         * modules/unictype/ctype-lower-tests: New file.
53507         * modules/unictype/ctype-print-tests: New file.
53508         * modules/unictype/ctype-punct-tests: New file.
53509         * modules/unictype/ctype-space-tests: New file.
53510         * modules/unictype/ctype-upper-tests: New file.
53511         * modules/unictype/ctype-xdigit-tests: New file.
53512         * modules/unictype/decimal-digit-tests: New file.
53513         * modules/unictype/digit-tests: New file.
53514         * modules/unictype/mirror-tests: New file.
53515         * modules/unictype/numeric-tests: New file.
53516         * modules/unictype/property-alphabetic-tests: New file.
53517         * modules/unictype/property-ascii-hex-digit-tests: New file.
53518         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53519         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53520         * modules/unictype/property-bidi-block-separator-tests: New file.
53521         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53522         * modules/unictype/property-bidi-common-separator-tests: New file.
53523         * modules/unictype/property-bidi-control-tests: New file.
53524         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53525         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53526         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53527         * modules/unictype/property-bidi-european-digit-tests: New file.
53528         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53529         * modules/unictype/property-bidi-left-to-right-tests: New file.
53530         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53531         * modules/unictype/property-bidi-other-neutral-tests: New file.
53532         * modules/unictype/property-bidi-pdf-tests: New file.
53533         * modules/unictype/property-bidi-segment-separator-tests: New file.
53534         * modules/unictype/property-bidi-whitespace-tests: New file.
53535         * modules/unictype/property-byname-tests: New file.
53536         * modules/unictype/property-combining-tests: New file.
53537         * modules/unictype/property-composite-tests: New file.
53538         * modules/unictype/property-currency-symbol-tests: New file.
53539         * modules/unictype/property-dash-tests: New file.
53540         * modules/unictype/property-decimal-digit-tests: New file.
53541         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53542         * modules/unictype/property-deprecated-tests: New file.
53543         * modules/unictype/property-diacritic-tests: New file.
53544         * modules/unictype/property-extender-tests: New file.
53545         * modules/unictype/property-format-control-tests: New file.
53546         * modules/unictype/property-grapheme-base-tests: New file.
53547         * modules/unictype/property-grapheme-extend-tests: New file.
53548         * modules/unictype/property-grapheme-link-tests: New file.
53549         * modules/unictype/property-hex-digit-tests: New file.
53550         * modules/unictype/property-hyphen-tests: New file.
53551         * modules/unictype/property-id-continue-tests: New file.
53552         * modules/unictype/property-id-start-tests: New file.
53553         * modules/unictype/property-ideographic-tests: New file.
53554         * modules/unictype/property-ids-binary-operator-tests: New file.
53555         * modules/unictype/property-ids-trinary-operator-tests: New file.
53556         * modules/unictype/property-ignorable-control-tests: New file.
53557         * modules/unictype/property-iso-control-tests: New file.
53558         * modules/unictype/property-join-control-tests: New file.
53559         * modules/unictype/property-left-of-pair-tests: New file.
53560         * modules/unictype/property-line-separator-tests: New file.
53561         * modules/unictype/property-logical-order-exception-tests: New file.
53562         * modules/unictype/property-lowercase-tests: New file.
53563         * modules/unictype/property-math-tests: New file.
53564         * modules/unictype/property-non-break-tests: New file.
53565         * modules/unictype/property-not-a-character-tests: New file.
53566         * modules/unictype/property-numeric-tests: New file.
53567         * modules/unictype/property-other-alphabetic-tests: New file.
53568         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53569         * modules/unictype/property-other-grapheme-extend-tests: New file.
53570         * modules/unictype/property-other-id-continue-tests: New file.
53571         * modules/unictype/property-other-id-start-tests: New file.
53572         * modules/unictype/property-other-lowercase-tests: New file.
53573         * modules/unictype/property-other-math-tests: New file.
53574         * modules/unictype/property-other-uppercase-tests: New file.
53575         * modules/unictype/property-paired-punctuation-tests: New file.
53576         * modules/unictype/property-paragraph-separator-tests: New file.
53577         * modules/unictype/property-pattern-syntax-tests: New file.
53578         * modules/unictype/property-pattern-white-space-tests: New file.
53579         * modules/unictype/property-private-use-tests: New file.
53580         * modules/unictype/property-punctuation-tests: New file.
53581         * modules/unictype/property-quotation-mark-tests: New file.
53582         * modules/unictype/property-radical-tests: New file.
53583         * modules/unictype/property-sentence-terminal-tests: New file.
53584         * modules/unictype/property-soft-dotted-tests: New file.
53585         * modules/unictype/property-space-tests: New file.
53586         * modules/unictype/property-terminal-punctuation-tests: New file.
53587         * modules/unictype/property-test-tests: New file.
53588         * modules/unictype/property-titlecase-tests: New file.
53589         * modules/unictype/property-unassigned-code-value-tests: New file.
53590         * modules/unictype/property-unified-ideograph-tests: New file.
53591         * modules/unictype/property-uppercase-tests: New file.
53592         * modules/unictype/property-variation-selector-tests: New file.
53593         * modules/unictype/property-white-space-tests: New file.
53594         * modules/unictype/property-xid-continue-tests: New file.
53595         * modules/unictype/property-xid-start-tests: New file.
53596         * modules/unictype/property-zero-width-tests: New file.
53597         * modules/unictype/scripts-tests: New file.
53598         * modules/unictype/syntax-c-ident-tests: New file.
53599         * modules/unictype/syntax-c-whitespace-tests: New file.
53600         * modules/unictype/syntax-java-ident-tests: New file.
53601         * modules/unictype/syntax-java-whitespace-tests: New file.
53602         * tests/unictype/test-bidi_byname.c: New file.
53603         * tests/unictype/test-bidi_name.c: New file.
53604         * tests/unictype/test-bidi_of.c: New file.
53605         * tests/unictype/test-bidi_test.c: New file.
53606         * tests/unictype/test-block_list.c: New file.
53607         * tests/unictype/test-block_of.c: New file.
53608         * tests/unictype/test-block_test.c: New file.
53609         * tests/unictype/test-categ_and.c: New file.
53610         * tests/unictype/test-categ_and_not.c: New file.
53611         * tests/unictype/test-categ_byname.c: New file.
53612         * tests/unictype/test-categ_name.c: New file.
53613         * tests/unictype/test-categ_none.c: New file.
53614         * tests/unictype/test-categ_of.c: New file.
53615         * tests/unictype/test-categ_or.c: New file.
53616         * tests/unictype/test-categ_test_withtable.c: New file.
53617         * tests/unictype/test-combining.c: New file.
53618         * tests/unictype/test-decdigit.c: New file.
53619         * tests/unictype/test-digit.c: New file.
53620         * tests/unictype/test-mirror.c: New file.
53621         * tests/unictype/test-numeric.c: New file.
53622         * tests/unictype/test-pr_byname.c: New file.
53623         * tests/unictype/test-pr_test.c: New file.
53624         * tests/unictype/test-predicate-part1.h: New file.
53625         * tests/unictype/test-predicate-part2.h: New file.
53626         * tests/unictype/test-scripts.c: New file.
53627         * tests/unictype/test-sy_c_ident.c: New file.
53628         * tests/unictype/test-sy_java_ident.c: New file.
53629
53630         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53631         for Unicode 5.0.0.
53632         * tests/unictype/test-categ_Cc.c: Likewise.
53633         * tests/unictype/test-categ_Cf.c: Likewise.
53634         * tests/unictype/test-categ_Cn.c: Likewise.
53635         * tests/unictype/test-categ_Co.c: Likewise.
53636         * tests/unictype/test-categ_Cs.c: Likewise.
53637         * tests/unictype/test-categ_L.c: Likewise.
53638         * tests/unictype/test-categ_Ll.c: Likewise.
53639         * tests/unictype/test-categ_Lm.c: Likewise.
53640         * tests/unictype/test-categ_Lo.c: Likewise.
53641         * tests/unictype/test-categ_Lt.c: Likewise.
53642         * tests/unictype/test-categ_Lu.c: Likewise.
53643         * tests/unictype/test-categ_M.c: Likewise.
53644         * tests/unictype/test-categ_Mc.c: Likewise.
53645         * tests/unictype/test-categ_Me.c: Likewise.
53646         * tests/unictype/test-categ_Mn.c: Likewise.
53647         * tests/unictype/test-categ_N.c: Likewise.
53648         * tests/unictype/test-categ_Nd.c: Likewise.
53649         * tests/unictype/test-categ_Nl.c: Likewise.
53650         * tests/unictype/test-categ_No.c: Likewise.
53651         * tests/unictype/test-categ_P.c: Likewise.
53652         * tests/unictype/test-categ_Pc.c: Likewise.
53653         * tests/unictype/test-categ_Pd.c: Likewise.
53654         * tests/unictype/test-categ_Pe.c: Likewise.
53655         * tests/unictype/test-categ_Pf.c: Likewise.
53656         * tests/unictype/test-categ_Pi.c: Likewise.
53657         * tests/unictype/test-categ_Po.c: Likewise.
53658         * tests/unictype/test-categ_Ps.c: Likewise.
53659         * tests/unictype/test-categ_S.c: Likewise.
53660         * tests/unictype/test-categ_Sc.c: Likewise.
53661         * tests/unictype/test-categ_Sk.c: Likewise.
53662         * tests/unictype/test-categ_Sm.c: Likewise.
53663         * tests/unictype/test-categ_So.c: Likewise.
53664         * tests/unictype/test-categ_Z.c: Likewise.
53665         * tests/unictype/test-categ_Zl.c: Likewise.
53666         * tests/unictype/test-categ_Zp.c: Likewise.
53667         * tests/unictype/test-categ_Zs.c: Likewise.
53668         * tests/unictype/test-ctype_alnum.c: Likewise.
53669         * tests/unictype/test-ctype_alpha.c: Likewise.
53670         * tests/unictype/test-ctype_blank.c: Likewise.
53671         * tests/unictype/test-ctype_cntrl.c: Likewise.
53672         * tests/unictype/test-ctype_digit.c: Likewise.
53673         * tests/unictype/test-ctype_graph.c: Likewise.
53674         * tests/unictype/test-ctype_lower.c: Likewise.
53675         * tests/unictype/test-ctype_print.c: Likewise.
53676         * tests/unictype/test-ctype_punct.c: Likewise.
53677         * tests/unictype/test-ctype_space.c: Likewise.
53678         * tests/unictype/test-ctype_upper.c: Likewise.
53679         * tests/unictype/test-ctype_xdigit.c: Likewise.
53680         * tests/unictype/test-decdigit.h: Likewise.
53681         * tests/unictype/test-digit.h: Likewise.
53682         * tests/unictype/test-numeric.h: Likewise.
53683         * tests/unictype/test-pr_alphabetic.c: Likewise.
53684         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53685         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53686         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53687         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53688         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53689         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53690         * tests/unictype/test-pr_bidi_control.c: Likewise.
53691         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53692         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53693         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53694         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53695         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53696         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53697         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53698         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53699         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53700         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53701         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53702         * tests/unictype/test-pr_combining.c: Likewise.
53703         * tests/unictype/test-pr_composite.c: Likewise.
53704         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53705         * tests/unictype/test-pr_dash.c: Likewise.
53706         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53707         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53708         * tests/unictype/test-pr_deprecated.c: Likewise.
53709         * tests/unictype/test-pr_diacritic.c: Likewise.
53710         * tests/unictype/test-pr_extender.c: Likewise.
53711         * tests/unictype/test-pr_format_control.c: Likewise.
53712         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53713         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53714         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53715         * tests/unictype/test-pr_hex_digit.c: Likewise.
53716         * tests/unictype/test-pr_hyphen.c: Likewise.
53717         * tests/unictype/test-pr_id_continue.c: Likewise.
53718         * tests/unictype/test-pr_id_start.c: Likewise.
53719         * tests/unictype/test-pr_ideographic.c: Likewise.
53720         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53721         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53722         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53723         * tests/unictype/test-pr_iso_control.c: Likewise.
53724         * tests/unictype/test-pr_join_control.c: Likewise.
53725         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53726         * tests/unictype/test-pr_line_separator.c: Likewise.
53727         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53728         * tests/unictype/test-pr_lowercase.c: Likewise.
53729         * tests/unictype/test-pr_math.c: Likewise.
53730         * tests/unictype/test-pr_non_break.c: Likewise.
53731         * tests/unictype/test-pr_not_a_character.c: Likewise.
53732         * tests/unictype/test-pr_numeric.c: Likewise.
53733         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53734         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53735         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53736         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53737         * tests/unictype/test-pr_other_id_start.c: Likewise.
53738         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53739         * tests/unictype/test-pr_other_math.c: Likewise.
53740         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53741         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53742         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53743         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53744         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53745         * tests/unictype/test-pr_private_use.c: Likewise.
53746         * tests/unictype/test-pr_punctuation.c: Likewise.
53747         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53748         * tests/unictype/test-pr_radical.c: Likewise.
53749         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53750         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53751         * tests/unictype/test-pr_space.c: Likewise.
53752         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53753         * tests/unictype/test-pr_titlecase.c: Likewise.
53754         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53755         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53756         * tests/unictype/test-pr_uppercase.c: Likewise.
53757         * tests/unictype/test-pr_variation_selector.c: Likewise.
53758         * tests/unictype/test-pr_white_space.c: Likewise.
53759         * tests/unictype/test-pr_xid_continue.c: Likewise.
53760         * tests/unictype/test-pr_xid_start.c: Likewise.
53761         * tests/unictype/test-pr_zero_width.c: Likewise.
53762         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53763         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53764
53765 2007-11-12  Bruno Haible  <bruno@clisp.org>
53766
53767         Unicode character classification functions.
53768         * lib/unictype.h: New file.
53769         * modules/unictype/base: New file.
53770         * modules/unictype/category-L: New file.
53771         * modules/unictype/category-Lu: New file.
53772         * modules/unictype/category-Ll: New file.
53773         * modules/unictype/category-Lt: New file.
53774         * modules/unictype/category-Lm: New file.
53775         * modules/unictype/category-Lo: New file.
53776         * modules/unictype/category-M: New file.
53777         * modules/unictype/category-Mn: New file.
53778         * modules/unictype/category-Mc: New file.
53779         * modules/unictype/category-Me: New file.
53780         * modules/unictype/category-N: New file.
53781         * modules/unictype/category-Nd: New file.
53782         * modules/unictype/category-Nl: New file.
53783         * modules/unictype/category-No: New file.
53784         * modules/unictype/category-P: New file.
53785         * modules/unictype/category-Pc: New file.
53786         * modules/unictype/category-Pd: New file.
53787         * modules/unictype/category-Ps: New file.
53788         * modules/unictype/category-Pe: New file.
53789         * modules/unictype/category-Pi: New file.
53790         * modules/unictype/category-Pf: New file.
53791         * modules/unictype/category-Po: New file.
53792         * modules/unictype/category-S: New file.
53793         * modules/unictype/category-Sm: New file.
53794         * modules/unictype/category-Sc: New file.
53795         * modules/unictype/category-Sk: New file.
53796         * modules/unictype/category-So: New file.
53797         * modules/unictype/category-Z: New file.
53798         * modules/unictype/category-Zs: New file.
53799         * modules/unictype/category-Zl: New file.
53800         * modules/unictype/category-Zp: New file.
53801         * modules/unictype/category-C: New file.
53802         * modules/unictype/category-Cc: New file.
53803         * modules/unictype/category-Cf: New file.
53804         * modules/unictype/category-Cs: New file.
53805         * modules/unictype/category-Co: New file.
53806         * modules/unictype/category-Cn: New file.
53807         * modules/unictype/category-or: New file.
53808         * modules/unictype/category-of: New file.
53809         * modules/unictype/category-test: New file.
53810         * modules/unictype/category-test-withtable: New file.
53811         * modules/unictype/category-byname: New file.
53812         * modules/unictype/category-none: New file.
53813         * modules/unictype/category-and: New file.
53814         * modules/unictype/category-and-not: New file.
53815         * modules/unictype/category-name: New file.
53816         * modules/unictype/combining-class: New file.
53817         * modules/unictype/category-all: New file.
53818         * modules/unictype/bidicategory-all: New file.
53819         * modules/unictype/bidicategory-byname: New file.
53820         * modules/unictype/bidicategory-name: New file.
53821         * modules/unictype/bidicategory-of: New file.
53822         * modules/unictype/bidicategory-test: New file.
53823         * modules/unictype/decimal-digit: New file.
53824         * modules/unictype/digit: New file.
53825         * modules/unictype/numeric: New file.
53826         * modules/unictype/mirror: New file.
53827         * modules/unictype/property-white-space: New file.
53828         * modules/unictype/property-alphabetic: New file.
53829         * modules/unictype/property-other-alphabetic: New file.
53830         * modules/unictype/property-not-a-character: New file.
53831         * modules/unictype/property-default-ignorable-code-point: New file.
53832         * modules/unictype/property-other-default-ignorable-code-point: New
53833         file.
53834         * modules/unictype/property-deprecated: New file.
53835         * modules/unictype/property-logical-order-exception: New file.
53836         * modules/unictype/property-variation-selector: New file.
53837         * modules/unictype/property-private-use: New file.
53838         * modules/unictype/property-unassigned-code-value: New file.
53839         * modules/unictype/property-uppercase: New file.
53840         * modules/unictype/property-other-uppercase: New file.
53841         * modules/unictype/property-lowercase: New file.
53842         * modules/unictype/property-other-lowercase: New file.
53843         * modules/unictype/property-titlecase: New file.
53844         * modules/unictype/property-soft-dotted: New file.
53845         * modules/unictype/property-id-start: New file.
53846         * modules/unictype/property-other-id-start: New file.
53847         * modules/unictype/property-id-continue: New file.
53848         * modules/unictype/property-other-id-continue: New file.
53849         * modules/unictype/property-xid-start: New file.
53850         * modules/unictype/property-xid-continue: New file.
53851         * modules/unictype/property-pattern-white-space: New file.
53852         * modules/unictype/property-pattern-syntax: New file.
53853         * modules/unictype/property-join-control: New file.
53854         * modules/unictype/property-grapheme-base: New file.
53855         * modules/unictype/property-grapheme-extend: New file.
53856         * modules/unictype/property-other-grapheme-extend: New file.
53857         * modules/unictype/property-grapheme-link: New file.
53858         * modules/unictype/property-bidi-control: New file.
53859         * modules/unictype/property-bidi-left-to-right: New file.
53860         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53861         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53862         * modules/unictype/property-bidi-european-digit: New file.
53863         * modules/unictype/property-bidi-eur-num-separator: New file.
53864         * modules/unictype/property-bidi-eur-num-terminator: New file.
53865         * modules/unictype/property-bidi-arabic-digit: New file.
53866         * modules/unictype/property-bidi-common-separator: New file.
53867         * modules/unictype/property-bidi-block-separator: New file.
53868         * modules/unictype/property-bidi-segment-separator: New file.
53869         * modules/unictype/property-bidi-whitespace: New file.
53870         * modules/unictype/property-bidi-non-spacing-mark: New file.
53871         * modules/unictype/property-bidi-boundary-neutral: New file.
53872         * modules/unictype/property-bidi-pdf: New file.
53873         * modules/unictype/property-bidi-embedding-or-override: New file.
53874         * modules/unictype/property-bidi-other-neutral: New file.
53875         * modules/unictype/property-hex-digit: New file.
53876         * modules/unictype/property-ascii-hex-digit: New file.
53877         * modules/unictype/property-ideographic: New file.
53878         * modules/unictype/property-unified-ideograph: New file.
53879         * modules/unictype/property-radical: New file.
53880         * modules/unictype/property-ids-binary-operator: New file.
53881         * modules/unictype/property-ids-trinary-operator: New file.
53882         * modules/unictype/property-zero-width: New file.
53883         * modules/unictype/property-space: New file.
53884         * modules/unictype/property-non-break: New file.
53885         * modules/unictype/property-iso-control: New file.
53886         * modules/unictype/property-format-control: New file.
53887         * modules/unictype/property-dash: New file.
53888         * modules/unictype/property-hyphen: New file.
53889         * modules/unictype/property-punctuation: New file.
53890         * modules/unictype/property-line-separator: New file.
53891         * modules/unictype/property-paragraph-separator: New file.
53892         * modules/unictype/property-quotation-mark: New file.
53893         * modules/unictype/property-sentence-terminal: New file.
53894         * modules/unictype/property-terminal-punctuation: New file.
53895         * modules/unictype/property-currency-symbol: New file.
53896         * modules/unictype/property-math: New file.
53897         * modules/unictype/property-other-math: New file.
53898         * modules/unictype/property-paired-punctuation: New file.
53899         * modules/unictype/property-left-of-pair: New file.
53900         * modules/unictype/property-combining: New file.
53901         * modules/unictype/property-composite: New file.
53902         * modules/unictype/property-decimal-digit: New file.
53903         * modules/unictype/property-numeric: New file.
53904         * modules/unictype/property-diacritic: New file.
53905         * modules/unictype/property-extender: New file.
53906         * modules/unictype/property-ignorable-control: New file.
53907         * modules/unictype/property-test: New file.
53908         * modules/unictype/property-byname: New file.
53909         * modules/unictype/property-all: New file.
53910         * modules/unictype/scripts: New file.
53911         * modules/unictype/scripts-all: New file.
53912         * modules/unictype/block-of: New file.
53913         * modules/unictype/block-test: New file.
53914         * modules/unictype/block-list: New file.
53915         * modules/unictype/block-all: New file.
53916         * modules/unictype/syntax-c-whitespace: New file.
53917         * modules/unictype/syntax-java-whitespace: New file.
53918         * modules/unictype/syntax-c-ident: New file.
53919         * modules/unictype/syntax-java-ident: New file.
53920         * modules/unictype/ctype-alnum: New file.
53921         * modules/unictype/ctype-alpha: New file.
53922         * modules/unictype/ctype-cntrl: New file.
53923         * modules/unictype/ctype-digit: New file.
53924         * modules/unictype/ctype-graph: New file.
53925         * modules/unictype/ctype-lower: New file.
53926         * modules/unictype/ctype-print: New file.
53927         * modules/unictype/ctype-punct: New file.
53928         * modules/unictype/ctype-space: New file.
53929         * modules/unictype/ctype-upper: New file.
53930         * modules/unictype/ctype-xdigit: New file.
53931         * modules/unictype/ctype-blank: New file.
53932         * lib/unictype/bidi_byname.c: New file.
53933         * lib/unictype/bidi_name.c: New file.
53934         * lib/unictype/bidi_of.c: New file.
53935         * lib/unictype/bidi_test.c: New file.
53936         * lib/unictype/bitmap.h: New file.
53937         * lib/unictype/block_test.c: New file.
53938         * lib/unictype/blocks.c: New file.
53939         * lib/unictype/categ_C.c: New file.
53940         * lib/unictype/categ_Cc.c: New file.
53941         * lib/unictype/categ_Cf.c: New file.
53942         * lib/unictype/categ_Cn.c: New file.
53943         * lib/unictype/categ_Co.c: New file.
53944         * lib/unictype/categ_Cs.c: New file.
53945         * lib/unictype/categ_L.c: New file.
53946         * lib/unictype/categ_Ll.c: New file.
53947         * lib/unictype/categ_Lm.c: New file.
53948         * lib/unictype/categ_Lo.c: New file.
53949         * lib/unictype/categ_Lt.c: New file.
53950         * lib/unictype/categ_Lu.c: New file.
53951         * lib/unictype/categ_M.c: New file.
53952         * lib/unictype/categ_Mc.c: New file.
53953         * lib/unictype/categ_Me.c: New file.
53954         * lib/unictype/categ_Mn.c: New file.
53955         * lib/unictype/categ_N.c: New file.
53956         * lib/unictype/categ_Nd.c: New file.
53957         * lib/unictype/categ_Nl.c: New file.
53958         * lib/unictype/categ_No.c: New file.
53959         * lib/unictype/categ_P.c: New file.
53960         * lib/unictype/categ_Pc.c: New file.
53961         * lib/unictype/categ_Pd.c: New file.
53962         * lib/unictype/categ_Pe.c: New file.
53963         * lib/unictype/categ_Pf.c: New file.
53964         * lib/unictype/categ_Pi.c: New file.
53965         * lib/unictype/categ_Po.c: New file.
53966         * lib/unictype/categ_Ps.c: New file.
53967         * lib/unictype/categ_S.c: New file.
53968         * lib/unictype/categ_Sc.c: New file.
53969         * lib/unictype/categ_Sk.c: New file.
53970         * lib/unictype/categ_Sm.c: New file.
53971         * lib/unictype/categ_So.c: New file.
53972         * lib/unictype/categ_Z.c: New file.
53973         * lib/unictype/categ_Zl.c: New file.
53974         * lib/unictype/categ_Zp.c: New file.
53975         * lib/unictype/categ_Zs.c: New file.
53976         * lib/unictype/categ_and.c: New file.
53977         * lib/unictype/categ_and_not.c: New file.
53978         * lib/unictype/categ_byname.c: New file.
53979         * lib/unictype/categ_name.c: New file.
53980         * lib/unictype/categ_none.c: New file.
53981         * lib/unictype/categ_of.c: New file.
53982         * lib/unictype/categ_or.c: New file.
53983         * lib/unictype/categ_test.c: New file.
53984         * lib/unictype/combining.c: New file.
53985         * lib/unictype/ctype_alnum.c: New file.
53986         * lib/unictype/ctype_alpha.c: New file.
53987         * lib/unictype/ctype_blank.c: New file.
53988         * lib/unictype/ctype_cntrl.c: New file.
53989         * lib/unictype/ctype_digit.c: New file.
53990         * lib/unictype/ctype_graph.c: New file.
53991         * lib/unictype/ctype_lower.c: New file.
53992         * lib/unictype/ctype_print.c: New file.
53993         * lib/unictype/ctype_punct.c: New file.
53994         * lib/unictype/ctype_space.c: New file.
53995         * lib/unictype/ctype_upper.c: New file.
53996         * lib/unictype/ctype_xdigit.c: New file.
53997         * lib/unictype/decdigit.c: New file.
53998         * lib/unictype/digit.c: New file.
53999         * lib/unictype/identsyntaxmap.h: New file.
54000         * lib/unictype/mirror.c: New file.
54001         * lib/unictype/numeric.c: New file.
54002         * lib/unictype/pr_alphabetic.c: New file.
54003         * lib/unictype/pr_ascii_hex_digit.c: New file.
54004         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54005         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54006         * lib/unictype/pr_bidi_block_separator.c: New file.
54007         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54008         * lib/unictype/pr_bidi_common_separator.c: New file.
54009         * lib/unictype/pr_bidi_control.c: New file.
54010         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54011         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54012         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54013         * lib/unictype/pr_bidi_european_digit.c: New file.
54014         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54015         * lib/unictype/pr_bidi_left_to_right.c: New file.
54016         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54017         * lib/unictype/pr_bidi_other_neutral.c: New file.
54018         * lib/unictype/pr_bidi_pdf.c: New file.
54019         * lib/unictype/pr_bidi_segment_separator.c: New file.
54020         * lib/unictype/pr_bidi_whitespace.c: New file.
54021         * lib/unictype/pr_byname.c: New file.
54022         * lib/unictype/pr_byname.gperf: New file.
54023         * lib/unictype/pr_combining.c: New file.
54024         * lib/unictype/pr_composite.c: New file.
54025         * lib/unictype/pr_currency_symbol.c: New file.
54026         * lib/unictype/pr_dash.c: New file.
54027         * lib/unictype/pr_decimal_digit.c: New file.
54028         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54029         * lib/unictype/pr_deprecated.c: New file.
54030         * lib/unictype/pr_diacritic.c: New file.
54031         * lib/unictype/pr_extender.c: New file.
54032         * lib/unictype/pr_format_control.c: New file.
54033         * lib/unictype/pr_grapheme_base.c: New file.
54034         * lib/unictype/pr_grapheme_extend.c: New file.
54035         * lib/unictype/pr_grapheme_link.c: New file.
54036         * lib/unictype/pr_hex_digit.c: New file.
54037         * lib/unictype/pr_hyphen.c: New file.
54038         * lib/unictype/pr_id_continue.c: New file.
54039         * lib/unictype/pr_id_start.c: New file.
54040         * lib/unictype/pr_ideographic.c: New file.
54041         * lib/unictype/pr_ids_binary_operator.c: New file.
54042         * lib/unictype/pr_ids_trinary_operator.c: New file.
54043         * lib/unictype/pr_ignorable_control.c: New file.
54044         * lib/unictype/pr_iso_control.c: New file.
54045         * lib/unictype/pr_join_control.c: New file.
54046         * lib/unictype/pr_left_of_pair.c: New file.
54047         * lib/unictype/pr_line_separator.c: New file.
54048         * lib/unictype/pr_logical_order_exception.c: New file.
54049         * lib/unictype/pr_lowercase.c: New file.
54050         * lib/unictype/pr_math.c: New file.
54051         * lib/unictype/pr_non_break.c: New file.
54052         * lib/unictype/pr_not_a_character.c: New file.
54053         * lib/unictype/pr_numeric.c: New file.
54054         * lib/unictype/pr_other_alphabetic.c: New file.
54055         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54056         * lib/unictype/pr_other_grapheme_extend.c: New file.
54057         * lib/unictype/pr_other_id_continue.c: New file.
54058         * lib/unictype/pr_other_id_start.c: New file.
54059         * lib/unictype/pr_other_lowercase.c: New file.
54060         * lib/unictype/pr_other_math.c: New file.
54061         * lib/unictype/pr_other_uppercase.c: New file.
54062         * lib/unictype/pr_paired_punctuation.c: New file.
54063         * lib/unictype/pr_paragraph_separator.c: New file.
54064         * lib/unictype/pr_pattern_syntax.c: New file.
54065         * lib/unictype/pr_pattern_white_space.c: New file.
54066         * lib/unictype/pr_private_use.c: New file.
54067         * lib/unictype/pr_punctuation.c: New file.
54068         * lib/unictype/pr_quotation_mark.c: New file.
54069         * lib/unictype/pr_radical.c: New file.
54070         * lib/unictype/pr_sentence_terminal.c: New file.
54071         * lib/unictype/pr_soft_dotted.c: New file.
54072         * lib/unictype/pr_space.c: New file.
54073         * lib/unictype/pr_terminal_punctuation.c: New file.
54074         * lib/unictype/pr_test.c: New file.
54075         * lib/unictype/pr_titlecase.c: New file.
54076         * lib/unictype/pr_unassigned_code_value.c: New file.
54077         * lib/unictype/pr_unified_ideograph.c: New file.
54078         * lib/unictype/pr_uppercase.c: New file.
54079         * lib/unictype/pr_variation_selector.c: New file.
54080         * lib/unictype/pr_white_space.c: New file.
54081         * lib/unictype/pr_xid_continue.c: New file.
54082         * lib/unictype/pr_xid_start.c: New file.
54083         * lib/unictype/pr_zero_width.c: New file.
54084         * lib/unictype/scripts.c: New file.
54085         * lib/unictype/sy_c_ident.c: New file.
54086         * lib/unictype/sy_c_whitespace.c: New file.
54087         * lib/unictype/sy_java_ident.c: New file.
54088         * lib/unictype/sy_java_whitespace.c: New file.
54089
54090         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54091         Unicode 5.0.0.
54092         * lib/unictype/blocks.h: Likewise.
54093         * lib/unictype/categ_C.h: Likewise.
54094         * lib/unictype/categ_Cc.h: Likewise.
54095         * lib/unictype/categ_Cf.h: Likewise.
54096         * lib/unictype/categ_Cn.h: Likewise.
54097         * lib/unictype/categ_Co.h: Likewise.
54098         * lib/unictype/categ_Cs.h: Likewise.
54099         * lib/unictype/categ_L.h: Likewise.
54100         * lib/unictype/categ_Ll.h: Likewise.
54101         * lib/unictype/categ_Lm.h: Likewise.
54102         * lib/unictype/categ_Lo.h: Likewise.
54103         * lib/unictype/categ_Lt.h: Likewise.
54104         * lib/unictype/categ_Lu.h: Likewise.
54105         * lib/unictype/categ_M.h: Likewise.
54106         * lib/unictype/categ_Mc.h: Likewise.
54107         * lib/unictype/categ_Me.h: Likewise.
54108         * lib/unictype/categ_Mn.h: Likewise.
54109         * lib/unictype/categ_N.h: Likewise.
54110         * lib/unictype/categ_Nd.h: Likewise.
54111         * lib/unictype/categ_Nl.h: Likewise.
54112         * lib/unictype/categ_No.h: Likewise.
54113         * lib/unictype/categ_P.h: Likewise.
54114         * lib/unictype/categ_Pc.h: Likewise.
54115         * lib/unictype/categ_Pd.h: Likewise.
54116         * lib/unictype/categ_Pe.h: Likewise.
54117         * lib/unictype/categ_Pf.h: Likewise.
54118         * lib/unictype/categ_Pi.h: Likewise.
54119         * lib/unictype/categ_Po.h: Likewise.
54120         * lib/unictype/categ_Ps.h: Likewise.
54121         * lib/unictype/categ_S.h: Likewise.
54122         * lib/unictype/categ_Sc.h: Likewise.
54123         * lib/unictype/categ_Sk.h: Likewise.
54124         * lib/unictype/categ_Sm.h: Likewise.
54125         * lib/unictype/categ_So.h: Likewise.
54126         * lib/unictype/categ_Z.h: Likewise.
54127         * lib/unictype/categ_Zl.h: Likewise.
54128         * lib/unictype/categ_Zp.h: Likewise.
54129         * lib/unictype/categ_Zs.h: Likewise.
54130         * lib/unictype/categ_of.h: Likewise.
54131         * lib/unictype/combining.h: Likewise.
54132         * lib/unictype/ctype_alnum.h: Likewise.
54133         * lib/unictype/ctype_alpha.h: Likewise.
54134         * lib/unictype/ctype_blank.h: Likewise.
54135         * lib/unictype/ctype_cntrl.h: Likewise.
54136         * lib/unictype/ctype_digit.h: Likewise.
54137         * lib/unictype/ctype_graph.h: Likewise.
54138         * lib/unictype/ctype_lower.h: Likewise.
54139         * lib/unictype/ctype_print.h: Likewise.
54140         * lib/unictype/ctype_punct.h: Likewise.
54141         * lib/unictype/ctype_space.h: Likewise.
54142         * lib/unictype/ctype_upper.h: Likewise.
54143         * lib/unictype/ctype_xdigit.h: Likewise.
54144         * lib/unictype/decdigit.h: Likewise.
54145         * lib/unictype/digit.h: Likewise.
54146         * lib/unictype/mirror.h: Likewise.
54147         * lib/unictype/numeric.h: Likewise.
54148         * lib/unictype/pr_alphabetic.h: Likewise.
54149         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54150         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54151         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54152         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54153         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54154         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54155         * lib/unictype/pr_bidi_control.h: Likewise.
54156         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54157         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54158         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54159         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54160         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54161         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54162         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54163         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54164         * lib/unictype/pr_bidi_pdf.h: Likewise.
54165         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54166         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54167         * lib/unictype/pr_combining.h: Likewise.
54168         * lib/unictype/pr_composite.h: Likewise.
54169         * lib/unictype/pr_currency_symbol.h: Likewise.
54170         * lib/unictype/pr_dash.h: Likewise.
54171         * lib/unictype/pr_decimal_digit.h: Likewise.
54172         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54173         * lib/unictype/pr_deprecated.h: Likewise.
54174         * lib/unictype/pr_diacritic.h: Likewise.
54175         * lib/unictype/pr_extender.h: Likewise.
54176         * lib/unictype/pr_format_control.h: Likewise.
54177         * lib/unictype/pr_grapheme_base.h: Likewise.
54178         * lib/unictype/pr_grapheme_extend.h: Likewise.
54179         * lib/unictype/pr_grapheme_link.h: Likewise.
54180         * lib/unictype/pr_hex_digit.h: Likewise.
54181         * lib/unictype/pr_hyphen.h: Likewise.
54182         * lib/unictype/pr_id_continue.h: Likewise.
54183         * lib/unictype/pr_id_start.h: Likewise.
54184         * lib/unictype/pr_ideographic.h: Likewise.
54185         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54186         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54187         * lib/unictype/pr_ignorable_control.h: Likewise.
54188         * lib/unictype/pr_iso_control.h: Likewise.
54189         * lib/unictype/pr_join_control.h: Likewise.
54190         * lib/unictype/pr_left_of_pair.h: Likewise.
54191         * lib/unictype/pr_line_separator.h: Likewise.
54192         * lib/unictype/pr_logical_order_exception.h: Likewise.
54193         * lib/unictype/pr_lowercase.h: Likewise.
54194         * lib/unictype/pr_math.h: Likewise.
54195         * lib/unictype/pr_non_break.h: Likewise.
54196         * lib/unictype/pr_not_a_character.h: Likewise.
54197         * lib/unictype/pr_numeric.h: Likewise.
54198         * lib/unictype/pr_other_alphabetic.h: Likewise.
54199         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54200         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54201         * lib/unictype/pr_other_id_continue.h: Likewise.
54202         * lib/unictype/pr_other_id_start.h: Likewise.
54203         * lib/unictype/pr_other_lowercase.h: Likewise.
54204         * lib/unictype/pr_other_math.h: Likewise.
54205         * lib/unictype/pr_other_uppercase.h: Likewise.
54206         * lib/unictype/pr_paired_punctuation.h: Likewise.
54207         * lib/unictype/pr_paragraph_separator.h: Likewise.
54208         * lib/unictype/pr_pattern_syntax.h: Likewise.
54209         * lib/unictype/pr_pattern_white_space.h: Likewise.
54210         * lib/unictype/pr_private_use.h: Likewise.
54211         * lib/unictype/pr_punctuation.h: Likewise.
54212         * lib/unictype/pr_quotation_mark.h: Likewise.
54213         * lib/unictype/pr_radical.h: Likewise.
54214         * lib/unictype/pr_sentence_terminal.h: Likewise.
54215         * lib/unictype/pr_soft_dotted.h: Likewise.
54216         * lib/unictype/pr_space.h: Likewise.
54217         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54218         * lib/unictype/pr_titlecase.h: Likewise.
54219         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54220         * lib/unictype/pr_unified_ideograph.h: Likewise.
54221         * lib/unictype/pr_uppercase.h: Likewise.
54222         * lib/unictype/pr_variation_selector.h: Likewise.
54223         * lib/unictype/pr_white_space.h: Likewise.
54224         * lib/unictype/pr_xid_continue.h: Likewise.
54225         * lib/unictype/pr_xid_start.h: Likewise.
54226         * lib/unictype/pr_zero_width.h: Likewise.
54227         * lib/unictype/scripts.h: Likewise.
54228         * lib/unictype/scripts_byname.gperf: Likewise.
54229         * lib/unictype/sy_c_ident.h: Likewise.
54230         * lib/unictype/sy_c_whitespace.h: Likewise.
54231         * lib/unictype/sy_java_ident.h: Likewise.
54232         * lib/unictype/sy_java_whitespace.h: Likewise.
54233
54234         * lib/unictype/Makefile: New file.
54235         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54236         glibc.
54237         * lib/unictype/3level.h: New file, copied from glibc.
54238         * lib/unictype/3levelbit.h: New file.
54239
54240 2007-11-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * modules/gperf: New file.
54243         * modules/iconv_open (Depends-on): Add it.
54244         (Makefile.am): Remove the GPERF definition.
54245
54246 2007-11-11  Bruno Haible  <bruno@clisp.org>
54247
54248         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54249         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54250
54251 2007-11-11  Bruno Haible  <bruno@clisp.org>
54252
54253         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54254         (usage): Remove function.
54255
54256 2007-11-11  Bruno Haible  <bruno@clisp.org>
54257
54258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54259         gl_FUNC_CEILF_LIBS.
54260         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54261         gl_FUNC_CEIL_LIBS.
54262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54263         gl_FUNC_CEILL_LIBS.
54264         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54265         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54266         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54267
54268 2007-11-11  Bruno Haible  <bruno@clisp.org>
54269
54270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54271         roundf were declared but do not exist on functions.
54272         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54273         roundl were declared but do not exist on functions.
54274         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54275         HAVE_FLOORL_AND_CEILL, respectively.
54276         Needed for Sun C on Solaris 10.
54277
54278 2007-11-11  Bruno Haible  <bruno@clisp.org>
54279
54280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54281         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54282         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54283         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54285         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54286         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54287         HAVE_DECL_ROUNDF.
54288         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54289         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54291         of HAVE_DECL_ROUND*.
54292         * modules/math (Makefile.am): Update.
54293
54294 2007-11-10  Bruno Haible  <bruno@clisp.org>
54295
54296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54297         ptrdiff_t as m4/intl.m4.
54298
54299 2007-11-10  Jim Meyering  <meyering@redhat.com>
54300
54301         Avoid link failure for the argmatch test.
54302         * tests/test-argmatch.c (usage): Define function to avoid a link
54303         failure: argmatch_die requires a usage function.
54304
54305 2007-11-09  Bruno Haible  <bruno@clisp.org>
54306
54307         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54308         * doc/functions/vsnprintf.texi: Likewise.
54309         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54310         with a size argument < 2.
54311
54312 2007-11-09  Bruno Haible  <bruno@clisp.org>
54313
54314         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54315         buffer. Fixes an inefficiency introduced on 2007-11-03.
54316
54317 2007-11-09  Bruno Haible  <bruno@clisp.org>
54318
54319         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54320         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54321
54322 2007-11-08  Jim Meyering  <meyering@redhat.com>
54323
54324         Change cache variable name prefix "jm_" to "gl_" everywhere.
54325         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54326         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54327         * m4/uptime.m4: s/gl_/jm_/
54328
54329 2007-11-07  Bruno Haible  <bruno@clisp.org>
54330
54331         Update to GNU gettext 0.17.
54332         * m4/intl.m4: Update to GNU gettext 0.17.
54333         * m4/po.m4: Likewise.
54334         * modules/gettext (Files): Remove m4/ulonglong.m4.
54335         (configure.ac): Require gettext infrastructure from version 0.17.
54336
54337 2007-11-06  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54340         symbolic values are not defined in a public header.
54341         * lib/freadable.c (freadable) [QNX]: Likewise.
54342         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54343         * lib/freading.c (freading) [QNX]: Likewise.
54344         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54345         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54346         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54347         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54348         Reported by Alain Magloire.
54349
54350         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54351
54352 2007-11-05  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54355         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54356         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54357         Reported by Eric Blake.
54358
54359 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54360             Bruno Haible  <bruno@clisp.org>
54361
54362         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54363         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54364         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54365         (malloc): Undefine also before including <stdlib.h>.
54366         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54367         Needed on OSF/1 4.0.
54368
54369 2007-11-05  Jim Meyering  <meyering@redhat.com>
54370
54371         git-version-gen: sync from coreutils.
54372         * build-aux/git-version-gen: Add comments.
54373         Change the first '-' to '.' in the snapshot version string,
54374         e.g., 6.9-377-08144 -> 6.9.377-08144
54375         Remove first parameter.
54376         Don't declare a version "-dirty" merely because a time
54377         stamp has changed.
54378
54379 2007-11-04  Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/lock.h: Protect all macro definitions containing an 'if'
54382         statement through a "do { ... } while (0)".
54383         * lib/tls.h: Likewise.
54384
54385 2007-11-04  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54388
54389 2007-11-04  Bruno Haible  <bruno@clisp.org>
54390
54391         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54392         * modules/fprintf-posix (Depends-on): Add nocrash.
54393         * modules/snprintf-posix (Depends-on): Likewise.
54394         * modules/sprintf-posix (Depends-on): Likewise.
54395         * modules/vasnprintf-posix (Depends-on): Likewise.
54396         * modules/vasprintf-posix (Depends-on): Likewise.
54397         * modules/vfprintf-posix (Depends-on): Likewise.
54398         * modules/vsnprintf-posix (Depends-on): Likewise.
54399         * modules/vsprintf-posix (Depends-on): Likewise.
54400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54407
54408 2007-11-04  Bruno Haible  <bruno@clisp.org>
54409
54410         * modules/nocrash: New file.
54411         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54412         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54413
54414 2007-11-04  Bruno Haible  <bruno@clisp.org>
54415
54416         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54417         precision handling.
54418         * tests/test-vasprintf-posix.c (test_function): Likewise.
54419         * tests/test-snprintf-posix.h (test_function): Likewise.
54420         * tests/test-sprintf-posix.h (test_function): Likewise.
54421
54422         Fix *printf behaviour for large precisions on mingw and BeOS.
54423         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54424         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54426         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54428         gl_PRINTF_PRECISION and test its result. Invoke
54429         gl_PREREQ_VASNPRINTF_PRECISION.
54430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54437         * doc/functions/fprintf.texi: Update.
54438         * doc/functions/printf.texi: Update.
54439         * doc/functions/snprintf.texi: Update.
54440         * doc/functions/sprintf.texi: Update.
54441         * doc/functions/vfprintf.texi: Update.
54442         * doc/functions/vprintf.texi: Update.
54443         * doc/functions/vsnprintf.texi: Update.
54444         * doc/functions/vsprintf.texi: Update.
54445
54446 2007-11-04  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54449
54450 2007-11-04  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54453         Reported by Sylvain Beucler <beuc@gnu.org>.
54454
54455 2007-11-03  Bruno Haible  <bruno@clisp.org>
54456
54457         * tests/test-fprintf-posix2.sh: New file.
54458         * tests/test-fprintf-posix2.c: New file.
54459         * modules/fprintf-posix-tests (Files): Add them.
54460         (TESTS): Add test-fprintf-posix2.sh.
54461         (configure.ac): Check for getrlimit and setrlimit.
54462         (check_PROGRAMS): Add test-fprintf-posix2.
54463
54464         * tests/test-printf-posix2.sh: New file.
54465         * tests/test-printf-posix2.c: New file.
54466         * modules/printf-posix-tests (Files): Add them.
54467         (TESTS): Add test-printf-posix2.sh.
54468         (configure.ac): Check for getrlimit and setrlimit.
54469         (check_PROGRAMS): Add test-printf-posix2.
54470
54471         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54472         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54473         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54474         (decode_double): New function, copied from decode_long_double.
54475         (scale10_round_decimal_decoded): New function, extracted from
54476         scale10_round_decimal_long_double.
54477         (scale10_round_decimal_long_double): Use it.
54478         (scale10_round_decimal_double): New function.
54479         (floorlog10): New function.
54480         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54482         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54484         gl_PRINTF_ENOMEM and test its result. Invoke
54485         gl_PREREQ_VASNPRINTF_ENOMEM.
54486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54490         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54493         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54494         * modules/snprintf-posix (Depends-on): Likewise.
54495         * modules/sprintf-posix (Depends-on): Likewise.
54496         * modules/vasnprintf-posix (Depends-on): Likewise.
54497         * modules/vasprintf-posix (Depends-on): Likewise.
54498         * modules/vfprintf-posix (Depends-on): Likewise.
54499         * modules/vsnprintf-posix (Depends-on): Likewise.
54500         * modules/vsprintf-posix (Depends-on): Likewise.
54501         * doc/functions/fprintf.texi: Update.
54502         * doc/functions/printf.texi: Update.
54503         * doc/functions/snprintf.texi: Update.
54504         * doc/functions/sprintf.texi: Update.
54505         * doc/functions/vfprintf.texi: Update.
54506         * doc/functions/vprintf.texi: Update.
54507         * doc/functions/vsnprintf.texi: Update.
54508         * doc/functions/vsprintf.texi: Update.
54509
54510 2007-11-03  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/frexp-nolibm-tests: New file.
54513
54514         * modules/frexp-nolibm: New file.
54515         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54516
54517 2007-11-03  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54520         value is C99 compliant.
54521         Needed for OSF/1 5.1.
54522
54523 2007-11-03  Bruno Haible  <bruno@clisp.org>
54524
54525         Fix out-of-memory handling of vasnprintf.
54526         * lib/printf-parse.c: Include <errno.h>.
54527         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54528         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54529         is already set.
54530
54531 2007-11-02  Eric Blake  <ebb9@byu.net>
54532
54533         Fix tests on cygwin.
54534         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54535
54536 2007-11-01  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54539         warning.
54540         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54541         needed for POSIX compatibility.
54542
54543 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54544
54545         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54546         for compatibility with GNU.
54547
54548 2007-11-01  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54551         (putenv): Renamed from rpl_putenv. Change argument type from
54552         'const char *' to 'char *'.
54553         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54554         of defining putenv in config.h, just set REPLACE_PUTENV.
54555         * modules/putenv (Depends-on): Add stdlib.
54556         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54557         (Include): Use <stdlib.h>.
54558         * lib/stdlib.in.h (putenv): New declaration.
54559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54560         REPLACE_PUTENV.
54561         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54562         REPLACE_PUTENV.
54563         Needed for MacOS X 10.5.0.
54564         Reported by Peter O'Gorman <peter@pogma.com>.
54565
54566 2007-11-01  Jim Meyering  <meyering@redhat.com>
54567
54568         Treat an empty date string exactly like "0".
54569         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54570         if the remaining date string (to be parsed) is empty, use "0".
54571         Reported by Mischa Molhoek and discussed in this thread:
54572         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54573
54574 2007-10-31  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54577         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54578         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54579         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54580         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54581         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54582
54583 2007-10-31  Bruno Haible  <bruno@clisp.org>
54584
54585         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54586         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54587         (AC_TYPE_LONG_LONG_INT): Use it.
54588         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54589         it as well.
54590         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54591         to m4/longlong.m4.
54592         * modules/stdint (Files): Remove m4/ulonglong.m4.
54593         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54594         m4/ulonglong.m4.
54595         * modules/strtoumax (Files): Likewise.
54596
54597 2007-10-30  Bruno Haible  <bruno@clisp.org>
54598
54599         * modules/xvasprintf-posix: New file.
54600         Suggested by Eric Blake.
54601
54602 2007-10-30  Bruno Haible  <bruno@clisp.org>
54603
54604         * modules/xprintf-posix-tests: New file.
54605         * tests/test-xprintf-posix.sh: New file.
54606         * tests/test-xprintf-posix.c: New file.
54607         * tests/test-xfprintf-posix.c: New file.
54608
54609         * modules/xprintf-posix: New file.
54610
54611 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54612
54613         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54614         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54615         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54616
54617 2007-10-29  Bruno Haible  <bruno@clisp.org>
54618
54619         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54620         contain the special marker '_cv_'.
54621         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54624         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54625         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54626         Reported by Ralf Wildenhues.
54627
54628 2007-10-29  Bruno Haible  <bruno@clisp.org>
54629
54630         * gnulib-tool (func_import): When --lgpl is not specified, set
54631         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54632         GPLv3.
54633         Reported by Simon Josefsson.
54634
54635 2007-10-28  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54638         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54639         HAVE_DECL_ISFINITE.
54640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54641         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54642         HAVE_DECL_ISFINITE.
54643
54644 2007-10-28  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54647         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54648
54649 2007-10-28  Bruno Haible  <bruno@clisp.org>
54650
54651         Fix link errors with Sun C 5.0 on Solaris 10.
54652         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54653         function is declared but not present in the compiler's libm.
54654         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54655         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54656         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54657         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54658         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54659         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54660         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54662         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54663         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54664         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54665         HAVE_DECL_FLOORL.
54666
54667 2007-10-28  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54670         gl_FUNC_FLOORL. Cache the result.
54671         (gl_FUNC_FLOORL): Use it.
54672         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54673         gl_FUNC_CEILL. Cache the result.
54674         (gl_FUNC_CEILL): Use it.
54675
54676         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54677         gl_FUNC_FLOOR. Cache the result.
54678         (gl_FUNC_FLOOR): Use it.
54679         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54680         gl_FUNC_CEIL. Cache the result.
54681         (gl_FUNC_CEIL): Use it.
54682
54683         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54684         gl_FUNC_FLOORF. Cache the result.
54685         (gl_FUNC_FLOORF): Use it.
54686         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54687         gl_FUNC_CEILF. Cache the result.
54688         (gl_FUNC_CEILF): Use it.
54689
54690 2007-10-28  Bruno Haible  <bruno@clisp.org>
54691
54692         * gnulib-tool: Allow specifying the LGPL version number through
54693         --lgpl=2 or --lgpl=3.
54694         (func_usage): Document --lgpl with argument.
54695         Handle --lgpl=... arguments.
54696         (func_import): Recognize also gl_LGPL calls with an argument. When
54697         --lgpl=2 is used and the module's license is just LGPL, report an
54698         error. Set sed_transform_lib_file according to the lgpl variable. In
54699         the generated files, use --lgpl or gl_LGPL invocations with argument,
54700         if necessary.
54701         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54702         an LGPv2+ license.
54703         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54704         gl_LGPL macro.
54705
54706 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54707             Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54710         (u16_uctomb_aux): Likewise.
54711         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54712         !HAVE_INLINE.
54713         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54714
54715 2007-10-28  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54718         Invoke AM_GETTEXT_OPTION if it exists.
54719         * modules/vasprintf: Likewise.
54720         * modules/verror: Likewise.
54721         * modules/xprintf: Likewise.
54722         * modules/xvasprintf: Likewise.
54723
54724 2007-10-27  Ben Pfaff  <blp@gnu.org>
54725
54726         * lib/math.in.h: Define isfinite macro and prototypes for
54727         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54728         implementations.
54729         * m4/math_h.m4: New substitutions for isfinite module.
54730         * lib/isfinite.c: New file.
54731         * m4/isfinite.m4: New file.
54732         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54733         * modules/isfinite: New file.
54734         * modules/isfinite-tests: New file.
54735         * tests/tests-isfinite.c: New file.
54736         * doc/functions/isfinite.texi: Mention isfinite module.
54737         * MODULES.html.sh: Mention new module.
54738
54739 2007-10-27  Ben Pfaff  <blp@gnu.org>
54740
54741         Ralf Wildenhues reported that Tru64 4.0D declares the round
54742         functions but does not have definitions.
54743         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54744         cannot be found in any library, set the output variable to
54745         "missing" instead of "".
54746         * m4/round.m4: Also use our substitute if we cannot find round in
54747         any library, even if it is declared.
54748         * m4/roundf.m4: Likewise for roundf.
54749         * m4/roundl.m4: Likewise for roundl.
54750         * lib/math.in.h: Undefine roundf, round, roundl before defining
54751         their replacements, to allow for hypothetical systems where these
54752         may be defined as macros but not available in libraries.
54753
54754 2007-10-27  Bruno Haible  <bruno@clisp.org>
54755
54756         * doc/gnulib.texi: Invoke @firstparagraphindent.
54757         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54758         changes in gnulib.
54759         (Source changes): New section.
54760
54761 2007-10-26  Bruno Haible  <bruno@clisp.org>
54762
54763         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54764         borrowed from autoconf.
54765
54766 2007-10-26  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54769         strerror returned the empty string. Needed on HP-UX 11.00.
54770
54771 2007-10-24  Micah Cowan  <micah@cowan.name>
54772
54773         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54774         * build-aux/bootstrap: Remove support for now-unnecessary option,
54775         --cvs-user, and envvars CVS_USER, CVS_RSH.
54776
54777 2007-10-24  Jim Meyering  <meyering@redhat.com>
54778
54779         Avoid diagnostics from sha1sum when there is no cached checksum.
54780         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54781         if the po.s1 file hasn't been created yet.
54782
54783         * build-aux/bootstrap: Sync from coreutils:
54784         2007-10-24  Jim Meyering  <meyering@redhat.com>
54785         Get gnulib from the git repository, not from an obsolete cvs one.
54786         * build-aux/bootstrap: Suggestion from Micah Cowan.
54787         2007-10-04  Jim Meyering  <jim@meyering.net>
54788         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54789         (update_po_files): Work also when there are no .po files in po/.
54790
54791 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         * README: Append ".git" to git and cg examples.
54794         Problem reported by Benoit Sigoure.
54795
54796 2007-10-23  Micah Cowan  <micah@cowan.name>
54797
54798         * users.txt: Add wget.
54799
54800 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54801
54802         Fix linking of some unistdio tests on FreeBSD.
54803         * modules/unistdio/u16-vsnprintf-tests
54804         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54805         * modules/unistdio/u16-vsprintf-tests
54806         (test_u16_vsnprintf1_LDADD): Likewise.
54807         * modules/unistdio/u32-vsnprintf-tests
54808         (test_u32_vsnprintf1_LDADD): Likewise.
54809         * modules/unistdio/u32-vsprintf-tests
54810         (test_u32_vsprintf1_LDADD): Likewise.
54811         * modules/unistdio/u8-vsnprintf-tests
54812         (test_u8_vsnprintf1_LDADD): Likewise.
54813         * modules/unistdio/u8-vsprintf-tests
54814         (test_u8_vsprintf1_LDADD): Likewise.
54815         * modules/unistdio/ulc-vsnprintf-tests
54816         (test_ulc_vsnprintf1_LDADD): Likewise.
54817         * modules/unistdio/ulc-vsprintf-tests
54818         (test_ulc_vsprintf1_LDADD): Likewise.
54819
54820         Fix linking of some uniconv tests on FreeBSD.
54821         * modules/uniconv/u16-conv-from-enc-tests
54822         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54823         * modules/uniconv/u16-conv-to-enc-tests
54824         (test_u16_conv_to_enc_LDADD): Likewise.
54825         * modules/uniconv/u16-strconv-from-enc-tests
54826         (test_u16_strconv_from_enc_LDADD): Likewise.
54827         * modules/uniconv/u16-strconv-to-enc-tests
54828         (test_u16_strconv_to_enc_LDADD): Likewise.
54829         * modules/uniconv/u32-conv-from-enc-tests
54830         (test_u32_conv_from_enc_LDADD): Likewise.
54831         * modules/uniconv/u32-conv-to-enc-tests
54832         (test_u32_conv_to_enc_LDADD): Likewise.
54833         * modules/uniconv/u32-strconv-from-enc-tests
54834         (test_u32_strconv_from_enc_LDADD): Likewise.
54835         * modules/uniconv/u32-strconv-to-enc-tests
54836         (test_u32_strconv_to_enc_LDADD): Likewise.
54837         * modules/uniconv/u8-conv-from-enc-tests
54838         (test_u8_conv_from_enc_LDADD): Likewise.
54839         * modules/uniconv/u8-conv-to-enc-tests
54840         (test_u8_conv_to_enc_LDADD): Likewise.
54841         * modules/uniconv/u8-strconv-from-enc-tests
54842         (test_u8_strconv_from_enc_LDADD): Likewise.
54843         * modules/uniconv/u8-strconv-to-enc-tests
54844         (test_u8_strconv_to_enc_LDADD): Likewise.
54845
54846 2007-10-22  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54849         size.
54850
54851 2007-10-22  Eric Blake  <ebb9@byu.net>
54852
54853         Tweak x*printf documentation.
54854         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54855         variable name and comments.
54856         Suggested by Bruno Haible.
54857
54858 2007-10-22  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/acl.c (copy_acl): Fix file name in comment.
54861
54862 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54863
54864         Fix Tru64 problem with stdbool.h.
54865         * lib/stdbool.in.h (false, true):
54866         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54867         Don't declare as an enum in this situation; it runs afoul of Tru64.
54868         Problem reported by Steven M. Schweda in
54869         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54870
54871 2007-10-22  Eric Blake  <ebb9@byu.net>
54872
54873         Also wrap vf?printf.
54874         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54875         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54876         (xvprintf, xvfprintf): New functions.
54877
54878 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54879
54880         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54881         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54882
54883         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54884         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54885
54886 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54889         by Bruno Haible.
54890
54891 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54892
54893         * lib/getloadavg.c
54894         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54895         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54896
54897         * tests/test-i-ring.c: Work for C89.
54898
54899 2007-10-22  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54902         -1u, in preprocessor expression, so that we don't test for the bug
54903         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54905
54906 2007-10-22  Eric Blake  <ebb9@byu.net>
54907
54908         * tests/test-yesno.sh: Silence stderr during test.
54909
54910 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54911
54912         * modules/crypto/gc-camellia: New file.
54913
54914         * m4/gc-camellia.m4: New file.
54915
54916         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54917
54918         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54919
54920 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54921
54922         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54923         --help to stdout.  Reported by sms@antinode.org (Steven
54924         M. Schweda).
54925
54926 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54927
54928         * users.txt: Fix link to libksba.
54929
54930 2007-10-21  Ben Pfaff  <blp@gnu.org>
54931
54932         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54933         round.c roundf implementation that depends on floorf and ceilf to
54934         be tested unconditionally.
54935
54936 2007-10-21  Ben Pfaff  <blp@gnu.org>
54937
54938         * m4/check-libm-func.m4: Removed.
54939         * m4/check-math-lib.m4: New file.
54940         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54941         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54942         definition and lack of AC_LIBOBJ([roundf]).
54943         * m4/roundl.m4: Ditto, and similarly for roundl.
54944         * modules/round: Reference new m4 file.
54945         * modules/roundf: Ditto.
54946         * modules/roundl: Ditto.
54947         * tests/test-round2.c (main): Use ROUND instead of round.
54948         Bug report from Bruno Haible.
54949
54950 2007-10-21  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54953         context.
54954
54955 2007-10-21  Bruno Haible  <bruno@clisp.org>
54956
54957         * tests/test-wcwidth.c (main): Allow negative result for some control
54958         characters.
54959
54960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54961         Needed on OSF/1 5.1.
54962
54963 2007-10-21  Bruno Haible  <bruno@clisp.org>
54964
54965         * tests/test-floorf1.c: Include isnanf.h.
54966         (main): Use isnanf() instead of isnan().
54967         * tests/test-ceilf1.c: Include isnanf.h.
54968         (main): Use isnanf() instead of isnan().
54969         * tests/test-truncf1.c: Include isnanf.h.
54970         (main): Use isnanf() instead of isnan().
54971         * tests/test-roundf1.c: Include isnanf.h.
54972         (main): Use isnanf() instead of isnan().
54973
54974 2007-10-21  Eric Blake  <ebb9@byu.net>
54975
54976         * users.txt: Update URL for m4.
54977
54978 2007-10-21  Bruno Haible  <bruno@clisp.org>
54979
54980         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54981
54982 2007-10-21  Bruno Haible  <bruno@clisp.org>
54983
54984         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54985         Git's management files if the CVS files are not present.
54986
54987 2007-10-20  Bruno Haible  <bruno@clisp.org>
54988
54989         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54990         gcc-3.4.x.
54991
54992 2007-10-20  Ben Pfaff  <blp@gnu.org>
54993
54994         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54995         implementations.
54996         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54997         * lib/round.c: New file.
54998         * lib/roundf.c: New file.
54999         * lib/roundl.c: New file.
55000         * m4/round.m4: New file.
55001         * m4/roundf.m4: New file.
55002         * m4/roundl.m4: New file.
55003         * m4/check-libm-func-m4: New file.
55004         * modules/math: Replace round, roundf, roundl related @VARS@ in
55005         math.in.h.
55006         * modules/round: New file.
55007         * modules/round-tests: New file.
55008         * modules/roundf: New file.
55009         * modules/roundf-tests: New file.
55010         * modules/roundl: New file.
55011         * modules/roundl-tests: New file.
55012         * tests/test-round1.c: New file.
55013         * tests/test-round2.c: New file.
55014         * tests/test-roundf1.c: New file.
55015         * tests/test-roundf2.c: New file.
55016         * tests/test-roundl.c: New file.
55017         * doc/functions/round.texi: Mention round module.
55018         * doc/functions/roundf.texi: Mention roundf module.
55019         * doc/functions/roundl.texi: Mention roundl module.
55020         * MODULES.html.sh: Mention new modules.
55021         Thanks to Bruno Haible for suggestions.
55022
55023 2007-10-20  Jim Meyering  <meyering@redhat.com>
55024
55025         * lib/xprintf.c: Include <config.h> unconditionally.
55026
55027         Change xprintf's license to GPL.
55028         * modules/xprintf (License): s/LGPL/GPL/, since this module
55029         depends on modules (exit and exitfail) which are GPL.
55030         Suggestion from Bruno Haible.
55031
55032         xprintf fixes.
55033         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55034         Use a clearer diagnostic.
55035         Patch from Bruno Haible.
55036
55037 2007-10-20  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55040         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55042
55043 2007-10-20  Bruno Haible  <bruno@clisp.org>
55044
55045         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55046         precision in the comparison result > x - 1 or similar.
55047         * tests/test-ceilf2.c (correct_result_p): Likewise.
55048         * tests/test-truncf2.c (correct_result_p): Likewise.
55049         * tests/test-trunc2.c (correct_result_p): Likewise.
55050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55051
55052 2007-10-20  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/ceil: New file.
55055         * m4/ceil.m4: New file.
55056         * doc/functions/ceil.texi: Mention the 'ceil' module.
55057
55058 2007-10-20  Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/floor: New file.
55061         * m4/floor.m4: New file.
55062         * doc/functions/floor.texi: Mention the 'floor' module.
55063
55064 2007-10-20  Bruno Haible  <bruno@clisp.org>
55065
55066         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55067         of %a.
55068         * modules/floorf-tests (Depends-on): Likewise.
55069         * modules/truncf-tests (Depends-on): Likewise.
55070         * modules/trunc-tests (Depends-on): Likewise.
55071         Reported by Ben Pfaff.
55072
55073 2007-10-19  Jim Meyering  <meyering@redhat.com>
55074
55075         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55076         Don't bother testing specific errno values.  Just test ferror.
55077
55078         New module: xprintf
55079         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55080
55081 2007-10-19  Bruno Haible  <bruno@clisp.org>
55082
55083         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55084         syntax.
55085         * modules/javaexec (Makefile.am): Likewise.
55086         * modules/relocatable-prog (Makefile.am): Likewise.
55087         Suggested by Jim Meyering.
55088
55089 2007-10-18  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55092         Reported by Jim Meyering.
55093
55094 2007-10-18  Eric Blake  <ebb9@byu.net>
55095
55096         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55097
55098 2007-10-18  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55101         the format string into writable memory. Needed in Fortify conditions.
55102
55103 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55104             Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55107         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55108         * modules/trim (Depends-on): Add mbchar.
55109         (configure.ac): Add gl_FUNC_MBRTOWC.
55110         (Makefile.am): Augment lib_SOURCES.
55111
55112 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         Modify glob.c to use fstatat and dirfd, to simplify it.
55115         Suggested by Eric Blake.
55116         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55117         Don't include <stdbool.h>; not used.
55118         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55119         (link_exists_p): Simplify implementation, since we can now assume
55120         dirfd and fstatat.
55121         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55122
55123 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55124
55125         * gnulib-tool (func_get_dependencies): Fix sed script to
55126         match only tests.
55127
55128 2007-10-17  Bruno Haible  <bruno@clisp.org>
55129
55130         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55131         allow locale names without encoding suffix.
55132         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55134
55135 2007-10-16  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55138         * lib/getgroups.c (getgroups): Likewise.
55139         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55140
55141 2007-10-16  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55144         * modules/malloc-posix (License): Likewise.
55145         * modules/realloc-posix (License): Likewise.
55146         * modules/calloc-posix (License): Likewise.
55147         * modules/intprops (License): Change from GPL to LGPL, with
55148         Paul Eggert's approval.
55149
55150 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         Merge glibc changes into lib/glob.c.
55153
55154         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55155         2007-10-15 04:59:03 UTC.  Here are the changes:
55156
55157         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55158
55159         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55160
55161         * lib/glob.c: Add some branch prediction throughout.
55162
55163         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55164
55165         [BZ #5103]
55166         * lib/glob.c (glob): Recognize patterns starting \/.
55167
55168         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55169
55170         [BZ #3996]
55171         * lib/glob.c (attribute_hidden): Define if not defined.
55172         (glob): Unescape dirname, filename or username when needed and not
55173         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55174         is NULL.  Handle unescaped [ in pattern without closing ].
55175         Don't pass GLOB_CHECK down to recursive glob for directories.
55176         (__glob_pattern_type): New function.
55177         (__glob_pattern_p): Implement using __glob_pattern_type.
55178         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55179         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55180         Remove unreachable code.
55181
55182         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55183
55184         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55185         explain why there are no leaks.
55186
55187         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55188
55189         [BZ #3253]
55190         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55191         time, rather allocate increasingly bigger arrays of pointers, if
55192         possible with alloca, if too large with malloc.
55193
55194 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55197         Problem reported by H.Merijn Brand in
55198         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55199         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55200         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55201
55202 2007-10-15  Bruno Haible  <bruno@clisp.org>
55203
55204         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55205         with explicit rpl_ prefix.
55206         * lib/fopen.c (fopen): Likewise.
55207         * lib/freopen.c (freopen): Likewise.
55208         * lib/iconv.c (iconv): Likewise.
55209         * lib/iconv_close.c (iconv_close): Likewise.
55210
55211 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55212
55213         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55214
55215 2007-10-15  Bruno Haible  <bruno@clisp.org>
55216
55217         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55218         <stddef.h> instead of <stdlib.h> since we only need NULL.
55219         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55220
55221 2007-10-15  Bruno Haible  <bruno@clisp.org>
55222
55223         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55224         Replace paragraph talking about LIBOBJS.
55225         Reported by Colin Watson <cjwatson@debian.org>.
55226
55227 2007-10-15  Bruno Haible  <bruno@clisp.org>
55228
55229         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55230         <stdlib.h> before using NULL.
55231
55232 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55233
55234         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55235         Reported by Albert Chin <china@thewrittenword.com>.
55236
55237 2007-10-14  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/iconv_open-utf-tests: New file.
55240         * tests/test-iconv-utf.c: New file.
55241
55242         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55243         * modules/iconv_open-utf: New file.
55244         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55245         (iconv, iconv_close): New declarations.
55246         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55247         be defined.
55248         (iconv_open): Add special handling of conversion between UTF-8 and
55249         UTF-{16,32}{BE,LE}.
55250         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55251         * lib/iconv_close.c: New file.
55252         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55253         gl_FUNC_ICONV_OPEN.
55254         (gl_FUNC_ICONV_OPEN): Use it.
55255         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55256         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55257         and REPLACE_ICONV_UTF.
55258         * modules/iconv_open (Depends-on): Add c-strcase.
55259         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55260         ICONV_CONST.
55261         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55262
55263 2007-10-13  Albert Chin  <china@thewrittenword.com>
55264             Bruno Haible  <bruno@clisp.org>
55265
55266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55267         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55268
55269 2007-10-13  Bruno Haible  <bruno@clisp.org>
55270
55271         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55272         defined, use the ISO C99 inline semantics.
55273         * lib/argp.h (ARGP_EI): Likewise.
55274
55275 2007-10-13  Bruno Haible  <bruno@clisp.org>
55276
55277         Handle 'inline' change in gcc 4.3.0.
55278         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55279         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55280         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55281         argp_fmtstream_point): Disable 'extern' declaration if the function
55282         definition is going to be provided inline.
55283         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55284         semantics, not the ISO C99 inline semantics.
55285         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55286         'extern' declaration if the function definition is going to be provided
55287         inline.
55288         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55289         the GNU C inline semantics, not the ISO C99 inline semantics. With
55290         GCC 4.2, avoid a warning.
55291
55292 2007-10-13  Bruno Haible  <bruno@clisp.org>
55293
55294         * lib/freading.h (freading): Enable the use of __freading for
55295         glibc >= 2.7.
55296         * lib/freading.c (freading): Likewise.
55297
55298 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55301         "warning: C99 inline functions are not supported; using GNU89".
55302
55303 2007-10-12  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55306         of 2.
55307         * tests/test-ceilf2.c: New file.
55308         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55309
55310         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55311         * modules/ceilf-tests: Update.
55312
55313 2007-10-12  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55316         of 2.
55317         * tests/test-floorf2.c: New file.
55318         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55319
55320         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55321         * modules/floorf-tests: Update.
55322
55323 2007-10-12  Bruno Haible  <bruno@clisp.org>
55324
55325         * tests/test-trunc2.c: New file.
55326         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55327
55328         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55329         * modules/trunc-tests: Update.
55330
55331 2007-10-12  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55334         of 2.
55335         * tests/test-truncf2.c: New file.
55336         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55337
55338         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55339         * modules/truncf-tests: Update.
55340
55341 2007-10-11  Eric Blake  <ebb9@byu.net>
55342
55343         Don't claim strerror is broken on Interix.
55344         * doc/functions/strerror.texi (strerror): Known broken systems are
55345         now Solaris 8, and not Interix.
55346         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55347         Interix on cross-compile.
55348         Reported by Martin Koeppe in
55349         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55350
55351 2007-10-11  Bruno Haible  <bruno@clisp.org>
55352
55353         * modules/i-ring-tests: New file.
55354         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55355         instead of assert.
55356
55357 2007-10-11  Bruno Haible  <bruno@clisp.org>
55358
55359         * modules/filenamecat-tests: New file.
55360         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55361         * lib/filenamecat.c: Remove test code.
55362
55363 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55364
55365         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55366
55367         * lib/strerror.c: Include <string.h> always, to test interface,
55368         and to remove the need for the dummy.
55369         Include intprops.h to compute width instead of doing it ourselves
55370         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55371         (strerror): Define it to return NULL if there's no system strerror.
55372         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55373         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55374         ancient pre-strerror Unix systems well any more.  Saying "unknown
55375         system error" is enough.
55376         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55377         simpler strerror.c implementation.
55378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55379         Simplify the tests to reflect the simpler strerror implementation.
55380         * modules/strerror (Depends-on): Add intprops.
55381
55382 2007-10-09  Eric Blake  <ebb9@byu.net>
55383
55384         Silence test-fpending.
55385         * modules/fpending-tests (Files): Add wrapper script.
55386         * tests/test-fpending.sh: New file.
55387
55388 2007-10-09  Bruno Haible  <bruno@clisp.org>
55389
55390         * MODULES.html.sh (func_module): Don't create a hyperlink for
55391         function names like 'printf_frexp'.
55392         (Misc): Add crc, memxor.
55393         (Characteristics of floating types): New section.
55394         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55395         isnanf-nolibm, signbit, trunc, truncf, truncl.
55396         (Enhancements for ISO C 99 functions): New subsection Input/output.
55397         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55398         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55399         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55400         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55401         (Enhancements for POSIX:2001 functions): Add chdir-long.
55402         (File system functions): Add areadlink, chdir-safer, read-file.
55403         Remove cycle-check.
55404         (File system as inode set): New section.
55405         (Date and time): Add gethrxtime.
55406         (Multithreading): Add openmp.
55407         (Internationalization functions): Add localename.
55408         (Unicode string functions): Add unistr/u*-mbsnlen.
55409         (Support for maintaining and releasing projects): Add git-version-gen.
55410         (Lone files): Remove directories.
55411
55412 2007-10-08  Ben Pfaff  <blp@gnu.org>
55413
55414         * lib/xmalloca.h: Fix typo in comment.
55415
55416 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55417
55418         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55419         when avoiding problems with integer overflow.  Use a portable test
55420         instead.
55421
55422 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55423
55424         * modules/dummy (License): Change to LGPLv2+.
55425         * modules/float (License): Likewise
55426         * modules/realloc (License): Likewise
55427         * modules/stdlib (License): Likewise
55428
55429 2007-10-07  Bruno Haible  <bruno@clisp.org>
55430
55431         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55432         * floor.c (TWO_MANT_DIG): Likewise.
55433         * ceil.c (TWO_MANT_DIG): Likewise.
55434         Reported by Ben Pfaff.
55435
55436 2007-10-07  Bruno Haible  <bruno@clisp.org>
55437
55438         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55439         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55440         * lib/frexp.c (FUNC): Likewise.
55441         * lib/printf-frexp.h (printf_frexp): Likewise.
55442         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55443         * lib/printf-frexp.c (FUNC): Likewise.
55444         Suggested by Jim Meyering.
55445
55446 2007-10-07  Jim Meyering  <meyering@redhat.com>
55447
55448         Make xnanosleep's integer overflow test more robust.
55449         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55450         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55451
55452 2007-10-07  Bruno Haible  <bruno@clisp.org>
55453
55454         * NEWS: Mention the license change.
55455
55456         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55457         abbreviations in the modules files.
55458
55459         Change copyright notice from GPLv2+ to GPLv3+.
55460         * README: Change copyright notice.
55461         * MODULES.html.sh: Likewise.
55462         * build-aux/bootstrap.conf: Likewise.
55463         * build-aux/config.libpath: Likewise.
55464         * build-aux/csharpcomp.sh.in: Likewise.
55465         * build-aux/csharpexec.sh.in: Likewise.
55466         * build-aux/install-reloc: Likewise.
55467         * build-aux/javacomp.sh.in: Likewise.
55468         * build-aux/javaexec.sh.in: Likewise.
55469         * build-aux/ldd.sh.in: Likewise.
55470         * build-aux/reloc-ldflags: Likewise.
55471         * build-aux/relocatable.sh.in: Likewise.
55472         * build-aux/x-to-1.in: Likewise.
55473         * check-module: Likewise.
55474         * config/srclistvars.sh: Likewise.
55475         * gnulib-tool: Likewise.
55476         * lib/acl-internal.h: Likewise.
55477         * lib/acl.c: Likewise.
55478         * lib/acl.h: Likewise.
55479         * lib/acl_entries.c: Likewise.
55480         * lib/areadlink-with-size.c: Likewise.
55481         * lib/areadlink.c: Likewise.
55482         * lib/areadlink.h: Likewise.
55483         * lib/argmatch.c: Likewise.
55484         * lib/argmatch.h: Likewise.
55485         * lib/argp-ba.c: Likewise.
55486         * lib/argp-eexst.c: Likewise.
55487         * lib/argp-fmtstream.c: Likewise.
55488         * lib/argp-fmtstream.h: Likewise.
55489         * lib/argp-fs-xinl.c: Likewise.
55490         * lib/argp-help.c: Likewise.
55491         * lib/argp-namefrob.h: Likewise.
55492         * lib/argp-parse.c: Likewise.
55493         * lib/argp-pin.c: Likewise.
55494         * lib/argp-pv.c: Likewise.
55495         * lib/argp-pvh.c: Likewise.
55496         * lib/argp-xinl.c: Likewise.
55497         * lib/argp.h: Likewise.
55498         * lib/at-func.c: Likewise.
55499         * lib/atanl.c: Likewise.
55500         * lib/backupfile.c: Likewise.
55501         * lib/backupfile.h: Likewise.
55502         * lib/basename.c: Likewise.
55503         * lib/binary-io.h: Likewise.
55504         * lib/byteswap.in.h: Likewise.
55505         * lib/c-stack.c: Likewise.
55506         * lib/c-stack.h: Likewise.
55507         * lib/c-strcasestr.c: Likewise.
55508         * lib/c-strcasestr.h: Likewise.
55509         * lib/c-strstr.c: Likewise.
55510         * lib/c-strstr.h: Likewise.
55511         * lib/c-strtod.c: Likewise.
55512         * lib/calloc.c: Likewise.
55513         * lib/canon-host.c: Likewise.
55514         * lib/canon-host.h: Likewise.
55515         * lib/canonicalize-lgpl.c: Likewise.
55516         * lib/canonicalize.c: Likewise.
55517         * lib/canonicalize.h: Likewise.
55518         * lib/ceil.c: Likewise.
55519         * lib/ceilf.c: Likewise.
55520         * lib/ceill.c: Likewise.
55521         * lib/chdir-long.c: Likewise.
55522         * lib/chdir-long.h: Likewise.
55523         * lib/chdir-safer.c: Likewise.
55524         * lib/chdir-safer.h: Likewise.
55525         * lib/chown.c: Likewise.
55526         * lib/classpath.c: Likewise.
55527         * lib/classpath.h: Likewise.
55528         * lib/clean-temp.c: Likewise.
55529         * lib/clean-temp.h: Likewise.
55530         * lib/cloexec.c: Likewise.
55531         * lib/close-stream.c: Likewise.
55532         * lib/closein.c: Likewise.
55533         * lib/closein.h: Likewise.
55534         * lib/closeout.c: Likewise.
55535         * lib/closeout.h: Likewise.
55536         * lib/concat-filename.c: Likewise.
55537         * lib/copy-file.c: Likewise.
55538         * lib/copy-file.h: Likewise.
55539         * lib/count-one-bits.h: Likewise.
55540         * lib/crc.c: Likewise.
55541         * lib/crc.h: Likewise.
55542         * lib/creat-safer.c: Likewise.
55543         * lib/csharpcomp.c: Likewise.
55544         * lib/csharpcomp.h: Likewise.
55545         * lib/csharpexec.c: Likewise.
55546         * lib/csharpexec.h: Likewise.
55547         * lib/cycle-check.c: Likewise.
55548         * lib/cycle-check.h: Likewise.
55549         * lib/diacrit.c: Likewise.
55550         * lib/diacrit.h: Likewise.
55551         * lib/diffseq.h: Likewise.
55552         * lib/dirchownmod.c: Likewise.
55553         * lib/dirent.in.h: Likewise.
55554         * lib/dirfd.c: Likewise.
55555         * lib/dirfd.h: Likewise.
55556         * lib/dirname.c: Likewise.
55557         * lib/dirname.h: Likewise.
55558         * lib/dummy.c: Likewise.
55559         * lib/dup-safer.c: Likewise.
55560         * lib/dup2.c: Likewise.
55561         * lib/eealloc.h: Likewise.
55562         * lib/error.c: Likewise.
55563         * lib/error.h: Likewise.
55564         * lib/euidaccess.c: Likewise.
55565         * lib/exclude.c: Likewise.
55566         * lib/exclude.h: Likewise.
55567         * lib/execute.c: Likewise.
55568         * lib/execute.h: Likewise.
55569         * lib/exitfail.c: Likewise.
55570         * lib/exitfail.h: Likewise.
55571         * lib/expl.c: Likewise.
55572         * lib/fatal-signal.c: Likewise.
55573         * lib/fatal-signal.h: Likewise.
55574         * lib/fbufmode.c: Likewise.
55575         * lib/fbufmode.h: Likewise.
55576         * lib/fchdir.c: Likewise.
55577         * lib/fchmodat.c: Likewise.
55578         * lib/fchownat.c: Likewise.
55579         * lib/fcntl--.h: Likewise.
55580         * lib/fcntl-safer.h: Likewise.
55581         * lib/fcntl.in.h: Likewise.
55582         * lib/fd-safer.c: Likewise.
55583         * lib/fflush.c: Likewise.
55584         * lib/file-has-acl.c: Likewise.
55585         * lib/file-set.c: Likewise.
55586         * lib/file-type.c: Likewise.
55587         * lib/file-type.h: Likewise.
55588         * lib/fileblocks.c: Likewise.
55589         * lib/filemode.c: Likewise.
55590         * lib/filemode.h: Likewise.
55591         * lib/filename.h: Likewise.
55592         * lib/filenamecat.c: Likewise.
55593         * lib/filenamecat.h: Likewise.
55594         * lib/findprog.c: Likewise.
55595         * lib/findprog.h: Likewise.
55596         * lib/float.in.h: Likewise.
55597         * lib/floor.c: Likewise.
55598         * lib/floorf.c: Likewise.
55599         * lib/floorl.c: Likewise.
55600         * lib/fopen-safer.c: Likewise.
55601         * lib/fopen.c: Likewise.
55602         * lib/fpending.c: Likewise.
55603         * lib/fpending.h: Likewise.
55604         * lib/fprintf.c: Likewise.
55605         * lib/fprintftime.h: Likewise.
55606         * lib/fpucw.h: Likewise.
55607         * lib/fpurge.c: Likewise.
55608         * lib/fpurge.h: Likewise.
55609         * lib/freadable.c: Likewise.
55610         * lib/freadable.h: Likewise.
55611         * lib/freadahead.c: Likewise.
55612         * lib/freadahead.h: Likewise.
55613         * lib/freading.c: Likewise.
55614         * lib/freading.h: Likewise.
55615         * lib/free.c: Likewise.
55616         * lib/freopen.c: Likewise.
55617         * lib/frexp.c: Likewise.
55618         * lib/frexpl.c: Likewise.
55619         * lib/fseek.c: Likewise.
55620         * lib/fseterr.c: Likewise.
55621         * lib/fseterr.h: Likewise.
55622         * lib/fstatat.c: Likewise.
55623         * lib/fstrcmp.c: Likewise.
55624         * lib/fstrcmp.h: Likewise.
55625         * lib/fsusage.c: Likewise.
55626         * lib/fsusage.h: Likewise.
55627         * lib/ftell.c: Likewise.
55628         * lib/ftello.c: Likewise.
55629         * lib/fts-cycle.c: Likewise.
55630         * lib/fts.c: Likewise.
55631         * lib/fts_.h: Likewise.
55632         * lib/full-read.c: Likewise.
55633         * lib/full-read.h: Likewise.
55634         * lib/full-write.c: Likewise.
55635         * lib/full-write.h: Likewise.
55636         * lib/fwritable.c: Likewise.
55637         * lib/fwritable.h: Likewise.
55638         * lib/fwriteerror.c: Likewise.
55639         * lib/fwriteerror.h: Likewise.
55640         * lib/fwriting.c: Likewise.
55641         * lib/fwriting.h: Likewise.
55642         * lib/gcd.c: Likewise.
55643         * lib/gcd.h: Likewise.
55644         * lib/getcwd.c: Likewise.
55645         * lib/getdate.h: Likewise.
55646         * lib/getdate.y: Likewise.
55647         * lib/getdomainname.c: Likewise.
55648         * lib/getdomainname.h: Likewise.
55649         * lib/getgroups.c: Likewise.
55650         * lib/gethostname.c: Likewise.
55651         * lib/gethrxtime.c: Likewise.
55652         * lib/gethrxtime.h: Likewise.
55653         * lib/getloadavg.c: Likewise.
55654         * lib/getndelim2.c: Likewise.
55655         * lib/getndelim2.h: Likewise.
55656         * lib/getnline.c: Likewise.
55657         * lib/getnline.h: Likewise.
55658         * lib/getopt.c: Likewise.
55659         * lib/getopt.in.h: Likewise.
55660         * lib/getopt1.c: Likewise.
55661         * lib/getopt_int.h: Likewise.
55662         * lib/getpagesize.h: Likewise.
55663         * lib/getsubopt.c: Likewise.
55664         * lib/gettime.c: Likewise.
55665         * lib/getugroups.c: Likewise.
55666         * lib/getugroups.h: Likewise.
55667         * lib/getusershell.c: Likewise.
55668         * lib/gl_anyavltree_list1.h: Likewise.
55669         * lib/gl_anyavltree_list2.h: Likewise.
55670         * lib/gl_anyhash_list1.h: Likewise.
55671         * lib/gl_anyhash_list2.h: Likewise.
55672         * lib/gl_anylinked_list1.h: Likewise.
55673         * lib/gl_anylinked_list2.h: Likewise.
55674         * lib/gl_anyrbtree_list1.h: Likewise.
55675         * lib/gl_anyrbtree_list2.h: Likewise.
55676         * lib/gl_anytree_list1.h: Likewise.
55677         * lib/gl_anytree_list2.h: Likewise.
55678         * lib/gl_anytree_oset.h: Likewise.
55679         * lib/gl_anytreehash_list1.h: Likewise.
55680         * lib/gl_anytreehash_list2.h: Likewise.
55681         * lib/gl_array_list.c: Likewise.
55682         * lib/gl_array_list.h: Likewise.
55683         * lib/gl_array_oset.c: Likewise.
55684         * lib/gl_array_oset.h: Likewise.
55685         * lib/gl_avltree_list.c: Likewise.
55686         * lib/gl_avltree_list.h: Likewise.
55687         * lib/gl_avltree_oset.c: Likewise.
55688         * lib/gl_avltree_oset.h: Likewise.
55689         * lib/gl_avltreehash_list.c: Likewise.
55690         * lib/gl_avltreehash_list.h: Likewise.
55691         * lib/gl_carray_list.c: Likewise.
55692         * lib/gl_carray_list.h: Likewise.
55693         * lib/gl_linked_list.c: Likewise.
55694         * lib/gl_linked_list.h: Likewise.
55695         * lib/gl_linkedhash_list.c: Likewise.
55696         * lib/gl_linkedhash_list.h: Likewise.
55697         * lib/gl_list.c: Likewise.
55698         * lib/gl_list.h: Likewise.
55699         * lib/gl_oset.c: Likewise.
55700         * lib/gl_oset.h: Likewise.
55701         * lib/gl_rbtree_list.c: Likewise.
55702         * lib/gl_rbtree_list.h: Likewise.
55703         * lib/gl_rbtree_oset.c: Likewise.
55704         * lib/gl_rbtree_oset.h: Likewise.
55705         * lib/gl_rbtreehash_list.c: Likewise.
55706         * lib/gl_rbtreehash_list.h: Likewise.
55707         * lib/gl_sublist.c: Likewise.
55708         * lib/gl_sublist.h: Likewise.
55709         * lib/group-member.c: Likewise.
55710         * lib/group-member.h: Likewise.
55711         * lib/hard-locale.c: Likewise.
55712         * lib/hard-locale.h: Likewise.
55713         * lib/hash-pjw.c: Likewise.
55714         * lib/hash-pjw.h: Likewise.
55715         * lib/hash-triple.c: Likewise.
55716         * lib/hash.c: Likewise.
55717         * lib/hash.h: Likewise.
55718         * lib/human.c: Likewise.
55719         * lib/human.h: Likewise.
55720         * lib/i-ring.c: Likewise.
55721         * lib/i-ring.h: Likewise.
55722         * lib/idcache.c: Likewise.
55723         * lib/imaxabs.c: Likewise.
55724         * lib/imaxdiv.c: Likewise.
55725         * lib/inet_pton.c: Likewise.
55726         * lib/inet_pton.h: Likewise.
55727         * lib/intprops.h: Likewise.
55728         * lib/inttostr.c: Likewise.
55729         * lib/inttostr.h: Likewise.
55730         * lib/inttypes.in.h: Likewise.
55731         * lib/isapipe.c: Likewise.
55732         * lib/isdir.c: Likewise.
55733         * lib/isnan.c: Likewise.
55734         * lib/isnan.h: Likewise.
55735         * lib/isnanf.c: Likewise.
55736         * lib/isnanf.h: Likewise.
55737         * lib/isnanl-nolibm.h: Likewise.
55738         * lib/isnanl.c: Likewise.
55739         * lib/isnanl.h: Likewise.
55740         * lib/javacomp.c: Likewise.
55741         * lib/javacomp.h: Likewise.
55742         * lib/javaexec.c: Likewise.
55743         * lib/javaexec.h: Likewise.
55744         * lib/javaversion.c: Likewise.
55745         * lib/javaversion.h: Likewise.
55746         * lib/javaversion.java: Likewise.
55747         * lib/lbrkprop.h: Likewise.
55748         * lib/lchmod.h: Likewise.
55749         * lib/lchown.c: Likewise.
55750         * lib/ldexpl.c: Likewise.
55751         * lib/linebreak.c: Likewise.
55752         * lib/linebreak.h: Likewise.
55753         * lib/linebuffer.c: Likewise.
55754         * lib/linebuffer.h: Likewise.
55755         * lib/locale.in.h: Likewise.
55756         * lib/logl.c: Likewise.
55757         * lib/long-options.c: Likewise.
55758         * lib/long-options.h: Likewise.
55759         * lib/lstat.c: Likewise.
55760         * lib/lstat.h: Likewise.
55761         * lib/math.in.h: Likewise.
55762         * lib/mbchar.c: Likewise.
55763         * lib/mbchar.h: Likewise.
55764         * lib/mbfile.h: Likewise.
55765         * lib/mbiter.h: Likewise.
55766         * lib/mbscasecmp.c: Likewise.
55767         * lib/mbscasestr.c: Likewise.
55768         * lib/mbschr.c: Likewise.
55769         * lib/mbscspn.c: Likewise.
55770         * lib/mbslen.c: Likewise.
55771         * lib/mbsncasecmp.c: Likewise.
55772         * lib/mbsnlen.c: Likewise.
55773         * lib/mbspbrk.c: Likewise.
55774         * lib/mbspcasecmp.c: Likewise.
55775         * lib/mbsrchr.c: Likewise.
55776         * lib/mbssep.c: Likewise.
55777         * lib/mbsspn.c: Likewise.
55778         * lib/mbsstr.c: Likewise.
55779         * lib/mbstok_r.c: Likewise.
55780         * lib/mbswidth.c: Likewise.
55781         * lib/mbswidth.h: Likewise.
55782         * lib/mbuiter.h: Likewise.
55783         * lib/memcasecmp.c: Likewise.
55784         * lib/memcasecmp.h: Likewise.
55785         * lib/memchr.c: Likewise.
55786         * lib/memcmp.c: Likewise.
55787         * lib/memcoll.c: Likewise.
55788         * lib/memcoll.h: Likewise.
55789         * lib/memcpy.c: Likewise.
55790         * lib/memrchr.c: Likewise.
55791         * lib/mkancesdirs.c: Likewise.
55792         * lib/mkdir-p.c: Likewise.
55793         * lib/mkdir-p.h: Likewise.
55794         * lib/mkdir.c: Likewise.
55795         * lib/mkdirat.c: Likewise.
55796         * lib/mkdtemp.c: Likewise.
55797         * lib/mkstemp-safer.c: Likewise.
55798         * lib/mkstemp.c: Likewise.
55799         * lib/modechange.c: Likewise.
55800         * lib/modechange.h: Likewise.
55801         * lib/mountlist.c: Likewise.
55802         * lib/mountlist.h: Likewise.
55803         * lib/mpsort.c: Likewise.
55804         * lib/nanosleep.c: Likewise.
55805         * lib/obstack.c: Likewise.
55806         * lib/obstack.h: Likewise.
55807         * lib/open-safer.c: Likewise.
55808         * lib/open.c: Likewise.
55809         * lib/openat-die.c: Likewise.
55810         * lib/openat-priv.h: Likewise.
55811         * lib/openat-proc.c: Likewise.
55812         * lib/openat.c: Likewise.
55813         * lib/openat.h: Likewise.
55814         * lib/pagealign_alloc.c: Likewise.
55815         * lib/pagealign_alloc.h: Likewise.
55816         * lib/physmem.c: Likewise.
55817         * lib/physmem.h: Likewise.
55818         * lib/pipe-safer.c: Likewise.
55819         * lib/pipe.c: Likewise.
55820         * lib/pipe.h: Likewise.
55821         * lib/posixtm.c: Likewise.
55822         * lib/posixtm.h: Likewise.
55823         * lib/posixver.c: Likewise.
55824         * lib/printf-frexp.c: Likewise.
55825         * lib/printf-frexp.h: Likewise.
55826         * lib/printf-frexpl.c: Likewise.
55827         * lib/printf-frexpl.h: Likewise.
55828         * lib/printf.c: Likewise.
55829         * lib/progname.c: Likewise.
55830         * lib/progname.h: Likewise.
55831         * lib/progreloc.c: Likewise.
55832         * lib/putenv.c: Likewise.
55833         * lib/quote.c: Likewise.
55834         * lib/quote.h: Likewise.
55835         * lib/quotearg.c: Likewise.
55836         * lib/quotearg.h: Likewise.
55837         * lib/raise.c: Likewise.
55838         * lib/readline.c: Likewise.
55839         * lib/readline.h: Likewise.
55840         * lib/readlink.c: Likewise.
55841         * lib/readtokens.c: Likewise.
55842         * lib/readtokens.h: Likewise.
55843         * lib/readtokens0.c: Likewise.
55844         * lib/readtokens0.h: Likewise.
55845         * lib/readutmp.c: Likewise.
55846         * lib/readutmp.h: Likewise.
55847         * lib/realloc.c: Likewise.
55848         * lib/relocwrapper.c: Likewise.
55849         * lib/rename-dest-slash.c: Likewise.
55850         * lib/rename.c: Likewise.
55851         * lib/rmdir.c: Likewise.
55852         * lib/rpmatch.c: Likewise.
55853         * lib/safe-read.c: Likewise.
55854         * lib/safe-read.h: Likewise.
55855         * lib/safe-write.c: Likewise.
55856         * lib/safe-write.h: Likewise.
55857         * lib/same-inode.h: Likewise.
55858         * lib/same.c: Likewise.
55859         * lib/same.h: Likewise.
55860         * lib/save-cwd.c: Likewise.
55861         * lib/save-cwd.h: Likewise.
55862         * lib/savedir.c: Likewise.
55863         * lib/savedir.h: Likewise.
55864         * lib/savewd.c: Likewise.
55865         * lib/savewd.h: Likewise.
55866         * lib/search.in.h: Likewise.
55867         * lib/setenv.c: Likewise.
55868         * lib/setenv.h: Likewise.
55869         * lib/settime.c: Likewise.
55870         * lib/sh-quote.c: Likewise.
55871         * lib/sh-quote.h: Likewise.
55872         * lib/sig2str.c: Likewise.
55873         * lib/sig2str.h: Likewise.
55874         * lib/signal.in.h: Likewise.
55875         * lib/signbitd.c: Likewise.
55876         * lib/signbitf.c: Likewise.
55877         * lib/signbitl.c: Likewise.
55878         * lib/sigprocmask.c: Likewise.
55879         * lib/sincosl.c: Likewise.
55880         * lib/sleep.c: Likewise.
55881         * lib/sprintf.c: Likewise.
55882         * lib/sqrtl.c: Likewise.
55883         * lib/stat-time.h: Likewise.
55884         * lib/stdio--.h: Likewise.
55885         * lib/stdio-safer.h: Likewise.
55886         * lib/stdlib--.h: Likewise.
55887         * lib/stdlib-safer.h: Likewise.
55888         * lib/stdlib.in.h: Likewise.
55889         * lib/stpcpy.c: Likewise.
55890         * lib/stpncpy.c: Likewise.
55891         * lib/strchrnul.c: Likewise.
55892         * lib/strcspn.c: Likewise.
55893         * lib/strerror.c: Likewise.
55894         * lib/strftime.c: Likewise.
55895         * lib/strftime.h: Likewise.
55896         * lib/striconveh.c: Likewise.
55897         * lib/striconveh.h: Likewise.
55898         * lib/striconveha.c: Likewise.
55899         * lib/striconveha.h: Likewise.
55900         * lib/stripslash.c: Likewise.
55901         * lib/strnlen1.c: Likewise.
55902         * lib/strnlen1.h: Likewise.
55903         * lib/strtod.c: Likewise.
55904         * lib/strtoimax.c: Likewise.
55905         * lib/strtok_r.c: Likewise.
55906         * lib/strtol.c: Likewise.
55907         * lib/strtoll.c: Likewise.
55908         * lib/strtoul.c: Likewise.
55909         * lib/strtoull.c: Likewise.
55910         * lib/sysexits.in.h: Likewise.
55911         * lib/tempname.c: Likewise.
55912         * lib/tempname.h: Likewise.
55913         * lib/timespec.h: Likewise.
55914         * lib/tls.c: Likewise.
55915         * lib/tls.h: Likewise.
55916         * lib/tmpdir.c: Likewise.
55917         * lib/tmpdir.h: Likewise.
55918         * lib/tmpfile-safer.c: Likewise.
55919         * lib/tmpfile.c: Likewise.
55920         * lib/trigl.c: Likewise.
55921         * lib/trigl.h: Likewise.
55922         * lib/trim.c: Likewise.
55923         * lib/trim.h: Likewise.
55924         * lib/trunc.c: Likewise.
55925         * lib/truncf.c: Likewise.
55926         * lib/truncl.c: Likewise.
55927         * lib/tsearch.c: Likewise.
55928         * lib/unicodeio.c: Likewise.
55929         * lib/unicodeio.h: Likewise.
55930         * lib/unistd--.h: Likewise.
55931         * lib/unistd-safer.h: Likewise.
55932         * lib/unistdio/ulc-fprintf.c: Likewise.
55933         * lib/unistdio/ulc-vfprintf.c: Likewise.
55934         * lib/unlinkdir.c: Likewise.
55935         * lib/unlinkdir.h: Likewise.
55936         * lib/unlocked-io.h: Likewise.
55937         * lib/unsetenv.c: Likewise.
55938         * lib/userspec.c: Likewise.
55939         * lib/utime.c: Likewise.
55940         * lib/utimecmp.c: Likewise.
55941         * lib/utimecmp.h: Likewise.
55942         * lib/utimens.c: Likewise.
55943         * lib/verify.h: Likewise.
55944         * lib/verror.c: Likewise.
55945         * lib/verror.h: Likewise.
55946         * lib/version-etc-fsf.c: Likewise.
55947         * lib/version-etc.c: Likewise.
55948         * lib/version-etc.h: Likewise.
55949         * lib/vfprintf.c: Likewise.
55950         * lib/vprintf.c: Likewise.
55951         * lib/vsprintf.c: Likewise.
55952         * lib/w32spawn.h: Likewise.
55953         * lib/wait-process.c: Likewise.
55954         * lib/wait-process.h: Likewise.
55955         * lib/wcwidth.c: Likewise.
55956         * lib/write-any-file.c: Likewise.
55957         * lib/xalloc-die.c: Likewise.
55958         * lib/xalloc.h: Likewise.
55959         * lib/xasprintf.c: Likewise.
55960         * lib/xgetcwd.c: Likewise.
55961         * lib/xgetcwd.h: Likewise.
55962         * lib/xgetdomainname.c: Likewise.
55963         * lib/xgetdomainname.h: Likewise.
55964         * lib/xgethostname.c: Likewise.
55965         * lib/xmalloc.c: Likewise.
55966         * lib/xmalloca.c: Likewise.
55967         * lib/xmalloca.h: Likewise.
55968         * lib/xmemcoll.c: Likewise.
55969         * lib/xnanosleep.c: Likewise.
55970         * lib/xreadlink.c: Likewise.
55971         * lib/xreadlink.h: Likewise.
55972         * lib/xsetenv.c: Likewise.
55973         * lib/xsetenv.h: Likewise.
55974         * lib/xstriconv.c: Likewise.
55975         * lib/xstriconv.h: Likewise.
55976         * lib/xstrndup.c: Likewise.
55977         * lib/xstrndup.h: Likewise.
55978         * lib/xstrtod.c: Likewise.
55979         * lib/xstrtod.h: Likewise.
55980         * lib/xstrtol-error.c: Likewise.
55981         * lib/xstrtol.c: Likewise.
55982         * lib/xstrtol.h: Likewise.
55983         * lib/xtime.h: Likewise.
55984         * lib/xvasprintf.c: Likewise.
55985         * lib/xvasprintf.h: Likewise.
55986         * lib/yesno.c: Likewise.
55987         * lib/yesno.h: Likewise.
55988         * posix-modules: Likewise.
55989         * tests/test-alloca-opt.c: Likewise.
55990         * tests/test-arcfour.c: Likewise.
55991         * tests/test-arctwo.c: Likewise.
55992         * tests/test-argmatch.c: Likewise.
55993         * tests/test-argp-2.sh: Likewise.
55994         * tests/test-argp.c: Likewise.
55995         * tests/test-arpa_inet.c: Likewise.
55996         * tests/test-array_list.c: Likewise.
55997         * tests/test-array_oset.c: Likewise.
55998         * tests/test-atexit.c: Likewise.
55999         * tests/test-avltree_list.c: Likewise.
56000         * tests/test-avltree_oset.c: Likewise.
56001         * tests/test-avltreehash_list.c: Likewise.
56002         * tests/test-base64.c: Likewise.
56003         * tests/test-binary-io.c: Likewise.
56004         * tests/test-byteswap.c: Likewise.
56005         * tests/test-c-ctype.c: Likewise.
56006         * tests/test-c-strcasecmp.c: Likewise.
56007         * tests/test-c-strcasestr.c: Likewise.
56008         * tests/test-c-strncasecmp.c: Likewise.
56009         * tests/test-c-strstr.c: Likewise.
56010         * tests/test-canonicalize-lgpl.c: Likewise.
56011         * tests/test-canonicalize.c: Likewise.
56012         * tests/test-carray_list.c: Likewise.
56013         * tests/test-ceilf.c: Likewise.
56014         * tests/test-ceill.c: Likewise.
56015         * tests/test-count-one-bits.c: Likewise.
56016         * tests/test-crc.c: Likewise.
56017         * tests/test-dirname.c: Likewise.
56018         * tests/test-fbufmode.c: Likewise.
56019         * tests/test-fcntl.c: Likewise.
56020         * tests/test-fflush.c: Likewise.
56021         * tests/test-floorf.c: Likewise.
56022         * tests/test-floorl.c: Likewise.
56023         * tests/test-fopen.c: Likewise.
56024         * tests/test-fprintf-posix.c: Likewise.
56025         * tests/test-fprintf-posix.h: Likewise.
56026         * tests/test-fpurge.c: Likewise.
56027         * tests/test-freadable.c: Likewise.
56028         * tests/test-freadahead.c: Likewise.
56029         * tests/test-freading.c: Likewise.
56030         * tests/test-freopen.c: Likewise.
56031         * tests/test-frexp.c: Likewise.
56032         * tests/test-frexpl.c: Likewise.
56033         * tests/test-fseek.c: Likewise.
56034         * tests/test-fseeko.c: Likewise.
56035         * tests/test-fseterr.c: Likewise.
56036         * tests/test-fstrcmp.c: Likewise.
56037         * tests/test-ftell.c: Likewise.
56038         * tests/test-ftello.c: Likewise.
56039         * tests/test-fwritable.c: Likewise.
56040         * tests/test-fwriting.c: Likewise.
56041         * tests/test-getaddrinfo.c: Likewise.
56042         * tests/test-getpass.c: Likewise.
56043         * tests/test-gettimeofday.c: Likewise.
56044         * tests/test-hmac-md5.c: Likewise.
56045         * tests/test-hmac-sha1.c: Likewise.
56046         * tests/test-iconv.c: Likewise.
56047         * tests/test-iconvme.c: Likewise.
56048         * tests/test-inttypes.c: Likewise.
56049         * tests/test-isnan.c: Likewise.
56050         * tests/test-isnanf.c: Likewise.
56051         * tests/test-isnanl-nolibm.c: Likewise.
56052         * tests/test-isnanl.c: Likewise.
56053         * tests/test-isnanl.h: Likewise.
56054         * tests/test-ldexpl.c: Likewise.
56055         * tests/test-linked_list.c: Likewise.
56056         * tests/test-linkedhash_list.c: Likewise.
56057         * tests/test-locale.c: Likewise.
56058         * tests/test-localename.c: Likewise.
56059         * tests/test-lock.c: Likewise.
56060         * tests/test-lseek.c: Likewise.
56061         * tests/test-malloca.c: Likewise.
56062         * tests/test-math.c: Likewise.
56063         * tests/test-mbscasecmp.c: Likewise.
56064         * tests/test-mbscasestr1.c: Likewise.
56065         * tests/test-mbscasestr2.c: Likewise.
56066         * tests/test-mbscasestr3.c: Likewise.
56067         * tests/test-mbscasestr4.c: Likewise.
56068         * tests/test-mbschr.c: Likewise.
56069         * tests/test-mbscspn.c: Likewise.
56070         * tests/test-mbsncasecmp.c: Likewise.
56071         * tests/test-mbspbrk.c: Likewise.
56072         * tests/test-mbspcasecmp.c: Likewise.
56073         * tests/test-mbsrchr.c: Likewise.
56074         * tests/test-mbsspn.c: Likewise.
56075         * tests/test-mbsstr1.c: Likewise.
56076         * tests/test-mbsstr2.c: Likewise.
56077         * tests/test-mbsstr3.c: Likewise.
56078         * tests/test-md5.c: Likewise.
56079         * tests/test-memmem.c: Likewise.
56080         * tests/test-netinet_in.c: Likewise.
56081         * tests/test-open.c: Likewise.
56082         * tests/test-printf-frexp.c: Likewise.
56083         * tests/test-printf-frexpl.c: Likewise.
56084         * tests/test-printf-posix.c: Likewise.
56085         * tests/test-printf-posix.h: Likewise.
56086         * tests/test-rbtree_list.c: Likewise.
56087         * tests/test-rbtree_oset.c: Likewise.
56088         * tests/test-rbtreehash_list.c: Likewise.
56089         * tests/test-read-file.c: Likewise.
56090         * tests/test-rijndael.c: Likewise.
56091         * tests/test-search.c: Likewise.
56092         * tests/test-signbit.c: Likewise.
56093         * tests/test-sleep.c: Likewise.
56094         * tests/test-snprintf-posix.c: Likewise.
56095         * tests/test-snprintf-posix.h: Likewise.
56096         * tests/test-snprintf.c: Likewise.
56097         * tests/test-sprintf-posix.c: Likewise.
56098         * tests/test-sprintf-posix.h: Likewise.
56099         * tests/test-stat-time.c: Likewise.
56100         * tests/test-stdbool.c: Likewise.
56101         * tests/test-stdint.c: Likewise.
56102         * tests/test-stdio.c: Likewise.
56103         * tests/test-stdlib.c: Likewise.
56104         * tests/test-stpncpy.c: Likewise.
56105         * tests/test-strcasestr.c: Likewise.
56106         * tests/test-striconv.c: Likewise.
56107         * tests/test-striconveh.c: Likewise.
56108         * tests/test-striconveha.c: Likewise.
56109         * tests/test-string.c: Likewise.
56110         * tests/test-sys_select.c: Likewise.
56111         * tests/test-sys_socket.c: Likewise.
56112         * tests/test-sys_stat.c: Likewise.
56113         * tests/test-sys_time.c: Likewise.
56114         * tests/test-sysexits.c: Likewise.
56115         * tests/test-time.c: Likewise.
56116         * tests/test-tls.c: Likewise.
56117         * tests/test-trunc.c: Likewise.
56118         * tests/test-truncf.c: Likewise.
56119         * tests/test-truncl.c: Likewise.
56120         * tests/test-unistd.c: Likewise.
56121         * tests/test-vasnprintf-posix.c: Likewise.
56122         * tests/test-vasnprintf-posix2.c: Likewise.
56123         * tests/test-vasnprintf.c: Likewise.
56124         * tests/test-vasprintf-posix.c: Likewise.
56125         * tests/test-vasprintf.c: Likewise.
56126         * tests/test-verify.c: Likewise.
56127         * tests/test-vfprintf-posix.c: Likewise.
56128         * tests/test-vprintf-posix.c: Likewise.
56129         * tests/test-vsnprintf-posix.c: Likewise.
56130         * tests/test-vsnprintf.c: Likewise.
56131         * tests/test-vsprintf-posix.c: Likewise.
56132         * tests/test-wchar.c: Likewise.
56133         * tests/test-wctype.c: Likewise.
56134         * tests/test-wcwidth.c: Likewise.
56135         * tests/test-xstrtol.c: Likewise.
56136         * tests/test-xvasprintf.c: Likewise.
56137         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56138         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56139         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56140         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56141         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56142         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56143         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56144         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56145         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56146         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56147         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56148         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56149         * tests/uniname/test-uninames.c: Likewise.
56150         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56151         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56152         * tests/unistdio/test-u16-printf1.h: Likewise.
56153         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56154         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56155         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56156         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56157         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56158         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56159         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56160         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56161         * tests/unistdio/test-u32-printf1.h: Likewise.
56162         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56163         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56164         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56165         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56166         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56167         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56168         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56169         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56170         * tests/unistdio/test-u8-printf1.h: Likewise.
56171         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56172         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56173         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56174         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56175         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56176         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56177         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56178         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56179         * tests/unistdio/test-ulc-printf1.h: Likewise.
56180         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56181         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56182         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56183         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56184         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56185         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56186         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56187         * tests/uniwidth/test-u16-width.c: Likewise.
56188         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56189         * tests/uniwidth/test-u32-width.c: Likewise.
56190         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56191         * tests/uniwidth/test-u8-width.c: Likewise.
56192         * tests/uniwidth/test-uc_width.c: Likewise.
56193         * config/srclist-update: Likewise.
56194         (fixlicense): Update to GPLv3+.
56195
56196         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56197         * tests/test-tsearch.c: Change copyright notice.
56198
56199         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56200         * lib/c-strcaseeq.h: Change copyright notice.
56201         * lib/streq.h: Likewise.
56202         * lib/uniconv.h: Likewise.
56203         * lib/uniconv/u-conv-from-enc.h: Likewise.
56204         * lib/uniconv/u-conv-to-enc.h: Likewise.
56205         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56206         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56207         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56208         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56209         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56210         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56211         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56212         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56213         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56214         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56215         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56216         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56217         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56218         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56219         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56220         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56221         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56222         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56223         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56224         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56225         * lib/uniname.h: Likewise.
56226         * lib/uniname/uniname.c: Likewise.
56227         * lib/unistdio.h: Likewise.
56228         * lib/unistdio/u-asnprintf.h: Likewise.
56229         * lib/unistdio/u-asprintf.h: Likewise.
56230         * lib/unistdio/u-printf-args.c: Likewise.
56231         * lib/unistdio/u-printf-args.h: Likewise.
56232         * lib/unistdio/u-printf-parse.h: Likewise.
56233         * lib/unistdio/u-snprintf.h: Likewise.
56234         * lib/unistdio/u-sprintf.h: Likewise.
56235         * lib/unistdio/u-vasprintf.h: Likewise.
56236         * lib/unistdio/u-vsnprintf.h: Likewise.
56237         * lib/unistdio/u-vsprintf.h: Likewise.
56238         * lib/unistdio/u16-asnprintf.c: Likewise.
56239         * lib/unistdio/u16-asprintf.c: Likewise.
56240         * lib/unistdio/u16-printf-parse.c: Likewise.
56241         * lib/unistdio/u16-snprintf.c: Likewise.
56242         * lib/unistdio/u16-sprintf.c: Likewise.
56243         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56244         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56245         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56246         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56247         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56248         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56249         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56250         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56251         * lib/unistdio/u16-vasnprintf.c: Likewise.
56252         * lib/unistdio/u16-vasprintf.c: Likewise.
56253         * lib/unistdio/u16-vsnprintf.c: Likewise.
56254         * lib/unistdio/u16-vsprintf.c: Likewise.
56255         * lib/unistdio/u32-asnprintf.c: Likewise.
56256         * lib/unistdio/u32-asprintf.c: Likewise.
56257         * lib/unistdio/u32-printf-parse.c: Likewise.
56258         * lib/unistdio/u32-snprintf.c: Likewise.
56259         * lib/unistdio/u32-sprintf.c: Likewise.
56260         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56261         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56262         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56263         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56264         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56265         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56266         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56267         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56268         * lib/unistdio/u32-vasnprintf.c: Likewise.
56269         * lib/unistdio/u32-vasprintf.c: Likewise.
56270         * lib/unistdio/u32-vsnprintf.c: Likewise.
56271         * lib/unistdio/u32-vsprintf.c: Likewise.
56272         * lib/unistdio/u8-asnprintf.c: Likewise.
56273         * lib/unistdio/u8-asprintf.c: Likewise.
56274         * lib/unistdio/u8-printf-parse.c: Likewise.
56275         * lib/unistdio/u8-snprintf.c: Likewise.
56276         * lib/unistdio/u8-sprintf.c: Likewise.
56277         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56278         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56279         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56280         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56281         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56282         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56283         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56284         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56285         * lib/unistdio/u8-vasnprintf.c: Likewise.
56286         * lib/unistdio/u8-vasprintf.c: Likewise.
56287         * lib/unistdio/u8-vsnprintf.c: Likewise.
56288         * lib/unistdio/u8-vsprintf.c: Likewise.
56289         * lib/unistdio/ulc-asnprintf.c: Likewise.
56290         * lib/unistdio/ulc-asprintf.c: Likewise.
56291         * lib/unistdio/ulc-printf-parse.c: Likewise.
56292         * lib/unistdio/ulc-snprintf.c: Likewise.
56293         * lib/unistdio/ulc-sprintf.c: Likewise.
56294         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56295         * lib/unistdio/ulc-vasprintf.c: Likewise.
56296         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56297         * lib/unistdio/ulc-vsprintf.c: Likewise.
56298         * lib/unistr.h: Likewise.
56299         * lib/unistr/u-cpy-alloc.h: Likewise.
56300         * lib/unistr/u-cpy.h: Likewise.
56301         * lib/unistr/u-endswith.h: Likewise.
56302         * lib/unistr/u-move.h: Likewise.
56303         * lib/unistr/u-set.h: Likewise.
56304         * lib/unistr/u-startswith.h: Likewise.
56305         * lib/unistr/u-stpcpy.h: Likewise.
56306         * lib/unistr/u-stpncpy.h: Likewise.
56307         * lib/unistr/u-strcat.h: Likewise.
56308         * lib/unistr/u-strcpy.h: Likewise.
56309         * lib/unistr/u-strcspn.h: Likewise.
56310         * lib/unistr/u-strdup.h: Likewise.
56311         * lib/unistr/u-strlen.h: Likewise.
56312         * lib/unistr/u-strncat.h: Likewise.
56313         * lib/unistr/u-strncpy.h: Likewise.
56314         * lib/unistr/u-strnlen.h: Likewise.
56315         * lib/unistr/u-strpbrk.h: Likewise.
56316         * lib/unistr/u-strspn.h: Likewise.
56317         * lib/unistr/u-strstr.h: Likewise.
56318         * lib/unistr/u-strtok.h: Likewise.
56319         * lib/unistr/u16-check.c: Likewise.
56320         * lib/unistr/u16-chr.c: Likewise.
56321         * lib/unistr/u16-cmp.c: Likewise.
56322         * lib/unistr/u16-cpy-alloc.c: Likewise.
56323         * lib/unistr/u16-cpy.c: Likewise.
56324         * lib/unistr/u16-endswith.c: Likewise.
56325         * lib/unistr/u16-mblen.c: Likewise.
56326         * lib/unistr/u16-mbsnlen.c: Likewise.
56327         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56328         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56329         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56330         * lib/unistr/u16-mbtouc.c: Likewise.
56331         * lib/unistr/u16-mbtoucr.c: Likewise.
56332         * lib/unistr/u16-move.c: Likewise.
56333         * lib/unistr/u16-next.c: Likewise.
56334         * lib/unistr/u16-prev.c: Likewise.
56335         * lib/unistr/u16-set.c: Likewise.
56336         * lib/unistr/u16-startswith.c: Likewise.
56337         * lib/unistr/u16-stpcpy.c: Likewise.
56338         * lib/unistr/u16-stpncpy.c: Likewise.
56339         * lib/unistr/u16-strcat.c: Likewise.
56340         * lib/unistr/u16-strchr.c: Likewise.
56341         * lib/unistr/u16-strcmp.c: Likewise.
56342         * lib/unistr/u16-strcpy.c: Likewise.
56343         * lib/unistr/u16-strcspn.c: Likewise.
56344         * lib/unistr/u16-strdup.c: Likewise.
56345         * lib/unistr/u16-strlen.c: Likewise.
56346         * lib/unistr/u16-strmblen.c: Likewise.
56347         * lib/unistr/u16-strmbtouc.c: Likewise.
56348         * lib/unistr/u16-strncat.c: Likewise.
56349         * lib/unistr/u16-strncmp.c: Likewise.
56350         * lib/unistr/u16-strncpy.c: Likewise.
56351         * lib/unistr/u16-strnlen.c: Likewise.
56352         * lib/unistr/u16-strpbrk.c: Likewise.
56353         * lib/unistr/u16-strrchr.c: Likewise.
56354         * lib/unistr/u16-strspn.c: Likewise.
56355         * lib/unistr/u16-strstr.c: Likewise.
56356         * lib/unistr/u16-strtok.c: Likewise.
56357         * lib/unistr/u16-to-u32.c: Likewise.
56358         * lib/unistr/u16-to-u8.c: Likewise.
56359         * lib/unistr/u16-uctomb-aux.c: Likewise.
56360         * lib/unistr/u16-uctomb.c: Likewise.
56361         * lib/unistr/u32-check.c: Likewise.
56362         * lib/unistr/u32-chr.c: Likewise.
56363         * lib/unistr/u32-cmp.c: Likewise.
56364         * lib/unistr/u32-cpy-alloc.c: Likewise.
56365         * lib/unistr/u32-cpy.c: Likewise.
56366         * lib/unistr/u32-endswith.c: Likewise.
56367         * lib/unistr/u32-mblen.c: Likewise.
56368         * lib/unistr/u32-mbsnlen.c: Likewise.
56369         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56370         * lib/unistr/u32-mbtouc.c: Likewise.
56371         * lib/unistr/u32-mbtoucr.c: Likewise.
56372         * lib/unistr/u32-move.c: Likewise.
56373         * lib/unistr/u32-next.c: Likewise.
56374         * lib/unistr/u32-prev.c: Likewise.
56375         * lib/unistr/u32-set.c: Likewise.
56376         * lib/unistr/u32-startswith.c: Likewise.
56377         * lib/unistr/u32-stpcpy.c: Likewise.
56378         * lib/unistr/u32-stpncpy.c: Likewise.
56379         * lib/unistr/u32-strcat.c: Likewise.
56380         * lib/unistr/u32-strchr.c: Likewise.
56381         * lib/unistr/u32-strcmp.c: Likewise.
56382         * lib/unistr/u32-strcpy.c: Likewise.
56383         * lib/unistr/u32-strcspn.c: Likewise.
56384         * lib/unistr/u32-strdup.c: Likewise.
56385         * lib/unistr/u32-strlen.c: Likewise.
56386         * lib/unistr/u32-strmblen.c: Likewise.
56387         * lib/unistr/u32-strmbtouc.c: Likewise.
56388         * lib/unistr/u32-strncat.c: Likewise.
56389         * lib/unistr/u32-strncmp.c: Likewise.
56390         * lib/unistr/u32-strncpy.c: Likewise.
56391         * lib/unistr/u32-strnlen.c: Likewise.
56392         * lib/unistr/u32-strpbrk.c: Likewise.
56393         * lib/unistr/u32-strrchr.c: Likewise.
56394         * lib/unistr/u32-strspn.c: Likewise.
56395         * lib/unistr/u32-strstr.c: Likewise.
56396         * lib/unistr/u32-strtok.c: Likewise.
56397         * lib/unistr/u32-to-u16.c: Likewise.
56398         * lib/unistr/u32-to-u8.c: Likewise.
56399         * lib/unistr/u32-uctomb.c: Likewise.
56400         * lib/unistr/u8-check.c: Likewise.
56401         * lib/unistr/u8-chr.c: Likewise.
56402         * lib/unistr/u8-cmp.c: Likewise.
56403         * lib/unistr/u8-cpy-alloc.c: Likewise.
56404         * lib/unistr/u8-cpy.c: Likewise.
56405         * lib/unistr/u8-endswith.c: Likewise.
56406         * lib/unistr/u8-mblen.c: Likewise.
56407         * lib/unistr/u8-mbsnlen.c: Likewise.
56408         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56409         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56410         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56411         * lib/unistr/u8-mbtouc.c: Likewise.
56412         * lib/unistr/u8-mbtoucr.c: Likewise.
56413         * lib/unistr/u8-move.c: Likewise.
56414         * lib/unistr/u8-next.c: Likewise.
56415         * lib/unistr/u8-prev.c: Likewise.
56416         * lib/unistr/u8-set.c: Likewise.
56417         * lib/unistr/u8-startswith.c: Likewise.
56418         * lib/unistr/u8-stpcpy.c: Likewise.
56419         * lib/unistr/u8-stpncpy.c: Likewise.
56420         * lib/unistr/u8-strcat.c: Likewise.
56421         * lib/unistr/u8-strchr.c: Likewise.
56422         * lib/unistr/u8-strcmp.c: Likewise.
56423         * lib/unistr/u8-strcpy.c: Likewise.
56424         * lib/unistr/u8-strcspn.c: Likewise.
56425         * lib/unistr/u8-strdup.c: Likewise.
56426         * lib/unistr/u8-strlen.c: Likewise.
56427         * lib/unistr/u8-strmblen.c: Likewise.
56428         * lib/unistr/u8-strmbtouc.c: Likewise.
56429         * lib/unistr/u8-strncat.c: Likewise.
56430         * lib/unistr/u8-strncmp.c: Likewise.
56431         * lib/unistr/u8-strncpy.c: Likewise.
56432         * lib/unistr/u8-strnlen.c: Likewise.
56433         * lib/unistr/u8-strpbrk.c: Likewise.
56434         * lib/unistr/u8-strrchr.c: Likewise.
56435         * lib/unistr/u8-strspn.c: Likewise.
56436         * lib/unistr/u8-strstr.c: Likewise.
56437         * lib/unistr/u8-strtok.c: Likewise.
56438         * lib/unistr/u8-to-u16.c: Likewise.
56439         * lib/unistr/u8-to-u32.c: Likewise.
56440         * lib/unistr/u8-uctomb-aux.c: Likewise.
56441         * lib/unistr/u8-uctomb.c: Likewise.
56442         * lib/unitypes.h: Likewise.
56443         * lib/uniwidth.h: Likewise.
56444         * lib/uniwidth/cjk.h: Likewise.
56445         * lib/uniwidth/u16-strwidth.c: Likewise.
56446         * lib/uniwidth/u16-width.c: Likewise.
56447         * lib/uniwidth/u32-strwidth.c: Likewise.
56448         * lib/uniwidth/u32-width.c: Likewise.
56449         * lib/uniwidth/u8-strwidth.c: Likewise.
56450         * lib/uniwidth/u8-width.c: Likewise.
56451         * lib/uniwidth/width.c: Likewise.
56452
56453 2007-10-07  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56456         The file is still under LGPL (see modules/inttypes).
56457
56458 2007-10-06  Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/trunc (Dependencies): Add 'extensions'.
56461         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56462         Reported by Ben Pfaff <blp@gnu.org>.
56463
56464 2007-10-06  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/freopen-tests: New file.
56467         * tests/test-freopen.c: New file.
56468
56469         * modules/fopen-tests: New file.
56470         * tests/test-fopen.c: New file.
56471
56472         * modules/fopen: New file.
56473         * lib/fopen.c: New file.
56474         * m4/fopen.m4: New file.
56475         * modules/freopen: New file.
56476         * lib/freopen.c: New file.
56477         * m4/freopen.m4: New file.
56478         * lib/stdio.in.h (fopen, freopen): New declarations.
56479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56480         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56481         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56482         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56483         * doc/functions/fopen.texi: Mention the 'fopen' module.
56484         * doc/functions/freopen.texi: Mention the 'freopen' module.
56485
56486 2007-10-06  Bruno Haible  <bruno@clisp.org>
56487
56488         * modules/open-tests: New file.
56489         * tests/test-open.c: New file.
56490
56491         * modules/open: New file.
56492         * lib/open.c: New file.
56493         * m4/open.m4: New file.
56494         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56495         lib/open.c does.
56496         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56497         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56498         macros.
56499         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56500         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56501         REPLACE_OPEN.
56502         * doc/functions/open.texi: Mention the 'open' module.
56503
56504 2007-10-04  Bruno Haible  <bruno@clisp.org>
56505
56506         * modules/ceill-tests: New file.
56507         * tests/test-ceill.c: New file.
56508
56509         * modules/ceill: New file.
56510         * lib/ceill.c: Replace entire file.
56511         * m4/ceill.m4: New file.
56512         * lib/math.in.h (ceill): Replace declaration.
56513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56514         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56515         * doc/functions/ceill.texi: Mention the 'ceill' module.
56516         * modules/mathl (Files): Remove lib/ceill.c.
56517         (Depends-on): Add ceill.
56518
56519 2007-10-04  Bruno Haible  <bruno@clisp.org>
56520
56521         * modules/ceilf-tests: New file.
56522         * tests/test-ceilf.c: New file.
56523
56524         * modules/ceilf: New file.
56525         * lib/ceil.c: New file.
56526         * lib/ceilf.c: New file.
56527         * m4/ceilf.m4: New file.
56528         * lib/math.in.h (ceilf): New declaration.
56529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56530         HAVE_DECL_CEILF.
56531         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56532         HAVE_DECL_CEILF.
56533         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56534
56535 2007-10-04  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/floorl-tests: New file.
56538         * tests/test-floorl.c: New file.
56539
56540         * modules/floorl: New file.
56541         * lib/floorl.c: Replace entire file.
56542         * m4/floorl.m4: New file.
56543         * lib/math.in.h (floorl): Replace declaration.
56544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56545         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56546         * doc/functions/floorl.texi: Mention the 'floorl' module.
56547         * modules/mathl (Files): Remove lib/floorl.c.
56548         (Depends-on): Add floorl.
56549
56550 2007-10-04  Bruno Haible  <bruno@clisp.org>
56551
56552         * modules/floorf-tests: New file.
56553         * tests/test-floorf.c: New file.
56554
56555         * modules/floorf: New file.
56556         * lib/floor.c: New file.
56557         * lib/floorf.c: New file.
56558         * m4/floorf.m4: New file.
56559         * lib/math.in.h (floorf): New declaration.
56560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56561         HAVE_DECL_FLOORF.
56562         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56563         HAVE_DECL_FLOORF.
56564         * doc/functions/floorf.texi: Mention the 'floorf' module.
56565
56566 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56567             Bruno Haible  <bruno@clisp.org>
56568
56569         Advertise for the Git server instead of the CVS server.
56570         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56571         repository instead of the CVS one.
56572         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56573         about all VCS systems generically.
56574         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56575
56576 2007-10-04  Bruno Haible  <bruno@clisp.org>
56577
56578         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56579         means.
56580         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56581
56582 2007-10-04  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/truncl-tests: New file.
56585         * tests/test-truncl.c: New file.
56586
56587         * modules/truncl: New file.
56588         * lib/truncl.c: New file.
56589         * m4/truncl.m4: New file.
56590         * lib/math.in.h (truncl): New declaration.
56591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56592         HAVE_DECL_TRUNCL.
56593         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56594         HAVE_DECL_TRUNCL.
56595         * doc/functions/truncl.texi: Mention the 'truncl' module.
56596
56597 2007-10-04  Bruno Haible  <bruno@clisp.org>
56598
56599         * modules/truncf-tests: New file.
56600         * tests/test-truncf.c: New file.
56601
56602         * modules/truncf: New file.
56603         * lib/trunc.c: Make paramerizable through USE_* macros.
56604         * lib/truncf.c: New file.
56605         * m4/truncf.m4: New file.
56606         * lib/math.in.h (truncf): New declaration.
56607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56608         HAVE_DECL_TRUNCF.
56609         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56610         HAVE_DECL_TRUNCF.
56611         * doc/functions/truncf.texi: Mention the 'truncf' module.
56612
56613 2007-10-03  Bruno Haible  <bruno@clisp.org>
56614
56615         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56616         augmentation also for tests modules.
56617         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56618         * modules/atexit-tests (Makefile.am): Likewise.
56619         * modules/binary-io-tests (Makefile.am): Likewise.
56620         * modules/c-strcase-tests (Makefile.am): Likewise.
56621         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56622         * modules/canonicalize-tests (Makefile.am): Likewise.
56623         * modules/closein-tests (Makefile.am): Likewise.
56624         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56625         * modules/freadahead-tests (Makefile.am): Likewise.
56626         * modules/fseek-tests (Makefile.am): Likewise.
56627         * modules/fseeko-tests (Makefile.am): Likewise.
56628         * modules/ftell-tests (Makefile.am): Likewise.
56629         * modules/ftello-tests (Makefile.am): Likewise.
56630         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56631         * modules/isnanl-tests (Makefile.am): Likewise.
56632         * modules/lseek-tests (Makefile.am): Likewise.
56633         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56634         * modules/mbscasestr-tests (Makefile.am): Likewise.
56635         * modules/mbschr-tests (Makefile.am): Likewise.
56636         * modules/mbscspn-tests (Makefile.am): Likewise.
56637         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56638         * modules/mbspbrk-tests (Makefile.am): Likewise.
56639         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56640         * modules/mbsrchr-tests (Makefile.am): Likewise.
56641         * modules/mbsspn-tests (Makefile.am): Likewise.
56642         * modules/mbsstr-tests (Makefile.am): Likewise.
56643         * modules/printf-posix-tests (Makefile.am): Likewise.
56644         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56645         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56646         * modules/tsearch-tests (Makefile.am): Likewise.
56647         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56648         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56649         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56650         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56651         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56652         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56653         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56654         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56655         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56656         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56657         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56658         * modules/xstrtol-tests (Makefile.am): Likewise.
56659         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56660         * modules/yesno-tests (Makefile.am): Likewise.
56661
56662 2007-10-03  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/trunc-tests: New file.
56665         * tests/test-trunc.c: New file.
56666
56667         * modules/trunc: New file.
56668         * lib/trunc.c: New file.
56669         * m4/trunc.m4: New file.
56670         * lib/math.in.h (trunc): New declaration.
56671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56672         HAVE_DECL_TRUNC.
56673         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56674         HAVE_DECL_TRUNC.
56675         * doc/functions/trunc.texi: Mention the 'trunc' module.
56676
56677 2007-10-03  Bruno Haible  <bruno@clisp.org>
56678
56679         * tests/test-fpending.c: New file, mostly copied
56680         from coreutils/lib/t-fpending.c.
56681         * modules/fpending-tests: New file.
56682
56683 2007-10-03  Bruno Haible  <bruno@clisp.org>
56684
56685         Port the stdio extensions to QNX (untested).
56686         * lib/fseterr.c (fseterr): Add support for QNX.
56687         * lib/fbufmode.c (fbufmode): Likewise.
56688         * lib/freadable.c (freadable): Likewise.
56689         * lib/fwritable.c (fwritable): Likewise.
56690         * lib/freading.c (freading): Likewise.
56691         * lib/fwriting.c (fwriting): Likewise.
56692         * lib/freadahead.c (freadahed): Likewise.
56693         * lib/fpurge.c (fpurge): Likewise.
56694         * lib/fseeko.c (rpl_fseeko): Likewise.
56695
56696 2007-10-03  Bruno Haible  <bruno@clisp.org>
56697             Jim Meyering  <jim@meyering.net>
56698             Eric Blake  <ebb9@byu.net>
56699
56700         * doc/relocatable.texi: Use @command instead of @program.
56701
56702 2007-10-02  Jim Meyering  <jim@meyering.net>
56703
56704         Perform one more "_.h" -> ".in.h" substitution.
56705         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56706         instead of unistd_.h here, too.
56707
56708 2007-10-01  Bruno Haible  <bruno@clisp.org>
56709
56710         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56711         Needed for the alloca-opt module.
56712
56713 2007-09-30  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56716         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56717         alloca_.h.
56718         * lib/argz.in.h: Renamed from lib/argz_.h.
56719         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56720         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56721         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56722         byteswap_.h.
56723         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56724         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56725         dirent_.h.
56726         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56727         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56728         fcntl_.h.
56729         * lib/float.in.h: Renamed from lib/float_.h.
56730         * modules/float (Files, Makefile.am): Use float.in.h instead of
56731         float_.h.
56732         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56733         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56734         fnmatch_.h.
56735         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56736         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56737         getopt_.h.
56738         * lib/glob.in.h: Renamed from lib/glob_.h.
56739         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56740         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56741         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56742         iconv_.h.
56743         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56744         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56745         inttypes_.h.
56746         * lib/locale.in.h: Renamed from lib/locale_.h.
56747         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56748         locale_.h.
56749         * lib/math.in.h: Renamed from lib/math_.h.
56750         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56751         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56752         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56753         of netinet_in_.h. Add dependency.
56754         * lib/poll.in.h: Renamed from lib/poll_.h.
56755         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56756         * lib/search.in.h: Renamed from lib/search_.h.
56757         * modules/search (Files, Makefile.am): Use search.in.h instead of
56758         search_.h.
56759         * lib/signal.in.h: Renamed from lib/signal_.h.
56760         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56761         _signal.h.
56762         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56763         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56764         stdbool_.h.
56765         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56766         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56767         stdint_.h.
56768         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56769         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56770         stdio_.h.
56771         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56772         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56773         stdlib_.h.
56774         * lib/string.in.h: Renamed from lib/string_.h.
56775         * modules/string (Files, Makefile.am): Use string.in.h instead of
56776         string_.h.
56777         * doc/gnulib-tool.texi (Initial import): Update.
56778         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56779         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56780         of sys_select_.h. Add dependency.
56781         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56782         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56783         of sys_socket_.h.
56784         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56785         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56786         sys_stat_.h.
56787         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56788         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56789         sys_time_.h.
56790         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56791         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56792         sysexits_.h.
56793         * lib/time.in.h: Renamed from lib/time_.h.
56794         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56795         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56796         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56797         unistd_.h.
56798         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56799         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56800         wchar_.h.
56801         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56802         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56803         wctype_.h.
56804         * build-aux/bootstrap (slurp): Update.
56805         * lib/.cppi-disable: Update.
56806
56807 2007-09-30  Bruno Haible  <bruno@clisp.org>
56808
56809         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56810         Needed on BeOS.
56811
56812 2007-09-30  Bruno Haible  <bruno@clisp.org>
56813
56814         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56815
56816 2007-09-29  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56819
56820 2007-09-29  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56823         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56824         * build-aux/install-reloc: Compile also areadlink.c.
56825         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56826
56827 2007-09-29  Bruno Haible  <bruno@clisp.org>
56828
56829         * gnulib-tool (func_emit_initmacro_done): Indentation.
56830
56831 2007-09-29  Bruno Haible  <bruno@clisp.org>
56832
56833         * README: Add CVS checkout update instructions.
56834         Info from Bob Proulx <bob@proulx.com>.
56835
56836 2007-09-28  Eric Blake  <ebb9@byu.net>
56837
56838         Provide move-if-change.
56839         * build-aux/move-if-change: New file, based on best practice
56840         rather than any canonical upstream location.
56841
56842 2007-09-28  Jim Meyering  <jim@meyering.net>
56843
56844         Fix canonicalize loop-detection corner case.
56845         Do not attempt to stat the symlink values stored via seen_triple.
56846         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56847         on linux-2.6.18, (but not 2.6.22).
56848         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56849         triple_compare.  The former compares dev,ino,filename, while the latter
56850         would actually stat dirname(filename) when dev and ino were equal.
56851         * lib/hash-triple.c: Install <string.h>.
56852         (STREQ): Define.
56853         (triple_compare_ino_str): New function.
56854         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56855
56856 2007-09-28  Eric Blake  <ebb9@byu.net>
56857
56858         Enforce that AC_REPLACE_FUNCS files exist.
56859         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56860         override check for typos.
56861
56862         Fix test-closein on Solaris 10.
56863         * tests/test-closein.c (main): Don't assume stdin can be inherited
56864         closed on all systems.
56865         * tests/test-closein.sh: Likewise.
56866         Reported by Piotr Tarnowski.
56867
56868 2007-09-28  Jim Meyering  <jim@meyering.net>
56869
56870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56871
56872 2007-09-27  Jim Meyering  <jim@meyering.net>
56873
56874         canonicalize: Avoid a false-positive cycle failure.
56875         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56876         Sort.  Remove cycle-check.
56877         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56878         not cycle-check.h.
56879         (seen_triple): New function.
56880         (canonicalize_filename_mode): Use it instead of cycle-check.
56881         * tests/test-canonicalize.c: Add a test for this bug.
56882         * tests/test-canonicalize.sh: Set up and run the test.
56883
56884         New module, file-set, from coreutils.
56885         * modules/file-set: Define it.
56886         * lib/file-set.c, lib/file-set.h: Implement.
56887
56888         New module, hash-triple, from coreutils.
56889         * modules/hash-triple: Define it.
56890         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56891
56892 2007-09-25  Eric Blake  <ebb9@byu.net>
56893
56894         Fix strerror on Interix.
56895         * lib/string_.h (strerror): Declare replacement.
56896         * doc/functions/strerror.texi (strerror): Document the Interix
56897         shortcoming.
56898         * modules/string (Makefile.am): Support new hooks.
56899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56900         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56901         gl_FUNC_STRERROR_SEPARATE.
56902         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56903         * lib/strerror.c (rpl_strerror): Provide replacement.
56904         * modules/strerror (Depends-on): Add string.
56905         (configure.ac): Detect use of module.
56906         * tests/test-strerror.c: New file.
56907         * modules/strerror-tests: New test module.
56908         * modules/argp (Depends-on): Add strerror.
56909         * modules/error (Depends-on): Likewise.
56910         Reported by Martin Koeppe.
56911
56912 2007-09-24  Bruno Haible  <bruno@clisp.org>
56913
56914         * README: Update git instructions.
56915
56916 2007-09-24  Eric Blake  <ebb9@byu.net>
56917
56918         Revert fpending breakage from 2007-09-08.
56919         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56920         __fpending.c.
56921
56922 2007-09-24  Jim Meyering  <jim@meyering.net>
56923
56924         filenamecat.c: Add a test.
56925         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56926         showing how the function works when DIR is the empty string.
56927
56928 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56929
56930         * tests/test-canonicalize.sh: Turn on executable bit.
56931
56932 2007-09-19  Eric Blake  <ebb9@byu.net>
56933
56934         * README: Update CVS instructions.
56935
56936 2007-09-18  Bruno Haible  <bruno@clisp.org>
56937
56938         * modules/areadlink: New file.
56939         * lib/areadlink.h (areadlink): New declaration.
56940         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56941
56942 2007-09-17  Jim Meyering  <jim@meyering.net>
56943
56944         * lib/savewd.c (ESTALE) [!defined]: Define.
56945         Reported to be required on Interix by Martin Koeppe.
56946
56947 2007-09-17  Bruno Haible  <bruno@clisp.org>
56948
56949         * gnulib-tool (func_version): Use $version.
56950
56951 2007-09-16  Bruno Haible  <bruno@clisp.org>
56952
56953         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56954         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56955         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56956         Reported by Greg Schafer <gschafer@zip.com.au>.
56957
56958 2007-09-15  Bruno Haible  <bruno@clisp.org>
56959
56960         * gnulib-tool (sed): Try a little harder to make bash understand the
56961         alias.
56962         Reported by Bruce Korb <bruce.korb@gmail.com>.
56963
56964 2007-09-13  Eric Blake  <ebb9@byu.net>
56965
56966         * ChangeLog: Remove conflict markers.
56967
56968 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56969
56970         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56971         Reported by Bruno Haible <bruno@clisp.org>.
56972
56973 2007-09-12  Bruno Haible  <bruno@clisp.org>
56974
56975         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56976         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56977         is not defined.
56978
56979 2007-09-12  Eric Blake  <ebb9@byu.net>
56980
56981         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56983         Autoconf definition.
56984         * modules/euidaccess (Depends-on): Add extensions, for
56985         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56986         * modules/fnmatch (Depends-on): Likewise.
56987         * modules/getaddrinfo (Depends-on): Likewise.
56988         * modules/getdelim (Depends-on): Likewise.
56989         * modules/getline (Depends-on): Likewise.
56990         * modules/getsubopt (Depends-on): Likewise.
56991         * modules/gettext (Depends-on): Likewise.
56992         * modules/group-member (Depends-on): Likewise.
56993         * modules/mbchar (Depends-on): Likewise.
56994         * modules/memmem (Depends-on): Likewise.
56995         * modules/mempcpy (Depends-on): Likewise.
56996         * modules/memrchr (Depends-on): Likewise.
56997         * modules/pagealign_alloc (Depends-on): Likewise.
56998         * modules/readutmp (Depends-on): Likewise.
56999         * modules/stpcpy (Depends-on): Likewise.
57000         * modules/stpncpy (Depends-on): Likewise.
57001         * modules/strchrnul (Depends-on): Likewise.
57002         * modules/strndup (Depends-on): Likewise.
57003         * modules/strsep (Depends-on): Likewise.
57004         * modules/strverscmp (Depends-on): Likewise.
57005         * modules/vasprintf (Depends-on): Likewise.
57006         * modules/wcwidth (Depends-on): Likewise.
57007         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57008         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57009         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57010         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57011         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57012         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57013         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57014         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57015         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57016         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57020         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57021         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57022         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57023         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57024         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57025         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57029         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57030         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57031         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57033         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57034         so that lock.m4 can be used in gettext without extensions module.
57035
57036 2007-09-11  Bruno Haible  <bruno@clisp.org>
57037
57038         * m4/isc-posix.m4: Remove file.
57039         Suggested by Eric Blake.
57040
57041 2007-09-11  Eric Blake  <ebb9@byu.net>
57042
57043         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57044
57045 2007-09-10  Bruno Haible  <bruno@clisp.org>
57046
57047         * posix-modules: Fix typo in error message.
57048         Reported by Matt <mkraai@beckman.com>.
57049
57050 2007-09-09  Bruno Haible  <bruno@clisp.org>
57051
57052         * doc/functions/getdelim.texi: Update list of platforms lacking the
57053         function.
57054         * doc/functions/getline.texi: Likewise.
57055
57056 2007-09-09  Jim Meyering  <jim@meyering.net>
57057
57058         * lib/hash.c (hash_initialize): Detect calloc failure.
57059         Reported by Bruno Haible.
57060
57061 2007-09-09  Bruno Haible  <bruno@clisp.org>
57062
57063         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57064         malloc or realloc fails.
57065
57066 2007-09-09  Bruno Haible  <bruno@clisp.org>
57067
57068         * modules/getcwd (Depends-on): Add malloc-posix.
57069         * modules/glob (Depends-on): Likewise.
57070         * modules/putenv (Depends-on): Likewise.
57071         * modules/strdup (Depends-on): Likewise.
57072         * modules/getdelim (Depends-on): Add realloc-posix.
57073         * modules/read-file (Depends-on): Likewise.
57074
57075 2007-09-09  Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57078         (gl_FUNC_MALLOC_POSIX): Require it.
57079         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57080         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57081         * modules/realloc (Files): Add m4/malloc.m4.
57082         * modules/calloc (Files): Likewise.
57083
57084 2007-09-09  Bruno Haible  <bruno@clisp.org>
57085
57086         * modules/malloc-posix: New file.
57087         * modules/malloc (Depends-on): Add malloc-posix.
57088         * lib/malloc.c: Include errno.h.
57089         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57090         and a POSIX-compatible malloc into a single function. Set ENOMEM
57091         when returning NULL.
57092         * m4/malloc.m4: New file.
57093         * doc/functions/malloc.texi: Mention the malloc-posix module.
57094         * lib/stdlib_.h (malloc): New declaration.
57095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57096         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57097         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57098         and HAVE_MALLOC_POSIX.
57099
57100 2007-09-09  Bruno Haible  <bruno@clisp.org>
57101
57102         * modules/realloc-posix: New file.
57103         * modules/realloc (Depends-on): Add realloc-posix.
57104         * lib/realloc.c: Include errno.h.
57105         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57106         and a POSIX-compatible realloc into a single function. Set ENOMEM
57107         when returning NULL.
57108         * m4/realloc.m4: New file.
57109         * doc/functions/realloc.texi: Mention the realloc-posix module.
57110         * lib/stdlib_.h (realloc): New declaration.
57111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57112         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57113         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57114         and HAVE_REALLOC_POSIX.
57115
57116 2007-09-09  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/calloc-posix: New file.
57119         * modules/calloc (Depends-on): Add calloc-posix.
57120         * lib/calloc.c: Include errno.h.
57121         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57122         and a POSIX-compatible calloc into a single function. Set ENOMEM
57123         when returning NULL.
57124         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57125         * doc/functions/calloc.texi: Mention the calloc-posix module.
57126         * lib/stdlib_.h (calloc): New declaration.
57127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57128         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57129         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57130         and HAVE_CALLOC_POSIX.
57131
57132 2007-09-09  Bruno Haible  <bruno@clisp.org>
57133
57134         Allow for modules to show an arbitrary notice.
57135         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57136         * gnulib-tool: New option --extract-notice.
57137         (func_usage): Document it.
57138         (sed_extract_prog): Update.
57139         (func_get_notice): New function.
57140         (func_modules_notice): New function.
57141         (func_import, func_create_testdir): Invoke it.
57142         Suggested by Jim Meyering.
57143
57144 2007-09-09  Bruno Haible  <bruno@clisp.org>
57145
57146         * gnulib-tool: New options --verbose, --quiet.
57147         (func_usage): Document them.
57148         (verbose): New variable.
57149         (func_execute_command): New function.
57150         (func_import): Don't show the module list and the file list if
57151         $verbose < 0.
57152         (func_create_testdir): Likewise. Use func_execute_command.
57153         (func_create_megatestdir): Use func_execute_command.
57154
57155 2007-09-08  Bruno Haible  <bruno@clisp.org>
57156
57157         * gnulib-tool (func_import): Prefer rsync over wget when available,
57158         for fetching the PO files.
57159
57160 2007-09-08  Bruno Haible  <bruno@clisp.org>
57161
57162         * posix-modules: New file. Portions copied from gnulib-tool.
57163         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57164
57165 2007-09-08  Jim Meyering  <jim@meyering.net>
57166
57167         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57168         * lib/fpending.h: Rename from __fpending.h.
57169         * lib/fpending.c: Rename from __fpending.c.
57170         Include "fpending.h", not "__fpending.h".
57171         * lib/__fpending.h, lib/__fpending.c: Remove files.
57172         * modules/fpending (Files): Reflect new file names.
57173         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57174
57175 2007-09-08  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/inttypes-h.m4: Remove stub file.
57178
57179 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57180
57181         * doc/headers/stdint.texi: Discuss #include_next issue.
57182
57183 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57184
57185         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57186
57187 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57188
57189         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57190         in variable name.
57191
57192 2007-09-03  Jim Meyering  <jim@meyering.net>
57193
57194         New module: git-version-gen.
57195         * modules/git-version-gen: New file.
57196
57197         Import changes from coreutils for bootstrap script.
57198
57199         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57200
57201         bootstrap: uses rsync to download the .po files
57202         * build-aux/bootstrap (po_download_command_format): New global.
57203         (download_po_files): Use rsync.
57204         (update_po_files): Don't remove .po files after download,
57205         so future rsync runs can take advantage of the copies.
57206
57207         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57208
57209         Solve the unnecessary-.po-file-regeneration problem once and for all.
57210         * build-aux/bootstrap (download_po_files): New function, renamed from
57211         get_translations.  Now, downloads, but doesn't update LINGUAS.
57212         (update_po_files): New function.
57213
57214         bootstrap: Ignore more.
57215         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57216         uniwidth to e.g., lib/.gitignore.
57217         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57218
57219         * build-aux/bootstrap: New setting: vc_ignore.
57220         (insert_sorted_if_absent): Create $file if absent.
57221         Adapt to new, possibly empty, list: $vc_ignore.
57222
57223         bootstrap: generate more ignorable names
57224         * build-aux/bootstrap (slurp): When generating ignorable names,
57225         also map .sin to .sed, .gperf to .c, and .y to .c.
57226
57227 2007-09-03  Jim Meyering  <jim@meyering.net>
57228
57229         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57230         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57231
57232 2007-09-02  Bruno Haible  <bruno@clisp.org>
57233
57234         Fix mis-recognition of 'mcs' on QNX 6.
57235         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57236         output contains the string "Mono".
57237         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57238         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57239
57240 2007-09-01  Bruno Haible  <bruno@clisp.org>
57241
57242         Fix collision between uniwidth/* and linebreak modules.
57243         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57244         u32_width): Remove declarations.
57245         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57246         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57247         streq3, streq2, streq1, streq0): Remove functions.
57248         (STREQ): Remove macro.
57249         (is_cjk_encoding): Remove function.
57250         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57251         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57252         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57253         * NEWS: Document the change.
57254
57255 2007-09-01  Bruno Haible  <bruno@clisp.org>
57256
57257         * lib/streq.h: Add double-inclusion guard.
57258
57259 2007-09-01  Karl Berry  <karl@gnu.org>
57260
57261         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57262
57263 2007-08-28  Jim Meyering  <jim@meyering.net>
57264
57265         Rename mreadlink_with_size to areadlink_with_size.
57266         * NEWS: Document the change.
57267         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57268         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57269         * lib/mreadlink.h: Rename this to...
57270         * lib/areadlink.h: ...this.
57271         * modules/mreadlink-with-size: Rename this to...
57272         * modules/areadlink-with-size: ...this.
57273         * lib/canonicalize.c: Reflect the renaming.
57274         * modules/canonicalize: Likewise.
57275
57276 2007-08-26  Bruno Haible  <bruno@clisp.org>
57277
57278         * gnulib-tool (func_import): When deciding which files to remove,
57279         consider also dangling symbolic links.
57280         Reported by Eric Blake.
57281
57282 2007-08-26  Bruno Haible  <bruno@clisp.org>
57283
57284         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57285
57286 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57287
57288         * lib/readline.c: Don't include getline.h, the prototype is now
57289         found in stdio.h.
57290
57291 2007-08-23  Jim Meyering  <jim@meyering.net>
57292
57293         Getdelim touchup.
57294         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57295         around the funlockfile call, since funlockfile never sets errno.
57296         Don't set errno upon failed realloc.
57297
57298 2007-08-22  Eric Blake  <ebb9@byu.net>
57299
57300         Getline touchups.
57301         * lib/getdelim.c (getdelim): Revert regression that required *n to
57302         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57304         getdelim, rather than whether implementation is missing.
57305         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57306         * lib/stdio_.h (getline): Also declare if replacement is
57307         required.
57308         * doc/functions/getdelim.texi: New file.
57309         * doc/functions/getline.texi: Likewise.
57310         * doc/gnulib.texi (Function Substitutes): Add new files.
57311         Reported by Bruno Haible.
57312
57313 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57314
57315         * users.txt: Add Guile.
57316
57317 2007-08-22  Eric Blake  <ebb9@byu.net>
57318
57319         * tests/test-getdelim.c (main): Use remove, not unlink.
57320         * tests/test-getline.c (main): Likewise.
57321
57322         Move getline and getdelim into stdio.h, per POSIX 200x.
57323         * modules/getline (Files): Remove getline.h.
57324         (Depends-on): Add stdio.
57325         (configure.ac): Add module indicator.
57326         * modules/getdelim (Files): Remove getdelim.h.
57327         (Depends-on): Add stdio.
57328         (configure.ac): Add module indicator.
57329         * modules/stdio (Makefile.am): Work with new indicators.
57330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57331         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57332         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57333         * lib/getdelim.h: Delete.
57334         * lib/getline.h: Delete.
57335         * lib/stdio_.h (getdelim, getline): Declare.
57336         * modules/getdelim-tests: New module.
57337         * modules/getline-tests: Likewise.
57338         * tests/test-getdelim.c: New file.
57339         * tests/test-getline.c: Likewise.
57340         * NEWS: Document the change.
57341         * lib/getline.c: Update choice of header.
57342         * lib/csharpcomp.c: Likewise.
57343         * lib/getpass.c: Likewise.
57344         * lib/javacomp.c: Likewise.
57345         * lib/javaversion.c: Likewise.
57346         * lib/yesno.c: Likewise.
57347         * lib/getdelim.c: Likewise.
57348         (getdelim): Set errno on failure, and avoid memory leak.
57349
57350 2007-08-19  Bruno Haible  <bruno@clisp.org>
57351
57352         * modules/closein (Depends-on): Add freadahead.
57353         * lib/closein.c: Include freadahead.h.
57354         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57355         is zero.
57356
57357 2007-08-19  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/freadahead-tests: New file.
57360         * tests/test-freadahead.sh: New file.
57361         * tests/test-freadahead.c: New file.
57362
57363         * modules/freadahead: New file.
57364         * lib/freadahead.h: New file.
57365         * lib/freadahead.c: New file.
57366         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57367         fbufmode, fpurge, freadable, fwritable.
57368
57369 2007-08-19  Eric Blake  <ebb9@byu.net>
57370
57371         Test yesno in combination with closein.
57372         * lib/yesno.c (yesno): Document use of stdin.
57373         * modules/yesno-tests (Files): New module.
57374         * tests/test-yesno.c (main): New file.
57375         * tests/test-yesno.sh: Likewise.
57376
57377 2007-08-19  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57380         * lib/fseeko.c (rpl_fseeko): Likewise.
57381         * lib/fseterr.c (fseterr): Likewise.
57382
57383 2007-08-19  Bruno Haible  <bruno@clisp.org>
57384
57385         * tests/test-lseek.c (main): Disable a test for BeOS.
57386         * doc/functions/lseek.texi: Document the BeOS bug.
57387
57388 2007-08-19  Bruno Haible  <bruno@clisp.org>
57389             Eric Blake  <ebb9@byu.net>
57390
57391         * lib/lseek.c: Include <sys/stat.h>.
57392         (rpl_lseek): Add workaround code also for Unix platforms.
57393         Needed for BeOS.
57394         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57395         * doc/functions/lseek.texi: Document BeOS definiency.
57396
57397 2007-08-18  Bruno Haible  <bruno@clisp.org>
57398
57399         * modules/fstrcmp-tests: New file.
57400         * tests/test-fstrcmp.c: New file.
57401
57402 2007-08-18  Bruno Haible  <bruno@clisp.org>
57403
57404         * modules/fstrcmp: New file, from GNU gettext with modifications.
57405         * lib/fstrcmp.h: New file, from GNU gettext.
57406         * lib/fstrcmp.c: New file, from GNU gettext.
57407         * MODULES.html.sh (String handling): Add fstrcmp.
57408
57409 2007-08-18  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57412         'bool'.
57413         (diag, compareseq): Remove const from the ctxt argument.
57414         (USE_HEURISTIC): Undefine at the end.
57415
57416 2007-08-18  Jim Meyering  <jim@meyering.net>
57417
57418         New file: lib/idcache.h
57419         * NEWS: Mention the addition.
57420         * modules/idcache (Files): Add lib/idcache.h
57421         * lib/idcache.c: Include "idcache.h".
57422         Don't include <sys/types.h>.
57423         Add a FIXME comment.
57424         Move file-scoped "static" declarations to the top.
57425         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57426
57427 2007-08-17  Bruno Haible  <bruno@clisp.org>
57428         and Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * MODULES.html.sh: Add diffseq.
57431         * modules/diffseq: New file.
57432         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57433         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57434
57435 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         Import changes from coreutils for bootstrap script.
57438
57439         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         * build-aux/bootstrap (slurp): Work even in environments where
57442         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57443         current code does not slurp files whose names start with ".", and
57444         this looks like it might be a troublesome area.
57445
57446         2007-07-11  Jim Meyering  <jim@meyering.net>
57447
57448         If there's a GPL vN copyright comment, require that N == 3.
57449
57450         2007-07-08  Jim Meyering  <jim@meyering.net>
57451
57452         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57453         * build-aux/bootstrap (mam_template): Move definition out of loop.
57454
57455         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57456
57457         * build-aux/bootstrap (symlink_to_dir): Rename function from
57458         symlink_to_gnulib.  Add a directory parameter.  Update all
57459         callers.
57460         (cp_mark_as_generated): Also check for -- and link to -- files in
57461         gl/.
57462
57463         2007-07-08  Jim Meyering  <jim@meyering.net>
57464
57465         Adapt to deeper hierarchy in gnulib.
57466         * build-aux/bootstrap (symlink_to_dir): If the destination
57467         directory doesn't exist, create it. This is required at least for
57468         "lib/uniwidth/cjk.h".
57469
57470         2007-05-15  Jim Meyering  <jim@meyering.net>
57471
57472         * build-aux/bootstrap: Now that generated Makefile.am files
57473         are no longer under version control, they must be created at
57474         bootstrap time.
57475
57476 2007-08-14  Ben Pfaff  <blp@gnu.org>
57477
57478         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57479
57480 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57481
57482         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57483         given the changes below.
57484         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57485         even on hosts that have padding bits beyond the supported 64.
57486
57487 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57488
57489         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57490         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57491         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57492         depends on it.
57493         (xstrtol_error): Remove.
57494         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57495         but with a different signature.
57496         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57497         * lib/xstrtol-error.c: Include exitfail.h.
57498         (xstrtol_fatal): New function, with a different signature from the
57499         old xstrtol_error, so that the caller need not worry about passing
57500         in an exit status, or about storage management of the option argument.
57501         (xstrtol_error): Now a static function.  Redo signature to
57502         implement xstrtol_fatal.  Output the correct number of hyphens in
57503         front of the option so that the caller need not worry about
57504         storage management.
57505         (N_): New macro.
57506         (_): Remove; not used now.
57507         * modules/xstrtol: Depend on getopt.
57508         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57509         of old STRTOL_FATAL_ERROR macro.
57510         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57511         of test program.
57512         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57513         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57514
57515 2007-08-08  Eric Blake  <ebb9@byu.net>
57516
57517         * lib/xstrtol-error.c: Add missing include.
57518
57519         Move xstrtol messages into gnulib domain, when --pobase is used.
57520         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57521         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57522         * modules/xstrtol (Files): Distribute new file.
57523         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57524         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57525         * tests/test-xstrtol.c: ...into new file.
57526         * tests/test-xstrtoul.c: Also test xstrtoul.
57527         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57528         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57529         * tests/test-xstrtol.sh: Drive the tests.
57530         * tests/test-xstrtoimax.sh: Likewise.
57531         * tests/test-xstrtoumax.sh: Likewise.
57532         * modules/xstrtol-tests: New module.
57533         * modules/xstrtoimax-tests: Likewise.
57534         * modules/xstrtoumax-tests: Likewise.
57535
57536 2007-08-08  Jim Meyering  <jim@meyering.net>
57537
57538         New function: mfile_name_concat.
57539         * lib/filenamecat.c (mfile_name_concat): New function, just like
57540         file_name_concat, but return NULL upon failure rather than exiting
57541         with a diagnostic.
57542         * lib/filenamecat.h: Declare it.
57543
57544 2007-08-07  Bruno Haible  <bruno@clisp.org>
57545
57546         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57547         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57548         warning from gcc.
57549         Reported by Eric Blake.
57550
57551 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57552
57553         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57554         * modules/crypto/arcfour (License): Likewise.
57555         * modules/crypto/des-tests (License): Likewise.
57556         * modules/crypto/gc-arctwo-tests (License): Likewise.
57557         * modules/crypto/gc-des-tests (License): Likewise.
57558         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57559         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57560         * modules/crypto/gc-md2-tests (License): Likewise.
57561         * modules/crypto/gc-md4-tests (License): Likewise.
57562         * modules/crypto/gc-md5-tests (License): Likewise.
57563         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57564         * modules/crypto/gc-rijndael-tests (License): Likewise.
57565         * modules/crypto/gc-sha1-tests (License): Likewise.
57566         * modules/crypto/gc-tests (License): Likewise.
57567         * modules/crypto/hmac-md5 (License): Likewise.
57568         * modules/crypto/hmac-sha1 (License): Likewise.
57569         * modules/crypto/md2-tests (License): Likewise.
57570         * modules/crypto/md4-tests (License): Likewise.
57571         * modules/crypto/md5 (License): Likewise.
57572         * modules/crypto/rijndael (License): Likewise.
57573         * modules/crypto/sha1 (License): Likewise.
57574         * modules/memxor (License): Likewise.
57575
57576 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57577         and Bruno Haible  <bruno@clisp.org>
57578
57579         * NEWS: Describe interface changes to human, xstrtol.
57580         * lib/human.h: Include <xstrtol.h>.
57581         (human_options): Return enum strtol_error, not int.  Remove
57582         bool arg; take int * instead.
57583         * lib/human.c: Don't include "gettext.h".
57584         (_): Remove; no longer used.
57585         Don't include <xstrtol.h>, since human.h does it.
57586         (human_options): Adjust to abovementioned interface changes.
57587         Do not report error to stderr; that's now the caller's
57588         responsibility.
57589         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57590         interface change.
57591         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57592         Str, Argument_type_string.  All uses changed.  Put " argument"
57593         in diagnostics to make them clearer.  Change wording of suffix
57594         message for clarity.
57595         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57596         Argument_type_string.
57597         (STRTOL_FATAL_WARN): Remove; no longer used.
57598         * modules/human (Depends-on): Remove gettext-h.
57599
57600 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57601
57602         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57603
57604 2007-07-31  Bruno Haible  <bruno@clisp.org>
57605
57606         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57607         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57608         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57609
57610 2007-07-31  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57613         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57614
57615 2007-07-30  Bruno Haible  <bruno@clisp.org>
57616
57617         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57618         * modules/c-ctype (License): Likewise.
57619         * modules/c-strcase (License): Likewise.
57620         * modules/check-version (License): Likewise.
57621         * modules/iconv (License): Likewise.
57622         * modules/iconv_open (License): Likewise.
57623         * modules/read-file (License): Likewise.
57624         * modules/striconv (License): Likewise.
57625         * modules/strverscmp (License): Likewise.
57626         * modules/vasprintf (License): Likewise.
57627         * modules/crypto/des (License): Likewise.
57628         * modules/crypto/gc (License): Likewise.
57629         * modules/crypto/gc-arcfour (License): Likewise.
57630         * modules/crypto/gc-arctwo (License): Likewise.
57631         * modules/crypto/gc-des (License): Likewise.
57632         * modules/crypto/gc-hmac-md5 (License): Likewise.
57633         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57634         * modules/crypto/gc-md2 (License): Likewise.
57635         * modules/crypto/gc-md4 (License): Likewise.
57636         * modules/crypto/gc-md5 (License): Likewise.
57637         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57638         * modules/crypto/gc-random (License): Likewise.
57639         * modules/crypto/gc-rijndael (License): Likewise.
57640         * modules/crypto/gc-sha1 (License): Likewise.
57641         * modules/crypto/md2 (License): Likewise.
57642         * modules/crypto/md4 (License): Likewise.
57643
57644 2007-07-30  Jim Meyering  <jim@meyering.net>
57645
57646         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57647         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57648         it has valid stat data.  This bug would cause du not to count the
57649         sizes of inaccessible directories.
57650         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57651         in <http://bugzilla.redhat.com/250077>.
57652
57653 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57654             Bruno Haible  <bruno@clisp.org>
57655
57656         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57657         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57658         #include_next, gives a diagnostic about it, but reports no error in
57659         the exit code.
57660         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57661
57662 2007-07-24  Ben Pfaff  <blp@gnu.org>
57663
57664         Improve name: "count-one-bits" is better than "popcount".
57665         * MODULES.html.sh: Update name.
57666         * lib/popcount.h: Renamed lib/count-one-bits.h.
57667         (popcount): Renamed count_one_bits.
57668         (popcountl): Renamed count_one_bits_l.
57669         (popcountll): Renamed count_one_bits_ll.
57670         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57671         * modules/popcount: Renamed module/count-one-bits.
57672         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57673         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57674
57675 2007-07-23  Ben Pfaff  <blp@gnu.org>
57676
57677         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57678         better code generation, and add U to large constants to avoid
57679         warnings, in non-GCC case.
57680         Suggested by Bruno Haible.
57681
57682 2007-07-23  Ben Pfaff  <blp@gnu.org>
57683
57684         * lib/popcount.h: Use verify_true instead of if...abort.
57685         * modules/popcount: Depend on verify module.
57686         Suggested by Jim Meyering.
57687
57688 2007-07-23  Bruno Haible  <bruno@clisp.org>
57689
57690         * gnulib-tool (func_import): Create a .cvsignore file also when the
57691         directory is not yet in CVS but the toplevel directory is. When
57692         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57693         Reported by Karl Berry.
57694
57695 2007-07-22  Ben Pfaff  <blp@gnu.org>
57696
57697         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57698         case.
57699         Suggested by Eric Blake.
57700
57701 2007-07-22  Ben Pfaff  <blp@gnu.org>
57702
57703         New module: popcount.
57704         * MODULES.html.sh: Add popcount.
57705         * modules/popcount: New file.
57706         * modules/popcount-tests: New file.
57707         * tests/test-popcount.c: New file.
57708         * lib/popcount.h: New file.
57709         * m4/popcount.m4: New file.
57710
57711 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * build-aux/announce-gen: Update to GPLv3.
57714
57715         * build-aux/config.guess: Update from config.
57716
57717 2007-07-21  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57720         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57721
57722 2007-07-20  Jim Meyering  <jim@meyering.net>
57723
57724         * check-module: Diagnose a self-dependency.
57725
57726 2007-07-19  Bruno Haible  <bruno@clisp.org>
57727
57728         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57729         empty.
57730         Reported by Eric Blake.
57731
57732 2007-07-18  Bruno Haible  <bruno@clisp.org>
57733
57734         * gnulib-tool: New options --po-base, --po-domain.
57735         (func_usage): Document them.
57736         (pobase, po_domain): New variables.
57737         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57738         DEFAULT_TEXT_DOMAIN.
57739         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57740         (func_import): Consider pobase and po_domain. Create a po/ directory.
57741         (func_create_testdir): Set pobase and po_domain to empty.
57742         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57743         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57744
57745 2007-07-18  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57748         EXTRA_DIST augmentation for files in build-aux/.
57749
57750 2007-07-16  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57753         * modules/getdelim (License): Likewise.
57754
57755 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57756
57757         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57758         * modules/d-type (License): Likewise.
57759         * modules/extensions (License): Likewise.
57760         * modules/fnmatch (License): Likewise.
57761         * modules/fseeko (License): Likewise.
57762         * modules/getaddrinfo (License): Likewise.
57763         * modules/getline (License): Likewise.
57764         * modules/getlogin_r (License): Likewise.
57765         * modules/getpass (License): Likewise.
57766         * modules/gettimeofday (License): Likewise.
57767         * modules/glob (License): Likewise.
57768         * modules/inet_ntop (License): Likewise.
57769         * modules/malloc (License): Likewise.
57770         * modules/malloca (License): Likewise.
57771         * modules/memmem (License): Likewise.
57772         * modules/mempcpy (License): Likewise.
57773         * modules/memset (License): Likewise.
57774         * modules/minmax (License): Likewise.
57775         * modules/mktime (License): Likewise.
57776         * modules/netinet_in (License): Likewise.
57777         * modules/pathmax (License): Likewise.
57778         * modules/poll (License): Likewise.
57779         * modules/regex (License): Likewise.
57780         * modules/snprintf (License): Likewise.
57781         * modules/stdbool (License): Likewise.
57782         * modules/stdint (License): Likewise.
57783         * modules/stdio (License): Likewise.
57784         * modules/strcase (License): Likewise.
57785         * modules/strcasestr (License): Likewise.
57786         * modules/strdup (License): Likewise.
57787         * modules/string (License): Likewise.
57788         * modules/strndup (License): Likewise.
57789         * modules/strnlen (License): Likewise.
57790         * modules/strpbrk (License): Likewise.
57791         * modules/strptime (License): Likewise.
57792         * modules/strsep (License): Likewise.
57793         * modules/sys_select (License): Likewise.
57794         * modules/sys_socket (License): Likewise.
57795         * modules/sys_stat (License): Likewise.
57796         * modules/sys_time (License): Likewise.
57797         * modules/time (License): Likewise.
57798         * modules/time_r (License): Likewise.
57799         * modules/timegm (License): Likewise.
57800         * modules/unistd (License): Likewise.
57801         * modules/vsnprintf (License): Likewise.
57802         * modules/wctype (License): Likewise.
57803
57804 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57805
57806         * modules/argz (License): LGPLv2+.
57807
57808 2007-07-15  Karl Berry  <karl@gnu.org>
57809
57810         * doc/gnulib.texi: revise node structure per new fdl.texi.
57811
57812 2007-07-14  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57815         the output file.
57816         * lib/uniname/uninames.h: Regenerated.
57817
57818 2007-07-14  Karl Berry  <karl@gnu.org>
57819
57820         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57821         omitting sectioning and index commands.
57822
57823 2007-07-13  Bruno Haible  <bruno@clisp.org>
57824
57825         New gnulib-tool option --more-symlinks.
57826         * gnulib-tool (func_usage): Document --more-symlinks.
57827         (do_copyrights): New variable.
57828         Recognize option --more-symlinks.
57829         (func_import): Don't add a copyright notice transform to
57830         sed_transform_lib_file if do_copyrights is empty.
57831
57832 2007-07-13  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/vasnprintf.c (decimal_point_char): Define also if
57835         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57836         && !NEED_PRINTF_DIRECTIVE_A.
57837         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57838         Gary V. Vaughan <gary@gnu.org>.
57839
57840 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57841
57842         * lib/inttypes_.h: Undo previous change, since it was fixed
57843         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57844
57845 2007-07-13  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57848         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57849
57850 2007-07-13  Jim Meyering  <jim@meyering.net>
57851
57852         df: Don't fail for Tru64's "file-on-file mount".
57853         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57854         so we fall through and use statfs instead.  Details here:
57855         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57856         Reported by Albert Chin.
57857
57858 2007-07-13  Bruno Haible  <bruno@clisp.org>
57859
57860         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57861         * modules/configmake (License): Likewise.
57862         * modules/gettext (License): Likewise.
57863         * modules/gettext-h (License): Likewise.
57864         * modules/include_next (License): Likewise.
57865         * modules/link-warning (License): Likewise.
57866         * modules/localcharset (License): Likewise.
57867         * modules/localename (License): Likewise.
57868         * modules/lock (License): Likewise.
57869         * modules/relocatable-lib-lgpl (License): Likewise.
57870         * modules/size_max (License): Likewise.
57871         * modules/vasnprintf (License): Likewise.
57872         * modules/wchar (License): Likewise.
57873         * modules/xsize (License): Likewise.
57874
57875 2007-07-13  Bruno Haible  <bruno@clisp.org>
57876
57877         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57878         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57879
57880 2007-07-12  Bruno Haible  <bruno@clisp.org>
57881
57882         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57883         in the modules files.
57884
57885 2007-07-11  Karl Berry  <karl@gnu.org>
57886
57887         * MODULES.html.sh (func_module): use
57888          sed -e '\|^'"${includefile}"'$|d'
57889          instead of /.../d, to avoid errors on $includefile's containing /.
57890
57891 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57892
57893         * gnulib-tool (func_import): Avoid duplication of --avoid
57894         statements
57895         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57896         names to `_' in variable names.
57897
57898 2007-07-10  Eric Blake  <ebb9@byu.net>
57899
57900         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57901         * NEWS: Document this change.
57902
57903 2007-07-08  Bruno Haible  <bruno@clisp.org>
57904
57905         Update to Unicode 5.0.
57906         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57907         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57908         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57909         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57910         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57911         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57912         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57913         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57914         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57915         U+10A3F, U+1D242..U+1D244.
57916         (nonspacing_table_ind): Update.
57917         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57918         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57919
57920 2007-07-08  Bruno Haible  <bruno@clisp.org>
57921
57922         Update to Unicode 5.0.
57923         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57924         code transform. Extend the name index field of unicode_name_to_code and
57925         unicode_code_to_name from 16 to 24 bits.
57926         * lib/uniname/uniname.c (unicode_character_name,
57927         unicode_name_character): Add the range 0x12xxx to the code transform.
57928         * lib/uniname/uninames.h: Regenerated.
57929         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57930
57931 2007-07-07  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/wcwidth-tests: New file.
57934         * tests/test-wcwidth.c: New file.
57935
57936         Work around MacOS X wcwidth() bug.
57937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57938         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57939         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57940         original wcwidth in non-UTF-8 locales.
57941         * modules/wcwidth (Depends-on): Add localcharset, streq,
57942         uniwidth/width.
57943         * doc/functions/wcwidth.texi: Update.
57944
57945 2007-07-07  Bruno Haible  <bruno@clisp.org>
57946
57947         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57948         (wcwidth): New declaration.
57949         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57950         macros.
57951         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57952         here. Prepare for creating <wchar.h> unconditionally.
57953         * modules/wchar (Depends-on): Add link-warning.
57954         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57955         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57956         * lib/wcwidth.h: Remove file.
57957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57958         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57959         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57960         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57961         (Include): Replace wcwidth.h with <wchar.h>.
57962         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57963         * lib/mbchar.h: Don't include wcwidth.h.
57964         * lib/mbswidth.c: Likewise.
57965         * NEWS: Mention the change.
57966
57967 2007-07-07  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57970         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57971         definition with an external declaration.
57972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57973         defined as a function. Remove AC_C_INLINE requirement.
57974         * modules/wcwidth (Files): Add lib/wcwidth.c.
57975         (Makefile.am): Remove redundant statement.
57976
57977 2007-07-07  Bruno Haible  <bruno@clisp.org>
57978
57979         * MODULES.html.sh (Unicode string functions): Add the new modules.
57980
57981         * tests/uniwidth/test-u32-strwidth.c: New file.
57982         * modules/uniwidth/u32-strwidth-tests: New file.
57983
57984         * lib/uniwidth/u32-strwidth.c: New file.
57985         * modules/uniwidth/u32-strwidth: New file.
57986
57987         * tests/uniwidth/test-u16-strwidth.c: New file.
57988         * modules/uniwidth/u16-strwidth-tests: New file.
57989
57990         * lib/uniwidth/u16-strwidth.c: New file.
57991         * modules/uniwidth/u16-strwidth: New file.
57992
57993         * tests/uniwidth/test-u8-strwidth.c: New file.
57994         * modules/uniwidth/u8-strwidth-tests: New file.
57995
57996         * lib/uniwidth/u8-strwidth.c: New file.
57997         * modules/uniwidth/u8-strwidth: New file.
57998
57999         * tests/uniwidth/test-u32-width.c: New file.
58000         * modules/uniwidth/u32-width-tests: New file.
58001
58002         * lib/uniwidth/u32-width.c: New file.
58003         * modules/uniwidth/u32-width: New file.
58004
58005         * tests/uniwidth/test-u16-width.c: New file.
58006         * modules/uniwidth/u16-width-tests: New file.
58007
58008         * lib/uniwidth/u16-width.c: New file.
58009         * modules/uniwidth/u16-width: New file.
58010
58011         * tests/uniwidth/test-u8-width.c: New file.
58012         * modules/uniwidth/u8-width-tests: New file.
58013
58014         * lib/uniwidth/u8-width.c: New file.
58015         * modules/uniwidth/u8-width: New file.
58016
58017         * tests/uniwidth/test-uc_width.c: New file.
58018         * modules/uniwidth/width-tests: New file.
58019
58020         * lib/uniwidth/width.c: New file, from GNU libiconv.
58021         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58022         * modules/uniwidth/width: New file.
58023
58024         * lib/uniwidth.h: New file, from GNU libiconv.
58025         * modules/uniwidth/base: New file.
58026
58027 2007-07-07  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/uniname.h: New file, from GNU gettext.
58030         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58031         * lib/uniname/uninames.h: New file, from GNU gettext.
58032         * lib/uniname/uniname.c: New file, from GNU gettext.
58033         * tests/uniname/test-uninames.sh: New file.
58034         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58035         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58036         * modules/uniname/base: New file.
58037         * modules/uniname/uniname: New file.
58038         * modules/uniname/uniname-tests: New file.
58039         * MODULES.html.sh (Unicode string functions): Add the new modules.
58040
58041 2007-07-06  Bruno Haible  <bruno@clisp.org>
58042
58043         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58044
58045 2007-07-06  Bruno Haible  <bruno@clisp.org>
58046
58047         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58048         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58049         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58050         include <sys/time.h>.
58051         Reported by Eric Blake.
58052
58053 2007-07-06  Eric Blake  <ebb9@byu.net>
58054
58055         Fix testing canonicalize on cygwin.
58056         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58057         Revert patch from 2007-06-19.
58058         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58059         canonicalize module is also in use.
58060         * tests/test-canonicalize.c: New file.
58061         * tests/test-canonicalize.sh: Likewise.
58062         * modules/canonicalize-tests: Likewise.
58063
58064 2007-07-06  Jim Meyering  <jim@meyering.net>
58065
58066         * lib/getugroups.c (getugroups): Detect getgrent failure.
58067         Adjust comment to reflect reality: this function may return -1.
58068
58069 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58070
58071         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58072         the new TP address.
58073         (usage): Fix typo
58074         (gnulib_mk): New variable.
58075
58076 2007-07-05  Jim Meyering  <jim@meyering.net>
58077
58078         Don't let endgrent clobber errno, no matter how improbable.
58079         * lib/getugroups.c (getugroups): Save and restore errno around
58080         endgrent call.
58081
58082         Close the group DB even when failing with 2^31 or more members.
58083         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58084
58085 2007-07-04  Jim Meyering  <jim@meyering.net>
58086
58087         * lib/getugroups.h: New file.
58088         * lib/getugroups.c: Include "getugroups.h".
58089         Remove uses of "register" keyword.
58090         Move local variable, "cp", down into scope where used.
58091         Give "username" parameter the "const" attribute.
58092         * modules/getugroups (Files): Add lib/getugroups.h
58093
58094 2007-07-04  Karl Berry  <karl@gnu.org>
58095
58096         * MODULES.html.sh (func_all_modules): Complete rename of
58097         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58098
58099 2007-07-02  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58102         mode, when inttypes.h comes from gnulib.
58103         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58104
58105 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58106
58107         * NEWS: Mention lgpl module name change.
58108
58109         * modules/lgpl-2.1: Renamed from lgpl.
58110
58111         * NEWS: Mention gpl module name change.
58112
58113         * modules/gpl-3.0: New file, based on gpl-2.0.
58114
58115         * modules/gpl-2.0: Renamed from gpl.
58116
58117         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58118         doc/gpl-2.0.texi.
58119
58120 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58123         #define __STDC_LIMIT_MACROS temporarily while including
58124         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58125         Problem reported by Joel E. Denny in
58126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58127
58128 2007-07-01  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/unistdio.h: New file.
58131         * lib/unistdio/u-asnprintf.h: New file.
58132         * lib/unistdio/u-asprintf.h: New file.
58133         * lib/unistdio/u-printf-args.c: New file.
58134         * lib/unistdio/u-printf-args.h: New file.
58135         * lib/unistdio/u-printf-parse.h: New file.
58136         * lib/unistdio/u-snprintf.h: New file.
58137         * lib/unistdio/u-sprintf.h: New file.
58138         * lib/unistdio/u-vasprintf.h: New file.
58139         * lib/unistdio/u-vsnprintf.h: New file.
58140         * lib/unistdio/u-vsprintf.h: New file.
58141         * lib/unistdio/ulc-asnprintf.c: New file.
58142         * lib/unistdio/ulc-asprintf.c: New file.
58143         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58144         * lib/unistdio/ulc-printf-parse.c: New file.
58145         * lib/unistdio/ulc-snprintf.c: New file.
58146         * lib/unistdio/ulc-sprintf.c: New file.
58147         * lib/unistdio/ulc-vasnprintf.c: New file.
58148         * lib/unistdio/ulc-vasprintf.c: New file.
58149         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58150         * lib/unistdio/ulc-vsnprintf.c: New file.
58151         * lib/unistdio/ulc-vsprintf.c: New file.
58152         * lib/unistdio/u8-asnprintf.c: New file.
58153         * lib/unistdio/u8-asprintf.c: New file.
58154         * lib/unistdio/u8-printf-parse.c: New file.
58155         * lib/unistdio/u8-snprintf.c: New file.
58156         * lib/unistdio/u8-sprintf.c: New file.
58157         * lib/unistdio/u8-vasnprintf.c: New file.
58158         * lib/unistdio/u8-vasprintf.c: New file.
58159         * lib/unistdio/u8-vsnprintf.c: New file.
58160         * lib/unistdio/u8-vsprintf.c: New file.
58161         * lib/unistdio/u8-u8-asnprintf.c: New file.
58162         * lib/unistdio/u8-u8-asprintf.c: New file.
58163         * lib/unistdio/u8-u8-snprintf.c: New file.
58164         * lib/unistdio/u8-u8-sprintf.c: New file.
58165         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58166         * lib/unistdio/u8-u8-vasprintf.c: New file.
58167         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58168         * lib/unistdio/u8-u8-vsprintf.c: New file.
58169         * lib/unistdio/u16-asnprintf.c: New file.
58170         * lib/unistdio/u16-asprintf.c: New file.
58171         * lib/unistdio/u16-printf-parse.c: New file.
58172         * lib/unistdio/u16-snprintf.c: New file.
58173         * lib/unistdio/u16-sprintf.c: New file.
58174         * lib/unistdio/u16-vasnprintf.c: New file.
58175         * lib/unistdio/u16-vasprintf.c: New file.
58176         * lib/unistdio/u16-vsnprintf.c: New file.
58177         * lib/unistdio/u16-vsprintf.c: New file.
58178         * lib/unistdio/u16-u16-asnprintf.c: New file.
58179         * lib/unistdio/u16-u16-asprintf.c: New file.
58180         * lib/unistdio/u16-u16-snprintf.c: New file.
58181         * lib/unistdio/u16-u16-sprintf.c: New file.
58182         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58183         * lib/unistdio/u16-u16-vasprintf.c: New file.
58184         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58185         * lib/unistdio/u16-u16-vsprintf.c: New file.
58186         * lib/unistdio/u32-asnprintf.c: New file.
58187         * lib/unistdio/u32-asprintf.c: New file.
58188         * lib/unistdio/u32-printf-parse.c: New file.
58189         * lib/unistdio/u32-snprintf.c: New file.
58190         * lib/unistdio/u32-sprintf.c: New file.
58191         * lib/unistdio/u32-vasnprintf.c: New file.
58192         * lib/unistdio/u32-vasprintf.c: New file.
58193         * lib/unistdio/u32-vsnprintf.c: New file.
58194         * lib/unistdio/u32-vsprintf.c: New file.
58195         * lib/unistdio/u32-u32-asnprintf.c: New file.
58196         * lib/unistdio/u32-u32-asprintf.c: New file.
58197         * lib/unistdio/u32-u32-snprintf.c: New file.
58198         * lib/unistdio/u32-u32-sprintf.c: New file.
58199         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58200         * lib/unistdio/u32-u32-vasprintf.c: New file.
58201         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58202         * lib/unistdio/u32-u32-vsprintf.c: New file.
58203         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58204         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58205         * tests/unistdio/test-ulc-printf1.h: New file.
58206         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58207         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58208         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58209         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58210         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58211         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58212         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58213         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58214         * tests/unistdio/test-u8-asnprintf1.c: New file.
58215         * tests/unistdio/test-u8-asnprintf1.h: New file.
58216         * tests/unistdio/test-u8-printf1.h: New file.
58217         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58218         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58219         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58220         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58221         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58222         * tests/unistdio/test-u8-vasprintf1.c: New file.
58223         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58224         * tests/unistdio/test-u8-vsprintf1.c: New file.
58225         * tests/unistdio/test-u16-asnprintf1.c: New file.
58226         * tests/unistdio/test-u16-asnprintf1.h: New file.
58227         * tests/unistdio/test-u16-printf1.h: New file.
58228         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58229         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58230         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58231         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58232         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58233         * tests/unistdio/test-u16-vasprintf1.c: New file.
58234         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58235         * tests/unistdio/test-u16-vsprintf1.c: New file.
58236         * tests/unistdio/test-u32-asnprintf1.c: New file.
58237         * tests/unistdio/test-u32-asnprintf1.h: New file.
58238         * tests/unistdio/test-u32-printf1.h: New file.
58239         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58240         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58241         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58242         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58243         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58244         * tests/unistdio/test-u32-vasprintf1.c: New file.
58245         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58246         * tests/unistdio/test-u32-vsprintf1.c: New file.
58247         * modules/unistdio/base: New file.
58248         * modules/unistdio/u-printf-args: New file.
58249         * modules/unistdio/ulc-asnprintf: New file.
58250         * modules/unistdio/ulc-asprintf: New file.
58251         * modules/unistdio/ulc-fprintf: New file.
58252         * modules/unistdio/ulc-printf-parse: New file.
58253         * modules/unistdio/ulc-snprintf: New file.
58254         * modules/unistdio/ulc-sprintf: New file.
58255         * modules/unistdio/ulc-vasnprintf: New file.
58256         * modules/unistdio/ulc-vasprintf: New file.
58257         * modules/unistdio/ulc-vfprintf: New file.
58258         * modules/unistdio/ulc-vsnprintf: New file.
58259         * modules/unistdio/ulc-vsprintf: New file.
58260         * modules/unistdio/u8-asnprintf: New file.
58261         * modules/unistdio/u8-asprintf: New file.
58262         * modules/unistdio/u8-printf-parse: New file.
58263         * modules/unistdio/u8-snprintf: New file.
58264         * modules/unistdio/u8-sprintf: New file.
58265         * modules/unistdio/u8-vasnprintf: New file.
58266         * modules/unistdio/u8-vasprintf: New file.
58267         * modules/unistdio/u8-vsnprintf: New file.
58268         * modules/unistdio/u8-vsprintf: New file.
58269         * modules/unistdio/u8-u8-asnprintf: New file.
58270         * modules/unistdio/u8-u8-asprintf: New file.
58271         * modules/unistdio/u8-u8-snprintf: New file.
58272         * modules/unistdio/u8-u8-sprintf: New file.
58273         * modules/unistdio/u8-u8-vasnprintf: New file.
58274         * modules/unistdio/u8-u8-vasprintf: New file.
58275         * modules/unistdio/u8-u8-vsnprintf: New file.
58276         * modules/unistdio/u8-u8-vsprintf: New file.
58277         * modules/unistdio/u16-asnprintf: New file.
58278         * modules/unistdio/u16-asprintf: New file.
58279         * modules/unistdio/u16-printf-parse: New file.
58280         * modules/unistdio/u16-snprintf: New file.
58281         * modules/unistdio/u16-sprintf: New file.
58282         * modules/unistdio/u16-vasnprintf: New file.
58283         * modules/unistdio/u16-vasprintf: New file.
58284         * modules/unistdio/u16-vsnprintf: New file.
58285         * modules/unistdio/u16-vsprintf: New file.
58286         * modules/unistdio/u16-u16-asnprintf: New file.
58287         * modules/unistdio/u16-u16-asprintf: New file.
58288         * modules/unistdio/u16-u16-snprintf: New file.
58289         * modules/unistdio/u16-u16-sprintf: New file.
58290         * modules/unistdio/u16-u16-vasnprintf: New file.
58291         * modules/unistdio/u16-u16-vasprintf: New file.
58292         * modules/unistdio/u16-u16-vsnprintf: New file.
58293         * modules/unistdio/u16-u16-vsprintf: New file.
58294         * modules/unistdio/u32-asnprintf: New file.
58295         * modules/unistdio/u32-asprintf: New file.
58296         * modules/unistdio/u32-printf-parse: New file.
58297         * modules/unistdio/u32-snprintf: New file.
58298         * modules/unistdio/u32-sprintf: New file.
58299         * modules/unistdio/u32-vasnprintf: New file.
58300         * modules/unistdio/u32-vasprintf: New file.
58301         * modules/unistdio/u32-vsnprintf: New file.
58302         * modules/unistdio/u32-vsprintf: New file.
58303         * modules/unistdio/u32-u32-asnprintf: New file.
58304         * modules/unistdio/u32-u32-asprintf: New file.
58305         * modules/unistdio/u32-u32-snprintf: New file.
58306         * modules/unistdio/u32-u32-sprintf: New file.
58307         * modules/unistdio/u32-u32-vasnprintf: New file.
58308         * modules/unistdio/u32-u32-vasprintf: New file.
58309         * modules/unistdio/u32-u32-vsnprintf: New file.
58310         * modules/unistdio/u32-u32-vsprintf: New file.
58311         * modules/unistdio/ulc-asnprintf-tests: New file.
58312         * modules/unistdio/ulc-vasnprintf-tests: New file.
58313         * modules/unistdio/ulc-vasprintf-tests: New file.
58314         * modules/unistdio/ulc-vsnprintf-tests: New file.
58315         * modules/unistdio/ulc-vsprintf-tests: New file.
58316         * modules/unistdio/u8-asnprintf-tests: New file.
58317         * modules/unistdio/u8-vasnprintf-tests: New file.
58318         * modules/unistdio/u8-vasprintf-tests: New file.
58319         * modules/unistdio/u8-vsnprintf-tests: New file.
58320         * modules/unistdio/u8-vsprintf-tests: New file.
58321         * modules/unistdio/u16-asnprintf-tests: New file.
58322         * modules/unistdio/u16-vasnprintf-tests: New file.
58323         * modules/unistdio/u16-vasprintf-tests: New file.
58324         * modules/unistdio/u16-vsnprintf-tests: New file.
58325         * modules/unistdio/u16-vsprintf-tests: New file.
58326         * modules/unistdio/u32-asnprintf-tests: New file.
58327         * modules/unistdio/u32-vasnprintf-tests: New file.
58328         * modules/unistdio/u32-vasprintf-tests: New file.
58329         * modules/unistdio/u32-vsnprintf-tests: New file.
58330         * modules/unistdio/u32-vsprintf-tests: New file.
58331         * MODULES.html.sh (Unicode string functions): Add the new modules.
58332
58333 2007-07-01  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/sprintf.c (sprintf): Limit the available length estimation,
58336         to avoid address wraparound.
58337         * lib/vsprintf.c (vsprintf): Likewise.
58338         * modules/sprintf-posix (Dependencies): Add stdint.
58339         * modules/vsprintf-posix (Dependencies): Likewise.
58340
58341 2007-07-01  Bruno Haible  <bruno@clisp.org>
58342
58343         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58344         Windows PATH as well. Conservative double-quoting. Comments.
58345
58346 2007-07-01  Bruno Haible  <bruno@clisp.org>
58347             Eric Blake  <ebb9@byu.net>
58348             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58349
58350         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58351         empty components in $PATH, denoting '.'.
58352
58353 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58354
58355         * gnulib-tool: Fix indentation.
58356         (func_create_megatestdir): Likewise.
58357         Report by Bruno Haible.
58358
58359 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58360
58361         Sync from Automake.
58362         * build-aux/gnupload: Fix shell portability issues with for loops.
58363         Report by Karl Berry.
58364
58365 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58366
58367         * build-aux/maint.mk (POURL): Use translationproject.org.
58368
58369 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58370             Bruno Haible  <bruno@clisp.org>
58371
58372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58373         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58374         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58375         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58376         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58377
58378 2007-06-27  Bruno Haible  <bruno@clisp.org>
58379
58380         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58381         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58382
58383 2007-06-26  Karl Berry  <karl@gnu.org>
58384
58385         * MODULES.html.sh: remove xreadlink-with-size.
58386
58387 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58390         method that I hope also handles the double-include problem noted
58391         by Bruno Haible in
58392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58393
58394 2007-06-23  Bruno Haible  <bruno@clisp.org>
58395
58396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58397         Don't let the 'mostlyclean' target fail if the last subdirectory could
58398         not be removed.
58399         Reported by Karl Berry.
58400
58401 2007-06-23  Bruno Haible  <bruno@clisp.org>
58402
58403         * gnulib-tool (echo): Add a speedier workaround for ksh.
58404         * tests/test-echo.sh: Likewise.
58405
58406 2007-06-23  Bruno Haible  <bruno@clisp.org>
58407
58408         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58409         * tests/test-echo.sh: Likewise.
58410
58411 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58412
58413         * gnulib-tool (IFS): Initialize early, so we don't set it to
58414         empty later.
58415         (self_abspathname): Rewrite algorithm to set it, reindent.
58416         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58417         (func_create_megatestdir): Merge some sed scripts.
58418
58419 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58422         exposed by Sun Studio 11 cc on Solaris 8.
58423
58424 2007-06-22  Bruno Haible  <bruno@clisp.org>
58425
58426         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58427         backslashes.
58428         * tests/test-echo.sh: New file.
58429
58430 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58431
58432         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58433         simplify `sed_replace_build_aux' scripts, they are portable but
58434         echoing them with `echo' is not.
58435         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58436
58437 2007-06-21  Karl Berry  <karl@gnu.org>
58438
58439         * config/srclist.txt: guess we can't handle the licenses via
58440         srclist at the moment.
58441
58442 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * MODULES.html.sh: Add include_next.
58445         * modules/include_next: New file.
58446
58447 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58450         INCLUDE_NEXT.
58451         (gl_CHECK_NEXT_HEADERS): New macro.
58452         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58453         the obsolescent gl_ABSOLUTE_HEADER.
58454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58455         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58456         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58457         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58458         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58459         * m4/math_h.m4 (gl_MATH_H): Likewise.
58460         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58461         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58462         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58463         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58464         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58465         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58466         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58471         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58472         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58473         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58474         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58475         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58476         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58477         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58478         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58479         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58480         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58481         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58482         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58483         * lib/float_.h: Likewise.
58484         * lib/inttypes_.h: Likewise.
58485         * lib/math_.h: Likewise.
58486         * lib/search_.h: Likewise.
58487         * lib/signal_.h: Likewise.
58488         * lib/stdint_.h: Likewise.
58489         * lib/stdio_.h: Likewise.
58490         * lib/stdlib_.h: Likewise.
58491         * lib/string_.h: Likewise.
58492         * lib/sys_stat_.h: Likewise.
58493         * lib/sys_time_.h: Likewise.
58494         * lib/time_.h: Likewise.
58495         * lib/unistd_.h: Likewise.
58496         * lib/wchar_.h: Likewise.
58497         * lib/wctype_.h: Likewise.
58498         * lib/dirent_.h: Likewise.
58499         * lib/iconv_.h: Likewise.
58500         * lib/locale_.h: Likewise.
58501         * lib/netinet_in_.h: Likewise.
58502         * lib/sys_select_.h: Likewise.
58503         * lib/sys_socket_.h: Likewise.
58504         * lib/sysexits_.h: Likewise.
58505         * modules/fcntl (Depends-on): Depend on include_next, not
58506         absolute_header.
58507         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58508         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58509         * modules/fchdir: Likewise.
58510         * modules/float: Likewise.
58511         * modules/iconv_open: Likewise.
58512         * modules/inttypes: Likewise.
58513         * modules/locale: Likewise.
58514         * modules/math: Likewise.
58515         * modules/netinet_in: Likewise.
58516         * modules/search: Likewise.
58517         * modules/signal: Likewise.
58518         * modules/stdint: Likewise.
58519         * modules/stdio: Likewise.
58520         * modules/stdlib: Likewise.
58521         * modules/string: Likewise.
58522         * modules/sys_select: Likewise.
58523         * modules/sys_socket: Likewise.
58524         * modules/sys_stat: Likewise.
58525         * modules/sys_time: Likewise.
58526         * modules/sysexits: Likewise.
58527         * modules/time: Likewise.
58528         * modules/unistd: Likewise.
58529         * modules/wchar: Likewise.
58530         * modules/wctype: Likewise.
58531         * modules/sys_stat: Change maintainer to "all".
58532         * modules/unistd: Likewise.
58533
58534 2007-06-20  Karl Berry  <karl@gnu.org>
58535
58536         * config/srclist.txt: track www changes in license files.
58537
58538 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58539
58540         * build-aux/bootstrap: Remove stray dot.
58541         Make sure build_aux settings are honored when linking
58542         gnulib_extra_files.
58543
58544 2007-06-19  Eric Blake  <ebb9@byu.net>
58545
58546         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58547         Allow compilation on cygwin.
58548
58549 2007-06-19  Jim Meyering  <jim@meyering.net>
58550
58551         xreadlink-with-size: Remove module.  No longer used.
58552         Ex-callers now use xreadlink or mreadlink-with-size.
58553         * modules/xreadlink-with-size: Remove module.
58554         * lib/xreadlink-with-size.c: Remove file.
58555         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58556         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58557         just before the function definition *is* accurate.
58558
58559         Eliminate one way canonicalize_filename_mode could exit.
58560         * lib/canonicalize.c (canonicalize_filename_mode):
58561         Use mreadlink_with_size, not xreadlink_with_size.
58562
58563 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         Detect porting problems to FreeBSD/arm, which has time_t wider than
58566         long int.  Original problem reported for GNU diff by Xin Li in
58567         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58568         * modules/getdate (Depends-on): Add intprops, verify.
58569         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58570         is an integer type no wider than long int.
58571
58572 2007-06-18  Jim Meyering  <jim@meyering.net>
58573
58574         New module: mreadlink-with-size.
58575         * MODULES.html.sh: Add mreadlink-with-size.
58576         * modules/mreadlink-with-size: New module
58577         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58578         not xreadlink-with-size.
58579         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58580
58581 2007-06-16  Bruno Haible  <bruno@clisp.org>
58582
58583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58584         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58585         Reported by Gary V. Vaughan <gary@gnu.org>.
58586
58587 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         Revamp lchown so that it lives in unistd.h where it belongs.
58590         * lib/lchown.h: Remove.
58591         * lib/dirchownmod.c: Don't include lib/lchown.h.
58592         * lib/fchownat.c: Likewise.
58593         * lib/openat.c: Likewise.
58594         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58595         does not follow symlinks.
58596         (EOPNOTSUPP): Define if not defined.
58597         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58598         is defined to 0.
58599         (lchown): New decl.
58600         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58601         Do not check for lchown decl.
58602         Set REPLACE_LCHOWN.
58603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58604         REPLACE_LCHOWN.
58605         * modules/chown: Make it clear it follows symlinks.
58606         * modules/lchown: Make it clear it doesn't follow symlinks.
58607         (Files): Remove lib/lchown.h
58608         (Depends-on): Add unistd.
58609         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58610         (Include): Include <unistd.h>, not "lchown.h".
58611         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58612         REPLACE_LCHOWN.
58613
58614 2007-06-15  Jim Meyering  <jim@meyering.net>
58615
58616         Change license (GPL to LGPL) of fsusage and dependents.
58617         * modules/fsusage (License): Change to LGPL.
58618         * modules/full-read (License): Likewise.
58619         * modules/full-write (License): Likewise.
58620         * modules/safe-read (License): Likewise.
58621         * modules/safe-write (License): Likewise.
58622
58623 2007-06-14  Ben Pfaff  <blp@gnu.org>
58624
58625         Missing part of allocsa -> malloca transition.
58626         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58627         gl_MALLOCA.
58628
58629 2007-06-12  Bruno Haible  <bruno@clisp.org>
58630
58631         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58632         to ia64, x86_64, i386.
58633         Reported by Eric Blake.
58634
58635 2007-06-12  Bruno Haible  <bruno@clisp.org>
58636
58637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58638         cross-compiling to x86_64.
58639
58640 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58643         glitch reported by Ralf Wildenhues in
58644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58645
58646         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58647         Vin Shelton.
58648
58649 2007-06-11  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58652         replacement string.
58653         Reported by Eric Blake.
58654
58655 2007-06-10  Bruno Haible  <bruno@clisp.org>
58656
58657         Prepare vasnprintf code for use with Unicode strings.
58658         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58659         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58660         TYPE_U32_STRING.
58661         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58662         a_u32_string variants.
58663         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58664         * lib/printf-args.c: Don't include config.h and the specification
58665         header if PRINTF_FETCHARGS is already defined.
58666         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58667         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58668         TYPE_U16_STRING, TYPE_U32_STRING.
58669         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58670         u16_directive, u16_directives, u32_directive, u32_directives): New
58671         types.
58672         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58673         New declarations.
58674         * lib/printf-parse.c: Don't include config.h and the specification
58675         header if PRINTF_PARSE is already defined. Eliminate the set of
58676         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58677         them now. Include c-ctype.h.
58678         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58679         directive and CHAR_T_ONLY_ASCII.
58680         * lib/vasnprintf.c: Don't include config.h and the specification header
58681         if VASNPRINTF is already defined.
58682         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58683         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58684         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58685         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58686         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58687         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58688         code accordingly.
58689         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58690         pad_ourselves also in this case, with the 'c' and 's' directives, and
58691         with a different notion of "width".
58692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58693
58694 2007-06-10  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/unistr/u32-mbsnlen: New file.
58697         * lib/unistr/u32-mbsnlen.c: New file.
58698
58699         * modules/unistr/u16-mbsnlen: New file.
58700         * lib/unistr/u16-mbsnlen.c: New file.
58701
58702         * modules/unistr/u8-mbsnlen: New file.
58703         * lib/unistr/u8-mbsnlen.c: New file.
58704
58705         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58706         declarations.
58707
58708 2007-06-10  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/string_.h (mbsnlen): New declaration.
58711         * lib/mbsnlen.c: New file.
58712         * m4/mbsnlen.m4: New file.
58713         * modules/mbsnlen: New file.
58714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58715         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58716         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58717
58718 2007-06-10  Bruno Haible  <bruno@clisp.org>
58719
58720         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58721
58722 2007-06-10  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58725         * lib/mbuiter.h: Likewise.
58726
58727 2007-06-10  Bruno Haible  <bruno@clisp.org>
58728
58729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58730         declaration.
58731
58732 2007-06-10  Karl Berry  <karl@gnu.org>
58733
58734         * config/srclist.txt: remove gettext entries, Bruno prefers
58735         to update individually.
58736
58737 2007-06-10  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58740         'maxlen'. Ensure only length + width bytes are allocated, not
58741         length + 1 + width.
58742
58743 2007-06-09  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58746         (CHAR_T): Remove macro.
58747         (VASNPRINTF): Update.
58748
58749 2007-06-09  Bruno Haible  <bruno@clisp.org>
58750
58751         * MODULES.html.sh (Unicode string functions): Add the new modules.
58752
58753         * modules/uniconv/u32-conv-to-enc: New file.
58754         * lib/uniconv/u32-conv-to-enc.c: New file.
58755         * modules/uniconv/u32-conv-to-enc-tests: New file.
58756         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58757
58758         * modules/uniconv/u16-conv-to-enc: New file.
58759         * lib/uniconv/u16-conv-to-enc.c: New file.
58760         * lib/uniconv/u-conv-to-enc.h: New file.
58761         * modules/uniconv/u16-conv-to-enc-tests: New file.
58762         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58763
58764         * modules/uniconv/u8-conv-to-enc: New file.
58765         * lib/uniconv/u8-conv-to-enc.c: New file.
58766         * modules/uniconv/u8-conv-to-enc-tests: New file.
58767         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58768
58769         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58770         u32_conv_to_encoding): New declarations.
58771
58772 2007-06-09  Bruno Haible  <bruno@clisp.org>
58773
58774         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58775
58776 2007-06-09  Bruno Haible  <bruno@clisp.org>
58777
58778         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58779         * modules/malloca: Renamed from modules/allocsa, updated.
58780         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58781         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58782         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58783         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58784         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58785         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58786         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58787         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58788         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58789         * modules/c-strcasestr (Depends-on): Update.
58790         * lib/c-strcasestr.c: Update.
58791         * modules/c-strstr (Depends-on): Update.
58792         * lib/c-strstr.c: Update.
58793         * modules/canonicalize-lgpl (Depends-on): Update.
58794         * lib/canonicalize-lgpl.c: Update.
58795         * modules/clean-temp (Depends-on): Update.
58796         * lib/clean-temp.c: Update.
58797         * modules/csharpcomp (Depends-on): Update.
58798         * lib/csharpcomp.c: Update.
58799         * modules/csharpexec (Depends-on): Update.
58800         * lib/csharpexec.c: Update.
58801         * modules/javacomp (Depends-on): Update.
58802         * lib/javacomp.c: Update.
58803         * modules/javaexec (Depends-on): Update.
58804         * lib/javaexec.c: Update.
58805         * modules/mbscasestr (Depends-on): Update.
58806         * lib/mbscasestr.c: Update.
58807         * modules/mbsstr (Depends-on): Update.
58808         * lib/mbsstr.c: Update.
58809         * modules/setenv (Depends-on): Update.
58810         * lib/setenv.c: Update.
58811         * modules/strcasestr (Depends-on): Update.
58812         * lib/strcasestr.c: Update.
58813         * modules/striconveha (Depends-on): Update.
58814         * lib/striconveha.c: Update.
58815         * modules/relocatable-prog-wrapper (Files): Update.
58816         * lib/relocwrapper.c: Update.
58817         * build-aux/install-reloc: Update.
58818         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58819
58820 2007-06-08  Bruno Haible  <bruno@clisp.org>
58821
58822         Port to uClibc.
58823         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58824         * lib/fpurge.c (fpurge): Likewise.
58825         * lib/freading.c (freading): Likewise.
58826         * lib/fseeko.c (rpl_fseeko): Likewise.
58827         * lib/fseterr.c (fseterr): Likewise.
58828         * lib/fwriting.c (fwriting): Likewise.
58829         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58830
58831 2007-06-08  Bruno Haible  <bruno@clisp.org>
58832
58833         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58834         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58835         * modules/gettext (Files): Add m4/intlmacosx.m4.
58836
58837 2007-06-07  Bruno Haible  <bruno@clisp.org>
58838
58839         * modules/localename-tests: New file.
58840         * tests/test-localename.c: New file.
58841
58842         New module 'localename'.
58843         * lib/localename.h: New file.
58844         * lib/localename.c: New file, from GNU gettext.
58845         * m4/localename.m4: New file.
58846         * modules/localename: New file.
58847
58848 2007-06-07  Bruno Haible  <bruno@clisp.org>
58849
58850         Work around the lack of <wchar.h> on some builds of uClibc.
58851         * doc/headers/wchar.texi: Update.
58852         * lib/wchar_.h: Include <wchar.h> only if it exists.
58853         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58854         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58855         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58856         doesn't exist.
58857         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58858         * modules/mbfile (Depends-on): Add wchar.
58859         * modules/mbiter (Depends-on): Likewise.
58860         * modules/mbuiter (Depends-on): Likewise.
58861         Reported by Simon Josefsson.
58862
58863 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         Work around problem reported by Steven M. Schweda in
58866         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58867         Tru64 5.1B with the Compaq compiler environment installed declares
58868         an 'isblank' function but does not define it in the C library.
58869         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58870         * lib/regex_internal.h (isblank): Likewise.
58871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58872         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58873
58874 2007-06-05  Bruno Haible  <bruno@clisp.org>
58875
58876         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58877         ia64.
58878         * modules/printf-safe: New file.
58879         * modules/fprintf-posix (Depends-on): Add printf-safe.
58880         * modules/printf-posix (Depends-on): Likewise.
58881         * modules/snprintf-posix (Depends-on): Likewise.
58882         * modules/sprintf-posix (Depends-on): Likewise.
58883         * modules/vasnprintf-posix (Depends-on): Likewise.
58884         * modules/vasprintf-posix (Depends-on): Likewise.
58885         * modules/vfprintf-posix (Depends-on): Likewise.
58886         * modules/vprintf-posix (Depends-on): Likewise.
58887         * modules/vsnprintf-posix (Depends-on): Likewise.
58888         * modules/vsprintf-posix (Depends-on): Likewise.
58889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58890         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58891         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58892         "no" on i386, x86_64, ia64.
58893         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58894         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58895         on i386, x86_64, ia64.
58896         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58897         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58898         on i386, x86_64, ia64.
58899         * tests/test-vasnprintf-posix.c: Include float.h.
58900         (LDBL80_WORDS): New macro.
58901         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58902         on i386, x86_64, ia64.
58903         * tests/test-vasprintf-posix.c: Include float.h.
58904         (LDBL80_WORDS): New macro.
58905         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58906         on i386, x86_64, ia64.
58907         * tests/test-snprintf-posix.c: Include float.h.
58908         * tests/test-sprintf-posix.c: Likewise.
58909         * tests/test-vsnprintf-posix.c: Likewise.
58910         * tests/test-vsprintf-posix.c: Likewise.
58911
58912 2007-06-05  Bruno Haible  <bruno@clisp.org>
58913
58914         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58915         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58916         non-IEEE numbers on i386, x86_64, ia64.
58917         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58918         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58919         * tests/test-isnanl.h: Include float.h.
58920         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58921
58922 2007-06-05  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58925         also the %a / %A. Handle the %a / %A code before this extra handling.
58926
58927 2007-06-05  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58930         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58931
58932 2007-06-05  Bruno Haible  <bruno@clisp.org>
58933
58934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58935         typo in variable name.
58936
58937 2007-06-05  Eric Blake  <ebb9@byu.net>
58938
58939         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58940         Reported by Simon Josefsson.
58941
58942 2007-06-04  Bruno Haible  <bruno@clisp.org>
58943
58944         Avoid test failures on some PowerPC platforms.
58945         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58946         Define differently for PowerPC.
58947         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58948         Reported by Gary V. Vaughan <gary@gnu.org>.
58949
58950 2007-06-02  Bruno Haible  <bruno@clisp.org>
58951
58952         Fix test-stdint failure on FreeBSD/ia64.
58953         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58954         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58955         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58956         * doc/headers/stdint.texi: Update.
58957
58958 2007-06-01  Bruno Haible  <bruno@clisp.org>
58959
58960         * tests/test-binary-io.c (main): Pass a third argument to open().
58961         Reported by Gary V. Vaughan <gary@gnu.org>.
58962
58963 2007-06-01  Bruno Haible  <bruno@clisp.org>
58964
58965         * doc/functions/frexpl.texi: Update for mingw.
58966
58967 2007-06-01  Bruno Haible  <bruno@clisp.org>
58968
58969         * tests/test-lseek.c (main): Disable test of errno for invalid third
58970         argument.
58971         * doc/functions/lseek.texi: Update.
58972         Reported by Gary V. Vaughan <gary@gnu.org>.
58973
58974 2007-05-28  Bruno Haible  <bruno@clisp.org>
58975
58976         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58977
58978 2007-05-31  Eric Blake  <ebb9@byu.net>
58979
58980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58981         cross compiling.
58982
58983 2007-05-30  Eric Blake  <ebb9@byu.net>
58984         and Bruno Haible  <bruno@clisp.org>
58985
58986         Work around mingw test failures exposed by m4-1.4.9b.
58987         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58988         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58989         moment.
58990
58991 2007-05-30  Bruno Haible  <bruno@clisp.org>
58992
58993         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58994         assuming that they are closed. Needed on HP-UX 11.
58995
58996 2007-05-29  Bruno Haible  <bruno@clisp.org>
58997
58998         Fix a problem with #include_next.
58999         * lib/dirent_.h: Split the double-inclusion guard.
59000         * lib/fcntl_.h: Likewise.
59001         * lib/float_.h: Likewise.
59002         * lib/iconv_.h: Likewise.
59003         * lib/inttypes_.h: Likewise.
59004         * lib/locale_.h: Likewise.
59005         * lib/math_.h: Likewise.
59006         * lib/netinet_in_.h: Likewise.
59007         * lib/search_.h: Likewise.
59008         * lib/signal_.h: Likewise.
59009         * lib/stdint_.h: Likewise.
59010         * lib/stdio_.h: Likewise.
59011         * lib/stdlib_.h: Likewise.
59012         * lib/string_.h: Likewise.
59013         * lib/sys_select_.h: Likewise.
59014         * lib/sys_socket_.h: Likewise.
59015         * lib/sys_stat_.h: Likewise.
59016         * lib/sys_time_.h: Likewise.
59017         * lib/sysexits_.h: Likewise.
59018         * lib/time_.h: Likewise.
59019         * lib/unistd_.h: Likewise.
59020         * lib/wchar_.h: Likewise.
59021         * lib/wctype_.h: Likewise.
59022
59023 2007-05-29  Bruno Haible  <bruno@clisp.org>
59024
59025         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59026         for the moment.
59027
59028 2007-05-29  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59031         invocation.
59032         Reported by Eric Blake.
59033
59034 2007-05-29  Bruno Haible  <bruno@clisp.org>
59035
59036         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59037         compiling case.
59038
59039 2007-05-29  Eric Blake  <ebb9@byu.net>
59040             Bruno Haible  <bruno@clisp.org>
59041
59042         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59043         cross compiles.
59044
59045 2007-05-28  Eric Blake  <ebb9@byu.net>
59046
59047         * modules/closein-tests (test_closein_LDADD): Support test on
59048         cygwin with libtool.
59049
59050 2007-05-28  Bruno Haible  <bruno@clisp.org>
59051
59052         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59053         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59054         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59055         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59056         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59057         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59058         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59059         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59060         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59061
59062 2007-05-28  Eric Blake  <ebb9@byu.net>
59063
59064         Unconditionally include <config.h> in unit tests.
59065         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59066         * tests/test-allocsa.c, tests/test-arcfour.c,
59067         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59068         tests/test-array_list.c, tests/test-array_oset.c,
59069         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59070         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59071         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59072         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59073         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59074         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59075         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59076         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59077         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59078         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59079         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59080         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59081         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59082         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59083         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59084         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59085         test-md5.c, test-memmem.c, test-printf-posix.c,
59086         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59087         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59088         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59089         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59090         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59091         test-vasnprintf-posix2.c, test-vasnprintf.c,
59092         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59093         test-vfprintf-posix.c, test-vprintf-posix.c,
59094         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59095         test-xvasprintf.c: Likewise.
59096
59097 2007-05-28  Bruno Haible  <bruno@clisp.org>
59098
59099         * gnulib-tool (func_import): Remember the --with-tests command-line
59100         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59101         Reported by Eric Blake.
59102
59103 2007-05-28  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/ftell-tests: New file.
59106         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59107         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59108
59109         * lib/ftell.c: New file.
59110         * modules/ftell: New file.
59111         * m4/ftell.m4: New file.
59112         * doc/functions/ftell.texi: Update.
59113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59114         REPLACE_FTELL.
59115         * lib/stdio_.h (rpl_ftell): New declaration.
59116         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59117         REPLACE_FTELL.
59118
59119 2007-05-28  Eric Blake  <ebb9@byu.net>
59120
59121         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59122
59123 2007-05-28  Bruno Haible  <bruno@clisp.org>
59124
59125         * modules/fseek-tests: New file.
59126         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59127         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59128
59129         * lib/fseek.c: New file.
59130         * modules/fseek: New file.
59131         * m4/fseek.m4: New file.
59132         * doc/functions/fseek.texi: Update.
59133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59134         REPLACE_FSEEK.
59135         * lib/stdio_.h (rpl_fseek): New declaration.
59136         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59137         REPLACE_FSEEK.
59138
59139 2007-05-28  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/stdio_.h (fflush): More comments.
59142
59143 2007-05-28  Bruno Haible  <bruno@clisp.org>
59144
59145         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59146         runtime test.
59147
59148 2007-05-28  Eric Blake  <ebb9@byu.net>
59149
59150         Improve lseek module.
59151         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59152         * lib/unistd_.h (lseek): Scale back link warning message.
59153         * tests/test-lseek.c: Beef up test.
59154         * tests/test-lseek.sh: Exercise more facets of lseek.
59155         Reported by Bruno Haible.
59156
59157 2007-05-28  Bruno Haible  <bruno@clisp.org>
59158
59159         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59160         to define.
59161
59162 2007-05-27  Bruno Haible  <bruno@clisp.org>
59163
59164         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59165
59166 2007-05-27  Bruno Haible  <bruno@clisp.org>
59167
59168         * modules/openmp: New file.
59169         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59170         Noah Misch.
59171
59172 2007-05-26  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/chdir-long (Depends-on): Add fchdir.
59175         * modules/chdir-safer (Depends-on): Likewise.
59176         * modules/fts (Depends-on): Likewise.
59177         * modules/fts-lgpl (Depends-on): Likewise.
59178         * modules/openat (Depends-on): Likewise.
59179         * modules/savewd (Depends-on): Likewise.
59180
59181 2007-05-24  Eric Blake  <ebb9@byu.net>
59182
59183         Fix lseek on mingw.
59184         * modules/lseek: New module.
59185         * m4/lseek.m4: New file.
59186         * lib/lseek.c: New file.
59187         * modules/lseek-tests: New file.
59188         * tests/test-lseek.c: New file.
59189         * tests/test-lseek.sh: New file.
59190         * MODULES.html.sh: Document lseek module.
59191         * modules/fflush (Depends-on): Add lseek, fseeko.
59192         * modules/fseeko (Depends-on): Likewise.
59193         * modules/ftello (Depends-on): Likewise.
59194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59195         broken.
59196         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59197         broken.
59198         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59199         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59200         * lib/ftello.c (rpl_ftello): Likewise.
59201         * tests/test-fseeko.c (main): Test this.
59202         * tests/test-fseeko.sh: Likewise.
59203         * tests/test-ftello.c (main): Likewise.
59204         * tests/test-ftello.sh: Likewise.
59205         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59206         implies replacing fseek.
59207         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59208         HAVE_FTELLO.
59209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59210         * modules/unistd (Makefile.am): Likewise.
59211         * lib/unistd_.h (lseek): Declare a replacement.
59212         * doc/functions/lseek.texi (lseek): Document this fix.
59213         * doc/functions/fseek.texi (fseek): Likewise.
59214         * doc/functions/ftell.texi (ftell): Likewise.
59215
59216 2007-05-24  Bruno Haible  <bruno@clisp.org>
59217
59218         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59219         in the printed representation of a NaN.
59220         * tests/test-vasprintf-posix.c (test_function): Likewise.
59221         * tests/test-snprintf-posix.h (test_function): Likewise.
59222         * tests/test-sprintf-posix.h (test_function): Likewise.
59223         Reported by Eric Blake.
59224
59225 2007-05-23  Eric Blake  <ebb9@byu.net>
59226
59227         Fix fseeko/ftello on cygwin 1.5.24.
59228         * doc/functions/fseeko.texi (fseeko): Document the fix.
59229         * doc/functions/ftello.texi (ftello): Document the fix.
59230         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59231         * doc/functions/stdout.text (stdout): New file.
59232         * doc/functions/stderr.text (stderr): New file.
59233         * doc/gnulib.texi (Function Substitutes): Use new files.
59234         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59235         prior to 1.7.0.
59236         * tests/test-ftello.c (main): Likewise for ftello.
59237         * tests/test-fseeko.sh: New file.
59238         * tests/test-ftello.sh: New file.
59239         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59240         with seekable stdin.
59241         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59243         (gl_REPLACE_FSEEKO): New macro.
59244         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59245         * modules/fseeko (Files): Distribute fseeko.c.
59246         * modules/ftello (Files): Distribute ftello.c.
59247         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59248         mode.
59249         * lib/ftello.c (rpl_ftello): New file.
59250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59251         fseeko, ftello.
59252         (gl_STDIN_LARGE_OFFSET): New macro.
59253         * modules/stdio (Makefile.am): Perform the replacement.
59254         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59255
59256 2007-05-23  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59259         GNULIB_POSIXCHECK is defined.
59260
59261 2007-05-21  Bruno Haible  <bruno@clisp.org>
59262
59263         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59264         Check also the output for NaN arguments. When cross-compiling, guess
59265         no on IRIX.
59266         * lib/vasnprintf.c: Update comments.
59267         * tests/test-vasnprintf-posix.c (strisnan): New function.
59268         (test_function): Use it.
59269         * tests/test-vasprintf-posix.c (strisnan): New function.
59270         (test_function): Use it.
59271         * tests/test-snprintf-posix.h (strisnan): New function.
59272         (test_function): Use it.
59273         * tests/test-sprintf-posix.h (strisnan): New function.
59274         (test_function): Use it.
59275         Reported by Eric Blake.
59276
59277 2007-05-20  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59280         numbers that fails on BeOS.
59281         * doc/functions/frexpl.texi: Update.
59282
59283 2007-05-20  Jim Meyering  <jim@meyering.net>
59284
59285         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59286         forced upon us by glibc-2.6.
59287
59288 2007-05-20  Bruno Haible  <bruno@clisp.org>
59289
59290         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59291         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59292         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59293         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59294         NEED_PRINTF_INFINITE.
59295         (is_infinitel): New function.
59296         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59298         gl_PREREQ_VASNPRINTF_INFINITE.
59299         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59301         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59302         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59303         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59304         gl_PREREQ_VASNPRINTF_INFINITE.
59305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59311         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59312         * doc/functions/fprintf.texi: Update.
59313         * doc/functions/printf.texi: Update.
59314         * doc/functions/snprintf.texi: Update.
59315         * doc/functions/sprintf.texi: Update.
59316         * doc/functions/vfprintf.texi: Update.
59317         * doc/functions/vprintf.texi: Update.
59318         * doc/functions/vsnprintf.texi: Update.
59319         * doc/functions/vsprintf.texi: Update.
59320
59321 2007-05-20  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59324         was not found in libc.
59325         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59326
59327 2007-05-20  Bruno Haible  <bruno@clisp.org>
59328
59329         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59330         printed as "-nan" instead of "nan".
59331         * tests/test-vasprintf-posix.c (test_function): Likewise.
59332         * tests/test-snprintf-posix.h (test_function): Likewise.
59333         * tests/test-sprintf-posix.h (test_function): Likewise.
59334         Needed for HP-UX 11.
59335
59336 2007-05-20  Jim Meyering  <jim@meyering.net>
59337
59338         Fix buggy test for the fchownat-deref bug.
59339         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59340         symlink required for the run-test.  Without it, this test would
59341         always declare that fchownat doesn't work, and client code would
59342         unnecessarily use the replacement function with fixed libc.
59343         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59344         Reported by Greg Schafer.
59345
59346 2007-05-19  Bruno Haible  <bruno@clisp.org>
59347
59348         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59349         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59350         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59351         Needed for IRIX 6.5 and Solaris 2.5.1.
59352
59353 2007-05-19  Bruno Haible  <bruno@clisp.org>
59354
59355         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59356         (test_function): Skip tests involving -0.0 on platforms where
59357         -0.0 = 0.0.
59358         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59359         (test_function): Skip tests involving -0.0 on platforms where
59360         -0.0 = 0.0.
59361         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59362         (test_function): Skip tests involving -0.0 on platforms where
59363         -0.0 = 0.0.
59364         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59365         (test_function): Skip tests involving -0.0 on platforms where
59366         -0.0 = 0.0.
59367         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59368         tests.
59369         * tests/test-printf-posix.h (test_function): Likewise.
59370         * tests/test-printf-posix.output: Remove all -0.0 related results.
59371         Needed for IRIX 6.5.
59372
59373 2007-05-19  Bruno Haible  <bruno@clisp.org>
59374
59375         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59376         printed as "nan0x7fffffff" instead of "nan".
59377         * tests/test-vasprintf-posix.c (test_function): Likewise.
59378         * tests/test-snprintf-posix.h (test_function): Likewise.
59379         * tests/test-sprintf-posix.h (test_function): Likewise.
59380         * tests/test-fprintf-posix.h (NaN): Remove macro.
59381         (test_function): Remove all NaN related tests.
59382         * tests/test-printf-posix.h (NaN): Remove macro.
59383         (test_function): Remove all NaN related tests.
59384         * tests/test-printf-posix.output: Remove all NaN related results.
59385         Needed for IRIX 6.5.
59386
59387 2007-05-19  Bruno Haible  <bruno@clisp.org>
59388
59389         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59391
59392 2007-05-19  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/float_.h: New file.
59395         * m4/float_h.m4: New file.
59396         * modules/float: New file.
59397         * modules/isnanl (Dependencies): Add float.
59398         * modules/isnanl-nolibm (Dependencies): Likewise.
59399         * modules/mathl (Dependencies): Likewise.
59400         * modules/printf-frexpl (Dependencies): Likewise.
59401         * modules/signbit (Dependencies): Likewise.
59402         * modules/vasnprintf (Dependencies): Likewise.
59403         * doc/headers/float.texi: Update.
59404
59405 2007-05-19  Jim Meyering  <jim@meyering.net>
59406
59407         * lib/utimens.c (gl_futimens): Rename from futimens,
59408         now that glibc-2.6 declares futimens.
59409         * lib/utimens.h: Likewise.
59410
59411 2007-05-19  Bruno Haible  <bruno@clisp.org>
59412
59413         Avoid test failures on mingw.
59414         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59415         * tests/test-printf-posix.sh: Likewise.
59416         * tests/test-vfprintf-posix.sh: Likewise.
59417         * tests/test-vprintf-posix.sh: Likewise.
59418
59419 2007-05-19  Bruno Haible  <bruno@clisp.org>
59420
59421         Fix *printf result for NaN, Inf, -0.0 on mingw.
59422         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59423         * lib/vasnprintf.c: Include math.h and isnan.h.
59424         (is_infinite_or_zero): New function.
59425         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59426         values in the %f, %F, %e, %E, %g, %G directives.
59427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59429         gl_PRINTF_INFINITE and test its result. Invoke
59430         gl_PREREQ_VASNPRINTF_INFINITE.
59431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59438         * doc/functions/fprintf.texi: Update.
59439         * doc/functions/printf.texi: Update.
59440         * doc/functions/snprintf.texi: Update.
59441         * doc/functions/sprintf.texi: Update.
59442         * doc/functions/vfprintf.texi: Update.
59443         * doc/functions/vprintf.texi: Update.
59444         * doc/functions/vsnprintf.texi: Update.
59445         * doc/functions/vsprintf.texi: Update.
59446
59447 2007-05-19  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59450         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59451         Instead of multiplying with 10^k, set extra_zeroes to k.
59452         (scale10_round_long_double): Remove function.
59453
59454 2007-05-18  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59457         introduced on 2007-05-06.
59458
59459 2007-05-18  Bruno Haible  <bruno@clisp.org>
59460
59461         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59462         %g directives.
59463         * tests/test-vasprintf-posix.c (test_function): Likewise.
59464         * tests/test-snprintf-posix.h (test_function): Likewise.
59465         * tests/test-sprintf-posix.h (test_function): Likewise.
59466
59467 2007-05-18  Bruno Haible  <bruno@clisp.org>
59468
59469         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59470         (strmatch): New function.
59471         (test_function): Test the %f directive on numbers of various exponents.
59472         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59473         (strmatch): New function.
59474         (test_function): Test the %f directive on numbers of various exponents.
59475         * tests/test-snprintf-posix.h (strmatch): New function.
59476         (test_function): Test the %f directive on numbers of various exponents.
59477         * tests/test-sprintf-posix.h (strmatch): New function.
59478         (test_function): Test the %f directive on numbers of various exponents.
59479         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59480         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59481         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59482         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59483
59484 2007-05-18  Bruno Haible  <bruno@clisp.org>
59485
59486         Add support for 'long double' number output.
59487         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59488         * lib/vasnprintf.c: Include math.h and float+.h.
59489         (mp_limb_t): New type.
59490         (GMP_LIMB_BITS): New macro.
59491         (mp_twolimb_t): New type.
59492         (GMP_TWOLIMB_BITS): New macro.
59493         (mpn_t): New type.
59494         (multiply, divide, convert_to_decimal, decode_long_double,
59495         scale10_round_long_double, scale10_round_decimal_long_double,
59496         floorlog10l): New functions.
59497         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59498         for the %f, %F, %e, %E, %g, %G directives.
59499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59501         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59502         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59510         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59511         * modules/snprintf-posix (Depends-on): Likewise.
59512         * modules/sprintf-posix (Depends-on): Likewise.
59513         * modules/vasnprintf-posix (Depends-on): Likewise.
59514         * modules/vasprintf-posix (Depends-on): Likewise.
59515         * modules/vfprintf-posix (Depends-on): Likewise.
59516         * modules/vsnprintf-posix (Depends-on): Likewise.
59517         * modules/vsprintf-posix (Depends-on): Likewise.
59518         * modules/vasnprintf (Files): Add lib/float+.h.
59519         * doc/functions/fprintf.texi: Update.
59520         * doc/functions/printf.texi: Update.
59521         * doc/functions/snprintf.texi: Update.
59522         * doc/functions/sprintf.texi: Update.
59523         * doc/functions/vfprintf.texi: Update.
59524         * doc/functions/vprintf.texi: Update.
59525         * doc/functions/vsnprintf.texi: Update.
59526         * doc/functions/vsprintf.texi: Update.
59527
59528 2007-05-18  Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59531
59532 2007-05-18  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59535         for printing 64-bit integers. Needed for mingw.
59536
59537 2007-05-18  Bruno Haible  <bruno@clisp.org>
59538
59539         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59540         gl_FUNC_FREXPL_WORKS.
59541         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59542
59543 2007-05-18  Bruno Haible  <bruno@clisp.org>
59544
59545         * modules/frexpl-nolibm-tests: New file.
59546
59547         * modules/frexpl-nolibm: New file.
59548         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59549
59550 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59553         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59554         GCC 4.2, which otherwise issues a lot of warnings.
59555         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59556         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59557         Likewise.
59558         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59559         * modules/iconv_open (iconv.h): Likewise.
59560         * modules/locale (locale.h): Likewise.
59561         * modules/netinet_in (netinet/in.h): Likewise.
59562         * modules/sys_select (sys_select.h): Likewise.
59563         * modules/sys_socket (sys/socket.h): Likewise.
59564         * modules/sys_stat (sys/stat.h): Likewise.
59565         * modules/sysexits (sysexits.h): Likewise.
59566         * modules/unistd (unistd.h): Likewise.
59567
59568 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59569
59570         * modules/closein-tests (Makefile.am): Distribute
59571         `test-closein.sh'.
59572
59573 2007-05-17  Bruno Haible  <bruno@clisp.org>
59574
59575         * tests/test-printf-posix.output: Renamed from
59576         tests/test-fprintf-posix.out.
59577         * modules/fprintf-posix-tests: Update.
59578         * modules/printf-posix-tests: Update.
59579         * modules/vfprintf-posix-tests: Update.
59580         * modules/vprintf-posix-tests: Update.
59581         * tests/test-fprintf-posix.sh: Update.
59582         * tests/test-printf-posix.sh: Update.
59583         * tests/test-vfprintf-posix.sh: Update.
59584         * tests/test-vprintf-posix.sh: Update.
59585         Reported by Ralf Wildenhues.
59586
59587 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59588
59589         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59590         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59591         GCC 4.2, which otherwise issues a lot of warnings.
59592         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59593         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59594         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59595         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59596         it should no longer be needed.
59597         * lib/string_.h: Likewise.
59598         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59599         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59600         * modules/inttypes (inttypes.h): Likewise.
59601         * modules/math (math.h): Likewise.
59602         * modules/search (search.h): Likewise.
59603         * modules/signal (signal.h): Likewise.
59604         * modules/stdint (stdint.h): Likewise.
59605         * modules/stdio (stdio.h): Likewise.
59606         * modules/stdlib (stdlib.h): Likewise.
59607         * modules/string (string.h): Likewise.
59608         * modules/sys_time (sys/time.h): Likewise.
59609         * modules/time (time.h): Likewise.
59610         * modules/wchar (wchar.h): Likewise.
59611         * modules/wctype (wtype.h): Likewise.
59612
59613 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59614
59615         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59616
59617 2007-05-13  Bruno Haible  <bruno@clisp.org>
59618
59619         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59620         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59621         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59622         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59623         (gl_PREREQ_STRTOK_R): Don't require it here.
59624
59625 2007-05-13  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59628         when used in C++ mode.
59629
59630 2007-05-12  Bruno Haible  <bruno@clisp.org>
59631
59632         * lib/linebuffer.h: Tweak doc.
59633         * lib/linebuffer.c: Likewise.
59634
59635 2007-05-12  James Youngman  <jay@gnu.org>
59636
59637         * lib/linebuffer.c (readlinebuffer_delim): New function,
59638         like readlinebuffer, but use a caller-specified delimiter.
59639         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59640         as the delimiter.
59641         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59642
59643 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59644
59645         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59646         * modules/openat (Files): Remove openat-die.c.
59647         (Depends-on): Add openat-die.
59648         * modules/openat-die: New module.
59649
59650 2007-05-06  Bruno Haible  <bruno@clisp.org>
59651
59652         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59653         Update with info about Cygwin.
59654         * doc/functions/fprintf.texi: Update.
59655         * doc/functions/printf.texi: Update.
59656         * doc/functions/snprintf.texi: Update.
59657         * doc/functions/sprintf.texi: Update.
59658         * doc/functions/vfprintf.texi: Update.
59659         * doc/functions/vprintf.texi: Update.
59660         * doc/functions/vsnprintf.texi: Update.
59661         * doc/functions/vsprintf.texi: Update.
59662         Reported by Eric Blake.
59663
59664 2007-05-06  Bruno Haible  <bruno@clisp.org>
59665
59666         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59667         padding ourselves for the floating-point directives.
59668         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59671         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59672         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59676         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59680         * tests/test-snprintf-posix.h (test_function): Also check the width
59681         and some flags in the %f directive.
59682         * tests/test-sprintf-posix.h (test_function): Likewise.
59683         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59684         * tests/test-vasprintf-posix.c (test_function): Likewise.
59685         * doc/functions/fprintf.texi: Update.
59686         * doc/functions/printf.texi: Update.
59687         * doc/functions/snprintf.texi: Update.
59688         * doc/functions/sprintf.texi: Update.
59689         * doc/functions/vfprintf.texi: Update.
59690         * doc/functions/vprintf.texi: Update.
59691         * doc/functions/vsnprintf.texi: Update.
59692         * doc/functions/vsprintf.texi: Update.
59693
59694 2007-05-06  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59697         pass the ' flag character to sprintf or snprintf.
59698         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59701         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59702         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59710         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59711         flag.
59712         * tests/test-sprintf-posix.h (test_function): Likewise.
59713         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59714         * tests/test-vasprintf-posix.c (test_function): Likewise.
59715         * doc/functions/fprintf.texi: Update.
59716         * doc/functions/printf.texi: Update.
59717         * doc/functions/snprintf.texi: Update.
59718         * doc/functions/sprintf.texi: Update.
59719         * doc/functions/vfprintf.texi: Update.
59720         * doc/functions/vprintf.texi: Update.
59721         * doc/functions/vsnprintf.texi: Update.
59722         * doc/functions/vsprintf.texi: Update.
59723
59724 2007-05-01  Bruno Haible  <bruno@clisp.org>
59725
59726         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59727
59728 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59731         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59732
59733 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59734
59735         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59736         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59738
59739 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59740
59741         * lib/argp-help.c (struct hol_entry): New member `ord'.
59742         (HOL_ENTRY_PTRCMP): Use ord for comparison
59743         (hol_sort): Initialize ord.
59744
59745 2007-05-01  Bruno Haible  <bruno@clisp.org>
59746
59747         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59748         Reported by Eric Blake.
59749         * doc/gnulib.texi (Function Substitutes): Update.
59750
59751 2007-05-01  Bruno Haible  <bruno@clisp.org>
59752
59753         * doc/functions.texi: Remove file, now redundant through
59754         doc/functions/*.texi.
59755
59756 2007-05-01  Bruno Haible  <bruno@clisp.org>
59757
59758         * modules/argp (Depends-on): Add sleep.
59759
59760 2007-05-01  Bruno Haible  <bruno@clisp.org>
59761
59762         * modules/sleep-tests: New file.
59763         * tests/test-sleep.c: New file.
59764
59765         * modules/sleep: New file.
59766         * lib/sleep.c: New file.
59767         * m4/sleep.m4: New file.
59768         * lib/unistd_.h (sleep): New declaration.
59769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59770         HAVE_SLEEP.
59771         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59772         * doc/functions/sleep.texi: Document the sleep module.
59773
59774 2007-05-01  Bruno Haible  <bruno@clisp.org>
59775
59776         * lib/sigprocmask.h: Remove file.
59777         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59778         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59780         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59781         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59782         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59783         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59784         HAVE_SIGSET_T as a shell variable.
59785         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59786         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59787         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59788         (Depends-on): Add signal. Remove verify.
59789         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59790         (Include): Mention <signal.h> instead of sigprocmask.h.
59791         * NEWS: Mention the change.
59792         * lib/fatal-signal.c: Don't include sigprocmask.h.
59793
59794 2007-05-01  Bruno Haible  <bruno@clisp.org>
59795
59796         * modules/signal: New file.
59797         * lib/signal_.h: New file.
59798         * m4/signal_h.m4: New file.
59799
59800 2007-05-01  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59803         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59804         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59805         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59806
59807 2007-05-01  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59810         configure time.
59811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59812         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59813         * modules/sys_stat (Makefile.am): Substitute their values into
59814         sys/stat.h.
59815
59816 2007-05-01  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59819         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59820         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59821
59822 2007-05-01  Bruno Haible  <bruno@clisp.org>
59823
59824         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59825         'assert' module here.
59826
59827 2007-05-01  Bruno Haible  <bruno@clisp.org>
59828
59829         * doc/functions/*.texi: New files.
59830         * doc/functions/google-ranking.txt: New file.
59831         * doc/gnulib.texi (Function Substitutes): New chapter.
59832         (ctime, inet_ntoa): Remove sections.
59833         * doc/ctime.texi: Remove file.
59834         * doc/inet_ntoa.texi: Remove file.
59835         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59836         dependencies.
59837         (%.info): New rule, specifying a --reference-limit.
59838
59839 2007-05-01  Bruno Haible  <bruno@clisp.org>
59840
59841         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59842
59843 2007-05-01  Bruno Haible  <bruno@clisp.org>
59844
59845         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59846         the portability of 'mkdir' to mingw systems.
59847
59848 2007-05-01  Bruno Haible  <bruno@clisp.org>
59849
59850         * doc/headers/google-ranking.txt: New file.
59851
59852 2007-04-30  Eric Blake  <ebb9@byu.net>
59853
59854         Prefer fseeko to fseek.
59855         * modules/getpass (Depends-on): Add fseeko.
59856         * lib/getpass.c (getpass): Use fseeko, not fseek.
59857
59858 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59859
59860         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59861         assumes the sorting is stable, while most qsort implementations
59862         are not.  Use argument addresses to ensure they never compare as
59863         equal.
59864
59865         * tests/test-argp-2.sh (usage-indent test): Fix output
59866         (func_compare): Restore diff options
59867         * tests/test-argp.c: Restore #include "progname.h"
59868
59869 2007-04-29  Bruno Haible  <bruno@clisp.org>
59870
59871         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59873         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59875         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59876         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59877         (TESTS, check_PROGRAMS): Add test-snprintf.
59878         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59879         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59880         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59881         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59882         assertions that fail on HP-UX, OSF/1, or IRIX.
59883         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59884
59885 2007-04-29  Bruno Haible  <bruno@clisp.org>
59886
59887         * MODULES.html.sh (posix_functions): Remove 'contents'.
59888
59889 2007-04-29  Karl Berry  <karl@gnu.org>
59890
59891         * config/srclist.txt (gendocs_template_min): new entry.
59892
59893 2007-04-29  Bruno Haible  <bruno@clisp.org>
59894
59895         Work around fpurge bug on BSD systems.
59896         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59897         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59898         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59899         fpurge to rpl_fpurge if the system already has this function.
59900         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59901         the case where the system already has this function. Correct invariants
59902         on BSD systems.
59903         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59904         BSD systems.
59905
59906 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59907
59908         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59909         proposed by Sven Verdoolaege.
59910
59911         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59912         options.
59913         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59914         (usage and help tests): Update
59915
59916 2007-04-29  Bruno Haible  <bruno@clisp.org>
59917
59918         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59919         Print more information in case of failure. Disable a test on BeOS.
59920
59921 2007-04-29  Bruno Haible  <bruno@clisp.org>
59922
59923         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59924         This helps debugging on systems on which no gdb is available.
59925
59926 2007-04-29  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/freading.h: Improve comments.
59929         * lib/fwriting.h: Likewise.
59930         * tests/test-freading.c (main): Don't check freading immediately after
59931         repositioning. Needed for glibc.
59932
59933 2007-04-29  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/freading.c (freading): Trivial simplification.
59936
59937 2007-04-28  Bruno Haible  <bruno@clisp.org>
59938
59939         * tests/test-fwriting.c (main): Also test the interaction between
59940         fflush and fwriting.
59941         * modules/fwriting-tests (Depends-on): Add fflush.
59942
59943         * tests/test-freading.c (main): Also test the interaction between
59944         fflush and freading.
59945         * modules/freading-tests (Depends-on): Add fflush.
59946
59947 2007-04-28  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59950         fseeko and ftello.
59951         Suggested by Eric Blake.
59952
59953 2007-04-28  Jim Meyering  <jim@meyering.net>
59954
59955         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59956         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59957         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59958
59959 2007-04-27  Eric Blake  <ebb9@byu.net>
59960
59961         * doc/headers/assert.texi (assert.h): Document assert module use.
59962
59963 2007-04-27  Bruno Haible  <bruno@clisp.org>
59964
59965         * doc/headers/*.texi: New files.
59966         * doc/gnulib.texi (Header File Substitutes): New chapter.
59967         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59968         dependencies.
59969         (standards.info ,standards.html, standards.dvi): Update dependencies.
59970         (mostlyclean, clean): New targets.
59971
59972 2007-04-27  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59975         * modules/sysexits (Files, Makefile.am): Update.
59976
59977         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59978         * modules/sys_socket (Files, Makefile.am): Update.
59979
59980         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59981         * modules/sys_stat (Files, Makefile.am): Update.
59982
59983 2007-04-27  Eric Blake  <ebb9@byu.net>
59984
59985         * lib/freading.h: Improve comments.
59986         * lib/fwriting.h: Likewise.
59987         * lib/fflush.c: Likewise.
59988
59989         Fix closein for mingw.
59990         * modules/closein-tests: Add tests for closein.
59991         * tests/test-closein.c: New file.
59992         * tests/test-closein.sh: Likewise.
59993         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59994         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59995
59996 2007-04-27  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59999         version is < 6.
60000         * lib/math_.h [__DECC]: Likewise.
60001         * lib/stdio_.h [__DECC]: Likewise.
60002         * lib/stdlib_.h [__DECC]: Likewise.
60003         * lib/string_.h [__DECC]: Likewise.
60004         * lib/time_.h [__DECC]: Likewise.
60005         * lib/wchar_.h [__DECC]: Likewise.
60006         * lib/wctype_.h [__DECC]: Likewise.
60007
60008 2007-04-27  Bruno Haible  <bruno@clisp.org>
60009
60010         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60011
60012 2007-04-27  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/fflush.c: Add comments.
60015         * modules/fpurge-tests (Depends-on): Add fflush.
60016         * modules/freadable-tests (Depends-on): Likewise.
60017         * modules/fwritable-tests (Depends-on): Likewise.
60018
60019 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60020
60021         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60022         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60023         Report by Bruno Haible <bruno@clisp.org>.
60024
60025 2007-04-26  Eric Blake  <ebb9@byu.net>
60026
60027         Fix fflush on mingw.
60028         * modules/fflush (Depends-on): Add freading.
60029         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60030         but unread data.
60031
60032 2007-04-26  Eric Blake  <ebb9@byu.net>
60033         and Bruno Haible  <bruno@clisp.org>
60034
60035         Implement freading and fwriting.
60036         * lib/freading.c: New file.
60037         * lib/freading.h: Likewise.
60038         * m4/freading.m4: Likewise.
60039         * modules/freading: Likewise.
60040         * modules/freading-tests: Likewise.
60041         * tests/test-freading.c: Likewise.
60042         * lib/fwriting.c: New file.
60043         * lib/fwriting.h: Likewise.
60044         * m4/fwriting.m4: Likewise.
60045         * modules/fwriting: Likewise.
60046         * modules/fwriting-tests: Likewise.
60047         * tests/test-fwriting.c: Likewise.
60048         * MODULES.html.sh (File stream based Input/Output): Mention them.
60049
60050 2007-04-26  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60053         'long' when we assume it.
60054         Suggested by Eric Blake.
60055
60056 2007-04-26  Bruno Haible  <bruno@clisp.org>
60057
60058         Ensure fseeko, ftello are declared on glibc systems.
60059         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60060         * modules/fseeko (configure.ac-early): Likewise.
60061         * modules/ftello (configure.ac-early): Likewise.
60062         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60063         AC_FUNC_FSEEKO for this.
60064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60065         (gl_CHECK_FSEEKO): Remove macro.
60066
60067 2007-04-26  Bruno Haible  <bruno@clisp.org>
60068
60069         * tests/test-fflush.c (main): Also check the ftell result after
60070         fflush and fseek/fseeko.
60071         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60072         file descriptor position cache in the stream.
60073         * lib/fseeko.c (rpl_fseeko): Likewise.
60074
60075 2007-04-26  Bruno Haible  <bruno@clisp.org>
60076
60077         * modules/fflush-tests (Depends-on): Add fseeko.
60078
60079 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60080             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60081
60082         * lib/argz_.h: ensure error_t definition is obtained in same
60083         mechanism system argz.h would have.
60084         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60085         argz facilities are known bad.  Err on the side of caution if
60086         cross-compiling.
60087
60088 2007-04-25  Eric Blake  <ebb9@byu.net>
60089
60090         * lib/fpurge.c (includes): Use stdlib.h for free.
60091         * tests/test-fflush.c (main): Also test fflush-fseeko.
60092
60093 2007-04-25  Bruno Haible  <bruno@clisp.org>
60094
60095         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60096         * lib/fseeko.c: New file.
60097         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60098         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60099         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60100         gl_FUNC_FSEEKO.
60101         (gl_FUNC_FSEEKO): Invoke it.
60102         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60103         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60104         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60105
60106 2007-04-25  Bruno Haible  <bruno@clisp.org>
60107
60108         * modules/fflush (Depends-on): Add ftello.
60109
60110 2007-04-25  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/ftello-tests: New file.
60113         * tests/test-ftello.c: New file.
60114
60115         * modules/ftello: New file.
60116         * m4/ftello.m4: New file.
60117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60118         HAVE_FTELLO.
60119         * lib/stdio_.h (ftello): New declaration.
60120         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60121         HAVE_FTELLO.
60122
60123 2007-04-25  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/fseeko-tests: New file.
60126         * tests/test-fseeko.c: New file.
60127
60128         * modules/fseeko: New file.
60129         * m4/fseeko.m4: New file.
60130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60131         HAVE_FSEEKO.
60132         * lib/stdio_.h (fseeko): New declaration.
60133         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60134         HAVE_FSEEKO.
60135
60136 2007-04-25  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60139
60140 2007-04-25  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60143         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60144         * tests/test-unistd.c: Likewise.
60145         * tests/test-fcntl.c: Likewise.
60146
60147 2007-04-23  Eric Blake  <ebb9@byu.net>
60148
60149         * lib/fflush.c: Fix missing include.
60150         Reported by Bruno Haible.
60151
60152 2007-04-23  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60155         Reported by Eric Blake.
60156
60157 2007-04-23  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60160
60161 2007-04-23  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60164
60165 2007-04-23  Bruno Haible  <bruno@clisp.org>
60166
60167         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60168         Needed on HP-UX 11.
60169
60170 2007-04-16  Eric Blake  <ebb9@byu.net>
60171
60172         Make fflush rely on fpurge.
60173         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60174         open coding all variants.
60175         * modules/fflush (Depends-on): Add fpurge and unistd.
60176         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60177         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60178
60179         Fix --with-tests compilation on cygwin.
60180         * modules/argmatch-tests (Makefile.am): List gnulib library first
60181         in LDADD.
60182         * modules/argp-tests (Makefile.am): Likewise.
60183         * modules/array-list-tests (Makefile.am): Likewise.
60184         * modules/array-oset-tests (Makefile.am): Likewise.
60185         * modules/avltree-list-tests (Makefile.am): Likewise.
60186         * modules/avltree-oset-tests (Makefile.am): Likewise.
60187         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60188         * modules/carray-list-tests (Makefile.am): Likewise.
60189         * modules/dirname-tests (Makefile.am): Likewise.
60190         * modules/frexp-tests (Makefile.am): Likewise.
60191         * modules/isnanl-tests (Makefile.am): Likewise.
60192         * modules/linked-list-tests (Makefile.am): Likewise.
60193         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60194         * modules/lock-tests (Makefile.am): Likewise.
60195         * modules/rbtree-list-tests (Makefile.am): Likewise.
60196         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60197         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60198         * modules/tls-tests (Makefile.am): Likewise.
60199         * modules/tsearch-tests (Makefile.am): Likewise.
60200         * modules/xvasprintf-tests (Makefile.am): Likewise.
60201
60202         Fix fpurge for cygwin.
60203         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60204         value.
60205         * modules/fpurge-tests (Depends-on): Clean up trash.
60206
60207 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60208
60209         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60210
60211         * m4/autobuild.m4: Re-indent.
60212
60213 2007-04-13  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/fpurge-tests: New file.
60216         * tests/test-fpurge.c: New file.
60217
60218         * modules/fpurge: New file.
60219         * lib/fpurge.h: New file.
60220         * lib/fpurge.c: New file.
60221         * m4/fpurge.m4: New file.
60222
60223 2007-04-13  Bruno Haible  <bruno@clisp.org>
60224
60225         * modules/fbufmode-tests: New file.
60226         * tests/test-fbufmode.c: New file.
60227
60228         * modules/fbufmode: New file.
60229         * lib/fbufmode.h: New file.
60230         * lib/fbufmode.c: New file.
60231         * m4/fbufmode.m4: New file.
60232
60233 2007-04-13  Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/fwritable-tests: New file.
60236         * tests/test-fwritable.c: New file.
60237
60238         * modules/fwritable: New file.
60239         * lib/fwritable.h: New file.
60240         * lib/fwritable.c: New file.
60241         * m4/fwritable.m4: New file.
60242
60243 2007-04-13  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/freadable-tests: New file.
60246         * tests/test-freadable.c: New file.
60247
60248         * modules/freadable: New file.
60249         * lib/freadable.h: New file.
60250         * lib/freadable.c: New file.
60251         * m4/freadable.m4: New file.
60252
60253 2007-04-13  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60256         MOSTLYCLEANFILES.
60257
60258 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60261         gzip bootstrap.conf to avoid dragging in i18n machinery.
60262         (gnulib_tool_option): Use it.
60263
60264 2007-04-13  Bruno Haible  <bruno@clisp.org>
60265
60266         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60267         %F directives.
60268         * tests/test-vasprintf-posix.c (test_function): Likewise.
60269         * tests/test-snprintf-posix.h (test_function): Likewise.
60270         * tests/test-sprintf-posix.h (test_function): Likewise.
60271         * tests/test-fprintf-posix.h (test_function): Likewise.
60272         * tests/test-printf-posix.h (test_function): Likewise.
60273         * tests/test-fprintf-posix.out: Likewise.
60274
60275 2007-04-13  Bruno Haible  <bruno@clisp.org>
60276
60277         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60278         * modules/tls-tests (configure.ac): Likewise.
60279         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60280
60281 2007-04-13  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/tls.c (glthread_tls_get): Fix return type.
60284         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60285
60286 2007-04-12  Eric Blake  <ebb9@byu.net>
60287
60288         * modules/gettime (Depends-on): Remove gettime.
60289         Reported by Dmitry V. Levin.
60290
60291 2007-04-12  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/fflush (Include): Mention <stdio.h>.
60294         * modules/strtoimax (Include): Mention <inttypes.h>.
60295         * modules/strtoumax (Include): Likewise.
60296
60297 2007-04-12  Eric Blake  <ebb9@byu.net>
60298
60299         * .cvsignore: New file.
60300         * .gitignore: Likewise.
60301
60302 2007-04-12  Bruno Haible  <bruno@clisp.org>
60303
60304         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60305         not before, since $(LDADD) often contains libgnu.a.
60306         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60307         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60308         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60309         Needed on Cygwin.
60310
60311 2007-04-12  Eric Blake  <ebb9@byu.net>
60312
60313         Work around glibc's failure to flush stdin on fclose.
60314         * lib/closein.c (close_stdin): Flush stdin before closing.
60315
60316         Work around glibc's failure to reset seekable stdin on exit.
60317         * modules/closein: New module.
60318         * lib/closein.c: New file.
60319         * lib/closein.h: Likewise.
60320         * m4/closein.m4: Likewise.
60321         * MODULES.html.sh (File stream based Input/Output): Document it.
60322
60323 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60324
60325         * gnulib-tool: Rename generated 'autobuild' script to
60326         'do-autobuild' in --create-megatestdir output.
60327
60328         * doc/gnulib.texi (Build robot for gnulib): Fix.
60329
60330 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60331
60332         * modules/sysexits (Depends-on): Add absolute-header.
60333
60334 2007-04-12  Eric Blake  <ebb9@byu.net>
60335
60336         No need to preserve errno on success.
60337         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60338         Reported by Bruno Haible.
60339
60340 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60341
60342         * MODULES.html.sh (Support for maintaining and releasing
60343         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60344
60345 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60346
60347         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60348
60349 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60350
60351         * modules/autobuild: New module.
60352
60353         * m4/autobuild.m4: New file.
60354
60355 2007-04-11  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60358         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60380         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60381         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60383         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60384         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60385         Reported by Eric Blake.
60386
60387 2007-04-11  Bruno Haible  <bruno@clisp.org>
60388
60389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60390
60391 2007-04-10  Bruno Haible  <bruno@clisp.org>
60392
60393         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60394         for NaN and Infinity. Needed on FreeBSD 6.1.
60395         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60396         regarding results for "%010a" of Infinity and NaN.
60397         * tests/test-vasprintf-posix.c (test_function): Likewise.
60398         * tests/test-snprintf-posix.h (test_function): Likewise.
60399         * tests/test-sprintf-posix.h (test_function): Likewise.
60400         * tests/test-fprintf-posix.h (test_function): Likewise.
60401         * tests/test-printf-posix.h (test_function): Likewise.
60402         * tests/test-fprintf-posix.out: Likewise.
60403
60404 2007-04-10  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/locale-tests: New file.
60407         * tests/test-locale.c: New file.
60408
60409         * modules/locale: New file.
60410         * lib/locale_.h: New file.
60411         * m4/locale_h.m4: New file.
60412
60413 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60414             Bruno Haible  <bruno@clisp.org>
60415
60416         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60417         be determined, test for availability of the copysignf, copysign,
60418         copysignl functions.
60419         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60420         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60421         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60422
60423 2007-04-09  Eric Blake  <ebb9@byu.net>
60424
60425         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60426         * modules/stdio (Makefile.am): Support fflush.
60427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60428         * modules/fflush: New file.
60429         * lib/fflush.c: Likewise.
60430         * m4/fflush.m4: Likewise.
60431         * modules/fflush-tests: New test.
60432         * tests/test-fflush.c: Likewise.
60433         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60434
60435 2007-04-06  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60438         (VASNPRINTF): Use signbit for faster determination whether to print a
60439         minus sign.
60440         * modules/vasnprintf (Files): Remove lib/float+.h.
60441         * modules/fprintf-posix (Depends-on): Add signbit.
60442         * modules/snprintf-posix (Depends-on): Likewise.
60443         * modules/sprintf-posix (Depends-on): Likewise.
60444         * modules/vasnprintf-posix (Depends-on): Likewise.
60445         * modules/vasprintf-posix (Depends-on): Likewise.
60446         * modules/vfprintf-posix (Depends-on): Likewise.
60447         * modules/vsnprintf-posix (Depends-on): Likewise.
60448         * modules/vsprintf-posix (Depends-on): Likewise.
60449
60450 2007-04-06  Bruno Haible  <bruno@clisp.org>
60451
60452         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60453         * tests/test-frexpl.c (main): Likewise.
60454         * tests/test-ldexpl.c (main): Likewise.
60455         * modules/frexp-tests (Depends-on): Add signbit.
60456         * modules/frexpl-tests (Depdends-on): Likewise.
60457         * modules/ldexpl-tests (Depdends-on): Likewise.
60458
60459 2007-04-06  Bruno Haible  <bruno@clisp.org>
60460
60461         * modules/signbit-tests: New file.
60462         * tests/test-signbit.c: New file.
60463
60464         * modules/signbit: New file.
60465         * lib/signbitf.c: New file.
60466         * lib/signbitd.c: New file.
60467         * lib/signbitl.c: New file.
60468         * m4/signbit.m4: New file.
60469         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60470         (signbit): New macro.
60471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60472         REPLACE_SIGNBIT.
60473         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60474         REPLACE_FREXPL into math.h.
60475
60476 2007-04-06  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/isnanf-nolibm-tests: New file.
60479         * tests/test-isnanf.c: New file.
60480
60481         * modules/isnanf-nolibm: New file.
60482         * lib/isnanf.h: New file.
60483         * lib/isnanf.c: New file.
60484         * lib/isnan.c: Consider the USE_FLOAT macro.
60485         * m4/isnanf.m4: New file.
60486
60487 2007-04-06  Bruno Haible  <bruno@clisp.org>
60488
60489         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60490         (Link): New section.
60491
60492         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60493
60494 2007-04-06  Bruno Haible  <bruno@clisp.org>
60495
60496         Assume the 'long double' type.
60497         * m4/longdouble.m4: Remove file.
60498         * config/srclist.txt: Don't mention longdouble.m4.
60499         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60500         * lib/float+.h: Likewise.
60501         * lib/frexp.c: Likewise.
60502         * lib/printf-args.h: Likewise.
60503         * lib/printf-args.c: Likewise.
60504         * lib/printf-frexp.c: Likewise.
60505         * lib/printf-parse.c: Likewise.
60506         * lib/vasnprintf.c: Likewise.
60507         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60508         * m4/intl.m4: Likewise.
60509         * m4/isnanl.m4: Likewise.
60510         * m4/printf.m4: Likewise.
60511         * m4/printf-frexpl.m4: Likewise.
60512         * m4/vasnprintf.m4: Likewise.
60513         * modules/allocsa (Files): Remove m4/longdouble.m4.
60514         * modules/gettext (Files): Likewise.
60515         * modules/relocatable-prog-wrapper (Files): Likewise.
60516         * modules/vasnprintf (Files): Likewise.
60517         * modules/isnanl (Files): Likewise.
60518         (Include): Simplify.
60519         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60520         (Include): Simplify.
60521         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60522         (Include): Simplify.
60523         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60524         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60525         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60526         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60527         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60528         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60529         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60530         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60531         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60532         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60533         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60534         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60535         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60536         * tests/test-isnanl.c: Likewise.
60537         * tests/test-snprintf-posix.h: Likewise.
60538         * tests/test-sprintf-posix.h: Likewise.
60539         * tests/test-vasnprintf-posix.c: Likewise.
60540         * tests/test-vasnprintf-posix2.c: Likewise.
60541         * tests/test-vasprintf-posix.c: Likewise.
60542
60543 2007-04-06  Bruno Haible  <bruno@clisp.org>
60544
60545         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60546         * lib/math_.h [__DECC]: Include the overridden include file through
60547         #include_next, outside the double-inclusion guard.
60548         * lib/stdio_.h [__DECC]: Likewise.
60549         * lib/stdlib_.h [__DECC]: Likewise.
60550         * lib/string_.h [__DECC]: Likewise.
60551         * lib/time_.h [__DECC]: Likewise.
60552         * lib/wchar_.h [__DECC]: Likewise.
60553         * lib/wctype_.h [__DECC]: Likewise.
60554         * lib/inttypes_.h [__DECC]: Likewise.
60555         Reported by Albert Chin <china@thewrittenword.com> in
60556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60557
60558 2007-04-04  Eric Blake  <ebb9@byu.net>
60559
60560         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60561         1.5.x.
60562
60563 2007-04-04  Bruno Haible  <bruno@clisp.org>
60564
60565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60566         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60567
60568 2007-04-04  Bruno Haible  <bruno@clisp.org>
60569
60570         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60571         results for "%010a" of Infinity and NaN.
60572         * tests/test-vasprintf-posix.c (test_function): Likewise.
60573         * tests/test-snprintf-posix.h (test_function): Likewise.
60574         * tests/test-sprintf-posix.h (test_function): Likewise.
60575         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60576         * tests/test-printf-posix.h (test_function): Likewise.
60577         * tests/test-fprintf-posix.out: Update.
60578         Needed for FreeBSD 6.1.
60579
60580 2007-04-04  Bruno Haible  <bruno@clisp.org>
60581
60582         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60583         directly used by the gnulib modules nor by gnulib-tool.
60584
60585 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * DEPENDENCIES: Give overall description of version dependency
60588         desirability.  Use more-typical names for apps.
60589         Add shell, coreutils, diffutils, grep, tar, gzip.
60590
60591 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60592
60593         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60594
60595 2007-04-04  Karl Berry  <karl@gnu.org>
60596
60597         * MODULES.html.sh (func_module): missing '.
60598
60599 2007-04-03  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/argmatch-tests (Makefile.am): New variable
60602         test_argmatch_LDADD.
60603         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60604         * modules/array-list-tests (Makefile.am): New variable
60605         test_array_list_LDADD.
60606         * modules/array-oset-tests (Makefile.am): New variable
60607         test_array_oset_LDADD.
60608         * modules/avltree-list-tests (Makefile.am): New variable
60609         test_avltree_list_LDADD.
60610         * modules/avltree-oset-tests (Makefile.am): New variable
60611         test_avltree_oset_LDADD.
60612         * modules/avltreehash-list-tests (Makefile.am): New variable
60613         test_avltreehash_list_LDADD.
60614         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60615         test_canonicalize_lgpl_LDADD.
60616         * modules/carray-list-tests (Makefile.am): New variable
60617         test_carray_list_LDADD.
60618         * modules/dirname-tests (Makefile.am): New variable
60619         test_dirname_LDADD.
60620         * modules/linked-list-tests (Makefile.am): New variable
60621         test_linked_list_LDADD.
60622         * modules/linkedhash-list-tests (Makefile.am): New variable
60623         test_linkedhash_list_LDADD.
60624         * modules/rbtree-list-tests (Makefile.am): New variable
60625         test_rbtree_list_LDADD.
60626         * modules/rbtree-oset-tests (Makefile.am): New variable
60627         test_rbtree_oset_LDADD.
60628         * modules/rbtreehash-list-tests (Makefile.am): New variable
60629         test_rbtreehash_list_LDADD.
60630         * modules/xvasprintf-tests (Makefile.am): New variable
60631         test_xvasprintf_LDADD.
60632         Reported by Eric Blake.
60633
60634 2007-04-03  Eric Blake  <ebb9@byu.net>
60635
60636         * DEPENDENCIES: Weaken m4 requirements.
60637
60638 2007-04-03  Bruno Haible  <bruno@clisp.org>
60639
60640         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60641         * modules/isnanl-tests (configure.ac): Likewise.
60642
60643 2007-04-03  Ben Pfaff  <blp@gnu.org>
60644
60645         * modules/iconv_open: Add $(srcdir)/ to source directory
60646         references in Makefile fragments that call gperf, to fix VPATH
60647         builds.
60648
60649 2007-04-03  Bruno Haible  <bruno@clisp.org>
60650
60651         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60652         * lib/ldexpl.c: Undo last change.
60653
60654 2007-04-03  Bruno Haible  <bruno@clisp.org>
60655
60656         * modules/printf-frexpl (Depends-on): Undo last change.
60657         (Files): Add m4/ldexpl.m4.
60658
60659 2007-04-03  Bruno Haible  <bruno@clisp.org>
60660
60661         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60662         * modules/isnanl (Link): New section.
60663
60664         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60665         * modules/frexp (Link): New section.
60666
60667         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60668         * modules/frexpl (Link): New section.
60669
60670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60671         * modules/ldexpl (Link): New section.
60672
60673 2007-04-03  Bruno Haible  <bruno@clisp.org>
60674
60675         * modules/TEMPLATE-EXTENDED: New file.
60676         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60677
60678 2007-04-03  Bruno Haible  <bruno@clisp.org>
60679
60680         * DEPENDENCIES: New file.
60681         Suggested by Simon Josefsson.
60682
60683 2007-04-03  Bruno Haible  <bruno@clisp.org>
60684
60685         * doc/gnulib.texi: Escape @.
60686
60687 2007-04-03  James Youngman  <jay@gnu.org>
60688         and Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60691         birthtime on all systems that have birthtime, not just those which
60692         use st_birthtimensec rather than st_birthtim.  Putting zero in
60693         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60694         that the birth time is not available for files on an NFS mount.
60695
60696 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60697
60698         * modules/memxor: Move back from crypto/, suggested by Bruno.
60699         * modules/crypto/hmac-sha1: Fix memxor dependency.
60700
60701         * modules/crypto/gc: Moved from ../.
60702
60703 2007-04-02  Eric Blake  <ebb9@byu.net>
60704
60705         * lib/ldexpl.c (includes): Avoid libm.
60706
60707         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60708
60709 2007-04-02  Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60712         on IRIX.
60713
60714 2007-04-02  Bruno Haible  <bruno@clisp.org>
60715
60716         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60717         x86 or x86_64 platforms running MacOS X.
60718         Reported by Ryan Schmidt <@ryandesign.com>.
60719
60720 2007-04-02  Bruno Haible  <bruno@clisp.org>
60721
60722         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60723         i386.
60724
60725 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60726
60727         * modules/crypto/arcfour: Moved from ../.
60728         * modules/crypto/arcfour-tests: Moved from ../.
60729         * modules/crypto/arctwo: Moved from ../.
60730         * modules/crypto/arctwo-tests: Moved from ../.
60731         * modules/crypto/des: Moved from ../.
60732         * modules/crypto/des-tests: Moved from ../.
60733         * modules/crypto/gc-arcfour: Moved from ../.
60734         * modules/crypto/gc-arcfour-tests: Moved from ../.
60735         * modules/crypto/gc-arctwo: Moved from ../.
60736         * modules/crypto/gc-arctwo-tests: Moved from ../.
60737         * modules/crypto/gc-des: Moved from ../.
60738         * modules/crypto/gc-des-tests: Moved from ../.
60739         * modules/crypto/gc-hmac-md5: Moved from ../.
60740         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60741         * modules/crypto/gc-hmac-sha1: Moved from ../.
60742         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60743         * modules/crypto/gc-md2: Moved from ../.
60744         * modules/crypto/gc-md2-tests: Moved from ../.
60745         * modules/crypto/gc-md4: Moved from ../.
60746         * modules/crypto/gc-md4-tests: Moved from ../.
60747         * modules/crypto/gc-md5: Moved from ../.
60748         * modules/crypto/gc-md5-tests: Moved from ../.
60749         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60750         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60751         * modules/crypto/gc-random: Moved from ../.
60752         * modules/crypto/gc-rijndael: Moved from ../.
60753         * modules/crypto/gc-rijndael-tests: Moved from ../.
60754         * modules/crypto/gc-sha1: Moved from ../.
60755         * modules/crypto/gc-sha1-tests: Moved from ../.
60756         * modules/crypto/gc-tests: Moved from ../.
60757         * modules/crypto/hmac-md5: Moved from ../.
60758         * modules/crypto/hmac-md5-tests: Moved from ../.
60759         * modules/crypto/hmac-sha1: Moved from ../.
60760         * modules/crypto/hmac-sha1-tests: Moved from ../.
60761         * modules/crypto/md2: Moved from ../.
60762         * modules/crypto/md2-tests: Moved from ../.
60763         * modules/crypto/md4: Moved from ../.
60764         * modules/crypto/md4-tests: Moved from ../.
60765         * modules/crypto/md5: Moved from ../.
60766         * modules/crypto/md5-tests: Moved from ../.
60767         * modules/crypto/memxor: Moved from ../.
60768         * modules/crypto/rijndael: Moved from ../.
60769         * modules/crypto/rijndael-tests: Moved from ../.
60770         * modules/crypto/sha1: Moved from ../.
60771
60772 2007-03-30  James Youngman  <jay@gnu.org>
60773
60774         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60775         rename() to change the ctime of a file (because ctime is unaffected
60776         by rename on jfs2 on AIX 5.1).
60777         (main): Start by doing cleanup, in case a previous run failed leaving
60778         test files behind.
60779
60780 2007-03-31  Bruno Haible  <bruno@clisp.org>
60781
60782         Support old proprietary implementations of iconv.
60783         * modules/iconv_open: New file.
60784         * lib/iconv_.h: New file.
60785         * m4/iconv_h.m4: New file.
60786         * lib/iconv_open.c: New file.
60787         * lib/iconv_open-aix.gperf: New file.
60788         * lib/iconv_open-hpux.gperf: New file.
60789         * lib/iconv_open-irix.gperf: New file.
60790         * lib/iconv_open-osf.gperf: New file.
60791         * m4/iconv_open.m4: New file.
60792         * modules/linebreak (Depends-on): Add iconv_open.
60793         * modules/striconv (Depends-on): Likewise.
60794         * modules/striconveh (Depends-on): Likewise.
60795         * modules/unicodeio (Depends-on): Likewise.
60796         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60797         (iconv_t)(-1).
60798         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60799         conversion if cd is (iconv_t)(-1).
60800         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60801         is not possible.
60802
60803 2007-03-31  Bruno Haible  <bruno@clisp.org>
60804
60805         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60806         work on Solaris either. Protect also second use of "autodetect_jp".
60807
60808 2007-03-31  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60811         the function is not present.
60812
60813 2007-03-31  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60816         the function is not present.
60817
60818 2007-03-31  Bruno Haible  <bruno@clisp.org>
60819
60820         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60821         a bug in HP-UX iconv_open().
60822
60823 2007-03-31  Bruno Haible  <bruno@clisp.org>
60824
60825         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60826         (Mathematics <math.h>): New section, add fpieee.
60827         (Input/output <stdio.h>): Add fseterr.
60828         (Mathematics <math.h>): New section, add printf-frexp.
60829         (Container data structures): Add sublist.
60830         (Core language properties): Add fpucw, inline.
60831         (Functions for greatest-width integer types <inttypes.h>): Add
60832         imaxabs, imaxdiv, inttypes.
60833         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60834         isnanl-nolibm, ldexp.
60835         (Mathematics <math.h>): New section, add printf-frexpl.
60836         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60837         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60838         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60839         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60840         (Unicode string functions): Add unistr/u*-mbtoucr.
60841         (Java): Add javacomp-script, javaexec-script.
60842         (C#): Add csharpcomp-script, csharpexec-script.
60843         (Support for building libraries and executables): Add havelib,
60844         relocatable-*.
60845         (Support for maintaining and releasing projects): Renamed from
60846         'Support for maintaining and release projects'. Add announce-gen.
60847
60848 2007-03-31  Bruno Haible  <bruno@clisp.org>
60849
60850         * README: Talk primarily about git.
60851         (git and CVS): Renamed from CVS.
60852         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60853         gnulib is available through git.
60854         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60855
60856 2007-03-30  Bruno Haible  <bruno@clisp.org>
60857
60858         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60859         * lib/poll_.h: Likewise.
60860         * lib/stat_.h: Likewise.
60861         * lib/sys_time_.h: Likewise.
60862         * lib/sysexit_.h: Likewise.
60863         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60864         * lib/stdbool_.h: Likewise.
60865         * lib/byteswap_.h: Add double-inclusion guard.
60866
60867 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60868
60869         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60870
60871 2007-03-30  Karl Berry  <karl@gnu.org>
60872
60873         * config/srclist-update: double space after USA in the license
60874         substitution, since that's how it's usually (?) written.
60875
60876 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60879         reported by Bruno Haible.
60880
60881 2007-03-29  Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60884         a bug in AIX iconv().
60885
60886 2007-03-29  Bruno Haible  <bruno@clisp.org>
60887
60888         * modules/ldexpl-tests: New file.
60889         * tests/test-ldexpl.c: New file.
60890
60891 2007-03-29  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/ldexpl.c: Include fpucw.h.
60894         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60895         multiplication.
60896         * modules/ldexpl (Depends-on): Add fpucw.
60897
60898 2007-03-29  Bruno Haible  <bruno@clisp.org>
60899
60900         * modules/ldexpl: New file.
60901         * m4/ldexpl.m4: New file.
60902         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60903         set.
60904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60905         REPLACE_LDEXPL.
60906         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60907         REPLACE_LDEXPL.
60908         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60909         gl_FUNC_LDEXPL_WORKS.
60910         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60911         * modules/mathl (Files): Remove lib/ldexpl.c.
60912         (Depends-on): Add ldexpl.
60913
60914 2007-03-29  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60917
60918 2007-03-29  Bruno Haible  <bruno@clisp.org>
60919
60920         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60921         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60922         and possibly also HP-UX.
60923         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60924         work on AIX, IRIX, HP-UX, OSF/1.
60925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60926         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60927         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60928         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60929         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60930         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60931
60932 2007-03-29  Bruno Haible  <bruno@clisp.org>
60933
60934         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60935
60936 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60939         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60940
60941 2007-03-29  Eric Blake  <ebb9@byu.net>
60942
60943         * lib/acl-internal.h: Remove redundant include.
60944         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60945         Cygwin when a file is locked.
60946
60947 2007-03-29  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60950         file.
60951         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60952
60953 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60956         try to remove a parent directory if the child couldn't be removed
60957         (except for the first rmdir, which could fail because the child
60958         doesn't exist).  Problem reported by Jeff Blaine in
60959         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60960
60961 2007-03-28  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/striconveh.c (utf8conv_carefully): New function.
60964         (mem_cd_iconveh_internal): Invoke it.
60965
60966 2007-03-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60969         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60970         input.
60971         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60972         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60973         unistr/u8-uctomb.
60974
60975 2007-03-28  Bruno Haible  <bruno@clisp.org>
60976
60977         * modules/unistr/u8-mbtoucr: New file.
60978         * lib/unistr/u8-mbtoucr.c: New file.
60979         * modules/unistr/u16-mbtoucr: New file.
60980         * lib/unistr/u16-mbtoucr.c: New file.
60981         * modules/unistr/u16-mbtoucr: New file.
60982         * lib/unistr/u16-mbtoucr.c: New file.
60983         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60984
60985 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60986             Bruno Haible  <bruno@clisp.org>
60987
60988         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60989         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60990         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60991
60992         * m4/stdio_h.m4: Add stubs for vasprintf too.
60993
60994         * modules/stdio: Support vasprintf in sed command.
60995
60996         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60997         vasprintf.h.  Add stdio module indicator.
60998
60999         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61000         vasprintf.h.
61001
61002         * lib/vasprintf.h: File removed.
61003
61004         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61005         * lib/vasprintf.c: Ditto.
61006         * lib/xvasprintf.c: Ditto.
61007         * tests/test-vasprintf-posix.c: Ditto.
61008         * tests/test-vasprintf.c: Ditto.
61009
61010 2007-03-27  Bruno Haible  <bruno@clisp.org>
61011
61012         Make vasnprintf multithread-safe.
61013         * lib/vasnprintf.c (decimal_point_char): New function.
61014         (VASNPRINTF): Use it.
61015         Suggested by Simon Josefsson.
61016
61017 2007-03-27  Eric Blake  <ebb9@byu.net>
61018
61019         Support sub-second birthtime on cygwin.
61020         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61021         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61022         (get_stat_birthtime): Also work with st_birthtim.
61023
61024 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61025
61026         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61027         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61028         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61029         (get_stat_birthtime_ns): Simplify compile-time tests.
61030         (get_stat_birthtime): Change the API to look like
61031         get_stat_mtime etc., except return a negative tv_nsec on error.
61032         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61033         Don't check for "spare" fields.
61034         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61035         or for struct stat.st_birthtime, as these tests aren't used.
61036         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61037
61038 2007-03-27  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/stat-time.h: Include <sys/stat.h>.
61041
61042 2007-03-27  James Youngman  <jay@gnu.org>
61043
61044         * lib/stat-time.h (get_stat_birthtime): New function for
61045           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61046         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61047           and its variants.
61048         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61049         * modules/stat-time-test: New file.
61050         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61051
61052 2007-03-26  Bruno Haible  <bruno@clisp.org>
61053
61054         Better support of signalling NaNs.
61055         * lib/atanl.c: Include isnanl.h.
61056         (atanl): Perform test for NaN at the beginning of the function and
61057         through a call to isnanl.
61058         * lib/cosl.c: Include isnanl.h.
61059         (cosl): Perform test for NaN at the beginning of the function and
61060         through a call to isnanl.
61061         * lib/ldexpl.c: Include isnanl.h.
61062         (ldexpl): Perform test for NaN through a call to isnanl.
61063         * lib/logl.c: Include isnanl.h.
61064         (logl): Perform test for NaN at the beginning of the function and
61065         through a call to isnanl.
61066         * lib/sinl.c: Include isnanl.h.
61067         (sinl): Perform test for NaN at the beginning of the function and
61068         through a call to isnanl.
61069         * lib/sqrtl.c: Include isnanl.h.
61070         (sqrtl): Perform test for NaN at the beginning of the function and
61071         through a call to isnanl.
61072         * lib/tanl.c: Include isnanl.h.
61073         (tanl): Perform test for NaN at the beginning of the function and
61074         through a call to isnanl.
61075         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61076         * modules/mathl (Depends-on): Add isnanl.
61077
61078 2007-03-26  Eric Blake  <ebb9@byu.net>
61079
61080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61081         regression in logic sense of previous patch.
61082
61083 2007-03-26  Bruno Haible  <bruno@clisp.org>
61084
61085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61086         unportable shell command "if ! ...".
61087         Reported by Ralf Wildenhues.
61088
61089 2007-03-25  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61092         <sysexits.h> file, and only add EX_CONFIG.
61093         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61094         absolute file name and whether it is sufficient. Substitute also
61095         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61096         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61097         ABSOLUTE_SYSEXITS_H into sysexits.h.
61098
61099 2007-03-25  Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61102         hints is NULL.
61103
61104 2007-03-25  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61107         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61108
61109 2007-03-25  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/vasnprintf.c: Include langinfo.h.
61112         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61113         multithread-safe.
61114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61123         Reported by Simon Josefsson.
61124
61125 2007-03-25  Bruno Haible  <bruno@clisp.org>
61126
61127         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61128         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61129         * modules/vasnprintf (Depends-on): Add stdint.
61130
61131 2007-03-25  Bruno Haible  <bruno@clisp.org>
61132
61133         * modules/fpieee: New file.
61134         * m4/fpieee.m4: New file.
61135         * modules/isnan-nolibm (Depends-on): Add fpieee.
61136         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61137         * modules/isnanl (Depends-on): Add fpieee.
61138
61139 2007-03-25  Bruno Haible  <bruno@clisp.org>
61140
61141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61142
61143 2007-03-25  Bruno Haible  <bruno@clisp.org>
61144
61145         Avoid test failures on IRIX 6.5.
61146         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61147         (main): Use it.
61148         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61149         macros.
61150         (main): Use them.
61151
61152 2007-03-25  Bruno Haible  <bruno@clisp.org>
61153
61154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61155         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61156         exists but doesn't work.
61157         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61158         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61160         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61161         math.h.
61162
61163 2007-03-25  Bruno Haible  <bruno@clisp.org>
61164
61165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61166         returns inf. Needed on IRIX 6.5.
61167
61168 2007-03-25  Bruno Haible  <bruno@clisp.org>
61169
61170         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61171         (main): Use isnanl instead of x != x idiom.
61172         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61173
61174         * tests/test-frexp.c: Include isnan.h.
61175         (main): Use isnan instead of x != x idiom.
61176         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61177
61178 2007-03-25  Bruno Haible  <bruno@clisp.org>
61179
61180         * tests/test-frexp.c (NaN): New function/macro.
61181         (main): Use it instead of 0.0 / 0.0.
61182         * tests/test-isnan.c (NaN): New function/macro.
61183         (main): Use it instead of 0.0 / 0.0.
61184         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61185         (test_function): Use it instead of 0.0 / 0.0.
61186         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61187         (test_function): Use it instead of 0.0 / 0.0.
61188         * tests/test-snprintf-posix.h (NaN): New function/macro.
61189         (test_function): Use it instead of 0.0 / 0.0.
61190         * tests/test-sprintf-posix.h (NaN): New function/macro.
61191         (test_function): Use it instead of 0.0 / 0.0.
61192         * tests/test-fprintf-posix.h (NaN): New function/macro.
61193         (test_function): Use it instead of 0.0 / 0.0.
61194         * tests/test-printf-posix.h (NaN): New function/macro.
61195         (test_function): Use it instead of 0.0 / 0.0.
61196
61197         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61198
61199 2007-03-25  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61202
61203 2007-03-25  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/regexec.c (merge_state_with_log): Make static.
61206
61207 2007-03-25  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/trigl.c (kernel_rem_pio2): Make static.
61210
61211 2007-03-25  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/sincosl.c (sincosl_table): Make static.
61214
61215 2007-03-25  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61218         if the compiler does not support C99.
61219
61220 2007-03-25  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/time (Makefile.am): Ensure all rule action lines start with a
61223         tab.
61224
61225 2007-03-24  Bruno Haible  <bruno@clisp.org>
61226
61227         * modules/tsearch-tests: New file.
61228         * tests/test-tsearch.sh: New file.
61229         * tests/test-tsearch.c: New file, mostly copied from glibc.
61230
61231         * modules/search-tests: New file.
61232         * tests/test-search.c: New file.
61233
61234         * modules/search: New file.
61235         * lib/search_.h: New file, incorporating lib/tsearch.h.
61236         * m4/search_h.m4: New file.
61237         * lib/tsearch.h: Remove file.
61238         * lib/tsearch.c: Include search.h instead of tsearch.h.
61239         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61240         HAVE_TSEARCH.
61241         * modules/tsearch (Files): Remove lib/tsearch.h.
61242         (Depends-on): Add search.
61243         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61244         (Include): Change tsearch.h into search.h.
61245
61246 2007-03-24  Bruno Haible  <bruno@clisp.org>
61247
61248         * modules/fpucw: New file.
61249         * lib/fpucw.h: New file.
61250         * lib/frexp.c: Include fpucw.h.
61251         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61252         (FUNC): Use them.
61253         * lib/printf-frexp.c: Include fpucw.h.
61254         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61255         (FUNC): Use them.
61256         * lib/vasnprintf.c: Include fpucw.h.
61257         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61258         'long double' calculations.
61259         * tests/test-frexpl.c: Include fpucw.h.
61260         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61261         * tests/test-printf-frexpl.c: Include fpucw.h.
61262         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61263         * modules/frexpl (Depends-on): Add fpucw.
61264         * modules/printf-frexpl (Depends-on): Likewise.
61265         * modules/fprintf-posix (Depends-on): Likewise.
61266         * modules/snprintf-posix (Depends-on): Likewise.
61267         * modules/sprintf-posix (Depends-on): Likewise.
61268         * modules/vasnprintf-posix (Depends-on): Likewise.
61269         * modules/vasprintf-posix (Depends-on): Likewise.
61270         * modules/vfprintf-posix (Depends-on): Likewise.
61271         * modules/vsnprintf-posix (Depends-on): Likewise.
61272         * modules/vsprintf-posix (Depends-on): Likewise.
61273         * modules/frexpl-tests (Depends-on): Likewise.
61274         * modules/printf-frexpl-tests (Depends-on): Likewise.
61275
61276 2007-03-24  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/float+.h: New file.
61279         * lib/isnan.c: Include float+.h.
61280         (SIZE): New macro.
61281         (FUNC): Compare only SIZE bytes of the value.
61282         * lib/vasnprintf.c: Include float+.h.
61283         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61284         SIZEOF_LDBL or SIZEOF_DBL bytes.
61285         * modules/isnan-nolibm (Files): Add lib/float+.h.
61286         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61287         * modules/isnanl (Files): Add lib/float+.h.
61288         * modules/vasnprintf (Files): Add lib/float+.h.
61289
61290 2007-03-24  Bruno Haible  <bruno@clisp.org>
61291
61292         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61293         include isnanl-nolibm.h.
61294
61295 2007-03-24  Bruno Haible  <bruno@clisp.org>
61296
61297         * tests/test-read-file.c (main): Don't produce spurious output for
61298         expected situations. Make the test fail if it encountered unexpected
61299         results.
61300
61301 2007-03-24  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61304         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61305
61306 2007-03-24  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61309
61310 2007-03-24  Bruno Haible  <bruno@clisp.org>
61311
61312         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61313         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61314
61315         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61316         * modules/utf8-ucs4: Turn into a symbolic link to module
61317         unistr/u8-mbtouc.
61318
61319         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61320         utf8-ucs4-unsafe.
61321         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61322         unistr/u8-mbtouc-unsafe.
61323
61324         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61325         * modules/utf16-ucs4: Turn into a symbolic link to module
61326         unistr/u16-mbtouc.
61327
61328         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61329         utf16-ucs4-unsafe.
61330         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61331         unistr/u16-mbtouc-unsafe.
61332
61333         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61334         * modules/ucs4-utf8: Turn into a symbolic link to module
61335         unistr/u8-ubtomb.
61336
61337         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61338         * modules/ucs4-utf16: Turn into a symbolic link to module
61339         unistr/u16-ubtomb.
61340
61341 2007-03-24  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61344         Enable the function only if HAVE_INLINE.
61345         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61346         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61347         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61348         Enable the function only if HAVE_INLINE.
61349         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61350         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61351         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61352         Enable the function only if HAVE_INLINE.
61353         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61354         Enable the function only if HAVE_INLINE.
61355         * modules/utf8-ucs4: Update.
61356         * modules/utf8-ucs4-unsafe: Update.
61357         * modules/utf16-ucs4: Update.
61358         * modules/utf16-ucs4-unsafe: Update.
61359         * modules/ucs4-utf8: Update.
61360         * modules/ucs4-utf16: Update.
61361
61362 2007-03-24  Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/utf8-ucs4.h: Remove file.
61365         * lib/utf8-ucs4-unsafe.h: Remove file.
61366         * lib/utf16-ucs4.h: Remove file.
61367         * lib/utf16-ucs4-unsafe.h: Remove file.
61368         * lib/ucs4-utf8.h: Remove file.
61369         * lib/ucs4-utf16.h: Remove file.
61370         * lib/unistr.h: Include their previous contents.
61371         * m4/utf-ucs4.m4: Remove file.
61372         * m4/ucs4-utf.m4: Remove file.
61373         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61374         (Depends-on): Add unistr/base.
61375         (configure.ac): Remove gl_UTF_UCS4.
61376         (Makefile.am): Update.
61377         (Include): Change to unistr.h.
61378         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61379         (Depends-on): Add unistr/base.
61380         (configure.ac): Remove gl_UTF_UCS4.
61381         (Makefile.am): Update.
61382         (Include): Change to unistr.h.
61383         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61384         (Depends-on): Add unistr/base.
61385         (configure.ac): Remove gl_UTF_UCS4.
61386         (Makefile.am): Update.
61387         (Include): Change to unistr.h.
61388         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61389         (Depends-on): Add unistr/base.
61390         (configure.ac): Remove gl_UTF_UCS4.
61391         (Makefile.am): Update.
61392         (Include): Change to unistr.h.
61393         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61394         (Depends-on): Add unistr/base.
61395         (configure.ac): Remove gl_UCS4_UTF.
61396         (Makefile.am): Update.
61397         (Include): Change to unistr.h.
61398         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61399         (Depends-on): Add unistr/base.
61400         (configure.ac): Remove gl_UCS4_UTF.
61401         (Makefile.am): Update.
61402         (Include): Change to unistr.h.
61403         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61404         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61405         utf8-ucs4-unsafe.h.
61406         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61407         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61408         utf16-ucs4-unsafe.h.
61409         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61410         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61411         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61412         * lib/unistr/u8-strchr.c: Likewise.
61413         * lib/unistr/u8-strrchr.c: Likewise.
61414         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61415         * lib/unistr/u16-strchr.c: Likewise.
61416         * lib/unistr/u16-strrchr.c: Likewise.
61417         * lib/striconveh.c: Update.
61418         * lib/linebreak.c: Update.
61419
61420 2007-03-24  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61423         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61424
61425 2007-03-22  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61428
61429 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * MODULES.html.sh (File system functions): New module write-any-file.
61432         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61433         * m4/write-any-file.m4: New files.
61434
61435 2007-03-23  Eric Blake  <ebb9@byu.net>
61436
61437         * gnulib-tool: Rearrange space-tab sequences, since some editors
61438         like to eat them.
61439
61440 2007-03-23  Eric Blake  <ebb9@byu.net>
61441
61442         * lib/version-etc.c (version_etc_va): Update license wording to
61443         be more concise.  Recommended by Richard Stallman.
61444
61445 2007-03-22  Bruno Haible  <bruno@clisp.org>
61446
61447         * lib/poll.c (MSG_PEEK): New fallback definition.
61448
61449 2007-03-22  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61452         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61453         (main): Update.
61454         Fixes a compilation error on BeOS.
61455
61456 2007-03-22  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/frexpl-tests: New file.
61459         * tests/test-frexpl.c: New file.
61460
61461         * modules/frexpl: New file.
61462         * m4/frexpl.m4: New file.
61463         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61464         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61466         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61467         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61468         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61469
61470 2007-03-22  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/frexpl.c: Share code with lib/frexp.c.
61473         * modules/mathl (Files): Add lib/frexp.c.
61474         (Depends-on): Add isnanl-nolibm.
61475
61476 2007-03-22  Bruno Haible  <bruno@clisp.org>
61477
61478         * modules/printf-frexp (Files): Add m4/frexp.m4.
61479         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61480         only if the found frexp function actually works.
61481
61482 2007-03-22  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/frexp.c: Remove older implementation that uses divisions.
61485
61486 2007-03-21  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/frexp-tests: New file.
61489         * tests/test-frexp.c: New file.
61490
61491         * modules/frexp: New file.
61492         * lib/frexp.c: New file.
61493         * m4/frexp.m4: New file.
61494         * lib/math_.h (frexp): New declaration.
61495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61496         REPLACE_FREXP.
61497         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61498
61499 2007-03-21  Bruno Haible  <bruno@clisp.org>
61500
61501         * modules/isnanl-tests: New file.
61502         * tests/test-isnanl.c: New file.
61503
61504         * modules/isnanl: New file.
61505         * lib/isnanl.h: New file.
61506         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61507         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61508         gl_FUNC_ISNANL_WORKS.
61509         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61510         New macros.
61511
61512 2007-03-21  Bruno Haible  <bruno@clisp.org>
61513
61514         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61515         lib/isnanl.h.
61516         (Include): Update.
61517         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61518         * lib/vasnprintf.c: Update.
61519         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61520         tests/test-isnanl.h, remove tests/test-isnanl.c.
61521         (Makefile.am): Update.
61522         * tests/test-isnanl-nolibm.c: New file.
61523         * tests/test-isnanl.h: New file.
61524         * tests/test-isnanl.c: Remove file.
61525
61526 2007-03-21  Jim Meyering  <jim@meyering.net>
61527
61528         When trying to open ".", treat ESTALE like EACCES.
61529         * lib/savewd.c (savewd_save): Resort to forking not just upon
61530         failure with EACCES, but also when errno is ESTALE.
61531
61532 2007-03-20  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61535         Needed on AIX 5.1. Reported by Matthew Woehlke.
61536
61537 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         Suggestions by Bruno Haible:
61540         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61541         our own.
61542         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61543         * modules/acl (Depends-on): Add gettext.
61544
61545 2007-03-19  Bruno Haible  <bruno@clisp.org>
61546
61547         * modules/iconvme: Remove file.
61548         * lib/iconvme.h: Remove file.
61549         * lib/iconvme.c: Remove file.
61550         * m4/iconvme.m4: Remove file.
61551
61552 2007-03-19  Bruno Haible  <bruno@clisp.org>
61553
61554         * doc/relocatable-maint.texi: Break long shell script line.
61555         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61556
61557 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61558
61559         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61560         handle file_has_acl.
61561         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61562         * lib/acl.c: Move header inclusions and related macro defns into
61563         lib/acl-internal.h.
61564         (S_ISLNK): Remove defn, since that's now done for us.
61565         (file_has_acl): Move to lib/file-has-acl.c.
61566         Call acl_trivial if available.  This is the crucial part of the fix.
61567         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61568         shared within the library.  Rewrite a bit, partly to make it compatible
61569         with the GNU coding style.
61570         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61571         Remove unnecessary double-quotes.
61572         Don't test for acl_to_text; the build will catch that.
61573         Replace acl_entries if it doesn't exist and it is needed.
61574         Check for -lsec and acl_trivial (as used on Solaris 10).
61575         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61576         lib/file-has-acl.c.
61577         (Depends-on): Add sys_stat, for S_ISLNK.
61578
61579 2007-03-19  Ben Pfaff  <blp@gnu.org>
61580
61581         * doc/gnulib.texi: Fix typos.
61582         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61583
61584 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61587         If size is zero here, buf must be zero.
61588
61589 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61590
61591         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61592         <bruno@clisp.org>.
61593
61594 2007-03-18  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61597         Suggested by Eric Blake.
61598
61599 2007-03-18  Ben Pfaff  <blp@gnu.org>
61600
61601         * doc/relocatable.texi: Recommend using as prefix a directory
61602         that does not exist and will never be created.  Based on
61603         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61604         and others.
61605
61606 2007-03-17  Bruno Haible  <bruno@clisp.org>
61607
61608         * lib/fchownat.c: Include lchown.h.
61609
61610 2007-03-17  Bruno Haible  <bruno@clisp.org>
61611
61612         Fix endless loop when the given allocated size was > INT_MAX.
61613         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61614         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61615         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61616         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61617         * lib/sprintf.c (sprintf): Likewise.
61618
61619 2007-03-17  Bruno Haible  <bruno@clisp.org>
61620
61621         * tests/test-argp-2.sh (func_compare): Output a context diff.
61622
61623 2007-03-17  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61626         locale's decimal-point character.
61627
61628 2007-03-17  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61631         before comparing it. Needed because on some platforms (e.g. x86) a
61632         'long double' occupies less bytes than sizeof (long double).
61633
61634 2007-03-17  Bruno Haible  <bruno@clisp.org>
61635
61636         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61637         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61638         * tests/test-getaddrinfo.c (simple): Likewise.
61639         * tests/test-read-file.c (main): Likewise.
61640
61641 2007-03-17  Bruno Haible  <bruno@clisp.org>
61642
61643         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61644
61645 2007-03-17  Bruno Haible  <bruno@clisp.org>
61646
61647         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61648         unused variable.
61649
61650 2007-03-17  Bruno Haible  <bruno@clisp.org>
61651
61652         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61653         * tests/test-c-strncasecmp.c: Likewise.
61654
61655 2007-03-17  Bruno Haible  <bruno@clisp.org>
61656
61657         * modules/stdlib (Depends-on): Add unistd.
61658         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61659         Needed for MacOS X 10.3.
61660
61661 2007-03-17  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61664
61665 2007-03-17  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61668
61669 2007-03-17  Bruno Haible  <bruno@clisp.org>
61670
61671         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61672         to reflect files copied from gnulib (with or without modifications).
61673         Suggested by Jim Meyering.
61674
61675 2007-03-17  Eric Blake  <ebb9@byu.net>
61676
61677         * NEWS: Document stdlib change from 2007-02-18.
61678
61679 2007-03-17  Jim Meyering  <jim@meyering.net>
61680
61681         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61682         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61683         someone uses a name containing shell meta-characters.
61684         Reported by Alfred M. Szmidt.
61685
61686         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61687
61688 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61689
61690         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61691         and copy gettext configuration files only if configure.ac contains
61692         a use of AM_GNU_GETTEXT_VERSION.
61693
61694 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61695
61696         * build-aux/bootstrap (gnulib_name): New variable.
61697         (gnulib_tool_options): Use it.
61698
61699 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61700
61701         * tests/test-des.c: Use new namespace.
61702
61703 2007-03-15  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61706         Reported by James Youngman <jay@gnu.org>.
61707
61708 2007-03-15  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61711         declared prototype. Needed with cc on OSF/1 5.1.
61712
61713 2007-03-15  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61716         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61717         (struct gl_list_implementation): Add dispose_fn argument to the
61718         'create_empty', 'create' methods.
61719         (struct gl_list_impl_base): Add field 'dispose_fn'.
61720         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61721         argument.
61722         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61723         dispose_fn argument.
61724         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61725         dispose_fn on the dropped values.
61726         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61727         dispose_fn argument.
61728         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61729         dropped values.
61730         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61731         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61732         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61733         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61734         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61735         argument.
61736         (gl_tree_list_free): Call dispose_fn on the dropped values.
61737         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61738         the dropped values.
61739         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61740         Add dispose_fn argument.
61741         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61742         Call dispose_fn on the dropped values.
61743         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61744         Add dispose_fn argument.
61745         (gl_sublist_create): Initialize the 'dispose_fn' field.
61746         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61747         * tests/test-array_list.c (main): Update.
61748         * tests/test-carray_list.c (main): Update.
61749         * tests/test-avltree_list.c (main): Update.
61750         * tests/test-rbtree_list.c (main): Update.
61751         * tests/test-avltreehash_list.c (main): Update.
61752         * tests/test-rbtreehash_list.c (main): Update.
61753         * tests/test-linked_list.c (main): Update.
61754         * tests/test-linkedhash_list.c (main): Update.
61755         * tests/test-array_oset.c (main): Update.
61756
61757 2007-03-15  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61760         (gl_oset_create_empty): Add dispose_fn argument.
61761         (struct gl_oset_implementation): Add dispose_fn argument to
61762         'create_empty' method.
61763         (struct gl_oset_impl_base): Add dispose_fn field.
61764         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61765         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61766         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61767         values.
61768         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61769         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61770         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61771         dropped value.
61772         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61773         dropped value.
61774         * tests/test-array_oset.c (main): Update.
61775         * tests/test-avltree_oset.c (main): Update.
61776         * tests/test-rbtree_oset.c (main): Update.
61777         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61778
61779 2007-03-13  Bruno Haible  <bruno@clisp.org>
61780
61781         * tests/test-stdbool.c (i): Update after last patch.
61782
61783 2007-03-12  Bruno Haible  <bruno@clisp.org>
61784
61785         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61786         the iswprint macro. Needed on Solaris 2.5.1.
61787
61788 2007-03-12  Bruno Haible  <bruno@clisp.org>
61789
61790         * tests/test-printf-frexp.c (main): Declare x as volatile.
61791
61792 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61793
61794         * doc/gnulib.texi (Build robot for gnulib): New section.
61795
61796 2007-03-12  Jim Meyering  <jim@meyering.net>
61797
61798         * build-aux/bootstrap: New file.
61799         * build-aux/bootstrap.conf: New file, from coreutils.
61800
61801 2007-03-11  Bruno Haible  <bruno@clisp.org>
61802
61803         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61804
61805 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61806
61807         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61808         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61809         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61810
61811 2007-03-11  Bruno Haible  <bruno@clisp.org>
61812
61813         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61814         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61815
61816 2007-03-11  Bruno Haible  <bruno@clisp.org>
61817
61818         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61819         formula. Needed for SunPRO C 5.0.
61820
61821 2007-03-11  Bruno Haible  <bruno@clisp.org>
61822
61823         * modules/long-options (Depends-on): Add getopt.
61824
61825 2007-03-11  Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/modechange (Depends-on): Add stdbool.
61828
61829 2007-03-11  Bruno Haible  <bruno@clisp.org>
61830
61831         * modules/i-ring (Depends-on): Add stdbool.
61832
61833 2007-03-11  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/gc-des (Depends-on): Add stdbool.
61836
61837 2007-03-11  Bruno Haible  <bruno@clisp.org>
61838
61839         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61840
61841 2007-03-11  Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61844
61845 2007-03-11  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61848
61849 2007-03-11  Bruno Haible  <bruno@clisp.org>
61850
61851         * lib/vasnprintf.c (sprintf): Undefine.
61852
61853 2007-03-11  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61856         initializers in SunPRO C and Compaq C compilers.
61857
61858 2007-03-11  Bruno Haible  <bruno@clisp.org>
61859
61860         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61861         decrementing code ANSI C compliant.
61862
61863 2007-03-11  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61866         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61867
61868 2007-03-11  Bruno Haible  <bruno@clisp.org>
61869
61870         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61871         <stdbool.h> substitute doesn't pass.
61872
61873 2007-03-11  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61876
61877 2007-03-11  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61880         script, for submission to autobuild.josefsson.org.
61881
61882 2007-03-10  Bruno Haible  <bruno@clisp.org>
61883
61884         * modules/canonicalize-lgpl-tests: New file.
61885         * tests/test-canonicalize-lgpl.sh: New file.
61886         * tests/test-canonicalize-lgpl.c: New file.
61887
61888         * modules/c-strcase-tests: New file.
61889         * tests/test-c-strcase.sh: New file.
61890         * tests/test-c-strcasecmp.c: New file.
61891         * tests/test-c-strncasecmp.c: New file.
61892
61893         * modules/atexit-tests: New file.
61894         * tests/test-atexit.sh: New file.
61895         * tests/test-atexit.c: New file.
61896
61897 2007-03-10  Bruno Haible  <bruno@clisp.org>
61898
61899         * tests/test-binary-io.sh: Use temporary filenames that are not so
61900         likely to clash with those of other tests (in a parallel make).
61901         * tests/test-binary-io.c: Likewise.
61902
61903 2007-03-10  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61906         fallback; use #error instead.
61907         Suggested by Simon Josefsson.
61908
61909 2007-03-10  Bruno Haible  <bruno@clisp.org>
61910
61911         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61912         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61913         first and the last.
61914
61915 2007-03-10  Bruno Haible  <bruno@clisp.org>
61916
61917         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61918
61919 2007-03-10  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61922         "make distcheck".
61923         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61924         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61925         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61926
61927 2007-03-10  Bruno Haible  <bruno@clisp.org>
61928
61929         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61930         variable.
61931         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61932         variable.
61933
61934 2007-03-09  Eric Blake  <ebb9@byu.net>
61935         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61936
61937         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61938         types are not being provided by gnulib.
61939         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61940         types are supported.
61941
61942 2007-03-10  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/stdio_.h (__attribute__): New macro.
61945         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61946         vsprintf): Specify __attribute__ __format__ for GCC.
61947         Suggested by Eric Blake.
61948
61949 2007-03-09  Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/printf-posix-tests: New file.
61952         * tests/test-printf-posix.sh: New file.
61953         * tests/test-printf-posix.c: New file.
61954
61955         * modules/printf-posix: New file.
61956         * lib/printf.c: New file.
61957         * m4/printf-posix-rpl.m4: New file.
61958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61959         REPLACE_PRINTF.
61960         * lib/stdio_.h (printf): New declaration.
61961         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61962         ____strfmon____): New macros.
61963         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61964         REPLACE_PRINTF.
61965
61966 2007-03-09  Bruno Haible  <bruno@clisp.org>
61967
61968         * tests/test-vasnprintf-posix2.sh: New file.
61969         * tests/test-vasnprintf-posix2.c: New file.
61970         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61971         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61972         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61973
61974         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61975         a locale dependent decimal point, rather than always '.'.
61976
61977 2007-03-09  Eric Blake  <ebb9@byu.net>
61978
61979         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61980         spite of platforms like Tandem/NSK that define it to -1.
61981
61982 2007-03-08  Bruno Haible  <bruno@clisp.org>
61983
61984         * modules/vprintf-posix-tests: New file.
61985         * tests/test-vprintf-posix.sh: New file.
61986         * tests/test-vprintf-posix.c: New file.
61987         * tests/test-printf-posix.h: New file.
61988
61989         * modules/vprintf-posix: New file.
61990         * lib/vprintf.c: New file.
61991         * m4/vprintf-posix.m4: New file.
61992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61993         REPLACE_VPRINTF.
61994         * lib/stdio_.h (vprintf): New declaration.
61995         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61996         REPLACE_VPRINTF.
61997
61998 2007-03-08  Bruno Haible  <bruno@clisp.org>
61999
62000         * modules/fprintf-posix-tests: New file.
62001         * tests/test-fprintf-posix.sh: New file.
62002         * tests/test-fprintf-posix.c: New file.
62003
62004         * modules/fprintf-posix: New file.
62005         * lib/fprintf.c: New file.
62006         * m4/fprintf-posix.m4: New file.
62007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62008         REPLACE_FPRINTF.
62009         * lib/stdio_.h (fprintf): New declaration.
62010         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62011         REPLACE_FPRINTF.
62012
62013 2007-03-08  Bruno Haible  <bruno@clisp.org>
62014
62015         * modules/vfprintf-posix-tests: New file.
62016         * tests/test-vfprintf-posix.sh: New file.
62017         * tests/test-vfprintf-posix.c: New file.
62018         * tests/test-fprintf-posix.h: New file.
62019         * tests/test-fprintf-posix.out: New file.
62020
62021         * modules/vfprintf-posix: New file.
62022         * lib/vfprintf.c: New file.
62023         * m4/vfprintf-posix.m4: New file.
62024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62025         REPLACE_VFPRINTF.
62026         * lib/stdio_.h (vfprintf): New declaration.
62027         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62028         REPLACE_VFPRINTF.
62029
62030 2007-03-08  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62033
62034 2007-03-08  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62037         instead of 'expr' invocations.
62038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62043         Suggested by Paul Eggert.
62044
62045 2007-03-08  Bruno Haible  <bruno@clisp.org>
62046
62047         * modules/fseterr-tests: New file.
62048         * tests/test-fseterr.c: New file.
62049
62050         * modules/fseterr: New file.
62051         * lib/fseterr.h: New file.
62052         * lib/fseterr.c: New file.
62053
62054 2007-03-08  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62057         * lib/getopt_.h: Likewise.
62058         * lib/mbswidth.h: Likewise.
62059         * lib/setenv.h: Likewise.
62060         * lib/vasnprintf.h: Likewise.
62061         * lib/vasprintf.h: Likewise.
62062         * lib/verror.h: Likewise.
62063         * lib/xsetenv.h: Likewise.
62064         * lib/xvasprintf.h: Likewise.
62065
62066 2007-03-08  Jim Meyering  <jim@meyering.net>
62067
62068         * users.txt: Add parted.
62069
62070         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62071
62072 2007-03-07  Bruno Haible  <bruno@clisp.org>
62073
62074         * m4/printf.m4: Make the shell script snippets copy&pastable.
62075
62076 2007-03-02  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/netinet_in_.h: New file.
62079         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62080         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62081         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62082         (Depends-on): Add absolute-header.
62083         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62084         into netinet/in.h.
62085
62086 2007-03-03  Bruno Haible  <bruno@clisp.org>
62087
62088         * lib/sys_select_.h: New file.
62089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62090         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62091         * modules/sys_select (Files): Add lib/sys_select_.h.
62092         (Depends-on): Add absolute-header.
62093         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62094         into sys/select.h.
62095
62096 2007-03-02  Bruno Haible  <bruno@clisp.org>
62097
62098         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62099         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62100         values.
62101         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62102         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62103         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62104         * modules/sys_socket (Depends-on): Add absolute-header.
62105         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62106         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62107         (Include): Remove requirement of inclusion of <sys/types.h>.
62108
62109 2007-03-02  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/byteswap_.h (bswap_32): Fix formula.
62112
62113 2007-03-06  Bruno Haible  <bruno@clisp.org>
62114
62115         * modules/sprintf-posix-tests: New file.
62116         * tests/test-sprintf-posix.c: New file.
62117
62118         * modules/sprintf-posix: New file.
62119         * lib/sprintf.c: New file.
62120         * m4/sprintf-posix.m4: New file.
62121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62122         REPLACE_SPRINTF.
62123         * lib/stdio_.h (sprintf): New declaration.
62124         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62125         REPLACE_SPRINTF.
62126
62127 2007-03-06  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/vsprintf-posix-tests: New file.
62130         * tests/test-vsprintf-posix.c: New file.
62131         * tests/test-sprintf-posix.h: New file.
62132
62133         * modules/vsprintf-posix: New file.
62134         * lib/vsprintf.c: New file.
62135         * m4/vsprintf-posix.m4: New file.
62136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62137         REPLACE_VSPRINTF.
62138         * lib/stdio_.h (vsprintf): New declaration.
62139         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62140         REPLACE_VSPRINTF.
62141
62142 2007-03-06  Bruno Haible  <bruno@clisp.org>
62143
62144         * modules/vsnprintf (Depend-on): Remove minmax.
62145
62146 2007-03-06  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/snprintf-posix-tests: New file.
62149         * tests/test-snprintf-posix.c: New file.
62150
62151         * modules/snprintf-posix: New file.
62152         * m4/snprintf-posix.m4: New file.
62153         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62154         gl_FUNC_SNPRINTF.
62155         (gl_FUNC_SNPRINTF): Invoke it.
62156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62157         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62158         is set.
62159         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62160
62161 2007-03-06  Bruno Haible  <bruno@clisp.org>
62162
62163         * modules/vsnprintf-posix-tests: New file.
62164         * tests/test-vsnprintf-posix.c: New file.
62165         * tests/test-snprintf-posix.h: New file.
62166
62167         * modules/vsnprintf-posix: New file.
62168         * m4/vsnprintf-posix.m4: New file.
62169         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62170         gl_FUNC_VSNPRINTF.
62171         (gl_FUNC_VSNPRINTF): Invoke it.
62172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62173         * lib/stdio_.h (vsnprintf): Define as a replacement if
62174         REPLACE_VSNPRINTF is set.
62175         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62176
62177 2007-03-06  Bruno Haible  <bruno@clisp.org>
62178
62179         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62181
62182 2007-03-06  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62185         (asinl): Declare also if HAVE_DECL_ASINL is set.
62186         (atanl): Declare also if HAVE_DECL_ATANL is set.
62187         (ceill): Declare also if HAVE_DECL_CEILL is set.
62188         (cosl): Declare also if HAVE_DECL_COSL is set.
62189         (expl): Declare also if HAVE_DECL_EXPL is set.
62190         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62191         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62192         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62193         (logl): Declare also if HAVE_DECL_LOGL is set.
62194         (sinl): Declare also if HAVE_DECL_SINL is set.
62195         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62196         (tanl): Declare also if HAVE_DECL_TANL is set.
62197         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62200         declaration of frexpl, ldexpl.
62201         * modules/printf-frexpl (Depends-on): Add math.
62202         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62203
62204 2007-03-05  Bruno Haible  <bruno@clisp.org>
62205
62206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62207         frexpl and ldexpl are declared.
62208         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62209
62210 2007-03-05  Bruno Haible  <bruno@clisp.org>
62211
62212         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62213         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62214
62215 2007-03-05  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/stdio_.h: Include <stddef.h>.
62218
62219 2007-03-05  Bruno Haible  <bruno@clisp.org>
62220
62221         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62222
62223 2007-03-05  Bruno Haible  <bruno@clisp.org>
62224
62225         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62226         NetBSD 4, from Ralf Wildenhues.
62227
62228 2007-03-04  Bruno Haible  <bruno@clisp.org>
62229
62230         * lib/vasprintf.h: Update #if logic for the case when the functions
62231         exist but are overridden.
62232
62233 2007-03-04  Bruno Haible  <bruno@clisp.org>
62234
62235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62236         implementations: glibc-2.4 and MacOS X 10.3.
62237         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62238         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62239         * tests/test-vasprintf-posix.c (test_function): Likewise.
62240
62241 2007-03-04  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/vasprintf-posix-tests: New file.
62244         * tests/test-vasprintf-posix.c: New file.
62245
62246         * modules/vasprintf-posix: New file.
62247         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62248         defined.
62249         * m4/vasprintf-posix.m4: New file.
62250         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62251         gl_FUNC_VASPRINTF.
62252         (gl_FUNC_VASPRINTF): Invoke it.
62253         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62254         here.
62255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62256
62257 2007-03-04  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62260         REPLACE_GETTIMEOFDAY.
62261         * modules/sys_time (Makefile.am): Likewise.
62262         * m4/sys_time_h.m4: Likewise.
62263         * m4/gettimeofday.m4: Likewise.
62264
62265 2007-03-04  Bruno Haible  <bruno@clisp.org>
62266
62267         * modules/vasnprintf-posix-tests: New file.
62268         * tests/test-vasnprintf-posix.c: New file.
62269
62270         * modules/vasnprintf-posix: New file.
62271         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62272         printf-frexpl.h.
62273         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62274         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62275         REPLACE_VASNPRINTF is defined.
62276         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62277         gl_FUNC_VASNPRINTF.
62278         (gl_FUNC_VASNPRINTF): Invoke it.
62279         * m4/vasnprintf-posix.m4: New file.
62280         * m4/printf.m4: New file.
62281
62282 2007-03-04  Bruno Haible  <bruno@clisp.org>
62283
62284         Compile progreloc.c only if --enable-relocatable is specified.
62285         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62286         if --enable-relocatable was specified.
62287         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62288         lib_SOURCES.
62289
62290 2007-03-04  Jim Meyering  <jim@meyering.net>
62291
62292         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62293         Use it consistently, rather than enumerating errno constants.
62294
62295 2007-03-04  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/xvasprintf-tests: New file.
62298         * tests/test-xvasprintf.c: New file.
62299
62300         * modules/vasprintf-tests: New file.
62301         * tests/test-vasprintf.c: New file.
62302
62303         * modules/vasnprintf-tests: New file.
62304         * tests/test-vasnprintf.c: New file.
62305
62306         * modules/vsnprintf-tests: New file.
62307         * tests/test-vsnprintf.c: New file.
62308
62309         * modules/snprintf-tests: New file.
62310         * tests/test-snprintf.c: New file.
62311
62312 2007-03-04  Bruno Haible  <bruno@clisp.org>
62313
62314         Compile relocatable.c only if --enable-relocatable is specified.
62315         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62316         gl_RELOCATABLE_LIBRARY.
62317         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62318         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62319         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62320         gl_RELOCATABLE_LIBRARY.
62321         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62322         (Makefile.am): Remove lib_SOURCES.
62323         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62324         gl_RELOCATABLE_LIBRARY.
62325         (Makefile.am): Remove lib_SOURCES.
62326         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62327         always.
62328         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62329         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62330
62331 2007-03-04  Bruno Haible  <bruno@clisp.org>
62332
62333         * modules/argmatch-tests: New file.
62334         * tests/test-argmatch.c: New file.
62335
62336         * tests/test-allocsa.c (main): Halve the number of loop runs.
62337
62338         * modules/alloca-opt-tests: New file.
62339         * tests/test-alloca-opt.c: New file.
62340
62341 2007-03-04  Jim Meyering  <jim@meyering.net>
62342
62343         Work around difference between Linux ACLs and Solaris 10 ZFS.
62344         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62345         for EINVAL.
62346
62347 2007-03-03  Bruno Haible  <bruno@clisp.org>
62348
62349         * modules/relocatable-prog (Depends-on): Add back progreloc's
62350         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62351
62352 2007-03-03  Bruno Haible  <bruno@clisp.org>
62353
62354         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62355         * modules/relocatable-lib: New file.
62356
62357 2007-03-03  Bruno Haible  <bruno@clisp.org>
62358
62359         * modules/relocatable-prog: Renamed from modules/relocatable.
62360         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62361
62362 2007-03-03  Bruno Haible  <bruno@clisp.org>
62363
62364         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62365         m4/relocatable-lib.m4.
62366         (Depends-on): Remove 'relocatable'.
62367         (configure.ac): Add gl_RELOCATABLE_NOP.
62368
62369 2007-03-03  Bruno Haible  <bruno@clisp.org>
62370
62371         * modules/relocatable-prog-wrapper: New file.
62372         * modules/relocatable (Depends-on): Add it. Remove all other
62373         dependencies except progname.
62374         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62375
62376         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62377         (gl_FUNC_STRERROR): Nop.
62378         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62379
62380         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62381         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62382
62383         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62384         (gl_FUNC_READLINK): Update.
62385
62386         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62387
62388 2007-03-03  Bruno Haible  <bruno@clisp.org>
62389
62390         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62391         * modules/xreadlink (Depends-on): Add unistd.
62392         * modules/xreadlink-with-size (Depends-on): Likewise.
62393
62394 2007-03-03  Bruno Haible  <bruno@clisp.org>
62395
62396         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62397         extracted from gt_FUNC_SETENV.
62398         (gt_FUNC_SETENV): Remove macro.
62399         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62400         remove gt_FUNC_SETENV.
62401
62402 2007-03-03  Bruno Haible  <bruno@clisp.org>
62403
62404         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62405         ENABLE_RELOCATABLE here.
62406         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62407
62408 2007-03-03  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62411         * tests/test-rbtreehash_list.c: Include progname.h.
62412         (main): Call set_program_name.
62413
62414         * modules/rbtree-oset-tests (Depends-on): Add progname.
62415         * tests/test-rbtree_oset.c: Include progname.h.
62416         (main): Call set_program_name.
62417
62418         * modules/rbtree-list-tests (Depends-on): Add progname.
62419         * tests/test-rbtree_list.c: Include progname.h.
62420         (main): Call set_program_name.
62421
62422         * modules/linked-list-tests (Depends-on): Add progname.
62423         * tests/test-linked_list.c: Include progname.h.
62424         (main): Call set_program_name.
62425
62426 2007-03-03  Bruno Haible  <bruno@clisp.org>
62427
62428         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62429         All uses of __restrict changed to _Restrict_.
62430         * lib/glob_.h (__restrict): Remove macro.
62431
62432 2007-03-02  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/gettext (configure.ac): Require gettext infrastructure
62435         from version 0.16.1.
62436
62437 2007-03-02  Bruno Haible  <bruno@clisp.org>
62438
62439         * modules/linkedhash-list-tests (Depends-on): Add progname.
62440         * tests/test-linkedhash_list.c: Include progname.h.
62441         (main): Call set_program_name.
62442
62443         * modules/carray-list-tests (Depends-on): Add progname.
62444         * tests/test-carray_list.c: Include progname.h.
62445         (main): Call set_program_name.
62446
62447         * modules/avltreehash-list-tests (Depends-on): Add progname.
62448         * tests/test-avltreehash_list.c: Include progname.h.
62449         (main): Call set_program_name.
62450
62451         * modules/avltree-oset-tests (Depends-on): Add progname.
62452         * tests/test-avltree_oset.c: Include progname.h.
62453         (main): Call set_program_name.
62454
62455         * modules/avltree-list-tests (Depends-on): Add progname.
62456         * tests/test-avltree_list.c: Include progname.h.
62457         (main): Call set_program_name.
62458
62459         * modules/array-oset-tests (Depends-on): Add progname.
62460         * tests/test-array_oset.c: Include progname.h.
62461         (main): Call set_program_name.
62462
62463         * modules/array-list-tests (Depends-on): Add progname.
62464         * tests/test-array_list.c: Include progname.h.
62465         (main): Call set_program_name.
62466
62467         * modules/argp-tests (Depends-on): Add progname.
62468         * tests/test-argp.c: Include argp.h first. Include progname.h.
62469         (main): Call set_program_name.
62470
62471 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * doc/gnulib-tool.texi (Initial import): Reword description of
62474         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62475         limited effect even if defined after the first system include.
62476
62477 2007-03-01  Bruno Haible  <bruno@clisp.org>
62478
62479         * build-aux/config.libpath: Update to libtool-1.5.22.
62480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62481
62482 2007-03-01  Bruno Haible  <bruno@clisp.org>
62483
62484         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62485         foo_CFLAGS.
62486         Reported by Ralf Wildenhues.
62487
62488 2007-03-01  Bruno Haible  <bruno@clisp.org>
62489
62490         * build-aux/install-reloc: Remove object files left over by some
62491         compilers.
62492         Reported by Ralf Wildenhues.
62493
62494 2007-03-01  Bruno Haible  <bruno@clisp.org>
62495
62496         * build-aux/install-reloc: Break long lines.
62497
62498 2007-03-01  Bruno Haible  <bruno@clisp.org>
62499
62500         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62501         Reported by Ralf Wildenhues.
62502
62503 2007-03-01  Bruno Haible  <bruno@clisp.org>
62504
62505         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62506         include ordering constraints.
62507
62508 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62512         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62513         as another example.
62514         * lib/time_.h: Fix misspelling.
62515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62516         Require gl_HEADER_TIME_H_DEFAULTS.
62517         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62518         * m4/time_r.m4 (gl_TIME_R): Likewise.
62519         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62520
62521 2007-03-01  Bruno Haible  <bruno@clisp.org>
62522
62523         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62524         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62525
62526 2007-03-01  Jim Meyering  <jim@meyering.net>
62527
62528         * modules/xreadlink (Maintainer): Add my name.
62529         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62530
62531 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62532             Bruno Haible  <bruno@clisp.org>
62533
62534         * build-aux/install-reloc: Compile also c-ctype.c.
62535         * build-aux/relocatable.sh.in: New file.
62536         * doc/relocatable.texi: New file.
62537         * doc/relocatable-maint.texi: New file.
62538         * doc/gnulib.texi: Include relocatable-maint.texi.
62539         * lib/progreloc.c: Include unistd.h unconditionally.
62540         * lib/relocwrapper.c: Include unistd.h unconditionally.
62541         Include c-ctype.h.
62542         (add_dotbin): Use c_tolower.
62543         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62544         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62545         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62546         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62547         to m4/relocatable-lib.m4.
62548         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62549         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62550         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62551         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62552         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62553         * modules/relocatable: New file.
62554         * modules/relocatable-lib: New file.
62555         * modules/relocatable-script: New file.
62556
62557 2007-02-28  Bruno Haible  <bruno@clisp.org>
62558
62559         Import --enable-relocatable infrastructure.
62560         * build-aux/config.libpath: New file, from GNU gettext.
62561         * build-aux/install-reloc: New file, from GNU gettext.
62562         * build-aux/reloc-ldflags: New file, from GNU gettext.
62563         * lib/relocatable.h: New file, from GNU gettext.
62564         * lib/relocatable.c: New file, from GNU gettext.
62565         * lib/relocwrapper.c: New file, from GNU gettext.
62566         * m4/relocatable.m4: New file, from GNU gettext.
62567
62568 2007-02-28  Bruno Haible  <bruno@clisp.org>
62569
62570         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62571
62572         * modules/xreadlink: New file, from GNU gettext with modifications.
62573         * lib/xreadlink.c: New file, from GNU gettext.
62574         * lib/xreadlink.h: Add comments.
62575         (xreadlink): New declaration.
62576
62577         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62578         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62579         lib/xreadlink-with-size.c.
62580         (configure.ac): Remove gl_XREADLINK invocation.
62581         (Makefile.am): Augment lib_SOURCES.
62582         * m4/xreadlink.m4: Remove file.
62583         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62584         (xreadlink_with_size): Renamed from xreadink.
62585         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62586         * modules/canonicalize (Depends-on): Replace xreadlink with
62587         xreadlink-with-size.
62588         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62589
62590 2007-02-25  Jim Meyering  <jim@meyering.net>
62591
62592         * build-aux/announce-gen: When complaining about excess arguments,
62593         list them.
62594
62595 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * README: Document signed integer overflow situation more
62598         accurately.
62599
62600 2007-02-25  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62603         'a' or 'A' conversion.
62604
62605 2007-02-25  Bruno Haible  <bruno@clisp.org>
62606
62607         * modules/filename: Renamed from modules/pathname.
62608         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62609         lib/concatpath.c with lib/concat-filename.c.
62610         (Makefile.am): Update.
62611         (Include): Replace pathname.h with filename.h.
62612         * lib/filename.h: Renamed from lib/pathname.h.
62613         (concatenated_filename): Renamed from concatenated_pathname.
62614         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62615         (concatenated_filename): Renamed from concatenated_pathname.
62616         * lib/findprog.c: Include filename.h instead of pathname.h.
62617         (find_in_path): Update.
62618         * lib/javacomp.c: Include filename.h instead of pathname.h.
62619         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62620         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62621         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62622         is_oldgcj_14_13_usable, is_javac_usable): Update.
62623         * lib/javaexec.c: Include filename.h instead of pathname.h.
62624         (execute_java_class): Update.
62625         * modules/findprog: Update.
62626         * modules/javacomp: Update.
62627         * modules/javaexec: Update.
62628         * MODULES.html.sh (File system functions): Add 'filename', remove
62629         'pathname'.
62630
62631 2007-02-25  Bruno Haible  <bruno@clisp.org>
62632
62633         * modules/printf-frexpl-tests: New file.
62634         * tests/test-printf-frexpl.c: New file.
62635
62636         * modules/printf-frexpl: New file.
62637         * lib/printf-frexpl.h: New file.
62638         * lib/printf-frexpl.c: New file.
62639         * m4/printf-frexpl.m4: New file.
62640
62641 2007-02-25  Bruno Haible  <bruno@clisp.org>
62642
62643         * modules/printf-frexp-tests: New file.
62644         * tests/test-printf-frexp.c: New file.
62645
62646         * modules/printf-frexp: New file.
62647         * lib/printf-frexp.h: New file.
62648         * lib/printf-frexp.c: New file.
62649         * m4/printf-frexp.m4: New file.
62650
62651 2007-02-25  Bruno Haible  <bruno@clisp.org>
62652
62653         Assume automake >= 1.10 for the tests.
62654         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62655         * modules/arctwo-tests: Likewise.
62656         * modules/argp-tests: Likewise.
62657         * modules/avltree-list-tests: Likewise.
62658         * modules/avltree-oset-tests: Likewise.
62659         * modules/avltreehash-list-tests: Likewise.
62660         * modules/carray-list-tests: Likewise.
62661         * modules/crc-tests: Likewise.
62662         * modules/des-tests: Likewise.
62663         * modules/gc-arcfour-tests: Likewise.
62664         * modules/gc-arctwo-tests: Likewise.
62665         * modules/gc-des-tests: Likewise.
62666         * modules/gc-hmac-md5-tests: Likewise.
62667         * modules/gc-hmac-sha1-tests: Likewise.
62668         * modules/gc-md2-tests: Likewise.
62669         * modules/gc-md4-tests: Likewise.
62670         * modules/gc-md5-tests: Likewise.
62671         * modules/gc-pbkdf2-sha1-tests: Likewise.
62672         * modules/gc-rijndael-tests: Likewise.
62673         * modules/gc-sha1-tests: Likewise.
62674         * modules/gc-tests: Likewise.
62675         * modules/getaddrinfo-tests: Likewise.
62676         * modules/hmac-md5-tests: Likewise.
62677         * modules/hmac-sha1-tests: Likewise.
62678         * modules/linked-list-tests: Likewise.
62679         * modules/linkedhash-list-tests: Likewise.
62680         * modules/lock-tests: Likewise.
62681         * modules/md2-tests: Likewise.
62682         * modules/md4-tests: Likewise.
62683         * modules/md5-tests: Likewise.
62684         * modules/rbtree-list-tests: Likewise.
62685         * modules/rbtree-oset-tests: Likewise.
62686         * modules/rbtreehash-list-tests: Likewise.
62687         * modules/read-file-tests: Likewise.
62688         * modules/rijndael-tests: Likewise.
62689         * modules/stdint-tests: Likewise.
62690         * modules/tls-tests: Likewise.
62691
62692 2007-02-24  Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62695         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62696         function; instead check whether isnan with a double argument links.
62697         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62698         function; instead check whether isnan with a 'long double' argument
62699         links.
62700         Reported by Eric Blake <ebb9@byu.net>.
62701
62702 2007-02-24  Bruno Haible  <bruno@clisp.org>
62703
62704         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62705         defined.
62706         * lib/isnanl.c: Remove all code. Just include isnan.c.
62707         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62708
62709 2007-02-25  Jim Meyering  <jim@meyering.net>
62710
62711         Avoid conflicting types for 'unsetenv' on FreeBSD.
62712         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62713         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62714         in stdlib.h.
62715
62716 2007-02-24  Bruno Haible  <bruno@clisp.org>
62717
62718         * modules/isnanl-nolibm-tests: New file.
62719         * tests/test-isnanl.c: New file.
62720
62721         * modules/isnanl-nolibm: New file.
62722         * lib/isnanl.h: New file.
62723         * lib/isnanl.c: New file.
62724         * m4/isnanl.m4: New file.
62725
62726 2007-02-24  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/isnan-nolibm-tests: New file.
62729         * tests/test-isnan.c: New file.
62730
62731         * modules/isnan-nolibm: New file.
62732         * lib/isnan.h: New file.
62733         * lib/isnan.c: New file.
62734         * m4/isnan.m4: New file.
62735
62736 2007-02-24  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62739         assume that an exponent fits in 20 bits.
62740
62741 2007-02-24  Jim Meyering  <jim@meyering.net>
62742
62743         * m4/regex.m4: Update the description of the configure-time option,
62744         --without-included-regex, to state accurately what the defaults are,
62745         and perhaps to give people an idea why using this option is risky.
62746
62747 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62750         loops on small arguments.  This attempts to avoid the problem
62751         Bruno Haible reported for AIX 4.3.2 in
62752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62753
62754 2007-02-23  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62757         Needed for help2man.
62758
62759 2007-02-23  Karl Berry  <karl@gnu.org>
62760
62761         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62762         exists, foo.h should be cvs-ignored, not committed.
62763
62764 2007-02-23  Eric Blake  <ebb9@byu.net>
62765
62766         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62767         * lib/stat-time.h (includes): Likewise.
62768         * lib/utimecmp.c (includes): Likewise.
62769         * lib/utimens.h (includes): Likewise.
62770         * lib/getdate.y (includes): Also include "timespec.h" for use
62771         internal to the module.
62772         * modules/utimens (Depends-on): Revert yesterday's patch.
62773         * modules/nanosleep (Depends-on): Add missing dependency.
62774
62775 2007-02-22  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/glob.c: Don't include getlogin_r.h.
62778
62779 2007-02-22  Jim Meyering  <jim@meyering.net>
62780
62781         * modules/utimens (Depends-on): Add timespec, required for
62782         utimens.h's inclusion of timespec.h.
62783
62784 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62787         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62788         Schwab in
62789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62790         I'll try to think of a better way to fix the Solaris problem.
62791
62792         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62793         like glibc; on Solaris 10, it fails with errno == EINVAL.
62794         POSIX says the behavior is unspecified if the first argument is NULL,
62795         so play it safe and never pass NULL to the system getcwd.
62796
62797 2007-02-21  Jim Meyering  <jim@meyering.net>
62798
62799         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62800         of gettimeofday.  It would conflict with the one now always
62801         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62802         an IRIX 6.5 build failure.
62803
62804 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         Minor fixups to port to Solaris 10 with Sun C 5.8.
62807         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62808         * modules/getcwd (Depends-on): Add dirfd.
62809         * lib/putenv.c (putenv): #undef it.
62810         (rpl_putenv): New decl.
62811         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62812
62813 2007-02-20  Bruno Haible  <bruno@clisp.org>
62814
62815         * modules/stdio-tests: New file.
62816         * tests/test-stdio.c: New file.
62817
62818         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62819         (Depends-on): Add stdio.
62820         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62821         (Include): Use <stdio.h> instead of vsnprintf.h.
62822         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62823         HAVE_DECL_VSNPRINTF.
62824         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62825
62826         * modules/snprintf (Files): Remove lib/snprintf.h.
62827         (Depends-on): Add stdio.
62828         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62829         (Include): Use <stdio.h> instead of snprintf.h.
62830         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62831         HAVE_DECL_SNPRINTF.
62832         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62833         * lib/getaddrinfo.c: Likewise.
62834
62835         * modules/stdio: New file.
62836         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62837         * lib/snprintf.h: Remove file.
62838         * lib/vsnprintf.h: Remove file.
62839         * lib/.cppi-disable: Remove snprintf.h.
62840         * m4/stdio_h.m4: New file.
62841         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62842
62843 2007-02-20  Jim Meyering  <jim@meyering.net>
62844
62845         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62846         used by e.g., mingw.  From Bruno Haible.
62847
62848 2007-02-19  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62851         warnings.
62852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62853
62854 2007-02-19  Bruno Haible  <bruno@clisp.org>
62855
62856         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62857         from mingw users.
62858
62859 2007-02-19  Bruno Haible  <bruno@clisp.org>
62860
62861         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62862         warnings.
62863         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62864
62865 2007-02-19  Jim Meyering  <jim@meyering.net>
62866
62867         Don't use FD after a successful "fdopendir (fd)".
62868         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62869         Reset it by calling dirfd on the just-obtained DIR*.
62870
62871         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62872         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62873
62874 2007-02-18  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/readlink.c: Include <unistd.h>.
62877         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62878         HAVE_READLINK.
62879         * modules/readlink (Depends-on): Add unistd.
62880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62881         (Include): Add <unistd.h>.
62882
62883         * lib/getlogin_r.h: Remove file.
62884         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62885         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62886         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62887         HAVE_DECL_GETLOGIN_R.
62888         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62889         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62890         (Include): Use <unistd.h> instead of getlogin_r.h.
62891
62892         * lib/getcwd.h: Remove file.
62893         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62894         * lib/xgetcwd.c: Likewise.
62895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62896         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62897         * modules/getcwd (Files): Remove lib/getcwd.h.
62898         (Depends-on): Add unistd.
62899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62900         (Include): Use <unistd.h> instad of getcwd.h.
62901
62902         * lib/ftruncate.c: Include <unistd.h> first.
62903         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62904         Set HAVE_FTRUNCATE.
62905         * modules/ftruncate (Depends-on): Add unistd.
62906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62907
62908         * lib/fchdir.c: Include <unistd.h> first.
62909         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62911         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62912         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62913         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62914
62915         * lib/dup2.c: Include <unistd.h> first.
62916         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62917         HAVE_DUP2.
62918         * modules/dup2 (Depends-on): Add unistd.
62919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62920
62921         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62922         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62923         REPLACE_CHOWN. Don't define chown as a macro here.
62924         * modules/chown (Depends-on): Add unistd.
62925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62926
62927         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62928         Add definition for GL_LINK_WARNING.
62929         (chown, dup2): New declarations.
62930         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62931         link warning.
62932         (ftruncate): New declaration.
62933         (getcwd): New declaration, taken from old getcwd.h.
62934         (getlogin_r): New declaration, taken from old getlogin_r.h.
62935         (readlink): New declaration.
62936         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62937         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62938         (gl_PREREQ_UNISTD): Remove macro.
62939         (gl_UNISTD_MODULE_INDICATOR): New macro.
62940         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62941         many new variables. Don't set UNISTD_H.
62942         * modules/unistd (Description): Change.
62943         (Depends-on): Add link-warning.
62944         (configure.ac): Update.
62945         (Makefile.am): Create unistd.h always. Substitute many new variables
62946         into it.
62947
62948 2007-02-18  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62951         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62952         HAVE_GETSUBOPT.
62953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62954         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62955         * lib/getsubopt.h: Remove file.
62956         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62957         (Depends-on): Add stdlib.
62958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62959         (Includes): Use <stdlib.h> instead of getsubopt.h.
62960         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62961         Set HAVE_GETSUBOPT.
62962         * lib/getsubopt.c: Don't include getsubopt.h.
62963
62964 2007-02-18  Bruno Haible  <bruno@clisp.org>
62965
62966         * modules/fchdir (Depends-on): Add dup2.
62967
62968 2007-02-18  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/stdlib_.h: Handle glibc's special invocation convention
62971         specially.
62972
62973 2007-02-18  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/stdlib-tests: New file.
62976         * tests/test-stdlib.c: New file.
62977
62978         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62979         (Depends-on): Add stdlib.
62980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62981         (Includes): Use <stdlib.h> instead of mkstemp.h.
62982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62983         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62984         * lib/mkstemp.c: Don't include mkstemp.h.
62985         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62986         * lib/stdlib--.h: Don't include mkstemp.h.
62987
62988         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62989         (Depends-on): Add stdlib.
62990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62991         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62992         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62993         HAVE_MKDTEMP.
62994         * lib/mkdtemp.c: Don't include mkdtemp.h.
62995         * lib/clean-temp.c: Don't include mkdtemp.h.
62996
62997         * modules/exit (Files): Remove lib/exit.h.
62998         (Depends-on): Add stdlib.
62999         (Makefile.am): Remove lib_SOURCES.
63000         (Include): Use <stdlib.h> instead of exit.h.
63001         * lib/argmatch.c: Don't include exit.h.
63002         * lib/execute.c: Likewise.
63003         * lib/pagealign_alloc.c: Likewise.
63004         * lib/pipe.c: Likewise.
63005         * lib/wait-process.c: Likewise.
63006         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63007         * lib/exitfail.c: Likewise.
63008         * lib/savewd.c: Likewise.
63009         * lib/xsetenv.c: Likewise.
63010
63011         * modules/stdlib: New file.
63012         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63013         and extra comments about mkstemp().
63014         * lib/exit.h: Remove file.
63015         * lib/mkdtemp.h: Remove file.
63016         * lib/mkstemp.h: Remove file.
63017         * m4/stdlib_h.m4: New file.
63018         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63019
63020 2007-02-18  Bruno Haible  <bruno@clisp.org>
63021
63022         * modules/math-tests: New file.
63023         * tests/test-math.c: New file.
63024
63025         * modules/math: New file.
63026         * modules/mathl (Files): Remove lib/mathl.h.
63027         (Depends-on): Add math.
63028         (Makefile.am): Don't mention mathl.h.
63029         (Include): Use <math.h> instead of mathl.h.
63030         * lib/math_.h: New file.
63031         * lib/mathl.h: Remove file.
63032         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63033         mathl.h.
63034         * lib/asinl.c: Likewise.
63035         * lib/atanl.c: Likewise.
63036         * lib/ceill.c: Likewise.
63037         * lib/cosl.c: Likewise.
63038         * lib/expl.c: Likewise.
63039         * lib/floorl.c: Likewise.
63040         * lib/frexpl.c: Likewise.
63041         * lib/ldexpl.c: Likewise.
63042         * lib/logl.c: Likewise.
63043         * lib/sincosl.c: Likewise.
63044         * lib/sinl.c: Likewise.
63045         * lib/sqrtl.c: Likewise.
63046         * lib/tanl.c: Likewise.
63047         * lib/trigl.c: Likewise.
63048         * m4/math_h.m4: New file.
63049         * MODULES.html.sh (Mathematics): Add math.
63050
63051 2007-02-17  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/wctype-tests: New file.
63054         * tests/test-wctype.c: New file.
63055
63056         * modules/wchar-tests: New file.
63057         * tests/test-wchar.c: New file.
63058
63059         * modules/unistd-tests: New file.
63060         * tests/test-unistd.c: New file.
63061
63062         * modules/time-tests: New file.
63063         * tests/test-time.c: New file.
63064
63065         * modules/sysexits-tests: New file.
63066         * tests/test-sysexits.c: New file.
63067
63068         * modules/sys_time-tests: New file.
63069         * tests/test-sys_time.c: New file.
63070
63071         * modules/sys_stat-tests: New file.
63072         * tests/test-sys_stat.c: New file.
63073
63074         * modules/sys_socket-tests: New file.
63075         * tests/test-sys_socket.c: New file.
63076
63077         * modules/sys_select-tests: New file.
63078         * tests/test-sys_select.c: New file.
63079
63080         * modules/string-tests: New file.
63081         * tests/test-string.c: New file.
63082
63083         * modules/stdbool-tests: New file.
63084         * tests/test-stdbool.c: New file.
63085
63086         * modules/netinet_in-tests: New file.
63087         * tests/test-netinet_in.c: New file.
63088
63089         * modules/inttypes-tests: New file.
63090         * tests/test-inttypes.c: New file.
63091
63092         * modules/fcntl-tests: New file.
63093         * tests/test-fcntl.c: New file.
63094
63095         * modules/byteswap-tests: New file.
63096         * tests/test-byteswap.c: New file.
63097
63098         * modules/arpa_inet-tests: New file.
63099         * tests/test-arpa_inet.c: New file.
63100
63101 2007-02-17  Bruno Haible  <bruno@clisp.org>
63102
63103         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63104         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63105         if the corresponding module is not enabled. Emit link warnings if
63106         the function is used nevertheless.
63107         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63108         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63109         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63110         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63111         * modules/inttypes (Depends-on): Add link-warning.
63112         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63113         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63114         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63115         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63116         * modules/imaxdiv (configure.ac): Likewise.
63117         * modules/strtoimax (configure.ac): Likewise.
63118         * modules/strtoumax (configure.ac): Likewise.
63119
63120 2007-02-17  Bruno Haible  <bruno@clisp.org>
63121
63122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63123         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63124         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63125         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63126
63127 2007-02-17  Bruno Haible  <bruno@clisp.org>
63128
63129         * modules/link-warning: New file.
63130         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63131         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63132         * modules/string (Depends-on): Add link-warning.
63133         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63134         string.h.
63135         * MODULES.html.sh (Support for building libraries and executables): Add
63136         link-warning.
63137
63138 2007-02-17  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63141         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63142         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63143         long lines.
63144
63145 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63146             Bruno Haible  <bruno@clisp.org>
63147
63148         * modules/tmpfile: New file.
63149         * lib/tmpfile.c: New file.
63150         * m4/tmpfile.m4: New file.
63151         * MODULES.html.sh (func_all_modules): New section "Input/output".
63152
63153 2007-02-15  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63156         (supports_delete_on_close): New function.
63157         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63158
63159 2007-02-14  Bruno Haible  <bruno@clisp.org>
63160
63161         * modules/mbspcasecmp-tests: New file.
63162         * tests/test-mbspcasecmp.sh: New file.
63163         * tests/test-mbspcasecmp.c: New file.
63164
63165         New module mbspcasecmp.
63166         * modules/mbspcasecmp: New file.
63167         * lib/mbspcasecmp.c: New file.
63168         * lib/string_.h (strncasecmp): Change warning message.
63169         (mbspcasecmp): New declaration.
63170         * m4/mbspcasecmp.m4: New file.
63171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63172         GNULIB_MBSPCASECMP.
63173         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63174         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63175
63176 2007-02-14  Bruno Haible  <bruno@clisp.org>
63177
63178         * modules/mbsncasecmp-tests: New file.
63179         * tests/test-mbsncasecmp.sh: New file.
63180         * tests/test-mbsncasecmp.c: New file.
63181
63182         New module mbsncasecmp.
63183         * modules/mbsncasecmp: New file.
63184         * lib/mbsncasecmp.c: New file.
63185         * lib/string_.h (mbsncasecmp): New declaration.
63186         * m4/mbsncasecmp.m4: New file.
63187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63188         GNULIB_MBSNCASECMP.
63189         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63190         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63191
63192 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63195         Verify that it doesn't overlap with our flags.
63196         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63197         do not have the desired effect in multibyte locales; instead, use
63198         mbscasecmp.
63199         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63200         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63201         we don't require GNU fnmatch ourselves (if our users require it, they
63202         should do so explicitly).
63203
63204         Fix regex code so it doesn't rely on strcasecmp.
63205         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63206         Otherwise, include gnulib's langinfo.h.
63207         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63208         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63210         * modules/regex (FILES): Remove m4/codeset.m4.
63211         (Depends-on): Add localcharset.  Remove strcase.
63212
63213 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63214
63215         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63216         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63217
63218 2007-02-13  Bruno Haible  <bruno@clisp.org>
63219
63220         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63222
63223 2007-02-12  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63226         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63227         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63228         time warning rather than a link error.
63229
63230 2007-02-12  Bruno Haible  <bruno@clisp.org>
63231
63232         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63233         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63234         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63235
63236 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63237
63238         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63239         args, not 2.
63240
63241 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         New module 'time', so that apps can include <time.h> as per
63244         POSIX and GNU instead of separate include files like time_r.h
63245         and timegm.h.  This implementation tries out a simpler approach
63246         for replacing decls in standard include files (as compared to
63247         the string module), somewhat as an experiment.
63248
63249         * config/srclist.txt: Comment out mktime.c for now.
63250         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63251         since it doesn't apply any more.  Use generic wording instead.
63252         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63253         'time'.
63254         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63255         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63256         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63257         Don't include <sys/types.h>; no longer needed since we assume C89.
63258         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63259         * lib/strftime.c: Likewise.
63260         * lib/time_r.c: Likewise.
63261         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63262         * lib/nanosleep.c: Include <time.h> first, to check interface.
63263         * lib/strptime.c: Likewise.
63264         * lib/time_r.c: Likewise.
63265         * lib/timegm.c: Likewise.
63266         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63267         needed.
63268         * lib/timegm.c: Don't include timegm.h; no longer needed.
63269         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63270         time.h now handles any problems in that area.
63271         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63272         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63273         that time.h defines struct timespec.
63274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63275         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63276         handles that.
63277         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63278         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63279         needed.  Set REPLACE_LOCALTIME.
63280         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63281         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63282         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63283         nanosleep; time_h.m4 now does that.  Don't require
63284         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63285         module handles this now.
63286         * modules/getdate (Depends-on): Remove timespec.  Add time.
63287         * modules/nanosleep (Depends-on): Likewise.
63288         * modules/stat-time (Depends-on): Likewise.
63289         * modules/nanosleep (Include): Include time.h, not timespec.h.
63290         * modules/strptime (Files): Remove lib/strptime.h.
63291         (Depends-on): Add extensions, time.
63292         (Include): Include time.h, not strptime.h.
63293         * modules/time_r (Files): Remove lib/time_r.h.
63294         (Depends-on): Add time.
63295         (Include): Include time.h, not time_r.h.
63296         * modules/timegm: Likewise.
63297         * modules/timespec (Description): Now does timespec-related decls
63298         of our own, instead of struct timespec itself.
63299         (Depends-on): Add time; remove extensions.
63300         (Maintainer): Add self.
63301         * modules/utimecmp (Depends-on): Add time; remove timespec.
63302         * modules/utimens (Depends-on): Likewise.
63303         * modules/xnanosleep (Depends-on): Likewise.
63304
63305 2007-02-11  Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/c-strstr.c: Include allocsa.h.
63308         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63309         * lib/c-strcasestr.c: Include allocsa.h.
63310         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63311         * lib/strcasestr.c: Include allocsa.h.
63312         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63313         * lib/mbsstr.c: Include allocsa.h.
63314         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63315         allocsa/freesa instead of malloc/free.
63316         * lib/mbscasestr.c: Include allocsa.h.
63317         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63318         allocsa/freesa instead of malloc/free.
63319         * modules/c-strstr (Depends-on): Add allocsa.
63320         * modules/c-strcasestr (Depends-on): Likewise.
63321         * modules/strcasestr (Depends-on): Likewise.
63322         * modules/mbsstr (Depends-on): Likewise.
63323         * modules/mbscasestr (Depends-on): Likewise.
63324
63325 2007-02-11  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63328
63329         * modules/mbsspn-tests: New file.
63330         * tests/test-mbsspn.sh: New file.
63331         * tests/test-mbsspn.c: New file.
63332
63333 2007-02-11  Bruno Haible  <bruno@clisp.org>
63334
63335         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63336
63337         * modules/mbspbrk-tests: New file.
63338         * tests/test-mbspbrk.sh: New file.
63339         * tests/test-mbspbrk.c: New file.
63340
63341 2007-02-11  Bruno Haible  <bruno@clisp.org>
63342
63343         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63344         unneeded cast.
63345
63346         * modules/mbscspn-tests: New file.
63347         * tests/test-mbscspn.sh: New file.
63348         * tests/test-mbscspn.c: New file.
63349
63350 2007-02-11  Bruno Haible  <bruno@clisp.org>
63351
63352         * modules/mbscasecmp-tests: New file.
63353         * tests/test-mbscasecmp.sh: New file.
63354         * tests/test-mbscasecmp.c: New file.
63355
63356 2007-02-11  Bruno Haible  <bruno@clisp.org>
63357
63358         Ensure O(n) worst-case complexity of mbscasestr.
63359         * lib/mbscasestr.c: Include stdbool.h.
63360         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63361         functions.
63362         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63363         the bookkeeping indicates that it's worth it.
63364         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63365
63366         * modules/mbscasestr-tests: New file.
63367         * tests/test-mbscasestr1.c: New file.
63368         * tests/test-mbscasestr2.sh: New file.
63369         * tests/test-mbscasestr2.c: New file.
63370         * tests/test-mbscasestr3.sh: New file.
63371         * tests/test-mbscasestr3.c: New file.
63372         * tests/test-mbscasestr4.sh: New file.
63373         * tests/test-mbscasestr4.c: New file.
63374         * m4/locale-tr.m4: New file.
63375
63376 2007-02-11  Bruno Haible  <bruno@clisp.org>
63377
63378         Ensure O(n) worst-case complexity of mbsstr.
63379         * lib/mbsstr.c: Include stdbool.h.
63380         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63381         functions.
63382         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63383         bookkeeping indicates that it's worth it.
63384         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63385
63386         * modules/mbsstr-tests: New file.
63387         * tests/test-mbsstr1.c: New file.
63388         * tests/test-mbsstr2.sh: New file.
63389         * tests/test-mbsstr2.c: New file.
63390         * tests/test-mbsstr3.sh: New file.
63391         * tests/test-mbsstr3.c: New file.
63392         * m4/locale-fr.m4: New file.
63393
63394 2007-02-11  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/mbsrchr.c (mbsrchr): Fix bug.
63397
63398         * modules/mbsrchr-tests: New file.
63399         * tests/test-mbsrchr.sh: New file.
63400         * tests/test-mbsrchr.c: New file.
63401
63402 2007-02-11  Bruno Haible  <bruno@clisp.org>
63403
63404         * lib/mbschr.c (mbschr): Fix bug.
63405
63406         * modules/mbschr-tests: New file.
63407         * tests/test-mbschr.sh: New file.
63408         * tests/test-mbschr.c: New file.
63409         * m4/locale-zh.m4: New file.
63410
63411 2007-02-11  Bruno Haible  <bruno@clisp.org>
63412
63413         Support for copying multibyte string iterators.
63414         * lib/mbiter.h: Include <string.h>.
63415         (mbiter_multi_copy): New function.
63416         (mbi_copy): New macro.
63417         * lib/mbuiter.h: Include <string.h>.
63418         (mbuiter_multi_copy): New function.
63419         (mbui_copy): New macro.
63420
63421 2007-02-11  Bruno Haible  <bruno@clisp.org>
63422
63423         New module mbslen.
63424         * modules/mbslen: New file.
63425         * lib/mbslen.c: New file.
63426         * lib/string_.h (mbslen): New declaration.
63427         * m4/mbslen.m4: New file.
63428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63429         GNULIB_MBSLEN.
63430         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63431         * MODULES.html.sh (Internationalization functions): Add mbslen.
63432
63433 2007-02-11  Bruno Haible  <bruno@clisp.org>
63434
63435         Ensure O(n) worst-case complexity of strcasestr substitute.
63436         * lib/strcasestr.c: Include stdbool.h.
63437         (knuth_morris_pratt): New function.
63438         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63439         bookkeeping indicates that it's worth it.
63440         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63441
63442         * modules/strcasestr-tests: New file.
63443         * tests/test-strcasestr.c: New file.
63444
63445 2007-02-11  Bruno Haible  <bruno@clisp.org>
63446
63447         Ensure O(n) worst-case complexity of c_strcasestr.
63448         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63449         (knuth_morris_pratt): New function.
63450         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63451         the bookkeeping indicates that it's worth it.
63452         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63453
63454         * modules/c-strcasestr-tests: New file.
63455         * tests/test-c-strcasestr.c: New file.
63456
63457 2007-02-11  Bruno Haible  <bruno@clisp.org>
63458
63459         Ensure O(n) worst-case complexity of c_strstr.
63460         * lib/c-strstr.c: Include stdbool.h, string.h.
63461         (knuth_morris_pratt): New function.
63462         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63463         bookkeeping indicates that it's worth it.
63464         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63465
63466         * lib/c-strstr.c: Complete rewrite for maintainability.
63467
63468         * modules/c-strstr-tests: New file.
63469         * tests/test-c-strstr.c: New file.
63470
63471 2007-02-11  Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63474         5.2.1 and earlier, whereby \055 was treated just like the range
63475         delimiter '-'.
63476         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63477
63478 2007-02-08  Bruno Haible  <bruno@clisp.org>
63479
63480         * modules/regex (Depends-on): Add stdbool.
63481         Reported by Dalibor Topic <robilad@kaffe.org>.
63482
63483 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63484
63485         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63486         Prefer returning from main to exiting from it.
63487         Remove unnecessary parens after sizeof.
63488
63489 2007-02-05  Bruno Haible  <bruno@clisp.org>
63490
63491         New module mbssep.
63492         * modules/mbssep: New file.
63493         * lib/mbssep.c: New file.
63494         * lib/string_.h (strsep): Add a conditional link warning.
63495         (mbssep): New declaration.
63496         * m4/mbssep.m4: New file.
63497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63498         GNULIB_MBSSEP.
63499         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63500         * MODULES.html.sh (Internationalization functions): Add mbssep.
63501
63502 2007-02-05  Bruno Haible  <bruno@clisp.org>
63503
63504         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63505         Optimize search in case of 1 delimiter.
63506
63507 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63508
63509         * lib/acl.h: Include sys/types.h before sys/acl.h.
63510
63511 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63512
63513         Merge upstream fix for glibc bugzilla #3957:
63514
63515         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63516
63517         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63518         bit for RE_HAT_LISTS_NOT_NEWLINE.
63519         (build_charclass_op): Remove bogus comment.
63520
63521 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63522
63523         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63524
63525 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63528         * lib/memmem.c [!defined _LIBC]: Include config.h.
63529
63530 2007-02-04  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63533         warning message.
63534
63535 2007-02-04  Bruno Haible  <bruno@clisp.org>
63536
63537         New module mbstok_r.
63538         * modules/mbstok_r: New file.
63539         * lib/mbstok_r.c: New file.
63540         * lib/string_.h (strtok_r): Change argument names to match the
63541         comments. Add a conditional link warning.
63542         (mbstok_r): New declaration.
63543         * m4/mbstok_r.m4: New file.
63544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63545         GNULIB_MBSTOK_R.
63546         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63547         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63548
63549 2007-02-04  Bruno Haible  <bruno@clisp.org>
63550
63551         New module mbsspn.
63552         * modules/mbsspn: New file.
63553         * lib/mbsspn.c: New file.
63554         * lib/string_.h (strspn): Add a conditional link warning.
63555         (mbsspn): New declaration.
63556         * m4/mbsspn.m4: New file.
63557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63558         GNULIB_MBSSPN.
63559         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63560         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63561
63562 2007-02-04  Bruno Haible  <bruno@clisp.org>
63563
63564         New module mbspbrk.
63565         * modules/mbspbrk: New file.
63566         * lib/mbspbrk.c: New file.
63567         * lib/string_.h (strpbrk): Add a conditional link warning.
63568         (mbspbrk): New declaration.
63569         * m4/mbspbrk.m4: New file.
63570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63571         GNULIB_MBSPBRK.
63572         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63573         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63574
63575 2007-02-04  Bruno Haible  <bruno@clisp.org>
63576
63577         New module mbscspn.
63578         * modules/mbscspn: New file.
63579         * lib/mbscspn.c: New file.
63580         * lib/string_.h (strcspn): Add a conditional link warning.
63581         (mbscspn): New declaration.
63582         * m4/mbscspn.m4: New file.
63583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63584         GNULIB_MBSCSPN.
63585         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63586         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63587
63588 2007-02-04  Bruno Haible  <bruno@clisp.org>
63589
63590         New module mbscasestr, reduced goal of strcasestr.
63591         * modules/mbscasestr: New file.
63592         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63593         (mbscasestr): Renamed from strcasestr.
63594         * lib/strcasestr.c: Don't include mbuiter.h.
63595         (strcasestr): Remove support for multibyte locales.
63596         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63597         Change the conditional link warning.
63598         (mbscasestr): New declaration.
63599         * m4/mbscasestr.m4: New file.
63600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63601         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63602         REPLACE_STRCASESTR.
63603         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63605         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63606         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63607         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63608         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63609         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63610         (Depends-on): Remove mbuiter.
63611         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63612
63613 2007-02-04  Bruno Haible  <bruno@clisp.org>
63614
63615         Simplify handling of strncasecmp.
63616         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63617         the conditional link warning.
63618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63619         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63621         * modules/strcase (configure.ac): Don't invoke
63622         gl_STRING_MODULE_INDICATOR.
63623         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63624
63625 2007-02-04  Bruno Haible  <bruno@clisp.org>
63626
63627         New module mbscasecmp, reduced goal of strcasecmp.
63628         * modules/mbscasecmp: New file.
63629         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63630         (mbscasecmp): Renamed from strcasecmp.
63631         * lib/strcasecmp.c: Don't include mbuiter.h.
63632         (strcasecmp): Remove support for multibyte locales.
63633         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63634         Change the conditional link warning.
63635         (mbscasecmp): New declaration.
63636         * m4/mbscasecmp.m4: New file.
63637         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63638         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63639         REPLACE_STRCASECMP.
63640         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63642         GNULIB_MBSCASECMP.
63643         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63644         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63645         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63646         (Depends-on): Remove mbuiter.
63647         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63648
63649 2007-02-04  Bruno Haible  <bruno@clisp.org>
63650
63651         New module mbsstr. Remove module strstr.
63652         * modules/mbsstr: New file.
63653         * modules/strstr: Remove file.
63654         * lib/mbsstr.c: Renamed from lib/strstr.c.
63655         (mbsstr): Renamed from strstr.
63656         * lib/string_.h (strstr): Remove declaration. Change the conditional
63657         link warning.
63658         (mbsstr): New declaration.
63659         * m4/mbsstr.m4: New file.
63660         * m4/strstr.m4: Remove file.
63661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63662         REPLACE_STRSTR.
63663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63664         Don't initialize GNULIB_STRSTR.
63665         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63666         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63667         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63668         (Support for systems lacking ANSI C 89): Remove strstr.
63669
63670 2007-02-04  Bruno Haible  <bruno@clisp.org>
63671
63672         New module mbsrchr.
63673         * modules/mbsrchr: New file.
63674         * lib/mbsrchr.c: New file.
63675         * lib/string_.h (strrchr): Add a conditional link warning.
63676         (mbsrchr): New declaration.
63677         * m4/mbsrchr.m4: New file.
63678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63679         GNULIB_MBSRCHR.
63680         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63681         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63682
63683 2007-02-04  Bruno Haible  <bruno@clisp.org>
63684
63685         New module mbschr.
63686         * modules/mbschr: New file.
63687         * lib/mbschr.c: New file.
63688         * lib/string_.h (strchr): Add a conditional link warning.
63689         (mbschr): New declaration.
63690         * m4/mbschr.m4: New file.
63691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63692         GNULIB_MBSCHR.
63693         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63694         * MODULES.html.sh (Internationalization functions): Add mbschr.
63695
63696 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63699
63700         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63701
63702 2007-02-04  Bruno Haible  <bruno@clisp.org>
63703
63704         New module description section 'configure.ac-early'.
63705         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63706         (func_get_autoconf_early_snippet): New function.
63707         (func_import, func_create_testdir): Use it. Remove special cases for
63708         modules 'extensions' and 'lock'.
63709         * modules/extensions (configure.ac-early): Require
63710         gl_USE_SYSTEM_EXTENSIONS.
63711         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63712
63713 2007-02-04  Bruno Haible  <bruno@clisp.org>
63714
63715         Make use of gcj-4.3's -fsource and -ftarget option.
63716         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63717         and if so try the options -fsource and -ftarget.
63718         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63719         source_version, ftarget_option, target_version arguments.
63720         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63721         (is_envjavac_oldgcj_14_14_usable): Renamed from
63722         is_envjavac_gcj_14_14_usable.
63723         (is_envjavac_oldgcj_14_13_usable): Renamed from
63724         is_envjavac_gcj_14_13_usable.
63725         (is_gcj_present): Update.
63726         (is_gcj_43, is_gcj43_usable): New functions.
63727         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63728         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63729         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63730         try the options -fsource and -ftarget.
63731
63732 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63735         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63736         larger value.
63737
63738 2007-02-03  Jim Meyering  <jim@meyering.net>
63739
63740         Give tools a better chance to allocate space for very large buffers.
63741         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63742
63743         Make pwd and readlink work also when run with an unreadable parent dir
63744         on systems with openat support.
63745         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63746         provided getcwd function, even when we have openat support.
63747         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63748
63749 2007-02-02  Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63752         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63753         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63754         portability problems if one of these functions is only used on specific
63755         platforms.
63756         Reported by Paul Eggert.
63757
63758 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63759
63760         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63761         is causing more trouble than it's curing.
63762         * lib/regex_internal.h (__mempcpy): Remove.
63763         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63764         (and make the code a tad smaller to boot).
63765         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63766
63767 2007-02-02  Jim Meyering  <jim@meyering.net>
63768
63769         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63770         section, not in the Makefile.am: one.
63771
63772 2007-02-02  Eric Blake  <ebb9@byu.net>
63773
63774         * lib/strchrnul.c: Always include config.h first.
63775
63776         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63777         gnulib strstr is not necessary here.
63778
63779 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63780
63781         * m4/socklen.m4: Fix typo.
63782
63783 2007-02-02  Eric Blake  <ebb9@byu.net>
63784
63785         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63786         * modules/netinet_in (Makefile.am): Likewise.
63787
63788 2007-02-01  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/string_.h (GL_LINK_WARNING): New macro.
63791         (strcasecmp, strstr, strcasestr): If provided by the system,
63792         conditionally define as a macro that leads to a warning instead of to
63793         an error.
63794         (strncasecmp): Conditionally define as a macro that leads to a warning.
63795
63796 2007-02-01  Karl Berry  <karl@gnu.org>
63797
63798         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63799
63800 2007-02-01  Bruno Haible  <bruno@clisp.org>
63801
63802         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63803         renamings.
63804
63805 2007-02-01  Eric Blake  <ebb9@byu.net>
63806
63807         * modules/regex (Depends-on): Revert dependence on mempcpy.
63808         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63809         module's definition of mempcpy.
63810         Reported by Paul Eggert.
63811
63812 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63815         the symbol XYZ before redefining it.  This fixes a problem with
63816         programs that don't use XYZ, when compiled on systems that define
63817         XYZ to something else.
63818
63819 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63822         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63823         writeable to group or other and (2) is intended to have a special
63824         mode bit that is set or cleared.  In such a case, the directory
63825         should be neither group- nor other-writeable until the special
63826         mode bits are right.
63827
63828 2007-01-31  Eric Blake  <ebb9@byu.net>
63829
63830         * modules/mountlist (Depends-on): Add strstr.
63831
63832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63833         bug.
63834         * modules/string (Makefile.am): Remove redundant replacement.
63835         * modules/regex (Depends-on): Add mempcpy.
63836
63837 2007-01-31  Bruno Haible  <bruno@clisp.org>
63838
63839         New module description field 'Link'.
63840         * gnulib-tool (func_usage): Document --extract-link-directive.
63841         (sed_extract_prog): Recognize 'Link' directive.
63842         (func_get_link_directive): New function.
63843         (func_import): Show summary of link directives.
63844         Handle --extract-link-directive option.
63845         * modules/acl (Link): New section.
63846         * modules/clock-time (Link): New section.
63847         * modules/euidaccess (Link): New section.
63848         * modules/gettext (Link): New section.
63849         * modules/iconv (Link): New section.
63850         * modules/lock (Link): New section.
63851         * modules/nanosleep (Link): New section.
63852         * modules/readline (Link): New section.
63853
63854 2007-01-27  Bruno Haible  <bruno@clisp.org>
63855
63856         Enforce the use of gnulib modules for unportable <string.h> functions.
63857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63858         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63859         (gl_HEADER_STRING_H_BODY): Require it.
63860         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63861         the symbol XYZ to one that gives a link error.
63862         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63863         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63864         * modules/mempcpy (configure.ac): Likewise.
63865         * modules/memrchr (configure.ac): Likewise.
63866         * modules/stpcpy (configure.ac): Likewise.
63867         * modules/stpncpy (configure.ac): Likewise.
63868         * modules/strcase (configure.ac): Likewise.
63869         * modules/strcasestr (configure.ac): Likewise.
63870         * modules/strchrnul (configure.ac): Likewise.
63871         * modules/strdup (configure.ac): Likewise.
63872         * modules/strndup (configure.ac): Likewise.
63873         * modules/strnlen (configure.ac): Likewise.
63874         * modules/strpbrk (configure.ac): Likewise.
63875         * modules/strsep (configure.ac): Likewise.
63876         * modules/strstr (configure.ac): Likewise.
63877         * modules/strtok_r (configure.ac): Likewise.
63878
63879 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63880
63881         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63882
63883 2007-01-30  Jim Meyering  <jim@meyering.net>
63884
63885         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63886
63887 2007-01-29  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63890         * lib/execute.c: Likewise.
63891         * lib/pipe.c: Likewise.
63892         * lib/printf-args.h: Likewise.
63893         * lib/printf-args.c: Likewise.
63894         * lib/printf-parse.c: Likewise.
63895         * lib/vasnprintf.c: Likewise.
63896
63897 2007-01-29  Eric Blake  <ebb9@byu.net>
63898
63899         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63900         declaration.
63901
63902 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * lib/strptime.h (strptime): Use 'restrict' for args where
63905         POSIX requires this.
63906         * lib/strptime.c (strptime): Likewise.
63907         Change license notice from LGPL to GPL, since gnulib-tool will
63908         change this as needed.
63909         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63910         defined.
63911         Include "strptime.h" first, to check interface.
63912         Do not #undef _LIBC and _NL_CURRENT.
63913         Do not include <stdlib.h>; no longer needed.
63914         Include "time_r.h" and declare ptime_locale_status
63915         only if _LIBC is not defined.
63916         (__P): Remove unused macro.
63917         (match_string): Bring back glibc version, but use it only if _LIBC
63918         is defined.
63919         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63920         Remove unnecessary assertion and abort() call.
63921         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63922         * m4/strptime.m4: Fix serial number comment.
63923         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63924         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63925         (Depends-on): Add time_r.
63926
63927 2007-01-29  Bruno Haible  <bruno@clisp.org>
63928
63929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63930         strptime.
63931         * modules/strptime (Depends-on): Add stdbool.
63932         * lib/strptime.h: Include <time.h> always. Add comments.
63933
63934 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63935
63936         * modules/strptime: New file.
63937         * lib/strptime.h: New file.
63938         * lib/strptime.c: New file.
63939         * m4/strptime.m4: New file.
63940
63941 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * MODULES.html.sh: New module mpsort.
63944         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63945
63946         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63947         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63949         All uses changed.
63950         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63951         All uses changed.
63952         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63953         to _Restrict_.
63954         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63955         the parameter matches the prototype.
63956
63957 2007-01-28  Jim Meyering  <jim@meyering.net>
63958
63959         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63960         sys/time.h here, reverting that part of the previous patch:
63961         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63962
63963 2007-01-28  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63966         value of $(SYS_TIME_H).
63967         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63968         remove it conditionally, too. [added by Jim Meyering]
63969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63971         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63972         GETTIMEOFDAY_REPLACEMENT to 1.
63973
63974 2007-01-28  Bruno Haible  <bruno@clisp.org>
63975
63976         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63977         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63979         Set UNISTD_H instead of UNISTD_H2.
63980         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63981
63982 2007-01-28  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63985         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63986
63987 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63988
63989         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63990         (func_create_testdir): Ensure C locale for `grep' and `tr'
63991         character ranges.
63992         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63993         ACLOCAL_AMFLAGS parsing state machine.
63994
63995 2007-01-27  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/unistr/base: Update.
63998
63999 2007-01-27  Bruno Haible  <bruno@clisp.org>
64000
64001         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64002         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64003         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64004         modules/unistr/u32-mbtouc.
64005         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64006         * lib/unistr.h: Update.
64007         * lib/linebreak.c: Update.
64008         * modules/unistr/u32-mbtouc: Renamed from
64009         modules/unistr/u32-mbtouc-safe.
64010         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64011         * lib/unistr.h: Update.
64012         * lib/unistr/u32-to-u8.c: Update.
64013         * lib/unistr/u32-to-u16.c: Update.
64014
64015 2007-01-27  Bruno Haible  <bruno@clisp.org>
64016
64017         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64018         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64019         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64020         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64021         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64022         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64023         modules/unistr/u16-mbtouc.
64024         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64025         * lib/unistr.h: Update.
64026         * lib/linebreak.c: Update.
64027         * modules/linebreak: Update.
64028         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64029         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64030         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64031         * modules/unistr/u16-mbtouc: Renamed from
64032         modules/unistr/u16-mbtouc-safe.
64033         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64034         * lib/unistr.h: Update.
64035         * lib/unistr/u16-to-u8.c: Update.
64036         * modules/unistr/u16-to-u8: Update.
64037         * lib/unistr/u16-to-u32.c: Update.
64038         * modules/unistr/u16-to-u32: Update.
64039
64040 2007-01-27  Bruno Haible  <bruno@clisp.org>
64041
64042         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64043         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64044         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64045         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64046         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64047         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64048         modules/unistr/u8-mbtouc.
64049         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64050         * lib/unistr.h: Update.
64051         * lib/striconveh.c: Update.
64052         * modules/striconveh: Update.
64053         * lib/linebreak.c: Update.
64054         * modules/linebreak: Update.
64055         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64056         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64057         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64058         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64059         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64060         * lib/unistr.h: Update.
64061         * lib/striconveh.c: Update.
64062         * modules/striconveh: Update.
64063         * lib/unistr/u8-to-u16.c: Update.
64064         * modules/unistr/u8-to-u16: Update.
64065         * lib/unistr/u8-to-u32.c: Update.
64066         * modules/unistr/u8-to-u32: Update.
64067
64068 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64069
64070         Sync from Libtool.
64071         * lib/argz.c: Do not include strings.h nor memory.h, include
64072         string.h unconditionally.  Patch by Simon Josefsson.
64073
64074 2007-01-27  Bruno Haible  <bruno@clisp.org>
64075
64076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64077         from gl_HEADER_STRING_H_BODY.
64078         (gl_HEADER_STRING_H_BODY): Require it.
64079         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64084         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64087         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64088         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64089         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64090         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64091         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64092         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64094
64095 2007-01-27  Bruno Haible  <bruno@clisp.org>
64096
64097         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64098         check_PROGRAMS into noinst_PROGRAMS.
64099         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64100         check_PROGRAMS in this case.
64101         (func_import): Set for_test to false.
64102         (func_create_testdir): Set for_test to true.
64103
64104 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64105             Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64108         (Depends-on): Add string.
64109         (Includes): Use <string.h> instead of strcasestr.h.
64110         * modules/string (Makefile.am): Also substitute the value of
64111         REPLACE_STRCASESTR.
64112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64113         assume strcasestr is declared in <string.h> not <strings.h>. Also
64114         set REPLACE_STRCASESTR.
64115         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64116         REPLACE_STRCASESTR.
64117         * lib/strcasestr.h: Remove file.
64118         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64119         * lib/string_.h (strcasestr): New declaration.
64120
64121 2007-01-27  Bruno Haible  <bruno@clisp.org>
64122
64123         * lib/string_.h: Use 'extern'.
64124
64125 2007-01-27  Jim Meyering  <jim@meyering.net>
64126
64127         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64128         of set-but-not-used local, "q".
64129
64130         * lib/mempcpy.c: Include <config.h> before <string.h>.
64131         This fixes a compilation error on HP-UX, due to the system's
64132         "restrict"-using mempcpy prototype.
64133
64134 2007-01-26  Bruno Haible  <bruno@clisp.org>
64135
64136         Small optimization.
64137         * lib/javacomp.c: Include c-strstr.h.
64138          (is_envjavac_gcj): Use c_strstr instead of strstr.
64139         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64140
64141 2007-01-26  Bruno Haible  <bruno@clisp.org>
64142
64143         * MODULES.html.sh (Unicode string functions): Add the new modules.
64144
64145         * modules/uniconv/u32-strconv-to-locale: New file.
64146         * lib/uniconv/u32-strconv-to-locale.c: New file.
64147
64148         * modules/uniconv/u16-strconv-to-locale: New file.
64149         * lib/uniconv/u16-strconv-to-locale.c: New file.
64150
64151         * modules/uniconv/u8-strconv-to-locale: New file.
64152         * lib/uniconv/u8-strconv-to-locale.c: New file.
64153
64154         * modules/uniconv/u32-strconv-from-locale: New file.
64155         * lib/uniconv/u32-strconv-from-locale.c: New file.
64156
64157         * modules/uniconv/u16-strconv-from-locale: New file.
64158         * lib/uniconv/u16-strconv-from-locale.c: New file.
64159
64160         * modules/uniconv/u8-strconv-from-locale: New file.
64161         * lib/uniconv/u8-strconv-from-locale.c: New file.
64162
64163         * modules/uniconv/u32-strconv-to-enc: New file.
64164         * lib/uniconv/u32-strconv-to-enc.c: New file.
64165         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64166         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64167
64168         * modules/uniconv/u16-strconv-to-enc: New file.
64169         * lib/uniconv/u16-strconv-to-enc.c: New file.
64170         * lib/uniconv/u-strconv-to-enc.h: New file.
64171         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64172         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64173
64174         * modules/uniconv/u8-strconv-to-enc: New file.
64175         * lib/uniconv/u8-strconv-to-enc.c: New file.
64176         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64177         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64178
64179         * modules/uniconv/u32-strconv-from-enc: New file.
64180         * lib/uniconv/u32-strconv-from-enc.c: New file.
64181         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64182         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64183
64184         * modules/uniconv/u16-strconv-from-enc: New file.
64185         * lib/uniconv/u16-strconv-from-enc.c: New file.
64186         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64187         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64188
64189         * modules/uniconv/u8-strconv-from-enc: New file.
64190         * lib/uniconv/u8-strconv-from-enc.c: New file.
64191         * lib/uniconv/u-strconv-from-enc.h: New file.
64192         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64193         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64194
64195         * modules/uniconv/u32-conv-from-enc: New file.
64196         * lib/uniconv/u32-conv-from-enc.c: New file.
64197         * modules/uniconv/u32-conv-from-enc-tests: New file.
64198         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64199
64200         * modules/uniconv/u16-conv-from-enc: New file.
64201         * lib/uniconv/u16-conv-from-enc.c: New file.
64202         * lib/uniconv/u-conv-from-enc.h: New file.
64203         * modules/uniconv/u16-conv-from-enc-tests: New file.
64204         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64205
64206         * modules/uniconv/u8-conv-from-enc: New file.
64207         * lib/uniconv/u8-conv-from-enc.c: New file.
64208         * modules/uniconv/u8-conv-from-enc-tests: New file.
64209         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64210
64211         * modules/uniconv/base: New file.
64212         * lib/uniconv.h: New file.
64213
64214 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64215
64216         * doc/gnulib-tool.texi (Initial import): Update to match current
64217         behavior with strdup module.
64218         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64219         * lib/memmem.h: Remove; all uses removed.  This is now done
64220         by <string.h>.
64221         * lib/mempcpy.h: Likewise.
64222         * lib/memrchr.h: Likewise.
64223         * lib/stpcpy.h: Likewise.
64224         * lib/stpncpy.h: Likewise.
64225         * lib/strcase.h: Likewise.
64226         * lib/strchrnul.h: Likewise.
64227         * lib/strdup.h: Likewise.
64228         * lib/strndup.h: Likewise.
64229         * lib/strnlen.h: Likewise.
64230         * lib/strpbrk.h: Likewise.
64231         * lib/strsep.h: Likewise.
64232         * lib/strstr.h: Likewise.
64233         * lib/strtok_r.h: Likewise.
64234         * lib/string_.h: New file.
64235         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64236         Rely on <string.h> instead.
64237         * lib/canon-host.c: Likewise.
64238         * lib/chdir-long.c: Likewise.
64239         * lib/concatpath.c: Likewise.
64240         * lib/exclude.c: Likewise.
64241         * lib/fchdir.c: Likewise.
64242         * lib/getaddrinfo.c: Likewise.
64243         * lib/getcwd.c: Likewise.
64244         * lib/getsubopt.c: Likewise.
64245         * lib/glob.c: Likewise.
64246         * lib/hard-locale.c: Likewise.
64247         * lib/iconvme.c: Likewise.
64248         * lib/javacomp.c: Likewise.
64249         * lib/mempcpy.c: Likewise.
64250         * lib/memrchr.c: Likewise.
64251         * lib/regex_internal.h: Likewise.
64252         * lib/stpncpy.c: Likewise.
64253         * lib/strcasecmp.c: Likewise.
64254         * lib/strchrnul.c: Likewise.
64255         * lib/strdup.c: Likewise.
64256         * lib/striconv.c: Likewise.
64257         * lib/striconveh.c: Likewise.
64258         * lib/striconveha.c: Likewise.
64259         * lib/strncasecmp.c: Likewise.
64260         * lib/strndup.c: Likewise.
64261         * lib/strnlen.c: Likewise.
64262         * lib/strsep.c: Likewise.
64263         * lib/strstr.c: Likewise.
64264         * lib/strtok_r.c: Likewise.
64265         * lib/userspec.c: Likewise.
64266         * lib/w32spawn.h: Likewise.
64267         * lib/xstrndup.c: Likewise.
64268         * lib/mountlist.c (strstr): Remove decl.
64269         * m4/string_h.m4: New file.
64270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64271         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64272         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64273         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64274         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64275         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64276         Set REPLACE_STRCASECMP if necessary.
64277         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64279         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64280         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64281         HAVE_DECL_STRDUP if necessary.
64282         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64283         since gl_FUNC_STRNDUP does that now.
64284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64285         Check for decl here...
64286         (gl_PREREQ_STRNLEN): ... not here.
64287         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64288         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64289         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64290         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64291         necessary.
64292         * modules/string: New file.
64293         * modules/memmem (Files): Remove special-purpose include file.
64294         (Depends-on): Add string.
64295         (Include): Include <string.h>, not the removed file.
64296         * modules/mempcpy: Likewise.
64297         * modules/memrchr: Likewise.
64298         * modules/stpcpy: Likewise.
64299         * modules/stpncpy: Likewise.
64300         * modules/strcase: Likewise.
64301         * modules/strchrnul: Likewise.
64302         * modules/strdup: Likewise.
64303         * modules/strndup: Likewise.
64304         * modules/strnlen: Likewise.
64305         * modules/strpbrk: Likewise.
64306         * modules/strsep: Likewise.
64307         * modules/strstr: Likewise.
64308         * modules/strtok_r: Likewise.
64309         * tests/test-dirname.c: Don't include "strdup.h", since
64310         <string.h> now suffices.
64311         * tests/test-memmem.c: Don't include "memmem.h", since
64312         <string.h> now suffices.
64313
64314 2007-01-25  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64317         *resultp is 0.
64318
64319         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64320         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64321         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64322         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64323
64324         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64325         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64326         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64327         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64328         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64329         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64330
64331 2007-01-24  Bruno Haible  <bruno@clisp.org>
64332
64333         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64335         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64336         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64337         gl_FUNC_FTS_CORE.
64338         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64339         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64341         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64342         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64343         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64344         gl_FUNC_FCHOWNAT.
64345         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64346         gl_FUNC_STRFTIME.
64347         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64348         Reported by Ralf Wildenhues.
64349
64350 2007-01-24  Bruno Haible  <bruno@clisp.org>
64351
64352         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64353         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64354         gl_GETADDRINFO.
64355         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64356         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64357         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64358
64359 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64360
64361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64362         Don't use 'exit'; just return from 'main'.
64363         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64364
64365         * lib/fnmatch_.h: Readjust white space and comments to match
64366         glibc, to avoid spurious diffs.
64367
64368 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64371         2004-12-01 change by Jakub Jelinek, since this code won't compile
64372         if !LIBC.  Problem reported by Bob Proulx.
64373
64374 2007-01-23  Bruno Haible  <bruno@clisp.org>
64375
64376         * lib/striconveh.c: Include c-strcaseeq.h.
64377         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64378         * modules/striconveh (Depends-on): Add c-strcaseeq.
64379
64380 2007-01-23  Bruno Haible  <bruno@clisp.org>
64381
64382         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64383
64384         * modules/c-strcaseeq: New file.
64385         * lib/c-strcaseeq.h: New file.
64386
64387         * modules/streq: New file.
64388         * lib/streq.h: New file.
64389
64390 2007-01-23  Bruno Haible  <bruno@clisp.org>
64391
64392         * modules/striconveha-tests: New file.
64393         * tests/test-striconveha.c: New file.
64394
64395         * lib/striconveha.h: Include <stdbool.h>.
64396         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64397         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64398         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64399         (mem_iconveha): New function.
64400         (str_iconveha_notranslit): Renamed from str_iconveha.
64401         (str_iconveha): New function.
64402         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64403         c-strcase.
64404
64405 2007-01-23  Bruno Haible  <bruno@clisp.org>
64406
64407         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64408         encodings without forgiving before trying any encoding with handler.
64409         (str_iconveha): Try all encodings without forgiving before trying any
64410         encoding with handler.
64411
64412 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         Import the following changes from libc.
64415
64416         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64417
64418         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64419
64420         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64421
64422         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64423         normal_bracket label.
64424
64425         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64426
64427         [BZ #361]
64428         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64429         to normal_bracket after fetching the next character.
64430
64431 2007-01-22  Bruno Haible  <bruno@clisp.org>
64432
64433         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64434         argument.
64435         * lib/striconveh.c (iconv_carefully_1): New function.
64436         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64437         argument.
64438         (str_cd_iconveh): Update.
64439         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64440         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64441         * tests/test-striconveh.c (MAGIC): New macro.
64442         (new_offsets): New function.
64443         (main): Test call with and without offsets.
64444
64445 2007-01-22  Bruno Haible  <bruno@clisp.org>
64446
64447         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64448         * modules/sys_select (Makefile.am): Likewise.
64449         * modules/sys_socket (Makefile.am): Likewise.
64450         * modules/sys_time (Makefile.am): Likewise.
64451
64452 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * modules/gettimeofday (License): Change from GPL to LGPL, since
64455         gettimeofday is a library function.
64456
64457 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64458
64459         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64460
64461 2007-01-21  Bruno Haible  <bruno@clisp.org>
64462
64463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64464
64465 2007-01-21  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/striconveha: New file.
64468         * lib/striconveha.h: New file.
64469         * lib/striconveha.c: New file.
64470         * MODULES.html.sh (Internationalization functions): Add striconveha.
64471         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64472         string.
64473         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64474
64475 2007-01-21  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64478         * lib/striconveh.c (str_iconveh): Likewise.
64479
64480 2007-01-21  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/striconveh.h (mem_iconveh): New declaration.
64483         * lib/striconveh.c (mem_iconveh): New function.
64484         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64485
64486 2007-01-21  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64489
64490         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64491         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64492         original result buffer.
64493         (str_cd_iconveh): Update.
64494         * tests/test-striconveh.c (main): Update.
64495
64496         * lib/striconv.h (mem_cd_iconv): Change specification.
64497         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64498         result buffer.
64499         (str_cd_iconv): Update.
64500         * tests/test-striconv.c (main): Update.
64501
64502 2007-01-21  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64505
64506 2007-01-20  Jim Meyering  <jim@meyering.net>
64507
64508         * lib/userspec.c (parse_with_separator): If a user or group string
64509         starts with "+", skip the corresponding name-to-ID look-up, since
64510         such a look-up must fail: user and group names may not include "+".
64511
64512 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64513
64514         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64515         since we now assume the sys_time module.
64516         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64517         check for sys/time.h; no longer needed.
64518         * modules/poll (Depends-on): Depend on sys_time.
64519
64520 2007-01-18  Bruno Haible  <bruno@clisp.org>
64521
64522         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64524
64525         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64526         gettimeofday.
64527
64528         * tests/test-gettimeofday.c: Include <time.h>.
64529         (dummy): Remove variable.
64530
64531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64532         gl_HEADER_SYS_TIME_H.
64533         (gl_HEADER_SYS_TIME_H): New macro.
64534
64535         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64536         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64537         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64538         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64539         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64541         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64542         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64543         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64544         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64545         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64546
64547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64548         last change; it caused a compilation error when cross-compiling to
64549         Cygwin.
64550
64551 2007-01-18  Jim Meyering  <jim@meyering.net>
64552
64553         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64554         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64555         than the race-prone "test -d sys || mkdir sys".
64556         (configure.ac): Use AC_PROG_MKDIR_P.
64557         * modules/sys_select: Likewise.
64558         * modules/sys_socket: Likewise.
64559         * modules/sys_time: Likewise.
64560
64561 2007-01-18  Eric Blake  <ebb9@byu.net>
64562
64563         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64564         replace gettimeofday.
64565         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64566         name, to avoid infinite recursion.
64567
64568 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64571         module sys_time.
64572         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64573         assume timespec.h defines struct timeval.
64574         * lib/settime.c: Likewise.
64575         * lib/utimens.c: Likewise.
64576         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64577         since we now assume the gettimeofday module.
64578         * lib/tempname.c (__gen_tempname): Likewise.
64579         * lib/gettimeofday.h: Remove.
64580         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64581         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64582         Include <time.h>, for 'time()'.
64583         (localtime_buffer_addr): Also use this workaround if
64584         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64585         to simplify the uses.  All uses changed.
64586         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64587         that #undef is inside {}, and 'const' follows type name consistently.
64588         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64589         (gettimeofday): Do not use the maximum possible value for
64590         tv->tv_usec, since that might break usages other than ls.c.
64591         Instead, we'll leave ls.c alone.  This undoes today's patch
64592         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64593         we've never observed the problem but might as well keep the
64594         canary.
64595         * lib/nanosleep.c: Include timespec.h first, for interface check.
64596         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64597         now assume the sys_time module.
64598         * lib/tempname.c: Likewise.
64599         * lib/timespec.h: Likewise.
64600         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64601         needed.
64602         * lib/strftime.c: Likewise.
64603         * lib/timespec.h: Likewise.
64604         * lib/posixtm.c: Include posixtm.h first, for interface check.
64605         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64606         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64607         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64608         * lib/sys_time_.h: New file.
64609         * lib/timespec.h (struct timespec): Use long int, not long.
64610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64611         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64612         Remove obsolescent call to AC_HEADER_TIME.
64613         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64615         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64616         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64617         Likewise.
64618         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64619         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64621         into the sys_time module.  Check for gettimeofday just once.
64622         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64623         for gettimeofday signature to just check the signature.  Merely
64624         compile it, since linking doesn't test signature.  Improve test for
64625         whether gettimeofday.o is actually needed.
64626         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64627         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64628         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64629         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64630         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64631         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64632         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64633         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64634         than worrying about sys/time.h.
64635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64636         Don't bother worrying about TIME_WITH_SYS_TIME.
64637         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64638         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64639         * m4/sys_time_h.m4: New file.
64640         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64641         Don't include sys/time.h.  Return from main rather than exiting.
64642         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64643         all uses changed.
64644         * modules/gethrxtime (Depends-on): Add sys_time.
64645         * modules/gettime (Depends-on): Likewise.
64646         * modules/gettimeofday (Depends-on): Likewise.
64647         * modules/nanosleep (Depends-on): Likewise.
64648         * modules/settime (Depends-on): Likewise.
64649         * modules/tempname (Depends-on): Likewise.
64650         * modules/utimens (Depends-on): Likewise.
64651         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64652         (Include): Change back to <sys/time.h>.
64653         (Maintainer): Add self.
64654         * modules/sys_time: New file.
64655         * modules/tempname (Depends-on): Add gettimeofday.
64656         * tests/test-gettimeofday.c: Include <sys/time.h>
64657         rather than gettimeofday.h.
64658
64659 2007-01-17  Bruno Haible  <bruno@clisp.org>
64660
64661         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64662         the license default to GPL.
64663         (func_create_testdir): Don't complain if a module is LGPL and its
64664         tests module depends on GPLed modules.
64665
64666 2007-01-17  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/gettimeofday.c (gettimeofday): Add code for the case
64669         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64670         maximum possible value for tv->tv_usec, rather than the minimum one.
64671
64672 2005-10-08  Martin Lambers  <marlam@marlam.de>
64673 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64674 2007-01-16  Bruno Haible  <bruno@clisp.org>
64675
64676         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64677         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64678         gl_FUNC_GETTIMEOFDAY.
64679         (Include): Add gettimeofday.h.
64680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64681         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64682         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64683         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64684         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64685         * lib/gettimeofday.h: New file.
64686         * lib/gettimeofday.c: Include <sys/timeb.h>.
64687         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64688         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64689         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64690         fall back on time().
64691
64692         * tests/test-gettimeofday.c: New file.
64693         * modules/gettimeofday-tests: New file.
64694
64695 2007-01-16  Eric Blake  <ebb9@byu.net>
64696
64697         * modules/fnmatch (Depends-on): Depend on wchar.
64698         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64699         * m4/fnmatch.m4: Likewise.
64700         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64701         * m4/mbchar.m4: Likewise.
64702         * modules/mbswidth (Depends-on): Depend on wchar.
64703         * lib/mbswidth.c: Assume <wchar.h>.
64704         * m4/mbswidth.m4: Likewise.
64705         * modules/quotearg (Depends-on): Depend on wchar.
64706         * lib/quotearg.c: Assume <wchar.h>.
64707         * m4/quotearg.m4: Likewise.
64708         * modules/regex (Depends-on): Depend on wchar.
64709         * lib/regex_internal.h: Assume <wchar.h>.
64710         * m4/regex.m4: Likewise.
64711         * modules/stdint (Depends-on): Depend on wchar.
64712         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64713         * m4/stdint.m4: Likewise.
64714         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64715         * modules/strftime (Depends-on): Depend on wchar.
64716         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64717         * modules/strtol (Depends-on): Depend on wchar.
64718         * lib/strtol.c: Assume <wchar.h>.
64719         * modules/wcwidth (Depends-on): Depend on wchar.
64720         * lib/wcwidth.h: Assume <wchar.h>.
64721         * m4/wcwidth.m4: Likewise.
64722
64723 2007-01-16  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/csharpexec-script: New, created from...
64726         * modules/csharpexec: ... this.
64727
64728 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64729
64730         * modules/javaexec-script: New, created from...
64731         * modules/javaexec: ... this.
64732
64733 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64734
64735         * modules/poll (Dependencies): Add sys_select.
64736
64737 2007-01-15  Jim Meyering  <jim@meyering.net>
64738
64739         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64740         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64741         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64742         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64743
64744 2007-01-15  Bruno Haible  <bruno@clisp.org>
64745
64746         * modules/striconveh: New file.
64747         * lib/striconveh.h: New file.
64748         * lib/striconveh.c: New file.
64749         * MODULES.html.sh (Internationalization functions): Add striconveh.
64750
64751         * modules/striconveh-tests: New file.
64752         * tests/test-striconveh.c: New file.
64753
64754 2007-01-15  Bruno Haible  <bruno@clisp.org>
64755
64756         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64757         not from GNU libiconv or GNU libc.
64758
64759 2007-01-15  Bruno Haible  <bruno@clisp.org>
64760
64761         * doc/gnulib-intro.texi (Copyright): Explain the different license
64762         terms for module descriptions, autoconf macros, tests, documentation.
64763
64764 2007-01-14  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/striconv-tests: New file.
64767         * tests/test-striconv.c: New file.
64768
64769 2007-01-14  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/iconv-tests: New file.
64772         * tests/test-iconv.c: New file.
64773
64774 2007-01-14  Bruno Haible  <bruno@clisp.org>
64775
64776         * gnulib-tool (func_get_license): For test modules, use the license of
64777         the main module.
64778
64779 2007-01-14  Bruno Haible  <bruno@clisp.org>
64780
64781         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64782         if iconv is found to exist.
64783
64784 2007-01-14  Bruno Haible  <bruno@clisp.org>
64785
64786         * modules/c-ctype-tests: New file.
64787         * tests/test-c-ctype.c: New file.
64788
64789 2007-01-14  Bruno Haible  <bruno@clisp.org>
64790
64791         * modules/binary-io-tests: New file.
64792         * tests/test-binary-io.sh: New file.
64793         * tests/test-binary-io.c: New file.
64794
64795 2007-01-14  Bruno Haible  <bruno@clisp.org>
64796
64797         * modules/array-oset-tests: New file.
64798         * tests/test-array_oset.c: New file.
64799
64800 2007-01-14  Bruno Haible  <bruno@clisp.org>
64801
64802         * modules/array-list-tests: New file.
64803         * tests/test-array_list.c: New file.
64804
64805 2007-01-14  Bruno Haible  <bruno@clisp.org>
64806
64807         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64808         and make.
64809         Reported by Simon Josefsson in
64810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64811
64812 2007-01-14  Bruno Haible  <bruno@clisp.org>
64813
64814         * modules/allocsa-tests: New file.
64815         * tests/test-allocsa.c: New file.
64816
64817 2007-01-14  Bruno Haible  <bruno@clisp.org>
64818
64819         * modules/fchdir (Depends-on): Add absolute-header.
64820         * modules/unistd (Depends-on): Likewise.
64821
64822 2006-12-30  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/fchdir: New file.
64825         * modules/unistd (Files): Add lib/unistd_.h.
64826         (Makefile.am): Generate unistd.h from unistd_.h.
64827         * lib/fchdir.c: New file.
64828         * lib/dirent_.h: New file.
64829         * lib/unistd_.h: New file.
64830         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64831         * m4/fchdir.m4: New file.
64832         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64833         (gl_HEADER_UNISTD): Invoke it.
64834         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64835         function.
64836         * lib/backupfile.c (opendir, closedir): Undefine.
64837         * lib/chown.c (open, close): Undefine.
64838         * lib/clean-temp.c (open, close): Undefine.
64839         * lib/copy-file.c (open, close): Undefine.
64840         * lib/execute.c (open, close): Undefine.
64841         * lib/fsusage.c (open, close): Undefine.
64842         * lib/gc-gnulib.c (open, close): Undefine.
64843         * lib/getcwd.c (opendir, closedir): Undefine.
64844         * lib/glob.c (opendir, closedir): Undefine.
64845         * lib/javacomp.c (open, close): Undefine.
64846         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64847         * lib/openat-proc.c (open, close): Undefine.
64848         * lib/pagealign_alloc.c (open, close): Undefine.
64849         * lib/pipe.c (open, close): Undefine.
64850         * lib/progreloc.c (open, close): Undefine.
64851         * lib/savedir.c (opendir, closedir): Undefine.
64852         * lib/utime.c (open, close): Undefine.
64853         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64854
64855 2007-01-10  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64858
64859 2007-01-12  Eric Blake  <ebb9@byu.net>
64860
64861         Provide a robust <wchar.h>.  Further simplifications are now
64862         possible in other modules, but not included here.
64863         * modules/wchar: New module.
64864         * m4/wchar.m4: New file.
64865         * lib/wchar_.h: Likewise.
64866         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64867         of the new module.
64868         * MODULES.html.sh (Extended multibyte and wide character utilities):
64869         New section.
64870
64871 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64874         to a reasonable default for memory allocation.
64875         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64876         file system that reports garbage st_size values for symlinks.
64877         Problem reported by Liyang Hu.
64878
64879 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64880
64881         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64882         Emacs .#* auto-save files).
64883
64884 2007-01-11  Bruno Haible  <bruno@clisp.org>
64885
64886         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64887         directory.
64888
64889 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         Use @...@ consistently in lib/wctype_.h.
64892         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64893         on it being set to 1 or 0.
64894         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64895         go back to AC_SUBSTing it.
64896         * modules/wctype (Makefile.am): Undo previous change.
64897
64898 2007-01-10  Eric Blake  <ebb9@byu.net>
64899
64900         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64901         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64902         * modules/wctype (Makefile.am): Likewise.
64903         Reported by Chris McGuire.
64904
64905 2007-01-10  Jim Meyering  <jim@meyering.net>
64906
64907         fts.c: a small readability/maintainability improvement
64908         * lib/fts.c (fts_read): Make this code slightly more readable and
64909         maintainable by hoisting the "sp->fts_cur = p" assignments to
64910         immediately follow the statements that set P.  Derived from
64911         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64912
64913 2007-01-10  Eric Blake  <ebb9@byu.net>
64914
64915         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64916         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64918         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64919         Reported by Chris McGuire.
64920
64921 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64922
64923         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64924         in sed script.
64925
64926 2007-01-09  Bruno Haible  <bruno@clisp.org>
64927
64928         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64929         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64930         variables.
64931         (func_module): Use them.
64932
64933 2007-01-09  Bruno Haible  <bruno@clisp.org>
64934
64935         * modules/unistr/base: New file.
64936         * lib/unistr.h: New file.
64937
64938         * modules/unistr/u8-to-u16: New file.
64939         * lib/unistr/u8-to-u16.c: New file.
64940
64941         * modules/unistr/u8-to-u32: New file.
64942         * lib/unistr/u8-to-u32.c: New file.
64943
64944         * modules/unistr/u16-to-u8: New file.
64945         * lib/unistr/u16-to-u8.c: New file.
64946
64947         * modules/unistr/u16-to-u32: New file.
64948         * lib/unistr/u16-to-u32.c: New file.
64949
64950         * modules/unistr/u32-to-u8: New file.
64951         * lib/unistr/u32-to-u8.c: New file.
64952
64953         * modules/unistr/u32-to-u16: New file.
64954         * lib/unistr/u32-to-u16.c: New file.
64955
64956         * modules/unistr/u8-check: New file.
64957         * modules/unistr/u16-check: New file.
64958         * modules/unistr/u32-check: New file.
64959         * lib/unistr/u8-check.c: New file.
64960         * lib/unistr/u16-check.c: New file.
64961         * lib/unistr/u32-check.c: New file.
64962
64963         * modules/unistr/u8-chr: New file.
64964         * modules/unistr/u16-chr: New file.
64965         * modules/unistr/u32-chr: New file.
64966         * lib/unistr/u8-chr.c: New file.
64967         * lib/unistr/u16-chr.c: New file.
64968         * lib/unistr/u32-chr.c: New file.
64969
64970         * modules/unistr/u8-cmp: New file.
64971         * modules/unistr/u16-cmp: New file.
64972         * modules/unistr/u32-cmp: New file.
64973         * lib/unistr/u8-cmp.c: New file.
64974         * lib/unistr/u16-cmp.c: New file.
64975         * lib/unistr/u32-cmp.c: New file.
64976
64977         * modules/unistr/u8-cpy: New file.
64978         * modules/unistr/u16-cpy: New file.
64979         * modules/unistr/u32-cpy: New file.
64980         * lib/unistr/u8-cpy.c: New file.
64981         * lib/unistr/u16-cpy.c: New file.
64982         * lib/unistr/u32-cpy.c: New file.
64983         * lib/unistr/u-cpy.h: New file.
64984
64985         * modules/unistr/u8-cpy-alloc: New file.
64986         * modules/unistr/u16-cpy-alloc: New file.
64987         * modules/unistr/u32-cpy-alloc: New file.
64988         * lib/unistr/u8-cpy-alloc.c: New file.
64989         * lib/unistr/u16-cpy-alloc.c: New file.
64990         * lib/unistr/u32-cpy-alloc.c: New file.
64991         * lib/unistr/u-cpy-alloc.h: New file.
64992
64993         * modules/unistr/u8-endswith: New file.
64994         * modules/unistr/u16-endswith: New file.
64995         * modules/unistr/u32-endswith: New file.
64996         * lib/unistr/u8-endswith.c: New file.
64997         * lib/unistr/u16-endswith.c: New file.
64998         * lib/unistr/u32-endswith.c: New file.
64999         * lib/unistr/u-endswith.h: New file.
65000
65001         * modules/unistr/u8-mblen: New file.
65002         * modules/unistr/u16-mblen: New file.
65003         * modules/unistr/u32-mblen: New file.
65004         * lib/unistr/u8-mblen.c: New file.
65005         * lib/unistr/u16-mblen.c: New file.
65006         * lib/unistr/u32-mblen.c: New file.
65007
65008         * modules/unistr/u8-mbtouc: New file.
65009         * modules/unistr/u16-mbtouc: New file.
65010         * modules/unistr/u32-mbtouc: New file.
65011         * lib/unistr/u8-mbtouc.c: New file.
65012         * lib/unistr/u16-mbtouc.c: New file.
65013         * lib/unistr/u32-mbtouc.c: New file.
65014
65015         * modules/unistr/u8-mbtouc-safe: New file.
65016         * modules/unistr/u16-mbtouc-safe: New file.
65017         * modules/unistr/u32-mbtouc-safe: New file.
65018         * lib/unistr/u8-mbtouc-safe.c: New file.
65019         * lib/unistr/u16-mbtouc-safe.c: New file.
65020         * lib/unistr/u32-mbtouc-safe.c: New file.
65021
65022         * modules/unistr/u8-move: New file.
65023         * modules/unistr/u16-move: New file.
65024         * modules/unistr/u32-move: New file.
65025         * lib/unistr/u8-move.c: New file.
65026         * lib/unistr/u16-move.c: New file.
65027         * lib/unistr/u32-move.c: New file.
65028         * lib/unistr/u-move.h: New file.
65029
65030         * modules/unistr/u8-next: New file.
65031         * modules/unistr/u16-next: New file.
65032         * modules/unistr/u32-next: New file.
65033         * lib/unistr/u8-next.c: New file.
65034         * lib/unistr/u16-next.c: New file.
65035         * lib/unistr/u32-next.c: New file.
65036
65037         * modules/unistr/u8-prev: New file.
65038         * modules/unistr/u16-prev: New file.
65039         * modules/unistr/u32-prev: New file.
65040         * lib/unistr/u8-prev.c: New file.
65041         * lib/unistr/u16-prev.c: New file.
65042         * lib/unistr/u32-prev.c: New file.
65043
65044         * modules/unistr/u8-set: New file.
65045         * modules/unistr/u16-set: New file.
65046         * modules/unistr/u32-set: New file.
65047         * lib/unistr/u8-set.c: New file.
65048         * lib/unistr/u16-set.c: New file.
65049         * lib/unistr/u32-set.c: New file.
65050         * lib/unistr/u-set.h: New file.
65051
65052         * modules/unistr/u8-startswith: New file.
65053         * modules/unistr/u16-startswith: New file.
65054         * modules/unistr/u32-startswith: New file.
65055         * lib/unistr/u8-startswith.c: New file.
65056         * lib/unistr/u16-startswith.c: New file.
65057         * lib/unistr/u32-startswith.c: New file.
65058         * lib/unistr/u-startswith.h: New file.
65059
65060         * modules/unistr/u8-stpcpy: New file.
65061         * modules/unistr/u16-stpcpy: New file.
65062         * modules/unistr/u32-stpcpy: New file.
65063         * lib/unistr/u8-stpcpy.c: New file.
65064         * lib/unistr/u16-stpcpy.c: New file.
65065         * lib/unistr/u32-stpcpy.c: New file.
65066         * lib/unistr/u-stpcpy.h: New file.
65067
65068         * modules/unistr/u8-stpncpy: New file.
65069         * modules/unistr/u16-stpncpy: New file.
65070         * modules/unistr/u32-stpncpy: New file.
65071         * lib/unistr/u8-stpncpy.c: New file.
65072         * lib/unistr/u16-stpncpy.c: New file.
65073         * lib/unistr/u32-stpncpy.c: New file.
65074         * lib/unistr/u-stpncpy.h: New file.
65075
65076         * modules/unistr/u8-strcat: New file.
65077         * modules/unistr/u16-strcat: New file.
65078         * modules/unistr/u32-strcat: New file.
65079         * lib/unistr/u8-strcat.c: New file.
65080         * lib/unistr/u16-strcat.c: New file.
65081         * lib/unistr/u32-strcat.c: New file.
65082         * lib/unistr/u-strcat.h: New file.
65083
65084         * modules/unistr/u8-strchr: New file.
65085         * modules/unistr/u16-strchr: New file.
65086         * modules/unistr/u32-strchr: New file.
65087         * lib/unistr/u8-strchr.c: New file.
65088         * lib/unistr/u16-strchr.c: New file.
65089         * lib/unistr/u32-strchr.c: New file.
65090
65091         * modules/unistr/u8-strcmp: New file.
65092         * modules/unistr/u16-strcmp: New file.
65093         * modules/unistr/u32-strcmp: New file.
65094         * lib/unistr/u8-strcmp.c: New file.
65095         * lib/unistr/u16-strcmp.c: New file.
65096         * lib/unistr/u32-strcmp.c: New file.
65097
65098         * modules/unistr/u8-strcpy: New file.
65099         * modules/unistr/u16-strcpy: New file.
65100         * modules/unistr/u32-strcpy: New file.
65101         * lib/unistr/u8-strcpy.c: New file.
65102         * lib/unistr/u16-strcpy.c: New file.
65103         * lib/unistr/u32-strcpy.c: New file.
65104         * lib/unistr/u-strcpy.h: New file.
65105
65106         * modules/unistr/u8-strcspn: New file.
65107         * modules/unistr/u16-strcspn: New file.
65108         * modules/unistr/u32-strcspn: New file.
65109         * lib/unistr/u8-strcspn.c: New file.
65110         * lib/unistr/u16-strcspn.c: New file.
65111         * lib/unistr/u32-strcspn.c: New file.
65112         * lib/unistr/u-strcspn.h: New file.
65113
65114         * modules/unistr/u8-strdup: New file.
65115         * modules/unistr/u16-strdup: New file.
65116         * modules/unistr/u32-strdup: New file.
65117         * lib/unistr/u8-strdup.c: New file.
65118         * lib/unistr/u16-strdup.c: New file.
65119         * lib/unistr/u32-strdup.c: New file.
65120         * lib/unistr/u-strdup.h: New file.
65121
65122         * modules/unistr/u8-strlen: New file.
65123         * modules/unistr/u16-strlen: New file.
65124         * modules/unistr/u32-strlen: New file.
65125         * lib/unistr/u8-strlen.c: New file.
65126         * lib/unistr/u16-strlen.c: New file.
65127         * lib/unistr/u32-strlen.c: New file.
65128         * lib/unistr/u-strlen.h: New file.
65129
65130         * modules/unistr/u8-strmblen: New file.
65131         * modules/unistr/u16-strmblen: New file.
65132         * modules/unistr/u32-strmblen: New file.
65133         * lib/unistr/u8-strmblen.c: New file.
65134         * lib/unistr/u16-strmblen.c: New file.
65135         * lib/unistr/u32-strmblen.c: New file.
65136
65137         * modules/unistr/u8-strmbtouc: New file.
65138         * modules/unistr/u16-strmbtouc: New file.
65139         * modules/unistr/u32-strmbtouc: New file.
65140         * lib/unistr/u8-strmbtouc.c: New file.
65141         * lib/unistr/u16-strmbtouc.c: New file.
65142         * lib/unistr/u32-strmbtouc.c: New file.
65143
65144         * modules/unistr/u8-strncat: New file.
65145         * modules/unistr/u16-strncat: New file.
65146         * modules/unistr/u32-strncat: New file.
65147         * lib/unistr/u8-strncat.c: New file.
65148         * lib/unistr/u16-strncat.c: New file.
65149         * lib/unistr/u32-strncat.c: New file.
65150         * lib/unistr/u-strncat.h: New file.
65151
65152         * modules/unistr/u8-strncmp: New file.
65153         * modules/unistr/u16-strncmp: New file.
65154         * modules/unistr/u32-strncmp: New file.
65155         * lib/unistr/u8-strncmp.c: New file.
65156         * lib/unistr/u16-strncmp.c: New file.
65157         * lib/unistr/u32-strncmp.c: New file.
65158
65159         * modules/unistr/u8-strncpy: New file.
65160         * modules/unistr/u16-strncpy: New file.
65161         * modules/unistr/u32-strncpy: New file.
65162         * lib/unistr/u8-strncpy.c: New file.
65163         * lib/unistr/u16-strncpy.c: New file.
65164         * lib/unistr/u32-strncpy.c: New file.
65165         * lib/unistr/u-strncpy.h: New file.
65166
65167         * modules/unistr/u8-strnlen: New file.
65168         * modules/unistr/u16-strnlen: New file.
65169         * modules/unistr/u32-strnlen: New file.
65170         * lib/unistr/u8-strnlen.c: New file.
65171         * lib/unistr/u16-strnlen.c: New file.
65172         * lib/unistr/u32-strnlen.c: New file.
65173         * lib/unistr/u-strnlen.h: New file.
65174
65175         * modules/unistr/u8-strpbrk: New file.
65176         * modules/unistr/u16-strpbrk: New file.
65177         * modules/unistr/u32-strpbrk: New file.
65178         * lib/unistr/u8-strpbrk.c: New file.
65179         * lib/unistr/u16-strpbrk.c: New file.
65180         * lib/unistr/u32-strpbrk.c: New file.
65181         * lib/unistr/u-strpbrk.h: New file.
65182
65183         * modules/unistr/u8-strrchr: New file.
65184         * modules/unistr/u16-strrchr: New file.
65185         * modules/unistr/u32-strrchr: New file.
65186         * lib/unistr/u8-strrchr.c: New file.
65187         * lib/unistr/u16-strrchr.c: New file.
65188         * lib/unistr/u32-strrchr.c: New file.
65189
65190         * modules/unistr/u8-strspn: New file.
65191         * modules/unistr/u16-strspn: New file.
65192         * modules/unistr/u32-strspn: New file.
65193         * lib/unistr/u8-strspn.c: New file.
65194         * lib/unistr/u16-strspn.c: New file.
65195         * lib/unistr/u32-strspn.c: New file.
65196         * lib/unistr/u-strspn.h: New file.
65197
65198         * modules/unistr/u8-strstr: New file.
65199         * modules/unistr/u16-strstr: New file.
65200         * modules/unistr/u32-strstr: New file.
65201         * lib/unistr/u8-strstr.c: New file.
65202         * lib/unistr/u16-strstr.c: New file.
65203         * lib/unistr/u32-strstr.c: New file.
65204         * lib/unistr/u-strstr.h: New file.
65205
65206         * modules/unistr/u8-strtok: New file.
65207         * modules/unistr/u16-strtok: New file.
65208         * modules/unistr/u32-strtok: New file.
65209         * lib/unistr/u8-strtok.c: New file.
65210         * lib/unistr/u16-strtok.c: New file.
65211         * lib/unistr/u32-strtok.c: New file.
65212         * lib/unistr/u-strtok.h: New file.
65213
65214         * modules/unistr/u8-uctomb: New file.
65215         * modules/unistr/u16-uctomb: New file.
65216         * modules/unistr/u32-uctomb: New file.
65217         * lib/unistr/u8-uctomb.c: New file.
65218         * lib/unistr/u16-uctomb.c: New file.
65219         * lib/unistr/u32-uctomb.c: New file.
65220
65221         * MODULES.html.sh (Unicode string functions): Add the new modules.
65222
65223 2007-01-08  Bruno Haible  <bruno@clisp.org>
65224
65225         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65226         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65227         subdirectories.
65228
65229 2007-01-08  Karl Berry  <karl@gnu.org>
65230
65231         * doc/error.texi: mention that main() fns must set program_name
65232         when progname is used.
65233
65234 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65235
65236         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65237         WCTYPE_H is empty, for the benefit of builds from non-distclean
65238         directories.  Problem reported by Eric Blake in
65239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65240
65241 2007-01-08  Bruno Haible  <bruno@clisp.org>
65242
65243         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65244         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65245         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65246         PROVIDE_CANONICALIZE_FILENAME_MODE.
65247         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65248
65249 2007-01-08  Bruno Haible  <bruno@clisp.org>
65250
65251         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65252         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65253         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65254         * lib/fts.c: Likewise.
65255         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65256
65257 2006-12-25  Bruno Haible  <bruno@clisp.org>
65258
65259         * modules/utf8-ucs4-safe: New file.
65260         * lib/utf8-ucs4-safe.h: New file.
65261         * lib/unistr/utf8-ucs4-safe.c: New file.
65262
65263         * modules/utf16-ucs4-safe: New file.
65264         * lib/utf16-ucs4-safe.h: New file.
65265         * lib/unistr/utf16-ucs4-safe.c: New file.
65266
65267         * MODULES.html.sh (Unicode string functions): Add the new modules.
65268
65269 2007-01-08  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65272         (Depends-on): Add unitypes.
65273         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65274         (u8_mbtouc_aux): Move out to separate file.
65275         (u8_mbtouc): Use ucs4_t, uint8_t types.
65276         * lib/unistr/utf8-ucs4.c: New file.
65277
65278         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65279         (Depends-on): Add unitypes.
65280         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65281         (u16_mbtouc_aux): Move out to separate file.
65282         (u16_mbtouc): Use ucs4_t, uint16_t types.
65283         * lib/unistr/utf16-ucs4.c: New file.
65284
65285         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65286         (Depends-on): Add unitypes.
65287         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65288         (u8_uctomb_aux): Move out to separate file.
65289         (u8_uctomb): Use ucs4_t, uint8_t types.
65290         * lib/unistr/ucs4-utf8.c: New file.
65291
65292         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65293         (Depends-on): Add unitypes.
65294         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65295         (u16_uctomb_aux): Move out to separate file.
65296         (u16_uctomb): Use ucs4_t, uint16_t types.
65297         * lib/unistr/ucs4-utf16.c: New file.
65298
65299 2006-12-25  Bruno Haible  <bruno@clisp.org>
65300
65301         * modules/unitypes: New file.
65302         * lib/unitypes.h: New file.
65303         * MODULES.html.sh (func_all_modules): New section "Unicode string
65304         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65305         this section. Add unitypes.
65306
65307 2007-01-08  Bruno Haible  <bruno@clisp.org>
65308
65309         Avoid variable names that conflict with those from libtool.
65310         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65311         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65312         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65313         library_names_spec to acl_library_names_spec, hardcode_* to
65314         acl_hardcode_*.
65315         Reported by Ralf Wildenhues.
65316
65317 2007-01-08  Bruno Haible  <bruno@clisp.org>
65318
65319         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65320         definition.
65321         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65322         definition.
65323         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65324         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65325         definition.
65326         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65327         definition.
65328         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65329         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65330         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65331         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65332         definition.
65333         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65334         definition.
65335         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65336         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65337         GC_USE_<algorithm>.
65338         * lib/gc-libgcrypt.c: Likewise.
65339         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65340         * modules/gc-arctwo (configure.ac): Likewise.
65341         * modules/gc-des (configure.ac): Likewise.
65342         * modules/gc-hmac-md5 (configure.ac): Likewise.
65343         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65344         * modules/gc-md2 (configure.ac): Likewise.
65345         * modules/gc-md4 (configure.ac): Likewise.
65346         * modules/gc-md5 (configure.ac): Likewise.
65347         * modules/gc-random (configure.ac): Likewise.
65348         * modules/gc-rijndael (configure.ac): Likewise.
65349         * modules/gc-sha1 (configure.ac): Likewise.
65350
65351 2007-01-08  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65354         macro definition.
65355         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65356         definition.
65357         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65358         definition.
65359         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65360         * modules/fcntl-safer (configure.ac): Likewise.
65361         * modules/fopen-safer (configure.ac): Likewise.
65362         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65363         GNULIB_FWRITEERROR macro definition.
65364
65365 2007-01-08  Bruno Haible  <bruno@clisp.org>
65366
65367         * m4/gnulib-common.m4: New file.
65368         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65369         (func_get_filelist): Add m4/gnulib-common.m4.
65370
65371 2007-01-08  Bruno Haible  <bruno@clisp.org>
65372
65373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65374         command.
65375
65376 2007-01-08  Jim Meyering  <jim@meyering.net>
65377
65378         Use a more robust test for a "can't happen" condition.
65379         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65380         narrowed the st_size value.  Presuming the "can't happen" condition
65381         is true, that narrowing could conceivably convert an invalid st_size
65382         value into a valid one.  Instead, use a change based on Matthew
65383         Woehlke's original patch.
65384
65385         Slight readability improvement: use an assert-like macro
65386         in place of literal "abort ()" uses.
65387         * lib/fts.c (fts_assert): Define.
65388         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65389         Use this macro instead of a bare 'abort'.
65390
65391 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65394         simply work around them.
65395         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65396         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65397         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65398         declaring.
65399         Don't bother to define as macros, since the standard doesn't require it.
65400         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65401         longer worry about IRIX 5.3.
65402         (HAVE_WCTYPE_CTMP_BUG): Remove.
65403
65404 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65407         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65408         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65409         Problems reported by Georg Schwarz for IRIX 5.3.
65410
65411         * gnulib-tool (autoconf_minversion): Take the maximum version number
65412         found, not the minimum.  Problem reported by James Youngman.
65413
65414 2007-01-03  Karl Berry  <karl@gnu.org>
65415
65416         * doc/error.texi: new file, explaining interaction with progname.
65417         * doc/gnulib.texi: include it.  Update copyright.
65418
65419 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65420
65421         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65422         AC_CANONICAL_HOST, to improve autobuild outputs.
65423
65424 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65425             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65426
65427         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65428         sockets, server sockets, and other file descriptors.  Count errors
65429         to compute the return value.  Reorder the code a bit to be easier
65430         to follow.  Don't set event bits that were not requested (except
65431         POLLERR and POLLHUP).
65432
65433 2007-01-01  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65436
65437 2007-01-03  Jim Meyering  <jim@meyering.net>
65438
65439         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65440
65441 2007-01-02  Bruno Haible  <bruno@clisp.org>
65442
65443         * modules/settime (Include): Require timespec.h.
65444         * modules/nanosleep (Include): Likewise.
65445
65446 2007-01-01  Bruno Haible  <bruno@clisp.org>
65447
65448         * gnulib-tool (func_emit_copyright_notice): Bump year.
65449         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65450
65451 2007-01-01  Bruno Haible  <bruno@clisp.org>
65452
65453         Improve support for OpenBSD.
65454         * build-aux/config.rpath (libname_spec): Export.
65455         (library_names_spec): New variable. Export.
65456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65457         library_names_spec from the config.rpath output. Locate shared library
65458         through the name pattern in library_names_spec.
65459
65460 2007-01-01  Eric Blake  <ebb9@byu.net>
65461
65462         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65463
65464 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65467         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65468         assume the C locale, and avoid an "eval" that could cause trouble.
65469         Problem with SORT reported by Bob Proulx.
65470
65471         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65472         Define.  Trivial patch from Henning Nielsen Lund, originally
65473         sent to bug-grep@gnu.org today.
65474
65475 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65478         struct stat.  Problem reported by Henning Nielsen Lund.
65479         * lib/acl.c: Include acl.h first, to check interface.  Don't
65480         bother to include sys/types.h and sys/stat.h again.
65481
65482 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         Import the following change from libc; problem reported by
65485         Sven Verdoolaege.
65486
65487         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65488
65489         [BZ #1373]
65490         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65491
65492 2006-12-28  Jim Meyering  <jim@meyering.net>
65493
65494         * build-aux/announce-gen: Do not assume that the package
65495         builds any of tar.gz, tar.bz2, and .xdelta files.
65496         Suggestion from Simon Josefsson.
65497
65498 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65499
65500         * modules/announce-gen: New file.
65501
65502 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65505         handles its gotchas now.
65506         * lib/mbswidth.c: Likewise.
65507         * lib/wcwidth.h: Likewise.
65508         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65509         and iswcntrl; the wctype module does this stuff now.
65510         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65512         * modules/mbchar (Depends-on): Add wctype.
65513         * modules/mbswidth (Depends-on): Likewise.
65514         * modules/wcwidth (Depends-on): Likewise.
65515
65516 2006-12-27  Eric Blake  <ebb9@byu.net>
65517
65518         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65519         module uses more than what <wctype.h> is required to provide.
65520
65521 2006-12-26  Eric Blake  <ebb9@byu.net>
65522
65523         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65524
65525 2006-12-26  Eric Blake  <ebb9@byu.net>
65526
65527         * modules/absolute-header: New module.
65528         * modules/fcntl (Depends-on): Depend on it.
65529         * modules/inttypes (Depends-on): Likewise.
65530         * modules/stdint (Depends-on): Likewise.
65531         * modules/sys_stat (Depends-on): Likewise.
65532         * modules/wctype (Depends-on): Likewise.
65533         * MODULES.html.sh (Support for building libraries and
65534         executables): Document it.
65535
65536 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65537
65538         * gnulib-tool (SED): Remove, undoing previous change.
65539         The problem was that it broke coreutils on Solaris, because
65540         "sed --posix" leaked into a makefile.
65541         (sed): New alias, if 'alias' and GNU sed.
65542
65543 2006-12-24  Jim Meyering  <jim@meyering.net>
65544
65545         Work around an fchownat bug in glibc-2.4:
65546         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65547         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65548         in spite of the -P option.
65549         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65550         New macros.
65551         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65552         * modules/openat (Files): Add lib/fchownat.c.
65553         * lib/openat.c (fchownat): Don't define here.  Move to...
65554         * lib/fchownat.c: ...this new file.
65555
65556 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         Fix bug reported by Bruno Haible in
65559         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65560         where quotearg.c didn't compile on Mac OS X 10.2 because it
65561         lacks <wchar.h> and wint_t.
65562         * lib/wctype_.h (__wctype_wint_t): New type.
65563         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65564         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65565         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65566         Arg is now of type __wctype_wint_t, not wint_t.
65567         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65568         substitute HAVE_WINT_T.
65569         * modules/wctype (Files): Add m4/wint_t.m4.
65570         (wctype.h): Substitute HAVE_WINT_T.
65571
65572 2006-12-23  Bruno Haible  <bruno@clisp.org>
65573
65574         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65575
65576 2006-12-23  Bruno Haible  <bruno@clisp.org>
65577
65578         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65579         S_ISLNK.
65580         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65581         mingw.
65582
65583 2006-12-22  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/copy-file.c: Include acl.h.
65586         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65587         Close the file descriptors only after being done with copy_acl.
65588         * modules/copy-file (Depends-on): Add acl.
65589
65590 2006-12-22  Bruno Haible  <bruno@clisp.org>
65591
65592         * gnulib-tool (SED): New variable.
65593         Use $SED instead of sed everywhere.
65594
65595 2006-12-22  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/no-c++: New file.
65598         * m4/no-c++.m4: New file.
65599         * MODULES.html.sh (Support for building libraries and executables):
65600         Add no-c++.
65601
65602 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65603
65604         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65605         Include <limits.h>, and use its INT_MAX to rewrite the
65606         j loop so that it does not overflow 'int'.  Problem reported by
65607         Ralf Wildenhues in
65608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65609         Play it safe by shifting left by 1 rather than multiplying by 2,
65610         as GCC is less likely to optimize this away when the value
65611         is signed (when it assumes overflow leads to undefined behavior).
65612         Also, don't assume time_t uses two's complement.
65613
65614 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65615
65616         * MODULES.html.sh: New module wctype.
65617         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65618         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65619         <wctype.h>, since the new wctype module should fix this.
65620         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65621         the wctype module should arrange for it.
65622         * lib/regex_internal.h: Likewise.
65623         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65624         since the wctype module should handle this now.
65625         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65626         * modules/fnmatch (Depends-on): Add wctype.
65627         * modules/quotearg (Depends-on): Likewise.
65628         * modules/regex (Depends-on): Likewise.
65629
65630 2006-12-19  Bruno Haible  <bruno@clisp.org>
65631
65632         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65633         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65634
65635 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65636
65637         * modules/savewd (Depends-on): Fix dependency on fcntl.
65638
65639 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65642         conforms to C99, rather than relying on the user's environment
65643         setting of STDINT_H.
65644
65645 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65646         and Eric Blake  <ebb9@byu.net>
65647
65648         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65649         This is more consistent with the other defines here.
65650         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65651         Port to z/OS.  Problem reported by Paul Gilmartin.
65652         Change local vars to use gl_ prefix rather than ac_.
65653         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65654         with other defines.
65655         * modules/double-slash-root: New module.
65656         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65657         (Depends-on): Add double-slash-root.
65658         * MODULES.html.sh (File system functions): Mention new module.
65659
65660 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65663         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65664         This is for the benefit of gzip, which doesn't do i18n.
65665
65666 2006-12-12  Jim Meyering  <jim@meyering.net>
65667
65668         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65669         Reported by Andreas Schwab <schwab@suse.de>.
65670
65671 2006-12-12  Bruno Haible  <bruno@clisp.org>
65672
65673         Merge these changes.
65674         2006-09-05  Bruno Haible  <bruno@clisp.org>
65675         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65676         iconv_alloc succeeded.
65677         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65678         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65679         test for " && dest " at the end - dest is always != NULL there. Call
65680         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65681         with 2xNULL arguments, also to flush the state storage. Handle the
65682         IRIX iconv behaviour. Realloc the final result, to throw away unused
65683         memory.
65684
65685 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65688         and fchmodat unconditionally, since glibc 2.4 has them.
65689         Problem reported by Arkadiusz Miskiewicz.
65690
65691 2006-12-10  Bruno Haible  <bruno@clisp.org>
65692
65693         * gnulib-tool (func_import): Show the include files only for those
65694         modules that are copied and specified.
65695         Reported by Karl Berry.
65696
65697 2006-12-08  Jim Meyering  <jim@meyering.net>
65698
65699         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65700         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65701
65702         * build-aux/announce-gen: Add two new options, both optional:
65703         --bootstrap-tools=TOOL_LIST
65704               a comma-separated list of tools, e.g.,
65705               autoconf,automake,bison,gnulib
65706         --gnulib-snapshot-date=DATE
65707               if gnulib is in the bootstrap tool list,
65708               then report this as the snapshot date.
65709               If not specified, use the current date/time.
65710               If you specify a date here, be sure it's UTC.
65711
65712 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65713
65714         * tests/test-argp-2.sh: Fix test to match actual output.
65715         (func_compare): Fix sed script to be portable.
65716
65717 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65720         workaround for this case.  It is not autoconfigured now; offhand
65721         it's hard to see how to autoconfigure it.
65722
65723 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65724
65725         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65726         a directory that is about to be chowned.  Such a directory's
65727         initial file permissions should permit the owner only and this
65728         should not be changed until after the chown, since the group and
65729         other bits would be incorrect if they granted permission before
65730         the chown.
65731
65732         Fix porting problem for iswctype reported by Georg Schwarz in:
65733         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65734         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65735         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65737         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65738
65739 2006-12-03  Jim Meyering  <jim@meyering.net>
65740
65741         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65742         p->fts_statp may not yet be defined.
65743         (fts_read): Instead, set it in the caller, once p->fts_statp is
65744         sure to be defined, and corresponds to a top-level directory.
65745         This bug made du -x fail.  Here's the coreutils test case:
65746         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65747         Reported by Mike Frysinger.
65748
65749 2006-12-01  Jim Meyering  <jim@meyering.net>
65750
65751         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65752         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65753         Reported by Simon Josefsson.
65754
65755 2006-11-30  Jim Meyering  <jim@meyering.net>
65756
65757         * m4/warning.m4: Use the all-permissive copyright notice
65758         recommended by RMS (rather than LGPL).
65759         * m4/vararrays.m4: Likewise.
65760         * m4/flexmember.m4: Likewise.
65761
65762 2006-11-29  Bruno Haible  <bruno@clisp.org>
65763
65764         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65765         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65766         using +=.
65767         Reported by Simon Josefsson <simon@josefsson.org>.
65768
65769 2006-11-28  James Youngman <jay@gnu.org>
65770
65771         * README: Advise users that they might find the bug-gnulib@gnu.org
65772         and autotools-announce@gnu.org mailing lists useful.
65773
65774 2006-11-28  Bruno Haible  <bruno@clisp.org>
65775
65776         * m4/ptrdiff_max.m4: Remove file.
65777
65778 2006-11-21  Bruno Haible  <bruno@clisp.org>
65779
65780         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65781         _AC_COMPUTE_INT.
65782         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65783         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65784         _AC_COMPUTE_INT.
65785         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65786         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65787         _AC_COMPUTE_INT.
65788         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65789
65790 2006-11-28  Jim Meyering  <jim@meyering.net>
65791
65792         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65793         warning from "gcc -Wshadow" about shadowing the builtin.
65794
65795 2006-11-27  Bruno Haible  <bruno@clisp.org>
65796
65797         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65798         _AC_COMPUTE_INT.
65799         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65800
65801 2006-11-27  Bruno Haible  <bruno@clisp.org>
65802             Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65805
65806 2006-11-26  Bruno Haible  <bruno@clisp.org>
65807
65808         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65809         noinst_LTLIBRARIES.
65810
65811 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65812             Bruno Haible  <bruno@clisp.org>
65813
65814         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65815         if compiling with "gcc -ansi".
65816
65817 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         Fix some incompatibilities with gcc -ansi -pedantic.
65820         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65821         if compiling pedantically with GCC, unless it's C99 or later.
65822         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65823         it mishandles gcc -ansi -pedantic as well.
65824         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65825         if gcc -pedantic.
65826         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65827         initializers for struct if -pedantic, unless it's C99 or later.
65828
65829 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65830
65831         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65832         Don't close an fd more than once. Identical atimes indicate
65833         success, not failure.
65834
65835 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65836
65837         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65838
65839 2006-11-23  Jim Meyering  <jim@meyering.net>
65840
65841         * build-aux/announce-gen: New file.  From coreutils.
65842
65843 2006-11-22  Jim Meyering  <jim@meyering.net>
65844
65845         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65846         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65847         (fts_read): Use a temporary to narrow the overused st_size member
65848         before using it in a switch statement.  Reported by Matthew Woehlke.
65849
65850         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65851         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65852
65853 2006-11-20  Bruno Haible  <bruno@clisp.org>
65854
65855         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65856         changequote instead of pairs of brackets.
65857         Reported by Andreas Schwab <schwab@suse.de>.
65858
65859 2006-11-21  Jim Meyering  <jim@meyering.net>
65860
65861         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65862         so as to remain compatible with older compilers.
65863         Patch from Michael Deutschmann.
65864
65865 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * MODULES.html.sh (File system functions): Add openat.
65868
65869         * lib/openat.h (rpl_fstatat): New macro, if
65870         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65871         (fstatat): Define to rpl_fstatat under the same conditions,
65872         unless COMPILING_FSTATAT.
65873         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65874         seems to have the bug.
65875         * lib/fstatat.c: New file.
65876         * modules/openat (Files): Add it.
65877
65878 2006-11-20  Bruno Haible  <bruno@clisp.org>
65879
65880         * Makefile: New file.
65881
65882 2006-11-20  Jim Meyering  <jim@meyering.net>
65883
65884         The beginnings of syntax-related checks for gnulib.
65885         * lib/Makefile: New file.
65886         * lib/t-idcache: New script.  Ensure that the two halves of
65887         idcache.c stay in sync.
65888
65889         * lib/idcache.c: Adjust comments in user- and group- portions to
65890         be more accurate, and to be consistent with one another.
65891
65892 2006-11-20  Jim Meyering  <jim@meyering.net>
65893
65894         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65895         continue using the flexible array member (thus, this module performs
65896         half as many malloc calls), with the addition that...
65897         (getgroup, getuser): Consistently record a non-match via an empty
65898         "name" string, and map an empty string match to a NULL return value.
65899         * modules/idcache (Depends-on): Re-add flexmember.
65900
65901         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65902         (getuidbyname, getgroup, getgidbyname): Likewise.
65903
65904         Use cleaner syntax: NULL rather than 0.
65905         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65906
65907 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65910         It mishandled the case where the group was missing.
65911         Problem reported by Greg Schafer.
65912         * modules/idcache: Likewise.
65913
65914 2006-11-18  Jim Meyering  <jim@meyering.net>
65915
65916         * check-module (%exempt_header): Add exception for some
65917         conditionally-included headers.
65918
65919         * modules/i-ring (Depends-on): Add verify.
65920         (License): Change to LGPL.
65921
65922 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65925         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65926         and inttostr.h.  Use snprintf rather than uinttostr, so that
65927         LGPLed code doesn't depend on GPLed.
65928
65929 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * modules/inline (License): Change from GPL to LGPL.
65932
65933 2006-11-17  Jim Meyering  <jim@meyering.net>
65934
65935         * modules/d-type (License): Switch to LGPL.
65936
65937 2006-11-15  Bruno Haible  <bruno@clisp.org>
65938
65939         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65940
65941 2006-11-15  Eric Blake  <ebb9@byu.net>
65942
65943         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65944         the module dependency.
65945
65946 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65947             Bruno Haible  <bruno@clisp.org>
65948
65949         * gnulib-tool (func_create_testdir): Add license consistency check.
65950
65951 2006-11-15  Eric Blake  <ebb9@byu.net>
65952
65953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65954         random "(cached)" in configure output.
65955
65956 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65957
65958         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65959         test for conforming inttypes.h is both announced and cached.
65960
65961         * MODULES.html.sh (seen_modules, seen_files): New variables.
65962         (func_module): Rewrite to use a few less gnulib-tool and sed
65963         invocations.  Avoid a couple of quadratic algorithms for ...
65964         (missed_modules, missed_files): ... these, with ...
65965         (func_append, func_tmpdir): ... these new functions, from
65966         gnulib-tool.  Analogously, install traps for cleanup.
65967
65968         * tests/test-gc.c (main): Remove unused variables.
65969         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65970
65971 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65972
65973         * modules/inttostr (License): Change to LGPL.
65974
65975 2006-11-14  Eric Blake  <ebb9@byu.net>
65976
65977         * modules/tempname (License): Change to LGPL.
65978
65979 2006-11-14  Eric Blake  <ebb9@byu.net>
65980
65981         * doc/functions.texi (Function Portability): *printf functions on
65982         Cygwin now understand all POSIX size specifiers.
65983
65984 2006-11-14  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/c-ctype (License): Change to LGPL.
65987
65988 2006-11-12  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65991         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65992         for GNOME libraries, for which the include files are installed in
65993         subdirectories of $prefix/include.
65994
65995 2006-11-12  Bruno Haible  <bruno@clisp.org>
65996
65997         * m4/lib-link.m4: Require at least autoconf-2.54.
65998         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65999         name to underscores for the --with option.
66000
66001 2006-11-13  Bruno Haible  <bruno@clisp.org>
66002
66003         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66004         the tests directory.
66005         Reported by Ralf Wildenhues.
66006
66007 2006-11-13  Bruno Haible  <bruno@clisp.org>
66008
66009         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66010         (func_emit_initmacro_end): Undo the override here.
66011         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66012         Works around the famous automake error in coreutils.
66013
66014 2006-11-13  Eric Blake  <ebb9@byu.net>
66015
66016         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66017         element, not its node.
66018
66019 2006-11-12  Bruno Haible  <bruno@clisp.org>
66020
66021         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66022         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66023
66024 2006-11-12  Bruno Haible  <bruno@clisp.org>
66025
66026         * gnulib-tool: New option --local-symlink.
66027         (func_usage): Document it.
66028         (lsymbolic): New variable.
66029         (func_import, func_create_testdir): If --symlink was not specified,
66030         test whether --local-symlink was specified and the file comes from
66031         the local_gnulib_dir.
66032
66033 2006-11-12  Bruno Haible  <bruno@clisp.org>
66034
66035         * gnulib-tool (func_ln): New function.
66036         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66037
66038 2006-11-12  Bruno Haible  <bruno@clisp.org>
66039
66040         Finish support for source files in subdirectories.
66041         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66042         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66043         AUTOMAKE_OPTIONS.
66044         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66045
66046 2006-11-12  Bruno Haible  <bruno@clisp.org>
66047
66048         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66049         EXTRA_lib_SOURCES augmentation.
66050         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66051
66052 2006-11-12  Jim Meyering  <jim@meyering.net>
66053
66054         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66055         file descriptors.  This also averts a failure on systems with
66056         native openat support when a traversed directory lacks "x" access.
66057         * lib/fts_.h: Include "i-ring.h"
66058         (struct FTS) [fts_fd_ring]: New member.
66059         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66060         (FCHDIR): Add parentheses.
66061         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66062         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66063         When descending, rather than simply closing the previous
66064         fts_cwd_fd value, push that file descriptor onto the ring.
66065         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66066         (fts_open): Initialize the new fd_ring member.
66067         (fts_close): Clear the ring.
66068         (fts_safe_changedir): When possible, use our new fd_ring to skip
66069         the diropen and fstat and dev/ino comparison that would normally
66070         accompany a virtual `chdir ("..")'.
66071
66072         * modules/fts (Depends-on): Add i-ring.
66073         * modules/i-ring: New module.
66074         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66075         * m4/i-ring.m4: New file.
66076
66077 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66078
66079         * gnulib-tool (func_create_testdir): Fix replacement of
66080         `build-aux' in configure.ac.  Run autotools in gltests
66081         subdirectory.
66082         (func_create_testdir, func_create_megatestdir, test): There is
66083         no need for '--force' in most autotool invocations in a new
66084         tree.  Actually fail the whole test if any of the tools, or the
66085         configure or make stages fail.
66086
66087         Sync from Automake.
66088         * build-aux/gnupload: Revert last change.  Add pointer to upload
66089         instructions of the GNU Maintenance Instructions.
66090         Suggestion by Karl Berry.
66091
66092 2006-11-10  Jim Meyering  <jim@meyering.net>
66093
66094         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66095
66096 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66099         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66100         (bind_textdomain_codeset) [! ENABLE_NLS]:
66101         Evaluate all the arguments.  That way, callers get compatible behavior
66102         if the arguments have side effects.  Also, it avoids some GCC
66103         diagnostics in some cases; Joel E. Denny reported problems when Bison
66104         was configured with --enable-gcc-warnigs.
66105
66106 2006-11-10  Jim Meyering  <jim@meyering.net>
66107
66108         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66109         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66110         account.
66111
66112 2006-11-10  Jim Meyering  <jim@meyering.net>
66113
66114         * modules/inline: New file/module.
66115         * modules/xalloc (Files): Remove m4/inline.m4.
66116         (Depends-on): Add inline, instead.
66117         * modules/oset: Likewise.
66118         * modules/list: Likewise.
66119
66120 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66123         Problem reported by Matthew Woehlke.
66124
66125 2006-11-09  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/tempname.c (gen_tempname): Remove variant that invokes
66128         __gen_tempname.
66129         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66130         __gen_tempname.
66131
66132 2006-11-08  Bruno Haible  <bruno@clisp.org>
66133
66134         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66135         to 'yes' instead of 'cross-compiling'.
66136
66137 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66138
66139         * lib/quotearg.h (quotearg_free): New decl.
66140         * lib/quotearg.c (quotearg_free): New function.
66141         (slot0, nslots, slotvec0, slotvec):
66142         Now file-scope so that quotearg_free can get at them.
66143
66144 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66145
66146         Sync from Automake.
66147         * build-aux/gnupload: Add missing 'gnu' to example URL.
66148         Report by Karl Berry.
66149
66150 2006-11-08  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66153         Suggested by Paul Eggert.
66154
66155 2006-11-08  Jim Meyering  <jim@meyering.net>
66156
66157         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66158         It's already included if !_LIBC.
66159         (fts_safe_changedir): Add a comment.
66160
66161 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66164         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66165         Matthew Woehlke.
66166
66167         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66168         definitions up, to avoid colliding with change below.
66169         (static_inline) [HAVE_INLINE]: New macro.
66170         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66171         Provide extern decls when !HAVE_INLINE.  Do not define unless
66172         static_inline is defined, either by us or by xmalloc.c.  Use
66173         static_inline rather than static inline.
66174         (XCALLOC): Optimize sizeof(T) = 1 case.
66175         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66176
66177 2006-11-07  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66180         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66181         AC_C_INLINE.
66182         * modules/xalloc (Files): Add m4/inline.m4.
66183
66184 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66185
66186         * README: Fix typo.
66187         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66188         (Miscellanous Notes): ...from this.
66189
66190 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66193         Mention that offsetof should be used instead of sizeof.
66194         From Bruno Haible.
66195
66196 2006-11-07  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66199
66200 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66203         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66204         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66205         (gl_tree_add_before, gl_tree_add_after):
66206         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66207         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66208         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66209         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66210         (gl_linked_add_after, gl_linked_add_at): Likewise.
66211         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66212         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66213         (gl_tree_add_before, gl_tree_add_after): Likewise.
66214         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66215         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66216         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66217
66218 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66219
66220         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66221
66222 2006-11-06  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/inline.m4: New file.
66225         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66226         * modules/list (Files): Add m4/inline.m4.
66227         * modules/oset (Files): Likewise.
66228
66229 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         * lib/idcache.c: Include <stddef.h>, for offsetof.
66232         (struct userid.name): Change from char * to a flexible array member.
66233         All uses changed.
66234         * modules/idcache (Depends-on): Add flexmember.
66235
66236         * MODULES.html.sh (Core language properties): New module flexmember.
66237         * modules/flexmember, m4/flexmember.m4: New files.
66238
66239         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66240         inline functions that are identical with the old xnmalloc_inline,
66241         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66242         that we can avoid some unnecessary integer multiplications and
66243         divisions in the common case where the element size is known at
66244         compile time.
66245         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66246         needed.
66247         (xnboundedmalloc): Remove.
66248         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66249         arguments, for consistency with rest of this header.
66250         (xcharalloc): Rewrite using XNMALLOC.
66251         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66252         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66253         versions have been moved to lib/xalloc.h and renamed to be the
66254         non-*_inline versions.
66255         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66256         and xnrealloc functions, since those functions are now inline and
66257         now call us.
66258         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66259         renaming described above.
66260         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66261         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66262         captures the dependency in AC_C_INLINE.
66263
66264         New module canonicalize-lgpl, proposed by Charles Wilson in
66265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66266         with a few small changes afterwards.
66267         * MODULES.html.sh (File system functions): New module
66268         canonicalize-lgpl.
66269         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66270         and canonicalize_file_name.
66271         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66272         * modules/canonicalize-lgpl: New files.
66273
66274 2006-11-05  Bruno Haible  <bruno@clisp.org>
66275
66276         * gnulib-tool (func_import, func_create_testdir): Create directories
66277         also for files in subdirectories of lib/.
66278
66279 2006-11-05  Bruno Haible  <bruno@clisp.org>
66280
66281         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66282         ANSI C compliant.
66283
66284 2006-11-03  Bruno Haible  <bruno@clisp.org>
66285
66286         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66287         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66288         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66289         (xnboundedmalloc): New inline function.
66290         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66291         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66292         xmalloc.
66293         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66294         xmalloc.
66295         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66296         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66297         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66298         xmalloc.
66299         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66300         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66301         xmalloc.
66302         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66303         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66304         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66305         xmalloc.
66306         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66307         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66308         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66309         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66310         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66311         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66312         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66313
66314 2006-11-03  Bruno Haible  <bruno@clisp.org>
66315
66316         * lib/c-ctype.h [C++]: Define functions without name mangling.
66317         * lib/fwriteerror.h [C++]: Likewise.
66318         * lib/gcd.h [C++]: Likewise.
66319         * lib/linebreak.h [C++]: Likewise.
66320
66321 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66324         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66325         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66327         Check for functions and headers just once.
66328         Check for declaration of canonicalize_file_name.
66329         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66330
66331 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66332
66333         * gnulib-tool (func_import): Fix typo in actioncmd.
66334
66335 2006-11-02  Bruno Haible  <bruno@clisp.org>
66336
66337         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66338         newline sequence in the Makefile.am snippet as a space, like "make"
66339         does.
66340         Reported by Roger Persson <perrog@gmail.com>.
66341
66342 2006-11-01  Bruno Haible  <bruno@clisp.org>
66343
66344         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66345         already declared in <string.h>.
66346         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66347
66348 2006-11-01  Bruno Haible  <bruno@clisp.org>
66349
66350         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66351         * lib/strcase.h: Include <string.h>.
66352         (strcasecmp): Define to rpl_strcasecmp here.
66353
66354 2006-11-01  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66357
66358 2006-11-01  Eric Blake  <ebb9@byu.net>
66359
66360         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66361
66362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66363
66364 2006-10-29  Bruno Haible  <bruno@clisp.org>
66365
66366         Make it compile in C++ mode.
66367         * lib/full-write.c (full_rw): Add a cast.
66368
66369 2006-11-01  Bruno Haible  <bruno@clisp.org>
66370
66371         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66372         be POSIX compliant.
66373         Reported by Roger Persson <perrog@gmail.com>.
66374
66375 2006-11-01  Eric Blake  <ebb9@byu.net>
66376
66377         * lib/getopt_.h: Fix comments.
66378
66379 2006-10-31  Eric Blake  <ebb9@byu.net>
66380
66381         * modules/tmpdir (Depends-on): Add sys_stat.
66382         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66383         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66384         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66385         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66386         tempname.
66387
66388 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         Avoid some C++ diagnostics reported by Bruno Haible.
66391         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66392         xmalloc.
66393         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66394         (struct slotvec): Move to top level.
66395         (quotearg_n_options): Rewrite to avoid xmalloc.
66396         * lib/xalloc.h (xcharalloc): New function.
66397         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66398         [defined __cplusplus]: Add function template that provides result
66399         type propagation.  This part of the change is from Bruno Haible.
66400
66401 2006-10-29  Bruno Haible  <bruno@clisp.org>
66402
66403         Make it compile in C++ mode.
66404         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66405         * lib/strnlen1.c (strnlen1): Cast memchr result.
66406         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66407         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66408         (create_temp_dir): Rename local variable 'template'.
66409         (compile_csharp_using_sscli): Add cast.
66410         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66411         * lib/findprog.c (find_in_path): Likewise.
66412         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66413         * lib/wait-process.c (register_slave_subprocess): Likewise.
66414
66415 2006-10-22  Bruno Haible  <bruno@clisp.org>
66416
66417         * modules/tsearch: New file.
66418         * lib/tsearch.h: New file.
66419         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66420         * m4/tsearch.m4: New file.
66421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66422
66423 2006-10-29  Eric Blake  <ebb9@byu.net>
66424
66425         * lib/arcfour.c: Assume config.h.
66426         * lib/arctwo.c: Likewise.
66427         * lib/base64.c: Likewise.
66428         * lib/check-version.c: Likewise.
66429         * lib/crc.c: Likewise.
66430         * lib/des.c: Likewise.
66431         * lib/gc-gnulib.c: Likewise.
66432         * lib/gc-libgcrypt.c: Likewise.
66433         * lib/gc-pbkdf2-sha1.c: Likewise.
66434         * lib/getaddrinfo.c: Likewise.
66435         * lib/getdelim.c: Likewise.
66436         * lib/getline.c: Likewise.
66437         * lib/hmac-md5.c: Likewise.
66438         * lib/hmac-sha1.c: Likewise.
66439         * lib/iconvme.c: Likewise.
66440         * lib/md2.c: Likewise.
66441         * lib/md4.c: Likewise.
66442         * lib/memxor.c: Likewise.
66443         * lib/read-file.c: Likewise.
66444         * lib/readline.c: Likewise.
66445         * lib/rijndael-alg-fst.c: Likewise.
66446         * lib/rijndael-api-fst.c: Likewise.
66447         * lib/xgetdomainname.c: Likewise.
66448
66449 2006-10-28  Eric Blake  <ebb9@byu.net>
66450
66451         * lib/xstrndup.c: Assume config.h.
66452
66453 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66456         stat-macros.h is now for our own macros, whereas stat_h is for
66457         macros in the <sys/stat.h> name space.
66458         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66459         (STAT_MACROS_H): Remove.
66460         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66461         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66462         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66463         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66464         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66465         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66466         Move these macros to ...
66467         * lib/stat_.h: here.  Don't include stat-macros.h.
66468         * lib/canonicalize.c: Don't include stat-macros.h.
66469         * lib/chown.c: Likewise.
66470         * lib/euidaccess.c: Likewise.
66471         * lib/file-type.c: Likewise.
66472         * lib/filemode.c: Likewise.
66473         * lib/glob.c: Likewise.
66474         * lib/isapipe.c: Likewise.
66475         * lib/lchown.c: Likewise.
66476         * lib/lstat.c: Likewise.
66477         * lib/mkdir-p.c: Likewise.
66478         * lib/rmdir.c: Likewise.
66479         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66481         unless mkdir isn't declared, to speed up 'configure'.
66482         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66483         would define all the S_* symbols.
66484         * modules/canonicalize (Depends-on):
66485         Depend on sys_stat, not stat-macros.
66486         * modules/chown: Likewise.
66487         * modules/euidaccess: Likewise.
66488         * modules/filemode: Likewise.
66489         * modules/file-type: Likewise.
66490         * modules/glob: Likewise.
66491         * modules/isapipe: Likewise.
66492         * modules/lchown: Likewise.
66493         * modules/lstat: Likewise.
66494         * modules/mkancesdirs: Likewise.
66495         * modules/rmdir: Likewise.
66496         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66497         * modules/modechange: Likewise.
66498         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66499         (configure.ac): Remove gl_STAT_MACROS.
66500         * modules/sys_stat (Depends-on): Remove stat-macros.
66501
66502 2006-10-27  Bruno Haible  <bruno@clisp.org>
66503
66504         * m4/signed.m4: Remove file.
66505         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66506         invocation.
66507         * modules/vasnprintf (Files): Remove m4/signed.m4.
66508
66509 2006-10-27  Bruno Haible  <bruno@clisp.org>
66510
66511         Update to GNU gettext 0.16.
66512         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66513         m4/inttypes-h.m4, m4/signed.m4.
66514         * m4/gettext.m4: Update to GNU gettext 0.16.
66515         * m4/intl.m4: New file, from GNU gettext.
66516         * m4/intldir.m4: New file, from GNU gettext.
66517         * config/srclist.txt: Update
66518
66519 2006-10-27  Eric Blake  <ebb9@byu.net>
66520
66521         * MODULES.html.sh: Document tempname.
66522         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66523         dependencies.
66524         (Files): Move lib/tempname.c...
66525         * modules/tempname: ...to this new module.
66526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66527         (gl_PREREQ_TEMPNAME): Move...
66528         * m4/tempname.m4: ...to this new file.
66529         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66530         * modules/sys_stat (Depends-on): Add stat-macros.
66531         * lib/stat_.h (includes): Pick up stat macros.
66532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66533         if stat macros are broken.
66534         * lib/tempname.c (includes): No need to include "stat-macros.h".
66535         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66536         (direxists, __path_search) [!_LIBC]: Don't compile these in
66537         gnulib; the tmpdir module covers that.
66538         * lib/tempname.h: New file.
66539
66540 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * COPYING: Explain how gnulib-tool converts licence headers.
66543         Almost all wording by Eric Blake.
66544
66545 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66546
66547         * lib/mbchar.h (is_basic_table): Make read-only.
66548         * lib/mbchar.c (is_basic_table): Likewise.
66549         Reported by John Darrington.
66550
66551 2006-10-25  Bruno Haible  <bruno@clisp.org>
66552
66553         * lib/progname.h (set_program_name): Undefine before defining.
66554
66555 2006-10-25  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66558         false for non-gcc C++ compilers.
66559         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66560
66561 2006-10-24  Bruno Haible  <bruno@clisp.org>
66562
66563         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66564         iconv implementations like Irix iconv.
66565
66566 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * modules/vararrays: New file.
66569         * m4/vararrays.m4: New file, taken from diffutils.
66570         * MODULES.html.sh: New module vararrays.
66571
66572 2006-10-24  Karl Berry  <karl@gnu.org>
66573
66574         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66575         Don't call GNU Unix.
66576
66577 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66578
66579         * users.txt: Add Libtool.
66580
66581         Sync from Libtool:
66582
66583         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66586         to gnulib's policy of including config.h unconditionally.
66587
66588 2006-10-24  Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/wcwidth (Files): Add m4/wint_t.m4.
66591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66592         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66593
66594 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66597         to pacify GCC with some -W flags enabled.  Problem reported by
66598         Bruno Haible.
66599
66600 2006-10-24  Jim Meyering  <jim@meyering.net>
66601
66602         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66603         Reported by Karl Berry.
66604
66605 2006-10-23  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66608
66609 2006-10-24  Bruno Haible  <bruno@clisp.org>
66610
66611         * lib/gl_list.h: Use C comment style, not C++ comment style.
66612
66613 2006-10-23  Eric Blake  <ebb9@byu.net>
66614
66615         * lib/getaddrinfo.c (includes): Add missing include.
66616
66617 2006-10-23  Bruno Haible  <bruno@clisp.org>
66618             Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         Ability to rename obstack_free.
66621         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66622         obstack_free.
66623         (obstack_free): Invoke the __obstack_free macro.
66624         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66625
66626 2006-10-23  Bruno Haible  <bruno@clisp.org>
66627             Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66630         __argc, __argv from the declaration. (They are defined as macros on
66631         mingw.)
66632
66633 2006-10-22  Bruno Haible  <bruno@clisp.org>
66634
66635         * doc/gnulib-intro.texi: New file.
66636         * doc/gnulib.texi: Include it.
66637
66638 2006-10-21  Bruno Haible  <bruno@clisp.org>
66639
66640         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66641         "Introduction", "Miscellanous Notes", "Particular Modules".
66642
66643 2006-10-21  Bruno Haible  <bruno@clisp.org>
66644
66645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66646         Change mostlyclean-local rule to avoid sh syntax error from bash
66647         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66648
66649 2006-10-23  Jim Meyering  <jim@meyering.net>
66650
66651         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66652         in place of snprintf.
66653
66654         * modules/inttostr (Files): Add lib/uinttostr.c.
66655         * lib/uinttostr.c (inttostr): New file/function.
66656         * lib/inttostr.h (uinttostr): Declare.
66657         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66658         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66659         Add uinttostr.
66660         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66661
66662 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * lib/canonicalize.c (ELOOP): Define if not already defined.
66665         Problem reported by Bruno Haible in
66666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66667
66668 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66671         Problem reported by Perry Smith and Ville Laurikari.
66672
66673         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66674         uses.
66675
66676 2006-10-19  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66679         for mingw.
66680
66681 2006-10-19  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66684         Needed for mingw.
66685
66686 2006-10-19  Bruno Haible  <bruno@clisp.org>
66687
66688         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66689
66690 2006-10-19  Bruno Haible  <bruno@clisp.org>
66691
66692         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66693         it.
66694
66695 2006-10-19  Bruno Haible  <bruno@clisp.org>
66696
66697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66698         invocation.
66699
66700 2006-10-19  Bruno Haible  <bruno@clisp.org>
66701
66702         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66703         mountlist by default.
66704
66705 2006-10-16  Bruno Haible  <bruno@clisp.org>
66706
66707         * lib/c-strstr.c: Include c-strstr.h.
66708
66709 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66710
66711         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66712         in a slash.
66713
66714 2006-10-18  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/lock.h [C++]: Wrap definitions in extern "C".
66717
66718 2006-10-18  Bruno Haible  <bruno@clisp.org>
66719
66720         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66721         gl_LIBOBJS list.
66722
66723 2006-10-18  Bruno Haible  <bruno@clisp.org>
66724
66725         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66726
66727 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * lib/xstrtol.h: Include gettext.h.
66730         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66731         Problem reported by Eric Blake.
66732         * modules/xstrtol (Depends-on): Add gettext-h.
66733
66734 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66735
66736         * lib/strftime.c (advance): New macro.
66737         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66738         incomplete type, so you can't add 0 to it.  Problem and patch
66739         reported by Eelco Dolstra for dietlibc.
66740
66741 2006-10-18  Jim Meyering  <jim@meyering.net>
66742
66743         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66744         type for a local, and rename it: s/up/user_proc/.
66745
66746 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66747
66748         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66749         READ_UTMP_USER_PROCESS.
66750         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66751
66752 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66755         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66756
66757 2006-10-17  Eric Blake  <ebb9@byu.net>
66758
66759         * lib/sigprocmask.c (sigprocmask): Fix typo.
66760
66761         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66762
66763         * modules/clean-temp (Makefile.am): Don't add to make output...
66764         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66765         config.h.
66766
66767 2006-10-17  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66770         differently if DEFAULT_TEXT_DOMAIN is set.
66771
66772 2006-10-16  Bruno Haible  <bruno@clisp.org>
66773
66774         * lib/clean-temp.c: Include fwriteerror.h.
66775
66776 2006-10-16  Bruno Haible  <bruno@clisp.org>
66777
66778         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66779
66780 2006-10-16  Bruno Haible  <bruno@clisp.org>
66781
66782         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66783         * lib/sigprocmask.h: Include <sys/types.h>.
66784         (sigset_t): Use the system's definition if present.
66785
66786 2006-10-17  Eric Blake  <ebb9@byu.net>
66787
66788         * lib/xvasprintf.c (includes): Assume config.h.
66789         * lib/xasprintf.c (includes): Likewise.
66790
66791 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66794         at least as wide as intmax_t.
66795
66796 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66797
66798         (Imported from Automake.)
66799         * build-aux/gnupload: Update to version 1.1 of directive file.
66800
66801 2006-10-16  Eric Blake  <ebb9@byu.net>
66802
66803         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66804         match Automake 1.10a.
66805
66806 2006-10-14  Bruno Haible  <bruno@clisp.org>
66807
66808         * modules/sigprocmask: New file.
66809         * lib/sigprocmask.h: New file.
66810         * lib/sigprocmask.c: New file.
66811         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66812         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66813         request sigprocmask.o.
66814         (gl_PREREQ_SIGPROCMASK): New macro.
66815         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66816         (Depends-on): Add sigprocmask.
66817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66818         gt_SIGNALBLOCKING. Test for 'raise' only once.
66819         * lib/fatal-signal.c: Include sigprocmask.h.
66820         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66821         unblock_fatal_signals): Define always.
66822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66823         sigprocmask.
66824
66825 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         Sync from Automake.
66828         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66829         which incorrectly sets the mode of an existing destination
66830         directory.  In some cases the unpatched install-sh could do the
66831         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66832         system.  We hope this is rare in practice, but it's clearly worth
66833         fixing.  Problem reported by Alex Unleashed in
66834         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66835         Also, don't bother to check for -m bugs unless we're using -m;
66836         suggested by Stepan Kasal.
66837
66838 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66839
66840         Sync from Automake.
66841         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66842         `-c' flag, so they appear at the same position as in %FASTDEP%
66843         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66844         which ignores unknown options only after the first non-option.
66845         Bug report against M4 by Nelson H. F. Beebe.
66846
66847 2006-10-13  Jim Meyering  <jim@meyering.net>
66848
66849         Fix a bug in yesterday's change.
66850         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66851         p->fts_statp->st_dev would be used uninitialized.
66852         Ensures that we always call fts_stat on the very first entry.
66853         Miklos Szeredi reported that find -xdev stopped working.
66854
66855 2006-10-12  Bruno Haible  <bruno@clisp.org>
66856
66857         * gnulib-tool (func_get_automake_snippet): Append an automatically
66858         computed EXTRA_DIST augmentation.
66859         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66860         * modules/alloca-opt (Makefile.am): Likewise.
66861         * modules/allocsa (Makefile.am): Likewise.
66862         * modules/arcfour (Makefile.am): Likewise.
66863         * modules/arctwo (Makefile.am): Likewise.
66864         * modules/argmatch (Makefile.am): Likewise.
66865         * modules/argz (Makefile.am): Likewise.
66866         * modules/atexit (Makefile.am): Likewise.
66867         * modules/backupfile (Makefile.am): Likewise.
66868         * modules/byteswap (Makefile.am): Likewise.
66869         * modules/c-strtod (Makefile.am): Likewise.
66870         * modules/c-strtold (Makefile.am): Likewise.
66871         * modules/calloc (Makefile.am): Likewise.
66872         * modules/canon-host (Makefile.am): Likewise.
66873         * modules/canonicalize (Makefile.am): Likewise.
66874         * modules/chdir-long (Makefile.am): Likewise.
66875         * modules/chdir-safer (Makefile.am): Likewise.
66876         * modules/check-version (Makefile.am): Likewise.
66877         * modules/chown (Makefile.am): Likewise.
66878         * modules/cloexec (Makefile.am): Likewise.
66879         * modules/close-stream (Makefile.am): Likewise.
66880         * modules/closeout (Makefile.am): Likewise.
66881         * modules/crc (Makefile.am): Likewise.
66882         * modules/csharpexec (Makefile.am): Likewise.
66883         * modules/cycle-check (Makefile.am): Likewise.
66884         * modules/des (Makefile.am): Likewise.
66885         * modules/dev-ino (Makefile.am): Likewise.
66886         * modules/dirfd (Makefile.am): Likewise.
66887         * modules/dirname (Makefile.am): Likewise.
66888         * modules/dup2 (Makefile.am): Likewise.
66889         * modules/eealloc (Makefile.am): Likewise.
66890         * modules/error (Makefile.am): Likewise.
66891         * modules/euidaccess (Makefile.am): Likewise.
66892         * modules/exclude (Makefile.am): Likewise.
66893         * modules/exitfail (Makefile.am): Likewise.
66894         * modules/fcntl-safer (Makefile.am): Likewise.
66895         * modules/fcntl (Makefile.am): Likewise.
66896         * modules/file-type (Makefile.am): Likewise.
66897         * modules/fileblocks (Makefile.am): Likewise.
66898         * modules/filemode (Makefile.am): Likewise.
66899         * modules/filenamecat (Makefile.am): Likewise.
66900         * modules/fnmatch (Makefile.am): Likewise.
66901         * modules/fopen-safer (Makefile.am): Likewise.
66902         * modules/fpending (Makefile.am): Likewise.
66903         * modules/fprintftime (Makefile.am): Likewise.
66904         * modules/free (Makefile.am): Likewise.
66905         * modules/fsusage (Makefile.am): Likewise.
66906         * modules/ftruncate (Makefile.am): Likewise.
66907         * modules/fts (Makefile.am): Likewise.
66908         * modules/gc-arcfour (Makefile.am): Likewise.
66909         * modules/gc-des (Makefile.am): Likewise.
66910         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66911         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66912         * modules/gc-md4 (Makefile.am): Likewise.
66913         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66914         * modules/gc-sha1 (Makefile.am): Likewise.
66915         * modules/gc (Makefile.am): Likewise.
66916         * modules/getaddrinfo (Makefile.am): Likewise.
66917         * modules/getcwd (Makefile.am): Likewise.
66918         * modules/getdelim (Makefile.am): Likewise.
66919         * modules/getdomainname (Makefile.am): Likewise.
66920         * modules/getgroups (Makefile.am): Likewise.
66921         * modules/gethostname (Makefile.am): Likewise.
66922         * modules/gethrxtime (Makefile.am): Likewise.
66923         * modules/getline (Makefile.am): Likewise.
66924         * modules/getloadavg (Makefile.am): Likewise.
66925         * modules/getlogin_r (Makefile.am): Likewise.
66926         * modules/getndelim2 (Makefile.am): Likewise.
66927         * modules/getopt (Makefile.am): Likewise.
66928         * modules/getpagesize (Makefile.am): Likewise.
66929         * modules/getpass-gnu (Makefile.am): Likewise.
66930         * modules/getpass (Makefile.am): Likewise.
66931         * modules/getsubopt (Makefile.am): Likewise.
66932         * modules/gettime (Makefile.am): Likewise.
66933         * modules/gettimeofday (Makefile.am): Likewise.
66934         * modules/getugroups (Makefile.am): Likewise.
66935         * modules/getusershell (Makefile.am): Likewise.
66936         * modules/glob (Makefile.am): Likewise.
66937         * modules/group-member (Makefile.am): Likewise.
66938         * modules/hard-locale (Makefile.am): Likewise.
66939         * modules/hash (Makefile.am): Likewise.
66940         * modules/hmac-md5 (Makefile.am): Likewise.
66941         * modules/hmac-sha1 (Makefile.am): Likewise.
66942         * modules/human (Makefile.am): Likewise.
66943         * modules/idcache (Makefile.am): Likewise.
66944         * modules/imaxabs (Makefile.am): Likewise.
66945         * modules/imaxdiv (Makefile.am): Likewise.
66946         * modules/inet_ntop (Makefile.am): Likewise.
66947         * modules/inet_pton (Makefile.am): Likewise.
66948         * modules/intprops (Makefile.am): Likewise.
66949         * modules/inttostr (Makefile.am): Likewise.
66950         * modules/inttypes (Makefile.am): Likewise.
66951         * modules/isapipe (Makefile.am): Likewise.
66952         * modules/javaversion (Makefile.am): Likewise.
66953         * modules/lchmod (Makefile.am): Likewise.
66954         * modules/lchown (Makefile.am): Likewise.
66955         * modules/localcharset (Makefile.am): Likewise.
66956         * modules/long-options (Makefile.am): Likewise.
66957         * modules/lstat (Makefile.am): Likewise.
66958         * modules/malloc (Makefile.am): Likewise.
66959         * modules/mathl (Makefile.am): Likewise.
66960         * modules/mbchar (Makefile.am): Likewise.
66961         * modules/md2 (Makefile.am): Likewise.
66962         * modules/md4 (Makefile.am): Likewise.
66963         * modules/md5 (Makefile.am): Likewise.
66964         * modules/memcasecmp (Makefile.am): Likewise.
66965         * modules/memchr (Makefile.am): Likewise.
66966         * modules/memcmp (Makefile.am): Likewise.
66967         * modules/memcoll (Makefile.am): Likewise.
66968         * modules/memcpy (Makefile.am): Likewise.
66969         * modules/memmem (Makefile.am): Likewise.
66970         * modules/memmove (Makefile.am): Likewise.
66971         * modules/mempcpy (Makefile.am): Likewise.
66972         * modules/memrchr (Makefile.am): Likewise.
66973         * modules/memset (Makefile.am): Likewise.
66974         * modules/memxor (Makefile.am): Likewise.
66975         * modules/mkancesdirs (Makefile.am): Likewise.
66976         * modules/mkdir-p (Makefile.am): Likewise.
66977         * modules/mkdir (Makefile.am): Likewise.
66978         * modules/mkdtemp (Makefile.am): Likewise.
66979         * modules/mkstemp (Makefile.am): Likewise.
66980         * modules/mktime (Makefile.am): Likewise.
66981         * modules/modechange (Makefile.am): Likewise.
66982         * modules/mountlist (Makefile.am): Likewise.
66983         * modules/nanosleep (Makefile.am): Likewise.
66984         * modules/obstack (Makefile.am): Likewise.
66985         * modules/openat (Makefile.am): Likewise.
66986         * modules/pagealign_alloc (Makefile.am): Likewise.
66987         * modules/pathmax (Makefile.am): Likewise.
66988         * modules/physmem (Makefile.am): Likewise.
66989         * modules/poll (Makefile.am): Likewise.
66990         * modules/posixtm (Makefile.am): Likewise.
66991         * modules/posixver (Makefile.am): Likewise.
66992         * modules/putenv (Makefile.am): Likewise.
66993         * modules/quote (Makefile.am): Likewise.
66994         * modules/quotearg (Makefile.am): Likewise.
66995         * modules/raise (Makefile.am): Likewise.
66996         * modules/read-file (Makefile.am): Likewise.
66997         * modules/readline (Makefile.am): Likewise.
66998         * modules/readlink (Makefile.am): Likewise.
66999         * modules/readtokens (Makefile.am): Likewise.
67000         * modules/readutmp (Makefile.am): Likewise.
67001         * modules/realloc (Makefile.am): Likewise.
67002         * modules/regex (Makefile.am): Likewise.
67003         * modules/rename-dest-slash (Makefile.am): Likewise.
67004         * modules/rename (Makefile.am): Likewise.
67005         * modules/rijndael (Makefile.am): Likewise.
67006         * modules/rmdir (Makefile.am): Likewise.
67007         * modules/rpmatch (Makefile.am): Likewise.
67008         * modules/safe-read (Makefile.am): Likewise.
67009         * modules/safe-write (Makefile.am): Likewise.
67010         * modules/same-inode (Makefile.am): Likewise.
67011         * modules/same (Makefile.am): Likewise.
67012         * modules/save-cwd (Makefile.am): Likewise.
67013         * modules/savedir (Makefile.am): Likewise.
67014         * modules/setenv (Makefile.am): Likewise.
67015         * modules/settime (Makefile.am): Likewise.
67016         * modules/sha1 (Makefile.am): Likewise.
67017         * modules/sig2str (Makefile.am): Likewise.
67018         * modules/snprintf (Makefile.am): Likewise.
67019         * modules/stat-macros (Makefile.am): Likewise.
67020         * modules/stat-time (Makefile.am): Likewise.
67021         * modules/stdbool (Makefile.am): Likewise.
67022         * modules/stdint (Makefile.am): Likewise.
67023         * modules/stdlib-safer (Makefile.am): Likewise.
67024         * modules/stpcpy (Makefile.am): Likewise.
67025         * modules/stpncpy (Makefile.am): Likewise.
67026         * modules/strcase (Makefile.am): Likewise.
67027         * modules/strcasestr (Makefile.am): Likewise.
67028         * modules/strchrnul (Makefile.am): Likewise.
67029         * modules/strcspn (Makefile.am): Likewise.
67030         * modules/strdup (Makefile.am): Likewise.
67031         * modules/strerror (Makefile.am): Likewise.
67032         * modules/strftime (Makefile.am): Likewise.
67033         * modules/strndup (Makefile.am): Likewise.
67034         * modules/strnlen (Makefile.am): Likewise.
67035         * modules/strpbrk (Makefile.am): Likewise.
67036         * modules/strsep (Makefile.am): Likewise.
67037         * modules/strstr (Makefile.am): Likewise.
67038         * modules/strtod (Makefile.am): Likewise.
67039         * modules/strtoimax (Makefile.am): Likewise.
67040         * modules/strtok_r (Makefile.am): Likewise.
67041         * modules/strtol (Makefile.am): Likewise.
67042         * modules/strtoll (Makefile.am): Likewise.
67043         * modules/strtoul (Makefile.am): Likewise.
67044         * modules/strtoull (Makefile.am): Likewise.
67045         * modules/strtoumax (Makefile.am): Likewise.
67046         * modules/strverscmp (Makefile.am): Likewise.
67047         * modules/sys_socket (Makefile.am): Likewise.
67048         * modules/sys_stat (Makefile.am): Likewise.
67049         * modules/sysexits (Makefile.am): Likewise.
67050         * modules/time_r (Makefile.am): Likewise.
67051         * modules/timegm (Makefile.am): Likewise.
67052         * modules/timespec (Makefile.am): Likewise.
67053         * modules/tmpfile-safer (Makefile.am): Likewise.
67054         * modules/trim (Makefile.am): Likewise.
67055         * modules/unistd-safer (Makefile.am): Likewise.
67056         * modules/unlinkdir (Makefile.am): Likewise.
67057         * modules/unlocked-io (Makefile.am): Likewise.
67058         * modules/userspec (Makefile.am): Likewise.
67059         * modules/utime (Makefile.am): Likewise.
67060         * modules/utimecmp (Makefile.am): Likewise.
67061         * modules/utimens (Makefile.am): Likewise.
67062         * modules/vasnprintf (Makefile.am): Likewise.
67063         * modules/vasprintf (Makefile.am): Likewise.
67064         * modules/vsnprintf (Makefile.am): Likewise.
67065         * modules/xalloc (Makefile.am): Likewise.
67066         * modules/xgetcwd (Makefile.am): Likewise.
67067         * modules/xnanosleep (Makefile.am): Likewise.
67068         * modules/xreadlink (Makefile.am): Likewise.
67069         * modules/xstrtod (Makefile.am): Likewise.
67070         * modules/xstrtol (Makefile.am): Likewise.
67071         * modules/xstrtold (Makefile.am): Likewise.
67072         * modules/yesno (Makefile.am): Likewise.
67073         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67074
67075 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * modules/error (Makefile.am): Distribute files through
67078         EXTRA_DIST, not lib_SOURCES.
67079
67080 2006-10-12  Eric Blake  <ebb9@byu.net>
67081
67082         * modules/error (Makefile.am): Distribute files in /lib.
67083         * modules/obstack (Makefile.am): Likewise.
67084
67085 2006-10-12  Bruno Haible  <bruno@clisp.org>
67086
67087         * modules/acl (Makefile.am): Distribute all files in lib/ through
67088         EXTRA_DIST.
67089         * modules/arcfour (Makefile.am): Likewise.
67090         * modules/arctwo (Makefile.am): Likewise.
67091         * modules/argmatch (Makefile.am): Likewise.
67092         * modules/argz (Makefile.am): Likewise.
67093         * modules/atexit (Makefile.am): Likewise.
67094         * modules/backupfile (Makefile.am): Likewise.
67095         * modules/c-strtod (Makefile.am): Likewise.
67096         * modules/c-strtold (Makefile.am): Likewise.
67097         * modules/calloc (Makefile.am): Likewise.
67098         * modules/canon-host (Makefile.am): Likewise.
67099         * modules/canonicalize (Makefile.am): Likewise.
67100         * modules/chdir-long (Makefile.am): Likewise.
67101         * modules/chdir-safer (Makefile.am): Likewise.
67102         * modules/check-version (Makefile.am): Likewise.
67103         * modules/chown (Makefile.am): Likewise.
67104         * modules/cloexec (Makefile.am): Likewise.
67105         * modules/close-stream (Makefile.am): Likewise.
67106         * modules/closeout (Makefile.am): Likewise.
67107         * modules/crc (Makefile.am): Likewise.
67108         * modules/cycle-check (Makefile.am): Likewise.
67109         * modules/des (Makefile.am): Likewise.
67110         * modules/dirfd (Makefile.am): Likewise.
67111         * modules/dirname (Makefile.am): Likewise.
67112         * modules/dup2 (Makefile.am): Likewise.
67113         * modules/euidaccess (Makefile.am): Likewise.
67114         * modules/exclude (Makefile.am): Likewise.
67115         * modules/exitfail (Makefile.am): Likewise.
67116         * modules/fcntl-safer (Makefile.am): Likewise.
67117         * modules/file-type (Makefile.am): Likewise.
67118         * modules/fileblocks (Makefile.am): Likewise.
67119         * modules/filemode (Makefile.am): Likewise.
67120         * modules/filenamecat (Makefile.am): Likewise.
67121         * modules/fnmatch (Makefile.am): Likewise.
67122         * modules/fopen-safer (Makefile.am): Likewise.
67123         * modules/fpending (Makefile.am): Likewise.
67124         * modules/fprintftime (Makefile.am): Likewise.
67125         * modules/free (Makefile.am): Likewise.
67126         * modules/fsusage (Makefile.am): Likewise.
67127         * modules/ftruncate (Makefile.am): Likewise.
67128         * modules/fts (Makefile.am): Likewise.
67129         * modules/gc (Makefile.am): Likewise.
67130         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67131         * modules/getaddrinfo (Makefile.am): Likewise.
67132         * modules/getcwd (Makefile.am): Likewise.
67133         * modules/getdelim (Makefile.am): Likewise.
67134         * modules/getdomainname (Makefile.am): Likewise.
67135         * modules/getgroups (Makefile.am): Likewise.
67136         * modules/gethostname (Makefile.am): Likewise.
67137         * modules/gethrxtime (Makefile.am): Likewise.
67138         * modules/getline (Makefile.am): Likewise.
67139         * modules/getloadavg (Makefile.am): Likewise.
67140         * modules/getlogin_r (Makefile.am): Likewise.
67141         * modules/getopt (Makefile.am): Likewise.
67142         * modules/getpass (Makefile.am): Likewise.
67143         * modules/getpass-gnu (Makefile.am): Likewise.
67144         * modules/getsubopt (Makefile.am): Likewise.
67145         * modules/gettime (Makefile.am): Likewise.
67146         * modules/gettimeofday (Makefile.am): Likewise.
67147         * modules/getugroups (Makefile.am): Likewise.
67148         * modules/getusershell (Makefile.am): Likewise.
67149         * modules/glob (Makefile.am): Likewise.
67150         * modules/group-member (Makefile.am): Likewise.
67151         * modules/hard-locale (Makefile.am): Likewise.
67152         * modules/hash (Makefile.am): Likewise.
67153         * modules/hmac-md5 (Makefile.am): Likewise.
67154         * modules/hmac-sha1 (Makefile.am): Likewise.
67155         * modules/human (Makefile.am): Likewise.
67156         * modules/idcache (Makefile.am): Likewise.
67157         * modules/imaxabs (Makefile.am): Likewise.
67158         * modules/imaxdiv (Makefile.am): Likewise.
67159         * modules/inet_ntop (Makefile.am): Likewise.
67160         * modules/inet_pton (Makefile.am): Likewise.
67161         * modules/inttostr (Makefile.am): Likewise.
67162         * modules/isapipe (Makefile.am): Likewise.
67163         * modules/lchown (Makefile.am): Likewise.
67164         * modules/long-options (Makefile.am): Likewise.
67165         * modules/lstat (Makefile.am): Likewise.
67166         * modules/malloc (Makefile.am): Likewise.
67167         * modules/mathl (Makefile.am): Likewise.
67168         * modules/mbchar (Makefile.am): Likewise.
67169         * modules/md2 (Makefile.am): Likewise.
67170         * modules/md4 (Makefile.am): Likewise.
67171         * modules/md5 (Makefile.am): Likewise.
67172         * modules/memcasecmp (Makefile.am): Likewise.
67173         * modules/memchr (Makefile.am): Likewise.
67174         * modules/memcmp (Makefile.am): Likewise.
67175         * modules/memcoll (Makefile.am): Likewise.
67176         * modules/memcpy (Makefile.am): Likewise.
67177         * modules/memmem (Makefile.am): Likewise.
67178         * modules/memmove (Makefile.am): Likewise.
67179         * modules/mempcpy (Makefile.am): Likewise.
67180         * modules/memrchr (Makefile.am): Likewise.
67181         * modules/memset (Makefile.am): Likewise.
67182         * modules/memxor (Makefile.am): Likewise.
67183         * modules/mkancesdirs (Makefile.am): Likewise.
67184         * modules/mkdir (Makefile.am): Likewise.
67185         * modules/mkdir-p (Makefile.am): Likewise.
67186         * modules/mkdtemp (Makefile.am): Likewise.
67187         * modules/mkstemp (Makefile.am): Likewise.
67188         * modules/mktime (Makefile.am): Likewise.
67189         * modules/modechange (Makefile.am): Likewise.
67190         * modules/mountlist (Makefile.am): Likewise.
67191         * modules/nanosleep (Makefile.am): Likewise.
67192         * modules/openat (Makefile.am): Likewise.
67193         * modules/pagealign_alloc (Makefile.am): Likewise.
67194         * modules/physmem (Makefile.am): Likewise.
67195         * modules/poll (Makefile.am): Likewise.
67196         * modules/posixtm (Makefile.am): Likewise.
67197         * modules/posixver (Makefile.am): Likewise.
67198         * modules/putenv (Makefile.am): Likewise.
67199         * modules/quote (Makefile.am): Likewise.
67200         * modules/quotearg (Makefile.am): Likewise.
67201         * modules/raise (Makefile.am): Likewise.
67202         * modules/read-file (Makefile.am): Likewise.
67203         * modules/readline (Makefile.am): Likewise.
67204         * modules/readlink (Makefile.am): Likewise.
67205         * modules/readtokens (Makefile.am): Likewise.
67206         * modules/readutmp (Makefile.am): Likewise.
67207         * modules/realloc (Makefile.am): Likewise.
67208         * modules/regex (Makefile.am): Likewise.
67209         * modules/rename (Makefile.am): Likewise.
67210         * modules/rename-dest-slash (Makefile.am): Likewise.
67211         * modules/rijndael (Makefile.am): Likewise.
67212         * modules/rmdir (Makefile.am): Likewise.
67213         * modules/rpmatch (Makefile.am): Likewise.
67214         * modules/safe-read (Makefile.am): Likewise.
67215         * modules/safe-write (Makefile.am): Likewise.
67216         * modules/same (Makefile.am): Likewise.
67217         * modules/save-cwd (Makefile.am): Likewise.
67218         * modules/savedir (Makefile.am): Likewise.
67219         * modules/setenv (Makefile.am): Likewise.
67220         * modules/settime (Makefile.am): Likewise.
67221         * modules/sha1 (Makefile.am): Likewise.
67222         * modules/sig2str (Makefile.am): Likewise.
67223         * modules/snprintf (Makefile.am): Likewise.
67224         * modules/stdlib-safer (Makefile.am): Likewise.
67225         * modules/stpcpy (Makefile.am): Likewise.
67226         * modules/stpncpy (Makefile.am): Likewise.
67227         * modules/strcase (Makefile.am): Likewise.
67228         * modules/strcasestr (Makefile.am): Likewise.
67229         * modules/strchrnul (Makefile.am): Likewise.
67230         * modules/strcspn (Makefile.am): Likewise.
67231         * modules/strdup (Makefile.am): Likewise.
67232         * modules/strerror (Makefile.am): Likewise.
67233         * modules/strftime (Makefile.am): Likewise.
67234         * modules/strndup (Makefile.am): Likewise.
67235         * modules/strnlen (Makefile.am): Likewise.
67236         * modules/strpbrk (Makefile.am): Likewise.
67237         * modules/strsep (Makefile.am): Likewise.
67238         * modules/strstr (Makefile.am): Likewise.
67239         * modules/strtod (Makefile.am): Likewise.
67240         * modules/strtoimax (Makefile.am): Likewise.
67241         * modules/strtok_r (Makefile.am): Likewise.
67242         * modules/strtol (Makefile.am): Likewise.
67243         * modules/strtoll (Makefile.am): Likewise.
67244         * modules/strtoul (Makefile.am): Likewise.
67245         * modules/strtoull (Makefile.am): Likewise.
67246         * modules/strtoumax (Makefile.am): Likewise.
67247         * modules/strverscmp (Makefile.am): Likewise.
67248         * modules/time_r (Makefile.am): Likewise.
67249         * modules/timegm (Makefile.am): Likewise.
67250         * modules/tmpfile-safer (Makefile.am): Likewise.
67251         * modules/unistd-safer (Makefile.am): Likewise.
67252         * modules/unlinkdir (Makefile.am): Likewise.
67253         * modules/userspec (Makefile.am): Likewise.
67254         * modules/utime (Makefile.am): Likewise.
67255         * modules/utimecmp (Makefile.am): Likewise.
67256         * modules/utimens (Makefile.am): Likewise.
67257         * modules/vasnprintf (Makefile.am): Likewise.
67258         * modules/vasprintf (Makefile.am): Likewise.
67259         * modules/vsnprintf (Makefile.am): Likewise.
67260         * modules/xalloc (Makefile.am): Likewise.
67261         * modules/xgetcwd (Makefile.am): Likewise.
67262         * modules/xnanosleep (Makefile.am): Likewise.
67263         * modules/xreadlink (Makefile.am): Likewise.
67264         * modules/xstrtod (Makefile.am): Likewise.
67265         * modules/xstrtol (Makefile.am): Likewise.
67266         * modules/xstrtold (Makefile.am): Likewise.
67267         * modules/yesno (Makefile.am): Likewise.
67268
67269 2006-10-12  Jim Meyering  <jim@meyering.net>
67270
67271         * m4/getloadavg.m4: Revert the change below.
67272
67273         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67274         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67275         fail with a symlink, which is what coreutils' ./bootstrap now
67276         creates by default.
67277
67278 2006-10-12  Bruno Haible  <bruno@clisp.org>
67279
67280         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67281         mingw.
67282         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67283         MSVC and mingw explicitly.
67284
67285 2006-10-11  Simon Josefsson  <jas@extundo.com>
67286             Bruno Haible  <bruno@clisp.org>
67287
67288         Add support for multiple gnulib-tool invocations in the scope of a
67289         single configure.ac file.
67290         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67291         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67292         with the same contents as the _LIBADD variable.
67293         (func_emit_initmacro_start, func_emit_initmacro_end,
67294         func_emit_initmacro_done): New functions.
67295         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67296         gl_LIBOBJS and gl_LTLIBOBJS.
67297
67298 2006-10-11  Bruno Haible  <bruno@clisp.org>
67299
67300         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67301         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67302         autoreconf. Instead, invoke autopoint explicitly but move back the
67303         *.m4 files from gnulib.
67304
67305 2006-10-11  Bruno Haible  <bruno@clisp.org>
67306
67307         * gnulib-tool (func_usage): Make module names after --create-testdir
67308         optional.
67309         (func_create_testdir): If no module was specified, use nearly all
67310         modules.
67311
67312 2006-10-12  Jim Meyering  <jim@meyering.net>
67313
67314         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67315         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67316         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67317         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67318         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67319         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67320         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67321         (fts_set_stat_required): New function.
67322         (fts_open): Defer the calls to fts_stat, if possible or requested.
67323         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67324         into fts_stat itself.
67325         (fts_read): Perform any required (deferred) fts_stat call.
67326         (fts_build): Likewise, for the directory we're about to open and read.
67327         In the readdir loop, carefully decide whether each entry will require
67328         an eventual call to fts_stat, using dirent.d_type info if available.
67329         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67330         a command line argument into this function.  Update all callers.
67331         Map a return value of FTS_DOT to FTS_D for a command line argument.
67332         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67333         Thanks to Miklos Szeredi for his tenacity and for the initial
67334         bug report about "find" failing on a FUSE-based file system.
67335
67336         * lib/fts.c (fts_open): Use consistent indentation.
67337
67338 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67341         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67342         reported by Jim Meyering.  All uses of cache variables renamed
67343         to match Autoconf's.
67344         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67345         the other one.
67346
67347         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67348         Fix misspelling in diagnostic.
67349
67350 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67353         defined.  Problem reported by Matthew Woehlke.
67354
67355         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67356         Add support for Tandem NonStop R series.
67357         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67358         Use new macro.
67359
67360         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67361         (has_trailing_slash): Omit size arg; all callers changed.
67362         Omit 'inline', since it doesn't help performance and we'd
67363         need to configure it.
67364         Don't count //, ///, etc. as having a trailing slash.
67365         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67366         (rpl_rename_dest_slash): On failure, use rename's errno rather
67367         than (in some cases) an incorrect or junk errno.
67368         Simplify code by removing need to compute length; this does
67369         cause it to make two passes instead of one over the file name,
67370         but it's worth it.
67371
67372         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67373         change, since Autoconf's version may no longer be appropriate now
67374         that we are using CVS Autoconf's version.  Add support for Tandem.
67375
67376 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67377             Bruno Haible  <bruno@clisp.org>
67378
67379         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67380         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67381         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67382         gl_AC_TYPE_LONG_LONG.
67383
67384         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67385         instead of HAVE_LONG_LONG.
67386         * lib/printf-args.c (printf_fetchargs): Likewise.
67387         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67388         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67389         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67390         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67391         gl_AC_TYPE_LONG_LONG.
67392
67393 2006-10-11  Bruno Haible  <bruno@clisp.org>
67394
67395         * m4/longlong.m4: Add comments.
67396         * m4/ulonglong.m4: Likewise.
67397
67398 2006-10-10  Bruno Haible  <bruno@clisp.org>
67399
67400         Make it possible to #define stpcpy, strdup to aliases.
67401         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67402         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67403
67404 2006-10-10  Bruno Haible  <bruno@clisp.org>
67405
67406         Make it possible to #define gcd to an alias.
67407         * lib/gcd.c: Include config.h.
67408
67409 2006-10-10  Bruno Haible  <bruno@clisp.org>
67410
67411         Make it possible to #define c_isascii to an alias.
67412         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67413         defined. Undefine the macros before defining them, to avoid gcc
67414         warnings.
67415         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67416         define NO_C_CTYPE_MACROS early.
67417
67418 2006-10-10  Bruno Haible  <bruno@clisp.org>
67419
67420         Make it possible to #define set_program_name to an alias.
67421         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67422         ENABLE_RELOCATABLE early.
67423
67424 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67427         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67428         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67429         More generally, don't assume that 64-bit signed int is available
67430         if unsigned int is, and vice versa.
67431         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67432         unsigned symbols, not on their signed counterparts.
67433         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67434         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67435         (UINT64_C, UINTMAX_C):
67436         Likewise.
67437         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67438         unsigned counterparts.
67439         (Have_long_long, Unsigned): New macros.
67440         (Int): Renamed from INT.
67441         (strtoimax): Use the new macros.
67442         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67443         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67444         * modules/inttypes (inttypes.h): Substitute
67445         HAVE_UNSIGNED_LONG_LONG_INT.
67446         * modules/stdint (stdint.h): Likewise.
67447         (Files): Add m4/ulonglong.m4.
67448
67449 2006-10-10  Bruno Haible  <bruno@clisp.org>
67450
67451         Fix a gcc -Wshadow warning.
67452         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67453         to 'bucket'.
67454         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67455         gl_linked_indexof_from_to): Likewise.
67456         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67457         Likewise.
67458         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67459         Likewise.
67460         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67461         Reported by Eric Blake.
67462
67463 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67466         for NetBSD.  Problem reported by Bruno Haible.
67467
67468 2006-10-09  Jim Meyering  <jim@meyering.net>
67469
67470         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67471         Patch from Bruno Haible.
67472
67473 2006-10-09  Jim Meyering  <jim@meyering.net>
67474
67475         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67476         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67477         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67478
67479 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67480
67481         Don't include <config.h> twice; this doesn't work in some cases,
67482         e.g., when config.h has "#define intmax_t long long int" and
67483         we include <config.h>, <inttypes.h>, <config.h> in that order.
67484         Problem reported by Matthew Woehlke in:
67485         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67486         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67487         * lib/fts-cycle.c: Don't include config.h.
67488         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67489         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67490         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67491         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67492         inttypes.h.
67493         * lib/xstrtoumax.c: Likewise.
67494         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67495         __strtol and the like, so that this module is more like its siblings.
67496         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67497         Remove; no longer needed now that we assume gnulib inttypes.h.
67498
67499 2006-10-08  Bruno Haible  <bruno@clisp.org>
67500
67501         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67502         option.
67503
67504 2006-10-07  Jim Meyering  <jim@meyering.net>
67505
67506         * modules/inttypes (inttypes.h): Revert what seems to have been
67507         an inadvertent part of today's change: use "|", not "/" in the
67508         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67509
67510 2006-10-07  Bruno Haible  <bruno@clisp.org>
67511
67512         * modules/sublist: New file.
67513
67514 2006-10-07  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67517         * modules/argz (argz.h): Likewise.
67518         * modules/arpa_inet (arpa/inet.h): Likewise.
67519         * modules/byteswap (byteswap.h): Likewise.
67520         * modules/configmake (configmake.h): Likewise.
67521         * modules/fcntl (fcntl.h): Likewise.
67522         * modules/fnmatch (fnmatch.h): Likewise.
67523         * modules/getopt (getopt.h): Likewise.
67524         * modules/glob (glob.h): Likewise.
67525         * modules/inttypes (inttypes.h): Likewise.
67526         * modules/netinet_in (netinet/in.h): Likewise.
67527         * modules/poll (poll.h): Likewise.
67528         * modules/stdbool (stdbool.h): Likewise.
67529         * modules/stdint (stdint.h): Likewise.
67530         * modules/sys_select (sys/select.h): Likewise.
67531         * modules/sys_socket (sys/socket.h): Likewise.
67532         * modules/sys_stat (sys/stat.h): Likewise.
67533         * modules/sysexits (sysexits.h): Likewise.
67534         * modules/unistd (unistd.h): Likewise.
67535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67536         Add a "DO NOT EDIT" comment to the generated file.
67537         (func_import): Likewise for gnulib-comp.m4.
67538
67539 2006-10-07  Bruno Haible  <bruno@clisp.org>
67540
67541         * lib/gl_sublist.h: New file.
67542         * lib/gl_sublist.c: New file.
67543
67544 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67547         name (relative to the original working directory) and the file
67548         name component (relative to the temporary working directory).  All
67549         callers changed.
67550         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67551         * lib/mkdir-p.c (make_dir_parents): Likewise.
67552         * lib/mkdir-p.h (make_dir_parents): Likewise.
67553
67554 2006-10-06  Eric Blake  <ebb9@byu.net>
67555
67556         Define several macros for use by the clean-temp module.
67557         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67558         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67559         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67560
67561         * lib/clean-temp.h (close_stream_temp): New declaration.
67562         * lib/clean-temp.c (includes): Pull in headers according to what
67563         other modules are in use.
67564         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67565
67566 2006-10-06  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67569         instead of fopen, fwriteerror.
67570
67571 2006-10-06  Bruno Haible  <bruno@clisp.org>
67572
67573         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67574         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67575         int.
67576         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67577         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67578         Return an error indicator.
67579         Suggested by Eric Blake.
67580
67581 2006-10-06  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67584         Reported by Eric Blake.
67585
67586 2006-10-06  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/closeout (Description): Mention stderr too.
67589
67590 2006-10-06  Bruno Haible  <bruno@clisp.org>
67591         and Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         * lib/closeout.c (close_stdout): Also close stderr.
67594         * lib/closeout.h: Update comment.
67595
67596 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67599         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67600         * lib/dirchownmod.c: Include lchown.h.
67601         * lib/lchown.c: Don't include files that lchown.h now includes.
67602         Don't declare chown, since lchown.h now does that.
67603         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67604         (lchown): Define to rpl_chown if lchown is declared but
67605         does not exist.  Declare using a prototype if lchown is not
67606         declared.  Add a copyright notice.
67607         * lib/mkstemp.h: Include <unistd.h>.
67608         * lib/openat.c: Include lchown.h.
67609
67610         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67611         we now test for that separately.
67612         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67613         rather than O_NOFOLLOW, when testing whether it's possible to
67614         avoid a race condition reliably.
67615         * lib/savewd.c (savewd_chdir): Likewise.
67616
67617         Remove macros that are no longer needed now that stdint.h is
67618         reliable.
67619         * lib/fsusage.c (UINTMAX_MAX): Remove.
67620         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67621         * lib/utimecmp.c (SIZE_MAX): Remove.
67622
67623         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67624
67625         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67626         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67627         O_NOATIME works.
67628
67629 2006-10-05  Bruno Haible  <bruno@clisp.org>
67630
67631         * lib/gl_list.h (gl_sortedlist_search_from_to,
67632         gl_sortedlist_indexof_from_to): New declarations.
67633         (gl_list_implementation): New fields sortedlist_search_from_to,
67634         sortedlist_indexof_from_to.
67635         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67636         inline functions.
67637         * lib/gl_list.c (gl_sortedlist_search_from_to,
67638         gl_sortedlist_indexof_from_to): New functions.
67639         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67640         function.
67641         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67642         (gl_array_sortedlist_search_from_to): New function.
67643         (gl_array_list_implementation): Update.
67644         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67645         function.
67646         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67647         (gl_carray_sortedlist_search_from_to): New function.
67648         (gl_carray_list_implementation): Update.
67649         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67650         gl_linked_sortedlist_indexof_from_to): New functions.
67651         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67652         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67653         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67654         gl_tree_sortedlist_indexof_from_to): New functions.
67655         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67656         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67657         Update.
67658         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67659         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67660         Update.
67661
67662 2006-10-05  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67665         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67666         (struct gl_list_implementation): Add fields search_from_to,
67667         indexof_from_to. Remove fields search, indexof.
67668         (gl_list_search): Use the search_from_to method.
67669         (gl_list_search_from, gl_list_search_from_to): New functions.
67670         (gl_list_indexof): Use the indexof_from_to method.
67671         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67672         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67673         (gl_list_search_from, gl_list_search_from_to): New functions.
67674         (gl_list_indexof): Use the indexof_from_to method.
67675         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67676         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67677         gl_array_indexof. Add start_index, end_index arguments.
67678         (gl_array_search_from_to): Renamed from gl_array_search. Add
67679         start_index, end_index arguments.
67680         (gl_array_remove, gl_array_list_implementation): Update.
67681         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67682         gl_carray_indexof. Add start_index, end_index arguments.
67683         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67684         start_index, end_index arguments.
67685         (gl_carray_remove, gl_carray_list_implementation): Update.
67686         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67687         gl_linked_search. Add start_index, end_index arguments.
67688         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67689         start_index, end_index arguments.
67690         (gl_linked_remove): Update.
67691         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67692         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67693         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67694         field to 'size_t'.
67695         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67696         gl_tree_search. Add start_index, end_index arguments.
67697         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67698         start_index, end_index arguments.
67699         (gl_tree_remove): Update.
67700         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67701         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67702         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67703         function.
67704         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67705         gl_tree_search. Add start_index, end_index arguments.
67706         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67707         start_index, end_index arguments.
67708         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67709         Update.
67710         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67711
67712 2006-10-05  Bruno Haible  <bruno@clisp.org>
67713
67714         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67715
67716         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67717         fwriteerror_temp): New declarations.
67718         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67719         (descriptors): New variable.
67720         (cleanup): First, close the descriptors.
67721         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67722         fclose_temp, fwriteerror_temp): New functions.
67723
67724 2006-10-04  Jim Meyering  <jim@meyering.net>
67725
67726         * lib/fts.c (fts_open): Tiny comment change.
67727
67728 2006-10-04  Bruno Haible  <bruno@clisp.org>
67729
67730         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67731         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67732         gl_LOCK_BODY.
67733         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67734         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67735         gl_LOCK_EARLY_BODY.
67736         (gl_LOCK): Require gl_LOCK_BODY.
67737
67738 2006-10-04  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67741         (gl_oset_search_atleast): New declaration.
67742         (struct gl_oset_implementation): Add field 'search_atleast'.
67743         (gl_oset_search_atleast): New inline function.
67744         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67745         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67746         (gl_array_oset_implementation): Update.
67747         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67748         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67749         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67750
67751 2006-10-04  Bruno Haible  <bruno@clisp.org>
67752
67753         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67754
67755 2006-10-03  Bruno Haible  <bruno@clisp.org>
67756
67757         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67758         from gl_avltreehash_list_implementation.
67759
67760 2006-10-03  Bruno Haible  <bruno@clisp.org>
67761
67762         * lib/gl_oset.c (gl_oset_add): Fix return type.
67763
67764 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67765
67766         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67767
67768 2006-10-02  Eric Blake  <ebb9@byu.net>
67769
67770         * modules/strnlen (Depends-on): Add extensions.
67771
67772 2006-10-02  Eric Blake  <ebb9@byu.net>
67773
67774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67775         definition in 2.60+.
67776
67777 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67778
67779         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67780         checks.
67781
67782 2006-10-02  Bruno Haible  <bruno@clisp.org>
67783
67784         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67785         to the AUTOMAKE_OPTIONS.
67786         Reported by Jim Meyering.
67787
67788 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         Work around bug in Solaris 10 /proc file system:
67791         /proc/self/fd/NNN/.. isn't the parent directory of
67792         the directory whose file descriptor is NNN.  This needs to
67793         be worked around at run time, not compile time, since a
67794         program might be built on Solaris 8, where things work, and
67795         run on Solaris 10.
67796         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67797         to use the following interface instead:
67798         (OPENAT_BUFFER_SIZE): New macro.
67799         (openat_proc_name): New function.
67800         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67801         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67802         Likewise.
67803         * lib/openat-proc.c: New file.
67804         * modules/openat (Files): Add lib/openat-proc.c.
67805         (Depends-on): Add same-inode, stdbool.
67806         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67807
67808 2006-09-29  Bruno Haible  <bruno@clisp.org>
67809
67810         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67811         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67812         argument. Set stdout_closed before testing for ferror, not after.
67813         (fwriteerror, fwriteerror_no_ebadf): New functions.
67814
67815 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67816
67817         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67818
67819 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67820
67821         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67822         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67823
67824 2006-09-28  Jim Meyering  <jim@meyering.net>
67825
67826         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67827         Include <unistd.h>.
67828
67829 2006-09-28  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67832         * modules/linkedhash-list (Depends-on): Likewise.
67833         * modules/rbtreehash-list (Depends-on): Likewise.
67834
67835 2006-09-28  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/strndup.h: Simplify the redefinition of strndup.
67838         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67840
67841 2006-09-28  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67844         * lib/gl_linkedhash_list.c: Likewise.
67845         * lib/gl_rbtreehash_list.c: Likewise.
67846
67847 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67850         getaddrinfo.
67851
67852         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67853         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67854         it causes <stdio_ext.h> to cause a compile-time error.
67855         Problem reported by Nelson H. F. Beebe.
67856         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67857         of HAVE_DECL___PENDING.
67858
67859         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67860         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67861         declaration.
67862
67863 2006-09-27  Jim Meyering  <jim@meyering.net>
67864
67865         This file could end up with a definition for a function
67866         named __strndup, rather than rpl_strndup on a system with
67867         incomplete weak_alias support.
67868         * lib/strndup.c (strndup): Rename from __strndup.
67869         Remove #defines that used to map __strndup to strndup.
67870         Don't use K&R prototypes.
67871         Remove LIBC-related code, since this file is not sync'd with glibc.
67872         * lib/strndup.h: Revamp, accordingly.
67873         * m4/strndup.m4: Modernize.
67874
67875 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * modules/savewd (Depends-on): Add 'raise'.
67878         * lib/savewd.c: Include <signal.h>, for 'raise'.
67879
67880 2006-09-26  Jim Meyering  <jim@meyering.net>
67881
67882         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67883         when we detect Darwin 8.7.0's acl_get_file bug.
67884         Rearrange to perform the new (below) run-test while $LIBS
67885         contains any acl-related library.  Set USE_ACL at the end.
67886         (gl_ACL_GET_FILE): New function.
67887
67888 2006-09-26  Eric Blake  <ebb9@byu.net>
67889
67890         * lib/verror.c: Include <config.h> unconditionally.
67891
67892 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * modules/clock-time (Maintainer): Add self.
67895         * modules/getlogin_r (Depends-on): Add extensions.
67896
67897 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67898
67899         * modules/clock-time: New module.
67900         * modules/nanosleep (Depends-on): Add clock-time.
67901         * modules/gethrxtime (Depends-on): Likewise.
67902         * modules/gettime (Depends-on): Likewise.
67903         * modules/settime (Depends-on): Likewise.
67904
67905         * modules/fts-lgpl: Depend on openat.
67906         * modules/mkancesdirs: Depend on savewd.
67907         * modules/mkdir-p: Likewise.
67908
67909 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67910
67911         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67912
67913         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67914         `gl_have_arbitrary_file_name_length_limit' to
67915         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67916         actually works between configure runs.
67917
67918 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67919             Bruno Haible  <bruno@clisp.org>
67920
67921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67922
67923 2006-09-25  Jim Meyering  <jim@meyering.net>
67924
67925         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67926         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67927
67928 2006-09-25  Eric Blake  <ebb9@byu.net>
67929
67930         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67931         exec's in 2006-09-18 patch when shuffling fds.
67932
67933 2006-09-25  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67936         Reported by Jim Meyering.
67937
67938 2006-09-24  Jim Meyering  <jim@meyering.net>
67939
67940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67941         compare a pointer against a literal "0".  That caused failures with
67942         at least HP-UX's hpcc.
67943
67944 2006-09-22  Simon Josefsson  <jas@extundo.com>
67945
67946         * modules/gc-sha1:
67947         * modules/gc-md4:
67948         * modules/gc-hmac-sha1:
67949         * modules/gc-hmac-md5:
67950         * modules/gc-des:
67951         * modules/gc-arcfour: Distribute more files.
67952
67953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67954
67955         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67956         (gl_linked_iterator_from_to): Initialize struct completely.
67957         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67958         (gl_tree_iterator_from_to): Likewise
67959         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67960         * lib/gl_array_list.c [lint] (gl_array_iterator)
67961         (gl_array_iterator_from_to): Likewise.
67962         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67963         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67964         (gl_carray_iterator_from_to): Likewise.
67965
67966         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67967         * lib/md4.c (md4_process_block): Remove unused variable.
67968         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67969         parentheses for clarity.
67970
67971 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67972
67973         * modules/bison-i18n (Depends-on): Add gettext.
67974
67975 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67976
67977         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67978         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67979         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67980         also add missing comma that caused broken test.
67981         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67982         stdlib.h, for `abort'.
67983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67984         variables.
67985         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67986         include unistd.h if present, for `rmdir'.
67987         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67988         variables.
67989         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67990         in the process include standard headers for prototypes.
67991         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67992         gets declared on GNU/Linux.
67993         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67994         unistd.h, for `rmdir'.
67995         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67996
67997         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67998         always true.
67999         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68000
68001         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68002
68003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68004
68005         * gnulib-tool (func_version): Create output all at once.  This
68006         may help avoid triggering unnecessary SIGPIPEs, and at any
68007         rate it doesn't hurt.
68008
68009 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68010             Bruno Haible  <bruno@clisp.org>
68011
68012         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68013         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68014         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68015
68016         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68017         (gl_FUNC_VASPRINTF): Invoke it.
68018
68019 2006-09-22  Bruno Haible  <bruno@clisp.org>
68020
68021         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68022         getloadavg.c as first argument.
68023
68024 2006-09-22  Bruno Haible  <bruno@clisp.org>
68025
68026         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68027         at the beginning of the gl_INIT macro.
68028         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68029         gl_GETLOADAVG.
68030
68031 2006-09-22  Bruno Haible  <bruno@clisp.org>
68032
68033         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68034         module.
68035         Suggested by Ralf Wildenhues.
68036
68037 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         Import this patch from libc:
68040
68041         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68042
68043         * lib/regex_internal.c (re_string_reconstruct): Handle
68044         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68045         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68046         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68047         re_string_context_at.
68048
68049         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68050         now requires it.
68051         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68052         gl_REGEX now does it for us.
68053         (gl_REGEX): Add test taken from
68054         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68055
68056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68057         Check that large offsets work.  Modernize Autoconf usages.
68058         Prefer "yes" to mean a good thing rather than a bad.
68059         Don't put "#define mkstemp" in config.h, as this might interfere
68060         with standard system headers that "#define mkstemp mkstemp64".
68061
68062         * modules/mkstemp (Depends-on): Add extensions, so that
68063         mkstemp is visible on some platforms.
68064         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68065         (Include): Change to "mkstemp.h" from <stdlib.h>.
68066         (Files): Add mkstemp.h.
68067
68068         * lib/mkstemp.h: New file, since some standard headers
68069         #define mkstemp.
68070         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68071         Include "mkstemp.h".
68072         Make the _LIBC code resemble glibc original more,
68073         e.g., use K&R style.
68074         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68075         (mkstemp): Remove, since mkstemp.h does this for us.
68076         * lib/stdlib--.h: Include mkstemp.h.
68077
68078         Import this patch from libc:
68079
68080         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68081
68082         * lib/tempname.c (__gen_tempname): Change attempts_min
68083         into a macro.  Use preprocessor to decide how to initialize
68084         attempts [Coverity CID 67].
68085
68086 2006-09-20  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/mkdtemp.c: Import from libc.
68089         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68090                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68091                 attempts_min into a macro.  Use preprocessor to decide how to
68092                 initialize attempts [Coverity CID 67].
68093         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68094                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68095                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68096
68097 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68098
68099         * gnulib-tool (func_exit): New function, to allow to pass the
68100         exit status portably through the trap.  Use everywhere.
68101         (--help, --version): Signal a write error.
68102         (trap): catch SIGPIPE, for write errors.
68103         Exit at the end of the trap, with the correct exit status.
68104
68105 2006-09-19  Karl Berry  <karl@gnu.org>
68106
68107         * doc/gnulib.texi: note about the license texinfo files.
68108
68109 2006-09-19  Eric Blake  <ebb9@byu.net>
68110
68111         * gnulib-tool: Avoid space-tab.
68112
68113 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68116         that prevented coreutils 6.1 from building.  Problem reported
68117         by Petter Reinholdtsen.
68118
68119 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * gnulib-tool (avoidlist): Fix typo that broke options like
68122         --avoid=lock that are used by coreutils bootstrap.
68123
68124 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68125
68126         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68127         more systematically.
68128
68129 2006-09-18  Jim Meyering  <jim@meyering.net>
68130
68131         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68132
68133 2006-09-18  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68136
68137 2006-09-18  Bruno Haible  <bruno@clisp.org>
68138
68139         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68140         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68141         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68142         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68143         * m4/gettext.m4: Require autoconf >= 2.52.
68144         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68145         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68146         of gl_cv_header_inttypes_h.
68147
68148 2006-09-18  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/javaversion.c: Include configmake.h.
68151
68152 2006-09-18  Bruno Haible  <bruno@clisp.org>
68153
68154         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68155         avoid that the while loops be executed in a subshell.
68156
68157 2006-09-18  Bruno Haible  <bruno@clisp.org>
68158
68159         * MODULES.html.sh (func_module): Break long lines.
68160         Suggested by Bruce Korb <bkorb@gnu.org>.
68161
68162 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68163
68164         Speed up by a factor of 1.12.
68165         * gnulib-tool (nl): New variable.
68166         (func_import): Rewrite include directive extraction to only read each
68167         directive once.
68168
68169 2006-09-17  Bruno Haible  <bruno@clisp.org>
68170
68171         * modules/javaversion (Makefile.am): Remove DEFS setting.
68172         (Depends-on): Add configmake, for PKGDATADIR definition.
68173
68174 2006-09-17  Bruno Haible  <bruno@clisp.org>
68175
68176         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68177
68178 2006-09-17  Bruno Haible  <bruno@clisp.org>
68179
68180         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68181         (func_modules_transitive_closure, func_modules_add_dummy,
68182         func_modules_to_filelist, func_import, func_create_testdir,
68183         func_create_megatestdir, ...): Use it wherever possible.
68184         Suggested by Ralf Wildenhues.
68185
68186 2006-09-16  Karl Berry  <karl@gnu.org>
68187
68188         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68189         to avoid sectioning errors.
68190         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68191         [ifinfo]: blank line after @center-ed titles.
68192         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68193         Spell FSF address consistently with others.
68194         (These changes approved by rms.)
68195
68196 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68197
68198         Speed up by a factor of 1.61.
68199         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68200         already checked module names again.
68201
68202 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68203
68204         Speed up by a factor of 1.13.
68205         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68206         for new_files, and the input to func_add_or_update.
68207
68208 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68209
68210         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68211         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68212
68213 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * modules/mkancesdirs (Depends-on): Add fcntl.
68216         * modules/savewd: New file.
68217         * MODULES.html.sh (File system functions): Add savewd.
68218
68219         * modules/configmake (Makefile.am): Add support for the
68220         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68221
68222 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * m4/savewd.m4: New file.
68225
68226 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68229         (dirchownmod): New arg FD.  All callers changed.
68230         Use FD rather than opening the directory ourself, as opening is
68231         now the caller's responsibility.
68232         * lib/dirchownmod.h: Likewise.
68233         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68234         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68235         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68236         (test_dir): Remove.
68237         (mkancesdirs): Return length of prefix of FILE that has already
68238         been made, or -2 if there is a child doing the work.  Redo
68239         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68240         ".", and treat ".." specially since it might stray back into
68241         already-created areas.  Use a subprocess if necessary.  New arg
68242         WD; all users changed.  MAKE_DIR function should now return 1
68243         if it creates a directory that is not readable.  Return -2 if
68244         a child process is spun off.
68245         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68246         Adjust signature to match code.
68247         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68248         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68249         all users changed.
68250         * lib/savewd.c, lib/savewd.h: New files.
68251
68252 2006-09-15  Jim Meyering  <jim@meyering.net>
68253
68254         * modules/rename-dest-slash: New module.
68255         * MODULES.html.sh (posix_compat): Add it here.
68256
68257         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68258
68259 2006-09-15  Jim Meyering  <jim@meyering.net>
68260
68261         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68262         file.
68263
68264         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68265
68266 2006-09-15  Jim Meyering  <jim@meyering.net>
68267
68268         * lib/rename-dest-slash.c (has_trailing_slash): Use
68269         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68270         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68271         test before testing whether SRC is a directory.
68272         Suggestions from Bruno Haible.
68273
68274         Avoid a warning about an unused variable.
68275         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68276         into the #ifdef block where it's used.
68277
68278         * lib/rename-dest-slash.c: New file.
68279
68280 2006-09-14  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/allocsa.c: Include <config.h> unconditionally.
68283         * lib/asnprintf.c: Likewise.
68284         * lib/asprintf.c: Likewise.
68285         * lib/c-strcasecmp.c: Likewise.
68286         * lib/c-strcasestr.c: Likewise.
68287         * lib/c-strncasecmp.c: Likewise.
68288         * lib/c-strstr.c: Likewise.
68289         * lib/classpath.c: Likewise.
68290         * lib/clean-temp.c: Likewise.
68291         * lib/concatpath.c: Likewise.
68292         * lib/copy-file.c: Likewise.
68293         * lib/csharpcomp.c: Likewise.
68294         * lib/csharpexec.c: Likewise.
68295         * lib/execute.c: Likewise.
68296         * lib/fatal-signal.c: Likewise.
68297         * lib/findprog.c: Likewise.
68298         * lib/fwriteerror.c: Likewise.
68299         * lib/gl_array_list.c: Likewise.
68300         * lib/gl_array_oset.c: Likewise.
68301         * lib/gl_avltree_list.c: Likewise.
68302         * lib/gl_avltree_oset.c: Likewise.
68303         * lib/gl_avltreehash_list.c: Likewise.
68304         * lib/gl_carray_list.c: Likewise.
68305         * lib/gl_linked_list.c: Likewise.
68306         * lib/gl_linkedhash_list.c: Likewise.
68307         * lib/gl_list.c: Likewise.
68308         * lib/gl_oset.c: Likewise.
68309         * lib/gl_rbtree_list.c: Likewise.
68310         * lib/gl_rbtree_oset.c: Likewise.
68311         * lib/gl_rbtreehash_list.c: Likewise.
68312         * lib/imaxabs.c: Likewise.
68313         * lib/imaxdiv.c: Likewise.
68314         * lib/javacomp.c: Likewise.
68315         * lib/javaexec.c: Likewise.
68316         * lib/javaversion.c: Likewise.
68317         * lib/linebreak.c: Likewise.
68318         * lib/localcharset.c: Likewise.
68319         * lib/lock.c: Likewise.
68320         * lib/mbchar.c: Likewise.
68321         * lib/mbswidth.c: Likewise.
68322         * lib/mkdtemp.c: Likewise.
68323         * lib/pipe.c: Likewise.
68324         * lib/printf-args.c: Likewise.
68325         * lib/printf-parse.c: Likewise.
68326         * lib/progname.c: Likewise.
68327         * lib/progreloc.c: Likewise.
68328         * lib/readlink.c: Likewise.
68329         * lib/sh-quote.c: Likewise.
68330         * lib/stpcpy.c: Likewise.
68331         * lib/stpncpy.c: Likewise.
68332         * lib/strcasecmp.c: Likewise.
68333         * lib/strcasestr.c: Likewise.
68334         * lib/strcspn.c: Likewise.
68335         * lib/striconv.c: Likewise.
68336         * lib/strncasecmp.c: Likewise.
68337         * lib/strnlen1.c: Likewise.
68338         * lib/strstr.c: Likewise.
68339         * lib/strtok_r.c: Likewise.
68340         * lib/tls.c: Likewise.
68341         * lib/tmpdir.c: Likewise.
68342         * lib/unicodeio.c: Likewise.
68343         * lib/unsetenv.c: Likewise.
68344         * lib/vasnprintf.c: Likewise.
68345         * lib/vasprintf.c: Likewise.
68346         * lib/wait-process.c: Likewise.
68347         * lib/xallocsa.c: Likewise.
68348         * lib/xsetenv.c: Likewise.
68349         * lib/xstriconv.c: Likewise.
68350
68351 2006-09-13  Simon Josefsson  <jas@extundo.com>
68352
68353         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68354         that internally, suggested by Ralf Wildenhues
68355         <Ralf.Wildenhues@gmx.de>.
68356
68357 2006-09-13  Simon Josefsson  <jas@extundo.com>
68358
68359         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68360         @LIBOBJS@.
68361         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68362
68363 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68366         longer worry about uses that don't define HAVE_CONFIG_H.
68367         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68368         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68369         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68370         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68371         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68372         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68373         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68374         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68375         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68376         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68377         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68378         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68379         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68380         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68381         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68382         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68383         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68384         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68385         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68386         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68387         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68388         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68389         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68390         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68391         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68392         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68393         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68394         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68395         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68396         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68397         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68398         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68399         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68400         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68401         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68402         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68403         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68404         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68405         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68406         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68407         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68408         Likewise.
68409
68410 2006-09-13  Eric Blake  <ebb9@byu.net>
68411
68412         * lib/getopt.c: Fix typo in last commit.
68413
68414 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68415
68416         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68417         dgettext.
68418
68419 2006-09-12  Jim Meyering  <jim@meyering.net>
68420
68421         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68422         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68423         Reported by Nelson H. F. Beebe.
68424
68425 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68426
68427         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68428         program_invocation_name and program_invocation_short_name are
68429         initialized.
68430         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68431         and program_invocation_short_name to argp.h, so they are visible
68432         to user programs.
68433         * lib/argp.h: Likewise
68434
68435 2006-09-10  Bruno Haible  <bruno@clisp.org>
68436
68437         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68438         m4/inttypes_h.m4, m4/uintmax_t.m4.
68439
68440 2006-09-10  Bruno Haible  <bruno@clisp.org>
68441
68442         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68443         gl_AC_TYPE_UINTMAX_T.
68444
68445 2006-09-10  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68448
68449 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68450
68451         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68452         convention.  Text proposed by Bruno Haible.
68453         (struct argp_option): Document the use of N_() wrappers.
68454
68455         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68456         '\v', and translate the two parts separately, instead of feeding
68457         the whole string to gettext.  This allows to exclude
68458         '\v' from the strings visible to the translator by writing doc
68459         strings as N_("..") "\v" N_("..").
68460
68461 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * config/srclist.txt: Undo latest change; the bug was fixed.
68464
68465 2006-09-09  Bruno Haible  <bruno@clisp.org>
68466
68467         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68468         assignments if building a library without libtool.
68469         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68470         in func_emit_lib_Makefile_am.
68471         (func_import): When building a static library libfoo.a, arrange to
68472         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68473         (func_create_testdir): Likewise.
68474         * modules/gc (configure.ac, Makefile.am): If building statically,
68475         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68476         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68477         * modules/striconv (configure.ac, Makefile.am): Likewise.
68478         Based on a suggestion by Ralf Wildenhues.
68479
68480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68481
68482         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68483         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68484         Also:
68485
68486         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68487         Add year_2050_test to catch glibc bug 2821
68488         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68489
68490         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68491         Prefer #ifdef to #if.
68492
68493         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68494         Return from 'main' instead of calling 'exit'.
68495
68496 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68499         returned the maximum time_t value rather than (time_t) -1.
68500         Problem originally reported by William Bardwell
68501         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68502
68503         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68504         Moved to here ...
68505         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68506         ... from here.
68507
68508 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68511         2821 is fixed.
68512
68513 2006-09-08  Jim Meyering  <jim@meyering.net>
68514
68515         Don't make generated files read-only.  That would bother too many
68516         people.  However, do retain the ability to work when targets are
68517         read-only: remove the destination and temporary files before writing
68518         them (when generated via sed or echo), or by using the -f option for
68519         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68520         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68521         * modules/byteswap, modules/configmake, modules/fcntl:
68522         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68523         * modules/localcharset, modules/netinet_in, modules/poll:
68524         * modules/stdbool, modules/stdint, modules/sys_select:
68525         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68526
68527 2006-09-08  Jim Meyering  <jim@meyering.net>
68528
68529         Avoid new build failure on FreeBSD 6.0.
68530         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68531         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68532         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68533
68534 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68535
68536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68537
68538 2006-09-07  Jim Meyering  <jim@meyering.net>
68539
68540         Fix global typo in last change: use chmod u-w, not chmod u-x.
68541         Spotted by Paul Eggert and Bruce Korb.
68542         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68543         * modules/byteswap, modules/configmake, modules/fcntl:
68544         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68545         * modules/localcharset, modules/netinet_in, modules/poll:
68546         * modules/stdbool, modules/stdint, modules/sys_select:
68547         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68548
68549 2006-09-06  Jim Meyering  <jim@meyering.net>
68550
68551         Make generated files be read-only.
68552         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68553         Ensure that each generated file is now read-only.
68554         * modules/argz: Likewise.
68555         * modules/arpa_inet: Likewise.
68556         * modules/byteswap: Likewise.
68557         * modules/configmake: Likewise.
68558         * modules/fcntl: Likewise.
68559         * modules/fnmatch: Likewise.
68560         * modules/getopt: Likewise.
68561         * modules/glob: Likewise.
68562         * modules/inttypes: Likewise.
68563         * modules/netinet_in: Likewise.
68564         * modules/poll: Likewise.
68565         * modules/stdbool: Likewise.
68566         * modules/stdint: Likewise.
68567         * modules/sys_select: Likewise.
68568         * modules/sys_socket: Likewise.
68569         * modules/sys_stat: Likewise.
68570         * modules/sysexits: Likewise.
68571         * modules/localcharset: Same as above, but continue using temporary
68572         file named "t-$@" (why different?) rather than the "$@-t" used
68573         everywhere else.
68574
68575         * modules/sysexits (Makefile.am): Replace literal occurrences
68576         of "sysexit.h" more readable, and more consistent, "$@".
68577
68578 2006-09-06  Bruno Haible  <bruno@clisp.org>
68579
68580         * modules/striconv: New file.
68581         * modules/xstriconv: New file.
68582         * MODULES.html.sh (Internationalization functions): Add striconv,
68583         xstriconv.
68584
68585 2006-09-06  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68588         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68589         not using libtool correctly.
68590
68591 2006-09-06  Bruno Haible  <bruno@clisp.org>
68592
68593         * lib/striconv.h: New file.
68594         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68595         iconvstring.c.
68596         * lib/xstriconv.h: New file.
68597         * lib/xstriconv.c: New file.
68598
68599 2006-09-06  Bruno Haible  <bruno@clisp.org>
68600
68601         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68602         lib_..._LDFLAGS.
68603
68604 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68605
68606         * lib/argz_.h: Sync from Libtool.
68607
68608         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68609                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68610
68611         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68612
68613 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68614
68615         * modules/trim: New file.
68616
68617 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68618
68619         * lib/trim.h: New file.
68620         * lib/trim.c: New file.
68621
68622 2006-09-05  Bruno Haible  <bruno@clisp.org>
68623
68624         * MODULES.html.sh (String handling): Add trim.
68625
68626 2006-09-04  Karl Berry  <karl@gnu.org>
68627
68628         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68629         until next release.
68630
68631 2006-09-03  Bruno Haible  <bruno@clisp.org>
68632
68633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68634         correctly.
68635
68636 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68639         not gl_GETLOADAVG.  Omit unneeded semicolons.
68640         Problems reported by Ralf Wildenhues in
68641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68642         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68643         at the end, which is the usual gnulib style.
68644
68645         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68646         of doing all the work ourselves.
68647         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68648         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68649
68650 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68653         Problem reported by Ralf Wildenhues in
68654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68655
68656         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68657         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68658
68659 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68662         yesterday's patch by changing test -n to test -z.
68663
68664 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68667         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68668         the former is now obsolescent.
68669
68670         * modules/chdir-long (Depends-on): Add fcntl.
68671
68672 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68675         obsolescent, and programs should use gnulib instead.
68676         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68677         but with prefixes changed.
68678
68679 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68682         or stdbool.h, because they might not exist while configuring.
68683
68684         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68685         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68686         does that for us.
68687         (O_DIRECTORY): Remove.
68688
68689 2006-08-31  Eric Blake  <ebb9@byu.net>
68690
68691         * gnulib-tool: Don't let emacs change spaces to TAB.
68692
68693 2006-08-31  Bruno Haible  <bruno@clisp.org>
68694
68695         * gnulib-tool: When calling func_import more than once, do it in a
68696         subshell.
68697         Reported by Eric Blake <ebb9@byu.net>.
68698
68699 2006-08-31  Bruno Haible  <bruno@clisp.org>
68700
68701         * gnulib-tool (nl): Remove variable.
68702         (sed_transform_lib_file): Use more robust test for config-h module.
68703         (func_import): Fix typo in 2006-08-25 patch.
68704
68705 2006-08-31  Bruno Haible  <bruno@clisp.org>
68706
68707         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68708         specified, augment Makefile.am variables instead of assigning them.
68709
68710 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         Work around a bug in both the Linux and SunOS 64-bit kernels:
68713         nanosleep mishandles sleeps for longer than 2**31 seconds.
68714         Problem reported by Frank v Waveren in
68715         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68717         Check for nanosleep bug.
68718         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68719
68720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         Work around a bug in both the Linux and SunOS 64-bit kernels:
68723         nanosleep mishandles sleeps for longer than 2**31 seconds.
68724         Problem reported by Frank v Waveren in
68725         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68726         * lib/nanosleep.c (BILLION): New constant.
68727         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68728         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68729         implementation.
68730
68731 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68732
68733         * modules/nanosleep (Depends-on): Add gettime.
68734
68735 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68736         and Simon Josefsson  <jas@extundo.com>
68737         and Oskar Liljeblad  <oskar@osk.mine.nu>
68738
68739         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68740         * gnulib-tool (func_import): New license type 'unmodifiable license
68741         text'.
68742         * modules/fdl: Use it.  Longer description.
68743         * module/gpl, module/lgpl: New files.
68744
68745 2006-08-30  Jim Meyering  <jim@meyering.net>
68746
68747         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68748         shadowing the parameter.
68749
68750 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68751
68752         Sync from Libtool:
68753
68754         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68755
68756         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68757         sharing with gnulib.  Report by Eric Blake.
68758
68759 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * modules/isapipe: New file.
68762         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68763
68764 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * modules/configmake (Makefile.am): Add a comment, and omit
68767         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68768         by Bruno Haible.
68769
68770 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * m4/isapipe.m4: New file.
68773
68774 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * lib/isapipe.c, lib/isapipe.h: New files.
68777
68778 2006-08-29  Jim Meyering  <jim@meyering.net>
68779
68780         * modules/configmake (Makefile.am): Make configmake.h depend on
68781         Makefile.  Otherwise, a stale configmake.h could hang around.
68782
68783 2006-08-29  Eric Blake  <ebb9@byu.net>
68784
68785         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68786         resolution of upstream bug 3044.
68787
68788 2006-08-29  Bruno Haible  <bruno@clisp.org>
68789
68790         * modules/localcharset (Depends-on): Add configmake.
68791         (Makefile.am): Remove setting of LIBDIR through DEFS.
68792
68793 2006-08-29  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68796         defined.
68797
68798 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * modules/fcntl: New file.
68801         * modules/chdir-safer (Depends-on): Add fcntl.
68802         * modules/fts: Likewise.
68803         * modules/mkdir-p: Likewise.
68804
68805         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68806         This undoes the most recent change, since we're now addressing the
68807         problem in a different way.
68808
68809         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68810         into output, since the output might be called Makefile.am even
68811         if $makefile_name is something different.
68812         (func_import): Use $makefile_am rather than
68813         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68814         empty.
68815
68816         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68817
68818 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68821         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68822         recent change to stdint.m4, since we're now addressing the problem in a
68823         different way.
68824
68825 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * m4/fcntl_h.m4: New file.
68828
68829 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * lib/fcntl_.h: New file.
68832         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68833         the fcntl module.
68834         * lib/dirchownmod.c: Likewise.
68835         * lib/fts.c: Likewise.
68836
68837         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68838         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68839         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68840         just before including <inttypes.h>, to avoid circular inclusion.
68841
68842 2006-08-28  Jim Meyering  <jim@meyering.net>
68843
68844         * doc/visibility.texi: Actually read and correct the grammar of the
68845         sentence affected by yesterday's change.
68846
68847 2006-08-28  Eric Blake  <ebb9@byu.net>
68848
68849         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68850         needs wrapper.
68851
68852 2006-08-28  Eric Blake  <ebb9@byu.net>
68853
68854         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68855
68856 2006-08-28  Eric Blake  <ebb9@byu.net>
68857
68858         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68859
68860 2006-08-28  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/c-strstr: New file, from GNU gettext.
68863         * MODULES.html.sh (String handling): Add c-strstr.
68864
68865 2006-08-28  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68868         macros.
68869         Reported by Eric Blake.
68870
68871 2006-08-28  Bruno Haible  <bruno@clisp.org>
68872
68873         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68874         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68875         * lib/vasprintf.c: Include errno.h, limits.h.
68876         (EOVERFLOW): New fallback definition.
68877         (vasprintf): Test here whether the string length is > INT_MAX.
68878         * lib/vsnprintf.c: Include errno.h, limits.h.
68879         (EOVERFLOW): New fallback definition.
68880         (vsnprintf): Fix bug when generated string was too long for the buffer.
68881         Test here whether the string length is > INT_MAX.
68882
68883 2006-08-28  Bruno Haible  <bruno@clisp.org>
68884
68885         * lib/inttypes_.h (SCNX*): Remove definitions.
68886         Reported by Eric Blake.
68887
68888 2006-08-28  Bruno Haible  <bruno@clisp.org>
68889
68890         * lib/c-strstr.h: New file, from GNU gettext.
68891         * lib/c-strstr.c: New file, from GNU gettext.
68892
68893 2006-08-28  Bruno Haible  <bruno@clisp.org>
68894
68895         * gnulib-tool: Reorder some statements.
68896
68897 2006-08-28  Bruno Haible  <bruno@clisp.org>
68898
68899         * gnulib-tool: New option --makefile-name.
68900         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68901         $makefile_name.
68902         (func_import): Write $makefile_name to the cache file, and read it from
68903         there unless explicitly specified. Use $makefile_name as file name
68904         instead of Makefile.am. Adjust the recommendations accordingly.
68905
68906 2006-08-28  Bruno Haible  <bruno@clisp.org>
68907
68908         * gnulib-tool (func_verify_module): Check against misapplying patch.
68909
68910 2006-08-28  Bruno Haible  <bruno@clisp.org>
68911
68912         * gnulib-tool (func_relativize, func_relconcat): New functions.
68913         Give an error if --local-dir is given with --update.
68914         Remove trailing slashes from $local_gnulib_dir.
68915         (func_import): Store the relativized $local_gnulib_dir in
68916         gnulib-cache.m4, and read it from there if not specified explicitly.
68917
68918 2006-08-28  Bruno Haible  <bruno@clisp.org>
68919
68920         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68921         is the current directory. Respect also $local_gnulib_dir.
68922
68923 2006-08-28  Bruno Haible  <bruno@clisp.org>
68924             Simon Josefsson  <jas@extundo.com>
68925
68926         BeOS portability.
68927         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68928
68929 2006-08-27  Jim Meyering  <jim@meyering.net>
68930
68931         * doc/visibility.texi: Remove duplicate word: "pointer".
68932
68933 2006-08-26  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68936         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68937         (Makefile.am): Create inttypes.h from inttypes_.h.
68938         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68939
68940         * modules/imaxabs: New file.
68941
68942         * modules/imaxdiv: New file.
68943
68944 2006-08-26  Bruno Haible  <bruno@clisp.org>
68945
68946         * m4/inttypes.m4: New file.
68947         * m4/_inttypes_h.m4: Remove file.
68948         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68949         PRI_MACROS_BROKEN.
68950         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68951
68952         * m4/imaxabs.m4: New file.
68953
68954         * m4/imaxdiv.m4: New file.
68955
68956 2006-08-26  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/inttypes_.h: New file.
68959         * lib/inttypes.h: Remove file.
68960         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68961
68962         * lib/imaxabs.c: New file.
68963
68964         * lib/imaxdiv.c: New file.
68965
68966 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68967
68968         New config-h module, so that "make" output needn't be cluttered
68969         by -DHAVE_CONFIG_H.
68970         * MODULES.html.sh (Support for building libraries and executables):
68971         Add config-h.
68972         * modules/config-h: New file.
68973         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68974         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68975         the config-h module is used.
68976
68977         New configmake module, so that "make" output needn't be cluttered
68978         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68979         * MODULES.html.sh (Support for building libraries and executables):
68980         Add configmake.
68981         * modules/configmake: New file.
68982
68983 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * m4/config-h.m4: New file.
68986
68987 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * config/srclist.txt: Add elisp-comp.
68990
68991 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * MODULES.html.sh (Support for building libraries and executables):
68994         Add elisp-comp.
68995         * build-aux/elisp-comp: New file.
68996         * modules/elisp-comp: New file.
68997
68998 2006-08-24  Bruno Haible  <bruno@clisp.org>
68999
69000         * gnulib-tool (func_create_testdir): Use non-default values of
69001         sourcebase and m4base.
69002
69003 2006-08-24  Bruno Haible  <bruno@clisp.org>
69004
69005         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69006         HTML structure.
69007
69008 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * modules/openat (Depends-on): Add lchown.
69011
69012 2006-08-23  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69015         of gl_LOCK_EARLY instead of gl_LOCK.
69016
69017 2006-08-23  Bruno Haible  <bruno@clisp.org>
69018
69019         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69020         on OSF/1 to no.
69021         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69022
69023 2006-08-23  Bruno Haible  <bruno@clisp.org>
69024
69025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69026         as unusable.
69027
69028         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69029         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69030         (gl_LOCK): New macro.
69031
69032 2006-08-22  Simon Josefsson  <jas@extundo.com>
69033
69034         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69035         to md5 module.
69036
69037 2006-08-22  Simon Josefsson  <jas@extundo.com>
69038
69039         * MODULES.html.sh: Add "Support for maintaining and release
69040         projects".
69041
69042         * build-aux/gnupload: New file, from coreutils.
69043
69044 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         Avoid the need for AC_LIBSOURCES in m4 macros.
69047         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69048         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69049         * modules/check-version (EXTRA_DIST): Add check-version.h.
69050         * modules/crc (EXTRA_DIST): Add crc.h.
69051         * modules/des (EXTRA_DIST): Add des.h.
69052         * modules/gc (EXTRA_DIST): Add gc.h.
69053         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69054         * modules/getline (EXTRA_DIST): Add getline.h.
69055         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69056         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69057         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69058         * modules/md2 (EXTRA_DIST): Add md2.h.
69059         * modules/md4 (EXTRA_DIST): Add md4.h.
69060         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69061         * modules/read-file (EXTRA_DIST): Add read-file.h.
69062         * modules/readline (EXTRA_DIST): Add readline.h.
69063         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69064         rijndael-api-fst.h.
69065
69066 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * m4/rijndael.m4 (gl_ARCFOUR):
69069         * m4/arctwo.m4 (gl_ARCTWO):
69070         * m4/check-version.m4 (gl_CHECK_VERSION):
69071         * m4/crc.m4 (gl_CRC):
69072         * m4/des.m4 (gl_DES):
69073         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69074         * m4/gc.m4 (gl_GC):
69075         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69076         * m4/getline.m4 (gl_FUNC_GETLINE):
69077         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69078         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69079         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69080         * m4/md2.m4 (gl_MD2):
69081         * m4/md4.m4 (gl_MD4):
69082         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69083         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69084         * m4/readline.m4 (gl_FUNC_READLINE):
69085         * m4/rijndael.m4 (gl_RIJNDAEL):
69086         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69087         to get the necessary .h files and whatnot.
69088
69089 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69092         gnulib rather than the other way around.
69093         * config/srclistvars.sh (COREUTILS): Remove.
69094
69095 2006-08-22  Jim Meyering  <jim@meyering.net>
69096
69097         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69098
69099         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69100
69101 2006-08-22  Eric Blake  <ebb9@byu.net>
69102
69103         * modules/regexprops-generic: New file.
69104         * MODULES.html.sh (Support for building documentation): List it.
69105
69106 2006-08-22  Eric Blake  <ebb9@byu.net>
69107
69108         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69109         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69111         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69112
69113 2006-08-22  Bruno Haible  <bruno@clisp.org>
69114
69115         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69116         and lib_LTLIBRARIES like the other lib_* variables.
69117
69118 2006-08-22  Bruno Haible  <bruno@clisp.org>
69119
69120         * build-aux/x-to-1.in: New file, from GNU gettext.
69121
69122 2006-08-22  Bruno Haible  <bruno@clisp.org>
69123
69124         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69125         <utmpx.h> exists.
69126
69127 2006-08-22  Bruno Haible  <bruno@clisp.org>
69128
69129         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69130         <utmpx.h> exists.
69131
69132 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         BeOS portability.
69135         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69136         exist.
69137         Problem reported by Bruno Haible.
69138
69139 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         Avoid the need for AC_LIBSOURCES in m4 macros.
69142         * modules/acl (EXTRA_DIST): Add acl.h.
69143         * modules/argmatch (Files): Add m4/argmatch.m4.
69144         (configure.ac): Add gl_ARGMATCH.
69145         (EXTRA_DIST): Renamed from lib_SOURCES, for
69146         consistency with the other modules.  Remove argmatch.c.
69147         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69148         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69149         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69150         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69151         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69152         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69153         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69154         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69155         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69156         * modules/closeout (EXTRA_DIST): Add closeout.h.
69157         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69158         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69159         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69160         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69161         dirname.h; remove basename.c and stripslash.c.
69162         * modules/exclude (EXTRA_DIST): Add exclude.h.
69163         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69164         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69165         * modules/file-type (EXTRA_DIST): Add file-type.h.
69166         * modules/filemode (EXTRA_DIST): Add filemode.h.
69167         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69168         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69169         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69170         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69171         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69172         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69173         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69174         * modules/getdate (EXTRA_DIST): Add getdate.c.
69175         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69176         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69177         * modules/getpass (EXTRA_DIST): Add getpass.h.
69178         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69179         * modules/group-member (EXTRA_DIST): Add group-member.h.
69180         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69181         * modules/hash (EXTRA_DIST): Add hash.h.
69182         * modules/human (EXTRA_DIST): Add human.h.
69183         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69184         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69185         * modules/lchown (EXTRA_DIST): Add lchown.h.
69186         * modules/long-options (EXTRA_DIST): Add long-options.h.
69187         * modules/lstat (EXTRA_DIST): Add lstat.h.
69188         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69189         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69190         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69191         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69192         * modules/memxor (EXTRA_DIST): Add memxor.h.
69193         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69194         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69195         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69196         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69197         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69198         * modules/physmem (EXTRA_DIST): Add physmem.h.
69199         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69200         * modules/posixver (EXTRA_DIST): Add posixver.h.
69201         * modules/quote (EXTRA_DIST): Add quote.h.
69202         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69203         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69204         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69205         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69206         regex_internal.h regexec.c.
69207         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69208         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69209         * modules/same (EXTRA_DIST): Add same.h.
69210         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69211         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69212         * modules/savedir (EXTRA_DIST): Add savedir.h.
69213         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69214         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69215         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69216         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69217         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69218         * modules/strdup (EXTRA_DIST): Add strdup.h.
69219         * modules/strftime (EXTRA_DIST): Add strftime.h.
69220         * modules/strndup (EXTRA_DIST): Add strndup.h.
69221         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69222         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69223         * modules/time_r (EXTRA_DIST): Add time_r.h.
69224         * modules/timespec (EXTRA_DIST): Add timespec.h.
69225         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69226         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69227         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69228         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69229         * modules/userspec (EXTRA_DIST): Add userspec.h.
69230         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69231         * modules/utimens (EXTRA_DIST): Add utimens.h.
69232         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69233         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69234         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69235         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69236         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69237         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69238         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69239         * modules/yesno (EXTRA_DIST): Add yesno.h.
69240
69241 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69244
69245         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69246         * m4/dev-ino.m4, same-inode.m4: Remove.
69247
69248         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69249         * m4/acl.m4 (AC_FUNC_ACL):
69250         * m4/backupfile.m4 (gl_BACKUPFILE):
69251         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69252         * m4/canon-host.m4 (gl_CANON_HOST):
69253         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69255         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69256         * m4/cloexec.m4 (gl_CLOEXEC):
69257         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69258         * m4/closeout.m4 (gl_CLOSEOUT):
69259         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69260         * m4/dirname.m4 (gl_DIRNAME):
69261         * m4/exclude.m4 (gl_EXCLUDE):
69262         * m4/exitfail.m4 (gl_EXITFAIL):
69263         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69264         * m4/file-type.m4 (gl_FILE_TYPE):
69265         * m4/filemode.m4 (gl_FILEMODE):
69266         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69267         * m4/fpending.m4 (gl_FUNC_FPENDING):
69268         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69269         * m4/fts.m4 (gl_FUNC_FTS):
69270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69271         * m4/getdate.m4 (gl_GETDATE):
69272         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69273         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69274         * m4/getpass.m4 (gl_FUNC_GETPASS):
69275         * m4/gettime.m4 (gl_GETTIME):
69276         * m4/getugroups.m4 (gl_GETUGROUPS):
69277         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69278         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69279         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69280         * m4/hash.m4 (gl_HASH):
69281         * m4/idcache.m4 (gl_IDCACHE):
69282         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69283         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69284         * m4/long-options.m4 (gl_LONG_OPTIONS):
69285         * m4/lstat.m4 (gl_FUNC_LSTAT):
69286         * m4/md5.m4 (gl_MD5):
69287         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69288         * m4/memcoll.m4 (gl_MEMCOLL):
69289         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69290         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69291         * m4/memxor.m4 (gl_MEMXOR):
69292         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69293         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69294         * m4/modechange.m4 (gl_MODECHANGE):
69295         * m4/mountlist.m4 (gl_MOUNTLIST):
69296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69297         * m4/openat.m4 (gl_FUNC_OPENAT):
69298         * m4/pathmax.m4 (gl_PATHMAX):
69299         * m4/physmem.m4 (gl_PHYSMEM):
69300         * m4/posixtm.m4 (gl_POSIXTM):
69301         * m4/posixver.m4 (gl_POSIXVER):
69302         * m4/quote.m4 (gl_QUOTE):
69303         * m4/quotearg.m4 (gl_QUOTEARG):
69304         * m4/readtokens.m4 (gl_READTOKENS):
69305         * m4/readutmp.m4 (gl_READUTMP):
69306         * m4/regex.m4 (gl_REGEX):
69307         * m4/safe-read.m4 (gl_SAFE_READ):
69308         * m4/safe-write.m4 (gl_SAFE_WRITE):
69309         * m4/same.m4 (gl_SAME):
69310         * m4/save-cwd.m4 (gl_SAVE_CWD):
69311         * m4/savedir.m4 (gl_SAVEDIR):
69312         * m4/settime.m4 (gl_SETTIME):
69313         * m4/sha1.m4 (gl_SHA1):
69314         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69315         * m4/stat-macros.m4 (gl_STAT_MACROS):
69316         * m4/stat-time.m4 (gl_STAT_TIME):
69317         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69318         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69319         * m4/strdup.m4 (gl_FUNC_STRDUP):
69320         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69321         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69322         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69323         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69324         * m4/time_r.m4 (gl_TIME_R):
69325         * m4/timespec.m4 (gl_TIMESPEC):
69326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69327         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69328         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69329         * m4/userspec.m4 (gl_USERSPEC):
69330         * m4/utimecmp.m4 (gl_UTIMECMP):
69331         * m4/utimens.m4 (gl_UTIMENS):
69332         * m4/xalloc.m4 (gl_XALLOC):
69333         * m4/xgetcwd.m4 (gl_XGETCWD):
69334         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69335         * m4/xreadlink.m4 (gl_XREADLINK):
69336         * m4/xstrtod.m4 (gl_XSTRTOD):
69337         * m4/yesno.m4 (gl_YESNO):
69338         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69339         to get the necessary .h files and whatnot.
69340
69341 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69342             Bruno Haible  <bruno@clisp.org>
69343
69344         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69345         /bin/sh understanding of '!' conditional negation.
69346
69347 2006-08-21  Jim Meyering  <jim@meyering.net>
69348
69349         * modules/openat (Depends-on): Really alphabetize.
69350
69351         * modules/acl (Depends-on): Add error and quote.
69352
69353         * check-module (find_included_lib_files): Add at-func.c to the
69354         ok-to-include-more-than-once white list.
69355
69356         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69357
69358 2006-08-21  Bruno Haible  <bruno@clisp.org>
69359
69360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69361         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69362         Reported by Martin Lambers <marlam@marlam.de>.
69363
69364 2006-08-21  Bruno Haible  <bruno@clisp.org>
69365
69366         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69367         specify an installation location, don't emit a noinst_LIBRARIES or
69368         noinst_LTLIBRARIES assignment.
69369
69370 2006-08-21  Bruno Haible  <bruno@clisp.org>
69371
69372         BeOS portability.
69373         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69374         BeOS has mbrtowc() but no <wctype.h>.
69375
69376 2006-08-21  Bruno Haible  <bruno@clisp.org>
69377
69378         BeOS portability.
69379         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69380         exist.
69381
69382 2006-08-21  Bruno Haible  <bruno@clisp.org>
69383
69384         BeOS portability.
69385         * lib/mbchar.h: Include <wctype.h> only if it exists.
69386
69387 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         Remove files that are no longer needed by their respective modules.
69390         * m4/obstack.m4: Remove.
69391         * m4/strerror_r.m4: Remove.
69392         * m4/uint32_t.m4: Remove.
69393         * m4/uintptr_t.m4: Remove.
69394         * m4/ullong_max.m4: Remove.
69395         * m4/xstrtoimax.m4: Remove.
69396         * m4/xstrtoumax.m4: Remove.
69397
69398         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69399         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69400         dependencies now capture this.
69401
69402         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69403         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69404         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69405         * m4/human.m4 (gl_HUMAN): Likewise.
69406         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69407         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69408
69409         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69410
69411         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69412         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69413         stdint.
69414         * m4/human.m4 (gl_HUMAN): Likewise.
69415         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69416         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69417         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69419         * m4/xstrtol (gl_XSTRTOL): Likewise.
69420
69421         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69422         AC_TYPE_LONG_LONG_INT.
69423         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69425         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69426         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69427
69428         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69429         on stdbool.
69430
69431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69432         (gl_PREREQ_XSTRTOUL): Remove.
69433
69434         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69435
69436         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69437         mode.
69438
69439 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         Add and change modules to make it easier for coreutils to use
69442         gnulib-tool.
69443         * modules/backupfile (Files): Remove m4/d-ino.m4.
69444         (Depends-on): Add d-ino.
69445         * modules/cycle-check (Depends-on): Add stdint.
69446         (lib_SOURCES): Add cycle-check.h.
69447         * modules/d-ino: New module.
69448         * modules/d-type: New module.
69449         * modules/error (Files): Remove m4/strerror_r.m4.
69450         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69451         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69452         m4/inttypes_h.m4, m4/uintmax_t.m4.
69453         (Depends-on): Add stdint.
69454         (lib_SOURCES): Add fsusage.h.
69455         * modules/getcwd (Files): Remove d-ino.m4.
69456         (Depends-on): Add d-ino.
69457         * modules/getndelim2 (Depends-on): Add stdint.
69458         * modules/glob (Files): Remove m4/d-type.m4.
69459         (Depends-on): Add d-type.
69460         * modules/host-os: New module.
69461         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69462         m4/inttypes_h.m4, m4/uintmax_t.m4.
69463         * Depends-on: Add stdint.
69464         (lib_SOURCES): Add human.h.
69465         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69466         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69467         m4/uintmax_t.m4, m4/ulonglong.m4.
69468         (Depends-on): Add stdint.
69469         (EXTRA_DIST): Add inttostr.h.
69470         * modules/lchmod: New module.
69471         * modules/link-follow: New module.
69472         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69473         (Depends-on): Add lchmod.
69474         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69475         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69476         (Depends-on): Add stdint.
69477         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69478         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69479         (Depends-on): Add stdint.
69480         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69481         * modules/perl: New module.
69482         * modules/regex (Depends-on): Add stdint.
69483         * modules/rmdir-errno: New module.
69484         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69485         m4/intmax_t.m4.
69486         (Depends-on): Add stdint.
69487         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69488         m4/uintmax_t.m4.
69489         (Depends-on): Add stdint.
69490         * modules/unlink-busy: New module.
69491         * modules/utimecmp (Depends-on): Add stdint.
69492         * modules/uptime: New module.
69493         * modules/winsz-ioctl: New module.
69494         * modules/winsz-termios: New module.
69495         * modules/xnanosleep (Depends-on): Add nanosleep.
69496         * modules/ullong_max: Remove.
69497         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69498         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69499         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69500         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69501         (Depends-on): Add inttypes.
69502         (lib_SOURCES): Add xstrtol.h.
69503         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69504         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69505         * MODULES.html.sh: Move 'assert' into the assert section.
69506         Move 'dummy' into the linking section.
69507         Remove ullong_max.
69508         Add section for compatibility checks for POSIX:2001 functions,
69509         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69510         winsz-ioctl, and winsz-termios into it.
69511         Add lchmod.
69512         Add top-level Misc section and put host-os, perl, and uptime
69513         into it.
69514
69515 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69518         now assume the stdint module.  Do not include inttypes.h.
69519         * lib/fsusage.h: Likewise.
69520         * lib/getndelim2.c: Likewise.
69521         * lib/human.h: Likewise.
69522         * lib/inttostr.h: Likewise.
69523         * lib/obstack.c: Likewise.
69524         * lib/regex_internal.h: Likewise.
69525         * lib/tempname.c: Likewise.
69526         * lib/utimecmp.c: Likewise.
69527         * lib/xstrtol.h: Likewise.
69528
69529         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69530
69531         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69532         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69533         * lib/xtime.h: Likewise.
69534
69535 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * modules/openat (Files): Add lib/fchmodat.c.
69538         Fixes problem reported by Jay Youngman.
69539
69540 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69543         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69544
69545 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69546             Bruno Haible  <bruno@clisp.org>
69547
69548         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69549         and is a script that invokes bison. Tighten the code. Add comments.
69550
69551 2006-08-18  Jim Meyering  <jim@meyering.net>
69552
69553         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69554         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69555         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69556         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69557
69558 2006-08-18  Bruno Haible  <bruno@clisp.org>
69559
69560         * modules/bison-i18n: New file.
69561         * MODULES.html.sh (Internationalization functions): Add it.
69562
69563 2006-08-18  Bruno Haible  <bruno@clisp.org>
69564
69565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69566         sys/statvfs.h. When getmntinfo was found, check its declaration and
69567         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69568
69569 2006-08-18  Bruno Haible  <bruno@clisp.org>
69570
69571         * m4/bison-i18n.m4: New file, from bison.
69572
69573 2006-08-18  Bruno Haible  <bruno@clisp.org>
69574
69575         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69576         (ME_DUMMY): Treat "kernfs" as a dummy.
69577         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69578
69579 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         Update from coreutils.
69582
69583         2006-08-15  Jim Meyering  <jim@meyering.net>
69584
69585         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69586
69587         2006-01-17  Jim Meyering  <jim@meyering.net>
69588
69589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69590
69591         2006-01-11  Jim Meyering  <jim@meyering.net>
69592
69593         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69594         Check for the lchmod function.
69595
69596 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         Update from coreutils.
69599
69600         * lib/__fpending.h: Add copyright notice.
69601         * lib/fprintftime.h: Likewise.
69602         * lib/savedir.c: Use (C) in copyright notice.
69603         * lib/savedir.h: Likewise.
69604
69605         2006-08-15  Jim Meyering  <jim@meyering.net>
69606
69607         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69608         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69609         in support of the EXPECTED_ERRNO macro.
69610         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69611         definitions.  Instead, define the appropriate symbols and include
69612         "at-func.c".
69613         * lib/mkdirat.c (mkdirat): Likewise.
69614         * lib/fchmodat.c (fchmodat): Likewise.
69615         (ENOSYS): Remove definition.
69616         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69617         it.  Don't include "unistd--.h" -- it wasn't ever used.
69618
69619         2006-01-17  Jim Meyering  <jim@meyering.net>
69620
69621         Rewrite fts.c not to change the current working directory,
69622         by using openat, fstatat, fdopendir, etc..
69623
69624         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69625         (HAVE_OPENAT_SUPPORT): Define.
69626         [_LIBC] (fchdir): Don't undef or define; no longer used.
69627         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69628         Now, this `function' always succeeds, and consumes its file descriptor
69629         parameter -- so callers must not close such FDs.  Update callers.
69630         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69631         (diropen): Add parameter, SP.  Adjust all callers.
69632         Implement using diropen_fd, rather than open.
69633         (fts_open): Initialize new member, fts_cwd_fd.
69634         Remove fts_rft-setting code.
69635         (fts_close): Close fts_cwd_fd, if necessary.
69636         (__opendir2): Define in terms of opendir or opendirat,
69637         depending on whether the FST_NOCHDIR flag is set.
69638         (fts_build): Since fts_safe_changedir consumes its FD, and since
69639         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69640         and close the dup'd file descriptor upon failure.
69641         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69642         (fts_safe_changedir): Tweak semantics to reflect that this function
69643         now calls cwd_advance_fd and hence consumes its FD argument.
69644         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69645         [struct FTS] (fts_rft): Remove now-unused member.
69646         [struct FTS] (fts_cycle.state): Improve comment.
69647
69648         * lib/openat.c (openat_needs_fchdir): New function.
69649         * lib/openat.h (openat_needs_fchdir): Declare it.
69650
69651 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69654         Problem and fix reported by Pádraig Brady in
69655         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69656
69657 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69660
69661 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         * lib/memcoll.c (memcoll): Optimize for the common case where the
69664         arguments are bytewise equal.
69665
69666 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69667
69668         * doc/regexprops-generic.texi: Add a copyright notice.
69669
69670 2006-08-15  Bruno Haible  <bruno@clisp.org>
69671
69672         * modules/tmpdir (License): Change to LGPL.
69673
69674 2006-08-15  Bruno Haible  <bruno@clisp.org>
69675
69676         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69677         module.
69678
69679 2006-08-14  Simon Josefsson  <jas@extundo.com>
69680
69681         * config/srclist.txt: Add gnupload.
69682
69683 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         Change copyright notice from LGPL 2 to GPL 2, since that's the
69686         standard form used in the gnulib repository.
69687         * tests/test-lock.c: Likewise.
69688         * tests/test-stdint.c: Likewise.
69689         * tests/test-tls.c: Likewise.
69690
69691         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69692         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69693         Add copyright notice.
69694
69695         * check-module: Add copyright notice.  Output a copyright
69696         notice if "--version" is specified.
69697         * modules/COPYING: New file.
69698         * tests/test-getaddrinfo.c: Add copyright notice.
69699         * tests/test-verify.c: Likewise.
69700
69701 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         Change copyright notice from LGPL 2 to GPL 2, since that's the
69704         standard form used in the gnulib repository.
69705         * lib/lock.c: LGPL -> GPL.
69706         * lib/lock.h: Likewise.
69707         * lib/strnlen1.c: Likewise.
69708         * lib/strnlen1.h: Likewise.
69709         * lib/tls.c: Likewise.
69710         * lib/tls.h: Likewise.
69711         * lib/tmpdir.c: Likewise.
69712
69713         * lib/TODO: Remove; this belongs only in coreutils.
69714
69715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         Add copyright notices to long-enough files that lack them, since
69718         otherwise the files aren't clearly free.  Use the same notice that
69719         getdate.texi already uses.
69720         * doc/alloca-opt.texi: Add copyright notice.
69721         * doc/alloca.texi: Likewise.
69722         * doc/ctime.texi: Likewise.
69723         * doc/functions.texi: Likewise.
69724         * doc/gcd.texi: Likewise.
69725         * doc/gnulib-tool.texi: Likewise.
69726         * doc/inet_ntoa.texi: Likewise.
69727         * doc/visibility.texi: Likewise.
69728
69729         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69730         * doc/quote.texi: Add copyright notice.
69731
69732         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69733         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69734         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69735         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69736         is now obsolete, and give a pointer to the Sun list.
69737         Add copyright notice.
69738
69739 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * config/srclistvars.sh: Add copyright notice.
69742
69743 2006-08-14  Eric Blake  <ebb9@byu.net>
69744
69745         Import the following change from libc:
69746
69747         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69748
69749         Upstream bug 2997.
69750         * lib/misc/error.c: Add space between program name and message if file
69751         name is missing.
69752
69753 2006-08-12  Karl Berry  <karl@gnu.org>
69754
69755         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69756         remove, these originate in gnulib now.
69757
69758 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69759
69760         * doc/Makefile (standards.info standards.html standards.dvi):
69761         Also depend on make-stds.texi.
69762
69763 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69766         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69767
69768         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69769         in wchar_t.  Problem reported by Eric Blake.
69770
69771         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69772         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69773         Also, help the compiler to keep LEN in a register.
69774
69775 2006-08-11  Eric Blake  <ebb9@byu.net>
69776
69777         * users.txt: Sort.  Add tar.
69778
69779 2006-08-11  Bruno Haible  <bruno@clisp.org>
69780
69781         * users.txt: New file.
69782
69783 2006-08-11  Bruno Haible  <bruno@clisp.org>
69784
69785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69786         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69787
69788 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * modules/snprintf (Depends-on): Remove minmax.
69791         (Maintainer): Add self and Bruno.
69792
69793 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69796         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69797         (EOVERFLOW): Define if the system does not.
69798         Do not include "minmax.h"; it wasn't used.
69799         (snprintf): Don't assume size_t promotes to an unsigned type.
69800         Fix bug when generated string was too long for the buffer: the
69801         buffer's contents are supposed to be the initial prefix of the
69802         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69803         exceeds INT_MAX; do the check ourselves.
69804
69805         Import the following changes from libc:
69806
69807         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69808
69809         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69810         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69811         set wc to the byte which couldn't be converted.
69812         (re_string_reconstruct): Don't clear valid_raw_len before calling
69813         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69814         tip_context using re_string_context_at.
69815
69816         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69817
69818         * lib/posix/regex.h: g++ still cannot handled [restrict].
69819
69820         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69821
69822         * lib/posix/regex.h: Remove special handling for VMS.
69823
69824 2006-08-10  Jim Meyering  <jim@meyering.net>
69825
69826         * modules/same-inode: New module.
69827         * modules/dev-ino: New module.
69828         * modules/cycle-check: Depend on these modules, rather than simply
69829         including their .h files.
69830         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69831         required via m4/cycle-check.m4.
69832         * modules/same: Depend on new same-inode module, rather than
69833         including same-inode.h.
69834         * modules/chdir-safer: New file.
69835
69836         * modules/chown (Depends-on): Add stat-macros.
69837
69838 2006-08-10  Jim Meyering  <jim@meyering.net>
69839
69840         * m4/cycle-check.m4: New file.
69841         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69842         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69843
69844 2006-08-10  Eric Blake  <ebb9@byu.net>
69845
69846         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69847         in from original proposal.
69848
69849 2006-08-10  Eric Blake  <ebb9@byu.net>
69850         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69851
69852         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69853         namespace.
69854
69855 2006-08-10  Bruno Haible  <bruno@clisp.org>
69856
69857         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69858         as well.
69859
69860 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         Sync from coreutils.
69863
69864         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69865
69866         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69867         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69868
69869 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * modules/restrict: Remove; no longer needed now that we assume
69872         Autoconf 2.59 or later.
69873         * MODULES.html.sh: Remove 'restrict'.
69874         * modules/argp (Depends-on): Remove 'restrict'.
69875         * modules/base64 (Depends-on): Likewise.
69876         * modules/gc (Depends-on): Likewise.
69877         * modules/getaddrinfo (Depends-on): Likewise.
69878         * modules/glob (Depends-on): Likewise.
69879         * modules/inet_ntop (Depends-on): Likewise.
69880         * modules/inet_pton (Depends-on): Likewise.
69881         * modules/memxor (Depends-on): Likewise.
69882         * modules/regex (Depends-on): Likewise.
69883         * modules/strtok_r (Depends-on): Likewise.
69884         * modules/time_r (Depends-on): Likewise.
69885
69886 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69889         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69890         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69891         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69892         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69893         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69894         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69895         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69896
69897         Merge from coreutils.
69898         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69899         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69901         * m4/time_r.m4 (gl_TIME_R): Likewise.
69902
69903 2006-08-09  Karl Berry  <karl@gnu.org>
69904
69905         * config/srclist.txt: no more gettext-tools, per Bruno.
69906
69907 2006-08-08  Eric Blake  <ebb9@byu.net>
69908
69909         * modules/verror: New module.
69910         * MODULES.html.sh: Document it.
69911
69912 2006-08-08  Eric Blake  <ebb9@byu.net>
69913
69914         * lib/verror.h, lib/verror.c: New files.
69915
69916 2006-08-08  Eric Blake  <ebb9@byu.net>
69917
69918         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69919         verror_at_line output complies with GNU Coding Standards even when
69920         file is NULL.
69921
69922 2006-08-07  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69925         versions of AIX.
69926         Reported by Ralf Wildenhues.
69927
69928 2006-08-07  Bruno Haible  <bruno@clisp.org>
69929
69930         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69931         in an AC_DEFUN. Needed so that the autoconf snippets can use
69932         AC_REQUIRE.
69933
69934 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69935
69936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69937         Initialize pkgdata_DATA.
69938         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69939         overriding it.
69940
69941 2006-08-06  Eric Blake  <ebb9@byu.net>
69942
69943         * lib/error.h: Fold in some upstream changes from glibc.
69944         * lib/error.c: Likewise.
69945
69946 2006-08-04  Bruno Haible  <bruno@clisp.org>
69947
69948         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69949         Make the mostlyclean-local rule depend on mostlyclean-generic.
69950         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69951
69952 2006-07-31  Bruno Haible  <bruno@clisp.org>
69953
69954         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69955         <stdlib.h>, <string.h>.
69956
69957 2006-07-30  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/readlink (License): Change to LGPL.
69960
69961 2006-07-30  Bruno Haible  <bruno@clisp.org>
69962
69963         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69964         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69965         set PKGDATADIR to point to it.
69966
69967 2006-07-30  Bruno Haible  <bruno@clisp.org>
69968
69969         * modules/csharpexec (configure.ac): Comment out macro invocation.
69970         * modules/javaexec (configure.ac): Likewise.
69971         * modules/javacomp-script (configure.ac): Likewise.
69972
69973         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69974
69975 2006-07-30  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69978         linked-list.
69979
69980 2006-07-30  Bruno Haible  <bruno@clisp.org>
69981
69982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69983
69984 2006-07-30  Bruno Haible  <bruno@clisp.org>
69985
69986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69987         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69988         get removed.
69989
69990 2006-07-29  Bruno Haible  <bruno@clisp.org>
69991
69992         Make it possible for gnulib-tool to work with locally modified or
69993         augmented gnulib repositories.
69994         * gnulib-tool (func_usage): Document --local-dir option.
69995         (local_gnulib_dir): New variable.
69996         Handle --local-dir option.
69997         (func_lookup_file): New function.
69998         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69999         (func_get_description, func_get_filelist, func_get_description,
70000         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70001         func_get_automake_snippet, func_get_include_directive,
70002         func_get_license, func_get_maintainer): Use func_lookup_file.
70003         (func_import, func_create_testdir): Use func_lookup_file.
70004
70005 2006-07-29  Bruno Haible  <bruno@clisp.org>
70006
70007         * modules/setenv (Depends-on): Add unistd.
70008
70009 2006-07-29  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70012
70013 2006-07-29  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70016
70017 2006-07-29  Bruno Haible  <bruno@clisp.org>
70018
70019         * gnulib-tool (import, update): If there is no Makefile.am, look at
70020         aclocal.m4, instead of bailing out.
70021
70022 2006-07-29  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70025         Categorize the options by when they are useful.
70026
70027 2006-07-29  Bruno Haible  <bruno@clisp.org>
70028
70029         * gnulib-tool (func_usage): Document option --no-libtool.
70030         Handle option --no-libtool.
70031         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70032         for changed semantics of $libtool variable.
70033         (func_import): Likewise. If libtool is not used, show this through
70034         an option --no-libtool.
70035         (func_create_testdir): Update.
70036
70037 2006-07-29  Bruno Haible  <bruno@clisp.org>
70038
70039         * gnulib-tool (func_import): Extend error message about missing
70040         --doc-base.
70041
70042 2006-07-29  Bruno Haible  <bruno@clisp.org>
70043
70044         * gnulib-tool (func_import): Don't create the $docbase directory if
70045         there is no file to store there.
70046
70047 2006-07-29  Bruno Haible  <bruno@clisp.org>
70048
70049         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70050         relevant, look for configure.ac there, not in the current directory.
70051         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70052
70053 2006-07-29  Bruno Haible  <bruno@clisp.org>
70054
70055         * gnulib-tool (SORT): New variable.
70056         (func_usage): Undocument --assume-autoconf option.
70057         Remove --assume-autoconf option handling.
70058         (autoconf_minversion): Determine from the contents of configure.ac.
70059         (func_import): Remove autoconf_minversion handling.
70060         Suggested by Eric Blake.
70061
70062 2006-07-29  Bruno Haible  <bruno@clisp.org>
70063
70064         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70065
70066 2006-07-29  Bruno Haible  <bruno@clisp.org>
70067
70068         * config/srclist.txt (*setenv.[ch]): Remove rules.
70069
70070 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70071
70072         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70073
70074 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70075
70076         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70077         arpa/inet.h.
70078
70079 2006-07-28  Simon Josefsson  <jas@extundo.com>
70080
70081         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70082         * modules/inet_pton (Depends-on): Likewise.
70083
70084 2006-07-28  Simon Josefsson  <jas@extundo.com>
70085
70086         * m4/netinet_in_h.m4: New file.
70087
70088 2006-07-28  Simon Josefsson  <jas@extundo.com>
70089
70090         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70091         #include's.
70092
70093 2006-07-28  Simon Josefsson  <jas@extundo.com>
70094
70095         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70096         #include's.
70097
70098 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70101         setgid on directories only if they set these bits.
70102         * lib/modechange.h: Remove obsolete comment about masks.
70103
70104 2006-07-28  Eric Blake  <ebb9@byu.net>
70105
70106         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70107         macro expansion.
70108
70109 2006-07-28  Bruno Haible  <bruno@clisp.org>
70110
70111         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70112
70113 2006-07-28  Bruno Haible  <bruno@clisp.org>
70114
70115         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70116
70117 2006-07-28  Bruno Haible  <bruno@clisp.org>
70118
70119         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70120         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70121         Define fallbacks.
70122         Avoids link error on FreeBSD 4.x.
70123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70124
70125         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70126         encoding.
70127         * lib/mbswidth.c (iswcntrl): Likewise.
70128
70129 2006-07-27  Bruno Haible  <bruno@clisp.org>
70130
70131         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70132         test.
70133
70134 2006-07-27  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70137         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70138         defined.
70139
70140 2006-07-26  Eric Blake  <ebb9@byu.net>
70141
70142         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70143
70144 2006-07-26  Eric Blake  <ebb9@byu.net>
70145
70146         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70147         like mingw that lack mkstemp.
70148         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70149         avoid compilation warning on mingw.
70150
70151 2006-07-26  Bruno Haible  <bruno@clisp.org>
70152
70153         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70154         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70155         INT_FAST*_MIN, INTPTR_MIN.
70156
70157 2006-07-25  Bruno Haible  <bruno@clisp.org>
70158
70159         * modules/version-etc (Depends-on): Add stdarg.
70160
70161 2006-07-25  Bruno Haible  <bruno@clisp.org>
70162
70163         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70164         complex commands.
70165
70166 2006-07-25  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70169         defined in <stdarg.h> or config.h.
70170
70171 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70174         (gl_STDIO_SAFER): Remove.
70175
70176 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * MODULES.html.sh (File stream based Input/Output):
70179         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70180         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70181         * modules/fopen-safer, modules/tmpfile-safer: New files.
70182         * modules/stdio-safer: Remove.
70183
70184 2006-07-24  Bruno Haible  <bruno@clisp.org>
70185
70186         * modules/tmpdir: New file.
70187         * MODULES.html.sh (File system functions): Add it.
70188
70189 2006-07-24  Bruno Haible  <bruno@clisp.org>
70190
70191         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70192         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70193
70194 2006-07-24  Bruno Haible  <bruno@clisp.org>
70195
70196         * modules/clean-temp: New file.
70197
70198 2006-07-24  Bruno Haible  <bruno@clisp.org>
70199
70200         * m4/tmpdir.m4: New file, from GNU gettext.
70201
70202 2006-07-24  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/tmpdir.h: New file, from GNU gettext.
70205         * lib/tmpdir.c: New file, from GNU gettext.
70206
70207 2006-07-24  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/clean-temp.h: New file, from GNU gettext.
70210         * lib/clean-temp.c: New file, from GNU gettext.
70211
70212 2006-07-23  Eric Blake  <ebb9@byu.net>
70213
70214         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70215         (Depends-on): Add binary-io.
70216
70217 2006-07-23  Eric Blake  <ebb9@byu.net>
70218
70219         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70220
70221 2006-07-23  Eric Blake  <ebb9@byu.net>
70222
70223         * lib/tmpfile-safer.c: New file.
70224         * lib/stdio-safer.h (fopen_safer): Add prototype.
70225         * lib/stdio--.h (tmpfile): Make safer.
70226
70227 2006-07-23  Bruno Haible  <bruno@clisp.org>
70228
70229         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70230         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70231         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70232         gl_linked_remove_at): Use it.
70233
70234 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70235         and Simon Josefsson <jas@extundo.com>
70236
70237         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70238
70239         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70240
70241 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * modules/close-stream: New file.
70244         * modules/closeout (Description): Make it clear that it exits
70245         with a diagnostic on error.
70246         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70247         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70248
70249 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70250
70251         * m4/close-stream.m4: New file.
70252
70253 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70254
70255         * lib/close-stream.c, lib/close-stream.h: New files.
70256
70257 2006-07-22  Bruno Haible  <bruno@clisp.org>
70258
70259         Merge from GNU gettext 0.15.
70260
70261         2006-05-01  Bruno Haible  <bruno@clisp.org>
70262
70263                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70264
70265         2006-07-22  Bruno Haible  <bruno@clisp.org>
70266
70267                 * modules/javaversion: New file.
70268                 * MODULES.html.sh (Java): Add javaversion.
70269
70270         2006-03-12  Bruno Haible  <bruno@clisp.org>
70271
70272                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70273
70274         2005-12-04  Bruno Haible  <bruno@clisp.org>
70275
70276                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70277                 (untested).
70278
70279         2006-06-21  Bruno Haible  <bruno@clisp.org>
70280
70281                 Avoid warnings from recent versions of mcs.
70282                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70283                 -o, -L, -r any more. Use options documented since mcs-1.0
70284                 instead. Similarly for -g.
70285
70286         2005-12-04  Bruno Haible  <bruno@clisp.org>
70287
70288                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70289                 .resources, not .resource.
70290
70291         2005-07-09  Bruno Haible  <bruno@clisp.org>
70292
70293                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70294                 add a .dll suffix.
70295                 Reported by Mark Junker <mjscod@gmx.de>.
70296
70297         2006-07-22  Bruno Haible  <bruno@clisp.org>
70298
70299                 * modules/gettext: Upgrade to gettext-0.15.
70300                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70301                 m4/visibility.m4.
70302                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70303
70304 2006-07-22  Bruno Haible  <bruno@clisp.org>
70305
70306         Merge from GNU gettext 0.15.
70307
70308         2006-03-25  Bruno Haible  <bruno@clisp.org>
70309
70310                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70311
70312         2006-07-21  Bruno Haible  <bruno@clisp.org>
70313
70314                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70315                 "1.1".
70316
70317         2006-05-09  Bruno Haible  <bruno@clisp.org>
70318
70319                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70320                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70321                 for the conftestver execution.
70322
70323         2006-05-01  Bruno Haible  <bruno@clisp.org>
70324
70325                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70326                 optional target-version argument. Verify that the compiler
70327                 groks source of the specified source-version, or add -source
70328                 option as necessary. Verify that the compiler produces
70329                 bytecode in the specified target-version, or add -target and
70330                 -source options as necessary. Make the result of the test
70331                 available as variable CONF_JAVAC. Also log error output in
70332                 config.log.
70333
70334         2006-03-11  Bruno Haible  <bruno@clisp.org>
70335
70336                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70337
70338         2006-05-09  Bruno Haible  <bruno@clisp.org>
70339
70340                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70341                 CLASSPATH_SEPARATOR to a semicolon.
70342
70343         2006-03-12  Bruno Haible  <bruno@clisp.org>
70344
70345                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70346                 available as variable CONF_JAVA, for subsequent autoconf
70347                 tests. Also log error output in config.log.
70348
70349         2006-07-19  Bruno Haible  <bruno@clisp.org>
70350
70351                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70352                 that getline works on glibc2 systems. Needed to avoid trouble
70353                 in relocatable.c.
70354                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70355
70356         2005-12-04  Bruno Haible  <bruno@clisp.org>
70357
70358                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70359                 launcher (untested).
70360
70361         2005-12-04  Bruno Haible  <bruno@clisp.org>
70362
70363                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70364
70365         2006-07-22  Bruno Haible  <bruno@clisp.org>
70366
70367                 * gettext.m4: Update from GNU gettext-0.15.
70368                 * nls.m4: Likewise.
70369                 * po.m4: Likewise.
70370                 * inttypes-pri.m4: Likewise.
70371                 * inttypes-h.m4: Renamed from inttypes.m4.
70372                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70373
70374 2006-07-22  Bruno Haible  <bruno@clisp.org>
70375
70376         Merge from GNU gettext 0.15.
70377
70378         2005-07-05  Bruno Haible  <bruno@clisp.org>
70379
70380                 * printf-args.c (printf_fetchargs): Work around broken
70381                 definition of wint_t on mingw.
70382
70383         2005-02-12  Bruno Haible  <bruno@clisp.org>
70384
70385                 * xallocsa.h: Add extern "C" for C++.
70386
70387         2006-05-17  Bruno Haible  <bruno@clisp.org>
70388
70389                 Cygwin portability.
70390                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70391
70392         2006-04-30  Bruno Haible  <bruno@clisp.org>
70393
70394                 * progreloc.c: Include <mach-o/dyld.h> if available.
70395                 (find_executable): Use _NSGetExecutablePath when possible.
70396
70397         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70398
70399                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70400                 function.
70401
70402         2005-12-29  Bruno Haible  <bruno@clisp.org>
70403
70404                 * progreloc.c (set_program_name_and_installdir): Fix
70405                 compilation error.
70406
70407         2005-12-04  Bruno Haible  <bruno@clisp.org>
70408
70409                 Cygwin portability.
70410                 * progreloc.c: Include <windows.h> also on Cygwin.
70411                 (find_executable): Add support for Cygwin.
70412                 (set_program_name_and_installdir): Handle also platforms with
70413                 nonempty EXEEXT.
70414
70415         2006-07-11  Bruno Haible  <bruno@clisp.org>
70416
70417                 * javacomp.c: Fix a comment.
70418                 Reported by Jim Meyering.
70419
70420         2006-04-30  Bruno Haible  <bruno@clisp.org>
70421
70422                 * javacomp.h (compile_java_class): Add source_version,
70423                 target_version arguments.
70424                 * javacomp.c: Rewritten to choose only a compiler that
70425                 respects the specified source_version and target_version.
70426
70427         2006-06-27  Bruno Haible  <bruno@clisp.org>
70428
70429                 Assume correct S_ISDIR macro.
70430                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70431
70432         2006-07-22  Bruno Haible  <bruno@clisp.org>
70433
70434                 * javaversion.h: New file, from GNU gettext.
70435                 * javaversion.c: New file, from GNU gettext.
70436                 * javaversion.java: New file, from GNU gettext.
70437                 * javaversion.class: New file, from GNU gettext.
70438
70439         2006-05-17  Bruno Haible  <bruno@clisp.org>
70440
70441                 Cygwin portability.
70442                 * javaexec.c (execute_java_class): Test for jview program
70443                 also on Cygwin.
70444
70445         2006-04-09  Bruno Haible  <bruno@clisp.org>
70446
70447                 * fatal-signal.c: Don't include string.h.
70448                 (at_fatal_signal): Use a copying loop instead of memcpy.
70449
70450         2005-12-04  Bruno Haible  <bruno@clisp.org>
70451
70452                 * csharpexec.c: Add support for 'clix' launcher (untested).
70453                 (execute_csharp_using_sscli): New function.
70454                 (execute_csharp_program): Call it.
70455
70456         2006-06-21  Bruno Haible  <bruno@clisp.org>
70457
70458                 Avoid warnings from recent versions of mcs.
70459                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70460                 -o, -L, -r any more. Use options documented since mcs-1.0
70461                 instead. Similarly for -g.
70462
70463         2005-07-09  Bruno Haible  <bruno@clisp.org>
70464
70465                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70466                 add a .dll suffix.
70467                 Reported by Mark Junker <mjscod@gmx.de>.
70468
70469         2006-06-17  Bruno Haible  <bruno@clisp.org>
70470
70471                 * config.charset: Update for NetBSD 3.0.
70472
70473         2006-05-17  Bruno Haible  <bruno@clisp.org>
70474
70475                 Cygwin portability.
70476                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70477
70478         2006-05-16  Bruno Haible  <bruno@clisp.org>
70479
70480                 * localcharset.c [CYGWIN]: Include <windows.h>.
70481                 (get_charset_aliases): For Cygwin, return the same CPxxx
70482                 aliases list as under WIN32.
70483                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70484                 the environment variables. Fall back to GetACP().
70485
70486         2006-04-05  Bruno Haible  <bruno@clisp.org>
70487
70488                 * config.charset: Update Juan Manuel Guerrero's address.
70489
70490         2005-02-12  Bruno Haible  <bruno@clisp.org>
70491
70492                 * allocsa.h: Add extern "C" for C++.
70493
70494         2005-02-10  Bruno Haible  <bruno@clisp.org>
70495
70496                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70497                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70498
70499         2006-07-22  Bruno Haible  <bruno@clisp.org>
70500
70501                 * gettext.h: Update to GNU gettext-0.15.
70502
70503 2006-07-22  Bruno Haible  <bruno@clisp.org>
70504
70505         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70506         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70507         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70508
70509 2006-07-21  Eric Blake  <ebb9@byu.net>
70510
70511         * modules/stdlib-safer: New file.
70512         * MODULES.html.sh (File stream based Input/Output): Add
70513         stdlib-safer.
70514
70515 2006-07-21  Eric Blake  <ebb9@byu.net>
70516
70517         * lib/stdlib-safer.h: New file from coreutils, required by
70518         stdlib--.h.
70519
70520 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70523
70524 2006-07-20  Bruno Haible  <bruno@clisp.org>
70525
70526         * gnulib-tool: Recognize new option --assume-autoconf.
70527         (autoconf_minversion): New variable.
70528         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70529
70530 2006-07-20  Bruno Haible  <bruno@clisp.org>
70531
70532         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70533
70534 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70535
70536         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70537         Reindent and repaginate.
70538
70539 2006-07-19  Derek Price  <derek@ximbiot.com>
70540
70541         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70542         Correct grammar.
70543
70544 2006-07-17  Bruno Haible  <bruno@clisp.org>
70545
70546         * modules/list: New file.
70547         * modules/array-list: New file.
70548         * modules/carray-list, modules/carray-list-tests: New files.
70549         * modules/linked-list, modules/linked-list-tests: New files.
70550         * modules/avltree-list, modules/avltree-list-tests: New files.
70551         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70552         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70553         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70554         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70555         * modules/oset: New file.
70556         * modules/array-oset: New file.
70557         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70558         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70559         * tests/test-carray_list.c: New file.
70560         * tests/test-linked_list.c: New file.
70561         * tests/test-avltree_list.c: New file.
70562         * tests/test-rbtree_list.c: New file.
70563         * tests/test-linkedhash_list.c: New file.
70564         * tests/test-avltreehash_list.c: New file.
70565         * tests/test-rbtreehash_list.c: New file.
70566         * tests/test-avltree_oset.c: New file.
70567         * tests/test-rbtree_oset.c: New file.
70568         * MODULES.html.sh (Container data structures): New section.
70569
70570 2006-07-17  Bruno Haible  <bruno@clisp.org>
70571
70572         * m4/gl_list.m4: New file.
70573
70574 2006-07-17  Bruno Haible  <bruno@clisp.org>
70575
70576         * lib/gl_list.h: New file.
70577         * lib/gl_list.c: New file.
70578         * lib/gl_array_list.h: New file.
70579         * lib/gl_array_list.c: New file.
70580         * lib/gl_carray_list.h: New file.
70581         * lib/gl_carray_list.c: New file.
70582         * lib/gl_linked_list.h: New file.
70583         * lib/gl_linked_list.c: New file.
70584         * lib/gl_anylinked_list1.h: New file.
70585         * lib/gl_anylinked_list2.h: New file.
70586         * lib/gl_avltree_list.h: New file.
70587         * lib/gl_avltree_list.c: New file.
70588         * lib/gl_anyavltree_list1.h: New file.
70589         * lib/gl_anyavltree_list2.h: New file.
70590         * lib/gl_rbtree_list.h: New file.
70591         * lib/gl_rbtree_list.c: New file.
70592         * lib/gl_anyrbtree_list1.h: New file.
70593         * lib/gl_anyrbtree_list2.h: New file.
70594         * lib/gl_anytree_list1.h: New file.
70595         * lib/gl_anytree_list2.h: New file.
70596         * lib/gl_linkedhash_list.h: New file.
70597         * lib/gl_linkedhash_list.c: New file.
70598         * lib/gl_anyhash_list1.h: New file.
70599         * lib/gl_anyhash_list2.h: New file.
70600         * lib/gl_avltreehash_list.h: New file.
70601         * lib/gl_avltreehash_list.c: New file.
70602         * lib/gl_rbtreehash_list.h: New file.
70603         * lib/gl_rbtreehash_list.c: New file.
70604         * lib/gl_anytreehash_list1.h: New file.
70605         * lib/gl_anytreehash_list2.h: New file.
70606
70607         * lib/gl_oset.h: New file.
70608         * lib/gl_oset.c: New file.
70609         * lib/gl_array_oset.h: New file.
70610         * lib/gl_array_oset.c: New file.
70611         * lib/gl_avltree_oset.h: New file.
70612         * lib/gl_avltree_oset.c: New file.
70613         * lib/gl_rbtree_oset.h: New file.
70614         * lib/gl_rbtree_oset.c: New file.
70615         * lib/gl_anytree_oset.h: New file.
70616
70617 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70618
70619         * m4/mkancesdirs.m4: New file.
70620         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70621         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70622         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70623         it.
70624
70625 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70628         * lib/mkancesdirs.h: New files.
70629         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70630         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70631         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70632         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70633         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70634         callers changed.  Revamp internals significantly, by not
70635         attempting to create directories that are temporarily more
70636         permissive than the final results.  Do not attempt to use
70637         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70638         This removes some race conditions, fixes some bugs, and simplifies
70639         things.  Use new dirchownmod function to do owner and mode changes.
70640         * lib/mkdir-p.h: Likewise.
70641         * lib/modechange.c (octal_to_mode): New function.
70642         (struct mode_change): New member mentioned.
70643         (make_node_op_equals): New arg mentioned.  All callers changed.
70644         (mode_compile): Keep track of which mode bits the user has explicitly
70645         mentioned.
70646         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70647         New arg PMODE_BITS, to keep track of which mode bits the user
70648         mentioned; it treats S_ISUID and S_ISGID speciall.
70649         All callers changed.
70650         * lib/modechange.h: Likewise.
70651
70652 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * MODULES.html.sh: Add mkancestors.
70655         * modules/mkancesdirs: New module.
70656         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70657         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70658         The chdir-safer and afs files are now orphans; I'll remove them
70659         unless someone speaks up.
70660         Add lib/dirchownmod.c, lib/dirchownmod.h.
70661         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70662         Add lchown, mkancesdirs.
70663         (Maintainer): Add self.
70664
70665 2006-07-15  Karl Berry  <karl@gnu.org>
70666
70667         * gnulib-tool: help message wording/arrangement.
70668
70669 2006-07-14  Simon Josefsson  <jas@extundo.com>
70670
70671         * doc/gnulib.texi (Libtool and Windows): New section.
70672
70673 2006-07-12  Simon Josefsson  <jas@extundo.com>
70674
70675         * modules/gendocs (License): Fix license, approved by Karl.
70676
70677 2006-07-12  Eric Blake  <ebb9@byu.net>
70678
70679         * MODULES.html.sh: Add gendocs.
70680
70681 2006-07-11  Eric Blake  <ebb9@byu.net>
70682
70683         * modules/fdl: New module, to install doc/fdl.texi.
70684         * MODULES.html.sh: Add new section for documentation modules.
70685         * gnulib-tool: Avoid space-tab.
70686         (--doc-base): New option, to manage files from doc.
70687
70688 2006-07-11  Eric Blake  <ebb9@byu.net>
70689
70690         * m4/absolute-header.m4: Fix comments to match recent change.
70691
70692 2006-07-11  Eric Blake  <ebb9@byu.net>
70693
70694         * gnulib-tool: List --doc-base before --tests-base.
70695
70696 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70697
70698         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70699
70700 2006-07-11  Bruno Haible  <bruno@clisp.org>
70701
70702         * README: Mention where to put documentation.
70703
70704 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70705
70706         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70707
70708 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70711         to stdint.m4.
70712
70713 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70716         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70717         "no/such/file/stdint.h" when there is no such file, so that
70718         the resulting C code can be parsed by dodgy compilers.
70719         Problems reported by Bob Proulx.
70720
70721 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70722
70723         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70724         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70725         macros into the GNU _D_EXACT_NAMLEN.
70726         * lib/savedir.c:  Likewise.
70727         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70728
70729 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70730         and Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70733         * m4/savedir.m4:
70734         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70735         macros into the GNU _D_EXACT_NAMLEN.
70736
70737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70740         around the absolute name, to work around a problem with the HP-UX
70741         11.23 native C compiler, reported by Bob Proulx.
70742
70743 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * doc/maintain.texi, make-stds.texi: Sync from
70746         <http://savannah.gnu.org/projects/gnustandards>.
70747
70748 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70751
70752 2006-07-09  Jim Meyering  <jim@meyering.net>
70753
70754         * m4/glob.m4: Remove a doubled word in a comment.
70755
70756 2006-07-09  Jim Meyering  <jim@meyering.net>
70757
70758         * lib/argp-pv.c: Remove a doubled word in a comment.
70759         * lib/check-version.c (check_version): Likewise.
70760         * lib/javacomp.c (compile_java_class): Likewise.
70761
70762 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70765         for the benefit of people using Autoconf 2.60.  If you want to
70766         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70767         (or m4/onceonly.m4, if pre-2.57) manually.
70768
70769 2006-07-08  Jim Meyering  <jim@meyering.net>
70770
70771         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70772         comment.
70773         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70774         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70775         comment.
70776
70777 2006-07-08  Jim Meyering  <jim@meyering.net>
70778
70779         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70780
70781 2006-07-07  Simon Josefsson  <jas@extundo.com>
70782
70783         * tests/test-crc.c: Change expected crc value, the test vector
70784         were probably computed using the old broken crc.c?
70785
70786 2006-07-06  Simon Josefsson  <jas@extundo.com>
70787
70788         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70789         now the canonical place for the M4 file).
70790
70791         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70792         from the sys_socket dependency now.
70793
70794         * modules/inet_pton (Files): Ditto.
70795
70796         * modules/inet_ntop (Files): Ditto.
70797
70798 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70799
70800         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70801         not gl_PREREQ_GETUSERSHELL.
70802
70803 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70804
70805         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70806         with only one argument, for Autoconf 2.60.
70807         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70808         expand to nothing, so add a shell command to avoid syntax error.
70809         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70810
70811 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70812
70813         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70814
70815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70818         no longer needed.  Check for isblank decl.
70819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70820         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70821         of existence.
70822
70823 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * lib/getloadavg.c: Use __VMS, not VMS.
70826         * lib/getopt.c: Likewise.
70827         * lib/getpagesize.h: Likewise.
70828         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70829         and probably does not work.
70830
70831 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/.cppi-disable: Add wcwidth.
70834         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70835         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70836         (ISGRAPH): Remove.  All uses changed to isgraph.
70837         (FOLD) [!defined _LIBC]: Remove special case.
70838         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70839         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70840         HAVE_ISBLANK.
70841         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70842         case.
70843
70844 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70845
70846         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70847         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70848         brackets.  Other minor changes to suppress some compiler
70849         warnings.
70850
70851 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70852         and Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70855         of invoking obsolescent AC_HEADER_DIRENT macro.
70856         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70857         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70860         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70861         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70862         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70863         * m4/readdir.m4: Remove; no longer needed.
70864
70865 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70866         and Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70869         Don't worry about this obsolete case any more.
70870         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70871         directories.
70872         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70873         worry about this obsolete case any more.
70874         * lib/fts.c: Likewise.
70875         * lib/getcwd.c: Likewise.
70876         * lib/glob.h: Likewise.
70877         * lib/savedir.c: Likewise.
70878
70879 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70882         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70883         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70884         needed.
70885         All uses removed.
70886         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70887         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70888         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70889         needed.
70890         * m4/getdate.m4 (gl_GETDATE): Likewise.
70891         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70892         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70893         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70894         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70895         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70897         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70898         needed.
70899
70900 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * lib/memcasecmp.c: Include <limits.h>.
70903         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70904         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70905         Don't assume isdigit succeeds only on '0' through '9'.
70906
70907 2006-07-05  Eric Blake  <ebb9@byu.net>
70908
70909         * modules/getaddrinfo (Depends-on): Add snprintf.
70910
70911 2006-07-05  Eric Blake  <ebb9@byu.net>
70912
70913         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70914         to avoid 'header present but could not be compiled' on cygwin.
70915
70916 2006-07-05  Eric Blake  <ebb9@byu.net>
70917
70918         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70919         missing from netdb.h.
70920         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70921
70922 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70923
70924         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70925         no longer needed.
70926         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70927         * m4/getdate.m4 (gl_GETDATE): Likewise.
70928         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70929         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70930         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70931         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70932         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70933
70934 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70935
70936         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70937         All uses of is_space replaced by isspace.
70938         * lib/exit.h: Don't talk about STDC_HEADERS.
70939         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70940         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70941         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70942         replaced by isprint etc.
70943         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70944         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70945         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70946         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70947         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70948         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70949
70950 2006-07-05  Bruno Haible  <bruno@clisp.org>
70951
70952         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70953         the function exists, before testing against AIX.
70954         Reported by Martin Lambers <marlam@marlam.de>.
70955
70956 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70959         From Mark D. Baushke.
70960
70961 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70964         to the absolute name, not just one, to bypass Sun C 5.8's
70965         "warning: #include of /usr/include/... may be non-portable".
70966
70967 2006-07-04  Eric Blake  <ebb9@byu.net>
70968
70969         * modules/dirname-tests: New test module.
70970         * tests/test-dirname.c: New file, replacing dirname.c
70971         TEST_DIRNAME section that was recently deleted.
70972
70973 2006-07-04  Bruno Haible  <bruno@clisp.org>
70974
70975         Assume ANSI C header files and <ctype.h> functions.
70976         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70977         (mbsnwidth): Use isprint, iscntrl instead.
70978
70979 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         Merge from coreutils.
70982         * MODULES.html.sh: Add xstrtold.
70983         * modules/xstrtold: New file.
70984         * modules/cycle-check (Files): Add lib/same-inode.h.
70985         * modules/dirname (Files): Add m4/double-slash-root.m4.
70986         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70987         * modules/mkdir-p (Files): Add lib/same-inode.h.
70988         * modules/same (Files): Add lib/same-inode.h.
70989
70990 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70993         This is to keep the terminology clean; POSIX talks about
70994         "absolute pathnames", not "full pathnames", but the GNU
70995         Coding Standards say to use "path" for something else;
70996         so use "absolute" to keep both sides happy.
70997         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70998         Set gl_absolute_header, not gl_full_header_path.
70999         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71000         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71001         All uses changed.
71002
71003         Merge from coreutils.
71004
71005         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71008         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71009         want to require the building of c-strtod.o.
71010         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71011         needs -lm directly.
71012         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71013
71014         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71017         --as-needed option if available.  Problem reported by Albert Chin in
71018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71019         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71020         cc merely issues a bunch of annoying warnings for --as-needed
71021         (this problem was reported by Bob Proulx).  Also, try linking with
71022         -lm to detect a bug in binutils 2.16 (this problem was reported
71023         by Ralf Wildenhues).
71024
71025         2006-06-18  Jim Meyering  <jim@meyering.net>
71026
71027         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71028         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71029         macro.
71030         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71031         also check for glibc-2.4's abort-inducing bug.
71032
71033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71034         Low-probability clean-up should be to use rmdir to get rid of
71035         the just-created directory, not unlink.
71036
71037         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71038         configure fail, and request a bug report to inform us about it.
71039         Add a comment that, barring reports to the contrary, in 2007 we'll
71040         assume ftruncate is universally available.
71041
71042         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71045
71046         2006-03-12  Jim Meyering  <jim@meyering.net>
71047
71048         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71049         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71050         * m4/same.m4 (gl_SAME): Likewise.
71051         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71052
71053         2006-03-11  Eric Blake  <ebb9@byu.net>
71054
71055         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71056         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71057         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71058         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71059
71060 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71063         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71064         reported by Mark D. Baushke, one in
71065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71066
71067         Merge from coreutils.
71068
71069         * lib/.cppi-disable: Add stdint_.h.
71070         * lib/.cvsignore: Add stdint.h.
71071
71072         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71075         both double and long double versions.
71076         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71077         * lib/xstrtold.c: New file.
71078         * lib/xstrtod.h (xstrtold): New decl.
71079
71080         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/filemode.c (setst): Remove.
71083         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71084         (arguably) clearer, and the generated code is a bit smaller on my
71085         Debian GNU/Linux stable x86 host.
71086
71087         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71090         Assume that filemode.h includes sys/types.h and sys/stat.h.
71091         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71092         (ftypelet): Reorder to put common cases first, for efficiency.
71093         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71094         to do 'M'.
71095         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71096         of 10, for compatibility with FreeBSD.  All callers changed.
71097         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71098         types that can't be deduced solely from st_mode.  First arg is now a
71099         const pointer.
71100         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71101         (strmode): Renamed from mode_string.
71102         (filemodestring): New decl.
71103         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71104         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71105         needed.
71106         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71107
71108         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71111         fsusage.h now does that.  Include fsusage.h first, to test interface.
71112         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71113         at most one method (the old code could have generated decls that
71114         didn't conform to C89, not that this was ever exercised).
71115         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71116
71117         2006-03-19  Jim Meyering  <jim@meyering.net>
71118
71119         Work even in a chroot where d_ino values for entries in "/"
71120         don't match the stat.st_ino values for the same names.
71121         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71122         number, iterate through all entries again, using lstat instead.
71123         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71124         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71125
71126         * lib/getcwd.c (__getcwd): Clarify a comment.
71127         Use memcpy in place of a call to strcpy.
71128
71129         2006-03-12  Jim Meyering  <jim@meyering.net>
71130
71131         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71132         matches that of the current directory (which we're about to chdir ".."
71133         out of), then save the dev-ino of the parent, instead.
71134
71135         * lib/same-inode.h (SAME_INODE): New file/macro.
71136         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71137         Include "same-inode.h", instead.
71138         * lib/same.c: Likewise.
71139         * lib/cycle-check.h: Include "same-inode.h".
71140         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71141         * lib/cycle-check.c (SAME_INODE): Remove definition.
71142         * lib/root-dev-ino.h: Include "same-inode.h".
71143
71144         2006-03-11  Eric Blake  <ebb9@byu.net>
71145
71146         * lib/same.c (same_name): s/base_name/last_component/
71147         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71148         * lib/filenamecat.c (file_name_concat): Likewise.
71149
71150         2006-03-11  Eric Blake  <ebb9@byu.net>,
71151                     Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71154         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71155         drive prefix.
71156         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71157         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71158         (last_component): New method.
71159         * lib/dirname.c (dir_len): Determine when drive letters need a
71160         subsequent slash.  Preserve // when it is special.
71161         (dir_name): Don't append dot when drive letter is absolute.
71162         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71163         * lib/basename.c (base_name): New semantics - malloc the result.
71164         Preserve // when it is special.  Preserve relative files that look
71165         like drive letters.
71166         (base_len): Preserve // when it is special.
71167         (last_component): New method, similar to old base_name semantics.
71168         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71169         base_name.  Strip redundant slashes from ///.
71170
71171 2006-07-03  Jim Meyering  <jim@meyering.net>
71172
71173         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71174         macro is used before the first cycle_check call.
71175
71176 2006-07-03  Eric Blake  <ebb9@byu.net>
71177
71178         * modules/dirname (Depends-on): Add xstrndup.
71179
71180 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71183         test cases, so that config.log is a bit easier to follow.
71184
71185 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71188         both are 64 bits, since this seems to be the tradition, and this
71189         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71190         we ever run into a host that prefers long long to long in this
71191         case, we'll need another configure-time test.  Problem reported by
71192         Jim Meyering.
71193
71194 2006-07-02  Eric Blake  <ebb9@byu.net>
71195
71196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71197
71198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71199
71200         * modules/inttypes (Depends-on): No longer depends on stdint.
71201         * modules/stdint (Description): Say more about assumptions.
71202         Say that the fast types might differ.  Say macros are used.
71203         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71204         (Makefile.am): Revise list of substituted symbols to match
71205         new stdint.m4.
71206         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71207         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71208         * tests/test-stdint.c (verify_same_types)
71209         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71210         the code conforms to C99/C89.
71211         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71212         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71213
71214 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71217         but fix a bug, by requiring at least 64 bits.
71218         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71219         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71220         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71221         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71222
71223         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71224         changes.  Make 2.59 a prerequisite.  Check and substitute for
71225         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71226         inttypes.h.  Do not use special include files; just use the
71227         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71228         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71229         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71230         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71231         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71232         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71233         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71234         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71235         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71236         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71237         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71238         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71239         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71240         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71241         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71242         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71243         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71244         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71245         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71246         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71247         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71248         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71249         not check for things that C99 does not require, e.g., int8_t.  If
71250         a test isn't needed unless <stdint.h> isn't working, and is
71251         unlikely to be needed for any other reason, then don't do it
71252         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71253         size_t, since we assume C89 freestanding at least.  Do not check
71254         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71255         the right thing even if the types are not defined.  Instead use:
71256         (gl_STDINT_TYPE_PROPERTIES): New macro.
71257         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71258         testing whether <sys/types.h> clashes, as Autoconf does this for
71259         us now.  All uses removed.
71260         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71261         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71262         (gl_CHECK_TYPE_SAME):
71263         Remove; no longer needed.
71264         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71265         exists, since we'll return 0 anyway in that case.
71266         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71267
71268 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71269
71270         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71271         possible collision with system files.
71272         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71273         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71274         WCHAR_MIN and WCHAR_MAX in this case.
71275         (<stddef.h>): Do not include; no longer needed.
71276         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71277         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71278         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71279         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71280         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71281         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71282         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71283         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71284         !defined(__c99))]: Include in this case too, since it's harmless
71285         now.
71286         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71287         dangerous to do so.
71288         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71289         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71290         (_STDINT_MIN, _STDINT_MAX): New macros.
71291         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71292         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71293         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71294         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71295         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71296         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71297         macros, not typedefs; this simplifies things quite a bit.
71298         Use long int for all types narrower than int64_t.
71299         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71300         Define in terms of long long int or int64_t or long int,
71301         not int64_t or int32_t.  This saves some compile-time testing.
71302         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71303         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71304         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71305         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71306         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71307         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71308         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71309         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71310         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71311         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71312         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71313         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71314         undef any previous version and define our own version, for
71315         simplicity and consistency with the new macros for types.
71316         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71317         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71318         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71319         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71320         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71321         @WINT_T_SUFFIX@ to keep things simple here.
71322         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71323         Simplify by assuming typical 8/16/32/64 host, since we're
71324         already doing that elsewhere anyway.
71325         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71326         and assume long long int is 64 bits if available.  This
71327         speeds up 'configure'.
71328
71329 2006-07-01  Eric Blake  <ebb9@byu.net>
71330
71331         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71332         Reported by Andreas Buening.
71333
71334 2006-07-01  Eric Blake  <ebb9@byu.net>
71335
71336         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71337
71338 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71339
71340         * lib/getaddrinfo.c: fixed typo
71341
71342 2006-06-29  Jim Meyering  <jim@meyering.net>
71343
71344         * modules/strftime (Maintainer): Add my name, since with the
71345         FPRINTFTIME changes strftime.c has forked from glibc.
71346
71347 2006-06-29  Eric Blake  <ebb9@byu.net>
71348
71349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71350
71351 2006-06-29  Eric Blake  <ebb9@byu.net>
71352
71353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71354
71355 2006-06-29  Eric Blake  <ebb9@byu.net>
71356
71357         * lib/stat_.h: New file.
71358
71359 2006-06-29  Eric Blake  <ebb9@byu.net>
71360
71361         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71362         unused static function.
71363
71364 2006-06-29  Eric Blake  <ebb9@byu.net>
71365
71366         * doc/functions.texi (Function Portability): Document missing lstat
71367         on mingw.
71368
71369 2006-06-29  Eric Blake  <ebb9@byu.net>
71370
71371         * MODULES.html.sh: Add sys_stat.
71372         * modules/sys_stat: New module.
71373         * modules/mkstemp (Depends-on): Add sys_stat.
71374
71375 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71376
71377         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71378
71379 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71380
71381         * m4/c-bs-a.m4: Removed.
71382
71383 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71384
71385         * lib/strftime.c: Assume strftime() exists.
71386
71387 2006-06-29  Derek Price  <derek@ximbiot.com>
71388
71389         * modules/c-bs-a: Removed - \a is C89.
71390         * MODULES.html.sh: Remove c-bs-a.
71391
71392 2006-06-29  Bruno Haible  <bruno@clisp.org>
71393
71394         * modules/wcwidth (License): Change to LGPL.
71395
71396 2006-06-28  Simon Josefsson  <jas@extundo.com>
71397
71398         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71399         on _WIN32.
71400
71401         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71402         getnameinfo.
71403
71404 2006-06-28  Simon Josefsson  <jas@extundo.com>
71405
71406         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71407
71408 2006-06-28  Simon Josefsson  <jas@extundo.com>
71409
71410         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71411         functions there.  It will succeed on Windows XP, but on Windows
71412         2000 and (presumably) earlier, it will fail, and use the internal
71413         re-implementation.
71414         (use_win32_p): New function.
71415         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71416         Support AI_NUMERICSERV to disable getservbyname.
71417         (getnameinfo): New function, only supports
71418         NI_NUMERICHOST|NI_NUMERICSERV for now.
71419
71420         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71421         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71422         getnameinfo.
71423
71424 2006-06-28  Eric Blake  <ebb9@byu.net>
71425
71426         * modules/wcwidth: New file.
71427         * modules/mbchar (Depends-on): Add wcwidth.
71428         * modules/mbswidth (Depends-on): Add wcwidth.
71429         * MODULES.html.sh: Add wcwidth.
71430
71431 2006-06-28  Eric Blake  <ebb9@byu.net>
71432
71433         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71435
71436 2006-06-28  Eric Blake  <ebb9@byu.net>
71437
71438         * lib/xvasprintf.h: Fix comments.
71439
71440 2006-06-28  Eric Blake  <ebb9@byu.net>
71441
71442         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71443         * lib/mbswidth.c (wcwidth): Move from here...
71444         * lib/wcwidth.h: ...to this new file.
71445
71446 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71447
71448         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71449
71450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71451         it's obsolete.
71452         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71453
71454 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71455
71456         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71457         Autoconf 2.60 says this stuff was obsolete.
71458
71459 2006-06-28  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71462
71463 2006-06-28  Bruno Haible  <bruno@clisp.org>
71464
71465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71466         gt_TYPE_WCHAR_T.
71467
71468 2006-06-28  Bruno Haible  <bruno@clisp.org>
71469
71470         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71471         declaration for wcwidth.
71472         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71473
71474 2006-06-28  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71477         (mkdir): Define using _mkdir.
71478
71479 2006-06-28  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/getaddrinfo.h: Fix POSIX URL.
71482         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71483         _WIN32.
71484         (use_win32_p): Make static.
71485         (getaddrinfo): Reject service name if it is empty or does not consist
71486         solely of decimal digits, or if its value is > 65535.
71487         (getnameinfo): Remove useless casts.
71488
71489 2006-06-27  Simon Josefsson  <jas@extundo.com>
71490
71491         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71492         Eggert and Martin Lambers.
71493
71494 2006-06-27  Simon Josefsson  <jas@extundo.com>
71495
71496         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71497         Eggert and Martin Lambers.
71498
71499 2006-06-27  Bruno Haible  <bruno@clisp.org>
71500
71501         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71502         result to 0, not to empty.
71503         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71504
71505 2006-06-27  Bruno Haible  <bruno@clisp.org>
71506
71507         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71508
71509 2006-06-26  Simon Josefsson  <jas@extundo.com>
71510
71511         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71512         present.
71513
71514 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71517         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71519
71520 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71521
71522         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71523
71524 2006-06-26  Bruno Haible  <bruno@clisp.org>
71525
71526         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71527
71528 2006-06-26  Bruno Haible  <bruno@clisp.org>
71529
71530         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71531
71532 2006-06-26  Bruno Haible  <bruno@clisp.org>
71533
71534         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71535         SGI C compiler in pre-C99 mode.
71536         Suggested by Mark D. Baushke and Larry Jones.
71537
71538 2006-06-26  Bruno Haible  <bruno@clisp.org>
71539
71540         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71541         WCHAR_MAX.
71542         Reported by Mark D. Baushke and Larry Jones.
71543
71544 2006-06-26  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71547         in pre-C99 mode.
71548         Suggested by Mark D. Baushke and Larry Jones.
71549
71550 2006-06-23  Simon Josefsson  <jas@extundo.com>
71551             Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71554         Emit mostlyclean-local rule.
71555         (func_emit_tests_Makefile_am): Likewise.
71556         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71557
71558 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71559
71560         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71561
71562 2006-06-23  Bruno Haible  <bruno@clisp.org>
71563
71564         * tests/test-stdint.c: Update to match ISO C 99 Technical
71565         Corrigendum 1.
71566
71567 2006-06-23  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71570
71571 2006-06-23  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/stdint_.h: Treat IRIX like OpenBSD.
71574
71575 2006-06-23  Bruno Haible  <bruno@clisp.org>
71576
71577         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71578         ISO C 99 Technical Corrigendum 1.
71579
71580 2006-06-22  Simon Josefsson  <jas@extundo.com>
71581
71582         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71583         MinGW.
71584
71585 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71588         needed.  Some compiler complained about some of them.  Problem reported
71589         by Larry Jones in
71590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71591
71592 2006-06-21  Simon Josefsson  <jas@extundo.com>
71593
71594         * tests/test-getaddrinfo.c: New file.
71595
71596         * modules/getaddrinfo-tests: New file.
71597
71598         * MODULES.html.sh: Add inet_pton.
71599
71600         * modules/inet_pton: New file.
71601
71602 2006-06-21  Simon Josefsson  <jas@extundo.com>
71603
71604         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71605         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71606         of using the (limited) gnulib implementation on Windows XP.
71607
71608         * m4/inet_pton.m4: New file.
71609
71610 2006-06-21  Simon Josefsson  <jas@extundo.com>
71611
71612         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71613         variable.
71614
71615         * lib/socket_.h: Don't define WINVER.
71616
71617         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71618         slightly modified to work in gnulib.
71619
71620 2006-06-21  Simon Josefsson  <jas@extundo.com>
71621
71622         * doc/gnulib.texi (Windows sockets): Add.
71623
71624 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * lib/read-file.c (fread_file): Start with buffer allocation of
71627         0 bytes rather than 1 byte; this simplifies the code.
71628         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71629         code to free buffer and save/restore errno.
71630         (internal_read_file): Remove unused local.
71631
71632 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71635         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71636         Problem reported by Denis Excoffier in
71637         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71638
71639 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71640
71641         * modules/sys_socket, modules/socklen: Include sys/types since
71642         FreeBSD 4.x's sys/socket.h needs it.
71643
71644 2006-06-19  Simon Josefsson  <jas@extundo.com>
71645
71646         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71647
71648 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71651
71652 2006-06-19  Bruno Haible  <bruno@clisp.org>
71653
71654         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71655         and FULL_PATH_INTTYPES_H in angle brackets.
71656         Reported by Mark D. Baushke <mdb@gnu.org>.
71657
71658 2006-06-17  Eric Blake  <ebb9@byu.net>
71659
71660         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71661         errno.
71662
71663 2006-06-17  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71666         <sys/inttypes.h>.
71667
71668 2006-06-17  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71671         whether errno is declared. Assume <errno.h> declares errno.
71672
71673 2006-06-17  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71676
71677 2006-06-17  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71680         problem on Solaris 2.5.1.
71681
71682 2006-06-16  Eric Blake  <ebb9@byu.net>
71683
71684         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71685         * lib/unicodeio.c [!defined errno]: Likewise.
71686         * lib/strtol.c [!defined errno]: Likewise.
71687         * lib/strtod.c [!defined errno]: Likewise.
71688
71689 2006-06-15  Eric Blake  <ebb9@byu.net>
71690
71691         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71692
71693 2006-06-15  Eric Blake  <ebb9@byu.net>
71694
71695         * config/srclist.txt (ssize_t.m4): Lose sync.
71696
71697 2006-06-15  Bruno Haible  <bruno@clisp.org>
71698
71699         * modules/stdint (Files): Include m4/full-header-path.m4,
71700         m4/size_max.m4, m4/wchar_t.m4.
71701         (Makefile.am): Many more substitutions.
71702         * modules/stdint-tests: New file.
71703         * tests/test-stdint.c: New file.
71704
71705 2006-06-15  Bruno Haible  <bruno@clisp.org>
71706
71707         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71708         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71709         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71710         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71711         gl_CHECK_TYPE_SAME): New macros.
71712
71713 2006-06-15  Bruno Haible  <bruno@clisp.org>
71714
71715         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71716
71717 2006-06-15  Bruno Haible  <bruno@clisp.org>
71718
71719         * lib/stdint_.h: Rewritten to be fully auto-configured.
71720         Fixes bug on HP-UX/IA64.
71721
71722 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * lib/getdate.y (__attribute__): Don't define if already defined.
71725         Problem reported by Larry Jones.
71726         * lib/utimens.c (__attribute__): Likewise.
71727
71728 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71731         reported by Andreas Schwab.
71732
71733 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71734             Bruno Haible  <bruno@clisp.org>
71735
71736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71737         check for the declaration of strnlen and a run test that exposes the
71738         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71739         rpl_strndup.
71740
71741 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71742             Bruno Haible  <bruno@clisp.org>
71743
71744         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71745
71746 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71747
71748         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71749         compile test, for Tru64 4.0D.
71750
71751 2006-05-28  Karl Berry  <karl@gnu.org>
71752
71753         * config/srclist.txt (printf-args.c): lose sync.
71754
71755 2006-05-26  Martin Lambers  <marlam@marlam.de>
71756
71757         * lib/getpass.c: Updates the test for the native W32 API, and adds
71758         missing includes, thus fixing compilation warnings.
71759
71760 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71761
71762         * lib/exclude.c (exclude_fnmatch): New function.
71763         (excluded_file_name): Call exclude_fnmatch.
71764         * lib/exclude.h (excluded_file_name): New prototype
71765
71766 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * lib/tempname.c (small_open, large_open): New macros.
71769         (__open, __open64) [!_LIBC]: Remove.
71770         (__gen_tempname): Use small_open and large_open instead of __open
71771         and __open64.  This fixes a portability bug on HP-UX 11.11i
71772         reported by Simon Wing-Tang in
71773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71774
71775 2006-05-24  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71778         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71779         Reported by Thorsten Maerz <torte@netztorte.de> via
71780         Aaron Stone <aaron@serendipity.cx>.
71781
71782 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71785         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71786         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71787         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71788         not really conditional on the cache.
71789         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71790
71791 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71794         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71795         (my_usleep): Don't mishandle maximum value.
71796
71797 2006-05-19  Jim Meyering  <jim@meyering.net>
71798
71799         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71800
71801 2006-05-17  Bruno Haible  <bruno@clisp.org>
71802
71803         Cygwin portability.
71804         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71805
71806 2006-05-17  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/stdint_.h: Fix recognition of Cygwin.
71809
71810 2006-05-15  Bruno Haible  <bruno@clisp.org>
71811
71812         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71813         on libtool patch by Ralf Wildenhues.
71814
71815 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71818         test for C99 conformance; (bool) 0.5 is an integer constant
71819         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71820         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71821
71822 2006-05-11  Simon Josefsson  <jas@extundo.com>
71823
71824         * m4/xvasprintf.m4: Fix obvious typo.
71825
71826 2006-05-11  Jim Meyering  <jim@meyering.net>
71827
71828         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71829         James Lemley.
71830
71831 2006-05-10  Simon Josefsson  <jas@extundo.com>
71832
71833         * lib/md4.c: Typo fix, update copyright years.
71834         (K1, K2): Don't use L because it turn computations into 64-bit on
71835         64-bit platforms.
71836
71837 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71840         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71841         unwanted sign propagation, e.g., on hosts with 64-bit int.
71842         There still are some problems with reeelly weird theoretical hosts
71843         (e.g., 33-bit int) but it's not worth worrying about now.
71844         * lib/sha1.c (rol): Likewise.
71845         (K1, K2, K3, K4): Remove unnecessary L suffix.
71846
71847 2006-05-10  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/des.c: Cast to avoid warnings.
71850
71851 2006-05-09  Bruno Haible  <bruno@clisp.org>
71852
71853         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71854         (Depends-on): Depend also on xsize, stdarg.
71855         (configure.ac): Add gl_XVASPRINTF.
71856
71857 2006-05-09  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/xvasprintf.m4: New file.
71860
71861 2006-05-09  Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71864         (EOVERFLOW): Define fallback value.
71865         (xstrcat): New function.
71866         (xvasprintf): Recognize the special case of a string concatenation.
71867
71868 2006-05-08  Eric Blake  <ebb9@byu.net>
71869
71870         * gnulib-tool (func_version): Base copyright year on CVS date.
71871         (func_emit_copyright_notice): New function.
71872         (func_emit_lib_Makefile_am): Use it.
71873         (func_emit_tests_Makefile_am): Likewise.
71874         (func_import): Likewise.
71875
71876 2006-05-08  Bruno Haible  <bruno@clisp.org>
71877
71878         * modules/stdarg: New file.
71879         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71880
71881 2006-05-08  Bruno Haible  <bruno@clisp.org>
71882
71883         * m4/stdarg.m4: New file, from GNU gettext.
71884
71885 2006-05-08  Bruno Haible  <bruno@clisp.org>
71886
71887         * config/srclist.txt (build-aux/config.rpath): different from latest
71888         release.
71889
71890 2006-05-08  Bruno Haible  <bruno@clisp.org>
71891
71892         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71893
71894 2006-05-05  Jim Meyering  <jim@meyering.net>
71895
71896         * m4/warning.m4: New file, derived from bison's file by the same name.
71897
71898 2006-05-03  Bruno Haible  <bruno@clisp.org>
71899
71900         * lib/stdint_.h: Shorter URL.
71901         * lib/inttypes.h: Likewise.
71902
71903 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71906
71907 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * lib/verify.h: Document the internals better.  Most of this change
71910         was written by Bruno Haible.
71911
71912 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * doc/verify.texi: New file, partly based on a proposal by
71915         Bruno Haible.
71916
71917 2006-05-02  Bruno Haible  <bruno@clisp.org>
71918
71919         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71920         test from here...
71921         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71922
71923 2006-04-29  Bruno Haible  <bruno@clisp.org>
71924
71925         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71926         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71927
71928 2006-04-29  Bruno Haible  <bruno@clisp.org>
71929
71930         * gnulib-tool: Make --update option actually work.
71931
71932 2006-04-29  Bruno Haible  <bruno@clisp.org>
71933
71934         * doc/gcd.texi: New file.
71935         * doc/gnulib.texi: Include it.
71936
71937 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * lib/getdate.y (get_date): When adding relative date, start with the
71940         initial time, not with the result of the first mktime call.
71941
71942 2006-04-25  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (func_import): Output the include directives in three
71945         blocks, sorted separately.
71946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71947
71948 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71951         to define main with arguments, for C++.  Reported by Eric Blake.
71952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71953         Prefer 'int main ()' to 'int main (void)', for C++.
71954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71956         for 'main', for C99 and C++.
71957
71958 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71961         Don't assume that exit status -1 is valid.
71962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71963         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71964         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71965         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71966         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71967         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71968         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71969         functions can be used without declaring them, or that you can
71970         exit with status -1.
71971         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71972
71973 2006-04-24  Karl Berry  <karl@gnu.org>
71974
71975         * config/srclist.txt (longdouble.m4): sync lost.
71976
71977 2006-04-24  Eric Blake  <ebb9@byu.net>
71978
71979         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71980
71981 2006-04-24  Bruno Haible  <bruno@clisp.org>
71982
71983         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71984         poll() implementation in AIX.
71985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71986
71987 2006-04-24  Bruno Haible  <bruno@clisp.org>
71988
71989         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71990         assigned exactly once.
71991
71992 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71993             Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71996         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71997         for AM_CPPFLAGS.
71998
71999 2006-04-23  Bruno Haible  <bruno@clisp.org>
72000
72001         * modules/copy-file: Depend on unistd.
72002         * modules/execute: Likewise.
72003         * modules/fatal-signal: Likewise.
72004         * modules/findprog: Likewise.
72005         * modules/mkdtemp : Likewise.
72006         * modules/pipe: Likewise.
72007         * modules/wait-process: Likewise.
72008
72009 2006-04-23  Bruno Haible  <bruno@clisp.org>
72010
72011         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72012         condition was already detected.
72013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72014
72015 2006-04-23  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/copy-file.c: Include <unistd.h> unconditionally.
72018         * lib/execute.c: Likewise.
72019         * lib/fatal-signal.c: Likewise.
72020         * lib/findprog.c: Likewise.
72021         * lib/mkdtemp.c: Likewise.
72022         * lib/pipe.h: Likewise.
72023         * lib/pipe.c: Likewise.
72024         * lib/wait-process.h: Likewise.
72025
72026 2006-04-23  Bruno Haible  <bruno@clisp.org>
72027
72028         * gnulib-tool (func_usage): Fix --import description. Document
72029         --update.
72030         (func_import): Create temporary file in a temporary directory, if
72031         --dry-run is specified. Silence errors from 'grep' when there are no
72032         m4 files in $m4dir.
72033         (func_create_testdir): Silence errors from 'grep' when there are no
72034         m4 files in $m4dir.
72035         Reported by Karl Berry <karl@freefriends.org>.
72036
72037 2006-04-20  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72040         one argument, so that the code will be portable to Autoconf 2.60.
72041         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72043         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72044
72045 2006-04-19  Derek Price  <derek@ximbiot.com>
72046             Eric Blake  <ebb9@byu.net>
72047
72048         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72049         rather than "/full/path.h".  Update comment to match.  Shorten &
72050         generalize m4_translit call via AS_TR_CPP.
72051
72052 2006-04-19  Derek Price  <derek@ximbiot.com>
72053             Eric Blake  <ebb9@byu.net>
72054
72055         * lib/inttypes.h: Correct grammar in comment.
72056
72057 2006-04-18  Derek Price  <derek@ximbiot.com>
72058             Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * modules/inttypes: New file.
72061         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72062
72063 2006-04-18  Derek Price  <derek@ximbiot.com>
72064             Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72067         New files.
72068
72069 2006-04-18  Derek Price  <derek@ximbiot.com>
72070             Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * lib/inttypes.h: New file.
72073         * lib/strtoimax.c: Assume <inttypes.h>.
72074
72075 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72078         isn't mounted.  Problem reported by Kir Kolyshkin.
72079
72080 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72083         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72084         Derek R. Price.
72085         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72086         implementation.
72087
72088 2006-04-12  Eric Blake  <ebb9@byu.net>
72089
72090         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72091         is now done automatically by the corresponding Autoconf macro.
72092
72093 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72096         time_r.h.
72097
72098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         Merge regex changes from libc, removing some of our
72101         POSIX-conformance changes that were rejected and redoing them in a
72102         less-intrusive way.
72103
72104         * lib/regcomp.c (re_compile_internal, init_dfa):
72105         Length arg is now size_t, not Idx.  All uses changed.
72106         (peek_token): Forward decl now says internal_function.
72107         (__re_error_msgid, __re_error_msgid_idx):
72108         Now static rather than extern with attribute_hidden.
72109         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72110         For some reason libc prefers K&R style defns for external functions.
72111         (regerror) [!defined _LIBC]: Likewise.
72112         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72113         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72114         (build_range_exp, build_collating_symbol):
72115         Use K&R-style defn.
72116         (re_compile_fastmap): Use '\0' to memset, not 0.
72117         (utf8_sb_map): Make the calculations more obvious.
72118         (init_dfa, parse_bracket_exp, build_charclass_op):
72119         Call calloc and cast result, as glibc does.
72120         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72121         (build_range_exp, build_collating_symbol):
72122         Now internal functions.
72123
72124         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72125
72126         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72127         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72128         Don't depend on VMS; depend on __VMS instead, for POSIX
72129         namespace cleanness.
72130         (regoff_t): Define to ssize_t, not long int.
72131
72132         Remove the REG_ macros named below.  Instead, make the old names
72133         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72134         __USE_GNU_REGEX.
72135         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72136         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72137         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72138         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72139         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72140         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72141         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72142         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72143         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72144         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72145         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72146         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72147         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72148         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72149         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72150         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72151         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72152         (REG_NREGS):
72153         Remove.  All uses replaced by the old RE_* names.
72154         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72155         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72156         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72157         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72158         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72159         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72160         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72161         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72162         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72163         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72164         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72165         Don't bother having these macros be independent of each others'
72166         values, since they no longer exist in the POSIX name space.
72167
72168         Rename the following member names back to their old names,
72169         unless !__USE_GNU_REGEX.  All uses changed back.
72170         (buffer): Renamed from re_buffer.
72171         (allocated): Renamed from re_allocated.
72172         (used): Renamed from re_used.
72173         (syntax): Renamed from re_syntax.
72174         (fastmap): Renamed from re_fastmap.
72175         (translate): Renamed from re_translate.
72176         (can_be_null): Renamed from re_can_be_null.
72177         (regs_allocated): Renamed from re_regs_allocated.
72178         (fastmap_accurate): Renamed from re_fastmap_accurate.
72179         (no_sub): Renamed from re_no_sub.
72180         (not_bol): Renamed from re_not_bol.
72181         (not_eol): Renamed from re_not_eol.
72182         (newline_anchor): Renamed from re_newline_anchor.
72183         (num_regs): Renamed from rm_num_regs.
72184         (start): Renamed from rm_start.
72185         (end): Renamed from rm_end.
72186
72187         (free_state): Move up a bit.
72188
72189         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72190         #define to be empty.
72191         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72192         when that is what is intended.
72193         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72194         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72195         (MAX): New macro.
72196         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72197         All uses changed back to re_malloc, etc.  It's now the caller's
72198         responsibility to check for overflow; all callers changed.
72199         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72200         (re_x2nrealloc): Remove.
72201         (free_state): Remove decl.
72202
72203         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72204         (re_set_registers, re_exec):
72205         Use K&R-style defn.
72206
72207         2006-01-31  Roland McGrath  <roland@redhat.com>
72208
72209         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72210         Reported by Mike Frysinger <vapier@gentoo.org>.
72211
72212         2006-01-15  Andreas Jaeger  <aj@suse.de>
72213
72214         [BZ #1950]
72215         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72216         build_wcs_upper_buffer change.
72217         (build_wcs_upper_buffer): Change return type.
72218
72219         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72220
72221         * lib/regex_internal.h: Include <stdint.h> if available.
72222
72223         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72224
72225         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72226
72227         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72228
72229         * lib/regcomp.c: Adjust for changed secondary hash function.
72230
72231         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72232
72233         * lib/regex.h: Pretty printing.
72234         Clean up namespace a bit.
72235
72236         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72237
72238         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72239         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72240
72241         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72242                     Ulrich Drepper  <drepper@redhat.com>
72243
72244         [BZ #1302]
72245         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72246         changed.
72247         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72248
72249         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72250
72251         [BZ #281]
72252         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72253         * lib/regcomp.c: Remove unnecessary uses of
72254         unsigned RE_TRANSLATE_TYPE.
72255         * lib/regex_internal.h: Likewise.
72256         * lib/regex_internal.c: Likewise.
72257         * lib/regexec.c: Likewise.
72258         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72259
72260         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72261
72262         * lib/regexec.c (find_recover_state): Remove unnecessary
72263         initialization.
72264         (transit_state_bkref): Make DFA a const pointer.
72265         (get_subexp): Likewise.
72266         (check_arrival): Likewise.
72267         (update_cur_sifted_state): Likewise.
72268         (re_search_internal): Likewise.
72269         (prune_impossible_nodes): Likewise.
72270         (acquire_init_state_context): Likewise.
72271         (proceed_next_node): Likewise.
72272         (set_regs): Likewise.
72273         (free_fail_stack_return): Likewise.
72274         (check_arrival_expand_ecl): Mark DFA parameter as const.
72275         (check_arrival_expand_ecl_sub): Likewise.
72276         (check_subexp_limits): Likewise.
72277         (sub_epsilon_src_nodes):  Likewise.
72278         (add_epsilon_src_nodes):  Likewise.
72279         (merge_state_array): Likewise.
72280         (update_regs): Likewise.
72281         (build_trtable): Likewise.
72282         (sift_states_backward): Mark MCTX parameter as const.
72283         (build_sifted_states): Likewise.
72284         (update_cur_sifted_state): Likewise.
72285         (sift_states_mkref): Likewise.
72286         (check_arrival_expand_ecl): Mark eclosure as const.
72287         (check_dst_limits_calc_pos_1): Likewise.
72288         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72289         pointer.
72290
72291         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72292
72293         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72294         (transit_state_sb): Likewise.
72295         (transit_state_mb): Likewise.
72296         (sift_states_iter_mb): Likewise.
72297         (check_arrival_add_next_nodes): Likewise.
72298         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72299         [_LIBC] (re_search_2_stub): Use mempcpy.
72300
72301         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72302         mbrtowc for very simple UTF-8 case.
72303
72304         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72305         a pointer-to-const.
72306         (re_acquire_state_context): Likewise.
72307         * lib/regex_internal.h: Adjust prototypes.
72308
72309         * lib/regex.c: Prevent using C++ compilers.
72310
72311         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72312         (re_acquire_state_context): Likewise.
72313
72314 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * modules/regex (Depends-on): Add ssize_t.
72317
72318 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72321         translation table.
72322
72323 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72326
72327 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72328             Bruno Haible  <bruno@clisp.org>
72329
72330         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72331         <sys/types.h> and <inttypes.h>.
72332
72333 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72334
72335         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72336         `__error_t_defined', so argp.h will not typedef the former.
72337
72338 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72341         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72342         glibc names.  Even if glibc is changed to conform to POSIX, the
72343         traditional names will be available anyway, since regex depends on
72344         the extensions module.  Also, fix a longstanding typo in the
72345         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72346         reported by Emanuele Giaquinta.  Also, change sense of cached
72347         variable, so that the message makes sense.
72348
72349 2006-03-24  Simon Josefsson  <jas@extundo.com>
72350
72351         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72352         including some doc fixes.
72353         (base64_encode_alloc): Fix +1 bug on allocation failures.
72354
72355 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72356
72357         * lib/base64.c (base64_encode): Do not read past end of array with
72358         unsanitized input on systems with CHAR_BIT > 8.
72359
72360 2006-03-24  Eric Blake  <ebb9@byu.net>
72361
72362         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72363
72364 2006-03-22  Karl Berry  <karl@gnu.org>
72365
72366         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72367         * config/srclistvars.sh (COREUTILS): new var.
72368
72369 2006-03-17  Jim Meyering  <jim@meyering.net>
72370
72371         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72372         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72373
72374 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72377         no longer needs it.  Instead, check that regoff_t is as least
72378         as wide as ptrdiff_t.
72379
72380         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72381         so that our regex.h stays compatible with the installed regex.
72382         This is helpful for installers who configure --without-included-regex.
72383         Problem reported by Emanuele Giaquinta.
72384
72385 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72388         Typedef to long int, not to off_, as POSIX will likely change
72389         in that direction.
72390
72391 2006-03-15  Eric Blake  <ebb9@byu.net>
72392
72393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72394
72395 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72396
72397         * lib/argp-help.c (validate_uparams): Fix typo
72398         * lib/argp-parse.c (argp_default_options): Consistently begin help
72399         messages with a lowercase letter.
72400
72401 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72404         overrun buffers and shouldn't be used (much as gets shouldn't be
72405         used).
72406         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72407
72408 2006-03-08  Simon Josefsson  <jas@extundo.com>
72409
72410         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72411         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72412
72413 2006-03-08  Simon Josefsson  <jas@extundo.com>
72414
72415         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72416         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72417
72418 2006-03-08  Simon Josefsson  <jas@extundo.com>
72419
72420         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72421         signal that configure disabled the device.
72422
72423 2006-03-08  Simon Josefsson  <jas@extundo.com>
72424
72425         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72426         languages.
72427
72428 2006-03-07  Simon Josefsson  <jas@extundo.com>
72429
72430         * modules/getopt (Depends-on): Add unistd.
72431
72432         * modules/unistd: New file.
72433
72434 2006-03-07  Simon Josefsson  <jas@extundo.com>
72435
72436         * modules/gc-random: New file.
72437
72438 2006-03-07  Simon Josefsson  <jas@extundo.com>
72439
72440         * m4/unistd_h.m4: New file.
72441
72442 2006-03-07  Simon Josefsson  <jas@extundo.com>
72443
72444         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72445         test to be side-effect free by storing the result in the cache
72446         variable gl_cv_lib_readline, and moving the assignment of
72447         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72448         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72449
72450 2006-03-07  Simon Josefsson  <jas@extundo.com>
72451
72452         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72453         error on missing devices (the functions will return an error).
72454
72455         * m4/gc.m4: Move random stuff to gc-random.m4
72456
72457 2006-03-07  Simon Josefsson  <jas@extundo.com>
72458
72459         * lib/unistd_.h: New file.
72460
72461 2006-03-07  Simon Josefsson  <jas@extundo.com>
72462
72463         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72464
72465 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72468         Problem reported by Juan Manuel Guerrero.
72469
72470 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72471
72472         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72473         the unistd module.
72474         * lib/getlogin_r.c: Likewise.
72475         * lib/getlogin_r.h: Likewise.
72476         * lib/glob.c: Likewise.
72477         * lib/pagealign_alloc.c: Likewise.
72478         * lib/unistd_.h: Remove; no longer needed.
72479
72480 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72483         Add unistd.
72484         * modules/c-stack (Depends-on): Add unistd.
72485         * modules/getlogin_r: Likewise.
72486         * modules/glob: Likewise.
72487         * modules/pagealign_alloc: Likewise.
72488         * modules/unistd (Files): Remove lib/unistd_.h.
72489         (EXTRA_DIST): Remove.
72490         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72491         need unistd_.h.
72492         (MOSTLYCLEANFILES): Remove unistd.h-t.
72493
72494 2006-03-03  Simon Josefsson  <jas@extundo.com>
72495
72496         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72497
72498 2006-03-03  Simon Josefsson  <jas@extundo.com>
72499
72500         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72501         libidn and bison.
72502
72503 2006-03-03  Simon Josefsson  <jas@extundo.com>
72504
72505         * build-aux/maint.mk: Add indent target.
72506
72507 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72508
72509         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72510         our replacement poll.h in any case, to avoid a differing
72511         declaration from a system header.  Seen on AIX.
72512
72513 2006-03-01  Simon Josefsson  <jas@extundo.com>
72514
72515         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72516         <kasal@ucw.cz>.
72517
72518 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * modules/gettime (Depends-on): Add extensions module.
72521         * modules/nanosleep (Depends-on): Likewise.
72522         * modules/settime (Depends-on): Likewise.
72523
72524 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72527         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72528         pedantically.
72529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72530         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72531
72532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72533         not "==".  Reported by Ralf Wildenhues.
72534
72535 2006-03-01  Karl Berry  <karl@gnu.org>
72536
72537         * doc/Copyright/request-*: new files, synced from gnuorg.
72538
72539 2006-03-01  Karl Berry  <karl@gnu.org>
72540
72541         * config/srclist.txt (Copyright/*): new entries.
72542
72543 2006-02-28  Simon Josefsson  <jas@extundo.com>
72544
72545         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72546
72547 2006-02-27  Simon Josefsson  <jas@extundo.com>
72548
72549         * lib/base64.h: Indent #define's.  From Jim Meyering
72550         <jim@meyering.net>.
72551
72552 2006-02-27  Jim Meyering  <jim@meyering.net>
72553
72554         Revert the change of 2006-02-24, so these files can continue
72555         to be sync'd from gettext.
72556         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72557         of `config.h'.
72558
72559 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * modules/intprops: New file.
72562         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72563         Add intprops.
72564         * modules/getloadavg (Files): Remove lib/intprops.h.
72565         (Depends-on): Add intprops.
72566         * modules/human: Likewise.
72567         * modules/inttostr: Likewise.
72568         * modules/openat: Likewise.
72569         * modules/sig2str: Likewise.
72570         * modules/userspec: Likewise.
72571         * modules/utimecmp: Likewise.
72572         * modules/xnanosleep: Likewise.
72573         * modules/xstrtol: Likewise.
72574
72575 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72576
72577         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72578         * modules/lock-tests (TESTS): Use $(EXEEXT).
72579         * modules/tls-tests: Likewise.
72580         * modules/argp-tests: Likewise.
72581         (check_PROGRAMS): New var, replacing...
72582         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72583
72584 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72585
72586         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72587         `config.h'.
72588
72589 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72592
72593 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72594
72595         Sync from coreutils.
72596         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72597         gl_CHDIR_SAFER.
72598
72599 2006-02-22  Jim Meyering  <jim@meyering.net>
72600
72601         Sync from coreutils.
72602         * m4/chdir-safer.m4: New file.
72603
72604 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72607         AT_FDCWD exceeds INT_MAX.
72608         * lib/openat.h (AT_FDCWD): Likewise.
72609
72610 2006-02-17  Eric Blake  <address@hidden>
72611
72612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72613
72614 2006-02-16  Simon Josefsson  <jas@extundo.com>
72615
72616         * modules/getaddrinfo (Depends-on): Add sys_socket.
72617
72618 2006-02-15  Simon Josefsson  <jas@extundo.com>
72619
72620         * build-aux/maint.mk: Add dsyntax-check rule.
72621
72622 2006-02-15  Eric Blake  <ebb9@byu.net>
72623
72624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72625         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72626         'present but cannot compile' warnings on cygwin.
72627         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72628         use ws2tcpip.h if sys/socket.h works.
72629         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72630         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72631
72632 2006-02-14  Simon Josefsson  <jas@extundo.com>
72633
72634         * modules/maintainer-makefile (Files): Rename.
72635
72636         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72637         and (the local) Makefile.cfg to maint-cfg.mk.
72638
72639         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72640         to the latter.
72641
72642         * modules/maintainer-makefile: New module.
72643
72644         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72645         severaly stripped to make it possible to build it up from scratch
72646         with reliable tests.
72647
72648         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72649         fixes to permit overriding the default actions when configure and
72650         makefile are not available.
72651
72652 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Sync from coreutils.
72655         * modules/lstat (Depends-on): Don't depend on xalloc.
72656         (License): Change from GPL to LGPL, since this is now simply a
72657         replacement for a libc function.
72658
72659 2006-02-14  Jim Meyering  <jim@meyering.net>
72660
72661         Sync from coreutils.
72662
72663         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72664         failure on deficient systems, and simplify gnulib lgpl dependencies.
72665         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72666         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72667
72668         * lib/xalloc-die.c: Remove unused definition of N_.
72669
72670 2006-02-14  Jim Meyering  <jim@meyering.net>
72671
72672         Sync from coreutils.
72673         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72674         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72675         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72676         double-quote uses of that variable, to accommodate the rare case in
72677         which getmntent is available in none of the libraries checked.  This
72678         happens at least on FreeBSD 5.0.
72679
72680 2006-02-13  Simon Josefsson  <jas@extundo.com>
72681
72682         * gnulib-tool (Usage): Fix --import, from
72683         karl@freefriends.org (Karl Berry).
72684
72685 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72686
72687         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72688
72689 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72690
72691         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72692         "autoupdate" on 2005-12-12.
72693
72694 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * modules/closeout (Depends-on): Remove atexit.
72697
72698 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72701         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72702
72703 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72706         __EXTENSIONS__ if this causes compilation to fail.  Problem
72707         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72708         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72709
72710 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72713         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72715         All uses changed.
72716
72717 2006-01-26  Simon Josefsson  <jas@extundo.com>
72718
72719         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72720         prototype is visible on mingw32.
72721
72722         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72723         for mingw32.
72724
72725         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72726         mingw32).
72727
72728 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72731         attempt to open for write; this always fails, at least on POSIX
72732         hosts.  This reinstates the 2006-01-09 change, which was
72733         inadvertently removed.
72734
72735 2006-01-26  Bruno Haible  <bruno@clisp.org>
72736
72737         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72738         Reported by Paul Eggert.
72739
72740 2006-01-26  Bruno Haible  <bruno@clisp.org>
72741             Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * lib/stdbool_.h (_Bool)
72744         [(! (defined __cplusplus || defined __BEOS__)
72745           && !defined __GNUC__
72746           && !(defined __HP_cc || defined __xlc__
72747                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72748                || defined __sgi))]:
72749         #define to signed char in these cases too; this simplifies
72750         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72751         etc., separately) and makes it more conservative.
72752
72753 2006-01-25  Simon Josefsson  <jas@extundo.com>
72754
72755         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72756         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72757         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72758
72759 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72760
72761         * lib/argp-namefrob.h: Bugfix. Remove stray #
72762
72763 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72766         so that we test the test.
72767         Check for yet another HP-UX cc bug involving *bool |= bool.
72768
72769 2006-01-25  Karl Berry  <karl@gnu.org>
72770
72771         * config/srclist.txt (vasnprintf.c): sync lost.
72772
72773 2006-01-25  Jim Meyering  <jim@meyering.net>
72774
72775         Sync from the stable (b5) branch of coreutils:
72776
72777         * lib/fts.c (fts_children): Don't let close() clobber errno from
72778         failed fchdir().
72779
72780         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72781         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72782         a dangling symlink.  That can also happen at least for ELOOP.
72783         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72784         FYI, this bug predates the inclusion of fts.c in coreutils.
72785
72786         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72787         in their own block, so pre-c99 compilers don't object.
72788
72789         Avoid the double-free (first in fts_read, second in fts_close) that
72790         would occur when an `active' directory is made inaccessible (e.g.,
72791         via chmod a-x) during a traversal.
72792         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72793         before returning.  Reproduce this failure by
72794         mkdir -p a/b; cd a; chmod a-x . b
72795         Reported by Stavros Passas.
72796
72797 2006-01-25  Jim Meyering  <jim@meyering.net>
72798
72799         * lib/fileblocks.c: Remove more useless parentheses.
72800         * lib/readutmp.h: Likewise.
72801
72802 2006-01-25  Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72805         warnings.
72806         Reported by Paul Eggert.
72807
72808 2006-01-25  Bruno Haible  <bruno@clisp.org>
72809
72810         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72811         rid of a trap command. For Solaris sh.
72812         Reported by Mark D. Baushke <mdb@gnu.org>.
72813
72814 2006-01-24  Simon Josefsson  <jas@extundo.com>
72815
72816         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72817         Bruno.
72818
72819 2006-01-24  Karl Berry  <karl@gnu.org>
72820
72821         * config/srclist.txt (argp-namefrob.h): sync lost.
72822
72823 2006-01-24  Jim Meyering  <jim@meyering.net>
72824
72825         * modules/openat (Files): Add lib/intprops.h.
72826         From Mark D. Baushke.
72827
72828 2006-01-24  Jim Meyering  <jim@meyering.net>
72829
72830         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72831         Reported by Mark D. Baushke.
72832
72833 2006-01-24  Jim Meyering  <jim@meyering.net>
72834
72835         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72836
72837 2006-01-24  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/strnlen (Maintainer): Change from glibc to all.
72840
72841 2006-01-24  Bruno Haible  <bruno@clisp.org>
72842
72843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72844         Patch by Paul Eggert.
72845
72846 2006-01-24  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72849         already has it.
72850         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72851         2005-11-26.
72852
72853         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72854         'signed char' to avoid problems with the built-in _Bool type.
72855         Reported by Paul Eggert on 2005-11-26.
72856
72857 2006-01-24  Bruno Haible  <bruno@clisp.org>
72858
72859         * gnulib-tool (func_import): Avoid constructing complicated sed
72860         expressions inside backquote.
72861         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72862
72863 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72864
72865         These changes imported from libc.
72866         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72867         test and two separate function calls.
72868         * lib/strndup.c (__strndup): Add libc_hidden_def.
72869
72870 2006-01-23  Simon Josefsson  <jas@extundo.com>
72871
72872         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72873         Remove the test_*_SOURCES variable: automake infers it by default.
72874         * modules/tls-tests: Likewise.
72875
72876 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         Work around porting bugs reported by Dieter in
72879         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72880         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72881         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72882         Include "getopt.h" first, to check interface.
72883         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72884         !HAVE_DECL_GETENV.
72885         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72886         (__strndup): Revert to K&R-style function dfns, the glibc style.
72887         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72888         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72889         Include strnlen.h first, to get prototype properly.
72890         (strnlen): Renamed from __strnlen.
72891         Remove weak alias.
72892
72893 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72894
72895         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72896
72897 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * config/srclist.txt: Adjust to reflect glibc reorganization.
72900         This affects only comments.
72901
72902 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72903
72904          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72905          Reported by Bruce Korb <bkorb@gnu.org>.
72906
72907 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72910         to pacify gcc -Wswitch-default.
72911
72912 2006-01-22  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72915         temporary buffer for sprintf, take into account the precision also
72916         for 'd', 'i', 'u', 'o', 'x', 'X'.
72917
72918 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72919
72920         * modules/argp-tests: New module
72921         * tests/test-argp.c: New file
72922         * tests/test-argp-2.sh: New file
72923
72924 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72925
72926         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72927         (__argp_base_name): Removed
72928         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72929         typo.
72930         (__argp_base_name): Provide macro definition or extern declaration
72931         depending on the configuration
72932
72933 2006-01-20  Simon Josefsson  <jas@extundo.com>
72934
72935         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72936
72937 2006-01-20  Simon Josefsson  <jas@extundo.com>
72938
72939         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72940
72941 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72944         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72945         Suggested by Bruno Haible.
72946
72947 2006-01-20  Karl Berry  <karl@gnu.org>
72948
72949         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72950         until changes propagate, I guess.
72951
72952 2006-01-19  Simon Josefsson  <jas@extundo.com>
72953
72954         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72955
72956 2006-01-19  Simon Josefsson  <jas@extundo.com>
72957
72958         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72959
72960 2006-01-19  Simon Josefsson  <jas@extundo.com>
72961
72962         * gnulib-tool: Set check_PROGRAMS.
72963
72964         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72965         modules/des-tests, modules/gc-arcfour-tests,
72966         modules/gc-arctwo-tests, modules/gc-des-tests,
72967         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72968         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72969         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72970         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72971         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72972         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72973         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72974         test_*_SOURCES.
72975
72976 2006-01-18  Simon Josefsson  <jas@extundo.com>
72977
72978         * modules/socklen (Depends-on): Depend on sys_socket.
72979
72980 2006-01-18  Simon Josefsson  <jas@extundo.com>
72981
72982         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72983         modules/des-tests, modules/gc-arcfour-tests,
72984         modules/gc-arctwo-tests, modules/gc-des-tests,
72985         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72986         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72987         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72988         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72989         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72990         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72991         $(EXEEXT) to automake TESTS variable, for mingw32.
72992
72993 2006-01-17  Simon Josefsson  <jas@extundo.com>
72994
72995         * modules/socklen (Include): Need sys/socket.h.
72996
72997 2006-01-17  Bruno Haible  <bruno@clisp.org>
72998
72999         * modules/ssize_t (Include): Add <sys/types.h>.
73000
73001 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73004         it's not portable and it doesn't work with cross-compiles.
73005         Problem reported by Bruno Haible.  Fix missing-$ typo in
73006         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73007         -zignore from being used with Sun's C compiler.
73008
73009 2006-01-12  Simon Josefsson  <jas@extundo.com>
73010
73011         * lib/base64.c: Fix warning, reported by Bruno Haible
73012         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73013
73014 2006-01-12  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/ldd: New file.
73017         * build-aux/ldd.sh.in: New file.
73018         * MODULES.html.sh (Support for building libraries and executables): Add
73019         ldd.
73020
73021 2006-01-12  Bruno Haible  <bruno@clisp.org>
73022
73023         * m4/ldd.m4: New file.
73024
73025 2006-01-12  Bruno Haible  <bruno@clisp.org>
73026
73027         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73028         endless loop while replacing $auxdir with build-aux.
73029
73030 2006-01-11  Simon Josefsson  <jas@extundo.com>
73031
73032         * lib/stdint_.h (SIZE_MAX): Add missing (.
73033
73034 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73035
73036         Sync from coreutils.
73037         * lib/md5.c: Fix commentary typos.
73038         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73039         * lib/md5.h (__attribute__): Remove; unused.
73040         * lib/sha1.c: Fix commentary to match md5 better.
73041         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73042         so that we don't need to worry about alignment.  All uses changed.
73043         This merges the 2005-10-28 md5 change into sha1.
73044
73045 2006-01-11  Jim Meyering  <jim@meyering.net>
73046
73047         Sync from coreutils.
73048         * lib/md5.c (OP): Fix spacing.
73049
73050 2006-01-11  Bruno Haible  <bruno@clisp.org>
73051
73052         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73053         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73054         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73055
73056 2006-01-11  Bruno Haible  <bruno@clisp.org>
73057
73058         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73059         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73060         the "early" section as well.
73061
73062 2006-01-11  Bruno Haible  <bruno@clisp.org>
73063
73064         Avoid "ar: no archive members specified" error on MacOS X.
73065         * gnulib-tool (func_modules_add_dummy): New function.
73066         (func_import, func_create_testdir): Invoke it.
73067
73068 2006-01-11  Bruno Haible  <bruno@clisp.org>
73069
73070         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73071         with $auxdir in AC_CONFIG_FILES statements.
73072
73073 2006-01-11  Bruno Haible  <bruno@clisp.org>
73074
73075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73076         Initialize also noinst_HEADERS to empty.
73077
73078 2006-01-11  Bruno Haible  <bruno@clisp.org>
73079
73080         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73081         variables.
73082         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73083         autoreconf.
73084
73085 2006-01-11  Bruno Haible  <bruno@clisp.org>
73086
73087         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73088         overridable by the user.
73089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73090
73091 2006-01-10  Simon Josefsson  <jas@extundo.com>
73092
73093         * modules/sys_socket: New file.
73094
73095 2006-01-10  Simon Josefsson  <jas@extundo.com>
73096
73097         * m4/sys_socket_h.m4: New file.
73098
73099 2006-01-10  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/socket_.h: New file.
73102
73103 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         * modules/readutmp (Maintainer): Add myself.
73106
73107 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73110         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73111         People who are still concerned with buggy memcmp implementations
73112         can invoke gl_FUNC_MEMCMP themselves.
73113
73114 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         * lib/regex_internal.h (BITSET_WORD_BITS):
73117         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73118         preprocessor mishandles large unsigned values as if they were signed.
73119         Problem reported by Claudio Fontana in
73120         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73121
73122 2006-01-10  Jim Meyering  <jim@meyering.net>
73123
73124         Avoid the double-free (first in fts_read, second in fts_close) that
73125         would occur when an `active' directory is made inaccessible (e.g.,
73126         via chmod a-x) during a traversal.
73127         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73128         before returning.  Reproduce this failure by
73129         mkdir -p a/b; cd a; chmod a-x . b
73130         Reported by Stavros Passas.
73131
73132         Sync from coreutils.
73133         * lib/sha1.c: Tweak grammar in a comment.
73134
73135 2006-01-10  Jim Meyering  <jim@meyering.net>
73136
73137         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73138         Patch by Joerg Sonnenberger.
73139
73140 2006-01-10  Bruno Haible  <bruno@clisp.org>
73141
73142         * modules/readutmp: Depend on module free.
73143         * modules/strtok_r: Depend on module restrict.
73144
73145 2006-01-10  Bruno Haible  <bruno@clisp.org>
73146
73147         * modules/gettext (configure.ac): Add an invocation of
73148         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73149
73150 2006-01-10  Bruno Haible  <bruno@clisp.org>
73151
73152         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73153         Reported by Werner Lemberg <wl@gnu.org>.
73154
73155 2006-01-10  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/localcharset.c: Update from GNU gettext.
73158
73159 2006-01-10  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/argp.h (__const): Remove macro. Use const instead.
73162         * lib/argp-fmtstream.h (__const): Likewise.
73163         * lib/glob_.h (__const): Remove macro.
73164         * lib/glob-libc.h: Use const instead of __const.
73165
73166 2006-01-10  Bruno Haible  <bruno@clisp.org>
73167
73168         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73169         variable.
73170         Needed to avoid an automake error regarding the 'gettext' module.
73171
73172 2006-01-09  Simon Josefsson  <jas@extundo.com>
73173
73174         * modules/inet_ntop (Depends-on): Add restrict.
73175
73176 2006-01-09  Simon Josefsson  <jas@extundo.com>
73177
73178         * modules/gc-rijndael-tests (License): Put under LGPL.
73179
73180         * modules/gc-des-tests (License): Likewise.
73181
73182         * modules/gc-arcfour-tests (License): Likewise.
73183
73184         * modules/gc-arctwo-tests (License): Likewise.
73185
73186         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73187
73188         * modules/gc-hmac-sha1-tests (Files): Likewise.
73189
73190         * modules/gc-hmac-md5-tests (License): Likewise.
73191
73192         * modules/gc-sha1-tests (License): Likewise.
73193
73194         * modules/gc-md5-tests (License): Likewise.
73195
73196         * modules/gc-md4-tests (License): Likewise.
73197
73198         * modules/gc-md2-tests (License): Likewise.
73199
73200         * modules/gc-tests (License): Likewise.
73201
73202         * modules/des-tests (License): Likewise.
73203
73204         * modules/md4-tests (License): Likewise.
73205
73206         * modules/md2-tests (License): Likewise.
73207
73208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         Sync from coreutils:
73211
73212         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73213         * modules/lib-ignore: New file.
73214         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73215         chdir-safer.m4, lchmod.m4.
73216         * modules/openat: Add mkdirat.c, openat-priv.h.
73217
73218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         Sync from coreutils.
73221         * m4/lib-ignore.m4: New file.
73222         * m4/lchmod.m4: New file.
73223
73224 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         Sync from coreutils.
73227         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73228         for write access: POSIX says that must fail.
73229         * lib/fts.c (diropen): Likewise.
73230         * lib/save-cwd.c (save_cwd): Likewise.
73231         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73232         well, for minor improvements on hosts that lack O_DIRECTORY.
73233         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73234         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73235         Fall back on chown if open failed with EACCES.
73236
73237         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73238         Report an error at compile-time if only a 1-second nominal clock
73239         resolution is found.
73240
73241         * lib/lchmod.h: New file.
73242         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73243         (make_dir_parents): Use lchown rather than chown, and
73244         lchmod rather than chmod.
73245
73246         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73247         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73248         "proc" reported by n0dalus.
73249
73250         * lib/mountlist.c: Include <limits.h>.
73251         (dev_from_mount_options)
73252         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73253         New function.  It no longer assumes "dev=" has the System V meaning
73254         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73255         (read_file_system_list)
73256         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73257         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73258         dev= in that case.
73259
73260         * lib/posixtm.h (PDS_PRE_2000): New macro.
73261         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73262         allow_century.  All usages changed.  Reject dates outside the range
73263         1969-1999 if PDS_PRE_2000 is used.
73264
73265 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         Sync from coreutils.
73268         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73269         (Time of day items): Mention the possibility of leap seconds.
73270         Problem reported by Dr. David Alan Gilbert.
73271
73272 2006-01-09  Jim Meyering  <jim@meyering.net>
73273
73274         Sync from coreutils.
73275
73276         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73277
73278         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73279
73280         * lib/modechange.c (mode_compile): Reject an invalid mode string
73281         that starts with an octal digit.  From Andreas Gruenbacher.
73282
73283         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73284         and dup to open_safer and dup_safer, respectively.
73285         (openat_permissive): Fix typo in comment.
73286
73287         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73288         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73289         (_): Remove; no longer needed.
73290         (openat): Renamed from rpl_openat; no need for rpl_openat
73291         since openat.h renames openat for us.
73292         Replace most of the body with a call to openat_permissive,
73293         to avoid duplicate code.
73294         Port to (probably hypothetical) environments were mode_t is
73295         wider than int.
73296         (openat_permissive): Require mode arg, so that we can check
73297         types better.  Put it just after flags.  Change cwd failure
73298         indicator from pointer-to-bool to pointer-to-errno-value.
73299         All callers changed.
73300         Invoke openat_save_fail and/or openat_restore_fail if
73301         cwd_errno is null, so that openat can call us.
73302         (openat_permissive, fdopendir, fstatat, unlinkat):
73303         Simplify errno handling to avoid some duplicate code,
73304         as it's OK to set errno on success.
73305         * lib/openat.h: Revamp code so that function macros depend on
73306         __OPENAT_PREFIX only, not also on AT_FDCWD.
73307         (openat_ro): Remove.  Caller changed to use openat_permissive.
73308         (openat_permissive): Now a macro, if not a function.
73309         (openat_restore_fail, openat_save_fail): Now always functions,
73310         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73311
73312         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73313         and openat.c.
73314         * lib/mkdirat.c: Include openat-priv.h.
73315         Remove definitions of macros defined therein.
73316         * lib/openat.c: Likewise.
73317
73318         * lib/mkdirat.c (mkdirat): New file and function.
73319         * lib/openat.h (mkdirat): Declare.
73320
73321         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73322
73323         * lib/openat.h (openat_permissive): Declare.
73324         (openat_ro): Define.
73325
73326         * lib/openat.c (EXPECTED_ERRNO): New macro.
73327         (openat_permissive): New function -- used in remove.c rewrite.
73328         (all functions): Set errno just before returning, only if there
73329         was an actual failure.
73330         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73331
73332         Emulate openat-family functions using Linux's procfs, if possible.
73333         Idea and some code based on Ulrich Drepper's glibc changes.
73334
73335         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73336         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73337         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73338         before falling back on save_cwd and restore_cwd.
73339         (fdopendir, fstatat, unlinkat): Likewise.
73340
73341         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73342         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73343
73344         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73345         as second argument to va_arg.  Otherwise, some versions of gcc
73346         warn that `if this code is reached, the program will abort'.
73347
73348 2006-01-09  Jim Meyering  <jim@meyering.net>
73349
73350         Sync from coreutils.
73351         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73352         Require openat-priv.h.
73353
73354 2006-01-09  Bruno Haible  <bruno@clisp.org>
73355
73356         * modules/strnlen (Include): Use strnlen.h.
73357
73358 2006-01-09  Bruno Haible  <bruno@clisp.org>
73359
73360         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73361
73362 2006-01-09  Bruno Haible  <bruno@clisp.org>
73363
73364         * lib/sysexit_.h (EX_OK): New macro.
73365         Suggested by Martin Lambers <marlam@marlam.de>.
73366
73367 2006-01-09  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73370         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73371
73372 2006-01-09  Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73375         numbers.
73376
73377 2006-01-09  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73380         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73381         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73382         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73383
73384 2006-01-09  Bruno Haible  <bruno@clisp.org>
73385
73386         * build-aux/javacomp.sh.in: New file, moved from lib/.
73387         * modules/javacomp-script (Files): Update.
73388         (configure.ac): Add AC_CONFIG_FILES invocation.
73389         (EXTRA_DIST): Remove variable.
73390
73391         * build-aux/javaexec.sh.in: New file, moved from lib/.
73392         * modules/javaexec (Files): Update.
73393         (configure.ac): Add AC_CONFIG_FILES invocation.
73394         (EXTRA_DIST): Remove javaexec.sh.in.
73395
73396         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73397         * modules/csharpcomp-script (Files): Update.
73398         (configure.ac): Add AC_CONFIG_FILES invocation.
73399         (EXTRA_DIST): Remove variable.
73400
73401         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73402         * modules/csharpexec (Files): Update.
73403         (configure.ac): Add AC_CONFIG_FILES invocation.
73404         (EXTRA_DIST): Remove csharpexec.sh.in.
73405
73406 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73407
73408         Sync from coreutils.
73409
73410         Add POSIX ACL support
73411         * lib/acl.h (copy_acl, set_acl): Add declarations.
73412         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73413         systems other than Linux.
73414         (chmod_or_fchmod): New function: use fchmod when possible,
73415         and chmod otherwise.
73416         (file_has_acl): Add a POSIX ACL implementation, with a
73417         Linux-specific subcase.
73418         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73419         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73420         acls are unsupported.
73421         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73422         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73423         are unsupported.
73424
73425 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73426
73427         Sync from coreutils.
73428         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73429
73430 2006-01-07  Bruno Haible  <bruno@clisp.org>
73431
73432         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73433         gl_EARLY.
73434
73435 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73438         Problem reported for Mingw by Mark Junker.
73439
73440 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * README: Gnulib normally doesn't generate a tarball.
73443
73444 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73447         long int, not int, for nanosecond counts, so that people who are
73448         used to POSIX struct timespec won't be surprised.  Reported by Jim
73449         Meyering.
73450
73451 2005-12-28  Bruno Haible  <bruno@clisp.org>
73452
73453         * build-aux/config.rpath: Update from GNU gettext.
73454
73455 2005-12-16  Jim Meyering  <jim@meyering.net>
73456
73457         * modules/fprintftime: New module.
73458         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73459
73460 2005-12-16  Jim Meyering  <jim@meyering.net>
73461
73462         * m4/fprintftime.m4: New file.
73463
73464 2005-12-16  Jim Meyering  <jim@meyering.net>
73465
73466         * lib/fprintftime.c, lib/fprintftime.h: New files.
73467
73468 2005-12-15  Simon Josefsson  <jas@extundo.com>
73469
73470         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73471         new m4/socklen.m4.
73472
73473 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73474
73475         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73476         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73477
73478 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73479
73480         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73481         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73482         struct uparams is valid. Fall back to the default values if it is
73483         not.
73484
73485 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73486
73487         * modules/argp (Files): Add argp-pin.c
73488         (Depends-on): dirname
73489         (lib_SOURCES): Add argp-pin.c
73490
73491 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73492
73493         * m4/argp.m4:  Check if program_invocation_name and
73494         program_invocation_short_name are declared and define appropriate
73495         macros if they are not.
73496
73497 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73498
73499         * lib/argp-help.c (__argp_base_name): New function
73500         (__argp_short_program_name): Rewrite using __argp_base_name
73501         * lib/argp-namefrob.h: Define program_invocation_name and
73502         program_invocation_short_name if requested
73503         (__argp_base_name): Add prototype
73504         * lib/argp-parse.c (argp_def): Use gettext wrappers
73505         (argp_default_parser): Use __argp_base_name
73506         * lib/argp-pin.c: New file. Defines program_invocation_name and
73507         program_invocation_short_name on systems that lack them.
73508
73509 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73512         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73513         porting problem reported by Georg Schwarz in
73514         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73515
73516 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73519         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73520         porting problem reported by Georg Schwarz in
73521         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73522
73523 2005-12-05  Bruno Haible  <bruno@clisp.org>
73524
73525         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73526         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73527         Reported by Mark Junker <mjscod@gmx.de>.
73528
73529 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73532         Use implementation from Albert Chin, with some
73533         comments/corrections by Stepan Kasal and myself.
73534
73535 2005-12-02  Bruno Haible  <bruno@clisp.org>
73536
73537         * gnulib-tool (func_import): Accept GPLed build tool modules when
73538         --lgpl is given.
73539         * modules/csharpcomp-script: New file.
73540         * modules/csharpcomp: Depend on it.
73541         * modules/javacomp-script: New file.
73542         * modules/javacomp: Depend on it.
73543         Suggested by Simon Josefsson.
73544
73545 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73548         statement, to work around an HP-UX 10.20 compiler bug reported by
73549         Peter O'Gorman.
73550
73551 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * modules/savedir (Depends-on): Add openat.
73554
73555 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73558         (uintmax_t) [defined uintmax_t]: Do not declare.
73559         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73560         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73561         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73562         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73563         sake of portability to weird hosts that C allows (though we don't
73564         know of any practical examples).
73565
73566         * lib/savedir.h (fdsavedir): New decl.
73567         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73568         contains most of the former guts of savedir.
73569         (savedir): Use savedirstream.
73570         Include "openat.h".
73571
73572 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         * modules/obstack (Files): Add m4/ulonglong.m4.
73575         Problem reported by Davide Angelocola.
73576
73577 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73580         coreutils no longer futzes with rounding modes.
73581
73582 2005-11-14  Jim Meyering  <jim@meyering.net>
73583
73584         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73585         replacement of mkstemp.
73586
73587 2005-11-10  Simon Josefsson  <jas@extundo.com>
73588
73589         * lib/readline.c: Remove EOL.
73590
73591 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * modules/gethrxtime (Depends-on): Add gettime.
73594
73595 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73598         or gettimeofday; no longer needed.
73599
73600 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73601
73602         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73603         time business.
73604         (gethrxtime) [! (HAVE_NANOUPTIME
73605         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73606         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73607         our own approximation.
73608
73609 2005-11-08  Eric Blake  <ebb9@byu.net>
73610
73611         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73612
73613 2005-11-08  Eric Blake  <ebb9@byu.net>
73614
73615         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73616
73617 2005-11-04  Bruno Haible  <bruno@clisp.org>
73618
73619         * gnulib-tool: Implement --update mode.
73620
73621 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         Fix porting problem reported by Theodoros V. Kalamatianos.
73624         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73625         Don't assume that futimes failing means we must fail.
73626
73627 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73630         variables to suggest the intended function of the PATH_MAX check.
73631
73632 2005-10-30  Kean Johnston  <jkj@sco.com>
73633
73634         Trivial changes to support SCO systems.
73635         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73636         as PATH_MAX.
73637         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73638         where __ptr is null when no I/O is pending.
73639
73640 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73643         leave errno alone.  Problem reported by Dmitry V. Levin.
73644
73645 2005-10-28  Simon Josefsson  <jas@extundo.com>
73646
73647         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73648         Test more.
73649
73650         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73651
73652         * modules/md2, modules/md2-tests: New files.
73653
73654 2005-10-28  Simon Josefsson  <jas@extundo.com>
73655
73656         * m4/inet_ntop.m4: More tests.
73657
73658         * m4/gc-md2.m4, md2.m4: New file.
73659
73660 2005-10-28  Simon Josefsson  <jas@extundo.com>
73661
73662         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73663         "restrict" keywords, as per POSIX.  Protect the function
73664         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73665         Don't use K&R prototypes.  Check the sprintf return values.
73666         Re-define EAFNOSUPPORT if not present.  Indent.
73667
73668         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73669         suggested by Bruno Haible <bruno@clisp.org>.
73670
73671         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73672
73673         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73674
73675         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73676         libgcrypt).
73677
73678         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73679
73680         * lib/md2.h, lib/md2.c: New files.
73681
73682 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73685         errno alone.  Problem reported by Frederic Jolliton.
73686
73687 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73688
73689         * modules/verify (License): Change from GPL to LGPL.  This is a
73690         tiny module and there are apparently near-equivalents that are
73691         under the BSD license.
73692
73693 2005-10-24  Simon Josefsson  <jas@extundo.com>
73694
73695         * modules/sha1: Relicense to LGPL.
73696
73697 2005-10-24  Simon Josefsson  <jas@extundo.com>
73698
73699         * lib/md4.h: Shrink buffer size, now that we changed the type.
73700
73701 2005-10-23  Simon Josefsson  <jas@extundo.com>
73702
73703         * gnulib-tool (func_import): Fix --tests-base.
73704
73705 2005-10-22  Simon Josefsson  <jas@extundo.com>
73706
73707         * modules/arcfour (Depends-on): Need stdint.
73708
73709 2005-10-22  Simon Josefsson  <jas@extundo.com>
73710
73711         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73712         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73713
73714 2005-10-22  Simon Josefsson  <jas@extundo.com>
73715
73716         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73717         suggested by Bruno Haible <bruno@clisp.org>.
73718
73719 2005-10-22  Simon Josefsson  <jas@extundo.com>
73720
73721         * lib/crc.h: Include stddef.h, for size_t.
73722
73723 2005-10-22  Simon Josefsson  <jas@extundo.com>
73724
73725         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73726         arcfour_context struct (simplify test vector testing in GNU
73727         Shishi).
73728
73729 2005-10-21  Simon Josefsson  <jas@extundo.com>
73730
73731         * modules/des, modules/des-tests: New files.
73732
73733         * modules/gc-des, modules/gc-des-tests: New files.
73734
73735         * tests/test-des.c, tests/test-gc-des.c: New file.
73736
73737 2005-10-21  Simon Josefsson  <jas@extundo.com>
73738
73739         * modules/arctwo, modules/arctwo-tests: New files.
73740
73741         * tests/test-arctwo.c: New file.
73742
73743         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73744
73745         * tests/test-gc-arctwo.c: New file.
73746
73747 2005-10-21  Simon Josefsson  <jas@extundo.com>
73748
73749         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73750         Bruno Haible <bruno@clisp.org>.
73751
73752         * m4/gc-des.m4: New file.
73753
73754 2005-10-21  Simon Josefsson  <jas@extundo.com>
73755
73756         * m4/arctwo.m4: New file.
73757
73758         * m4/gc-arctwo.m4: New file.
73759
73760 2005-10-21  Simon Josefsson  <jas@extundo.com>
73761
73762         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73763         block.
73764
73765 2005-10-21  Simon Josefsson  <jas@extundo.com>
73766
73767         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73768         <bruno@clisp.org>.
73769
73770         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73771
73772         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73773         Bruno Haible <bruno@clisp.org>.
73774
73775         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73776         <bruno@clisp.org>.
73777
73778 2005-10-21  Simon Josefsson  <jas@extundo.com>
73779
73780         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73781
73782 2005-10-21  Simon Josefsson  <jas@extundo.com>
73783
73784         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73785
73786 2005-10-21  Simon Josefsson  <jas@extundo.com>
73787
73788         * lib/des.h, lib/des.c: New files.
73789
73790         * lib/gc-gnulib.c: Support DES.c
73791
73792 2005-10-21  Simon Josefsson  <jas@extundo.com>
73793
73794         * lib/arctwo.h, lib/arctwo.c: New files.
73795
73796         * lib/gc-gnulib.c: Support ARCTWO.
73797
73798 2005-10-21  Simon Josefsson  <jas@extundo.com>
73799
73800         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73801         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73802
73803 2005-10-21  Simon Josefsson  <jas@extundo.com>
73804
73805         * gnulib-tool (func_import, func_create_testdir): Define automake
73806         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73807         Makefile.am snippet),
73808         suggested by Bruno Haible <bruno@clisp.org>.
73809
73810         * modules/gc (Makefile.am): Use it.
73811
73812 2005-10-21  Bruno Haible  <bruno@clisp.org>
73813
73814         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73815         patch.
73816
73817 2005-10-19  Simon Josefsson  <jas@extundo.com>
73818
73819         * tests/test-gc-rijndael.c: New file.
73820
73821         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73822
73823 2005-10-19  Simon Josefsson  <jas@extundo.com>
73824
73825         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73826         interface too.
73827
73828 2005-10-19  Simon Josefsson  <jas@extundo.com>
73829
73830         * tests/test-gc-arcfour.c: New file.
73831
73832         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73833
73834 2005-10-19  Simon Josefsson  <jas@extundo.com>
73835
73836         * modules/gc-md4, modules/gc-md4-tests: New file.
73837
73838         * tests/test-gc-md4.c: New file.
73839
73840 2005-10-19  Simon Josefsson  <jas@extundo.com>
73841
73842         * m4/gc-md4.m4: New file.
73843
73844 2005-10-19  Simon Josefsson  <jas@extundo.com>
73845
73846         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73847         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73848         <kasal@ucw.cz>.
73849
73850 2005-10-19  Simon Josefsson  <jas@extundo.com>
73851
73852         * m4/gc-arcfour.m4: New file.
73853
73854         * m4/gc-rijndael.m4: New file.
73855
73856 2005-10-19  Simon Josefsson  <jas@extundo.com>
73857
73858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73859
73860 2005-10-19  Simon Josefsson  <jas@extundo.com>
73861
73862         * lib/gc-gnulib.c: Support ARCFOUR.
73863
73864 2005-10-19  Simon Josefsson  <jas@extundo.com>
73865
73866         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73867         support.
73868
73869         * lib/gc.h: Add ECB enum type.
73870
73871         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73872
73873 2005-10-18  Simon Josefsson  <jas@extundo.com>
73874
73875         * tests/test-md5.c: New file.
73876
73877         * modules/md5-tests: New file.
73878
73879 2005-10-18  Simon Josefsson  <jas@extundo.com>
73880
73881         * tests/test-md4.c: New file.
73882
73883         * modules/md4, modules/md4-tests: New files.
73884
73885 2005-10-18  Simon Josefsson  <jas@extundo.com>
73886
73887         * m4/md4.m4: New file.
73888
73889 2005-10-18  Simon Josefsson  <jas@extundo.com>
73890
73891         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73892
73893 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73894
73895         * gnulib-tool (func_create_testdir): Omit the second check whether
73896         BUILT_SOURCES in nonempty.
73897
73898 2005-10-17  Simon Josefsson  <jas@extundo.com>
73899
73900         * tests/test-rijndael.c: New file.
73901
73902 2005-10-17  Simon Josefsson  <jas@extundo.com>
73903
73904         * modules/sha1: Depend on stdint instead of md5.
73905
73906         * modules/md5: Depend on stdint, remove uint32_t.
73907
73908 2005-10-17  Simon Josefsson  <jas@extundo.com>
73909
73910         * modules/gc-sha1-tests: New file.
73911
73912         * tests/test-gc-sha1.c: New file.
73913
73914 2005-10-17  Simon Josefsson  <jas@extundo.com>
73915
73916         * m4/md5.m4: Remove call to uint32_t.m4.
73917
73918 2005-10-17  Simon Josefsson  <jas@extundo.com>
73919
73920         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73921
73922         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73923         md5.h.
73924
73925         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73926
73927         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73928
73929 2005-10-17  Simon Josefsson  <jas@extundo.com>
73930
73931         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73932
73933 2005-10-17  Simon Josefsson  <jas@extundo.com>
73934
73935         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73936
73937 2005-10-17  Simon Josefsson  <jas@extundo.com>
73938
73939         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73940
73941         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73942
73943 2005-10-17  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73946         that it can also be used in a test.
73947
73948 2005-10-16  Bruno Haible  <bruno@clisp.org>
73949
73950         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73951         TESTS_ENVIRONMENT, so that individual tests can augment it.
73952
73953         * gnulib-tool (func_create_testdir): Use an intermediate target for
73954         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73955         macros, like $(ALLOCA_H), which cannot be passed through the command
73956         line.
73957
73958 2005-10-15  Simon Josefsson  <jas@extundo.com>
73959
73960         * modules/rijndael-tests: New file.
73961
73962         * modules/rijndael: New file.
73963
73964 2005-10-15  Simon Josefsson  <jas@extundo.com>
73965
73966         * m4/rijndael.m4: New file.
73967
73968 2005-10-15  Simon Josefsson  <jas@extundo.com>
73969
73970         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73971
73972         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73973
73974 2005-10-14  Simon Josefsson  <jas@extundo.com>
73975
73976         * tests/test-arcfour.c: New file.
73977
73978         * modules/arcfour, modules/arcfour-tests: New files.
73979
73980 2005-10-14  Simon Josefsson  <jas@extundo.com>
73981
73982         * m4/arcfour.m4: New file.
73983
73984 2005-10-14  Simon Josefsson  <jas@extundo.com>
73985
73986         * lib/arcfour.h, lib/arcfour.c: New files.
73987
73988 2005-10-14  Roland McGrath  <roland@redhat.com>
73989
73990         Import from libc.  [BZ #1331]
73991         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73992         macro argument.
73993         Reported by Matej Vela <vela@debian.org>.
73994
73995 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73998         include <wchar.h>; no longer needed.
73999
74000 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74003
74004 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74005         and  Ulrich Drepper  <drepper@redhat.com>
74006
74007         Import from libc.
74008         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74009         instead of inline stream orientation test and two separate
74010         function calls.  Pay no attention to USE_IN_LIBIO.
74011
74012 2005-10-13  Simon Josefsson  <jas@extundo.com>
74013
74014         * modules/gc-hmac-md5-tests: New file.
74015
74016         * tests/test-gc-hmac-sha1.c: New file.
74017
74018         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74019
74020         * modules/gc-hmac-md5-tests: New file.
74021
74022         * tests/test-gc-md5.c: New file.
74023
74024         * modules/gc-md5-tests: New file.
74025
74026 2005-10-13  Simon Josefsson  <jas@extundo.com>
74027
74028         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74029         Move memory allocation outside of loop.
74030
74031 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74034         intermediate directory is in a read-only file system.  Problem
74035         reported by Eric Blake.
74036
74037 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74038
74039         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74040
74041 2005-10-12  Simon Josefsson  <jas@extundo.com>
74042
74043         * tests/test-hmac-sha1.c: New file.
74044
74045         * modules/hmac-sha1-tests: New file.
74046
74047         * modules/hmac-sha1: New file.
74048
74049 2005-10-12  Simon Josefsson  <jas@extundo.com>
74050
74051         * modules/gc-sha1: New file.
74052
74053 2005-10-12  Simon Josefsson  <jas@extundo.com>
74054
74055         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74056
74057         * tests/test-gc-pbkdf2-sha1.c: New file.
74058
74059 2005-10-12  Simon Josefsson  <jas@extundo.com>
74060
74061         * modules/gc-md5, modules/gc-hmac-md5: New files.
74062
74063         * modules/gc (Files): Remove md5, memxor and hmac files.
74064
74065 2005-10-12  Simon Josefsson  <jas@extundo.com>
74066
74067         * m4/gc-pbkdf2-sha1.m4: New file.
74068
74069         * m4/gc-hmac-sha1.m4: New file.
74070
74071         * m4/gc-sha1: New file.
74072
74073         * m4/hmac-sha1.m4: New file.
74074
74075 2005-10-12  Simon Josefsson  <jas@extundo.com>
74076
74077         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74078
74079         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74080
74081 2005-10-12  Simon Josefsson  <jas@extundo.com>
74082
74083         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74084         suggested by Bruno Haible <bruno@clisp.org>.
74085
74086 2005-10-12  Simon Josefsson  <jas@extundo.com>
74087
74088         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74089
74090 2005-10-12  Simon Josefsson  <jas@extundo.com>
74091
74092         * lib/gc-pbkdf2-sha1.c: New file.
74093
74094         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74095
74096 2005-10-12  Simon Josefsson  <jas@extundo.com>
74097
74098         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74099
74100         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74101
74102 2005-10-12  Simon Josefsson  <jas@extundo.com>
74103
74104         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74105         GC_USE_HMAC_MD5, respectively.
74106
74107         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74108         (gc_md5): Fix typo.
74109
74110         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74111
74112         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74113
74114         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74115
74116 2005-10-12  Bruno Haible  <bruno@clisp.org>
74117
74118         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74119         Reported by Stepan Kasal <kasal@ucw.cz>.
74120
74121 2005-10-11  Simon Josefsson  <jas@extundo.com>
74122
74123         * tests/test-crc.c: New file.
74124
74125         * modules/crc, modules/crc-tests: New files.
74126
74127 2005-10-11  Simon Josefsson  <jas@extundo.com>
74128
74129         * m4/crc.m4: New file.
74130
74131 2005-10-11  Simon Josefsson  <jas@extundo.com>
74132
74133         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74134
74135         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74136
74137         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74138
74139 2005-10-11  Simon Josefsson  <jas@extundo.com>
74140
74141         * lib/crc.h, lib/crc.c: New files.
74142
74143         * lib/gc.h (gc_hash_buffer): Add doc.
74144
74145 2005-10-11  Bruno Haible  <bruno@clisp.org>
74146
74147         * modules/c-strcasestr: New file.
74148         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74149
74150 2005-10-11  Bruno Haible  <bruno@clisp.org>
74151
74152         * modules/c-strcase: New file.
74153         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74154
74155 2005-10-11  Bruno Haible  <bruno@clisp.org>
74156
74157         * lib/strcasecmp.c: Include limits.h.
74158         (strcasecmp): Avoid integer overflow on exotic platforms.
74159         * lib/strncasecmp.c: Include limits.h.
74160         (strncasecmp): Avoid integer overflow on exotic platforms.
74161         Reported by Paul Eggert.
74162
74163 2005-10-11  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/c-strcasestr.h: New file, from GNU gettext.
74166         * lib/c-strcasestr.c: New file, from GNU gettext.
74167
74168 2005-10-11  Bruno Haible  <bruno@clisp.org>
74169
74170         * lib/c-strcase.h: New file, from GNU gettext.
74171         * lib/c-strcasecmp.c: New file, from GNU gettext.
74172         * lib/c-strncasecmp.c: New file, from GNU gettext.
74173
74174 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * modules/mempcpy (License): GPL -> LGPL.
74177         * modules/strchrnul (License): Likewise.
74178         * modules/sysexits (License): Likewise.
74179
74180 2005-10-08  Simon Josefsson  <jas@extundo.com>
74181
74182         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74183
74184 2005-10-07  Simon Josefsson  <jas@extundo.com>
74185
74186         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74187
74188 2005-10-06  Simon Josefsson  <jas@extundo.com>
74189
74190         * tests/test-hmac-md5.c: New file.
74191
74192         * modules/hmac-md5-tests: New file.
74193
74194         * modules/hmac-md5: New file.
74195
74196 2005-10-06  Simon Josefsson  <jas@extundo.com>
74197
74198         * m4/hmac-md5.m4: New file.
74199
74200         * m4/memxor.m4: Require gl_C_RESTRICT.
74201
74202 2005-10-06  Simon Josefsson  <jas@extundo.com>
74203
74204         * lib/memxor.c (memxor): Avoid casts and warnings.
74205
74206 2005-10-06  Simon Josefsson  <jas@extundo.com>
74207
74208         * lib/hmac-md5.c: New file.
74209
74210         * lib/hmac.h: New file.
74211
74212 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74215         promotes to int, not unsigned int, to catch the AIX 5.3
74216         compiler bug.
74217
74218 2005-10-05  Simon Josefsson  <jas@extundo.com>
74219
74220         * modules/memxor: New file.
74221
74222         * modules/iconv (Files): Move config.rpath to havelib, it is used
74223         there.
74224
74225         * modules/havelib (Files): Add config.rpath.
74226
74227 2005-10-05  Simon Josefsson  <jas@extundo.com>
74228
74229         * m4/memxor.m4: New file.
74230
74231 2005-10-05  Simon Josefsson  <jas@extundo.com>
74232
74233         * lib/memxor.c (memxor): Fix compiler error.
74234
74235         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74236         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74237
74238         * lib/memxor.h, lib/memxor.c: New files.
74239
74240         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74241         we assume all systems have it, suggested by Jim Meyering
74242         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74243         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74244         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74245         same reasons.
74246
74247 2005-10-05  Simon Josefsson  <jas@extundo.com>
74248
74249         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74250
74251 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74254         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74255         needed, since the source code now assumes these .h files.
74256
74257 2005-10-05  Derek Price  <derek@ximbiot.com>
74258
74259         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74260
74261 2005-10-05  Bruno Haible  <bruno@clisp.org>
74262
74263         * modules/stdint (License): Change to LGPL.
74264
74265 2005-10-04  Simon Josefsson  <jas@extundo.com>
74266
74267         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74268         D. Baushke" <mdb@gnu.org>.
74269
74270 2005-10-04  Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/verify.h (verify_true): Provide alternative definition for C++.
74273
74274 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74277         (SSIZE_MAX): New macro, if not already defined.
74278         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74279         than 2 GiB.
74280
74281 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         Sync from coreutils.
74284         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74285         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74286         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74287         ULLONG_MAX doesn't work with 2.7.2.1.
74288
74289 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74292         From Ben Pfaff.
74293
74294         * modules/exclude (Depends-on): Depend on verify.
74295         * modules/strtoimax (Depends-on): Likewise.
74296         * modules/utimecmp (Depends-on): Likewise.
74297
74298 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * lib/exclude.c: Include verify.h.
74301         (verify): Remove.  All callers changed to use verify.h's version.
74302         * lib/strtoimax.c: Likewise.
74303         * lib/utimecmp.c: Likewis.e
74304
74305         Sync from coreutils.
74306         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74307         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74308         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74309         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74310         bother returning ENOSYS if settimeofday or stime fails; just let
74311         them return whatever errno they want to return.
74312         * lib/utimens.c: Include unistd.h, for dup2.
74313         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74314         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74315
74316 2005-10-02  Jim Meyering  <jim@meyering.net>
74317
74318         Sync from coreutils.
74319         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74320         from glibc-2.2.5 that fails for read-only files.
74321
74322 2005-10-02  Jim Meyering  <jim@meyering.net>
74323
74324         Sync from coreutils.
74325         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74326         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74327         `#if HAVE_CONFIG_H'.
74328         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74329         Remove AT_FDCWD test.
74330         Do not consume the fd unless successful.
74331         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74332         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74333         block, so that we don't even try to compile it if settimeofday is
74334         available.  This works around a compilation failure on OSF1 V5.1,
74335         due to stime requiring a `long int*' while tv_sec is `int'.
74336
74337 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74338
74339         Sync from coreutils.
74340         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74341         against `yes', rather than just testing for nonempty.
74342
74343 2005-10-01  Simon Josefsson  <jas@extundo.com>
74344
74345         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74346         and Darwin.
74347
74348         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74349         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74350         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74351         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74352         Check if struct addrinfo is declared.
74353
74354 2005-10-01  Simon Josefsson  <jas@extundo.com>
74355
74356         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74357         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74358         AI_* and EAI_* definitions.  Protect function declarations.
74359
74360 2005-10-01  Jim Meyering  <jim@meyering.net>
74361
74362         Sync from coreutils.
74363
74364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74365         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74366         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74368         in the inet and nsl libraries.  Required on Solaris 5.7.
74369
74370 2005-10-01  Jim Meyering  <jim@meyering.net>
74371
74372         Sync from coreutils.
74373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74374         in the inet and nsl libraries.  Required on Solaris 5.7.
74375
74376 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74377
74378         * lib/getdelim.c (getdelim): Remove unused variables.
74379
74380 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74383         so that the code works even with ancient cpp.  Portability problem
74384         with GCC 2.7.2.1 reported by Thomas M.Ott.
74385
74386 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * modules/regex (Depends-on): Add strcase.
74389
74390         * modules/gethostname (Licence): Change from GPL to LGPL, since
74391         gethostname.c is a trivial implementation of a standard library
74392         function.
74393         * modules/poll (License): Change from GPL to LGPL, since it's
74394         derived from LGPL code.
74395
74396 2005-09-27  Jim Meyering  <jim@meyering.net>
74397
74398         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74399         HAVE_CONFIG_H.
74400
74401         * lib/intprops.h (signed_type_or_expr__): Define.
74402         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74403         for unsigned types.
74404
74405 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * lib/verify.h (verify_expr): Remove, replacing with:
74408         (verify_true): New macro that returns true instead of void.
74409         (verify_type__): Remove.
74410         (verify): Use verify_true rather than verify_type__.
74411
74412 2005-09-26  Bruno Haible  <bruno@clisp.org>
74413
74414         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74415         is necessary.
74416         (lib_SOURCES): Remove mbchar.c.
74417         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74418         (Files): Add m4/mbrtowc.m4.
74419         * modules/mbiter: Likewise.
74420         * modules/mbuiter: Likewise.
74421
74422 2005-09-26  Bruno Haible  <bruno@clisp.org>
74423
74424         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74425         compile mbchar.c if they are not both present.
74426         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74427         * m4/mbiter.m4 (gl_MBITER): Likewise.
74428         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74429         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74430         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74431
74432 2005-09-25  Jim Meyering  <jim@meyering.net>
74433
74434         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74435         also uses socklen_t.
74436
74437 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         * lib/utimens.c (ENOSYS): Define if not already defined.
74440         (futimens): Support having a null PATH if the file descriptor
74441         is nonnegative.
74442
74443         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74444         Remove.
74445         (__attribute): Define to empty unless GCC 3.1 or later.
74446         This works around a core dump on OpenBSD 3.4, which has GCC
74447         2.95.3, which dumps core when given __attribute__(()).  It also
74448         simplifies other tests, since we really don't want to bother with
74449         worrying about which ancient version of GCC supported what.
74450         Original problem reported by Yoann Vandoorselaere, with part of
74451         the fix suggested by Derek Price.
74452
74453 2005-09-24  Jim Meyering  <jim@meyering.net>
74454
74455         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74456         so we can once again use a positive bitfield width of 1 -- now we
74457         don't have to explain why we were using a bitfield width of 2.
74458
74459 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74462         and similarly for the other external symbols.  Problem reported
74463         by James Gallager.
74464
74465         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74466         bug reported by Jim Meyering.
74467
74468         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74469         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74470         not needed, since socklen is a prerequisite module.
74471
74472 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74473
74474         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74475         Problem reported by Eric Blake.
74476         (getaddrinfo): Initialize se so that it's not garbage.
74477         Redo internal storage allocation so that it doesn't make unportable
74478         assumptions about alignment.
74479         Fix a memory leak.
74480
74481         * lib/utimens.c (futimens): Use futimesat if available.
74482         Prefer it to futimes since it doesn't have the futimes bug.
74483
74484         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74485         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74486         Instead, declare a function that returns a pointer to an array,
74487         and use verify_type__ to declare the size of the array.
74488         Problem and germ of a solution reported by Bruno Haible.
74489         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74490         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74491
74492 2005-09-23  Jim Meyering  <jim@meyering.net>
74493
74494         Sync from coreutils.
74495         Correct build failure (socklen_t not defined) on at least
74496         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74498
74499 2005-09-23  Jim Meyering  <jim@meyering.net>
74500
74501         * modules/getaddrinfo (Depends-on): Add socklen.
74502
74503 2005-09-23  Bruno Haible  <bruno@clisp.org>
74504
74505         * tests/test-verify.c: New file.
74506
74507 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         Sync from coreutils.
74510
74511         * modules/argmatch (Depends-on): Add verify.
74512         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74513         unistd-safer.
74514         * modules/save-cwd (Depends-on): Likewise.
74515
74516         * modules/openat (Files): Add lib/openat-die.c.
74517         (Depends-on): Remove error, exitfail.
74518         Add dirname.
74519
74520         * modules/verify: New file.
74521         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74522         with "verify" module.
74523
74524 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         Sync from coreutils.
74527
74528         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74529         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74530         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74531         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74532         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74533         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74534         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74535         Don't bother checking for string.h, stdlib.h, unistd.h.
74536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74538         module's job.
74539         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74540         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74541
74542         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74543         (gl_GETDATE): Use it.
74544
74545         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74546
74547 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74548
74549         Sync from coreutils.
74550
74551         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74552         stat-time.h.
74553         * lib/argmatch.h: Include verify.h
74554         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74555         (ARGMATCH_ASSERT): Remove; unused.
74556         * lib/canonicalize.c: Assume STDC_HEADERS.
74557         * lib/exclude.c: Include "strcase.h".
74558         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74559         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74560         and stdio-safer.h.
74561         (getusershell): Call fopen, not fopen_safer.
74562         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74563         Do not include unistd-safer.h.
74564         (save_cwd): Don't call fd_safer; no longer needed
74565         now that we include fcntl--.h.
74566
74567         * lib/getdate.y (relative_time): New type.
74568         (RELATIVE_TIME_0): New constant.
74569         (parser_control): Use relative_time instead of doing it ourselves.
74570         (%union): Add new relative_time rel member.
74571         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74572         Now typeless.
74573         (relunit, relunit_snumber): Now of type rel.
74574         (zone, rel, relunit, get_date): Adjust to above changes.
74575
74576         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74577         Do not include unistd-safer.h.
74578         (getloadavg): Don't call fd_safer; no longer needed
74579         now that we include fcntl--.h.
74580
74581         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74582         (make_dir_parents): Treat ENOSYS like EEXIST.
74583
74584         Improve quality of diagnostics on restore_cwd failure.
74585         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74586         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74587         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74588         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74589         each time through the loop.  Do not diagnose restore_cwd failure;
74590         that is the caller's job (and perhaps the caller does not care).
74591
74592         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74593         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74594         If the file already exists but is not a directory, don't bother
74595         to try to make its parents.
74596         Close potential file descriptor leak if we can't chdir("/") (!).
74597         Don't always return true if chdir($PWD) fails; return true only
74598         if the requested action was done successfully (except for the
74599         chdir($PWD)).
74600         Don't log final directory unless we actually made it.
74601         Refactor to avoid duplicate code to fix up permissions.
74602         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74603
74604         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74605         to make it a bit faster and (I hope) clearer.
74606         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74607         Fix bug in formats like %2N.
74608
74609         * lib/verify.h: New file.
74610
74611 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         Sync from coreutils.
74614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74615
74616 2005-09-22  Jim Meyering  <jim@meyering.net>
74617
74618         Sync from coreutils.
74619
74620         * m4/lstat.m4 (gl_FUNC_LSTAT):
74621         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74622         Remove obsolete comment.
74623         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74624         * m4/xstrtod.m4: Likewise.
74625
74626         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74627
74628 2005-09-22  Jim Meyering  <jim@meyering.net>
74629
74630         Sync from coreutils.
74631
74632         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74633
74634         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74635         the .tm_year member, since otherwise gcc-4.0 would now warn about
74636         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74637
74638         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74639         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74640
74641         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74642         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74643         when run in a time zone for which daylight savings time is in effect
74644         for the starting date.
74645
74646         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74647         stop us from restricting permissions of just-created absolute-named
74648         directories.
74649         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74650         to restore initial working directory.
74651         * lib/mkdir-p.c (make_dir_parents): New parameter:
74652         different_working_dir, to tell caller if/when we change the working
74653         directory and are unable to return to the initial one.
74654         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74655         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74656         `return false'.  This fixes a bug introduced on 2004-07-30.
74657
74658         * lib/openat.c (fdopendir): Be sure to close the supplied
74659         file descriptor before returning.  This makes our replacement
74660         implementation a little closer to Solaris's, where fdopendir
74661         ties the file descriptor to the returned DIR* pointer.
74662         * lib/openat.c (unlinkat): New function.
74663         * lib/openat.h (unlinkat): Add prototype.
74664         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74665         (openat_restore_fail): Rename from openat_restore_die.
74666         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74667
74668         Provide an alternative to exiting immediately upon save_cwd or
74669         restore_cwd failure.  Now, an application can arrange e.g.,
74670         to perform a longjump in that case.
74671         * lib/openat.c: Include dirname.h.
74672         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74673         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74674         and openat_restore_die rather than calling error directly.
74675         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74676
74677         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74678         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74679         define.
74680
74681         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74682         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74683                             int utc, int nanoseconds);
74684         Background:
74685         date should not have to allocate a megabyte of virtual memory to
74686         handle a format argument like +%1048575T.  When implemented with
74687         strftime, it must allocate such a buffer, use strftime to fill it
74688         in, print it, then free it.
74689         With fprintftime, it simply prints everything and exits.
74690         With no need for memory allocation, that's one fewer way to fail.
74691         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74692         optional field width, not before, so we accept %9:z, not %:9z.
74693         (my_strftime): Be sure to use L_('x') for literals.
74694
74695         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74696         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74697         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74698         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74699         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74700         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74701         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74702         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74703         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74704         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74705         * lib/xgethostname.c, lib/xreadlink.c:
74706         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74707
74708         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74709         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74710         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74711         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74712         and don't include <sys/file.h>).
74713
74714 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74715
74716         Sync from coreutils.
74717
74718         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74719         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74720         [!LDAV_DONE]: Avoid unused variable warning.
74721
74722 2005-09-21  Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/unicodeio.h (unicode_to_mb): New declaration.
74725
74726 2005-09-20  Derek Price  <derek@ximbiot.com>
74727
74728         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74729         getaddrinfo.h.
74730
74731 2005-09-20  Bruno Haible  <bruno@clisp.org>
74732
74733         * gnulib-tool: Remove trailing slashes from the values specified for
74734         --source-base, --m4-base, --tests-base, --aux-dir.
74735         Suggested by Simon Josefsson <jas@extundo.com>.
74736
74737 2005-09-20  Bruno Haible  <bruno@clisp.org>
74738
74739         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74740         func_modules_to_filelist, func_import, func_create_testdir): Make all
74741         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74742         change when gnulib-tool is invoked in a different locale.
74743
74744 2005-09-19  Simon Josefsson  <jas@extundo.com>
74745
74746         * m4/socklen.m4: Fix typo.
74747
74748 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74749
74750         Use a consistent style for including <config.h>.
74751         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74752         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74753         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74754         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74755         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74756         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74757         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74758         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74759         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74760         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74761         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74762         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74763         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74764         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74765         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74766         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74767         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74768         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74769         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74770         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74771         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74772         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74773         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74774         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74775         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74776         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74777         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74778         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74779         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74780         lib/xstrtoumax.c, lib/yesno.c:
74781         Standardize inclusion of config.h.
74782         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74783         lib/inttostr.h:  Removed inclusion of config.h from header files.
74784         * lib/inttostr.c:  Adjusted in-tree users.
74785         * lib/timespec.h: Remove superfluous warning to include config.h.
74786         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74787         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74788         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74789         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74790         config.h with HAVE_CONFIG_H.
74791
74792 2005-09-19  Jim Meyering  <jim@meyering.net>
74793
74794         * modules/pathmax (License): Change to LGPL.
74795
74796 2005-09-19  Derek Price  <derek@ximbiot.com>
74797
74798         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74799
74800 2005-09-19  Bruno Haible  <bruno@clisp.org>
74801
74802         * gnulib-tool (import): Provide default for --tests-base.
74803
74804 2005-09-19  Bruno Haible  <bruno@clisp.org>
74805
74806         * doc/quote.texi: New file, extracted from gnulib.texi.
74807         * doc/ctime.texi: New file, extracted from gnulib.texi.
74808         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74809         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74810         * doc/gnulib.texi: Include them.
74811
74812 2005-09-18  Bruno Haible  <bruno@clisp.org>
74813
74814         Portability fix.
74815         * gnulib-tool (func_readlink): New function.
74816         (func_ln_if_changed): Use it.
74817
74818 2005-09-18  Bruno Haible  <bruno@clisp.org>
74819
74820         * gnulib-tool: Support --with-tests also with --import.
74821         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74822         (func_import): Use variables $testsbase and $inctests. Emit a
74823         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74824         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74825         SUBDIRS += $testsdir.
74826         (func_create_testdir): Update.
74827
74828 2005-09-18  Bruno Haible  <bruno@clisp.org>
74829
74830         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74831         instead of $dry_run.
74832         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74833         (func_ln_if_changed): Don't handle dry-run here.
74834         (func_import): In dry-run mode, detect more precisely which actions
74835         would be performed, and don't use "...ing" verbs.
74836
74837 2005-09-18  Bruno Haible  <bruno@clisp.org>
74838
74839         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74840         (func_import): Use join on two temporary files instead of three nested
74841         loops, in order to determine which files are new or old.
74842
74843 2005-09-18  Bruno Haible  <bruno@clisp.org>
74844
74845         * gnulib-tool (func_import): Comment out code that spits out the
74846         new files with --dry-run.
74847
74848 2005-09-18  Bruno Haible  <bruno@clisp.org>
74849
74850         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74851
74852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * lib/stat-time.h: New file.
74855         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74856         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74857         in a different way.
74858         (timespec_cmp): New function.
74859         * lib/utimecmp.c: Include stat-time.h.
74860         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74861         members exist, not on the obsolescent ST_MTIM_NSEC.
74862         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74863
74864 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74867
74868 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * MODULES.html.sh (File system functions): Add stat-time.
74871         * modules/stat-time: New file.
74872         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74873         is now done in a different way, by the stat-time module.
74874         * modules/utimecmp (Depends-on): Add stat-time.
74875
74876 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * m4/st_mtim.m4: Remove.  Superseded by...
74879         * m4/stat-time.m4: New file.
74880         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74881         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74882
74883 2005-09-15  Derek Price  <derek@ximbiot.com>
74884
74885         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74886
74887 2005-09-15  Derek Price  <derek@ximbiot.com>
74888
74889         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74890         * lib/regex_internal.c: Ditto, using this...
74891         (__GNUC_PREREQ): ...new macro.
74892         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74893         using...
74894         (__GNUC_PREREQ): ...this new macro.
74895
74896         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74897
74898 2005-09-15  Derek Price  <derek@ximbiot.com>
74899             Paul Eggert  <eggert@cs.ucla.edu>
74900
74901         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74902         changes, consolidating in...
74903         * lib/regex_internal.h: ...this file.
74904
74905 2005-09-13  Jim Meyering  <jim@meyering.net>
74906
74907         * lib/canon-host.c: Filter through gnu indent and reword comments
74908         slightly.
74909         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74910
74911 2005-09-13  Derek Price  <derek@ximbiot.com>
74912
74913         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74914         failure.
74915         Reported by Jim Meyering  <jim@meyering.net>.
74916
74917 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74918
74919         * lib/base64.c: Typo.
74920         (base64_encode): Put b64str in initialized data section.
74921
74922 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         Merge glibc and coreutils changes into gnulib, plus a few
74925         extra fixes.
74926         * lib/md5.c: Use #error rather than a string.
74927         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74928         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74929         (__attribute__): Define to empty for non recent-GCC.
74930         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74931         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74932         Renamed from their non-__ counterparts, with new macros replacing
74933         them if not _LIBC.  Add __THROW attribute.
74934         (rol): Remove.
74935         (struct md5_ctx): Align buffer if using GCC.
74936         * lib/sha1.h (struct sha1_ctx): Likewise.
74937         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74938         The old name was backwards.
74939         (NOTSWAP): Remove; not used.
74940         (rol): New macro, moved here from md5.h.
74941         (sha1_process_block): Remove a FIXME that doesn't make sense.
74942
74943 2005-09-12  Derek Price  <derek@ximbiot.com>
74944
74945         Return usable errors from canon-host.
74946         * lib/canon-host.h: New file.
74947         * lib/canon-host.c (canon_host): Wrap...
74948         (canon_host_r): ...this new function, which now relies exclusively on
74949         getaddrinfo.
74950         (ch_strerror): New function.
74951         (last_cherror): New global.
74952         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74953         interface.
74954         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74955         void *.
74956         (freeaddrinfo): Free ai->ai_canonname when set.
74957
74958 2005-09-12  Derek Price  <derek@ximbiot.com>
74959
74960         Make canon-host require getaddrinfo.
74961         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74962         AC_LIBSOURCE canon-host.h.  Call...
74963         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74964         gl_GETADDRINFO.
74965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74966
74967 2005-09-12  Derek Price  <derek@ximbiot.com>
74968
74969         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74970         LGPL.
74971         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74972
74973 2005-09-12  Derek Price  <derek@ximbiot.com>
74974
74975         * lib/gai_strerror.c: Include config.h when available.  Include
74976         getaddrinfo.h before other headers to test interface.
74977         Reported by Larry Jones <lawrence.jones@ugs.com>.
74978
74979 2005-09-12  Derek Price  <derek@ximbiot.com>
74980             Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * modules/glob (Files): Add glob-libc.h.
74983
74984 2005-09-12  Derek Price  <derek@ximbiot.com>
74985             Paul Eggert  <eggert@cs.ucla.edu>
74986
74987         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74988         glob_.h, glob-libc.h.
74989         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74990
74991 2005-09-12  Derek Price  <derek@ximbiot.com>
74992             Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74995         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74996         protecting things that should be done only in gnulib contexts.
74997         * lib/glob_.h: New file, containing only the glob things needed for
74998         gnulib.
74999         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75000         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75001         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75002         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75003         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75004         and to respect the namespace rules better.
75005
75006 2005-09-08  Simon Josefsson  <jas@extundo.com>
75007
75008         * modules/socklen: New file.
75009
75010 2005-09-08  Simon Josefsson  <jas@extundo.com>
75011
75012         * m4/socklen.m4: New file.
75013
75014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * modules/utimens (Files): Add m4/utimbuf.m4, since
75017         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75018         Reported by Sergey Poznyakoff.
75019
75020 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75021
75022         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75023         definitions, since that's the preferred style in glibc.
75024         Fix a minor spacing issue, and update copyright notice to match
75025         glibc's.
75026
75027 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75030
75031 2005-09-06  Simon Josefsson  <jas@extundo.com>
75032
75033         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75034         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75035
75036 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75039         warning.
75040
75041 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * config/srclist.txt: Add glibc bug 1302.
75044
75045 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         Change bitset word type from unsigned int to unsigned long int,
75048         as this has better performance on typical 64-bit hosts.
75049         Port bitset code to hosts with unusual word sizes.
75050         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75051         (build_collating_symbol):
75052         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75053         argument is a bitset.  This is merely a style issue, but it makes
75054         it clearer that an entire array is expected.
75055         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75056         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75057         Port to the case where bitset_word is not the same as unsigned int.
75058         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75059         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75060         Likewise.
75061         * lib/regexec.c (check_dst_limits_calc_pos_1,
75062         check_subexp_matching_top):
75063         (build_trtable, group_nodes_into_DFAstates):
75064         Likewise.
75065         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75066         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75067         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75068         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75069         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75070         * lib/regcomp.c (optimize_subexps, lower_subexp):
75071         Work even if bitset_word has holes in its bitwise representation.
75072         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75073         * lib/regexec.c (check_dst_limits_calc_pos_1,
75074         check_subexp_matching_top):
75075         Likewise.
75076         * lib/regex_internal.c (re_string_reconstruct):
75077         Don't assume UCHAR_MAX == 255.
75078         * lib/regex_internal.h (bitset_set_all): Likewise.
75079         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75080         All uses changed.
75081         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75082         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75083         All uses changed.
75084         (BITSET_WORD_MAX): New macro.
75085         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75086         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75087         (bitset_empty, bitset_copy):
75088         Prefer sizeof (bitset) to multiplying it out ourselves.
75089         (bitset_not_merge): Remove; unused.
75090         (bitset_contain): Return bool, not unsigned int with one bit on.
75091         All callers changed.
75092         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75093         alignment than re_node_set; do this by defining a new internal
75094         type struct dests_alloc and using it to allocate memory.
75095
75096 2005-09-05  Bruno Haible  <bruno@clisp.org>
75097
75098         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75099         links.
75100
75101 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75102
75103         * modules/size_max (Makefile.am): Add size_max.h
75104
75105 2005-09-04  Derek Price  <derek@ximbiot.com>
75106
75107         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75108
75109 2005-09-03  Simon Josefsson  <jas@extundo.com>
75110
75111         * gnulib-tool: Fix typo.
75112
75113 2005-09-03  Simon Josefsson  <jas@extundo.com>
75114
75115         * config/srclist.txt: Add glibc bug 1293.
75116
75117 2005-09-03  Derek Price  <derek@ximbiot.com>
75118
75119         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75120         From Larry Jones <lawrence.jones@ugs.com>.
75121
75122 2005-09-02  Simon Josefsson  <jas@extundo.com>
75123
75124         * modules/socklen: New file.
75125
75126 2005-09-02  Simon Josefsson  <jas@extundo.com>
75127
75128         * modules/havelib: New module.
75129
75130         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75131         Use havelib.
75132
75133 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         Check for arithmetic overflow when calculating sizes, to prevent
75136         some buffer-overflow issues.  These patches are conservative, in the
75137         sense that when I couldn't determine whether an overflow was possible,
75138         I inserted a run-time check.
75139         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75140         macros.
75141         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75142         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75143         (re_xnrealloc, re_x2nrealloc): New inline functions.
75144         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75145         parse_bracket_exp):
75146         (build_equiv_class, build_charclass): Check for arithmetic overflow
75147         in size expression calculations.
75148         * lib/regex_internal.c (re_string_realloc_buffers):
75149         (build_wcs_upper_buffer, re_node_set_add_intersect):
75150         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75151         (re_dfa_add_node, register_state): Likewise.
75152         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75153         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75154         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75155         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75156
75157 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75160         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75161
75162 2005-09-02  Bruno Haible  <bruno@clisp.org>
75163
75164         Support for lib vs. lib64 distinction on biarch platforms.
75165         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75166         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75167         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75168
75169 2005-09-02  Bruno Haible  <bruno@clisp.org>
75170
75171         * gnulib-tool (import): In the other first-use case, provide defaults
75172         as well.
75173
75174 2005-09-02  Bruno Haible  <bruno@clisp.org>
75175
75176         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75177         patches not yet found in the latest gettext release.
75178
75179 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75182         to avoid a collision with bits/local_lim.h in glibc.
75183         All uses changed.  Problem reported by Dmitry V. Levin in
75184         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75185
75186         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75187         bugs in int versus size_t comparisons.
75188         (re_string_context_at): Fix bug where the code assumed that
75189         Idx is signed.
75190
75191         Use bool where appropriate.
75192         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75193         All callers changed.
75194         (calc_eclosure_iter): Likewise, for ROOT arg.
75195         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75196         (build_charclass_op): Likewise, for NON_MATCH arg.
75197         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75198         (re_string_construct_common): Likewise, for ICASE arg.
75199         * lib/regexec.c (re_search_2_stub, re_search_stub):
75200         Likewise, for RET_LEN arg.
75201         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75202         (set_regs): Likewise, for FL_BACKTRACK arg.
75203         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75204         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75205         (calc_eclosure_iter, parse_bracket_exp):
75206         Use bool for internal variables that are booleans.
75207         * lib/regexec.c (re_search_internal, check_matching,
75208         proceed_next_node):
75209         (set_regs, build_sifted_states, sift_states_bkref):
75210         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75211         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75212         (find_collation_sequence_value):
75213         Likewise.
75214         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75215         (re_node_set_compare):
75216         Return bool, not int. All callers changed.
75217         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75218         (build_trtable, check_node_accept): Likewise.
75219         * lib/regex_internal.h: Include stdbool.h.
75220
75221         Fix bugs uncovered when converting to bool.
75222         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75223         failure instead of charging ahead blindly.
75224         * lib/regex_internal.c (register_state): Likewise.
75225         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75226         for freeing internal storage.
75227         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75228         bitset pieces used as boolean, to avoid undefined behavior
75229         on hosts that do int overflow checking.
75230
75231 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * config/srclist.txt: Add glibc bugs 1285-1287.
75234
75235 2005-09-01  Jim Meyering  <jim@meyering.net>
75236
75237         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75238         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75239         Require gl_STAT_MACROS, too.
75240
75241 2005-09-01  Bruno Haible  <bruno@clisp.org>
75242
75243         * gnulib-tool (import): In the first-use case, provide defaults.
75244
75245 2005-09-01  Bruno Haible  <bruno@clisp.org>
75246
75247         * gnulib-tool (func_import): Remove the .tmp files.
75248
75249 2005-09-01  Bruno Haible  <bruno@clisp.org>
75250
75251         * gnulib-tool (func_import): Fix handling of symbolic links.
75252
75253 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75256         old glibc regex code mishandles strings longer than 2**31 bytes.
75257         This patch fixes this when the regex code is used in gnulib
75258         (i.e., outside glibc).
75259
75260         This patch should not affect the use of the regex code inside
75261         glibc.  No doubt this problem also needs to be handled for glibc
75262         as well, but the result will be an incompatible change to the
75263         glibc ABI, and the old ABI will have to be supported too.  That
75264         can be the the subject for another patch.
75265
75266         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75267         governing whether the rest of this patch is active.  By default,
75268         the macro is disabled and the patch has no effect.
75269         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75270         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75271         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75272         (re_match_2, re_set_registers): Use the new types.
75273         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75274         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75275         New macros.
75276         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75277         (re_string_context_at, bin_tree_t, re_dfastate_t):
75278         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75279         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75280         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75281         (re_string_char_size_at, re_string_wchar_at):
75282         (re_string_elem_size_at):
75283         Use the new types and macros to port to 64-bit hosts.
75284         Use unsigned types for internal values, so that the code
75285         mostly works even for arrays larger than SSIZE_MAX.
75286         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75287         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75288         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75289         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75290         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75291         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75292         (calc_inveclosure, parse_dup_op, build_range_exp):
75293         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75294         (fetch_number, create_token_tree, mark_opt_subexp):
75295         Likewise.
75296         * lib/regex_internal.c (re_string_construct_common,
75297         create_ci_newstate):
75298         (create_cd_newstate, re_string_allocate, re_string_construct):
75299         (re_string_realloc_buffers, build_wcs_upper_buffer):
75300         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75301         (re_string_reconstruct, re_string_peek_byte_case):
75302         (re_string_fetch_byte_case, re_string_context_at):
75303         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75304         (re_node_set_init_copy, re_node_set_add_intersect):
75305         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75306         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75307         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75308         (re_acquire_state, re_acquire_state_context, register_state):
75309         Likewise.
75310         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75311         search_cur_bkref_entry):
75312         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75313         (re_search_internal, re_search_2_stub, re_search_stub)
75314         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75315         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75316         (update_cur_sifted_state, check_dst_limits):
75317         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75318         (check_subexp_limits, sift_states_bkref, merge_state_array):
75319         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75320         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75321         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75322         (expand_bkref_cache, check_node_accept_bytes):
75323         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75324         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75325         (acquire_init_state_context, check_halt_node_context):
75326         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75327         (sift_states_backward, clean_state_log_if_needed):
75328         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75329         (find_recover_state, transit_state_sb, transit_state_mb):
75330         (transit_state_bkref, build_trtable, match_ctx_clean):
75331         Likewise.
75332         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75333         to work around an assumption that REG_MISSING is negative.
75334
75335         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75336         (seek_collating_symbol_entry) [defined _LIBC]:
75337         (lookup_collation_sequence_value) [defined _LIBC]:
75338         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75339         Use prototypes rather than old-style function definitions.
75340         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75341         (transit_state_sb) [0]:
75342         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75343
75344         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75345         rm_eo.
75346
75347         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75348         (optimize_subexps, lower_subexp):
75349         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75350         since the signed shift might overflow.  Use 1u<<31 instead.
75351         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75352         Likewise.
75353         * lib/regexec.c (check_dst_limits_calc_pos_1,
75354         check_subexp_matching_top): Likewise.
75355
75356         * lib/regcomp.c (optimize_subexps, lower_subexp):
75357         Use CHAR_BIT rather than 8, for clarity.
75358         * lib/regexec.c (check_dst_limits_calc_pos_1):
75359         (check_subexp_matching_top): Likewise.
75360         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75361         have to worry about portability issues when shifting it left.
75362         Remove no-longer-needed test for table_size > 0.
75363         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75364         in a word, as the resulting behavior is undefined.
75365         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75366         in one case, a <= should have been an <, and in another case the
75367         whole test was missing.
75368         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75369         the standard name CHAR_BIT.
75370         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75371         this is not true on one's complement and signed-magnitude hosts.
75372
75373         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75374         next_last_offset.
75375         (struct re_dfa_t): Remove unused member states_alloc.
75376         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75377
75378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75381         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75382         and large-file glibc and in 32-bit large-file Solaris.
75383
75384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75387         lengths fit in regoff_t; this isn't true if regoff_t is the same
75388         width as size_t.
75389         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75390         (= START + RANGE) instead of RANGE.  This avoids overflow
75391         problems when regoff_t is the same width as size_t.
75392         All callers changed.
75393         (re_search_2_stub): Check for overflow when adding the
75394         sizes of the two strings.
75395         (re_search_stub): Check for overflow when adding START
75396         to RANGE; if it occurs, substitute the extreme value.
75397
75398 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75401
75402 2005-08-31  Jim Meyering  <jim@meyering.net>
75403
75404         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75405         a pointer-to-const.
75406         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75407         (register_state): Likewise.
75408         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75409         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75410         (group_nodes_into_DFAstates): Likewise.
75411
75412 2005-08-31  Jim Meyering  <jim@meyering.net>
75413
75414         * check-module: Add a FIXME comment.
75415
75416 2005-08-31  Eric Blake  <ebb9@byu.net>
75417
75418         * modules/unistd-safer (Files): Add unistd--.h.
75419         * modules/stdio-safer (Files): Add stdio--.h.
75420
75421 2005-08-31  Derek Price  <derek@ximbiot.com>
75422
75423         * lib/getdelim.c (getdelim): Return EOF on EOF.
75424         Reported by Larry Jones <lawrence.jones@ugs.com>.
75425
75426 2005-08-31  Bruno Haible  <bruno@clisp.org>
75427
75428         Avoid unnecessary diffs in the generated lib/Makefile.am.
75429         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75430         the generated files.
75431         (func_import): Don't set cmd.
75432
75433 2005-08-31  Bruno Haible  <bruno@clisp.org>
75434
75435         * lib/strstr.c: Include <stddef.h>, for NULL.
75436         * lib/strcasestr.c: Likewise.
75437         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75438
75439 2005-08-31  Bruno Haible  <bruno@clisp.org>
75440
75441         * gnulib-tool: New option --macro-prefix.
75442         (func_import): Use macro_prefix.
75443         (import): Handle option --macro-prefix.
75444
75445 2005-08-31  Bruno Haible  <bruno@clisp.org>
75446
75447         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75448         Also use new variables cached_lgpl, cached_libtool.
75449
75450 2005-08-31  Bruno Haible  <bruno@clisp.org>
75451
75452         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75453         always instantiating them.
75454
75455 2005-08-31  Bruno Haible  <bruno@clisp.org>
75456
75457         * gnulib-tool (func_import): Read the previous cached settings
75458         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75459         earlier added by gnulib but are now dropped. Warn when a gnulib file
75460         overwrites a non-gnulib file.
75461
75462 2005-08-31  Bruno Haible  <bruno@clisp.org>
75463
75464         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75465         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75466         projects that don't keep autogenerated files in CVS. Put into
75467         actioncmd only the specified modules, not the transitive closure.
75468
75469 2005-08-31  Bruno Haible  <bruno@clisp.org>
75470
75471         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75472         Create directories that shall be filled.
75473         (import): Don't look for gl_* macros in configure.ac. Recurse across
75474         all directories containing a gnulib-cache.m4 files, if meaningful.
75475
75476 2005-08-31  Bruno Haible  <bruno@clisp.org>
75477
75478         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75479         (import): Set seen_libtool when we see gl_LIBTOOL.
75480
75481 2005-08-31  Bruno Haible  <bruno@clisp.org>
75482
75483         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75484         declaration macro definitions from generated gnulib.m4.
75485
75486 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75487
75488         * lib/iconvme.h: Add prototype for iconv_alloc.
75489
75490 2005-08-29  Simon Josefsson  <jas@extundo.com>
75491
75492         * lib/iconvme.c: Fix errno.
75493
75494 2005-08-29  Bruno Haible  <bruno@clisp.org>
75495
75496         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75497         that it works when the directory contains spaces.
75498
75499 2005-08-29  Bruno Haible  <bruno@clisp.org>
75500
75501         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75502
75503 2005-08-29  Bruno Haible  <bruno@clisp.org>
75504
75505         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75506         Emit more advice.
75507
75508 2005-08-29  Bruno Haible  <bruno@clisp.org>
75509         and Stepan Kasal  <kasal@ucw.cz>
75510
75511         * check-module: If more parameters are given, check each of them
75512         separately; add more exceptions, as noted by Jim Meyering.
75513         (check_module): New procedure.
75514         (%exempt_header): Now contains all exceptions.
75515
75516 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75517
75518         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75519
75520 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75521
75522         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75523
75524 2005-08-28  Bruno Haible  <bruno@clisp.org>
75525
75526         * m4/gnulib-tool.m4: New file.
75527
75528 2005-08-27  Jim Meyering  <jim@meyering.net>
75529
75530         * modules/unistd-safer (Files): Add pipe-safer.c.
75531         * modules/fcntl-safer (Files): Add creat-safer.c.
75532
75533 2005-08-27  Jim Meyering  <jim@meyering.net>
75534
75535         * m4/stdlib-safer.m4: New file.  From coreutils.
75536         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75537         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75538         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75540         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75541
75542 2005-08-27  Jim Meyering  <jim@meyering.net>
75543
75544         * lib/fopen-safer.c: Merge minor changes from coreutils.
75545         * lib/dup-safer.c: Likewise.
75546         * lib/fd-safer.c: Likewise.
75547
75548         Merge from coreutils.
75549         * lib/stdio--.h: New file.
75550         * lib/stdlib--.h: New file.
75551         * lib/mkstemp-safer.c: New file.
75552
75553         GNU tar needs these.
75554         * lib/pipe-safer.c: New file.
75555         * lib/creat-safer.c: New file.
75556         * lib/fcntl--.h (creat): Define to creat_safer.
75557         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75558         * lib/unistd--.h (pipe): Define to pipe_safer.
75559         * lib/unistd-safer.h: Declare pipe_safer.
75560
75561 2005-08-26  Simon Josefsson  <jas@extundo.com>
75562
75563         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75564         Haible <bruno@clisp.org>.
75565
75566 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * lib/regex_internal.h: Remove all references to
75569         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75570         or better.
75571         (bitset_not, bitset_merge, bitset_not_merge):
75572         (bitset_mask, re_string_allocate, re_string_construct):
75573         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75574         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75575         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75576         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75577         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75578         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75579         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75580         (re_acquire_state_context):
75581         Remove unnecessary forward decls.
75582         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75583         Put __attribute at function definition,
75584         now that the function decl has been removed.
75585         * lib/regex_internal.c (re_string_peek_byte_case):
75586         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75587         Likewise.
75588
75589 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75590
75591         * m4/regex.m4: Add AC_PREREQ(2.50).
75592         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75593
75594 2005-08-25  Simon Josefsson  <jas@extundo.com>
75595
75596         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75597         __fsetlocking.
75598
75599 2005-08-25  Simon Josefsson  <jas@extundo.com>
75600
75601         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75602         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75603         GLIBC specific code.
75604
75605 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         Make regex safe for g++.  This fixes one real bug (an "err"
75608         that should have been "*err").  g++ problem reported by
75609         Sam Steingold.
75610         * lib/regex_internal.h (re_calloc): New macro, consistent with
75611         re_malloc etc.  All callers of calloc changed to use re_calloc.
75612         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75613         not int.  All callers changed.
75614         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75615         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75616         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75617         (find_recover_state): Change "err" to "*err"; this fixes what
75618         appears to be a real bug.
75619         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75620         versus int.
75621
75622 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * modules/regex (Depends-on): Add malloc, since the code
75625         assumes that !malloc(0) means failure.
75626
75627 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75630
75631         alloca modernization/simplification for regex.
75632         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75633         needs to be at the start of the file, and can be moved into
75634         regex_internal.h and simplified.
75635         * lib/regex_internal.h: Include <alloca.h>.
75636         (__libc_use_alloca) [!defined _LIBC]: New macro.
75637         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75638         now works outside glibc.
75639
75640 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * config/srclist.txt: Add glibc bugs 1241, 1245.
75643
75644 2005-08-25  Jim Meyering  <jim@meyering.net>
75645
75646         * lib/open-safer.c: Include <config.h>.
75647         Otherwise, we'd lose LARGEFILE support in any file using
75648         e.g. "fcntl--.h"
75649
75650 2005-08-25  Bruno Haible  <bruno@clisp.org>
75651
75652         * m4/minmax.m4: Require autoconf 2.52.
75653         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75654         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75655         alternatives of translit over the alphabet.
75656         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75657
75658 2005-08-24  Simon Josefsson  <jas@extundo.com>
75659
75660         * tests/test-getpass.c: New file.
75661
75662 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75665         for GNU regex features.
75666
75667 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75670         * lib/regex.h (regerror): Likewise.
75671
75672         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75673         requires this.  (The code never needed it.)
75674
75675         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75676         All uses of recently-renamed identifiers changed to use the new,
75677         POSIX-compliant names.  The code will build and run just fine
75678         without these changes, but it's better to eat our own dog food
75679         and use the standard-conforming names.
75680
75681         * lib/regex.h: Fix a multitude of POSIX name space violations.
75682         These changes have an effect only for programs that define
75683         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75684         do not change anything for programs compiled in the normal way.
75685         Also, there is no effect on the ABI.
75686
75687         (_REGEX_SOURCE): New macro.
75688         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75689         defined and _GNU_SOURCE is not; this fixes a name space violation.
75690
75691         Rename the following macros to obey POSIX requirements.
75692         The old names are still visible as macros if _REGEX_SOURCE is defined.
75693         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75694         RE_BACKSLASH_ESCAPE_IN_LISTS.
75695         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75696         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75697         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75698         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75699         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75700         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75701         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75702         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75703         (REG_INTERVALS): renamed from RE_INTERVALS.
75704         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75705         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75706         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75707         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75708         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75709         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75710         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75711         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75712         RE_UNMATCHED_RIGHT_PAREN_ORD.
75713         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75714         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75715         (REG_DEBUG): renamed from RE_DEBUG.
75716         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75717         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75718         unusual, since we can't clash with the POSIX REG_ICASE.
75719         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75720         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75721         (REG_NO_SUB): renamed from RE_NO_SUB.
75722         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75723         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75724         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75725         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75726         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75727         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75728         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75729         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75730         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75731         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75732         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75733         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75734         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75735         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75736         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75737         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75738         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75739         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75740         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75741         (REG_FIXED): Renamed from REGS_FIXED.
75742         (REG_NREGS): Renamed from RE_NREGS.
75743
75744         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75745         of other REG_* macros, since POSIX says the user is allowed to
75746         #undef these macros selectively.
75747
75748         (reg_errcode_t): Update comment stating what other tables need
75749         to be consistent.
75750
75751         Rename the following enum values to obey POSIX requirements.
75752         The old names are still visible as macros.
75753         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75754         is not defined, since GNU is supposed to be a superset of POSIX as
75755         much as possible, and since we want reg_errcode_t to be a signed
75756         type for implementation consistency.
75757         (_REG_NOERROR): Renamed from REG_NOERROR.
75758         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75759         (_REG_BADPAT): Renamed from REG_BADPAT.
75760         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75761         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75762         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75763         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75764         (_REG_EBRACK): Renamed from REG_EBRACK.
75765         (_REG_EPAREN): Renamed from REG_EPAREN.
75766         (_REG_EBRACE): Renamed from REG_EBRACE.
75767         (_REG_BADBR): Renamed from REG_BADBR.
75768         (_REG_ERANGE): Renamed from REG_ERANGE.
75769         (_REG_ESPACE): Renamed from REG_ESPACE.
75770         (_REG_BADRPT): Renamed from REG_BADRPT.
75771         (_REG_EEND): Renamed from REG_EEND.
75772         (_REG_ESIZE): Renamed from REG_ESIZE.
75773         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75774         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75775         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75776         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75777         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75778
75779         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75780         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75781         changed.  But support the old name if the new one is not defined
75782         and if _REGEX_SOURCE.
75783
75784         Change the following member names in struct re_pattern_buffer.
75785         The old names are still supported if !_REGEX_SOURCE.
75786         The new names are always supported, regardless of _REGEX_SOURCE.
75787         (re_buffer): Renamed from buffer.
75788         (re_allocated): Renamed from allocated.
75789         (re_used): Renamed from used.
75790         (re_syntax): Renamed from syntax.
75791         (re_fastmap): Renamed from fastmap.
75792         (re_translate): Renamed from translate.
75793         (re_can_be_null): Renamed from can_be_null.
75794         (re_regs_allocated): Renamed from regs_allocated.
75795         (re_fastmap_accurate): Renamed from fastmap_accurate.
75796         (re_no_sub): Renamed from no_sub.
75797         (re_not_bol): Renamed from not_bol.
75798         (re_not_eol): Renamed from not_eol.
75799         (re_newline_anchor): Renamed from newline_anchor.
75800
75801         Change the following member names in struct re_registers.
75802         The old names are still supported if !_REGEX_SOURCE.
75803         The new names are always supported, regardless of _REGEX_SOURCE.
75804         (rm_num_regs): Renamed from num_regs.
75805         (rm_start): Renamed from start.
75806         (rm_end): Renamed from end.
75807
75808         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75809         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75810         Prepend __ to parameter names.
75811
75812         Undo yesterday's changes.
75813
75814 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75817         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75818         lib/regex.c.
75819
75820 2005-08-24  Jim Meyering  <jim@meyering.net>
75821
75822         Sync from coreutils.
75823         * m4/fcntl-safer.m4: New file.
75824
75825         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75826         and object files for this module.
75827
75828 2005-08-24  Jim Meyering  <jim@meyering.net>
75829
75830         Sync from coreutils.
75831         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75832
75833 2005-08-24  Jim Meyering  <jim@meyering.net>
75834
75835         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75836         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75837
75838 2005-08-24  Jim Meyering  <jim@meyering.net>
75839
75840         * modules/fcntl-safer: New module.
75841         * modules/fts (Depends-on): Add fcntl-safer.
75842         * MODULES.html.sh (File descriptor based Input/Output):
75843         Add fcntl-safer.
75844
75845 2005-08-24  Bruno Haible  <bruno@clisp.org>
75846
75847         Support for unit test modules.
75848         * modules/README: Mention tests modules.
75849         * modules/TEMPLATE-TESTS: New file.
75850         * gnulib-tool: New options --extract-tests-module, --with-tests and
75851         --tests-base (unused for the moment).
75852         (testsbase, inctests): New variables.
75853         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75854         (func_verify_module): Exclude TEMPLATE-TESTS.
75855         (func_verify_nontests_module, func_verify_tests_module): New functions.
75856         (func_get_dependencies): Add implicit dependency for tests modules.
75857         (func_get_tests_module): New function.
75858         (func_modules_transitive_closure): When --with-tests was specified,
75859         include the unit tests as well, unless explicitly avoided.
75860         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75861         (func_emit_tests_Makefile_am): New function.
75862         (func_create_testdir): When --with-tests was specified, emit a
75863         tests/ directory.
75864         * MODULES.html.sh (Future developments): Update.
75865
75866 2005-08-24  Bruno Haible  <bruno@clisp.org>
75867
75868         * modules/tls-tests: New file.
75869         * tests/test-tls.c: New file, from GNU gettext.
75870
75871 2005-08-24  Bruno Haible  <bruno@clisp.org>
75872
75873         * modules/lock-tests: New file.
75874         * tests/test-lock.c: New file, from GNU gettext.
75875
75876 2005-08-24  Bruno Haible  <bruno@clisp.org>
75877
75878         * lib/lock.h: Add multiple inclusion guard.
75879         * lib/tls.h: Add multiple inclusion guard.
75880
75881 2005-08-24  Bruno Haible  <bruno@clisp.org>
75882
75883         * gnulib-tool: Add support for the --aux-dir option to
75884         --create-testdir, --create-megatestdir, --test, --megatest.
75885         (func_create_testdir, func_create_megatestdir): Optionally emit a
75886         AC_CONFIG_AUX_DIR directive.
75887         (create-testdir, create-megatestdir, test, megatest): Provide a
75888         default value for $auxdir.
75889
75890 2005-08-24  Bruno Haible  <bruno@clisp.org>
75891
75892         * gnulib-tool (import): Use compound statement instead of subshell
75893         where possible.
75894
75895 2005-08-24  Bruno Haible  <bruno@clisp.org>
75896
75897         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75898
75899 2005-08-24  Bruno Haible  <bruno@clisp.org>
75900
75901         * gnulib-tool (func_version): Update.
75902
75903 2005-08-24  Bruno Haible  <bruno@clisp.org>
75904
75905         * gnulib-tool (func_import, func_create_testdir,
75906         func_create_megatestdir): Quote all autoconf macro arguments.
75907
75908 2005-08-24  Bruno Haible  <bruno@clisp.org>
75909
75910         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75911         option --force, because --force causes the aclocal.m4 of each
75912         subdirectory to be newer than the corresponding config.h.in.
75913
75914 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75917         All contents moved to gl_REGEX.
75918         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75919         assume that it does.
75920
75921 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * lib/regex.h (REG_NOSYS)
75924         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75925         Define, since POSIX requires it as of 2001.
75926         (_REG_ENOSYS)
75927         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75928         New private symbol, used to keep the enum signed in all cases.
75929         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75930         Youngman in
75931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75932
75933         * lib/regex_internal.c (re_string_skip_chars, register_state):
75934         (calc_state_hash):
75935         Remove forward decls; no longer needed now that we use prototypes.
75936         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75937         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75938         (clean_state_log_if_needed): Likewise.
75939
75940 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * config/srclist.txt: Add glibc bugs 1231-1233.
75943
75944 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         Fix problems reported by Sam Steingold in
75947         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75948         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75949         assumed that reg_errcode_t is a signed type, which is not
75950         necessarily true if _XOPEN_SOURCE is not defined.
75951         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75952         since some compilers warn about it otherwise.
75953
75954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75957         (init_word_char, create_initial_state, duplicate_node_closure):
75958         (fetch_token, peek_token_bracket, build_range_exp):
75959         (build_collating_symbol): Remove forward decls; no longer needed
75960         now that we use prototypes.
75961
75962         * lib/regcomp.c:
75963         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75964         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75965         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75966         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75967         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75968         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75969         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75970         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75971         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75972         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75973         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75974         (build_charclass, build_charclass_op, fetch_number, create_tree):
75975         (create_token_tree, mark_opt_subexp, duplicate_tree):
75976         Use prototypes rather than old-style definitions.
75977
75978         * lib/regex_internal.c:
75979         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75980         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75981         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75982         (re_string_reconstruct, re_string_peek_byte_case):
75983         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75984         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75985         (re_node_set_init_copy, re_node_set_add_intersect):
75986         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75987         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75988         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75989         (re_acquire_state, re_acquire_state_context, register_state):
75990         (create_ci_newstate, create_cd_newstate, free_state):
75991         Likewise.
75992         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75993         re_search_2):
75994         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75995         (re_search_internal, prune_impossible_nodes):
75996         (acquire_init_state_context, check_matching, static):
75997         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75998         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75999         (update_regs, sift_states_backward, build_sifted_states):
76000         (clean_state_log_if_needed, merge_state_array):
76001         (update_cur_sifted_state, add_epsilon_src_nodes):
76002         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76003         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76004         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76005         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76006         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76007         (check_arrival, check_arrival_add_next_nodes):
76008         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76009         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76010         (check_node_accept_bytes, check_node_accept, extend_buffers):
76011         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76012         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76013         (sift_ctx_init):
76014         Likewise.
76015
76016         * lib/regex_internal.h:
76017         (re_string_allocate, re_string_construct, re_string_reconstruct):
76018         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76019         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76020         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76021         (re_string_context_at, re_string_peek_byte_case):
76022         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76023         is defined, since we now use prototypes always.
76024
76025         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76026         C89 or better.  All uses removed.
76027
76028 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * config/srclist.txt: Add glibc bugs 1220-1227.
76031
76032 2005-08-20  Jim Meyering  <jim@meyering.net>
76033
76034         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76035         of unused local, dfa.
76036
76037 2005-08-20  Bruno Haible  <bruno@clisp.org>
76038
76039         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76040
76041 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76044         (re_node_set_insert_last, re_dfa_add_node):
76045         Rename local variables to avoid GCC shadowing warnings.
76046
76047 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76050         [defined lint]: Suppress bogus uninitialized-variable warnings.
76051
76052         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76053         and let the caller return REG_ESPACE if out of space.  This
76054         removes an uninitialied-variable warning with GCC 4.0.1, and also
76055         avoids taking the address of a local variable.  All callers
76056         changed.
76057
76058 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76061         $LIBCSRC/posix/regexec.c.
76062         Add glibc bug 1217 for regcomp.c.
76063
76064 2005-08-19  Jim Meyering  <jim@meyering.net>
76065
76066         * lib/regexec.c (proceed_next_node): Redo local variables to
76067         avoid GCC shadowing warnings.
76068
76069 2005-08-18  Bruno Haible  <bruno@clisp.org>
76070
76071         * lib/strstr.c (strstr): Fix return value in multibyte case.
76072         * lib/strcasestr.c (strcasestr): Likewise.
76073
76074 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76077
76078 2005-08-17  Jim Meyering  <jim@meyering.net>
76079
76080         Make the %s format (seconds since the epoch) work for a negative
76081         number and when used with a zero-padded field width, e.g. %015s.
76082
76083         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76084         label so that it precedes the code to set `digits'.  Otherwise,
76085         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76086         print `00-22'.  Now, it prints `-0022', as it should.
76087
76088 2005-08-17  Bruno Haible  <bruno@clisp.org>
76089
76090         * modules/strstr (Files): Add m4/mbrtowc.m4.
76091         (Depends-on): Add mbuiter.
76092
76093 2005-08-17  Bruno Haible  <bruno@clisp.org>
76094
76095         * modules/strcasestr: New file.
76096         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76097         strcasestr.
76098
76099 2005-08-17  Bruno Haible  <bruno@clisp.org>
76100
76101         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76102
76103 2005-08-17  Bruno Haible  <bruno@clisp.org>
76104
76105         * modules/mbuiter: New file.
76106         * MODULES.html.sh (Extended multibyte and wide character utilities):
76107         Add mbuiter.
76108
76109 2005-08-17  Bruno Haible  <bruno@clisp.org>
76110
76111         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76112         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76113
76114 2005-08-17  Bruno Haible  <bruno@clisp.org>
76115
76116         * m4/strcasestr.m4: New file.
76117
76118 2005-08-17  Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76121         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76122
76123 2005-08-17  Bruno Haible  <bruno@clisp.org>
76124
76125         * lib/strcasestr.h: New file.
76126         * lib/strcasestr.c: New file.
76127
76128 2005-08-17  Bruno Haible  <bruno@clisp.org>
76129
76130         * lib/strcasecmp.c: Use mbuiter.h.
76131
76132 2005-08-17  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/mbuiter.h: New file.
76135
76136 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76139         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76140         and gl_GETOPT are both invoked via different paths (as happens
76141         with GNU tar CVS because it uses both argp and getopt), the former
76142         wins.
76143
76144 2005-08-16  Bruno Haible  <bruno@clisp.org>
76145
76146         * modules/tls: New file.
76147         * MODULES.html.sh (Multithreading): Add tls.
76148
76149 2005-08-16  Bruno Haible  <bruno@clisp.org>
76150
76151         * modules/strnlen1: New file.
76152         * MODULES.html.sh (String handling): Add strnlen1.
76153
76154 2005-08-16  Bruno Haible  <bruno@clisp.org>
76155
76156         * modules/strcase (Files): Add m4/mbrtowc.m4.
76157         (Depends-on): Add strnlen1, mbchar.
76158
76159 2005-08-16  Bruno Haible  <bruno@clisp.org>
76160
76161         * modules/mbiter: New file.
76162         * MODULES.html.sh (Extended multibyte and wide character utilities):
76163         Add mbiter.
76164
76165 2005-08-16  Bruno Haible  <bruno@clisp.org>
76166
76167         * modules/mbfile: New file.
76168         * MODULES.html.sh (Extended multibyte and wide character utilities):
76169         Add mbfile.
76170
76171 2005-08-16  Bruno Haible  <bruno@clisp.org>
76172
76173         * modules/mbchar: New file.
76174         * MODULES.html.sh (Extended multibyte and wide character utilities):
76175         New section.
76176
76177 2005-08-16  Bruno Haible  <bruno@clisp.org>
76178
76179         * m4/tls.m4: New file, from GNU gettext.
76180
76181 2005-08-16  Bruno Haible  <bruno@clisp.org>
76182
76183         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76184         always.
76185         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76186
76187 2005-08-16  Bruno Haible  <bruno@clisp.org>
76188
76189         * m4/mbiter.m4: New file.
76190
76191 2005-08-16  Bruno Haible  <bruno@clisp.org>
76192
76193         * m4/mbfile.m4: New file.
76194
76195 2005-08-16  Bruno Haible  <bruno@clisp.org>
76196
76197         * m4/mbchar.m4: New file.
76198
76199 2005-08-16  Bruno Haible  <bruno@clisp.org>
76200
76201         * lib/tls.h: New file, from GNU gettext.
76202         * lib/tls.c: New file, from GNU gettext.
76203
76204 2005-08-16  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/strnlen1.h: New file.
76207         * lib/strnlen1.c: New file.
76208
76209 2005-08-16  Bruno Haible  <bruno@clisp.org>
76210
76211         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76212         (mbi_init): Update.
76213         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76214         NUL byte, not after it.
76215
76216 2005-08-16  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/strcase.h (strcasecmp): Add note in comments.
76219         * lib/strncasecmp.c: Use code from strcasecmp.c.
76220         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76221         (strcasecmp): Work correctly in multibyte locales.
76222
76223 2005-08-16  Bruno Haible  <bruno@clisp.org>
76224
76225         * lib/mbiter.h: New file.
76226
76227 2005-08-16  Bruno Haible  <bruno@clisp.org>
76228
76229         * lib/mbfile.h: New file.
76230
76231 2005-08-16  Bruno Haible  <bruno@clisp.org>
76232
76233         * lib/mbchar.h: New file.
76234         * lib/mbchar.c: New file.
76235
76236 2005-08-16  Bruno Haible  <bruno@clisp.org>
76237
76238         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76239         the valid ones. Makes the comparison operations transitive:
76240         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76241         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76242
76243 2005-08-15  Simon Josefsson  <jas@extundo.com>
76244
76245         * modules/ssize_t (License): Change to 'unlimited'.
76246
76247         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76248
76249 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76252         Add comments for each pending glibc patch.
76253
76254 2005-08-15  Bruno Haible  <bruno@clisp.org>
76255
76256         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76257         __cplusplus is defined.
76258
76259 2005-08-14  Jim Meyering  <jim@meyering.net>
76260
76261         Sync from coreutils.
76262
76263         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76264         Use the hash-table-based cycle-detection code not just when
76265         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76266         Reported by James Youngman in
76267         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76268         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76269         FTS_TIGHT_CYCLE_CHECK.
76270         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76271         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76272         once again.
76273         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76274         * lib/fts.c (fd_safer): Remove decl.
76275         Include fcntl--.h rather than unistd-safer.h
76276         (fts_safe_changedir): Don't call fd_safer; no longer needed
76277         now that we include fcntl--.h.
76278
76279 2005-08-12  Simon Josefsson  <jas@extundo.com>
76280
76281         * modules/getndelim2: Use ssize_t module.
76282         * modules/getnline: Likewise.
76283         * modules/safe-read: Likewise.
76284         * modules/xreadlink: Likewise.
76285
76286         * modules/ssize_t: New file.
76287
76288 2005-08-12  Simon Josefsson  <jas@extundo.com>
76289
76290         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76291
76292 2005-08-12  Simon Josefsson  <jas@extundo.com>
76293
76294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76295         ssize_t.
76296
76297 2005-08-12  Simon Josefsson  <jas@extundo.com>
76298
76299         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76300         readline, getdelim and check_version.
76301         (Support for systems lacking ISO C 99: Sizes of integer types):
76302         Add size_max.
76303
76304 2005-08-12  Bruno Haible  <bruno@clisp.org>
76305
76306         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76307
76308 2005-08-11  Simon Josefsson  <jas@extundo.com>
76309
76310         * modules/readline: New file.
76311
76312         * modules/strnlen (Files): Add strnlen.h.
76313
76314 2005-08-11  Simon Josefsson  <jas@extundo.com>
76315
76316         * m4/readline.m4: New file.
76317
76318 2005-08-11  Simon Josefsson  <jas@extundo.com>
76319
76320         * lib/readline.h, readline.c: New file.
76321
76322 2005-08-11  Simon Josefsson  <jas@extundo.com>
76323
76324         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76325         gl_AVOID.
76326
76327 2005-08-11  Bruno Haible  <bruno@clisp.org>
76328
76329         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76330
76331 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76332
76333         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76334
76335 2005-08-10  Simon Josefsson  <jas@extundo.com>
76336
76337         * tests/test-iconvme.c: New file.
76338
76339 2005-08-10  Simon Josefsson  <jas@extundo.com>
76340
76341         * m4/strnlen.m4: New file.
76342
76343         * m4/strndup.m4: Don't check for strnlen declaration, done in
76344         strnlen.m4.
76345
76346 2005-08-10  Simon Josefsson  <jas@extundo.com>
76347
76348         * lib/strndup.c: Use strnlen.h.
76349
76350         * lib/strnlen.h: New file.
76351
76352 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76353
76354         * README: Typos.
76355
76356 2005-08-02  Simon Josefsson  <jas@extundo.com>
76357
76358         * modules/readline: New file.
76359
76360 2005-08-02  Simon Josefsson  <jas@extundo.com>
76361
76362         * modules/getdelim: New file.
76363
76364         * modules/getline: Rewrite, don't use getndelim2.
76365
76366 2005-08-02  Simon Josefsson  <jas@extundo.com>
76367
76368         * m4/getline.m4: Separate out getdelim stuff into separate module.
76369
76370         * m4/getdelim.m4: New file.
76371
76372 2005-08-02  Simon Josefsson  <jas@extundo.com>
76373
76374         * lib/getline.h, getline.c: Rewrite.
76375
76376         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76377
76378 2005-07-31  Bruno Haible  <bruno@clisp.org>
76379
76380         * lib/lock.h (gl_lock_initializer): New macro.
76381         (gl_lock_define_initialized): Use it.
76382         (gl_rwlock_initializer): New macro.
76383         (gl_rwlock_define_initialized): Use it.
76384         (gl_recursive_lock_initializer): New macro.
76385         (gl_recursive_lock_define_initialized): Use it.
76386
76387 2005-07-30  Karl Berry  <karl@gnu.org>
76388
76389         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76390         Report from Ben Pfaff, regarding getopt.
76391
76392 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76395         normal way.
76396         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76397         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76398         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76399         (gl_GETOPT): Use the new macros.  Most of the implementation
76400         is moved to the new macros.  This is for programs like Emacs
76401         that don't want all the functionality of gl_GETOPT.
76402
76403 2005-07-26  Bruno Haible  <bruno@clisp.org>
76404
76405         * m4/lock.m4: Update from GNU gettext.
76406
76407 2005-07-26  Bruno Haible  <bruno@clisp.org>
76408
76409         * lib/lock.h: Update from GNU gettext.
76410         * lib/lock.c: Update from GNU gettext.
76411
76412 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76415         obsolescent AC_TRY_RUN.  Include the default includes files, for
76416         'exit'.
76417
76418 2005-07-24  Bruno Haible  <bruno@clisp.org>
76419
76420         * modules/visibility: New file.
76421         * MODULES.html.sh (Misc): Add visibility.
76422
76423 2005-07-24  Bruno Haible  <bruno@clisp.org>
76424
76425         * m4/visibility.m4: New file.
76426
76427 2005-07-24  Bruno Haible  <bruno@clisp.org>
76428
76429         * doc/visibility.texi: New file.
76430
76431 2005-07-22  Bruno Haible  <bruno@clisp.org>
76432
76433         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76434         $(ALLOCA_H), redundant through BUILT_SOURCES.
76435         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76436         redundant through BUILT_SOURCES.
76437         * modules/byteswap (Makefile.am): Remove explicit dependency on
76438         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76439         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76440         $(FNMATCH_H), redundant through BUILT_SOURCES.
76441         * modules/getopt (Makefile.am): Remove explicit dependency on
76442         $(GETOPT_H), redundant through BUILT_SOURCES.
76443         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76444         redundant through BUILT_SOURCES.
76445         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76446         redundant through BUILT_SOURCES.
76447         * modules/stdbool (Makefile.am): Remove explicit dependency on
76448         $(STDBOOL_H), redundant through BUILT_SOURCES.
76449         * modules/stdint (Makefile.am): Remove explicit dependency on
76450         $(STDINT_H), redundant through BUILT_SOURCES.
76451         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76452         Remove explicit dependency on $(SYSEXITS_H).
76453         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76454
76455 2005-07-18  Simon Josefsson  <jas@extundo.com>
76456
76457         * lib/check-version.c (check_version): Accept identical versions too.
76458
76459 2005-07-18  Bruno Haible  <bruno@clisp.org>
76460
76461         * modules/lock: New file.
76462         * MODULES.html.sh (Multithreading): New section.
76463
76464 2005-07-18  Bruno Haible  <bruno@clisp.org>
76465
76466         * m4/lock.m4: New file, from GNU gettext.
76467
76468 2005-07-18  Bruno Haible  <bruno@clisp.org>
76469
76470         * lib/lock.h: New file, from GNU gettext.
76471         * lib/lock.c: New file, from GNU gettext.
76472
76473 2005-07-18  Bruno Haible  <bruno@clisp.org>
76474
76475         * lib/lock.h (gl_once_t): New type.
76476         (gl_once_define, gl_once): New macros.
76477         * lib/lock.c (fresh_once): New variable.
76478         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76479         functions.
76480
76481 2005-07-16  Simon Josefsson  <jas@extundo.com>
76482
76483         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76484         workaround, suggested by Bruno.
76485
76486 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         * modules/xalloc (Depends-on): Add xalloc-die.
76489         * modules/xvasprintf (Depends-on): Add xalloc-die.
76490
76491 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76494         with a minor change.
76495
76496 2005-07-15  Bruno Haible  <bruno@clisp.org>
76497
76498         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76499         When using lib/poll.c, define poll as rpl_poll.
76500
76501 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * modules/argp (Depends-on): Remove unlocked-io.
76504
76505 2005-07-14  Derek Price  <derek@ximbiot.com>
76506
76507         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76508         for glob symlink bug.
76509
76510 2005-07-14  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76513         Instead, test for *_unlocked function declarations directly.
76514
76515 2005-07-11  Simon Josefsson  <jas@extundo.com>
76516
76517         * modules/size_max: New file.
76518
76519         * modules/xsize: Depend on size_max module for size_max.m4.
76520
76521 2005-07-11  Simon Josefsson  <jas@extundo.com>
76522
76523         * lib/size_max.h: New file.
76524
76525 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76528         copyright symbol and the year.
76529         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76530         (version_etc_va): Use parameterized copyright notice.
76531         Reword to conform to the current GNU coding standards.
76532
76533 2005-07-11  Karl Berry  <karl@gnu.org>
76534
76535         * doc/gnulib.texi (Quoting): new node.
76536         (Initial import): more info, from Patrice.
76537
76538 2005-07-11  Bruno Haible  <bruno@clisp.org>
76539
76540         * gnulib-tool (func_usage): Document option --avoid.
76541         (Command line options): Handle --avoid.
76542         (func_acceptable): New function.
76543         (func_modules_transitive_closure): Use it.
76544
76545 2005-07-11  Bruno Haible  <bruno@clisp.org>
76546
76547         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76548         Reported by Jim Meyering.
76549
76550 2005-07-10  Bruno Haible  <bruno@clisp.org>
76551
76552         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76553         Needed when size_t is smaller than 'unsigned int'.
76554         Reported by Paul Eggert.
76555
76556 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76557
76558         * modules/argp (Depends-on): Add unlocked-io
76559
76560 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76561
76562         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76563         block of defines.
76564
76565 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76568         fix now.
76569
76570 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76571         and Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76574         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76575
76576 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76577
76578         * modules/regex (Files): Add lib/regex_internal.c,
76579         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76580         (Depends-on): Add extensions.
76581         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76582
76583 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76586         pathconf.
76587         * m4/same.m4 (gl_SAME): Likewise.
76588         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76589
76590         * m4/regex.m4: Adjust to new libc regex implementation.
76591         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76592         all the .c and .h parts of (the new) regex.
76593         Quote the m4 stuff better.
76594         Check for RE_ICASE bug of old gnulib.
76595         Check for REG_STARTEND of recent libc.
76596         Rename local variables from jm_* to gl_*.
76597         Quote operand of "test -f".
76598         Say "recent enough" version of libc, not "version 2".
76599         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76600         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76601         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76602         Remove check for btowc, isascii.
76603         Require AM_LANGINFO_CODESET.
76604
76605 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/regex.c, regex.h: Sync from libc.
76608         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76609         * lib/regexec.c:
76610         New files, synced from libc, except that regex_internal.h
76611         currently has a small porting fix.
76612
76613 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76616         regex_internal.c, regexec.c.
76617         Add regex_internal.h too, but as a comment, since the libc version
76618         is currently broken in gnulib mode.
76619
76620 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         Support programs like Emacs that use gnulib but not gettext.
76623         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76624         * modules/gettext-h: New file.
76625         * modules/gettext (Files): Remove lib/gettext.h.
76626         (Depends-on): Add gettext-h.
76627         (Makefile.am): Remove lib_SOURCES.
76628         * modules/argmatch, modules/c-stack, modules/closeout:
76629         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76630         * modules/execute, modules/file-type, modules/getaddrinfo:
76631         * modules/getopt, modules/human, modules/javacomp:
76632         * modules/javaexec, modules/mkdir-p, modules/obstack:
76633         * modules/openat, modules/pagealign_alloc, modules/pipe:
76634         * modules/quotearg, modules/regex, modules/rpmatch:
76635         * modules/unicodeio, modules/userspec, modules/version-etc:
76636         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76637         * modules/xsetenv:
76638         Depend on gettext-h, not gettext.
76639
76640 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * gnulib-tool (func_import): Add support for 'public domain' license.
76643         * modules/alloca, modules/atexit, modules/memmove:
76644         Now public domain, not GPL.
76645         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76646         * modules/realloc, modules/strerror, modules/strtod:
76647         Now LGPL, not GPL.
76648
76649 2005-07-05  Bruno Haible  <bruno@clisp.org>
76650
76651         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76652         autoconf CVS. Needed for mingw.
76653
76654 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         Remove the dependency of the strftime module on the tzset module.
76657         * modules/strftime (Depends-on): Remove dependency on tzset.
76658
76659 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         Remove the dependency of the strftime module on the tzset module.
76662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76663         gl_FUNC_TZSET_CLOBBER.
76664
76665 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         Remove the dependency of the strftime module on the tzset module.
76668         * lib/strftime.c (my_strftime)
76669         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76670         Copy the input structure, to work around some of the bug with
76671         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76672         Solaris releases, you should also use the tzset module, but we won't
76673         require it as a dependency any more since we don't want LGPLed code
76674         to depend on GPLed code.
76675
76676 2005-07-02  Jim Meyering  <jim@meyering.net>
76677
76678         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76679         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76680         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76681         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76682
76683 2005-07-02  Jim Meyering  <jim@meyering.net>
76684
76685         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76686
76687 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76690         declares only 'struct timespec;' (!).
76691
76692 2005-07-01  Jim Meyering  <jim@meyering.net>
76693
76694         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76695         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76696         * lib/save-cwd.c, tempname.c:
76697         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76698         and don't include <sys/file.h>).
76699
76700 2005-06-29  Jim Meyering  <jim@meyering.net>
76701
76702         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76703         type name.  Use the variable name instead.
76704         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76705         Likewise.
76706
76707 2005-06-28  Simon Josefsson  <jas@extundo.com>
76708
76709         * modules/check-version (Files): Add check-version.m4.
76710
76711 2005-06-28  Simon Josefsson  <jas@extundo.com>
76712
76713         * m4/check-version.m4: New file, suggested by Jim Meyering
76714         <jim@meyering.net>.
76715
76716 2005-06-28  Simon Josefsson  <jas@extundo.com>
76717
76718         * lib/check-version.h, lib/check-version.c: New files.
76719
76720 2005-06-28  Simon Josefsson  <jas@extundo.com>
76721
76722         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76723         collision with global variable.  Better indentation.  Don't
76724         increment buffer pointer beyond buffer end.  Based on comments
76725         from Paul Eggert <eggert@cs.ucla.edu>.
76726
76727         * lib/base64.h: Indent.
76728
76729 2005-06-28  Simon Josefsson  <jas@extundo.com>
76730
76731         * doc/gnulib.texi (Library version handling): New section.
76732
76733 2005-06-28  Jim Meyering  <jim@meyering.net>
76734
76735         * check-module (find_included_lib_files): Hard-code another
76736         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76737         but modules/fts-lgpl (correctly) does not list those files.
76738
76739         * modules/canonicalize (Files): Add lib/pathmax.h.
76740
76741 2005-06-25  Simon Josefsson  <jas@extundo.com>
76742
76743         * modules/check-version: New file.
76744
76745 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76748         initializer of struct addrinfo, as an indication that we don't
76749         care how many members the structure has.
76750
76751 2005-06-24  Derek Price  <derek@ximbiot.com>
76752         and Bruno Haible  <bruno@clisp.org>
76753
76754         Remove stat module & update lstat.
76755         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76757         * m4/stat.m4: Remove this file.
76758
76759 2005-06-24  Derek Price  <derek@ximbiot.com>
76760         and Bruno Haible  <bruno@clisp.org>
76761
76762         Remove stat module & update lstat.
76763         * lib/stat.c: Remove this file...
76764         (slash_aware_lstat): ...moving this content and its support...
76765         * lib/lstat.c (rpl_lstat): ...into here.
76766         * lib/lstat.h: New file.
76767
76768 2005-06-24  Derek Price  <derek@ximbiot.com>
76769         and Bruno Haible  <bruno@clisp.org>
76770
76771         Remove stat module & update lstat.
76772         * config/srclist.txt (libc sources): Remove stat.
76773
76774 2005-06-24  Derek Price  <derek@ximbiot.com>
76775         and Bruno Haible  <bruno@clisp.org>
76776
76777         Remove stat module & update lstat.
76778         * MODULES.html.sh (stat): Remove.
76779         * MODULES.html: Regenerated.
76780         * modules/lstat (Description): Correct function name.
76781         (Files): Add "lstat.h".
76782         (Depends-on): Remove stat, add xalloc, stat-macros.
76783         * modules/stat: Remove this file.
76784         (Include): Add "lstat.h", remove <sys/stat.h>.
76785
76786 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76789         (ranged_convert): Don't save conversion in a temporary struct.
76790         This causes a warning with GCC 4.0.0, and anyway in the typical
76791         case it's not worth the extra 100 bytes or so of code.
76792         (ranged_convert, __mktime_internal): When calling a function via a
76793         pointer P, use P () rather than (*P) (), as we now assume C89 or
76794         better.
76795
76796 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76799         "who -r" failed to give output.  Problem reported by Tim Waugh.
76800
76801         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76802         (xcalloc): Use it to avoid needless tests.
76803         Problem reported by Jim Meyering.
76804
76805 2005-06-20  Derek Price  <derek@ximbiot.com>
76806
76807         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76808         unnecessary for Autoconfs > 2.59c.
76809
76810 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76811
76812         * lib/argp.h (__option_is_short): Check upper limit of
76813         __key. Isprint() requires its argument to have the value
76814         of an unsigned char or EOF.
76815
76816 2005-06-16  Jim Meyering  <jim@meyering.net>
76817
76818         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76819         when either N or S is zero.
76820
76821 2005-06-16  Derek Price  <derek@ximbiot.com>
76822
76823         * m4/bison.m4: Declare YACC & YFLAGS precious.
76824
76825 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76828         multibyte string or pattern, fall back on unibyte matching.
76829         Problem reported by James Youngman.
76830
76831 2005-06-08  Bruno Haible  <bruno@clisp.org>
76832
76833         * modules/csharpcomp: New file.
76834         * MODULES.html.sh (C#): Add csharpcomp.
76835
76836 2005-06-08  Bruno Haible  <bruno@clisp.org>
76837
76838         * m4/csharpcomp.m4: New file, from GNU gettext.
76839
76840 2005-06-08  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/csharpcomp.h: New file, from GNU gettext.
76843         * lib/csharpcomp.c: New file, from GNU gettext.
76844         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76845
76846 2005-06-08  Bruno Haible  <bruno@clisp.org>
76847
76848         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76849         warning on mingw.
76850
76851 2005-06-07  Derek Price  <derek@ximbiot.com>
76852
76853         Sync from CVS.
76854         * lib/glob_.h: Indent nested #ifdef.
76855
76856 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         Sync from coreutils.
76859         Use "file name" when talking about file names, instead of "filename"
76860         or "path", as per the GNU coding standards.
76861         * lib/mkdir-p.c: Renamed from makepath.c.
76862         (make_dir_parents): Renamed from make_path.  All callers changed.
76863         * lib/mkdir-p.h: Likewise.  All includers changed.
76864         * lib/filenamecat.c: Renamed from path-concat.c.
76865         (file_name_concat): Renamed from path_concat.  All callers changed.
76866         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76867         * lib/filenamecat.h: Likewise.  All includers changed.
76868         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76869         in comments or local variable names.
76870         * lib/basename.c: Likewise.
76871         * lib/canonicalize.c, canonicalize.h: Likewise.
76872         * lib/dirname.c, dirname.h: Likewise.
76873         * lib/euidaccess.c: Likewise.
76874         * lib/exclude.c: Likewise
76875         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76876         * lib/fsusage.c, fsuage.h: Likewise.
76877         * lib/fts.c, fts_.h: Likewise.
76878         * lib/getcwd.c: Likewise.
76879         * lib/getloadavg.c: Likewise.
76880         * lib/mkstemp.c: Likewise.
76881         * lib/mountlist.c, mountlist.h: Likewise.
76882         * lib/openat.c, openat.h: Likewise.
76883         * lib/readlink-stub.c: Likewise.
76884         * lib/readutmp.c, readutmp.h: Likewise.
76885         * lib/rename.c: Likewise.
76886         * lib/rmdir.c: Likewise.
76887         * lib/same.c: Likewise.
76888         * lib/savedir.c: Likewise.
76889         * lib/stripslash.c: Likewise.
76890         * lib/tempname.c: Likewise.
76891         * lib/xreadlink.c: Likewise.
76892         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76893         All uses changed.
76894         * lib/exclude.h: Likewise.
76895
76896         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76897         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76898         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76899         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76900         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76901         files have been getting away with it for years (MORE/BSD 4.3
76902         is extinct now).
76903         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76904         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76905
76906         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76907         Define to 256, not 255, as per modern POSIX.
76908
76909 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         Sync from coreutils.
76912         Use "file name" when talking about file names, instead of "filename"
76913         or "path", as per the GNU coding standards.
76914         * MODULES.html.sh: mkdir-p renamed from makepath.
76915         filenamecat renamed from path-concat.
76916         * modules/filenamecat: Renamed from modules/path-concat.
76917         (Files): filenamecat.h and filenamecat.c renamed from
76918         path-concat.h and path-concat.c.
76919         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76920         (Include): filenamecat.h, not path-concat.h.
76921         * modules/mkdir-p: Renamed from modules/makepath.
76922         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76923         makepath.c.
76924         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76925         (Include): mkdir-p.h, not makepath.h.
76926
76927 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         Sync from coreutils.
76930         * m4/mkdir-p.m4: Renamed from makepath.m4.
76931         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76932         Rename files from makepath.c to mkdir-p.c, and from
76933         makepath.h to mkdir-p.h.
76934         * m4/filenamecat.m4: Renamed from path-concat.m4.
76935         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76936         Rename files from path-concat.c to filenamecat.c,
76937         and from path-concat.h to filenamecat.h.
76938         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76939         "file name" in local variables or comments.
76940         * m4/rename.m4: Likewise.
76941
76942 2005-06-01  Bruno Haible  <bruno@clisp.org>
76943
76944         * modules/csharpexec: New file.
76945         * MODULES.html.sh (C#): New section.
76946
76947 2005-06-01  Bruno Haible  <bruno@clisp.org>
76948
76949         * m4/csharp.m4: New file, from GNU gettext.
76950         * m4/csharpexec.m4: New file, from GNU gettext.
76951
76952 2005-06-01  Bruno Haible  <bruno@clisp.org>
76953
76954         * lib/csharpexec.h: New file, from GNU gettext.
76955         * lib/csharpexec.c: New file, from GNU gettext.
76956         * lib/csharpexec.sh.in: New file, from GNU gettext.
76957
76958 2005-05-31  Derek Price  <derek@ximbiot.com>
76959             Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         Sync from cvs.
76962         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76963
76964 2005-05-31  Derek Price  <derek@ximbiot.com>
76965             Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         Sync from cvs.
76968         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76969
76970 2005-05-29  Derek Price  <derek@ximbiot.com>
76971
76972         * config/srclist.txt (glob_.h, glob.c): Add these files.
76973
76974 2005-05-29  Derek Price  <derek@ximbiot.com>
76975
76976         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76977         * modules/glob: New file.
76978         * modules/getlogin_r: Add link to POSIX spec in description.
76979
76980 2005-05-29  Derek Price  <derek@ximbiot.com>
76981             Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * m4/glob.m4: New file.
76984
76985 2005-05-29  Derek Price  <derek@ximbiot.com>
76986             Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * lib/glob_.h, lib/glob.c: New files.
76989
76990 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76991
76992         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76993         * modules/fts-lgpl (Depends-on): Remove gettext.
76994
76995 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76998         and don't require gt_INTTYPES_PRI.
76999
77000 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77003
77004         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77005         the configuration hassle isn't worth it.
77006         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77007         (LONGEST_MODIFIER, PRIuMAX): Remove.
77008
77009 2005-05-27  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77012
77013 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77016         _POSIX_PTHREAD_SEMANTICS for Solaris.
77017
77018 2005-05-25  Derek Price  <derek@ximbiot.com>
77019
77020         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77021
77022 2005-05-25  Derek Price  <derek@ximbiot.com>
77023             Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77026         * lib/getlogin_r.c, getlogin_r.h: New files.
77027
77028 2005-05-25  Bruno Haible  <bruno@clisp.org>
77029             Derek Price  <derek@ximbiot.com>
77030
77031         * lib/getlogin_r.h: Simplify API documentation.
77032
77033 2005-05-23  Derek Price  <derek@ximbiot.com>
77034
77035         * modules/minmax (Files): Add m4/minmax.m4.
77036         (configure.ac): Add gl_MINMAX.
77037
77038 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77041         so that unistd-safer.h (GPL'ed code) need not be included.
77042
77043 2005-05-22  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/minmax.m4: New file.
77046         Based on a patch by Derek Price <derek@ximbiot.com>.
77047
77048 2005-05-22  Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77051         (INT64_MIN): Fix definition.
77052         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77053
77054         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77055         NEED_SIGNED_INT_TYPES.
77056
77057         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77058         HAVE_SYSTEM_INTTYPES.
77059
77060 2005-05-22  Bruno Haible  <bruno@clisp.org>
77061
77062         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77063         Also include <sys/param.h> if it defines MIN, MAX.
77064         Based on a patch by Derek Price <derek@ximbiot.com>.
77065
77066 2005-05-21  Jim Meyering  <jim@meyering.net>
77067
77068         * modules/fts (Files): Add m4/inttypes-pri.m4.
77069         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77070
77071 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         New fts module.
77074         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77075         (setup_dir, free_dir): New functions.
77076         (enter_dir, leave_dir): Define trivial
77077         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77078         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77079         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77080         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77081         Move to fts-cycle.c.
77082         (fts_open): Use setup_dir.
77083         (fts_close): Use free_dir.
77084         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77085         This adds a label and some gotos, but the alternatives were messier.
77086         Check for memory allocation failure when entering a dir.
77087         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77088         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77089         (FTS): New member fts_cycle, that is a union that contains the
77090         old active_dir_ht and cycle_state.  All uses changed to mention
77091         fts_cycle.ht and fts_cycle.state.
77092         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77093         fts.c, with the following changes:
77094         (setup_dir, free_dir): New functions.
77095         (enter_dir): Now returns bool.  Return true if successful, false
77096         if memory exhausted.  All callers changed.
77097         Do not bother partly cleaning up on
77098         memory allocation failure; that is free_dir's job.
77099         However, free ad if hash_insert fails, to avoid memory leak.
77100         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77101         fts->fts_options to see which union member to use.
77102
77103 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77106         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77107
77108 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77111
77112 2005-05-20  Jim Meyering  <jim@meyering.net>
77113
77114         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77115         Now a macro, to pacify GCC.
77116
77117 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77118
77119         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77120         of -1.
77121
77122 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77123
77124         * lib/chown.c (rpl_chown): Return -1 on failure.
77125
77126 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77129         Don't check for stddef.h.
77130         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77131         don't use its results.
77132         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77133         since we include them unconditionally.  Don't require
77134         AM_STDBOOL_H, since stdbool is a prerequisite.
77135         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77136         since we assume C89 or better.
77137         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77138         as we don't use their results.
77139         Don't check for fchdir, memmove, memset, strrchr, as we use
77140         them unconditionally.
77141         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77142         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77143
77144 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77147         Include <stddef.h> unconditionally, since we assume C89 now.
77148         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77149         * lib/fts.c: Include fts_.h first, to check interface.
77150         Do not include intprops.h; no longer needed.
77151         Include cycle-check.h and hash.h, since fts_.h no longer does.
77152         Remove unnecessary casts of closedir to void.
77153         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77154         decide whether to decrement nlinks.
77155         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77156         (FTS): Use struct hash_table * instead of Hash_table, so that
77157         we no longer need to include hash.h here.
77158
77159 2005-05-18  Jim Meyering  <jim@meyering.net>
77160
77161         * modules/dirfd (License): Change to LGPL.  Most of the code
77162         is already in the public domain.
77163
77164 2005-05-18  Jim Meyering  <jim@meyering.net>
77165
77166         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77167         Reported by Yoann Vandoorselaere.
77168
77169 2005-05-17  Jim Meyering  <jim@meyering.net>
77170
77171         * m4/fts.m4: New file, from coreutils.
77172
77173 2005-05-17  Jim Meyering  <jim@meyering.net>
77174
77175         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77176
77177 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         Sync from coreutils.
77180         * m4/unlinkdir.m4: New file.
77181
77182 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         Sync from coreutils.
77185         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77186         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77187         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77188         White space changes only.
77189         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77190         special.
77191         * lib/yesno.c: Include getline.h, not ctype.h.
77192         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77193         Use getline to remove arbitrary restriction on response length.
77194
77195 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * config/srclist-update: Spell out "Street" in FSF postal
77198         mail address; this is the style the FSF seems to prefer.
77199
77200         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77201         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77202         this updates FSF postal mail address.
77203
77204         Sync from coreutils.
77205         * modules/unlinkdir: New file.
77206         * modules/yesno (Depends-on): Add getline.
77207         * MODULES.html.sh (File system functions): Add unlinkdir.
77208
77209 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77212         lib/strsep.h:
77213         Change the initial comment to refer to GPL, not LGPL.
77214         gnulib-tool will change it to LGPL as needed.
77215
77216         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77217         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77218         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77219         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77220         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77221         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77222         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77223         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77224         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77225         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77226         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77227         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77228         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77229         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77230         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77231         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77232         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77233         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77234         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77235         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77236         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77237         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77238         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77239         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77240         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77241         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77242         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77243         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77244         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77245         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77246         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77247         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77248         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77249         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77250         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77251         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77252         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77253         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77254         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77255         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77256         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77257         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77258         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77259         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77260         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77261         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77262         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77263         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77264         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77265         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77266         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77267         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77268         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77269         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77270         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77271         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77272         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77273         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77274         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77275         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77276         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77277         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77278         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77279         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77280         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77281         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77282         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77283         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77284         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77285         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77286         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77287         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77288         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77289         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77290         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77291         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77292         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77293         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77294         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77295         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77296         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77297         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77298         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77299         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77300         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77301         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77302         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77303         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77304         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77305         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77306         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77307         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77308         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77309         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77310         lib/yesno.c, lib/yesno.h:
77311         Update FSF postal mail address.
77312
77313 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77314
77315         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77316         tests/test-memmem.c, tests/test-stpncpy.c:
77317         Update FSF postal mail address.
77318
77319 2005-05-13  Bruno Haible  <bruno@clisp.org>
77320
77321         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77322         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77323         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77324         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77325         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77326         Add support for 64-bit integers in the MSVC compiler.
77327
77328 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77329
77330         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77331
77332 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77333
77334         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77335
77336 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * doc/getdate.texi (General date syntax): Don't say that date
77339         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77340         Problem reported by Nic Ferrier.
77341
77342 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77343
77344         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77345         specified in ai_socktype. Fix invalid ai_protocol
77346         check. ai_protocol is usually set to 0 or depending on
77347         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77348         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77349         ai_socktype / ai_protocol in the returned addrinfo structure.
77350
77351 2005-05-10  Simon Josefsson  <jas@extundo.com>
77352
77353         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77354         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77355
77356 2005-05-10  Karl Berry  <karl@gnu.org>
77357
77358         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77359         (from http://www.gnu.org/licenses).
77360         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77361         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77362         fdl.texi suffices.
77363
77364 2005-05-10  Karl Berry  <karl@gnu.org>
77365
77366         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77367         (COPYING.DOC): remove.
77368
77369         * config/srclist-update: new FSF address.
77370
77371 2005-05-10  Derek Price  <derek@ximbiot.com>
77372
77373         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77374         possible.
77375
77376 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77377             Bruno Haible  <bruno@clisp.org>
77378
77379         * modules/inet_ntop: New file.
77380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77381         inet_ntop.
77382
77383 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77384             Bruno Haible  <bruno@clisp.org>
77385
77386         * m4/inet_ntop.m4: New file.
77387
77388 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77389             Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/inet_ntop.h: New file.
77392         * lib/inet_ntop.c: New file, from glibc with modifications.
77393
77394 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * modules/time_r (License): Change to LGPL.
77397         * modules/extensions (License): Change to LGPL.  Actually,
77398         the license is more permissive than that, but currently gnulib-tool
77399         doesn't know how to handle more-permissive licenses.
77400
77401         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77402         Problem reported by Dave Love.
77403
77404 2005-05-08  Jim Meyering  <jim@meyering.net>
77405
77406         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77407         blank.
77408
77409 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * modules/argmatch (Depends-on): Add stdbool.
77412         * modules/backupfile (Depends-on): Likewise.
77413         * modules/chdir-long (Depends-on): Likewise.
77414         * modules/closeout (Depends-on): Likewise.
77415         * modules/cycle-check (Depends-on): Likewise.
77416         * modules/dirname (Depends-on): Likewise.
77417         * modules/fnmatch (Depends-on): Likewise.
77418         * modules/fsusage (Depends-on): Likewise.
77419         * modules/fwriteerror (Depends-on): Likewise.
77420         * modules/getcwd (Depends-on): Likewise.
77421         * modules/getloadavg (Depends-on): Likewise.
77422         * modules/hard-locale (Depends-on): Likewise.
77423         * modules/makepath (Depends-on): Likewise.
77424         * modules/mountlist (Depends-on): Likewise.
77425         * modules/nanosleep (Depends-on): Likewise.
77426         * modules/posixtm (Depends-on): Likewise.
77427         * modules/quotearg (Depends-on): Likewise.
77428         * modules/readtokens (Depends-on): Likewise.
77429         * modules/readtokens0 (Depends-on): Likewise.
77430         * modules/readutmp (Depends-on): Likewise.
77431         * modules/save-cwd (Depends-on): Likewise.
77432         * modules/strftime (Depends-on): Likewise.
77433         * modules/userspec (Depends-on): Likewise.
77434         * modules/utimecmp (Depends-on): Likewise.
77435         * modules/xgetcwd (Depends-on): Likewise.
77436         * modules/xnanosleep (Depends-on): Likewise.
77437         * modules/xstrtod (Depends-on): Likewise.
77438         * modules/yesno (Depends-on): Likewise.
77439
77440 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77441
77442         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77443         needless checks.
77444
77445 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         Merge from coreutils.  Among other things,
77448         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77449         * lib/fd-safer.c: New file.
77450         * lib/fcntl-safer.h, open-safer.c: Remove.
77451         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77452         * lib/dup-safer.c: Include unistd-safer.h first.
77453         Don't include errno.h.
77454         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77455         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77456         * lib/file-type.c: Rely on file-type.h change.
77457         * lib/getloadavg.c: Include unistd-safer.h.
77458         (getloadavg): Use safer open.
77459         * lib/getusershell.c: Include "stdio-safer.h".
77460         (getusershell): Use safer fopen.
77461         * lib/long-options.c (long_options): Use NULL rather than 0.
77462         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77463         'free'.
77464         * lib/modechange.c: Likewise.
77465         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77466         (MODE_DONE): New constant.
77467         (struct mode_change): Remove 'next' member.
77468         (make_node_op_equals): New function; like the old one of the
77469         same name, except it allocates an array.
77470         (mode_compile, mode_create_from_ref): Use it.
77471         (mode_compile): Allocate result as an array, not a linked list.
77472         Parse octal string ourself, so that we catch mistakes like "+0".
77473         (mode_adjust): Arg is an array, not a linked list.
77474         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77475         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77476         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77477         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77478         Remove.  This is now stat-macros.h's job.
77479         (talloc): Remove.  All callers replaced by xalloc, so that
77480         our invokers don't have to worry about reporting memory failures.
77481         (make_node_op_equals): Remove.
77482         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77483         New constants.
77484         (struct mode_change): Moved here from modechange.h.
77485         (mode_append_entry): Remove.
77486         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77487         apps to have incorrect behavior.  Use simpler algorithm for head
77488         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77489         Detect more invalid usages rather than having somewhat-random behavior.
77490         Don't insert an "a=" action, as that leads to incorrect behavior.
77491         (mode_compile, mode_create_from_ref): Return NULL on error instead
77492         of an enum, since now there's only one way to have an error.  All
77493         callers changed.
77494         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77495         at the correct time.  Simplify calculation of "+u" and its ilk.
77496         Don't mishandle "+X".
77497         (mode_free): Remove "register" and localize decls.
77498         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77499         (struct mode_change): Move to modechange.c; callers don't
77500         need to see this stuff.
77501         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77502         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77503         (mode_change, mode_adjust): Reflect the new signatures noted above.
77504         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77505         that might redefine system include files.
77506         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77507         (my_usleep): Use NULL rather than (void *) 0.
77508         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77509         Use siginterrupt to specify that system calls should be interrupted.
77510         (rpl_nanosleep): Move initialization of suspended closer to call of
77511         my_usleep.
77512         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77513         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77514         (desirable_utmp_entry): New function.
77515         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77516         using x2nrealloc, to simplify logic.
77517         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77518         size calculation.  Do not assume utmp file is a regular file.
77519         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77520         (READ_UTMP_CHECK_PIDS): New constant.
77521         * lib/save-cwd.c: Include unistd-safer.h.
77522         (save_cwd): Use fd_safer.
77523         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77524         [!_LIBC] Include "stat-macros.h" instead.
77525         * lib/unistd-safer.h (fd_safer): New decl.
77526
77527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * modules/getloadavg (Depends-on): Add unistd-safer.
77530         * modules/getusershell (Depends-on): Add stdio-safer.
77531         * modules/lstat (Depends-on): Remove xalloc.
77532         * modules/mkstemp (Depends-on): Add stat-macros.
77533         * modules/modechange (Depends-on): Remove xstrtol.
77534         Add stat-macros, xalloc.
77535         * modules/save-cwd (Depends-on): Add unistd-safer.
77536         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77537         * modules/unistd-safer (Files): Add lib/fd-safer.c
77538         (Makefile.am): Remove lib_SOURCES.
77539
77540         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77541         Remove fcntl-safer; unistd-safer supersedes it.
77542
77543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77546         AC_HEADER_STAT.
77547         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77548         (gl_PREREQ_CHOWN): Remove.
77549         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77550         it.  Don't require AC_HEADER_STAT.
77551         (gl_PREREQ_LSTAT): Remove.
77552         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77553         Don't require AC_HEADER_STAT.
77554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77555         (gl_PREREQ_RMDIR): Remove.
77556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77557         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77558         the stat-macros module a prerequisite.
77559         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77560         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77561         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77562         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77563         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77564         variable names.
77565         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77566         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77567         variable prefixes.
77568         * m4/fcntl-safer.m4: Remove.
77569         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77570         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77571         Invoke gl_PREREQ_FD_SAFER.
77572         (gl_PREREQ_FD_SAFER): New macro.
77573         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77574         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77575         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77576         Remove duplicate call to AC_LIBOBJ(readutmp).
77577         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77578
77579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77580         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77581
77582 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * MODULES.html.sh (Misc): Add byteswap.
77585
77586 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77587
77588         * modules/getcwd (Depends-on): Add extensions.
77589         * modules/openat (Depends-on): Likewise.
77590
77591 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77592
77593         * modules/byteswap: New file.
77594
77595 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77596
77597         * m4/byteswap.m4: New file.
77598
77599 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77600
77601         * lib/byteswap_.h: New file.
77602
77603 2005-04-25  Karl Berry  <karl@gnu.org>
77604
77605         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77606
77607 2005-04-25  Albert Chin  <china@thewrittenword.com>
77608
77609         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77610         Toolkit C bug.
77611
77612 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77613
77614         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77615         (func_ln_if_changed): Remove forcibly for no error message
77616         in case file does not exist.
77617
77618 2005-04-19  Simon Josefsson  <jas@extundo.com>
77619
77620         * gnulib-tool (Options): Make --symlink mean --symbolic.
77621
77622 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77623
77624         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77625
77626 2005-04-16  Simon Josefsson  <jas@extundo.com>
77627
77628         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77629
77630 2005-04-15  Simon Josefsson  <jas@extundo.com>
77631
77632         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77633
77634 2005-04-15  Simon Josefsson  <jas@extundo.com>
77635
77636         * gnulib-tool: Rename --symlink to --symbolic.
77637
77638 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77639
77640         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77641         symbolic links to files instead of copying/moving.  Add --aux-dir,
77642         specifying directory relative --dir where auxiliary build tools
77643         are placed.
77644
77645 2005-04-14  Bruno Haible  <bruno@clisp.org>
77646
77647         * modules/allocsa (License): Change to LGPL.
77648         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77649
77650 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77653         that "UTC +1 second" continues to work.  Problem reported
77654         by Dmitry V. Levin.
77655         (relunit_snumber): New rule.
77656         (relunit): Use it.
77657
77658 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/getdate.y (universal_time_zone_table): New constant.
77661         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77662         universal_time_zone_table.
77663         (lookup_zone): Prefer universal_time_zone_table to
77664         local_time_zone_table, so that "GMT" time stamps are allowed in
77665         London during the summer.  Problem reported by Ian Abbott.
77666
77667 2005-04-12  Jim Meyering  <jim@meyering.net>
77668
77669         * lib/human.c (humblock): Set *options even when returning due to
77670         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77671         warning from gcc-4.
77672
77673 2005-04-09  Jim Meyering  <jim@meyering.net>
77674
77675         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77676         -Wuninitialized: initialize tm0.tm_year.
77677
77678 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77681         count, since there's no maximum.  All uses changed.
77682         Add member dsts_seen.
77683         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77684         not being INT_MAX.
77685         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77686         Use pc_rels_seen to decide whther a date is absolute.
77687
77688         * lib/getdate.y (number): Don't overwrite year.
77689         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77690         check.
77691
77692 2005-04-02  Simon Josefsson  <jas@extundo.com>
77693
77694         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77695         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77696
77697 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77698
77699         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77700         where no absolute path name can be longer than PATH_MAX.
77701
77702 2005-03-27  Jim Meyering  <jim@meyering.net>
77703
77704         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77705
77706 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77709         "one's complement" -> "ones' complement" in comment, as per Knuth.
77710         "value of type" -> "type or expression" in comment.
77711         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77712
77713 2005-03-26  Jim Meyering  <jim@meyering.net>
77714
77715         Comment nits.
77716         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77717         Correct typos: s/or/of/.
77718
77719 2005-03-26  Jim Meyering  <jim@meyering.net>
77720
77721         * modules/check-include-files: Move to ../ and rename to...
77722         * check-module: ...this.
77723
77724 2005-03-25  Jim Meyering  <jim@meyering.net>
77725
77726         * modules/xvasprintf (Files): Add xalloc.h.
77727
77728 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * modules/gettext (Files): config/config.rpath ->
77731         build-aux/config.rpath
77732         * modules/iconv (Files): Likewise.
77733         Problem reported by Oskar Liljeblad.
77734
77735 2005-03-23  Jim Meyering  <jim@meyering.net>
77736
77737         * modules/check-include-files: New script to check for
77738         missing dependencies, multiple includes, etc.
77739
77740         * modules/c-strtold (Depends-on): Add xalloc.
77741         * modules/c-strtod (Depends-on): Add xalloc.
77742         * modules/hash (Depends-on): Add xalloc.
77743         (Files): Remove lib/xalloc.h.
77744
77745         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77746         * modules/userspec (Files): Add lib/inttostr.h.
77747
77748 2005-03-23  Jim Meyering  <jim@meyering.net>
77749
77750         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77751
77752 2005-03-22  Jim Meyering  <jim@meyering.net>
77753
77754         * modules/stat-macros: New module.
77755         * modules/canonicalize, modules/euidaccess, modules/file-type,
77756         * modules/filemode, modules/lchown, modules/makepath,
77757         * modules/rmdir, modules/stat: Depend on new stat-macros module
77758         rather than listing lib/stat-macros.h manually.
77759         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77760
77761 2005-03-22  Jim Meyering  <jim@meyering.net>
77762
77763         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77764
77765 2005-03-22  Bruno Haible  <bruno@clisp.org>
77766
77767         * config/srclist.txt: Replace target directory 'config' with
77768         'build-aux'.
77769         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77770         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77771         ../build-aux/.
77772
77773 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * modules/chdir-long (Depends-on): Add mempcpy.
77776
77777         * modules/acl, modules/backupfile, modules/c-strtod,
77778         modules/c-strtold, modules/canon-host, modules/canonicalize,
77779         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77780         modules/exclude, modules/exitfail, modules/file-type,
77781         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77782         modules/getdate, modules/getline, modules/getpagesize,
77783         modules/getpass, modules/getugroups, modules/group-member,
77784         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77785         modules/inttostr, modules/long-options, modules/makepath,
77786         modules/md5, modules/memcasecmp, modules/memcoll,
77787         modules/modechange, modules/mountlist, modules/path-concat,
77788         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77789         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77790         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77791         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77792         modules/strftime, modules/strndup, modules/strverscmp,
77793         modules/timespec, modules/unlocked-io, modules/userspec,
77794         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77795         modules/yesno:
77796         Remove lib_SOURCES line from Makefile.am section, as this is now
77797         done automatically by the corresponding Autoconf macro.
77798
77799 2005-03-21  Jim Meyering  <jim@meyering.net>
77800
77801         Changes imported from coreutils.
77802
77803         * lib/cycle-check.c: Don't include xalloc.h.
77804
77805         * lib/path-concat.c: Don't include assert.h.
77806         (path_concat): Remove assertion that would have triggered
77807         for ABASE starting with more than one slash.
77808         Reported by Andreas Schwab.
77809
77810         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77811         properly when ABASE is an absolute file name.
77812         Correct the description of this function.
77813         Include <assert.h>.
77814         Add an assertion and a test driver.
77815         This fixes a bug introduced on 2004-07-02.
77816         Andreas Schwab reported the resulting failure of cp --parents:
77817         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77818
77819 2005-03-21  Jim Meyering  <jim@meyering.net>
77820
77821         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77822         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77823
77824 2005-03-21  Jim Meyering  <jim@meyering.net>
77825         and  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77828         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77829         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77830         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77831         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77832         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77833         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77834         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77835         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77836         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77837         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77838         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77839         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77840         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77841         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77842         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77843         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77844         for these modules.
77845
77846 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77849         (which shouldn't happen), generate nothing instead of returning 0
77850         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77851
77852 2005-03-16  Bruno Haible  <bruno@clisp.org>
77853
77854         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77855         HAVE_LONGLONG_64BIT.
77856
77857 2005-03-16  Bruno Haible  <bruno@clisp.org>
77858
77859         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77860         HAVE_LONGLONG_64BIT.
77861
77862 2005-03-16  Bruno Haible  <bruno@clisp.org>
77863
77864         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77865         HAVE_LONGLONG_64BIT.
77866
77867 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77870         reliably distinguish strftime failure from empty output on POSIX
77871         hosts.
77872
77873 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77876         (iconv_string): Don't guess a size-zero buffer, as that might cause
77877         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77878         result would be 'too large', where 'too large' is (heuristically)
77879         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77880         overflow concerns.  This will prevent some unwanted malloc failures
77881         when the inputs are very large.
77882
77883 2005-03-15  Karl Berry  <karl@gnu.org>
77884
77885         * config/srclist.txt (config.rpath): from gettext.
77886         * config/config.rpath: update.
77887
77888 2005-03-15  Bruno Haible  <bruno@clisp.org>
77889
77890         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77891         to 'negate'.
77892
77893         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77894         variable.
77895
77896         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77897         results.
77898
77899 2005-03-14  Simon Josefsson  <jas@extundo.com>
77900
77901         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77902         <fx@gnu.org>.
77903
77904 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77907         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77908         intprops.h.
77909         * lib/strtol.c: Likewise.
77910
77911 2005-03-14  Jim Meyering  <jim@meyering.net>
77912
77913         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77914         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77915         to be nonzero so that we (and caller) can detect the difference
77916         between a valid zero-length expansion and an error return, even
77917         when the underlying strftime fails before writing anything into
77918         that location.
77919
77920 2005-03-14  Bruno Haible  <bruno@clisp.org>
77921
77922         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77923         Update from GNU gettext 0.14.3.
77924
77925 2005-03-10  Jim Meyering  <jim@meyering.net>
77926
77927         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77928
77929 2005-03-10  Jim Meyering  <jim@meyering.net>
77930
77931         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77932         so that this module works on systems without fchdir.
77933
77934 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         Factor int-properties macros into a single file, except for
77937         glibc-related files.
77938         * lib/intprops.h: New file.
77939         * lib/getloadavg.c: Include it instead of limits.h.
77940         (INT_STRLEN_BOUND): Remove.
77941         * lib/human.c: Include intprops.h.
77942         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77943         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77944         302/1000.
77945         * lib/inttostr.h: Include intprops.h instead of limits.h.
77946         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77947         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77948         for consistency with intprops.h.
77949         (time_t_is_integer, twos_complement_arithmetic): Use them.
77950         * lib/sig2str.h: Include <signal.h>, intprops.h.
77951         (INT_STRLEN_BOUND): Remove.
77952         * lib/strftime.c (TYPE_SIGNED): Remove.
77953         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77954         * lib/strtol.c: Adjust comments to match intprops.h.
77955         * lib/userspec.c: Include intprops.h.
77956         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77957         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77958         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77959         instead of rolling our own expressions.
77960         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77961
77962         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77963         instead of int.
77964         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77965         the right thing even if adding 1900 would overflow.  Similarly
77966         for tm_mon + 1 and tm_yday + 1.
77967         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77968         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77969         (DO_SIGNED_NUMBER): New macro.
77970         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77971
77972 2005-03-07  Bruno Haible  <bruno@clisp.org>
77973
77974         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77975
77976 2005-03-07  Bruno Haible  <bruno@clisp.org>
77977
77978         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77979
77980 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77981
77982         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77983         (func_import): Only replace files via --import when they have actually
77984         changed.
77985
77986 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77987
77988         * m4/mmap-anon.m4: New file.
77989         * m4/pagealign_alloc.m4: New file.
77990
77991 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77992             Bruno Haible  <bruno@clisp.org>
77993
77994         * modules/pagealign_alloc: New file.
77995         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77996
77997 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77998             Bruno Haible  <bruno@clisp.org>
77999
78000         * lib/pagealign_alloc.h: New file.
78001         * lib/pagealign_alloc.c: New file.
78002
78003 2005-03-03  Bruno Haible  <bruno@clisp.org>
78004
78005         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78006         Use an all-permissive copyright notice, recommended by RMS.
78007
78008 2005-03-02  Bruno Haible  <bruno@clisp.org>
78009
78010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78011         of AIX, the replacement has to be done only after <string.h> is
78012         included, therefore not in config.h. stpncpy.h does the replacement,
78013         and stpncpy.c uses it.
78014
78015 2005-03-02  Bruno Haible  <bruno@clisp.org>
78016
78017         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78018         stpncpy.c uses it.
78019
78020 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78023         The workaround isn't strictly needed for POSIX conformance, and
78024         it's too much of a pain to configure and maintain.  We'll ask
78025         people to fix their kernels instead.
78026         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78027         (NANOSLEEP_BUG_WORKAROUND): Remove.
78028         (xnanosleep): Remove the workaround.
78029
78030 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78033         Reported by Derek Price.
78034         (Include): Add "timespec.h".
78035
78036         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78037
78038 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78041         to detect nanosleep bug.
78042
78043 2005-03-01  Bruno Haible  <bruno@clisp.org>
78044
78045         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78046
78047 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * modules/gethrxtime: New file.
78050         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78051         (Depends-on): Add gethrxtime.
78052         (configure.ac): Add gl_XNANOSLEEP.
78053         (Makefile.am): Remove lib_SOURCES line.
78054
78055 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78058         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78059
78060 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78063         * lib/timespec.h (gettime): Return void, since it always
78064         succeeds now.  All uses changed.
78065         * lib/gettime.c (gettime): Likewise.
78066         [HAVE_NANOTIME]: Prefer nanotime.
78067         Assume gettimeofday succeeds, as POSIX requires.
78068         Assime time () succeeds, since other code already does.
78069         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78070         (timespec_subtract): Remove.
78071         (NANOSLEEP_BUG_WORKAROUND): New constant.
78072         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78073         things considerably.  Use it only on GNU/Linux hosts, since the
78074         workaround shouldn't be needed elsewhere.
78075
78076 2005-02-24  Bruno Haible  <bruno@clisp.org>
78077
78078         * modules/gettext (Files): Add m4/glibc2.m4.
78079
78080 2005-02-24  Bruno Haible  <bruno@clisp.org>
78081
78082         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78083         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78084         * m4/progtest.m4:
78085         Update from GNU gettext 0.14.2.
78086         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78087
78088 2005-02-24  Bruno Haible  <bruno@clisp.org>
78089
78090         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78091         * lib/config.charset: Update from GNU gettext 0.14.2.
78092
78093 2005-02-24  Bruno Haible  <bruno@clisp.org>
78094
78095         * lib/gettext.h: Update from GNU gettext 0.14.2.
78096
78097 2005-02-23  Simon Josefsson  <jas@extundo.com>
78098
78099         * m4/iconvme.m4: New file.
78100
78101 2005-02-23  Jim Meyering  <jim@meyering.net>
78102
78103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78104         change.
78105         Thanks to Bruno Haible for catching it.
78106
78107 2005-02-22  Simon Josefsson  <jas@extundo.com>
78108
78109         * modules/iconvme: New file.
78110
78111         * MODULES.html.sh: Add iconvme.
78112
78113 2005-02-22  Simon Josefsson  <jas@extundo.com>
78114
78115         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78116
78117 2005-02-22  Simon Josefsson  <jas@extundo.com>
78118
78119         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78120
78121 2005-02-22  Jim Meyering  <jim@meyering.net>
78122
78123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78124         s/ifndef/ifdef/.
78125
78126 2005-02-20  Neil Conway  <neilc@samurai.com>
78127
78128         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78129         returned by OSX/Darwin if the specified buffer is not large
78130         enough for the hostname.
78131
78132 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78133
78134         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78135         pass it to _help, otherwise the latter coredumps trying to
78136         dereference state.root_argp.
78137
78138 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * modules/chdir-long (Depends-on): Add memrchr.
78141         * modules/memrchr (Files): Add lib/memrchr.h.
78142         (Include): "memrchr.h".
78143
78144 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78147
78148 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * lib/memrchr.h: New file.
78151         * lib/chdir-long.c: Include it.
78152         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78153         Don't bother including stddef.h.
78154
78155 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78158         inclusion.
78159         Include <sys/types.h>, for dev_t.
78160         (ME_DUMMY, ME_REMOTE): Move from here....
78161         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78162         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78163         Dmitry V. Levin.
78164         Include mountlist.h first, to test the interface.
78165
78166 2005-01-29  Bruno Haible  <bruno@clisp.org>
78167
78168         * lib/progname.c (program_name): Initialize.
78169         Needed when linking statically on MacOS X.
78170
78171 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78172
78173         Sync from coreutils.
78174         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78175         (Depends-on): Add c-strtod.
78176         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78177
78178 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78179
78180         Sync from coreutils.
78181         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78182
78183         Remove files that are specific to coreutils.
78184         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78185
78186 2005-01-28  Bruno Haible  <bruno@clisp.org>
78187
78188         * modules/javacomp: New file.
78189         * MODULES.html.sh (Java): Add javacomp.
78190
78191 2005-01-28  Bruno Haible  <bruno@clisp.org>
78192
78193         * m4/javacomp.m4: New file, from GNU gettext.
78194
78195 2005-01-28  Bruno Haible  <bruno@clisp.org>
78196
78197         * lib/javacomp.sh.in: New file, from GNU gettext.
78198         * lib/javacomp.h: New file, from GNU gettext.
78199         * lib/javacomp.c: New file, from GNU gettext.
78200
78201 2005-01-26  Simon Josefsson  <jas@extundo.com>
78202
78203         * lib/gai_strerror.c: Use GPL in header.
78204
78205 2005-01-26  Bruno Haible  <bruno@clisp.org>
78206
78207         * modules/javaexec: New file.
78208         * MODULES.html.sh (Java): Add javaexec.
78209
78210 2005-01-26  Bruno Haible  <bruno@clisp.org>
78211
78212         * m4/javaexec.m4: New file, from GNU gettext.
78213
78214 2005-01-26  Bruno Haible  <bruno@clisp.org>
78215
78216         * lib/javaexec.sh.in: New file, from GNU gettext.
78217         * lib/javaexec.h: New file, from GNU gettext.
78218         * lib/javaexec.c: New file, from GNU gettext.
78219
78220 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78221
78222         * modules/lchown (Depends-on): Remove lchown.h
78223
78224 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78225
78226         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78227         must be defined if the header file was not found, in order
78228         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78229
78230 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78231
78232         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78233         initializers for struct pentry_state.
78234         (__argp_error): Check return value of __asprintf
78235         (__argp_failure): Translate error message
78236
78237         * lib/argp-parse.c: Removed braces around the expansion of N_()
78238
78239 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78242         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78243         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78244         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78245         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78246         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78247         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78248         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78249         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78250         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78251         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78252         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78253         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78254         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78255         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78256         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78257         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78258         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78259         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78260         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78261         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78262         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78263         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78264         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78265         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78266         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78267         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78268         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78269         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78270         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78271         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78272         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78273         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78274         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78275         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78276         Use an all-permissive copyright notice, recommended by RMS.
78277
78278 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * modules/chdir-long (Depends-on): Remove mempcpy.
78281
78282 2005-01-21  Jim Meyering  <jim@meyering.net>
78283
78284         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78285         same value as for Solaris 9.
78286
78287         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78288         component length.  This included changing the parameter to be
78289         of type `char *' rather than `char const *'.
78290         * lib/chdir-long.h (chdir_long): Update prototype.
78291
78292         * lib/openat.c (fdopendir, fstatat): New functions.
78293         * lib/openat.h: Include headers required for use of DIR and struct
78294         stat.
78295         [AT_SYMLINK_NOFOLLOW]: Define.
78296         (fdopendir, fstatat): Add prototypes.
78297
78298 2005-01-21  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/classpath: New file.
78301         * MODULES.html.sh (Java): Add classpath.
78302
78303 2005-01-21  Bruno Haible  <bruno@clisp.org>
78304
78305         * lib/classpath.h: New file, from GNU gettext.
78306         * lib/classpath.c: New file, from GNU gettext.
78307
78308 2005-01-20  Simon Josefsson  <jas@extundo.com>
78309
78310         * modules/version-etc-fsf: New file.
78311
78312 2005-01-20  Simon Josefsson  <jas@extundo.com>
78313
78314         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78315         * lib/version-etc.c: Remove version_etc_copyright.
78316         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78317         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78318
78319 2005-01-20  Simon Josefsson  <jas@extundo.com>
78320
78321         * lib/base64.h (isbase64): Add.
78322
78323         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78324         using a unsigned prototype, don't inline.
78325         (base64_decode): Use it.
78326
78327 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78330         it.
78331
78332 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * lib/save-cwd.c (save_cwd): Remove code to support the case
78335         where fchdir is missing or flaky.
78336
78337 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78338
78339         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78340
78341 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78344         AC_LIBSOURCES now does this.
78345         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78346         with new ullong_max module.
78347
78348 2005-01-19  Bruno Haible  <bruno@clisp.org>
78349
78350         * modules/sh-quote: New file.
78351         * MODULES.html.sh (Executing programs): Add sh-quote.
78352
78353 2005-01-19  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/sh-quote.h: New file, from GNU gettext.
78356         * lib/sh-quote.c: New file, from GNU gettext.
78357
78358 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         Merge from coreutils.
78361         * m4/ullong_max.m4: New file.
78362         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78363         (gl_MACROS): Assume localeconv exists.
78364
78365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78366
78367         Merge changes from coreutils, as described below in several
78368         changelogs dated today.
78369
78370         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78371         (O_DIRECTORY): Remove; not needed here, since "." must be
78372         a directory.  All uses removed.
78373         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78374         universal on Suns, and we also need to test for IRIX.
78375         Revamp code to use 'if' rather than '#if'.
78376         Avoid unnecessary comparison of cwd->desc to 0.
78377
78378         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78379         for known valid error numbers rather than observed invalid ones.
78380
78381 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * modules/ullong_max: New file.
78384
78385         * modules/chdir-long, modules/openat: New files.
78386         * modules/save-cwd (Depends-on): Depend on chdir-long.
78387         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78388
78389 2005-01-18  Jim Meyering  <jim@meyering.net>
78390
78391         Merge from coreutils.
78392         * m4/chdir-long.m4, m4/openat.m4: New files.
78393         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78394         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78395         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78396         is sane and DOES follow symlinks.  Besides, testing 20 different
78397         systems found no broken chown implementations.
78398         Prompted by a change in rsync's copy of this macro.
78399         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78400
78401         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78402
78403         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78404         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78405         NULL-means-set-to-current-time semantics.
78406         Remove temporary file immediately, rather than waiting
78407         for configure's at-exit trap code to do it.
78408
78409 2005-01-18  Jim Meyering  <jim@meyering.net>
78410
78411         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78412
78413         * lib/utimens.c (futimens): Account for the fact that futimes
78414         can also fail with errno == ENOSYS or errno == ENOENT.
78415         Patch from Dmitry V. Levin.
78416
78417         Change the name of the robust chdir function from chdir to chdir_long.
78418         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78419         (restore_cwd): Use chdir_long, not chdir.
78420         * lib/chdir-long.c: Renamed from chdir.c.
78421         * lib/chdir-long.h: Renamed from chdir.h.
78422         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78423         Hurd.
78424
78425 2005-01-18  Bruno Haible  <bruno@clisp.org>
78426
78427         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78428         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78429         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78430         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78431         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78432         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78433         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78434         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78435         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78436         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78437         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78438         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78439         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78440         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78441         Use an all-permissive copyright notice, recommended by RMS.
78442
78443 2005-01-18  Bob Proulx  <bob@proulx.com>
78444
78445         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78446         simplify offsetof() macro construct to avoid compile failure with
78447         native HP-UX 11.0 ANSI C compiler.
78448
78449 2005-01-17  Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78452         redundant because stpncpy.m4 takes care of it.
78453
78454 2005-01-17  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78457
78458 2005-01-17  Bruno Haible  <bruno@clisp.org>
78459
78460         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78461         used.
78462
78463 2005-01-17  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/fwriteerror.h (fwriteerror): Change specification to include
78466         fclose.
78467         * lib/fwriteerror.c: Include <stdbool.h>.
78468         (fwriteerror): At the end, close the file stream. Record whether
78469         stdout was already closed.
78470
78471 2005-01-17  Bruno Haible  <bruno@clisp.org>
78472
78473         * lib/execute.c (environ): Declare if needed.
78474         * lib/pipe.c (environ): Likewise.
78475         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78476
78477 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78478
78479         * modules/argp: Depend on vsnprintf
78480
78481 2005-01-10  Jim Meyering  <jim@meyering.net>
78482
78483         * modules/closeout (Depends-on): Add atexit.
78484
78485 2005-01-06  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78488
78489 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78492         definitions to be after all include files, to avoid collisions.
78493         Problem reported by Bob Proulx.
78494
78495 2005-01-04  Jim Meyering  <jim@meyering.net>
78496
78497         Changes imported from coreutils.
78498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78499         as the mkstemp template, use a temporary directory and an
78500         8.3-friendly template to avoid trouble on systems like DJGPP.
78501         Reported by Juan M. Guerrero via Stepan Kasal.
78502         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78503         close. Remove the temporary directory right away, rather than waiting
78504         for configure's at-exit trap code to do it.
78505         Suggestion from Stepan Kasal.
78506
78507 2005-01-01  Simon Josefsson  <jas@extundo.com>
78508
78509         * gnulib-tool: Print #include directives when --import'ing.
78510
78511 2004-12-28  Simon Josefsson  <jas@extundo.com>
78512
78513         * tests/test-base64.c: Include required header files.  Remove
78514         unused variables.
78515
78516 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * modules/error (Depends-on): Remove gettext.
78519
78520 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78521
78522         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78523         not needed.  This removes a dependency on the gettext module.
78524         [defined _LIBC]: Do not include <libintl.h>; not needed.
78525
78526 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78529         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78530
78531 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78534         HAVE_DECL_STRTOLD.
78535
78536 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78537
78538         * modules/getdate (Depends-on): Remove alloca-opt.
78539
78540 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78543
78544 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78545
78546         * lib/argp-parse.c: Include <stddef.h>.
78547         (alignof, alignto): New macros.
78548         (parser_init): Don't assume that void * is aligned sufficiently
78549         for struct option.
78550
78551         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78552         need to extend the stack.
78553         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78554         large.
78555
78556 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78557
78558         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78559
78560 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78561
78562         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78563         (2004-10-24) change.  Apparently this was a false alarm.
78564
78565         * modules/getdate: Depend on alloca-opt, not alloca.
78566
78567 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78570         Remove now-obsolete comment about AIX.
78571         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78572         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78573         (YYMAXDEPTH): New macro.
78574
78575 2004-12-18  Simon Josefsson  <jas@extundo.com>
78576
78577         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78578
78579 2004-12-18  Bruno Haible  <bruno@clisp.org>
78580
78581         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78582
78583 2004-12-18  Bruno Haible  <bruno@clisp.org>
78584
78585         * lib/fatal-signal.c (fatal_signals): Make non-const.
78586         (init_fatal_signals): New function.
78587         (uninstall_handlers, install_handlers): Ignore signals that were set to
78588         SIG_IGN.
78589         (at_fatal_signal): Call init_fatal_signals.
78590         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78591         SIG_IGN.
78592         Reported by Paul Eggert.
78593
78594 2004-12-18  Bruno Haible  <bruno@clisp.org>
78595
78596         * doc/alloca.texi: New file.
78597         * doc/alloca-opt.texi: New file.
78598
78599 2004-12-17  Jim Meyering  <jim@meyering.net>
78600
78601         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78602         Otherwise, install-sh could exit with improper exit status when
78603         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78604
78605 2004-12-16  Simon Josefsson  <jas@extundo.com>
78606
78607         * tests/test-base64.c: Add license.
78608
78609 2004-12-15  Stepan Kasal  <address@hidden>
78610
78611         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78612
78613 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * modules/getcwd (Files): Add m4/d-ino.m4.
78616         Suggested by Mark D. Baushke.
78617
78618 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * lib/getdate.y (textint): New member "negative".
78621         (time_zone_hhmm): New function.
78622         Expect 14 shift-reduce conflicts, not 13.
78623         (o_colon_minutes): New rule.
78624         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78625         (yylex): Set the "negative" member of signed numbers.
78626
78627 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * doc/getdate.texi (Time of day items, Time zone items):
78630         Describe new formats +00:00, UTC+00:00.
78631
78632 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78635         spurious "-l"s.  Problem reported by Stepan Kasal.
78636
78637 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78640         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78641
78642 2004-12-04  Simon Josefsson  <jas@extundo.com>
78643
78644         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78645         Vandoorselaere <yoann@prelude-ids.org>.
78646
78647 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         Changes imported from coreutils.
78650         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78651         exist.
78652         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78653
78654 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         Changes imported from coreutils.
78657         * lib/hard-locale.c: Assume <locale.h> exists.
78658         Include "strdup.h".
78659         (GLIBC_VERSION): New macro.
78660         (hard_locale): Assume setlocale exists.
78661         Rewrite to avoid #ifdef.
78662         Use strdup rather than malloc + strcpy.
78663         * lib/human.c: Assume <locale.h> exists.
78664         (human_readable): Assume localeconv exists.
78665
78666 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * modules/hard-locale (Depends-on): Add strdup.
78669
78670 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78671
78672         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78673         convert T2, not T.  (Imported from libc.)
78674
78675 2004-11-30  Simon Josefsson  <jas@extundo.com>
78676
78677         * modules/restrict (License): Change to LGPL.
78678
78679 2004-11-30  Simon Josefsson  <jas@extundo.com>
78680
78681         * m4/restrict.m4: Add copyright and copying conditions.
78682
78683 2004-11-30  Simon Josefsson  <jas@extundo.com>
78684
78685         * m4/base64.m4: New file.
78686
78687 2004-11-30  Simon Josefsson  <jas@extundo.com>
78688
78689         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78690         base64.
78691
78692         * tests/test-base64.c: New file.
78693
78694         * modules/base64: New file.
78695
78696 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78697
78698         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78699         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78700
78701         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78702
78703 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78706         (__getcwd.c): Don't restore errno; glibc doesn't.
78707         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78708         first, falling back to our code only if its results look suspicious.
78709         Ensure that the resulting buffer is only as large as necessary.
78710
78711         * lib/readutmp.c: Include readutmp.h first.
78712         Include <errno.h>, since readutmp.h no longer does that.
78713         * lib/readutmp.h: Don't include <errno.h>,
78714         <sys/param.h>, <time.h>; not needed to establish interface.
78715         (errno): Remove decl.
78716         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78717         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78718         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78719
78720 2004-11-28  Simon Josefsson  <jas@extundo.com>
78721
78722         * lib/base64.h, base64.c: New file.
78723
78724 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78727
78728 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78731         (Depends-on): Remove pathmax, same.  Add mempcpy.
78732         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78733         (Makefile.am): Append getcwd.h to lib_SOURCES.
78734         (Include): Add getcwd.h.
78735         (Maintainer): Change from Jim Meyering to "all, glibc",
78736         since getdate now uses intended-for-glibc code.
78737         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78738         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78739
78740 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78743         HP's ANSI C compiler.
78744         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78745         Declaring int functions causes warnings on some modern systems and
78746         shouldn't be needed to compile on ancient ones.
78747         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78748         defined.
78749
78750         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78751         with the following changes.
78752         (__set_errno): Parenthesize properly.
78753         Include <stdbool.h>.
78754         (MIN, MAX, MATCHING_INO): New macros.
78755         (__getcwd): Define with prototype, not K&R form.
78756         Use heuristics to allocate default buffer on stack if possible.
78757         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78758         behavior, and to avoid the PATH_MAX limit when computing
78759         ../../../../...
78760         Use MATCHING_INO to compare inode number to file.
78761         Check for arithmetic overflow in size calculations.
78762         Fix bug in reallocation of dot array that caused getcwd to fail
78763         on directories nested deeper than 75.
78764         Be more careful about saving errno on error.
78765         Do not use realloc; use only free+malloc, as this is a bit
78766         more flexible and avoids a needless copy operation.
78767         Do not inspect st_dev and st_ino for symbolic links; POSIX
78768         doesn't specify the latter.
78769         Check for closedir errors.
78770         Avoid needless casts.
78771         Use "#ifdef weak_alias" around weak_alias, to be like other
78772         glibc code.
78773         The following changes to getcwd.c have effect only when used in
78774         gnulib; they have no effect inside glibc proper.
78775         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78776         as alloca isn't used.
78777         (alloca, __alloca): Likewise.
78778         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78779         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78780         unconditionally, as gnulib assumes C89 or better.
78781         Do not include <sys/param.h>.
78782         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78783         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78784         better.
78785         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78786         Include <dirent.h> in a way that is compatible with modern Autoconf.
78787         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78788         New macros, if not already defined.
78789         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78790         Use "_LIBC", not "defined _LIBC", for consistency.
78791         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78792         a mempcpy module.
78793         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78794         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78795         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78796         credit only to Jim Meyering and adjust the copyright dates.
78797         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78798         <stdlib.h>, <unistd.h>, "pathmax.h".
78799         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78800         (INITIAL_BUFFER_SIZE): Remove.
78801         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78802
78803 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78806         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78807         Use the _ONCE methods, for efficiency.
78808         Check for fcntl.h.  In test program, include <errno.h>
78809         and <fcntl.h> if available.  Remove old K&R cruft from
78810         test program.  Check for common errors in GNU/Linux,
78811         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78812         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78813         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78814         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78815         name accordingly.
78816         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78817         accommodate new getcwd.c.
78818         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78819         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78820         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78821         that's all we need now.
78822
78823 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78824
78825         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78826         argp-parse.c depends on getopt internals, that means we should
78827         always use our getopt, to be on the safe side.
78828         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78829         order not to spoil the result of an eventual previous invocation
78830         of gl_GETOPT_SUBSTITUTE.
78831
78832 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78833
78834         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78835         redefinition warnings. To avoid them, include the defines
78836         in `#if !defined __need_getopt ... #endif'. The only place
78837         where __getopt_argv_const is used is in definitions
78838         of getopt_long and getopt_long_only below, which are as well
78839         protected by `#ifndef __need_getopt'.
78840         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78841         __need_getopt after including <stdio.h> and <unistd.h> These
78842         headers might have defined it.
78843
78844 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78847
78848 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78851         (futimens): New function, which uses futimes if available.
78852         (futimens, utimens): Support timespec==NULL, with same semantics
78853         as utime and utimens.
78854         * lib/utimens.h (futimens): New decl.
78855
78856 2004-11-23  Jim Meyering  <jim@meyering.net>
78857
78858         * lib/getopt_.h: Remove trailing blanks.
78859
78860 2004-11-23  Jim Meyering  <jim@meyering.net>
78861
78862         * lib/__fpending.c: Add comment.
78863
78864 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * modules/canonicalize (Depends-on): Add xreadlink.
78867         Problem reported by James Youngman.
78868
78869 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78872         New macros.
78873         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78874         optopt): Use them instead of invoking ## directly; otherwise, the
78875         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78876
78877 2004-11-19  Bruno Haible  <bruno@clisp.org>
78878
78879         * lib/strtok_r.c: Move comments from here...
78880         * lib/strtok_r.h: ... to here.
78881
78882 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78885         implementations that mishandle size_t overflow.
78886
78887 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78890         might fail.  Problem reported by Yoann Vandoorselaere.
78891         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78892         implementations that mishandle size_t overflow.
78893
78894 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * modules/canon-host (Depends-on): Add strdup.
78897
78898 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78901
78902 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * lib/canon-host.c: Include "strdup.h".
78905         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78906         Use strdup instead of malloc/strcpy to duplicate strings.
78907
78908         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78909         (human_space_before_unit): New constant.
78910         * lib/human.c (human_readable): Support it.
78911
78912         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78913         (xgetcwd): Set errno correctly when failing.
78914         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78915         the failure is actually due to a PATH_MAX problem.
78916
78917         Further getopt changes to make it more likely that glibc will
78918         buy the changes back.
78919         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78920         (getopt): Use it, so to preserve glibc semantic
78921         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78922         when compiling for libc.
78923         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78924         (getopt_long, getopt_long_only): Use it.
78925
78926         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78927         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78928         (getopt): Argv is now char * const *, as per standard.
78929         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78930         not char *__getopt_argv_const *.
78931         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78932         _getopt_long_only_r): Likewise.
78933         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78934         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78935         _getopt_long_r, _getopt_long_only_r): Likewise.
78936         * lib/getopt_.h (__getopt_argv_const): Remove.
78937         (getopt): Argv is now char * const *, as per standard.
78938
78939         * lib/getdate.y (tORDINAL): New token.
78940         (day, relunit): Allow it for relative times.
78941         (relative_time_table): Use tORDINAL for ordinals.
78942
78943 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78946         Document that "second" isn't allowed as an ordinal number.
78947
78948 2004-11-16  Jim Meyering  <jim@meyering.net>
78949
78950         * modules/closeout (Depends-on): Add fpending.
78951
78952 2004-11-15  Jim Meyering  <jim@meyering.net>
78953
78954         * lib/closeout.c: Include "__fpending.h" once again.
78955         Include <stdbool.h>.
78956         (close_stdout): Don't fail just because stdout was closed initially,
78957         since some programs don't write to stdout in the normal course of
78958         operation (other than --version and --help), and we don't want this
78959         function to make e.g. `touch file >&-' fail.
78960         But do fail if it was closed and someone has tried to write to it.
78961         E.g., `printf foo >&-' must fail.
78962
78963 2004-11-13  Jim Meyering  <jim@meyering.net>
78964
78965         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78966
78967 2004-11-12  Simon Josefsson  <jas@extundo.com>
78968
78969         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78970         small doc fix is still pending.
78971
78972 2004-11-11  Simon Josefsson  <jas@extundo.com>
78973
78974         * modules/strtok_r: New file.
78975
78976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78977         strtok_r.
78978
78979 2004-11-11  Simon Josefsson  <jas@extundo.com>
78980
78981         * m4/strtok_r.m4: New file.
78982
78983         * m4/getopt.m4: Replace opterr.
78984
78985 2004-11-11  Simon Josefsson  <jas@extundo.com>
78986
78987         * lib/strtok_r.h, strtok_r.c: New file.
78988
78989 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78992         of replacing opterr, getopt, etc.  This should handle the
78993         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78994
78995 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78998         we can stop lying to compilers about the constness of argv when we
78999         are compiled outside glibc.
79000         (getopt, getopt_long, getopt_long_only): Use it.
79001         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79002         _getopt_internal, getopt): Likewise.
79003         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79004         _getopt_long_only_r): Likewise.
79005         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79006         _getopt_long_r, _getopt_long_only_r): Likewise.
79007
79008         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79009         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79010         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79011         the other external symbols.
79012         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79013         declaration, since the above renaming now works around collisions.
79014
79015 2004-11-11  Jim Meyering  <jim@meyering.net>
79016
79017         * lib/linebreak.c: Remove trailing blanks.
79018         * lib/alloca_.h: Likewise.
79019         * lib/acosl.c: Likewise.
79020         * lib/euidaccess.c: Likewise.
79021         * lib/allocsa.h: Likewise.
79022
79023 2004-11-10  Simon Josefsson  <jas@extundo.com>
79024
79025         * m4/getaddrinfo.m4: New file.
79026
79027 2004-11-10  Simon Josefsson  <jas@extundo.com>
79028
79029         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79030
79031 2004-11-10  Simon Josefsson  <jas@extundo.com>
79032
79033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79034         getaddrinfo.
79035
79036         * modules/getaddrinfo: New file.
79037
79038 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79039
79040         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79041
79042 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * lib/mktime.c (SHR): New macro, which is a portable
79045         substitute for >> that should work even on Crays.
79046         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79047         Problem reported by Mark D. Baushke in
79048         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79049         * lib/getdate.y (SHR): Likewise.
79050         (tm_diff): Use it.
79051         * lib/strftime.c (SHR): Likewise.
79052         (tm_diff): Use it.
79053         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79054         quote_these_too, so that right shifts are well defined.  All uses
79055         changed.
79056
79057 2004-11-10  Jim Meyering  <jim@meyering.net>
79058
79059         Ensure that no close failure goes unreported.
79060         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79061         return early when it seems there's nothing to flush.
79062         Don't include __fpending.h.
79063
79064 2004-11-10  Jim Meyering  <jim@meyering.net>
79065
79066         * modules/closeout (Depends-on): Remove fpending.
79067
79068 2004-11-10  Jim Meyering  <jim@meyering.net>
79069
79070         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79071
79072 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79073
79074         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79075         gl_FUNC_STRFTIME.
79076         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79077         and AC_REQUIRE when possible, to avoid duplicate checks.
79078         Check for <wchar.h>.
79079
79080 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79083
79084 2004-11-09  Bruno Haible  <bruno@clisp.org>
79085
79086         * m4/sockpfaf.m4: New file.
79087
79088 2004-11-05  Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79091         Reported by Mark D. Baushke <mdb@cvshome.org>.
79092
79093 2004-11-04  Bruno Haible  <bruno@clisp.org>
79094
79095         2004-09-11  Bruno Haible  <bruno@clisp.org>
79096                 * allocsa.valgrind: New file.
79097         2004-02-06  Bruno Haible  <bruno@clisp.org>
79098                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79099                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79100                 Reported by Christopher Seip <chris.seip@hp.com>.
79101
79102 2004-11-04  Bruno Haible  <bruno@clisp.org>
79103
79104         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79105         (Makefile.am): Distribute it.
79106
79107 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79110         with errno == ERANGE if the buffer is too small.
79111         Problem reported by Mark D. Baushke.
79112
79113 2004-11-03  Albert Chin  <china@thewrittenword.com>
79114             Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79117         equivalent, substitute $ac_type for equivalent type rather than
79118         blindly using uint32_t *always* which won't work if uint32_t is not
79119         available.  Define _UINT32_T to work around typedef of uint32_t if
79120         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79121         2.5.1.
79122
79123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         * m4/jm-macros.m4: Sync from coreutils.
79126         (gl_MACROS): Check for mbrlen, for pathchk.
79127         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79128
79129 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         * lib/xreadlink.c (MAXSIZE): New macro.
79132         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79133         size does not exceed MAXSIZE.  Avoid cast.
79134         As suggested by Mark D. Baushke in
79135         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79136         if readlink fails with buffer size just under MAXSIZE, try again
79137         with MAXSIZE.
79138
79139 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79142
79143 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79144         and  Paul Eggert  <eggert@cs.ucla.edu>
79145
79146         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79147         (get_date): Overparenthesize to avoid GCC warning.
79148
79149 2004-11-02  Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79152         returns void.
79153
79154 2004-11-02  Bruno Haible  <bruno@clisp.org>
79155
79156         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79157         function returns void.
79158
79159 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79162         fflush_unlocked, flockfile, funlockfile, funlockfile,
79163         fputs_unlocked, putc_unlocked.
79164
79165 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79168         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79169         already declared.
79170
79171 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * modules/getdate (Files): Add doc/getdate.texi.
79174         (Depends-on): Add setenv, xalloc.
79175
79176 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * lib/getdate.y: Add support for TZ="foo" within a date string.
79179         Fix some bugs near time_t boundaries.  Reject dates with
79180         out-of-range components, e.g., "Sept 31".
79181         Include <stdlib.h>, "setenv.h", "xalloc.h".
79182         (ISDIGIT_LOCALE): Remove; unused.
79183         Note that the TZ and time functions used here are not reentrant.
79184         (mktime_ok, get_tz): New functions.
79185         (TZBUFSIZE): New constant.
79186         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79187         This requires that we sometimes generate our own TZ="XXX..." setting.
79188
79189 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * doc/getdate.texi: New file, from coreutils with modifications for
79192         the new TZ parsing.
79193
79194 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79195
79196         * lib/mktime.c (not_equal_tm): Remove redundant check.
79197
79198 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * modules/regex (lib_SOURCES): Add regex.c.
79201         Reported by James Youngman in
79202         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79203
79204 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * lib/getdate.y: Use Bison 1.875 features, and some minor
79207         code cleanups.  This change does not affect semantics.
79208         Don't include <stdlib.h>; no longer needed.
79209         Don't include unlocked-io.h; only the "#if TEST" code uses
79210         stdio, and performance isn't crucial there.
79211         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79212         Bison 1.875 features as described below.
79213         All uses of "PC." replaced by "pc->".
79214         (YYSTYPE): Add a forward declaration.
79215         (yylex, yyerror): Use full prototypes in forward decls.
79216         Use "%pure-parser" rather than obsolescent "%pure_parser".
79217         Use %parse-param and %lex-param instead of obsolescent
79218         YYPARSE_PARAM and YYLEX_PARAM.
79219         (meridian_table, month_and_day_table, time_units_table,
79220         relative_time_table, time_zone_table, military_table,
79221         lookup_zone, lookup_word, get_date):
79222         Use NULL instead of 0 where appropriate.
79223         (to_hour): Avoid abort (), to avoid a dependency on
79224         stdlib.h.
79225         (yyerror, yylex): Now accepts parser_control * arg.
79226         (main) [TEST]: Use '\0' rather than 0 for char.
79227
79228 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79231
79232 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79235         It's now the caller's responsibility to handle the case where
79236         !HAVE_GETPAGESIZE && !defined getpagesize.
79237
79238         * lib/mktime.c (leapyear): Arg is long int, not int.
79239
79240 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79243
79244 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79247         missing.  Problem reported by James Youngman.
79248
79249 2004-10-16  Simon Josefsson  <jas@extundo.com>
79250
79251         * gnulib-tool: Fix comments.  Fix parse problem.
79252         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79253
79254 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79257         implementation of getopt_long.  Problem reported by Alexander Taler in:
79258         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79259
79260 2004-10-15  Bruno Haible  <bruno@clisp.org>
79261
79262         * gnulib-tool: Untabify. Initialize supplied_libname.
79263         (func_usage): More homogenous output.
79264         (func_modules_transitive_closure, func_modules_to_filelist,
79265         func_emit_lib_Makefile_am): New functions.
79266         (func_import): New function, extracted from big case statement. Use
79267         func_get_license, func_modules_transitive_closure,
79268         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79269         opt_lgpl. Don't use test -a, as it's not portable.
79270         (func_create_testdir): Use func_modules_transitive_closure,
79271         func_modules_to_filelist, func_emit_lib_Makefile_am.
79272
79273 2004-10-15  Bruno Haible  <bruno@clisp.org>
79274
79275         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79276
79277 2004-10-15  Bruno Haible  <bruno@clisp.org>
79278
79279         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79280         the portions belonging to each module.
79281         Suggested by Derek Robert Price <derek@ximbiot.com>.
79282
79283 2004-10-12  Simon Josefsson  <jas@extundo.com>
79284
79285         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79286         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79287         to real functions.
79288
79289 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79290
79291         * modules/vsnprintf: New file.
79292
79293 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79294
79295         * m4/vsnprintf.m4: New file.
79296
79297 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79298
79299         * lib/vsnprintf.h: New file.
79300         * lib/vsnprintf.c: New file.
79301
79302 2004-10-11  Bruno Haible  <bruno@clisp.org>
79303
79304         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79305         vsnprintf.
79306
79307 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79310
79311 2004-10-07  Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79314         fits into the provided buffer.
79315
79316 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * lib/diacrit.c, diacrit.h: Add GPL notice.
79319
79320         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79321         notice.
79322         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79323         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79324         This avoids a potential constant-folding bug.
79325
79326 2004-10-05  Bruno Haible  <bruno@clisp.org>
79327
79328         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79329         for the declaration of strsep.
79330
79331 2004-10-05  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79334
79335 2004-10-04  Simon Josefsson  <jas@extundo.com>
79336
79337         * modules/memmem: New file.
79338         * tests/test-memmem.c: New file.
79339         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79340
79341 2004-10-04  Simon Josefsson  <jas@extundo.com>
79342
79343         * m4/memmem.m4: New file.
79344
79345 2004-10-04  Simon Josefsson  <jas@extundo.com>
79346
79347         * lib/memmem.h: New file.
79348         * lib/memmem.c: New file, taken from glibc.
79349
79350 2004-10-04  Simon Josefsson  <jas@extundo.com>
79351
79352         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79353         '#ifdef USE_UNLOCKED_IO'.
79354
79355 2004-10-04  Simon Josefsson  <jas@extundo.com>
79356
79357         * config/srclist.txt: Add memmem from glibc.
79358
79359 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79362
79363         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79364         modules/exclude, modules/getdate, modules/getline,
79365         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79366         modules/getusershell, modules/linebuffer, modules/md5,
79367         modules/mountlist, modules/posixtm, modules/readtokens,
79368         modules/readutmp, modules/regex, modules/sha1,
79369         modules/version-etc, modules/yesno:
79370         Remove dependency on unlocked-io.
79371
79372 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79375
79376         * m4/unlocked-io.m4: Add copyright notice.
79377         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79378
79379 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79382         * lib/xmalloc.c (xmemdup): Likewise.
79383         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79384         XFREE): Remove these long-obsolescent macros.
79385         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79386         * lib/xstrdup.c: Remove.
79387
79388         * lib/regex.c (re_comp): Cast gettext return value to char *,
79389         Problem reported by Martin Neitzel via Mark D. Baushke.
79390
79391 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79394         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79395         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79396         regex.c, sha1.c, version-etc.c, yesno.c:
79397         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79398         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79399         the includer's responsibility.
79400
79401         Sync from coreutils.
79402
79403         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79404         points to the start of a string, as the C Standard says the
79405         resulting behavior is undefined.
79406
79407         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79408         simple -> simple_backups, numbered_existing ->
79409         numbered_existing_backups, numbered -> numbered_backups
79410         to avoid shadowing problems.  All uses changed.
79411         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79412         * lib/backupfile.c (check_extension, numbered_backup):
79413         Rename locals to avoid shadowing 'basename'.
79414         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79415         once.
79416
79417         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79418         * lib/.cvsignore: Add getopt.h.
79419
79420 2004-10-04  Bruno Haible  <bruno@clisp.org>
79421
79422         * modules/README: New file.
79423         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79424         not a module.
79425
79426 2004-10-02  Jim Meyering  <jim@meyering.net>
79427
79428         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79429
79430 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79431
79432         * modules/strsep: New file.
79433
79434 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79435
79436         * m4/strsep.m4: New file.
79437
79438 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79439
79440         * lib/strsep.h: New file.
79441         * lib/strsep.c: New file.
79442
79443 2004-10-01  Simon Josefsson  <jas@extundo.com>
79444
79445         * lib/snprintf.c (snprintf): Handle size==0.
79446
79447 2004-10-01  Simon Josefsson  <jas@extundo.com>
79448             Bruno Haible  <bruno@clisp.org>
79449
79450         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79451         (snprintf): Declare 'args'.
79452
79453 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * lib/snprintf.c: Remove comments as to why each header is needed.
79456
79457 2004-10-01  Bruno Haible  <bruno@clisp.org>
79458
79459         * MODULES.html.sh: Add strsep.
79460
79461 2004-09-30  Simon Josefsson  <jas@extundo.com>
79462
79463         * modules/snprintf: New file.
79464
79465 2004-09-30  Simon Josefsson  <jas@extundo.com>
79466
79467         * m4/snprintf.m4: New file.
79468
79469 2004-09-30  Simon Josefsson  <jas@extundo.com>
79470
79471         * lib/snprintf.h, lib/snprintf.c: New files.
79472
79473 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79474
79475         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79476         (hol_entry_help): Never translate an empty string.
79477         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79478         * lib/argp.h (OPTION_NO_TRANS): New option.
79479
79480 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * modules/argp (Maintainer): Replace Simon Josefsson
79483         by Sergey Poznyakoff.
79484
79485 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79488         changes merged back into glibc.
79489
79490 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79493
79494 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79495
79496         * lib/xvasprintf.c: Include xalloc.h.
79497         (xvasprintf): Use xalloc_die, not xmalloc_die.
79498
79499 2004-09-29  Bruno Haible  <bruno@clisp.org>
79500
79501         * modules/alloca-opt: New file, derived from modules/alloca.
79502         * modules/allocsa: Depend on alloca-opt instead of alloca.
79503         * modules/setenv: Likewise.
79504         * modules/vasnprintf: Likewise.
79505         * MODULES.html.sh: Add alloca-opt.
79506
79507 2004-09-28  Simon Josefsson  <jas@extundo.com>
79508
79509         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79510         LGPL, and to replace license template from GPL to LGPL.
79511
79512 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * modules/dummy: Change license to LGPL.
79515
79516 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79519
79520 2004-09-24  Simon Josefsson  <jas@extundo.com>
79521
79522         * modules/minmax (License): Change from GPL to LGPL.
79523
79524 2004-09-23  Simon Josefsson  <jas@extundo.com>
79525
79526         * gnulib-tool (--import): Typo.
79527
79528 2004-09-23  Simon Josefsson  <jas@extundo.com>
79529
79530         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79531
79532 2004-09-22  Bruno Haible  <bruno@clisp.org>
79533
79534         * modules/*: Add 'License' field.
79535         * gnulib-tool: Accept --extract-license option.
79536         (func_get_license): New function.
79537
79538 2004-09-21  Bruno Haible  <bruno@clisp.org>
79539
79540         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79541         Reported by Simon Josefsson.
79542
79543 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79546         gl_AC_TYPE_LONG_LONG.
79547
79548 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79549
79550         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79551
79552 2004-09-18  Simon Josefsson  <jas@extundo.com>
79553         and  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79556         calls with autoreconf.  Define GL_LIB.
79557
79558 2004-09-14  Karl Berry  <karl@gnu.org>
79559
79560         * config/srclist.txt: unsync setenv.c, sigh.
79561
79562 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79565         Problem reported by Bruno Haible in:
79566         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79567
79568 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79569
79570         * config/srclist.txt: Comment out argp-pvh.c.
79571
79572 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79575         in case some system header has #define'd it.  Problem reported by
79576         Soeren D. Schulze in
79577         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79578
79579 2004-09-09  Karl Berry  <karl@gnu.org>
79580
79581         * regex.[ch]: delete from the root.  These were supposed to be
79582                 synced with emacs cvs, but this has not happened for about
79583                 a year, and anyway nothing else uses emacs regex.[ch].
79584                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79585                 lib/regex[.ch] is untouched.
79586
79587 2004-09-09  Bruno Haible  <bruno@clisp.org>
79588
79589         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79590
79591 2004-09-09  Bruno Haible  <bruno@clisp.org>
79592
79593         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79594         modifications.
79595         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79596
79597 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79598
79599         * modules/xvasprintf: New file.
79600         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79601
79602 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79603
79604         * lib/xvasprintf.h: New file.
79605         * lib/xvasprintf.c: New file.
79606         * lib/xasprintf.c: New file.
79607
79608 2004-09-08  Bruno Haible  <bruno@clisp.org>
79609
79610         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79611
79612 2004-09-08  Bruno Haible  <bruno@clisp.org>
79613
79614         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79615         length is > INT_MAX.
79616         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79617         more.
79618
79619 2004-09-08  Bruno Haible  <bruno@clisp.org>
79620
79621         * lib/stdint_.h: New file, taken from GNU clisp.
79622
79623 2004-09-08  Bruno Haible  <bruno@clisp.org>
79624             Oskar Liljeblad  <oskar@osk.mine.nu>
79625
79626         * modules/stdint: New file.
79627         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79628
79629 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         Import from coreutils.
79632         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79633         strings on unbounded length.  alloca's performance benefits aren't
79634         that important here.
79635         (V_STRDUP): Remove.
79636         (parse_with_separator): New function, with most of the internals
79637         of the old parse_user_spec.  Allow user to omit both user and group,
79638         for compatibility with FreeBSD.
79639         Clone only the user name, not the entire spec.
79640         Do not set *uid, *gid unless entirely successful.
79641         Avoid memory leak in some failing cases.
79642         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79643         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79644         (parse_user_spec): Rewrite to use parse_with_separator.
79645
79646 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79647
79648         * modules/userspec: Don't depend on alloca.
79649
79650 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79653
79654 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79657         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79658         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79659
79660 2004-08-16  Simon Josefsson  <jas@extundo.com>
79661
79662         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79663         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79664         Add --dry-run for --import.
79665         Let user provided command line parameters override configure.ac
79666         settings.
79667
79668 2004-08-12  Simon Josefsson  <jas@extundo.com>
79669
79670         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79671         as discussed with Paul Eggert in threads rooted at
79672         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79673         and
79674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79675         Before, the test was empty, and relied on ELIDE_CODE in source
79676         code.)
79677         (gl_PREREQ_GETOPT): New macro.
79678         (gl_GETOPT): Use them.
79679
79680 2004-08-12  Simon Josefsson  <jas@extundo.com>
79681
79682         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79683         * lib/getopt_.h: Renamed from getopt.h.
79684
79685 2004-08-12  Simon Josefsson  <jas@extundo.com>
79686
79687         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79688         Change default library name from libfoo to libgnu.
79689         Now, if you have a configure.ac that says:
79690                 gl_SOURCE_BASE(gl)
79691                 gl_M4_BASE(gl/m4)
79692                 gl_MODULES(error getopt etcetera)
79693                 gl_INIT
79694         you can import all you need by running:
79695                 ../gnulib/gnulib-tool --import
79696
79697         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79698         (Makefile.am): Rewrite, use logic from argz.
79699         (Include): Use <getopt.h> instead of "getopt.h".
79700
79701 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * modules/argp (Files): Add m4/unlocked-io.m4.
79704         (Depends-on): Add extensions.
79705
79706 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79709         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79710         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79711         Check for program_invocation_name, program_invocation_short_name,
79712         flockfile, funlockfile, features.h, _getopt_long_only_r.
79713
79714 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79717         its complicated substitute.
79718         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79719         and program_invocation_name.
79720         (__argp_basename) [!_LIBC]: Remove; the only use was
79721         replaced by its body.
79722         (__argp_short_program_name): Change condition from
79723         !defined __argp_short_program_name to
79724         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79725         to match argp-namefrob.h.
79726         (__argp_failure): Don't assume strerror_r returns char *.
79727         * lib/argp-parse.c (N_): Define unconditionally.
79728         (argp_default_options): Fill out initializers with 0 to avoid
79729         gcc warnings.
79730
79731 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79734         getopt1.c.
79735
79736 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         Merge from coreutils.
79739
79740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79741
79742         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79743         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79744
79745 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         Merge from coreutils.
79748
79749         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79750         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79751         for Reliant Unix 5.43.
79752
79753         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79754         (union fooround): Use uintmax_t, not long int.
79755         The rest is a merge from libc:
79756         [defined _LIBC]: Include <shlib-compat.h>.
79757         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79758
79759         * lib/settime.c (settime): Recode to avoid warning with
79760         Sun Forte C 6U2.
79761
79762         * lib/strverscmp.c: Convert to UTF-8.
79763
79764 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79767         m4/uintmax_t.m4.
79768
79769 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * modules/xalloc-die: New file.
79772         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79773
79774         * modules/md5 (Files): Add m4/uint32_t.m4.
79775         * modules/sha1: Renamed from modules/sha.
79776         (Files):
79777         Rename lib/sha.h to lib/sha1.h.
79778         Rename lib/sha.c to lib/sha1.c.
79779         Rename m4/sha.m4 to m4/sha1.m4.
79780         (lib_SOURCES): Likewise.
79781         (configure.ac): Rename gl_SHA to gl_SHA1.
79782         (Include): sha.h -> sha1.h.
79783
79784 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79787         * m4/sha1.m4: Renamed from sha.m4.
79788         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79789
79790 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * lib/obstack.h (obstack_empty_p):
79793         Don't assume that chunk->contents is suitably aligned.
79794         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79795         Likewise. Problem reported by Benno in
79796         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79797
79798         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79799         readable.  This could be improved further but it'd take some work.
79800
79801 2004-08-08  Simon Josefsson  <jas@extundo.com>
79802
79803         * modules/xgethostname (Depends-on): Remove exit and error (not
79804         used).
79805
79806         * modules/getpass-gnu: Add getpass.h.
79807         (Depends-on): Add stdbool.
79808         * modules/getpass: Add getpass.h.
79809
79810 2004-08-08  Simon Josefsson  <jas@extundo.com>
79811
79812         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79813         Check getpass declaration.
79814
79815 2004-08-08  Simon Josefsson  <jas@extundo.com>
79816
79817         * lib/xgethostname.c: Don't include error.h (not used).
79818
79819         * lib/getpass.h: Add.
79820         * lib/getpass.c: Include getpass.h first.
79821
79822 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         * lib/xalloc-die.c: New file.
79825         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79826         All uses removed.
79827         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79828         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79829         xalloc-die.c.
79830         (_, N_, xalloc_die): Move to xalloc-die.c.
79831         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79832         so that we needn't mess with xalloc_msg_memory_exhausted.
79833
79834         * lib/sha1.h: Renamed from sha.h.
79835         (SHA1_H): Renamed from _SHA_H.
79836         (sha1_ctx): Renamed from sha_ctx.
79837         (sha1_init_ctx): Renamed from sha_init_ctx.
79838         (sha1_process_block): Renamed from sha_process_block.
79839         (sha1_process_bytes): Renamed from sha_process_bytes.
79840         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79841         (sha1_read_ctx): Renamed from sha_read_ctx.
79842         (sha1_stream): Renamed from sha_stream.
79843         (sha1_buffer): Renamed from sha_buffer.
79844         * lib/sha1.c: Likewise; renamed from sha.c.
79845         Do not include <sys/types.h>.
79846         Include <stddef.h> rather than <stdlib.h>.
79847
79848 2004-08-08  Bruno Haible  <bruno@clisp.org>
79849
79850         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79851         FILESYSTEM_PREFIX_LEN.
79852         * lib/progreloc.c: Likewise.
79853         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79854
79855 2004-08-06  Simon Josefsson  <jas@extundo.com>
79856
79857         * modules/progname (Depends-on): Don't depend on stdbool.
79858
79859 2004-08-06  Simon Josefsson  <jas@extundo.com>
79860
79861         * modules/getsubopt: New file.
79862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79863         getsubopt.
79864
79865 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         More merge from coreutils.
79868
79869         * m4/utimens.m4, m4/utimecmp.m4: New files.
79870         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79871         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79872         prereq.m4, sha.m4: Import changes from coreutils.
79873
79874 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         More merge from coreutils.
79877         * modules/raise, modules/readtokens0, modules/utimens:
79878         * modules/utimecmp, module/xnanosleep: New files.
79879         * modules/strftime: Add lib/strftime.h.
79880         Change include from <time.h> to "strftime.h".
79881         * modules/yesno: Add lib/yesno.h.
79882         * modules/backupfile: Remove lib/addext.c.
79883         * modules/euidaccess: Add stat-macros.h.
79884         * modules/canonicalize, modules/euidaccess,
79885         modules/filemode, modules/lchown, modules/makepath,
79886         modules/rmdir, modules/stat: Likewise.
79887
79888 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         Merge from tar.
79891         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79892         SIZE_MAX is a valid preprocessor constant.
79893         (__argp_basename): Change from "#ifndef _LIBC"
79894         to "#ifndef __argp_short_program_name", so that
79895         we don't compile these functions for tar.
79896
79897         More merges from coreutils.
79898         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79899         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79900         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79901         * lib/addext.c: Remove; no longer needed.
79902         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79903         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79904         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79905         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79906         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79907         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79908         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79909         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79910         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79911         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79912         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79913         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79914         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79915         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79916         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79917         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79918         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79919         Import changes from coreutils.
79920
79921 2004-08-05  Simon Josefsson  <jas@extundo.com>
79922
79923         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79924
79925 2004-08-05  Simon Josefsson  <jas@extundo.com>
79926
79927         * m4/getsubopt.m4: New file.
79928
79929 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         Merge from coreutils.
79932
79933         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79934         * m4/getcwd-path-max.m4: New files.
79935
79936         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79937         FILESYSTEM_PREFIX_LEN ->
79938         FILE_SYSTEM_PREFIX_LEN.
79939         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79940         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79941         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79942         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79943
79944         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79945         prerequisite modules now handle the DOS stuff.
79946         Don't check for unistd.h.
79947
79948 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         Merge from coreutils.
79951
79952         * lib/.gdb-history: Remove; this doesn't belong here.
79953
79954         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79955         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79956         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79957         * lib/getcwd.c: New files.
79958
79959         * lib/dirname.h: Include <stdbool.h>.
79960         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79961         for consistency with POSIX terminology.  All uses changed.
79962         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79963         (strip_trailing_slashes): Use bool for booleans.
79964         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79965
79966         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79967         sometimes returns a positive errno value even when it succeeds.
79968         (print_errno_message) [!LIBC]: Fall back on strerror if
79969         __strerror_r fails.
79970
79971         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79972         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79973         (longest_relative_suffix): New function.
79974         (path_concat): Use it.  Assume first argument is not NULL.
79975         Port to DOS.  Omit redundant separators.
79976         Report an error instead of returning NULL.
79977         Use mempcpy instead of memcpy.
79978         (xpath_concat): Remove: not declared or used.
79979
79980         * lib/same.h: Include <stdbool.h>
79981         (same_name): Return bool, not int.
79982         * lib/same.c (same_name): Likewise.
79983         (errno): Don't declare; we assume C89 or better now.
79984
79985         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79986         if not already defined.
79987
79988         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79989         * lib/dup-safer.c (errno): Likewise.
79990
79991 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         Merge from coreutils.
79994         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79995         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79996         * modules/path-concat: Don't depend on strdup.
79997
79998 2004-08-03  Simon Josefsson  <jas@extundo.com>
79999
80000         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80001         * lib/progname.h: Don't include stdbool.h.
80002
80003 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80006         * MODULES.html.sh (func_all_modules): Remove fatal.
80007
80008 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80011
80012 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80013
80014         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80015         working.
80016
80017 2004-08-02  Simon Josefsson  <jas@extundo.com>
80018
80019         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80020         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80021         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80022
80023 2004-08-01  Simon Josefsson  <jas@extundo.com>
80024
80025         * lib/xgetdomainname.c: Include stdlib.h, for free().
80026
80027 2004-07-19  Bruno Haible  <bruno@clisp.org>
80028
80029         * MODULES.html.sh (func_all_modules): Add dummy.
80030
80031 2004-07-16  Simon Josefsson  <jas@extundo.com>
80032
80033         * modules/dummy: New file.
80034
80035 2004-07-16  Simon Josefsson  <jas@extundo.com>
80036
80037         * lib/dummy.c: New file.
80038
80039 2004-07-16  Bruno Haible  <bruno@clisp.org>
80040
80041         * lib/backupfile.h: Add extern "C" for C++.
80042         * lib/closeout.h: Likewise.
80043         * lib/copy-file.h: Likewise.
80044         * lib/findprog.h: Likewise.
80045         * lib/full-write.h: Likewise.
80046         * lib/pathname.h: Likewise.
80047         * lib/progname.h: Likewise.
80048         * lib/stpcpy.h: Likewise.
80049         * lib/stpncpy.h: Likewise.
80050         * lib/strcase.h: Likewise.
80051         * lib/strstr.h: Likewise.
80052         * lib/xalloc.h: Likewise.
80053
80054         * lib/mbswidth.h: Add extern "C" for C++.
80055         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80056
80057 2004-07-13  Robert Millan  <robertmh@gnu.org>
80058
80059         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80060
80061 2004-07-09  Simon Josefsson  <jas@extundo.com>
80062
80063         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80064         failed without this.)
80065
80066 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * modules/chown (Files): Add lib/fchown-stub.c, since
80069         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80070
80071 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80072
80073         * lib/fchown-stub.c: New file.
80074
80075 2004-06-24  Jim Meyering  <jim@meyering.net>
80076
80077         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80078
80079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * modules/argz: Omit "#include".
80082
80083         * MODULES.html.sh (func_all_modules): Add calloc, to match
80084         2004-06-01 addition of calloc module.
80085
80086 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * m4/argz.m4: New file, which is autoupdated from libtool.
80089
80090 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80093         libtool.
80094
80095 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * config/srclist-update: Don't insist on "USA." before the
80098         close-comment, as libtool omits the period and puts the */ on a
80099         separate line.
80100         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80101         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80102
80103 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80104
80105         * modules/argz: New file.
80106         * MODULES.html.sh (func_all_modules): Add argz.
80107
80108 2004-06-12  Jim Meyering  <jim@meyering.net>
80109         and  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * modules/hash (Files): Add lib/xalloc.h.
80112         * modules/pipe (Depends-on): Add wait-process.
80113         * modules/stat (Depends-on): Add xalloc.
80114         * modules/userspec (Files): Add lib/userspec.h.
80115         * modules/xstrto
80116
80117         Upgrade from gettext-0.13.
80118         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80119         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80120         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80121
80122 2004-06-10  Jim Meyering  <jim@meyering.net>
80123
80124         * lib/calloc.c: New file.
80125
80126 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * lib/getdate.y (yylex): Allow space between sign and number.
80129         Problem reported by Dan Jacobson.
80130
80131 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         Merge from coreutils CVS.
80134
80135         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80136         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80137         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80138         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80139         xstrtol.m4: Fix copyright date and/or serial number.
80140
80141         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80142         See if we need an fchown replacement.
80143         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80144         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80145         and use the replacement function if we detect either defect.
80146
80147         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80148         gl_UTIMECMP.
80149
80150 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80151         and  Jim Meyering  <jim@meyering.net>
80152
80153         Merge from coreutils CVS.
80154
80155         * lib/stat-macros.h: New file, with contents from file-type.h
80156         and coreutils' system.h.
80157         * lib/file-type.c: Include "stat-macros.h".
80158         * lib/file-type.h (file_type): Move all macro definitions to new file,
80159         stat-macros.h.
80160
80161         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80162         Wrap old code with this conditional.
80163         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80164         function that does not dereference symlinks.
80165         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80166
80167         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80168         dependency problems.
80169         (xreadlink): Accept new arg SIZE, for efficiency.
80170         All decls and uses changed.
80171         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80172
80173         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80174         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80175
80176         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80177         sysexits.h.
80178
80179 2004-06-01  Jim Meyering  <jim@meyering.net>
80180
80181         * m4/calloc.m4: New file.
80182
80183 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80186         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80187         Also, fix a typo in a diagnostic.
80188
80189 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80192         or AC_FUNC_REALLOC.
80193
80194 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80197         macros to be defined.
80198         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80199         the allocator returns NULL because the requested size is zero.
80200
80201 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80204         var.  Add comment explaining why libc still defines it.  This
80205         merges the following patch from glibc:
80206         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80207
80208 2004-05-20  Andreas Schwab  <schwab@suse.de>
80209
80210         * m4/free.m4: Replace free if it not known to work, not the other
80211         way round.
80212
80213 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80216         present in glibc since revision 1.1 of this file.
80217         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80218         obstack_alignment_mask, obstack_alloc, obstack_base,
80219         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80220         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80221         obstack_grow0, obstack_init, obstack_int_grow,
80222         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80223         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80224         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80225         nonexistent functions.
80226
80227 2004-05-18  Karl Berry  <karl@gnu.org>
80228
80229         * config/srclist.txt: break link for vasnprintf.c.
80230
80231 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80232
80233         Port obstack to the AS/400, where pointers are 16 bytes wide and
80234         you cannot cast an integer to a valid pointer.  This patch is
80235         currently waiting to be integrated into glibc; see
80236         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80237
80238         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80239         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80240         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80241         (struct obstack): temp member is now a union of a pointer and
80242         an integer, instead of an integer.  All integer uses changed.
80243         This does not affect the physical layout of struct obstack,
80244         except on hosts (like the AS/400) where the size or alignment of
80245         void * is greater than that of ptrdiff_t.
80246         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80247         __STDC__)]: Store temporary in pointer member of union, not
80248         integer member.
80249         * lib/obstack.c: Include <stddef.h>, for offsetof.
80250         (struct fooalign): Remove; it doesn't need a name.
80251         (union fooround): Change double to long double, and add void *.
80252         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80253         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80254         not a macro.  Hence the values are always int; so remove all
80255         casts-to-int in uses.
80256
80257 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80260         we can get this patch merged into glibc.
80261
80262 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80263             Paul Eggert  <eggert@cs.ucla.edu>
80264
80265         * m4/argp: Depend on alloca.
80266
80267 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80268             Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80271         freecoding.
80272
80273 2004-05-17  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80276         precision that consists of a '.' followed by an empty digit string.
80277         Patch by Tor Lillqvist <tml@iki.fi>.
80278
80279 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80282         for backward compatibility with older code.  We need our own
80283         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80284         it under some other name, and our alloca.h will define it.
80285
80286 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80287             Derek Price  <derek@ximbiot.com>
80288
80289         * lib/alloca.c: Include <alloca.h>, to get our interface.
80290         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80291         include <alloca.h> first.  Use C89 prototype for alloca; this
80292         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80293         Use #elif for simplicity, since we can assume C89 now.
80294         Don't try to source the system alloca.h since it will not be found
80295         and to prevent recursively including its replacement.
80296         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80297         * lib/regex.c: Likewise.
80298
80299 2004-05-16  Derek Price  <derek@ximbiot.com>
80300             Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         getline cleanup.  This changes the getndelim2 API: both order of
80303         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80304         no delimiter).
80305
80306         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80307         interface does that.
80308         (getline): Always use getdelim, so that we don't have two
80309         copies of this code.
80310         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80311         if available.
80312         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80313         (GETNDELIM2_MAXIMUM): New macro.
80314         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80315         instead of the old practice of delim2==0.  All callers changed.
80316         Return -1 on overflow, instead of returning junk.
80317         Do not set *linesize unless allocation succeeds.
80318         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80319         that we include sys/types.h.
80320         * lib/getnline.h: Likewise.
80321         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80322         (getndelim2): Reorder arguments.
80323         * lib/getnline.c (getnline, getndelim):
80324         Don't discard the NMAX argument.
80325         (getnline): Invoke getndelim, to avoid code duplication.
80326         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80327         of (size_t) -1 by callers of the getnline family.
80328
80329 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80332         Check for gettimeofday.
80333         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80334         Check for settimeofday, stime.
80335
80336 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/nanosleep.c (suspended): Change its type from int to
80339         sig_atomic_t volatile.
80340         (first_call): Make it private to rpl_nanosleep, and have it
80341         be zero initially as that's a bit faster.
80342         (my_usleep): Round up fractional times instead of truncating them,
80343         as this is the usual meaning for 'sleep'.
80344
80345         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80346         doesn't work.
80347         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80348         (ENOSYS): Define if not defined.
80349         (settime): Fall back on stime if it exists and settimeofday fails.
80350         But don't bother with fallbacks if a method fails with errno == EPERM.
80351
80352 2004-05-11  Jim Meyering  <jim@meyering.net>
80353
80354         Prior to this change, the save_cwd caller required read access to the
80355         current directory on most systems (ones with the fchdir function).
80356
80357         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80358         fails, try write-only, and finally, resort to using xgetcwd.
80359
80360 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80361
80362         * lib/obstack.c, obstack.h: Import changes from libc.
80363
80364 2004-04-28  Bruno Haible  <bruno@clisp.org>
80365
80366         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80367         also implicitly appends .exe to executables.
80368         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80369         accepts Windows pathnames.
80370         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80371         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80372         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80373         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80374         Reported by Derek Robert Price <derek@ximbiot.com>.
80375
80376 2004-04-21  Karl Berry  <karl@gnu.org>
80377
80378         * config/srclist.txt (localcharset.c): break sync.
80379
80380 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80381
80382         * m4/host-os.m4: Add a copyright notice.
80383
80384 2004-04-20  Jim Meyering  <jim@meyering.net>
80385
80386         Change UTILS_ to gl_ in AC_DEFINE'd names.
80387         Change utils_- and jm_-prefixed variables, too.
80388         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80389         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80391
80392         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80393         Don't emit trailing blanks.
80394         Also rename jm_-prefixed variables to have gl_ prefix.
80395
80396         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80397         Also rename jm_-prefixed variables to have gl_ prefix.
80398
80399         * m4/jm-macros.m4: Reflect the renamings.
80400         * m4/prereq.m4: Likewise.
80401
80402 2004-04-20  Jim Meyering  <jim@meyering.net>
80403
80404         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80405         memory.
80406
80407 2004-04-20  Jim Meyering  <jim@meyering.net>
80408             Bruno Haible  <bruno@clisp.org>
80409
80410         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80411         memory when realloc fails.
80412
80413 2004-04-19  Jim Meyering  <jim@meyering.net>
80414
80415         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80416         now that readutmp.c may call `free (0)'.
80417
80418 2004-04-19  Bruno Haible  <bruno@clisp.org>
80419
80420         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80421         * m4/inttypes_h.m4: Likewise.
80422         * m4/stdint_h.m4: Likewise.
80423         * m4/intmax_t.m4: Likewise.
80424         * m4/uintmax_t.m4: Likewise.
80425
80426 2004-04-18  Jim Meyering  <jim@meyering.net>
80427
80428         * m4/prereq.m4: Don't forbid jm_ prefix.
80429
80430         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80431         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80432         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80433         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80434         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80435         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80436         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80437         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80438         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80439         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80440         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80441         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80442         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80443         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80444         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80445         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80446         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80447         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80448         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80449
80450 2004-04-18  Jim Meyering  <jim@meyering.net>
80451
80452         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80453         failure, don't leak memory and do call END_UTMP_ENT.
80454
80455 2004-04-16  Jim Meyering  <jim@meyering.net>
80456
80457         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80458         coreutils' stat program.
80459         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80460
80461 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80462
80463         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80464         C89.
80465         (CHAR_BIT): Remove, since we assume C89.
80466         Include <stdint.h> if available, as per current Autoconf CVS advice.
80467
80468 2004-03-31  Jim Meyering  <jim@meyering.net>
80469
80470         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80471         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80472         * m4/xalloc.m4: Likewise.
80473
80474 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80475
80476         Merge from coreutils.
80477
80478         * m4/inttostr.m4: New file.
80479         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80480         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80481         Require gl_CLOCK_TIME.
80482         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80483
80484 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80485
80486         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80487         not bool, to be more consistent with Unix conventions.
80488         Suggested by Bruno Haible.
80489
80490         Merge from coreutils.
80491
80492         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80493         * lib/umaxtostr.c: New files.
80494
80495         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80496         the usual <time.h> dance.
80497         (get_date): Change signature to support fractional time stamps.
80498         All callers changed.
80499         * lib/getdate.y: Include "getdate.h" first, as we can now
80500         assume C89 and don't need to worry about 'const'.
80501         Similarly, include "unlocked-io.h" near start, not in middle.
80502         Include <limits.h>.
80503         (textint.value): Use long int rather than int.
80504         (textint.digits): Use size_t rather than int.
80505         (BILLION, LOG10_BILLION): New constants.
80506         (parser_control): New member rel_ns.  Members day_ordinal,
80507         time_zone, month, day, hour, minutes, rel_year, rel_month,
80508         rel_day, rel_hour, rel_minutes, rel_seconds
80509         are now long int, not int.  Member seconds is now struct timespec,
80510         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80511         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80512         not int.
80513         (%union.intval): Now long int, not int.
80514         New member timespec.
80515         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80516         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80517         (spec): Now is a timespec or an item list.
80518         (timespec, items): New nonterminals.
80519         (time, rel, relunit, number, get_date):
80520         Add support for fractional seconds.
80521         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80522         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80523         (to_hour): First arg is now long int, not int.
80524         (to_year): Returns long int, not int.
80525         Don't treat year -70 like 70.
80526         (tm_diff): Returns long int, not int.
80527         (lookup_word): Use bool instead of int when appropriate.
80528         (yylex): Use size_t for count, not int.
80529         Detect overflow when parsing large integer constants.
80530         Add support for fractions.
80531         (get_date): Make pointers 'const' if possible.
80532         Use more-portable code to detect integer overflow.
80533         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80534         Don't use ctime; it's not reliable if the year has >4 digits.
80535
80536         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80537         This is for compatibility with BSD.
80538
80539         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80540         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80541         From coreutils' system.h.
80542
80543         * lib/userspec.c: Don't include "posixver.h".
80544         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80545         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80546         compatible extension.  Simplify code by removing a boolean int
80547         that was always nonzero if a string was nonnull.
80548
80549 2004-03-30  Jim Meyering  <jim@meyering.net>
80550
80551         Merge from coreutils.
80552
80553         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80554         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80555         on some systems one must include <grp.h> before it.
80556         Reported by Christian Krackowizer.
80557
80558 2004-03-30  Jim Meyering  <jim@meyering.net>
80559
80560         Merge from coreutils.
80561
80562         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80563
80564         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80565         an empty input stream.
80566
80567         * lib/readtokens.c: Include <stdbool.h>.
80568         (readtoken): Use `size_t' rather than int/long.
80569         All callers adjusted.
80570         Use `bool' rather than `int' where appropriate.
80571         Use memset rather than an explicit loop.
80572         Use x2nrealloc rather than xrealloc.
80573         Allow the use of `\0' as a delimiter.
80574         (readtokens): Likewise.
80575         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80576
80577 2004-03-30  Jim Meyering  <jim@meyering.net>
80578
80579         * m4/realloc.m4: Remove file, since now it does no more than
80580         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80581         the `configure.ac' section of module/realloc.
80582         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80583
80584 2004-03-30  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80587         nonnull.
80588
80589 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80590
80591         Merge changes to getloadavg.c from coreutils and Emacs.
80592
80593         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80594         Define to an expression, not to the empty string.
80595         Include cloexec.h and xalloc.h.
80596         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80597         Use set_cloexec_flag rather than rolling our own.
80598         * lib/cloexec.c, lib/cloexec.h: New files.
80599
80600 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80601
80602         * m4/cloexec.m4: New file.
80603
80604 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80605
80606         * lib/getopt.h: Sync with libc CVS.
80607
80608 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80609             Bruno Haible  <bruno@clisp.org>
80610
80611         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80612         mbswidth.
80613
80614 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80615             Bruno Haible  <bruno@clisp.org>
80616
80617         * lib/mbswidth.h: Include <wchar.h> only if
80618         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80619         <wchar.h>.
80620         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80621
80622 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80623
80624         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80625         Sync with libc CVS.
80626         * lib/getopt_int.h: New file, also synced from libc.
80627
80628 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80629
80630         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80631         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80632         Bring back getopt.c, getopt.h, getopt1.c.
80633
80634 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80635
80636         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80637         All uses changed.  Check for sa_sigaction member; this fixes
80638         a bug first reported by Jason Andrade in
80639         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80640
80641 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80642
80643         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80644         '#if' expressions.  Unlike the code it replaces, it does not
80645         depend on (defined _SC_PAGESIZE).  However, it does depend on
80646         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80647         first reported by Jason Andrade in
80648         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80649
80650 2004-02-25  Simon Josefsson  <jas@extundo.com>
80651
80652         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80653
80654 2004-02-25  Simon Josefsson  <jas@extundo.com>
80655
80656         * lib/strdup.h: New file.
80657         * lib/strdup.c: Include it.
80658         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80659         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80660
80661 2004-02-23  Karl Berry  <karl@gnu.org>
80662
80663         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80664         (from fencepost.gnu.org:/gd/gnuorg).
80665
80666 2004-02-23  Karl Berry  <karl@gnu.org>
80667
80668         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80669         * config/srclist.txt: add maintain/standards documents.
80670
80671 2004-02-18  Bruno Haible  <bruno@clisp.org>
80672
80673         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80674         Reported by Derek Robert Price <derek@ximbiot.com>.
80675
80676 2004-02-16  Karl Berry  <karl@gnu.org>
80677
80678         * config/mkinstalldirs, install-sh: update from automake.
80679
80680 2004-02-06  Karl Berry  <karl@gnu.org>
80681
80682         * m4/po.m4: update from gettext 0.14.1.
80683
80684 2004-02-06  Karl Berry  <karl@gnu.org>
80685
80686         * lib/config.charset: update from gettext 0.14.1.
80687
80688 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80689
80690         Add comments and code, prompted by suggestions from Bruno Haible
80691         for sh-quote.
80692         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80693         describing the enum quoting_style values.
80694         * lib/quotearg.c (quotearg_alloc): New function.
80695         (quotearg_buffer_restyled): Treat lone { and } as special.
80696         Treat = as special.  Work around bug with older shells
80697         that "see" a '\' that is really the 2nd byte of a multibyte char.
80698         Quote empty string with shell_quoting_style.
80699
80700 2004-02-03  Bruno Haible  <bruno@clisp.org>
80701
80702         * m4/pipe.m4: New file, from GNU gettext.
80703
80704 2004-02-03  Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/pipe.h: New file, from GNU gettext.
80707         * lib/pipe.c: New file, from GNU gettext.
80708
80709 2004-01-27  Bruno Haible  <bruno@clisp.org>
80710
80711         * m4/execute.m4: New file, from GNU gettext.
80712
80713 2004-01-27  Bruno Haible  <bruno@clisp.org>
80714
80715         * lib/execute.h: New file, from GNU gettext.
80716         * lib/execute.c: New file, from GNU gettext.
80717         * lib/w32spawn.h: New file, from GNU gettext.
80718
80719 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80720
80721         Merge from diffutils.
80722
80723         * lib/file-type.c (file_type): Add typed memory objects.
80724         * lib/file-type.h (S_TYPEISTMO): New macro.
80725
80726         * lib/c-stack.h (c_stack_action): Remove argv argument.
80727         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80728         (die): Don't calculate message unless segv_action returns.
80729         (get_stack_location, min_address_from_argv, max_address_from_argv,
80730         volatile stack_base, volatile_stack_size): Remove.
80731         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80732         that every segmentation violation is a stack overflow.  (Ouch!)
80733         See Debian bug 136249 (still outstanding) for more info about why
80734         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80735
80736 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80737
80738         Exit-status fix from coreutils.
80739
80740         Use exit_failure consistently in place of EXIT_FAILURE,
80741         so that program exit statuses are consistent on failure.
80742
80743         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80744         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80745         * lib/argmatch.h: Comment fix to match the above.
80746         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80747         Now a macro referring to exit_failure, instead of a separate
80748         variable.  Include "exitfail.h" to get it.
80749         * lib/xstrtol.h: Include "exitfail.h".
80750         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80751
80752         * lib/long-options.c (parse_long_options): Use prototype
80753         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80754         for clarity.
80755
80756 2004-01-21  Jim Meyering  <jim@meyering.net>
80757
80758         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80759         so as not to conflict with a different-sized __mktime_internal
80760         function in GNU libc.
80761         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80762         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80763
80764 2004-01-20  Karl Berry  <karl@gnu.org>
80765
80766         * config/config.guess: update from config.
80767
80768         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80769
80770 2004-01-20  Bruno Haible  <bruno@clisp.org>
80771
80772         Safer stack allocation.
80773         * lib/setenv.c: Include allocsa.h.
80774         (alloca): Remove fallback definition.
80775         (freea): Remove macro.
80776         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80777         instead of freea.
80778
80779 2004-01-20  Bruno Haible  <bruno@clisp.org>
80780
80781         * m4/eealloc.m4: New file, from GNU gettext.
80782
80783 2004-01-20  Bruno Haible  <bruno@clisp.org>
80784
80785         * m4/allocsa.m4: New file, from GNU gettext.
80786
80787 2004-01-20  Bruno Haible  <bruno@clisp.org>
80788
80789         * lib/xallocsa.h: New file, from GNU gettext.
80790         * lib/xallocsa.c: New file, from GNU gettext.
80791
80792 2004-01-20  Bruno Haible  <bruno@clisp.org>
80793
80794         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80795
80796 2004-01-20  Bruno Haible  <bruno@clisp.org>
80797
80798         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80799         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80800         specially.
80801
80802 2004-01-20  Bruno Haible  <bruno@clisp.org>
80803
80804         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80805         patch.
80806
80807 2004-01-20  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80810
80811 2004-01-20  Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/eealloc.h: New file.
80814
80815 2004-01-20  Bruno Haible  <bruno@clisp.org>
80816
80817         * lib/binary-io.h: Avoid warnings on Cygwin.
80818
80819 2004-01-20  Bruno Haible  <bruno@clisp.org>
80820
80821         * lib/allocsa.h: New file, from GNU gettext.
80822         * lib/allocsa.c: New file, from GNU gettext.
80823
80824 2004-01-18  Karl Berry  <karl@gnu.org>
80825
80826         * doc/gpl.texi, doc/lgpl.texi: new files.
80827
80828 2004-01-18  Karl Berry  <karl@gnu.org>
80829
80830         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80831         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80832
80833 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80834
80835         Merge from coreutils.
80836
80837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80838         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80839         (gl_DEFAULT_POSIX2_VERSION): Move
80840         the documentation from 'configure' into 'config.hin',
80841         so that 'configure --help' isn't burdened by it and
80842         we don't have to worry about its formatting there.
80843         Reword the documentation so that it's more succinct
80844         and can be run together into a single paragraph.
80845         * m4/same.m4 (gl_SAME): Check for pathconf.
80846
80847 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80848
80849         Merge from coreutils.
80850
80851         * lib/posixver.c: Include posixver.h.
80852
80853         * lib/same.c: Include <stdbool.h>, <limits.h>.
80854         (_POSIX_NAME_MAX): Define if not defined.
80855         (MIN): New macro.
80856         (same_name): If file names are silently truncated, report
80857         that the file names are the same if they are the same after
80858         the silent truncation.
80859
80860         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80861         conversion function.
80862         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80863         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80864         longer needed.
80865
80866 2004-01-15  Jim Meyering  <jim@meyering.net>
80867
80868         Merge from coreutils.
80869
80870         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80871         if no library is required.
80872         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80873         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80874         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80875         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80876         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80877         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80878         value, $ac_cv_search_crypt, if it's "none required".
80879         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80880         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80881         not gl_FUNC_GETLOADAVG.
80882         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80883         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80884
80885 2004-01-15  Jim Meyering  <jim@meyering.net>
80886
80887         Merge from coreutils.
80888
80889         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80890         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80891         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80892
80893         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80894         optional configure-time default.
80895
80896         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80897
80898         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80899
80900 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80901
80902         Merge from coreutils.
80903
80904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80905         value, $ac_cv_search_nanosleep, if it's "none required".
80906
80907 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80908
80909         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80910         with like-named macro in fnmatch.c.
80911         (EXT): Use an internal constant instead.
80912
80913         Merge fnmatch patches from glibc.
80914         * lib/fnmatch.c (mbsinit): Remove define.
80915         Add libc_hidden_ver (__fnmatch, fnmatch).
80916         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80917         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80918
80919 2004-01-14  Karl Berry  <karl@gnu.org>
80920
80921         * config/install-sh: update from automake.
80922
80923 2004-01-13  Karl Berry  <karl@gnu.org>
80924
80925         * config/install-sh: update from automake.
80926
80927 2004-01-09  Karl Berry  <karl@gnu.org>
80928
80929         * config/install-sh: update from automake.
80930
80931 2004-01-05  Karl Berry  <karl@gnu.org>
80932
80933         * config/config.{sub,guess}: update from config.
80934
80935 2003-12-31  Karl Berry  <karl@gnu.org>
80936
80937         * config/depcomp: update from automake.
80938
80939 2003-12-14  Karl Berry  <karl@gnu.org>
80940
80941         * lib/config.charset: update from gettext-runtime.
80942
80943 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80944
80945         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80946         Bug reported by Alfred M. Szmidt.
80947
80948 2003-12-03  Bruno Haible  <bruno@clisp.org>
80949
80950         * m4/gettext.m4: Upgrade from gettext-0.13.
80951         * m4/po.m4: Upgrade from gettext-0.13.
80952         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80953         * m4/intmax.m4: New file, from gettext-0.13.
80954         * m4/printf-posix.m4: New file, from gettext-0.13.
80955
80956 2003-11-29  Karl Berry  <karl@gnu.org>
80957
80958         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80959
80960 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80961             Bruno Haible  <bruno@clisp.org>
80962
80963         * lib/printf-parse.h: Don't include sys/types.h.
80964         (ARG_NONE): New macro.
80965         (char_directive): Change type of *arg_index fields to size_t.
80966         * lib/printf-parse.c: Don't include sys/types.h.
80967         (SSIZE_MAX): Remove macro.
80968         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80969         Remove unnecessary overflow check.
80970         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80971         fields.
80972
80973 2003-11-25  Bruno Haible  <bruno@clisp.org>
80974
80975         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80976
80977 2003-11-25  Bruno Haible  <bruno@clisp.org>
80978
80979         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80980         gt_TYPE_SSIZE_T.
80981
80982 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80983
80984         * modules/alloca: Remove dependency on xalloc.
80985
80986 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80987
80988         * lib/alloca.c: Remove dependency on xalloc module.
80989         (xalloc_die): Remove.
80990         (memory_full) [!defined emacs]: New macro.
80991         [!defined emacs]: Don't include xalloc.h.
80992         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80993         address arithmetic overflows.  Change datatypes a bit to avoid
80994         unnecessary casts.
80995
80996 2003-11-22  Jim Meyering  <jim@meyering.net>
80997
80998         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80999         s/size/size_t/.
81000
81001 2003-11-21  Karl Berry  <karl@gnu.org>
81002
81003         * config/config.{sub,guess}: update from config.
81004
81005 2003-11-18  Karl Berry  <karl@gnu.org>
81006
81007         * config/config.{sub,guess}: update from config.
81008
81009         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81010
81011 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81012
81013         * README: Mention that S+T cannot overflow if S is the size of
81014         an existing object and T is sufficiently small.
81015
81016 2003-11-17  Jim Meyering  <jim@meyering.net>
81017
81018         On systems without utime and without a utimes function capable of
81019         dealing with a NULL struct utimbuf* argument, this utime replacement
81020         could -- in unusual circumstances -- leak a file descriptor.
81021         * lib/utime.c: Include <unistd.h> and <errno.h>.
81022         (utime_null): Be sure to close `fd' and to preserve errno.
81023         Reported by Geoff Collyer via Arnold Robbins.
81024
81025 2003-11-17  Bruno Haible  <bruno@clisp.org>
81026
81027         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81028         (Depends-on): Add xsize.
81029
81030 2003-11-17  Bruno Haible  <bruno@clisp.org>
81031
81032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81033
81034 2003-11-17  Bruno Haible  <bruno@clisp.org>
81035
81036         * lib/vasnprintf.c (alloca): Remove fallback definition.
81037         (freea): Remove definition.
81038         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81039         Reported by Paul Eggert.
81040
81041 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81042             Bruno Haible  <bruno@clisp.org>
81043
81044         Protect against address arithmetic overflow.
81045         * lib/printf-args.h: Include stddef.h.
81046         (arguments): Change type of field 'count' to size_t.
81047         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81048         'unsigned int' where appropriate.
81049         * lib/printf-parse.h: Include sys/types.h.
81050         (char_directive): Change type of *arg_index fields to ssize_t.
81051         (char_directives): Change type of fields 'count', max_*_length to
81052         size_t.
81053         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81054         (SSIZE_MAX): Define fallback value.
81055         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81056         instead of 'int' where appropriate. Check a_allocated, d_allocated
81057         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81058         * lib/vasnprintf.c: Include xsize.h.
81059         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81060         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81061         overflow. Avoid wraparound when converting a width or precision from
81062         decimal to binary.
81063
81064 2003-11-16  Bruno Haible  <bruno@clisp.org>
81065
81066         Update from GNU gettext.
81067         * lib/printf-parse.c: Generalize to it can be compiled for wide
81068         strings.
81069         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81070         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81071         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81072         SNPRINTF): New macros.
81073         Don't include <alloca.h> if the file is used inside libintl.
81074         (local_wcslen): New function, for Solaris 2.5.1.
81075         (VASNPRINTF): Use it instead of wcslen.
81076
81077 2003-11-16  Bruno Haible  <bruno@clisp.org>
81078
81079         * lib/xsize.h (xmax): New function.
81080         (xsum, xsum3, xsum4): Declare as "pure" functions.
81081
81082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81083
81084         * modules/xalloc (Files): Undo latest change, since xalloc.h
81085         no longer needs SIZE_MAX or PTRDIFF_MAX.
81086
81087 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81088
81089         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81090         gl_PTRDIFF_MAX.
81091
81092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81093
81094         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81095         "return", to pacify some unknown compiler.  Problem reported
81096         by Joerg Schilling.
81097
81098 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81099
81100         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81101         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81102         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81103         heuristic is just as accurate as far as we know, and it removes a
81104         dependency on size_max.m4 and ptrdiff_max.m4.
81105
81106 2003-11-11  Bruno Haible  <bruno@clisp.org>
81107
81108         * modules/xsize (Files): Add m4/size_max.m4.
81109         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81110
81111 2003-11-11  Bruno Haible  <bruno@clisp.org>
81112
81113         * m4/size_max.m4: New file.
81114         * m4/ptrdiff_max.m4: New file.
81115         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81116         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81117         (gl_XALLOC): Invoke it.
81118
81119 2003-11-11  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81122         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81123         defined.
81124
81125 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81126
81127         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81128         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81129         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81130         From Bruno Haible.
81131         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81132         not (size_t) -1, since it's defined here.
81133
81134 2003-11-09  Karl Berry  <karl@gnu.org>
81135
81136         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81137
81138 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81139
81140         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81141         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81142         Reject sizes of exactly SIZE_MAX bytes.
81143         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81144         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81145
81146 2003-11-05  Bruno Haible  <bruno@clisp.org>
81147
81148         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81149         SIZE_MAX defined in <limits.h> on Solaris.
81150
81151 2003-11-04  Jim Meyering  <jim@meyering.net>
81152
81153         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81154         variable names, rather than @VAR@.
81155         * modules/poll: Likewise.
81156
81157 2003-11-04  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/xsize: New file.
81160         * modules/linebreak: Depend on xsize.
81161         * MODULES.html.sh (func_all_modules): Add xsize.
81162
81163 2003-11-04  Bruno Haible  <bruno@clisp.org>
81164
81165         * m4/xsize.m4: New file.
81166
81167 2003-11-04  Bruno Haible  <bruno@clisp.org>
81168
81169         * lib/xsize.h: New file.
81170         * lib/linebreak.c: Include xsize.h.
81171         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81172         argument for overflow.
81173         Suggested by Paul Eggert.
81174
81175 2003-11-03  Karl Berry  <karl@gnu.org>
81176
81177         * config/config.{guess,sub}: update from config.
81178
81179 2003-11-03  Jim Meyering  <jim@meyering.net>
81180
81181         * modules/userspec (lib_SOURCES): Add userspec.h.
81182         (Include): Add "userspec.h".
81183         Improve description.
81184
81185 2003-11-03  Jim Meyering  <jim@meyering.net>
81186
81187         * lib/userspec.c: Include "userspec.h".
81188         * lib/userspec.h: New file.
81189
81190 2003-11-03  Bruno Haible  <bruno@clisp.org>
81191
81192         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81193
81194 2003-11-03  Bruno Haible  <bruno@clisp.org>
81195
81196         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81197         available, to avoid (extremely rare) race condition.
81198         Suggested by Paul Eggert.
81199
81200 2003-11-02  Karl Berry  <karl@gnu.org>
81201
81202         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81203
81204 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81205
81206         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81207         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81208         (read_filesystem_list): Set and use me_type_malloced.
81209         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81210         whatever the type happens to be), for brevity and consistency.
81211         Check for size calculation overflow on Alphas running OSF/1.
81212
81213 2003-10-31  Jim Meyering  <jim@meyering.net>
81214
81215         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81216
81217         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81218
81219 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81220             Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81223         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81224
81225 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81228         netbsd*-gnu*.  Suggested by Robert Millan.
81229
81230 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81231
81232         * modules/group-member: Depend on stdbool.
81233
81234 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81235
81236         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81237
81238 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81239
81240         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81241         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81242         after the 'gnu' in these cases.  This fixes some bugs in the
81243         previous change, and is based on suggestions by Robert Millan.
81244
81245 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81246
81247         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81248         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81249         no longer needed.
81250         * lib/quotearg.c (quotearg_n_options): Use it.
81251         * lib/group-member.c: Include <stdbool.h>.
81252         (free_group_info): Arg is now const *; don't free arg.
81253         (get_group_info): Now returns bool and accepts struct group_info *,
81254         rather than returning a malloc'ed struct group_info *.
81255         All uses changed.  Check for overflow in internal size calculation.
81256
81257         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81258         rather than xmalloc/xrealloc.
81259         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81260         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81261         conformance bug: the old code used a pointer after freeing the
81262         storage that it addressed.
81263         * lib/hash.c (hash_initialize): Simplify the code by using
81264         xalloc_oversized rather than doing it by hand.
81265         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81266         the buffer preserved.  Use free and xmalloc instead.
81267         * lib/quotearg.c (quotearg_n_options): Likewise.
81268         Use a simpler test for size overflow.  Don't use xalloc_oversized
81269         because unsigned int might be wider than size_t (!); this suggests
81270         that we should switch from unsigned int to size_t for slot numbers.
81271
81272 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81273
81274         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81275         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81276         NetBSD kernels.  Requested by Richard Stallman.
81277
81278 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81279
81280         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81281         to allocate the returned structure.  Do not allocate a subarray,
81282         as x2nrealloc will do that.
81283         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81284         instead of xnrealloc.
81285         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81286
81287 2003-10-27  Bruno Haible  <bruno@clisp.org>
81288
81289         * lib/stdbool_.h: Better support for BeOS.
81290
81291 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81292
81293         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81294         now uses inline.
81295
81296 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81297
81298         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81299         callers that want to do their own size-overflow checking.  Include
81300         <stdbool.h>, since xalloc_oversized returns bool.
81301         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81302         to use xalloc_oversized.
81303
81304         Add two functions x2realloc, x2nrealloc, for programs that grow
81305         arrays dynamically by doubling their sizes.
81306         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81307         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81308         New functions.
81309
81310         Port to C99 semantics for 'inline' of external functions.
81311         Bug reported by Bruno Haible.
81312         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81313         with the old contents of xnmalloc.
81314         (xnmalloc, xmalloc): Use it.
81315         (xnrealloc_inline): New static inline function,
81316         with the old contents of xnrealloc.
81317         (xnrealloc, xrealloc): Use it.
81318
81319         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81320         that.
81321
81322 2003-10-26  Karl Berry  <karl@gnu.org>
81323
81324         * config/srclist.txt (COPYING.DOC): no longer available from
81325         /gd/gnuorg; don't know where the ultimate source is.
81326
81327 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81328
81329         Fix several address-calculation bugs in the hash modules,
81330         plus some minor code cleanup.
81331
81332         * lib/hash.h: Include <stdbool.h>, for bool.
81333         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81334         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81335         hash_get_n_entries, hash_get_max_bucket_length,
81336         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81337         hash_rehash): Use size_t rather than unsigned.
81338         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81339         hash_get_n_buckets_used, hash_get_n_entries,
81340         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81341         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81342         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81343         Likewise.
81344         (SIZE_MAX): Define if not defined.
81345         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81346         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81347         hash_print):
81348         Use const * when possible.
81349         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81350         (check_tuning): Fix bug: if tuning parameters were very close to
81351         0 or 1, rounding errors could have caused subscript violations.
81352         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81353         (hash_initialize): Add 'fail:' label
81354         to free table and return NULL, and use it to simplify code.
81355         Use calloc rather than clearing the storage ourself.
81356         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81357         buffer size calculations.
81358         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81359         Include <stddef.h>, for size_t.
81360         * lib/hash-pjw.c (hash_pjw): Likewise.
81361         Switch to method described by Bruno Haible.
81362         Include <limits.h>, for CHAR_BIT.
81363         (SIZE_BITS): New macro.
81364
81365 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81366
81367         * m4/getline.m4 (AM_FUNC_GETLINE):
81368         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81369         hosts.  Problem reported by Derek Robert Price in
81370         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81371         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81372         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81373
81374 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81375
81376         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81377         ceiling the allocation at NMAX bytes rather than silently
81378         discarding input bytes before NMAX is reached.  This makes
81379         a difference only if NMAX exceeds SIZE_MAX / 2.
81380
81381         * lib/obstack.c: Merge from glibc.
81382         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81383         Add libc_hidden_def (_obstack_newchunk).
81384         (_obstack_free) [! defined _LIBC]: Remove.
81385         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81386         a clone of the function body.
81387         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81388         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81389
81390         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81391         glibc.
81392         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81393         arg to memcpy.
81394
81395         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81396         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81397         Don't use lvalue casts, as GCC plans to remove support for them
81398         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81399         was also present in the non-GCC version, indicating that this
81400         code had always been buggy and had never been widely used.
81401         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81402         Use the fast variant of each macro, rather than copying the
81403         definiens of the fast variant; that way, we'll be more likely to
81404         catch future bugs in the fast variants.
81405
81406 2003-10-20  Bruno Haible  <bruno@clisp.org>
81407
81408         * modules/wait-process: New file.
81409         * MODULES.html.sh (func_all_modules): Add wait-process.
81410
81411 2003-10-20  Bruno Haible  <bruno@clisp.org>
81412
81413         * m4/wait-process.m4: New file.
81414
81415 2003-10-20  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/wait-process.h: New file, from GNU gettext.
81418         * lib/wait-process.c: New file, from GNU gettext.
81419
81420 2003-10-19  Jim Meyering  <jim@meyering.net>
81421
81422         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81423         HPUX 10.20.
81424
81425 2003-10-18  Karl Berry  <karl@gnu.org>
81426
81427         * config/config.guess: update from config.
81428
81429 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81430
81431         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81432         (getgroups): First arg is int, not size_t.
81433         Don't let 'free' mangle errno.
81434
81435 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81436
81437         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81438
81439 2003-10-16  Karl Berry  <karl@gnu.org>
81440
81441         * config/config.{guess,sub}: update from config.
81442
81443 2003-10-16  Jim Meyering  <jim@meyering.net>
81444
81445         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81446         memcpy.
81447
81448 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81449
81450         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81451         (SIZE_MAX): Remove.
81452         (new_exclude, add_exclude_file): Initial size no longer needs to
81453         be a power of 2.
81454         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81455         our own address arithmetic overflow checking.
81456
81457         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81458         (fnmatch): Do not alloca more than 2000 wide characters;
81459         instead, use malloc for large buffers.
81460         Check for address arithmetic overflow, and return -1
81461         with errno set to ENOMEM in that case.
81462         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81463         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81464         instead, return -1.  Check for address arithmetic overflow.
81465
81466 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81467
81468         Handle invalid suffixes and overflow independently, so that
81469         callers can treat them independently as needed.  Fix some bugs in
81470         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81471         suffix for a human-readable blocksize.  The major caller-visible
81472         change is the addition of a new
81473         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81474         that both overflow and suffix chars were found.
81475
81476         * lib/human.c (humblock): Don't check separately for invalid suffix
81477         char; that is xstrtoumax's job (now that its bug is fixed).
81478         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81479         INTMAX_MAX]: New macros.
81480         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81481         TYPE_MAXIMUM): New macros.
81482         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81483         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81484         if overflow occurs, as it's what __strtol does and it's more useful
81485         in practice.
81486         (__xstrtol): If __strtol reports some error other than ERANGE,
81487         reflect it to the caller as LONGINT_INVALID.  If it reports
81488         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81489         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81490         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81491         value.
81492         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81493         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81494         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81495         [defined UINTMAX_MAX]: New macros.
81496
81497 2003-10-14  Bruno Haible  <bruno@clisp.org>
81498
81499         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81500
81501 2003-10-14  Bruno Haible  <bruno@clisp.org>
81502
81503         * m4/sig_atomic_t: New file, from GNU gettext.
81504         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81505
81506 2003-10-14  Bruno Haible  <bruno@clisp.org>
81507
81508         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81509         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81510         Also use volatile where needed.
81511
81512 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81513
81514         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81515         Change maintainer from Bruno Haible to 'all'.
81516
81517 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81518
81519         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81520
81521 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81522
81523         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81524         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81525         and define in terms of the other primitives.
81526         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81527         (SIZE_MAX): Define if not already defined.
81528         (array_size_overflow): New function.
81529         (xalloc_die): Abort instead of exiting if 'error' returns.
81530         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81531         (xmalloc, xrealloc): Use them.
81532         (xcalloc): Check for address arithmetic overflow.
81533         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81534         a bit faster than strcpy.
81535
81536 2003-10-10  Simon Josefsson  <jas@extundo.com>
81537
81538         * modules/argp (Depends-on): Add restrict and strcase.
81539
81540 2003-10-10  Simon Josefsson  <jas@extundo.com>
81541
81542         * m4/argp.m4: Add AC_C_INLINE.
81543
81544 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81545
81546         Merge getpass from libc, plus a few fixes.
81547
81548         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81549         Include <stdbool.h>.
81550         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81551         __fsetlocking to empty.
81552         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81553         do include <bits/libc-lock.h>.
81554         Do not include <fcntl.h>; not needed.
81555         [_LIBC]: Include <wchar.h>.
81556         (NOTCANCEL_MODE): New macro.
81557         (flockfile, funlockfile) [_LIBC]: New macros.
81558         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81559         [!_LIBC]: New macros.
81560         (call_fclose): New function.
81561         (getpass): Use it.  Save tty stream separately; this simplifies the
81562         code and makes it more reliable if stdin happens to equal stdout.
81563         Invoke __fsetlocking on tty.
81564         Handle thread cancellation if needed.
81565         Namespace cleanup (use __tcgetattr, __getline).
81566         Use bool for Booleans.
81567         [USE_IN_LIBIO]: Handle wide streams.
81568         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81569         stream might go where.
81570
81571         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81572         doesn't have to include <stdio.h> before us.
81573         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81574         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81575         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81576         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81577         if not declared, so that we can use getpass.c code from libc without
81578         rewriting it.
81579         (flockfile, ftrylockfile, funlockfile): New macros.
81580
81581 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81582
81583         * modules/getpass: Depend on stdbool.
81584
81585 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81586
81587         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81588
81589 2003-10-07  Karl Berry  <karl@gnu.org>
81590
81591         * config/config.{guess,sub}: update from config.
81592
81593 2003-10-06  Jim Meyering  <jim@meyering.net>
81594             Bruno Haible  <bruno@clisp.org>
81595
81596         This lets translators provide better translations for the
81597         "Written by ..." part of --version output.
81598         * lib/version-etc.h: Include stdarg.h.
81599         (version_etc_copyright): Declare as readonly.
81600         (version_etc): Make this function variadic with a NULL-terminated list
81601         of author name strings.
81602         (version_etc_va): New declaration.
81603         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81604         (version_etc_copyright): Declare as readonly.
81605         (version_etc_va): New function. Provide a different translatable string
81606         for each possible number of authors < 10. Abbreviate when there are 10
81607         authors or more.
81608         (version_etc): Make this function variadic. Call version_etc_va.
81609         Suggestion from Gary V. Vaughan.
81610
81611         * lib/long-options.h (parse_long_options): Change prototype: the
81612         authors string is moved to the end and becomes variadic.
81613         * lib/long-options.c: Include stdarg.h.
81614         (parse_long_options): Make this function variadic, too.
81615         Call version_etc_va, not version_etc.
81616
81617 2003-10-06  Bruno Haible  <bruno@clisp.org>
81618
81619         * modules/version-etc-2: Remove file.
81620         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81621
81622 2003-10-06  Bruno Haible  <bruno@clisp.org>
81623
81624         * modules/fatal-signal: New file.
81625         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81626
81627 2003-10-06  Bruno Haible  <bruno@clisp.org>
81628
81629         * m4/fatal-signal.m4: New file.
81630         * m4/signalblocking.m4: New file, from GNU gettext.
81631
81632 2003-10-06  Bruno Haible  <bruno@clisp.org>
81633
81634         * lib/version-etc-2.h: Remove file.
81635         * lib/version-etc-2.c: Remove file.
81636
81637 2003-10-06  Bruno Haible  <bruno@clisp.org>
81638
81639         * lib/fatal-signal.h: New file, from GNU gettext.
81640         * lib/fatal-signal.c: New file, from GNU gettext.
81641
81642 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81643
81644         * README: Rework advice for preventing empty .o files.
81645         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81646         not <sys/types.h>.
81647
81648 2003-10-04  Karl Berry  <karl@gnu.org>
81649
81650         * lib/argp*: update from libc.
81651
81652 2003-10-04  Karl Berry  <karl@gnu.org>
81653
81654         * config/config.{guess,sub}: update from config.
81655
81656 2003-10-02  Bruno Haible  <bruno@clisp.org>
81657
81658         * modules/lchown (Include): Add lchown.h.
81659         * modules/time_r (Include): Use "..." syntax.
81660         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81661
81662 2003-10-01  Simon Josefsson  <jas@extundo.com>
81663
81664         * MODULES.html.sh (func_all_modules): Move gethostname from section
81665         'based on' to section 'lacking' POSIX:2001.
81666
81667 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81668
81669         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81670         to output mode on the same stream.
81671
81672 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81673
81674         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81675         Fix arg typo in previous patch.
81676
81677 2003-09-28  Jim Meyering  <jim@meyering.net>
81678
81679         * lib/error.c: Correct cpp indentation.
81680
81681 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81682
81683         * modules/free: New file.
81684
81685 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81686
81687         * m4/free.m4: New file.
81688
81689 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81690
81691         * lib/minmax.h (MIN, MAX)
81692         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81693         Omit the special code that used __typeof__, since we worry that
81694         it could be more trouble than it's worth.  See:
81695         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81696         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81697
81698         * lib/free.c: New file.
81699
81700 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81701
81702         Trivial fixes to Makefile.am parts of module listings.
81703         * modules/strstr: Append strstr.h to lib_SOURCES.
81704         * modules/strcase: Likewise, for strcase.h.
81705
81706 2003-09-27  Karl Berry  <karl@gnu.org>
81707
81708         * config/mkinstalldirs: update from automake.
81709
81710 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81711
81712         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81713         (error_tail): Do not loop, reallocating temporary buffer, since
81714         the output cannot contain more wide characters than the input
81715         contains bytes, the size must be big enough already.  This avoids
81716         one potential size overflow calculation.  Check for size overflow
81717         when calculating temporary buffer size.  Free temporary buffer
81718         when done, if it was allocated with malloc; this plugs a memory
81719         leak.  Remove casts from void * to pointers, that are no longer
81720         needed now that we're assuming C89 or better.
81721
81722         Merge error changes from glibc.
81723
81724         * lib/error.c, error.h: Update copyright notice header to match glibc.
81725         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81726         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81727         Disable cancellation while printing error.
81728         * lib/error.h: Prepend __ to parameter names.
81729
81730 2003-09-26  Jim Meyering  <jim@meyering.net>
81731
81732         * lib/error.c (error_tail): Move some declarations
81733         into inner scope where the local variables are used.
81734
81735 2003-09-26  Bruno Haible  <bruno@clisp.org>
81736
81737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81738         stpncpy().
81739         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81740
81741 2003-09-26  Bruno Haible  <bruno@clisp.org>
81742
81743         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81744         (stpncpy): Define as alias for gnu_stpncpy.
81745         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81746
81747 2003-09-25  Simon Josefsson  <jas@extundo.com>
81748
81749         * lib/xgetdomainname.h: New file.
81750         * lib/xgetdomainname.c: New file.
81751
81752 2003-09-25  Simon Josefsson  <jas@extundo.com>
81753             Bruno Haible  <bruno@clisp.org>
81754
81755         * modules/getdomainname: New file.
81756         * modules/xgetdomainname: New file.
81757         * MODULES.html.sh (func_all_modules): Add getdomainname,
81758         xgetdomainname.
81759
81760 2003-09-25  Simon Josefsson  <jas@extundo.com>
81761             Bruno Haible  <bruno@clisp.org>
81762
81763         * m4/getdomainname.m4: New file.
81764
81765 2003-09-25  Simon Josefsson  <jas@extundo.com>
81766             Bruno Haible  <bruno@clisp.org>
81767
81768         * lib/getdomainname.h: New file.
81769         * lib/getdomainname.c: New file.
81770
81771 2003-09-25  Karl Berry  <karl@gnu.org>
81772
81773         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81774
81775 2003-09-25  Karl Berry  <karl@gnu.org>
81776
81777         * config/install-sh: update from automake.
81778
81779 2003-09-25  Bruno Haible  <bruno@clisp.org>
81780
81781         * modules/version-etc-2: New file, from modules/version-etc with
81782         modifications.
81783         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81784
81785 2003-09-25  Bruno Haible  <bruno@clisp.org>
81786
81787         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81788         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81789
81790 2003-09-24  Simon Josefsson  <jas@extundo.com>
81791
81792         * modules/xgethostname: Add xgethostname.h.
81793
81794 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81795
81796         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81797         the buffer associated with the argument.  Bug reported by
81798         Simon Josefsson.
81799
81800 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81801
81802         * README: Document assumptions that 'int' is at least 32 bits
81803         wide, that integer arithmetic is 2's complement without overflow,
81804         that there are no holes in integer values, that adding sizes of
81805         two nonoverlapping objects can't overflow, and that all-bits-zero
81806         yields scalar zero.  Fix spelling and capitalization typos.
81807
81808 2003-09-19  Karl Berry  <karl@gnu.org>
81809
81810         * lib/argp.h: update from libc.
81811
81812 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81813
81814         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81815         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81816         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81817
81818 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81819
81820         * gnulib-tool: Use "test -h", not "test -L", for portability
81821         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81822         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81823         (sed_extract_prog): Issue s commands one-by-one, rather than
81824         using \| in one s command.
81825
81826 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81827
81828         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81829         input error, instead of returning NULL the next time we are called
81830         (and therefore losing track of errno).
81831
81832 2003-09-16  Bruno Haible  <bruno@clisp.org>
81833
81834         * gnulib-tool (func_create_testdir): Warn about duplicated
81835         dependencies.
81836
81837 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81838
81839         * modules/argmatch, modules/fatal, modules/obstack,
81840         modules/xalloc, modules/xgethostname: Sort dependencies by
81841         importance, not alphabetically.
81842
81843 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81844
81845         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81846         fails, so that the caller gets the proper errno.
81847
81848         * lib/readutmp.c (read_utmp): Likewise.
81849         Check for fstat error.  Close stream and free storage
81850         when failing.
81851
81852 2003-09-14  Karl Berry  <karl@gnu.org>
81853
81854         * config/srclist.txt (strdup.c): disable for c89 changes.
81855
81856 2003-09-14  Jim Meyering  <jim@meyering.net>
81857
81858         * lib/getloadavg.c: Correct cpp indentation.
81859         * lib/strdup.c: Likewise.
81860         * lib/vasnprintf.c: Likewise.
81861
81862 2003-09-14  Bruno Haible  <bruno@clisp.org>
81863
81864         * modules/fwriteerror: New file.
81865         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81866
81867 2003-09-14  Bruno Haible  <bruno@clisp.org>
81868
81869         * lib/fwriteerror.h: New file.
81870         * lib/fwriteerror.c: New file.
81871
81872 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81873
81874         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81875         modules/xgethostname, modules/xalloc: Depend on exit.
81876
81877 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81878
81879         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81880
81881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81882         and AC_MINIX, too, so that their extensions are available.
81883
81884         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81885         This macro has been superseded by gl_BACKUPFILE.
81886
81887         More patches to assume C89 or better.
81888
81889         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81890
81891         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81892         unconditionally.
81893         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81894         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81895         Include <string.h>, <stdlib.h> unconditionally.
81896         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81897         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81898         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81899         headers or for string.h.
81900         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81901         or strtoul.
81902
81903         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81904         headers.
81905         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81906         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81907         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81908         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81909         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81911         memcpy, memset.
81912         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81913         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81914         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81915         strtol.
81916         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81917         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81919         strtoul.
81920
81921 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81922
81923         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81924         * lib/obstack.c [!defined _LIBC]: Likewise.
81925         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81926         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81927         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81928
81929         More changes to assume C89 or better.
81930
81931         * lib/error.c (error_tail): Assume vprintf.
81932
81933         * lib/argmatch.c (getenv): Remove decl.
81934         * lib/progreloc.c (get_full_program_name): Define via prototype.
81935         * lib/setenv.c (clearenv): Likewise.
81936         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81937         needed.
81938         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81939         (malloc, memcpy): Remove decls.
81940         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81941         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81942         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81943         (memcpy): Remove macro.
81944         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81945         (__P): Remove.  All uses removed.
81946         (PTR): Remove.  All uses changed to void *.
81947         (CHAR_BIT, NULL): Remove.
81948         (spaces, zeros, memset_space, memset_zero)
81949         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81950         Remove.
81951         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81952         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81953         Define with prototype.
81954         Remove now-unnecessary prototype decl.
81955         (extra_args_spec): Assume ANSI C.  All uses changed.
81956         (extra_args_spec_iso): Remove.
81957         (my_strftime, emacs_strftimeu): Define via prototype.
81958         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81959         unconditionally.
81960         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81961         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81962         (strtoul, strtol): Remove decls.
81963         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81964         LONG_MAX): Remove.
81965         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81966         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81967         (LOCALE_PARAM_PROTO): New macro.
81968         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81969         (INTERNAL (strtol), strtol): Define with a prototype.
81970         (PARAMS): Remove.  All uses removed.
81971         * lib/tempname.c: Include <string.h> unconditionally.
81972         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81973         * lib/xgethostname.c (main): Define with a prototype.
81974         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81975         Include <stdlib.h> unconditionally.
81976         (calloc, malloc, realloc, free): Remove decls.
81977         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81978         Include <stdlib.h> unconditionally.  Sort include file names.
81979         (strtod): Remove.
81980         (xstrtod): Define with a prototype.
81981         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81982         (strtol, strtoul): Remove decls.
81983
81984 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81985
81986         More patches to assume C89 or better.
81987         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81988         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81989         string.h, memchr, STDC_HEADERS.
81990
81991 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81992
81993         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81994         Include <stdlib.h>, <string.h> unconditionally.
81995         Remove now-unnecessary cast to char *.
81996         * lib/strnlen.c: Include <string.h> unconditionally.
81997         * lib/yesno.c (yesno): Define with a prototype.
81998
81999 2003-09-11  Bruno Haible  <bruno@clisp.org>
82000
82001         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82002
82003 2003-09-10  Jim Meyering  <jim@meyering.net>
82004
82005         * lib/error.c: Correct indentation of cpp directives.
82006
82007 2003-09-10  Bruno Haible  <bruno@clisp.org>
82008
82009         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82010         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82011         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82012         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82013         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82014         <stdlib.h> and <string.h> checks.
82015         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82016         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82017
82018 2003-09-10  Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/strcspn.c: Include <string.h> unconditionally.
82021         * lib/strpbrk.c: Include <string.h> unconditionally.
82022         * lib/strstr.c: Include <string.h> unconditionally.
82023         * lib/unicodeio.c: Include <string.h> unconditionally.
82024         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82025         * lib/unsetenv.c: Likewise.
82026         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82027         * lib/yesno.c: Include <stdlib.h> unconditionally.
82028         (rpmatch): Add prototype.
82029
82030 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82031
82032         More patches to assume C89 or better.
82033         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82034         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82035         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82036         or for string.h.
82037         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82038         stdlib.h.
82039         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82040         C headers.
82041         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82042         string.h.
82043         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82044         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82045         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82046         or for string.h.
82047         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82048         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82049         C headers.
82050         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82051         memcpy.
82052         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82053         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82054         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82055         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82056         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82057         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82058         string.h, free.
82059         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82060         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82061         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82062         C headers, or for string.h.
82063         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82064         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82065         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82066         headers, memory.h, stdlib.h, string.h, strings.h.
82067         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82068         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82069         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82070         strchr.
82071         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82072         headers, memory.h, string.h.
82073         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82074         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82075         free.
82076         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82077         headers.
82078         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82079         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82080         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82081         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82082         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82083
82084 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82085
82086         More K&R removal.
82087
82088         * lib/acosl.c (main): Use a prototype.
82089         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82090         tanl.c: Likewise.
82091
82092         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82093
82094         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82095         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82096         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82097         with a prototype.
82098         * lib/getopt.c (const): Remove macro.
82099         Include <string.h> unconditionally.
82100         (my_index): Remove; all uses changed to strchr.
82101         (strlen): Remove decl.
82102         (exchange): Remove forward decl; no longer needed.
82103         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82104         Define with prototype.
82105         * lib/getopt1.c (const): Remove macro.
82106         (getopt_long, getopt_long_only, main): Define with prototype.
82107
82108         * lib/getugroups.c: Include <string.h> unconditionally.
82109
82110         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82111         (getusershell, setusershell, endusershell, readname, main):
82112         Define with prototypes.
82113
82114         * lib/group-member.c: Include group-member.h first.
82115         Include <stdlib.h> unconditionally.
82116
82117         * lib/hard-locale.c: Include hard-locale.h first.
82118         Include <stdlib.h>, <string.h> unconditionally.
82119
82120         * lib/hash.c (free, malloc): Remove decls.
82121         Include <stdlib.h> unconditionally.
82122
82123         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82124         (getenv): Do not declare.
82125
82126         * lib/idcache.c: Include <string.h> unconditionally.
82127
82128         * lib/long-options.c: Include long-options.h first, to test interface.
82129         Include <stdlib.h> unconditionally.
82130
82131         * lib/makepath.c: Include makepath.h first, to test interface.
82132         Include <stdlib.h> and <string.h> unconditionally.
82133
82134         * lib/linebuffer.c: Include <stdlib.h>.
82135         (free): Remove decl.
82136
82137         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82138         stddef.h. rpl_malloc returns void *, not char *.
82139         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82140         prototype.
82141
82142         * lib/md5.h: Include <limits.h> unconditionally.
82143         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82144         (__P): Remove; all uses removed.
82145         * lib/md5.c: Include "md5.h" first.
82146         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82147         md5_buffer, md5_process_bytes, md5_process_block):
82148         Define with prototypes.
82149         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82150         * lib/sha.c: Include "sha.h" first.
82151         Include <stdlib.h>, <string.h> unconditionally.
82152
82153         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82154         * lib/memcmp.c (__ptr_t): Likewise.
82155         * lib/memrchr.c (__ptr_t): Likewise.
82156         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82157         Include <string.h> unconditionally.
82158         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82159         * lib/memchr.c: Include <stdlib.h> unconditionally.
82160         * lib/memchr.c (LONG_MAX): Remove.
82161         * lib/memrchr.c (LONG_MAX): Likewise.
82162         * lib/memchr.c (__memchr): Define via a prototype.
82163         * lib/memrchr.c (__memrchr): Likewise.
82164         * lib/memcmp.c (__P): Remove, and remove all uses.
82165         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82166         Remove forward decls; no longer needed.
82167         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82168         Use types required by C89 in prototype.
82169
82170         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82171         * lib/savedir.c: Likewise.
82172         * lib/mkdir.c (free): Remove decl.
82173         * lib/rmdir.c (rmdir): Define with a prototype.
82174         * lib/savedir.c: Include savedir.h first, to test interface.
82175
82176         * lib/mktime.c (STDC_HEADERS): Remove.
82177         Include <stdlib.h>, <string.h> unconditionally.
82178
82179         * lib/modechange.c: Include <stdlib.h> unconditionally.
82180         (malloc): Remove decl.
82181
82182         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82183         (free): Remove decl.
82184
82185         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82186         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82187         (This type really should be intptr_t, but that's a C99ism.)
82188         (_obstack_memcpy): Remove: all uses changed to memcpy.
82189         Include <string.h> unconditionally.
82190         (struct obstack): Assume __STDC__ for types of members
82191         chunkfun, freefun, extra_arg.
82192         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82193         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82194         obstack_begin, obstack_specify_allocation,
82195         obstack_specify_allocation_with_arg, obstack_chunkfun,
82196         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82197         Remove unprototyped decls and the macros that use them.
82198         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82199         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82200         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82201         (defined __STDC__ && __STDC__)]:
82202         Remove nonprototyped code.
82203         Include <stdlib.h> unconditionally.
82204         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82205         _obstack_allocated_p, _obstack_free, obstack_free,
82206         _obstack_memory_used, print_and_abort):
82207         Define using prototypes.
82208         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82209         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82210         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82211         obstack_next_free, obstack_object_size, obstack_room) [0]:
82212         Remove unused, unprototyped code.
82213
82214         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82215
82216         * lib/physmem.c (physmem_total, physmem_available, main): Define
82217         with prototypes.
82218
82219         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82220         (main): Define with a prototype.
82221
82222         * lib/posixver.c (getenv): Remove decl.
82223
82224         * lib/putenv.c (malloc): Returns void *, not char *.
82225         Include <string.h> unconditionally.
82226         (strchr, memcpy, NULL): Do not define.
82227
82228         * lib/readtokens.c: Include readtokens.h first, to test interface.
82229         Include <stdlib.h>, <string.h> unconditionally.
82230         (init_tokenbuffer): Define with a prototype.
82231
82232         * lib/regex.c (PARAMS): Remove.  All uses removed.
82233         All uses of _RE_ARGS removed, too.
82234         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82235         unconditionally.
82236         (bzero): Assume memset exists.
82237         (memcmp, memcpy, NULL): Remove.
82238         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82239         char, or assignments to local vars of type signed char.
82240         (init_syntax_once, PREFIX(extract_number_and_incr),
82241         PREFIX(print_partial_compiled_pattern),
82242         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82243         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82244         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82245         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82246         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82247         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82248         wcs_compile_range, byte_compile_range, truncate_wchar,
82249         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82250         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82251         count_mbs_length, wcs_re_match_2_internal,
82252         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82253         PREFIX(alt_match_null_string_p),
82254         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82255         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82256         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82257         now-unnecessary declaration, if any.
82258         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82259         regcomp, regexec):
82260         Remove now-unnecessary casts among pointer types.
82261         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82262
82263         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82264         (free): Remove decl.
82265
82266         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82267
82268         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82269         (free): Remove decl.
82270
82271         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82272         * lib/xgetcwd.c: Likewise.
82273
82274         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82275         (free): Remove decl.
82276
82277         * lib/strchrnul.c (strchrnul): Define with a prototype.
82278         Fix bug: c_in was not converted to char before searching.
82279
82280         The following changes are not K&R related:
82281
82282         * lib/group-member.h: Include <sys/types.h>, so that this file is
82283         self-contained.
82284         * lib/makepath.h: Likewise.
82285
82286         * lib/getusershell.c (readname, default_index, line_size, readname):
82287         Use size_t, not int, for sizes.
82288         (readname): If the size overflows, report an error instead of
82289         looping forever.
82290
82291 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82292
82293         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82294         libc.
82295
82296 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82297
82298         * README: New section: portability guidelines.
82299
82300 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82301
82302         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82303         C89 spec.
82304
82305 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82306
82307         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82308
82309 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82310
82311         Assume C89 or better; remove K&R cruft.
82312         A few of these changes were first proposed by Derek Robert Price
82313         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82314
82315         * lib/addext.c: Include <string.h> unconditionally.
82316         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82317         Don't declare getenv or malloc.
82318
82319         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82320         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82321         (NULL): Remove.
82322         (find_stack_direction, alloca): Use prototypes.
82323
82324         * lib/atexit.c (atexit): Define using a prototype.
82325
82326         * lib/basename.c, dirname.c, stripslash.c:
82327         Include <string.h> unconditionally.
82328
82329         * lib/bcopy.c: Include <stddef.h>.
82330         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82331
82332         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82333
82334         * lib/error.h (error, error_at_line, error_print_progname)
82335         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82336         * lib/error.c: Include error.h first, to check interface.
82337         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82338         (VA_START): Remove; all uses changeed to va_start.
82339         (exit, strerror): Remove decls.
82340         (error_print_progname): Prototype uncondionally.
82341         Don't include <errno.h>; no longer needed.
82342         (private_strerror): Remove.
82343         (error_tail): Always define.
82344         (error, error_at_line): Assume C89 or better; always use prototypes.
82345         * lib/fatal.c: Include "fatal.h" first, to test interface.
82346         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82347         (VA_START): Remove; all uses changed to va_start.
82348         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82349         this case.
82350         (exit): Remove decl.
82351         (fatal): Prototype unconditionally.  Assume va_start works.
82352         Abort at end, to pacify gcc.
82353
82354         * lib/euidaccess.c (main): Define with a prototype.
82355
82356         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82357
82358         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82359
82360         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82361         prototypes.
82362         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82363         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82364         (getenv): Remove decl.
82365         (fnmatch): Define using a prototype.
82366         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82367         (FCT): Define using a prototype.
82368
82369         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82370
82371         * lib/gethostname.c: Include <stddef.h>.
82372         (gethostname): Define with prototype.  Length is size_t, not int.
82373
82374 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82375
82376         Assume C89 or better; remove K&R cruft.
82377         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82378         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82379         string.h, getenv, malloc.
82380         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82381         headers.
82382         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82383         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82384         do not check for strerror.
82385         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82386         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82387         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82388         do not check for doprnt or vprintf.
82389         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82390         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82391
82392 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82395         getversion.c should have been removed then, but was accidentally
82396         preserved.
82397
82398         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82399         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82400
82401 2003-09-08  Karl Berry  <karl@gnu.org>
82402
82403         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82404                 config, forget about prep.
82405
82406         * config/depcomp, missing: update from automake.
82407
82408 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82409
82410         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82412
82413 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82416         copy_tm_result.  Bug reported by Simon Josefsson in
82417         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82418
82419 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82420
82421         * m4/time_r.m4: New file.
82422         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82423         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82424         is. Check for timegm declaration.
82425         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82426         Do not check for gmtime_r.
82427         Replace mktime if __mktime_internal does not exist and if mktime
82428         hasn't been replaced already.
82429
82430 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82431
82432         * lib/time_r.c, lib/time_r.h: New files.
82433
82434         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82435         __localtime_r.
82436         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82437         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82438
82439         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82440         __gmtime_r.
82441         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82442         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82443         Include <time_r.h>.
82444
82445         * lib/timegm.c: Switch to glibc implementation, with the following
82446         changes:
82447         [defined HAVE_CONFIG_H]: Include <config.h>.
82448         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82449         (__mktime_internal) [!defined _LIBC]: New decl.
82450         (__gmtime_r) [!defined _LIBC]: New macro and function.
82451         (timegm): Use a prototype, since gnulib assumes C89.
82452         Do not bother declaring tmp to be const, as it's not really usefu.
82453         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82454         (timegm): Declare only if HAVE_DECL_TIMEGM.
82455
82456 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82457
82458         * MODULES.html.sh (func_all_modules): Add time_r.
82459         * modules/time_r: New file.
82460         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82461         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82462
82463 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82466         Bug reported by Lute Kamstra in
82467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82468
82469         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82470         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82471         course with correspondingly smaller numbers for tomorrow and
82472         yesterday.  From Tadayoshi Funaba.  Originally installed into
82473         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82474         coreutils merge?).
82475
82476 2003-08-31  Simon Josefsson  <jas@extundo.com>
82477
82478         * modules/timegm: New file.
82479         * MODULES.html.sh (func_all_modules): Add timegm.
82480
82481 2003-08-31  Simon Josefsson  <jas@extundo.com>
82482
82483         * m4/timegm.m4: New file.
82484
82485 2003-08-31  Simon Josefsson  <jas@extundo.com>
82486
82487         * lib/timegm.h: New file.
82488         * lib/timegm.c: New file.  Based on
82489         wget-1.8.2/src/http.c:mktime_from_utc.
82490
82491 2003-08-31  Karl Berry  <karl@gnu.org>
82492
82493         * lib/argp.h: update from libc.
82494
82495 2003-08-28  Bruno Haible  <bruno@clisp.org>
82496
82497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82498         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82499         followed by '#define fnmatch fnmatch_posix' gives an error.
82500
82501 2003-08-28  Bruno Haible  <bruno@clisp.org>
82502
82503         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82504         warning on QNX, which defines O_BINARY to 000000.
82505
82506 2003-08-27  Jim Meyering  <jim@meyering.net>
82507
82508         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82509         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82510         would fail after 32.  Reported by Danny Levinson.  Details here:
82511         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82512
82513 2003-08-24  Bruno Haible  <bruno@clisp.org>
82514
82515         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82516         MSVC7 <stdio.h> is included later.
82517
82518 2003-08-22  Simon Josefsson  <jas@extundo.com>
82519
82520         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82521
82522 2003-08-20  Karl Berry  <karl@gnu.org>
82523
82524         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82525
82526 2003-08-20  Bruno Haible  <bruno@clisp.org>
82527
82528         * modules/progname: New file.
82529         * MODULES.html.sh (func_all_modules): Add progname.
82530
82531 2003-08-20  Bruno Haible  <bruno@clisp.org>
82532
82533         * lib/progname.h: New file, from GNU gettext.
82534         * lib/progname.c: New file, from GNU gettext.
82535         * lib/progreloc.c: New file, from GNU gettext.
82536
82537 2003-08-19  Jim Meyering  <jim@meyering.net>
82538
82539         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82540         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82541
82542 2003-08-19  Bruno Haible  <bruno@clisp.org>
82543
82544         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82545         more.
82546
82547 2003-08-19  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/xstrdup.c: Assume <string.h> exists.
82550
82551 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82552
82553         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82554         in makefile rules.
82555
82556 2003-08-18  Jim Meyering  <jim@meyering.net>
82557
82558         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82559         * m4/lib-ld.m4: Likewise.
82560
82561 2003-08-18  Jim Meyering  <jim@meyering.net>
82562
82563         * lib/setenv.h: Indent nested cpp directive.
82564         * lib/vasnprintf.c: Remove trailing blanks.
82565
82566 2003-08-17  Simon Josefsson  <jas@extundo.com>
82567
82568         * modules/xstrndup: New file.
82569         * MODULES.html.sh (func_all_modules): Add xstrndup.
82570
82571 2003-08-17  Simon Josefsson  <jas@extundo.com>
82572
82573         * modules/argp: Fix autoconf macro name. Add more dependencies.
82574
82575 2003-08-17  Simon Josefsson  <jas@extundo.com>
82576
82577         * m4/xstrndup.m4: New file.
82578
82579 2003-08-17  Simon Josefsson  <jas@extundo.com>
82580
82581         * m4/argp.m4: New file.
82582
82583 2003-08-17  Simon Josefsson  <jas@extundo.com>
82584             Bruno Haible  <bruno@clisp.org>
82585
82586         * lib/xstrndup.h: New file.
82587         * lib/xstrndup.c: New file.
82588
82589 2003-08-17  Bruno Haible  <bruno@clisp.org>
82590
82591         * modules/strndup (Files, Include): Add lib/strndup.h.
82592
82593 2003-08-17  Bruno Haible  <bruno@clisp.org>
82594
82595         * modules/euidaccess (Files): Add lib/euidaccess.h.
82596
82597 2003-08-17  Bruno Haible  <bruno@clisp.org>
82598
82599         * lib/strndup.h: New file.
82600
82601 2003-08-17  Bruno Haible  <bruno@clisp.org>
82602
82603         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82604         like AC_GNU_SOURCE.
82605         * modules/extensions (configure.ac): Comment out the invocation of
82606         gl_USE_SYSTEM_EXTENSIONS.
82607
82608 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82609
82610         Merges from coreutils, etc.
82611         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82612         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82613         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82614         fixing a typo.
82615         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82616         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82617
82618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82619
82620         Document merge from coreutils.
82621         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82622         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82623         * modules/utime: Add m4/utimes-null.m4.
82624
82625 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82626
82627         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82628         space, undoing this 2003-08-12 change:
82629         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82630
82631 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82632
82633         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82634         strtoul.c from libc, undoing this 2003-08-12 change:
82635         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82636
82637 2003-08-16  Jim Meyering  <jim@meyering.net>
82638
82639         Merges from coreutils.
82640         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82641         prefix.  Adjust cache variables similarly.  Create 500 rather than
82642         just 300 files, to exercise bug on Darwin6.5, too.
82643         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82644         $missing_dir.
82645         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82646         AM_SYS_POSIX_TERMIOS.
82647         Reported by mkc@mathdogs.com.
82648         Also change use of $am_cv_sys_posix_termios
82649         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82650         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82651         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82652         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82653         in /proc/mounts until it finds one with matching device number.  This
82654         is unnecessary when the FILE argument *is* a mount point.  No stat call
82655         is necessary in that case.  So, disable the statvfs-testing code on
82656         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82657         as RedHat bug# 84846.
82658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82659         to 1MB, so as not to render systems with no stack size limit (e.g.,
82660         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82661         Include <unistd.h>.  On some systems,
82662         it is required for the definition of _SC_PAGESIZE.
82663
82664 2003-08-16  Jim Meyering  <jim@meyering.net>
82665
82666         Merge from coreutils.
82667         * lib/xstrtoimax.c: #else #if -> #elif.
82668         * lib/xstrtoumax.c: Likewise.
82669
82670 2003-08-16  Jim Meyering  <jim@meyering.net>
82671
82672         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82673         * m4/utimes.m4: Removed.
82674         * m4/utimes-null.m4: Renamed from utimes.m4.
82675
82676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82677         to 1MB, so as not to render systems with no stack size limit (e.g.,
82678         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82679         Include <unistd.h>.  On some systems,
82680         it is required for the definition of _SC_PAGESIZE.
82681
82682 2003-08-16  Jim Meyering  <jim@meyering.net>
82683         and Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         Merges from coreutils, etc.
82686
82687         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82688         using the latest version from cvs.  This avoids problems with #line
82689         directives using a vendor (Sun) compiler.
82690         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82691         Don't set GETGROUPS_LIB here; now it's
82692         done via getgroups.m4's wrapper function.
82693         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82694         rather than just in sh-util/configure.in, so that the
82695         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82696         same.
82697         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82698         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82699         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82700         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82701         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82702         Remove code that is now done by the newly-required macros.
82703         Append $(EXEEXT) to DF_PROG.
82704         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82705         Do not invoke or require the following here,
82706         since prereq.m4 or some gnulib .m4 now does this for us:
82707         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82708         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82709         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82710         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82711         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82712         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82713         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82714         AC_FUNC_OBSTACK.
82715         Do not replace the following functions, as this is now the job
82716         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82717         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82718         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82719         atexit getpass, strdup, getpagesize.
82720         Replace 'raise'.
82721         Do not check for the following functions, as this is now the job
82722         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82723         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82724         setregid.
82725         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82726         Check for sys/sysctl.h.
82727         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82728         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82729         of checking for ssize_t ourselves.
82730
82731         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82732         Require every macro that gnulib/modules/* suggests for us.
82733         (jm_PREREQ_ADDEXT): New macro.
82734         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82735         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82736
82737         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82738         (gl_PHYSMEM): Use it.
82739         Also check for `table' function.
82740         Check for new headers and functions.
82741         Add check for sys/sysmp.h.
82742         With suggestions from Kaveh Ghazi.
82743         Ignore headers that are present but cannot be compiled.  This
82744         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82745         C 5.4.
82746
82747 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82748
82749         Document merge from coreutils.
82750         * modules/userspec: Depend on posixver.
82751         * modules/strftime: Depend on tzset.
82752
82753 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82754
82755         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82756         rather than tab, after '#' in shell-script copyright notices.
82757         Suggested by Bruno Haible.
82758
82759 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82760
82761         * config/srclist-update: Use three spaces, rather than tab, after '#'
82762         in shell-script copyright notices.  Suggested by Bruno Haible.
82763         Remove unnecessary parenthesization in regular expression.
82764
82765 2003-08-15  Jim Meyering  <jim@meyering.net>
82766
82767         Merge from coreutils.
82768         * lib/xgethostname.c: Include <stdlib.h>.
82769         (xghostname): Don't exit for anything other than memory-related
82770         failure; just return NULL.
82771         * lib/userspec.c: Include "posixver.h".
82772         (parse_user_spec): Accept `.' as a separator only
82773         in pre-POSIX-200112 mode.
82774         * lib/strtoimax.c: Use #elif rather than #else #if.
82775         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82776         Remove function, now that we can rely on a working tzset function.
82777         [!_LIBC]: Ensure that the required autoconf test has been run.
82778         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82779         Use underlying_strftime for %r.
82780         * lib/sha.c: Merge in some clean-up and optimization changes from
82781         glibc.
82782         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82783         Ensure that it is a multiple of 64.
82784         Rearrange loop exit tests so as to avoid performing an
82785         additional fread after encountering an error or EOF.
82786         * lib/realloc.c: Update copyright date.
82787
82788 2003-08-15  Jim Meyering  <jim@meyering.net>
82789         and Paul Eggert  <eggert@twinsun.com>
82790
82791         Merge from coreutils.
82792         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82793         member but strut utmpx does not.  Needed for AIX 4.3.3.
82794         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82795
82796 2003-08-15  Jim Meyering  <jim@meyering.net>
82797         and Paul Eggert  <eggert@cs.ucla.edu>
82798
82799         Merges from coreutils, etc.
82800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82801         Require gl_FUNC_TZSET_CLOBBER.
82802         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82803         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82804         members.
82805
82806 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82807
82808         Help the merge from coreutils.
82809         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82810         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82811         * m4/tzset.m4: Use it too.
82812
82813 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82814
82815         * modules/tzset: New file.
82816
82817 2003-08-14  Jim Meyering  <jim@meyering.net>
82818
82819         Merges from coreutils.
82820         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82821         variable names, rather than @FNMATCH_H@.
82822         * modules/alloca: Likewise for $(ALLOCA_H).
82823
82824         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82825         the three copies of the literal target, `fnmatch.h'.
82826         * modules/alloca (alloca.h): Likewise.
82827
82828 2003-08-14  Jim Meyering  <jim@meyering.net>
82829
82830         Merge from coreutils.
82831         * m4/tzset.m4: New file.
82832         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82833         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82834         otherwise, AIX 5.1 systems would end up using the latter.
82835         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82836         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82837         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82838         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82839
82840 2003-08-14  Jim Meyering  <jim@meyering.net>
82841
82842         Merge from coreutils.
82843         * lib/obstack.h: Whitespace changes.
82844         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82845         and xcalloc return values.
82846         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82847         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82848         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82849         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82850         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82851         error from mntctl.
82852         Use mntctl's return value to drive the entry-processing loop, since
82853         we can't rely on the value of the vmt_length member in the last
82854         entry.  On some systems doing so could result in exhausting
82855         virtual memory.  Based in part on a patch from Mike Jetzer.
82856
82857 2003-08-14  Jim Meyering  <jim@meyering.net>
82858         and Paul Eggert  <eggert@twinsun.com>
82859
82860         Merges from coreutils, plus other fixes.
82861         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82862         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82863         for credits and details.  Thanks to Kaveh Ghazi for helping
82864         to keep these files in sync.
82865         (ARRAY_SIZE): Define it.
82866         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82867         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82868         (memcasecmp): Don't assume size_t fits in unsigned int.
82869         Remove casts and duplicate code.
82870         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82871         (memcpy): Remove definition.
82872         Merge in some clean-up and optimization changes from glibc.
82873         [BLOCKSIZE]: Move definition to top of file.
82874         Ensure that it is a multiple of 64.
82875         Rearrange loop exit tests so as to avoid performing an
82876         additional fread after encountering an error or EOF.
82877         * lib/md5.h (md5_uintptr): Define.
82878         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82879         return to the initial working directory.  Preserve errno
82880         for caller.
82881         * lib/idcache.c: Include "xalloc.h".
82882         (xmalloc, xrealloc): Remove decls.
82883         (getuser): Remove casts no longer required in C89.
82884         * lib/human.c: Include stdio.h, for sprintf.
82885         * lib/group-member.c: Include "xalloc.h".
82886         (xmalloc, xrealloc): Remove decls.
82887         (get_group_info): Remove casts no longer required in C89.
82888         * lib/getusershell.c (readname): Remove casts no longer required in
82889         C89.
82890         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82891         * lib/getline.c: Whitespace fix, from coreutils.
82892
82893 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82894
82895         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82896         Check for isascii.
82897
82898         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82899         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82900         Undo previous (whitespace-only) change.
82901
82902 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82903
82904         * lib/exclude.c: Include <ctype.h>
82905         (IN_CTYPE_DOMAIN): New macro.
82906         (is_space): New fn.
82907         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82908         and empty lines.
82909
82910         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82911         Undo previous (whitespace-only) change.
82912
82913 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82914
82915         * config/srclist-update: Change update back to the old behavior,
82916         leaving whitespace alone.  Use one 'sed' command rather than a
82917         pipeline.
82918         (fixlicense): Now a variable, not a function.
82919         (remove_trailing_blanks): Remove.
82920         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82921         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82922         Undo previous (whitespace-only) change.
82923
82924 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82925
82926         Merge from coreutils.
82927         * modules/euidaccess: Add lib_SOURCES, include for new
82928         file euidaccess.h
82929
82930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82931
82932         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82933         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82934         Normalize leading white space and remove trailing white space.
82935
82936         Merge from coreutils
82937         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82938
82939         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82940         0.12.1.  These files are now being upgraded automatically by
82941         ../config/srclist-update.
82942
82943 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82944
82945         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82946         Normalize leading white space and remove trailing white space.
82947         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82948         notice, as per ../config/srclist-update.
82949
82950         Merge from coreutils.
82951         * lib/euidaccess.h: New file.
82952         * lib/euidaccess.c: Include it.
82953         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82954         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82955         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82956
82957 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82958
82959         * config/srclist-update: Add copyright notice.
82960         (remove_id_lines, remove_trailing_blanks): New constants.
82961         (fixfile): Use them to normalize spacing a bit in copied files.
82962         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82963         Normalize leading white space and remove trailing white space.
82964
82965         * config/texinfo.tex: Sync with texinfo.
82966
82967         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82968         strtoul.c from libc, to merge coreutils whitespace changes.
82969
82970         * config/srclist.txt: Get the following m4 files from gettext:
82971         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82972         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82973         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82974         wint_t.m4.
82975
82976 2003-08-12  Karl Berry  <karl@gnu.org>
82977
82978         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82979         been made.
82980
82981 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82982
82983         * modules/gnu-source, m4/gnu-source.m4:
82984         Remove; we're assuming Autoconf 2.54 or later now.
82985         Suggested by Bruno Haible.
82986         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82987
82988 2003-08-11  Bruno Haible  <bruno@clisp.org>
82989
82990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82991
82992 2003-08-11  Bruno Haible  <bruno@clisp.org>
82993
82994         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82995         (vasnprintf): Use it instead of wcslen.
82996
82997 2003-08-11  Bruno Haible  <bruno@clisp.org>
82998
82999         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83000         value to ensure that _Bool promotes to int. Use #define for _Bool when
83001         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83002
83003 2003-08-10  Karl Berry  <karl@gnu.org>
83004
83005         * lib/regex.h: update from libc (whitespace fix).
83006
83007 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83008
83009         Merge some files from coreutils.  These changes were
83010         originally made by Jim Meyering.
83011         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83012         many older Unixes require this.
83013         * lib/alloca.c (alloca): Remove cast to argument of free;
83014         no longer needed in C89.
83015         * lib/alloca_.h, regex.h: Fix white space to match
83016         what GNU indent does.
83017
83018 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83019
83020         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83021         apparently Emacs's Unicode mode got confused before my 2003-08-05
83022         checkin.
83023
83024 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83025
83026         * m4/extensions.m4: New file.
83027         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83028         Require gl_USE_SYSTEM_EXTENSIONS.
83029         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83030         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83031
83032 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83033
83034         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83035         * modules/extensions, modules/gnu-source: New files.
83036         * modules/timespec, modules/unlocked-io: Depend on extensions.
83037
83038 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83039
83040         * modules/restrict: New file.
83041         * MODULES.html.sh (func_all_modules): Add restrict.
83042         * modules/regex: Depend on restrict.
83043
83044 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83045
83046         * m4/restrict.m4: New file.
83047         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83048
83049 2003-08-07  Bruno Haible  <bruno@clisp.org>
83050
83051         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83052         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83053
83054 2003-08-07  Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83057         makes the module 'getndelim2' compatible with the module 'getline'.
83058
83059 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83060
83061         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83062         byte with "\201" to avoid glitches when editing that source file
83063         with multi-gnome-terminal.
83064
83065 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83066
83067         * lib/bumpalloc.h: Remove.
83068
83069 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83070
83071         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83072         * modules/bumpalloc: Remove.
83073
83074 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83075
83076         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83077         GNU coding style.
83078
83079         Merge from coreutils.
83080         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83081         1. From glibc.
83082         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83083         from Karl Berry, implemented by Jim Meyering.
83084         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83085         from Dmitry V. Levin.
83086         Remove anachronistic cast of xrealloc.
83087         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83088         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83089         type. Otherwise, it wouldn't compile with at least /bin/cc on
83090         ymp-cray-unicos9.0.2.X.
83091         Combine two mostly-identical uses of alloca into one.
83092         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83093
83094 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83095
83096         [From Emacs.]
83097
83098         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83099         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83100         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83101         obsolete NLIST_NAME_UNION.
83102         [__GNU__]: Undef BSD and FSCALE.
83103         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83104
83105 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83106
83107         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83108         an enum type, so that it's guaranteed to promote to int.  See:
83109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83110
83111 2003-08-03  Karl Berry  <karl@gnu.org>
83112
83113         * config/depcomp: update from automake.
83114
83115 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83116
83117         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83118         (strerror): Don't assume that a printable int fits in 14 bytes.
83119
83120 2003-07-31  Bruno Haible  <bruno@clisp.org>
83121
83122         * modules/getpass-gnu: New file.
83123         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83124
83125 2003-07-31  Bruno Haible  <bruno@clisp.org>
83126
83127         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83128
83129 2003-07-24  Karl Berry  <karl@gnu.org>
83130
83131         * config/missing: update from automake.
83132
83133 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83134             Bruno Haible  <bruno@clisp.org>
83135
83136         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83137         * lib/getline.c (getline, getdelim): Likewise.
83138         Remove _GNU_SOURCE define; now it's defined in config.h through
83139         m4/getline.m4.
83140
83141 2003-07-23  Karl Berry  <karl@gnu.org>
83142
83143         * config/config.sub: update from prep.
83144
83145 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83146
83147         * modules/xalloc (Depends-on): Add exitfail.
83148         * modules/xmemcoll: Likewise.
83149
83150 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83151
83152         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83153         over-parenthesization in macros.
83154
83155         Sync with coreutils.
83156
83157         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83158         required by C99.
83159
83160         Use `exit_failure' for xalloc and xmemcoll instead of their own
83161         private exit-failure variables.
83162         * lib/xalloc.h (xalloc_exit_failure): Remove.
83163         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83164         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83165         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83166         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83167         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83168
83169 2003-07-20  Jim Meyering  <jim@meyering.net>
83170
83171         * modules/closeout (Depends-on): Add exitfail.
83172         Suggestion from Bruno Haible.
83173
83174 2003-07-19  Karl Berry  <karl@gnu.org>
83175
83176         * config/config.sub: update from prep.
83177
83178 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83179
83180         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83181         Remove.
83182         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83183         to test that it can stand by itself.  Include "exitfail.h".
83184         Clients should set exit_failure instead.
83185         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83186
83187 2003-07-18  Bruno Haible  <bruno@clisp.org>
83188
83189         * modules/getndelim2: New file.
83190         * modules/getline: Share files with module getndelim2.
83191         * modules/getnline: Depend on getndelim2 instead of sharing files with
83192         it. Add getnline.c to lib_SOURCES.
83193         * MODULES.html.sh (func_all_modules): Add getndelim2.
83194
83195 2003-07-18  Bruno Haible  <bruno@clisp.org>
83196
83197         * m4/getndelim2.m4: New file.
83198         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83199         invoke gl_PREREQ_GETNDELIM2.
83200         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83201         gl_PREREQ_GETNDELIM2.
83202         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83203         gl_GETNDELIM2.
83204
83205 2003-07-18  Bruno Haible  <bruno@clisp.org>
83206
83207         * lib/getndelim2.h: New file.
83208         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83209         getndelim2.h.
83210         (getndelim2): Make non-static. Change return type to ssize_t.
83211         * lib/getline.h: Change argument names.
83212         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83213         * lib/getnline.c: Include getndelim2.h.
83214
83215 2003-07-18  Andreas Schwab  <schwab@suse.de>
83216
83217         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83218
83219 2003-07-17  Karl Berry  <karl@gnu.org>
83220
83221         * config/config.sub: update from prep.
83222
83223 2003-07-17  Bruno Haible  <bruno@clisp.org>
83224
83225         * modules/getnline: New file.
83226         * modules/getline: Add lib/getndelim2.c to source file list.
83227         * MODULES.html.sh (func_all_modules): Add getnline.
83228
83229 2003-07-17  Bruno Haible  <bruno@clisp.org>
83230
83231         * m4/getnline.m4: New file.
83232
83233 2003-07-17  Bruno Haible  <bruno@clisp.org>
83234
83235         * m4/Makefile.am.in: Remove file.
83236         * m4/Makefile.am: Remove file.
83237         * m4/Makefile.in: Remove file.
83238
83239 2003-07-17  Bruno Haible  <bruno@clisp.org>
83240
83241         * lib/getnline.h: New file.
83242         * lib/getnline.c: New file.
83243         * lib/getndelim2.c: New file, extracted from getline.c.
83244         (getndelim2): Renamed from getdelim2, with added nmax argument.
83245         * lib/getline.c: Include getndelim2.c.
83246         (getdelim2): Moved out to getndelim2.c.
83247         (getline, getdelim): Update.
83248
83249 2003-07-17  Bruno Haible  <bruno@clisp.org>
83250
83251         * lib/Makefile.am: Remove file.
83252         * lib/Makefile.in: Remove file.
83253
83254 2003-07-17  Bruno Haible  <bruno@clisp.org>
83255
83256         * configure.in: Remove file.
83257         * Makefile.in: Remove file.
83258
83259 2003-07-17  Bruno Haible  <bruno@clisp.org>
83260
83261         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83262
83263 2003-07-16  Karl Berry  <karl@gnu.org>
83264
83265         * config/srclist-update: was running fixlicense twice, which caused
83266                 texinfo.tex to be nullified for some reason.  Simplify,
83267                 $gplsrc is no longer needed as far as I can see?
83268
83269 2003-07-16  Jim Meyering  <jim@meyering.net>
83270
83271         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83272
83273 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83274
83275         * config/srclist.txt: Get the following files from gettext-runtime/intl
83276         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83277         ref-del.sin.  From Bruno Haible.
83278         * config/srclist-update (fixfile): Change grep pattern again, since the
83279         previous fix didn't work (there was another trailing $).  Use
83280         '[$]' to escape the $s.
83281
83282 2003-07-15  Karl Berry  <karl@gnu.org>
83283
83284         * lib/vasnprintf.c: update from gettext.
83285
83286 2003-07-15  Karl Berry  <karl@gnu.org>
83287
83288         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83289         gets expanded when surrounded by '$'.
83290
83291 2003-07-15  Jim Meyering  <jim@meyering.net>
83292
83293         * modules/save-cwd: Don't depend on error.  From Derek Price.
83294
83295 2003-07-15  Jim Meyering  <jim@meyering.net>
83296
83297         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83298
83299 2003-07-14  Simon Josefsson  <jas@extundo.com>
83300
83301         * modules/mempcpy: New file.
83302         * MODULES.html.sh (func_all_modules): Add mempcpy.
83303
83304 2003-07-14  Simon Josefsson  <jas@extundo.com>
83305
83306         * m4/mempcpy.m4: New file.
83307
83308 2003-07-14  Simon Josefsson  <jas@extundo.com>
83309
83310         * lib/mempcpy.h: New file.
83311         * lib/mempcpy.c: New file.
83312
83313 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83314
83315         * modules/getdate, modules/posixtm: Depend on mktime.
83316
83317 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83318
83319         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83320         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83321         unicodeio.c, unicodeio.h, unlocked-io.h:
83322         Switch from LGPL to GPL.
83323
83324 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83325
83326         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83327         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83328         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83329         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83330         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83331         updated automatically by ../config/srclist-update.  This changes
83332         their license from LPGL to GPL.
83333
83334 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83335
83336         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83337         assumed to refer to the root of the most recent stable gettext version.
83338         * config/srclistvars.sh: Add defaults for eggert.
83339         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83340         Match "This program" as well as "The program".  This is needed
83341         for gettext.
83342
83343 2003-07-14  Jim Meyering  <jim@meyering.net>
83344
83345         Don't emit diagnostics.  Let callers do that.
83346         * lib/save-cwd.c: Don't include "error.h".
83347         (save_cwd): Don't call error.  Ensure that errno is valid
83348         when returning nonzero.
83349
83350         * lib/save-cwd.h (restore_cwd): Update prototype.
83351         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83352         Simplify.  Don't call error upon failure.  Let callers do that.
83353         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83354         when auditing is enabled.  But don't bother updating the #if.
83355
83356 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83357
83358         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83359         it breaks C++ compilation.
83360         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83361
83362 2003-07-10  Simon Josefsson  <jas@extundo.com>
83363
83364         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83365
83366 2003-07-10  Jim Meyering  <jim@meyering.net>
83367
83368         * m4/clock_time.m4: Remove trailing blank.
83369         * m4/intmax_t.m4: Likewise.
83370
83371 2003-07-10  Jim Meyering  <jim@meyering.net>
83372
83373         * lib/vasnprintf.c: Remove trailing blanks.
83374         Make cpp indentation consistent.
83375
83376 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83377
83378         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83379         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83380         Switch from LGPL to GPL.
83381
83382 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83383
83384         * config/srclist.txt: Sort sublists.  Add
83385         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83386         that differ from gnulib for one reason or another; we'd like this list
83387         to be smaller but for now let's document what we have.
83388
83389 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83390
83391         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83392         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83393         and sweeter "eval x=$x".
83394         * config/srclist.txt: Get lib/argp* from glibc.
83395
83396 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/mktime.c: Fix some boundary cases and remove need for floating
83399         point.
83400
83401         Issue a compile-time diagnostic if time_t is floating point, or if
83402         two's complement arithmetic is not in effect, or if arithmetic
83403         right shift does not propagate the sign.  These assumptions were
83404         all in the original code but they weren't checked.
83405
83406         (TIME_T_MIDPOINT, verify): New macros.
83407         (__isleap): Remove; it has integer overflow problems.
83408         (leapyear): New function, without those problems.
83409         (ydhms_tm_diff): Remove; splitting into two parts.
83410         (ydhms_diff): New function, containing the arithmetic part of
83411         the old ydhms_tm_diff function.  Issue a compile-time
83412         diagnostic if we are not using C99 integer division.
83413         Avoid casts when possible.
83414         (guess_time_tm): New function, containing the checking part of
83415         the old ydhms_tm_diff function.  Return the new value, rather than
83416         the difference between it and the old.  Accept a new argument T
83417         so that *T specifies the old value.  Check for overflow in the result.
83418
83419         (__mktime_internal): Use a time_t offset, not a long int offset.
83420         This undoes the 2003-06-04 change, which is no longer needed now
83421         that we have better overflow checking.
83422         (localtime_offset): Likewise.
83423
83424         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83425         and long are 64-bit but int is only 32-bit.
83426         (ydhms_diff): Use long int to store year1 and yday1.
83427         Issue a compile-time diagnostic if long int is not wide enough.
83428
83429         (__mktime_internal): Use long int to store adjusted year and yday.
83430         Use plain C rather than preprocessor commands, if that doesn't
83431         affect efficiency.
83432         Check for overflow (and try to repair) after each probe
83433         rather than checking only at the very end.  This avoids some bugs
83434         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83435         does not equal GMT offset at maximum time).
83436         Use integer to check for overflow rather than floating point; this
83437         is more portable to non-IEEE hosts, and is a tad faster.
83438         When we detect that we are oscillating between two values,
83439         don't check whether tm_isdst has the requested value, since
83440         we already know the answer.  When tm_isdst has the wrong value,
83441         use a different heuristic to find the right one, based on the
83442         extreme values actually observed in practice in tz2003a,
83443         rather than the (overly optimistic) "previous 3 calendar quarters".
83444
83445         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83446         "T const" to accommodate glibc style.
83447         (check_result): Use less-confusing report format.  "long" -> "long int.
83448         (main): Likewise.
83449         Don't loop if the iteration overflows time_t.
83450         Allow a negative step in the iteration.
83451
83452 2003-07-06  Karl Berry  <karl@gnu.org>
83453
83454         * config/depcomp: update from automake.
83455         * config/config.sub: update from prep.
83456
83457 2003-07-03  Karl Berry  <karl@gnu.org>
83458
83459         * config/config.guess: update from prep.
83460
83461 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83462
83463         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83464         xreadlink.c now includes it unconditionally.
83465
83466 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83467
83468         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83469         having it depend on HAVE_SYS_TYPES_H.
83470
83471 2003-07-01  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83474         <sys/types.h> should be sufficient.
83475         Reported by Paul Eggert.
83476
83477 2003-06-26  Karl Berry  <karl@gnu.org>
83478
83479         * config/depcomp: update from automake.
83480
83481 2003-06-26  Bruno Haible  <bruno@clisp.org>
83482
83483         * modules/human: Depend on module stdbool.
83484
83485 2003-06-25  Bruno Haible  <bruno@clisp.org>
83486
83487         * modules/readlink: New file.
83488         * modules/xreadlink: Depend on it.
83489         * MODULES.html.sh (func_all_modules): Add readlink.
83490
83491 2003-06-25  Bruno Haible  <bruno@clisp.org>
83492
83493         * m4/readlink.m4: New file.
83494
83495 2003-06-25  Bruno Haible  <bruno@clisp.org>
83496
83497         * lib/readlink.c: New file.
83498
83499 2003-06-22  Karl Berry  <karl@gnu.org>
83500
83501         * config/srclist.txt: update mkinstalldirs from automake.
83502         * config/mkinstalldirs: update.
83503
83504 2003-06-22  Bruno Haible  <bruno@clisp.org>
83505
83506         Portability to mingw32.
83507         * m4/ssize_t.m4: New file, from GNU gettext.
83508         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83509         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83510
83511 2003-06-22  Bruno Haible  <bruno@clisp.org>
83512
83513         * modules/safe-read: Add m4/ssize_t.m4.
83514         * modules/xreadlink: Add m4/ssize_t.m4.
83515
83516 2003-06-20  Bruno Haible  <bruno@clisp.org>
83517
83518         Assume C89, so PARAMS isn't needed.
83519         * lib/unicodeio.h (PARAMS): Remove.
83520         * lib/unicodeio.c: Don't use PARAMS.
83521
83522 2003-06-18  Karl Berry  <karl@gnu.org>
83523
83524         * config/config.{guess,sub}: update from prep.
83525
83526 2003-06-18  Jim Meyering  <jim@meyering.net>
83527
83528         Merge changes from coreutils.
83529         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83530         Remove explicit declarations of xmalloc and realloc.
83531         Include xalloc.h.
83532         (read_utmp): Remove anachronistic cast of xmalloc.
83533
83534 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83535
83536         Assume C89, so PARAMS isn't needed.
83537         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83538         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83539         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83540         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83541         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83542         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83543         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83544         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83545         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83546         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83547         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83548         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83549         no longer needed. Anyway, config.h should always be included before any
83550         other file.
83551
83552 2003-06-11  Simon Josefsson  <jas@extundo.com>
83553
83554         * modules/sysexits: New file.
83555         * MODULES.html.sh (func_all_modules): Add sysexits.
83556
83557 2003-06-11  Simon Josefsson  <jas@extundo.com>
83558
83559         * lib/sysexit_.h: New file.
83560
83561 2003-06-11  Derek Price  <derek@ximbiot.com>
83562
83563         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83564         necessary.
83565
83566 2003-06-11  Bruno Haible  <bruno@clisp.org>
83567
83568         * m4/sysexits.m4: New file.
83569
83570 2003-06-10  Simon Josefsson  <jas@extundo.com>
83571
83572         * lib/argp.h: New file, from glibc.
83573         * lib/argp-ba.c: New file, from glibc.
83574         * lib/argp-eexst.c: New file, from glibc.
83575         * lib/argp-fmtstream.c: New file, from glibc.
83576         * lib/argp-fmtstream.h: New file, from glibc.
83577         * lib/argp-fs-xinl.c: New file, from glibc.
83578         * lib/argp-help.c: New file, from glibc.
83579         * lib/argp-namefrob.h: New file, from glibc.
83580         * lib/argp-parse.c: New file, from glibc.
83581         * lib/argp-pv.c: New file, from glibc.
83582         * lib/argp-pvh.c: New file, from glibc.
83583         * lib/argp-xinl.c: New file, from glibc.
83584
83585 2003-06-10  Simon Josefsson  <jas@extundo.com>
83586
83587         * modules/strchrnul: New file.
83588
83589 2003-06-10  Simon Josefsson  <jas@extundo.com>
83590
83591         * modules/argp: New file.
83592
83593 2003-06-10  Simon Josefsson  <jas@extundo.com>
83594
83595         * m4/strchrnul.m4: New file.
83596
83597 2003-06-10  Simon Josefsson  <jas@extundo.com>
83598
83599         * lib/strchrnul.h: New file.
83600         * lib/strchrnul.c: New file.
83601
83602 2003-06-10  Bruno Haible  <bruno@clisp.org>
83603
83604         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83605
83606 2003-06-07  Karl Berry  <karl@gnu.org>
83607
83608         * config/config.{guess,sub}: update from prep.
83609
83610 2003-06-07  Jim Meyering  <jim@meyering.net>
83611
83612         * modules/strtod: Use $(...) notation, not @...@ for
83613         AC_REPLACE'd variables.
83614         * modules/localcharset: Likewise.
83615
83616 2003-06-07  Jim Meyering  <jim@meyering.net>
83617
83618         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83619         in place of my name in the copyright comment.
83620         Remove definition and uses of __P.
83621
83622         From coreutils.
83623         * lib/stat.c: Don't declare xmalloc explicitly.
83624         Instead, include "xalloc.h".
83625         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83626         xrealloc, and xcalloc return values.
83627         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83628         Improve comment.
83629         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83630
83631 2003-06-07  Bruno Haible  <bruno@clisp.org>
83632
83633         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83634         avoid AC_CONFIG_LINKS.
83635         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83636         fnmatch.h, to avoid AC_CONFIG_LINKS.
83637         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83638
83639 2003-06-07  Bruno Haible  <bruno@clisp.org>
83640
83641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83642         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83643         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83644         directory.
83645         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83646         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83647         directory.
83648
83649 2003-06-06  Jim Meyering  <jim@meyering.net>
83650
83651         Merge from coreutils.
83652         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83653         Consolidate declarations and initializations of *_base* locals.
83654
83655         Merge from coreutils.
83656         This avoids a core dump on systems without GNU putenv,
83657         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83658         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83659         (unsetenv): New static function, from GNU libc.
83660         (rpl_putenv): Use it.
83661
83662         * lib/modechange.c: Remove trailing blanks.
83663
83664         Merge from coreutils.
83665         * lib/fsusage.c: Remove declaration of statfs.
83666         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83667
83668         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83669
83670 2003-06-06  Jim Meyering  <jim@meyering.net>
83671
83672         * lib/stdbool_.h: Renamed from stdbool.h.in.
83673
83674 2003-06-06  Jim Meyering  <jim@meyering.net>
83675             Bruno Haible  <bruno@clisp.org>
83676
83677         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83678         Adjust Makefile.am snippet not to redirect directly to target.
83679         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83680
83681 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83682
83683         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83684         mismatch, look in future quarters as well as past.  This fixes a
83685         bug when processing fall-backwards gaps immediately after a long
83686         period of daylight-saving time.
83687
83688         * lib/mktime.c: Assume freestanding C89 or better.
83689         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83690         (__P): Remove; not used.
83691         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83692         (mktime, not_equal_tm, print_tm, check_result,
83693         main): Use prototypes.  Use const * where appropriate.
83694         (main): Fix typo in testing code that uncovered by above changes.
83695         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83696
83697 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83698
83699         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83700         locale.h, localeconv.  This merges changes from coreutils.
83701
83702         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83703         It can be removed after the next Autoconf is released.
83704         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83705         needed.
83706
83707 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83708
83709         * lib/mktime.c: Fix Debian bug 177940
83710         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83711         (localtime_offset): Now long int, not time_t, because we want it
83712         to be guaranteed to be signed.  All uses changed.
83713         (__mktime_internal): If overflow would occur when adding offset,
83714         don't add it.
83715
83716         Merge 'human' changes from coreutils.  Rewrite to support
83717         locale-specific notations like thousands separators.
83718         * lib/human.c: Simplify authorship notice.
83719         Include human.h immediately after config.h.
83720         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83721         <limits.h>: Do not include, since human.h does.
83722         (SIZE_MAX, UINTMAX_MAX): New macros.
83723         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83724         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83725         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83726         (power_letter): Renamed from suffixes.
83727         (generate_suffix_backwards): Remove.
83728         (adjust_value): Now takes int style (because of human.h changes)
83729         and long double value (for greater precision on some platforms).
83730         (group_number): New function.
83731         (human_readable): Use it.  Use integer options, not enum.
83732         Put the options before the sizes in the arg list.
83733         Support all the new options.
83734         The old human_readable function has been removed;
83735         use inttostr.h instead.
83736         (human_readable, default_block_size, humblock):
83737         Use uintmax_t, not int, for block sizes.
83738         (human_readable_inexact, block_size_types): Remove.
83739         (block_size_opts): New constant.
83740         (human_options): Renamed from human_block_size, with new signature
83741         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83742         * lib/human.h: Add copyright and authorship notice.
83743         Include <limits.h> and <stdbool.h> unconditionally.
83744         (PARAMS): Remove.  All uses removed.
83745         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83746         (enum human_inexact_style): Remove tag; now a nameless enum.
83747         (human_floor, human_ceiling, human_round_to_even): Now have
83748         values 2, 0, 1 rather than -1, 1, 0.
83749         (human_group_digits, human_suppress_point_zero, human_autoscale,
83750         human_base_1024, human_SI, human_B): New constants.
83751         (human_readable_inexact, human_block_size): Remove.
83752         (human_readable): Size args are now uintmax_t, not int.
83753         (human_options): New decl.
83754
83755         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83756         unnecessary now that we assume C89 or better.  This change
83757         imported from coreutils.
83758
83759         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83760         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83761         in the 2003-05-30 sync from glibc.
83762
83763         .h files should stand alone, but we shouldn't include <sys/types.h>
83764         if we can get away with just <stddef.h>.
83765
83766         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83767         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83768         rather than <sys/types.h>, as we merely need size_t.
83769         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83770         to get size_t.
83771         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83772         Include <stdio.h>, to get FILE.
83773         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83774         memcasecmp.h has included <stddef.h> and all we need is size_t.
83775         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83776         our interface, instead of including <sys/types.h>
83777
83778 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83779
83780         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83781         now, as glibc mktime is buggy on non-glibc systems.
83782
83783 2003-06-03  Karl Berry  <karl@gnu.org>
83784
83785         * config/config.sub: update from prep.
83786
83787 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83788
83789         [from coreutils]
83790         Fix some minor time-related bugs with POSIX time arguments.
83791         Some valid time stamps were being rejected (notably -1, and
83792         time stamps before 1900 on 64-bit hosts).  And some invalid
83793         time stamps were being accepted, e.g. September 31.
83794
83795         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83796         that we can return (time_t) -1 successfully.
83797         * lib/posixtm.c: Likewise.
83798         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83799         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83800         (t): Remove static var.
83801         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83802         of static var.  All uses changed.
83803         (year): Do not reject years before 1900; they can occur with
83804         64-bit time_t.
83805         (posix_time_parse): Do not check for out-of-range components;
83806         that is now the caller's responsibility, since our checks were
83807         only approximations.
83808         (posixtime): Use mktime to check for out-of-range components,
83809         since it knows them exactly.
83810         If mktime returns (time_t) -1, check whether an error actually occurred
83811         by invoking localtime on -1.
83812         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83813         posixtime failures better.
83814         Improve the test data (in comments only).
83815
83816 2003-06-02  Karl Berry  <karl@gnu.org>
83817
83818         * config/mkinstalldirs (version): new variable.
83819         (--version): new option.
83820         (usage): improve message.
83821
83822 2003-05-30  Karl Berry  <karl@gnu.org>
83823
83824         * lib/mktime.c: update from libc.
83825
83826 2003-05-30  Bruno Haible  <bruno@clisp.org>
83827
83828         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83829         * config/config.rpath: Upgrade to gettext-0.12.1.
83830
83831 2003-05-30  Bruno Haible  <bruno@clisp.org>
83832
83833         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83834         * m4/nls.m4: New file, from gettext-0.12.1.
83835         * m4/po.m4: New file, from gettext-0.12.1.
83836         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83837
83838 2003-05-30  Bruno Haible  <bruno@clisp.org>
83839
83840         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83841         * lib/localcharset.h: Likewise.
83842         * lib/localcharset.c: Likewise.
83843
83844 2003-05-29  Karl Berry  <karl@gnu.org>
83845
83846         * config/config.rpath: update from gettext.
83847
83848 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83849
83850         Assume the headers required for C89 freestanding compilers.
83851         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83852         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83853         * m4/human.m4 (gl_HUMAN): Likewise.
83854         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83855         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83856         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83857         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83859         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83860
83861 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83862
83863         Assume the headers required for C89 freestanding compilers.
83864         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83865         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83866         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83867         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83868         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83869         define, since <limits.h> is guaranteed to do that.
83870         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83871         * lib/exclude.c: Include <stdbool.h> unconditionally.
83872         * lib/tempname.c: Include <stddef.h> unconditionally.
83873         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83874         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83875         <stddef.h> does that.
83876         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83877         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83878         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83879         needed.
83880         * lib/xstrtol.c: Likewise.
83881         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83882         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83883
83884         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83885         warnings on some platforms.
83886
83887         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83888         arbitrarily.
83889
83890 2003-05-26  Jim Meyering  <jim@meyering.net>
83891
83892         Merge in a change from coreutils:
83893         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83894         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83895         that condition, rather than `-1' which is slightly misleading.
83896         Change the name of the cache variable to have the gl_ prefix.
83897         Prompted by a patch from Richard Dawe for DJGPP.
83898
83899 2003-05-24  Karl Berry  <karl@gnu.org>
83900
83901         * config/config.guess: update from prep.
83902
83903 2003-05-22  Karl Berry  <karl@gnu.org>
83904
83905         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83906
83907 2003-05-20  Karl Berry  <karl@gnu.org>
83908
83909         * config/config.guess: update from prep.
83910
83911 2003-05-18  Karl Berry  <karl@gnu.org>
83912
83913         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83914         might actually be set by the user.
83915
83916         * config/depcomp, install-sh, mdate-sh: update from automake.
83917
83918 2003-05-17  Bruno Haible  <bruno@clisp.org>
83919
83920         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83921         invalid expansion for AC_EGREP_CPP.
83922         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83923         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83924         Suggested by Akim Demaille <akim@epita.fr> in
83925         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83926
83927 2003-05-12  Jim Meyering  <jim@meyering.net>
83928
83929         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83930         the space-padded-by-default conversion specifiers, %e, %k, %l.
83931
83932 2003-05-12  Bruno Haible  <bruno@clisp.org>
83933
83934         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83935         the string is longer than 4 KB.
83936
83937 2003-05-11  Karl Berry  <karl@gnu.org>
83938
83939         * config/config.{guess,sub}: update from prep.
83940
83941 2003-05-09  Bruno Haible  <bruno@clisp.org>
83942
83943         * modules/error: Add m4/strerror_r.m4 to file list.
83944
83945 2003-05-03  Bruno Haible  <bruno@clisp.org>
83946
83947         Upgrade to Unicode-4.0.
83948         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83949         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83950         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83951         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83952         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83953         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83954         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83955         Change width of U+E0100..U+E01EF from 1 to 0.
83956
83957 2003-04-25  Jim Meyering  <jim@meyering.net>
83958
83959         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83960         of type size_t, not int.
83961
83962 2003-04-25  Bruno Haible  <bruno@clisp.org>
83963
83964         * lib/copy-file.c: Include <stddef.h>, for size_t.
83965
83966 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83967
83968         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83969         code which expansion is under static control.  Patch imported from
83970         Akim Demaille's patch to Bison; see
83971         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83972
83973 2003-04-14  Bruno Haible  <bruno@clisp.org>
83974
83975         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83976
83977 2003-04-11  Jim Meyering  <jim@meyering.net>
83978
83979         Merge changes from Coreutils.
83980
83981         2003-03-22  Jim Meyering  <jim@meyering.net>
83982
83983         * lib/strftime.c (widen): Cast alloca return value to proper type.
83984
83985         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83986
83987         From GNU libc.
83988         * lib/strftime.c (my_strftime): Handle very large width
83989         specifications for numeric values correctly.  Improve checks for
83990         overflow.
83991
83992         2003-01-19  Jim Meyering  <jim@meyering.net>
83993
83994         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83995         definitions.
83996         (nl_get_alt_digit) [! defined my_strftime]: Define.
83997         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83998         _nl_get_alt_digit and _nl_get_walt_digit.
83999
84000         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84001         libc. These changes have no effect outside of _LIBC.
84002
84003 2003-04-10  Bruno Haible  <bruno@clisp.org>
84004
84005         * modules/findprog: New file.
84006         * MODULES.html.sh (func_all_modules): Add it.
84007
84008 2003-04-10  Bruno Haible  <bruno@clisp.org>
84009
84010         * m4/findprog.m4: New file.
84011         * m4/eaccess.m4: New file.
84012
84013 2003-04-10  Bruno Haible  <bruno@clisp.org>
84014
84015         * lib/findprog.h: New file, from GNU gettext.
84016         * lib/findprog.c: New file, from GNU gettext.
84017
84018 2003-04-05  Jim Meyering  <jim@meyering.net>
84019
84020         Merge changes from Coreutils.
84021
84022         * lib/exclude.h (PARAMS): Remove definition and uses.
84023         * lib/exclude.c: Remove uses of `PARAMS'.
84024
84025         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84026         Add test-cases for DOS filenames. Declare program_name.
84027         (main): Set up program_name.  Patch by Rich Dawe.
84028
84029         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84030         error from mntctl.
84031         Use mntctl's return value to drive the entry-processing loop, since
84032         we can't rely on the value of the vmt_length member in the last
84033         entry.  On some systems doing so could result in exhausting
84034         virtual memory.  Based in part on a patch from Mike Jetzer.
84035
84036 2003-04-04  Bruno Haible  <bruno@clisp.org>
84037
84038         * modules/linebreak: New file.
84039         * MODULES.html.sh (func_all_modules): Add it.
84040
84041 2003-04-04  Bruno Haible  <bruno@clisp.org>
84042
84043         * m4/linebreak.m4: New file.
84044
84045 2003-04-04  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/linebreak.h: New file, from GNU gettext.
84048         * lib/linebreak.c: New file, from GNU gettext with slight
84049         modifications.
84050         * lib/lbrkprop.h: New file, from GNU gettext.
84051
84052 2003-04-03  Bruno Haible  <bruno@clisp.org>
84053
84054         * modules/utf8-ucs4: New file.
84055         * modules/utf16-ucs4: New file.
84056         * modules/ucs4-utf8: New file.
84057         * modules/ucs4-utf16: New file.
84058         * MODULES.html.sh (func_all_modules): Add them.
84059
84060 2003-04-03  Bruno Haible  <bruno@clisp.org>
84061
84062         * m4/utf-ucs4.m4: New file.
84063         * m4/ucs4-utf.m4: New file.
84064
84065 2003-04-03  Bruno Haible  <bruno@clisp.org>
84066
84067         * lib/utf8-ucs4.h: New file, from GNU gettext.
84068         * lib/utf16-ucs4.h: New file, from GNU gettext.
84069         * lib/ucs4-utf8.h: New file, from GNU gettext.
84070         * lib/ucs4-utf16.h: New file, from GNU gettext.
84071
84072 2003-04-02  Bruno Haible  <bruno@clisp.org>
84073
84074         * modules/binary-io: New file.
84075         * MODULES.html.sh (func_all_modules): Add it.
84076
84077 2003-04-02  Bruno Haible  <bruno@clisp.org>
84078
84079         * lib/binary-io.h: New file, from GNU gettext.
84080
84081 2003-04-01  Bruno Haible  <bruno@clisp.org>
84082
84083         * modules/pathname: New file.
84084         * MODULES.html.sh (func_all_modules): Add it.
84085
84086 2003-04-01  Bruno Haible  <bruno@clisp.org>
84087
84088         * lib/pathname.h: New file, from GNU gettext.
84089         * lib/concatpath.c: New file, from GNU gettext.
84090
84091 2003-03-30  Bruno Haible  <bruno@clisp.org>
84092
84093         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84094
84095 2003-03-30  Bruno Haible  <bruno@clisp.org>
84096
84097         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84098         function chown() doesn't exist.
84099
84100 2003-03-28  Bruno Haible  <bruno@clisp.org>
84101
84102         * modules/copy-file: New file.
84103         * MODULES.html.sh (func_all_modules): Add it.
84104
84105 2003-03-28  Bruno Haible  <bruno@clisp.org>
84106
84107         * m4/copy-file.m4: New file.
84108
84109 2003-03-28  Bruno Haible  <bruno@clisp.org>
84110
84111         * lib/copy-file.h: New file, from GNU gettext.
84112         * lib/copy-file.c: New file, from GNU gettext.
84113
84114 2003-03-18  Jim Meyering  <jim@meyering.net>
84115
84116         * lib/quote.c (quote_n): Fix typo in comment.
84117
84118 2003-03-18  Bruno Haible  <bruno@clisp.org>
84119
84120         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84121         checking.
84122         * m4/onceonly_2_57.m4: Likewise.
84123
84124 2003-03-17  Bruno Haible  <bruno@clisp.org>
84125
84126         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84127         (m4_quote): Remove macro.
84128         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84129
84130 2003-03-14  Jim Meyering  <jim@meyering.net>
84131
84132         Merge changes from Coreutils.
84133         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84134         to be const, in order to avoid warnings.
84135         (obstack_room): Likewise.
84136         (obstack_empty_p): Likewise.
84137
84138 2003-03-14  Bruno Haible  <bruno@clisp.org>
84139
84140         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84141         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84142
84143 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84144
84145         Merge changes from Bison.
84146         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84147         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84148         when compiling Bison 1.875's `bitset bset = obstack_alloc
84149         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84150         * lib/hash.c: Include <stdbool.h> unconditionally.
84151
84152 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84153
84154         * m4/onceonly.m4 (m4_quote): New macro.
84155         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84156         Quote AC_FOREACH variable-expansions properly.
84157
84158 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84159
84160         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84161
84162 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84163
84164         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84165         Reported by Bruce Becker; see:
84166         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84167
84168 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84169             Bruno Haible  <bruno@clisp.org>
84170
84171         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84172         Reported by John Hughes, see
84173         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84174
84175 2003-02-20  Bruno Haible  <bruno@clisp.org>
84176
84177         * MODULES.html.sh (func_all_modules): Add poll.
84178
84179 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84180
84181         * modules/poll: New file.
84182
84183 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84184
84185         * lib/poll_.h: New file.
84186         * lib/poll.c: New file.
84187
84188 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84189
84190         * m4/poll.m4: New file.
84191
84192 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84193
84194         * modules/mathl: New file.
84195
84196 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84197
84198         * lib/mathl.h: New file.
84199         * lib/acosl.c: New file.
84200         * lib/asinl.c: New file.
84201         * lib/atanl.c: New file.
84202         * lib/ceill.c: New file.
84203         * lib/cosl.c: New file.
84204         * lib/expl.c: New file.
84205         * lib/floorl.c: New file.
84206         * lib/frexpl.c: New file.
84207         * lib/ldexpl.c: New file.
84208         * lib/logl.c: New file.
84209         * lib/sincosl.c: New file.
84210         * lib/sinl.c: New file.
84211         * lib/sqrtl.c: New file.
84212         * lib/tanl.c: New file.
84213         * lib/trigl.c: New file.
84214         * lib/trigl.h: New file.
84215
84216 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84217
84218         * m4/mathl.m4: New file.
84219
84220 2003-02-18  Bruno Haible  <bruno@clisp.org>
84221
84222         * MODULES.html.sh (func_all_modules): Add mathl.
84223
84224 2003-02-17  Bruno Haible  <bruno@clisp.org>
84225
84226         * modules/mkdtemp: New module.
84227         * MODULES.html.sh (func_all_modules): Add it.
84228
84229 2003-02-17  Bruno Haible  <bruno@clisp.org>
84230
84231         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84232
84233 2003-02-17  Bruno Haible  <bruno@clisp.org>
84234
84235         * lib/mkdtemp.h: New file, from GNU gettext.
84236         * lib/mkdtemp.c: New file, from GNU gettext.
84237
84238 2003-02-02  Jim Meyering  <jim@meyering.net>
84239
84240         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84241         e.g. glibc-2.2.93.
84242
84243 2003-01-31  Bruno Haible  <bruno@clisp.org>
84244
84245         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84246         'rpl_rename'.
84247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84248         'rpl_strnlen'.
84249         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84250         'rpl_strtod'.
84251         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84252         'rpl_utime'.
84253
84254 2003-01-31  Bruno Haible  <bruno@clisp.org>
84255
84256         * lib/rename.c: #undef rename before defining rpl_rename.
84257         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84258
84259 2003-01-30  Bruno Haible  <bruno@clisp.org>
84260
84261         * modules/vasnprintf, modules/vasprintf: New modules.
84262         * MODULES.html.sh (func_all_modules): Add them.
84263
84264 2003-01-30  Bruno Haible  <bruno@clisp.org>
84265
84266         * m4/signed.m4: New file, from GNU gettext.
84267         * m4/longdouble.m4: New file, from GNU gettext.
84268         * m4/wchar_t.m4: New file, from GNU gettext.
84269         * m4/wint_t.m4: New file, from GNU gettext.
84270         * m4/vasnprintf.m4: New file.
84271         * m4/vasprintf.m4: New file.
84272
84273 2003-01-30  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/printf-args.h: New file, from GNU gettext.
84276         * lib/printf-args.c: New file, from GNU gettext.
84277         * lib/printf-parse.h: New file, from GNU gettext.
84278         * lib/printf-parse.c: New file, from GNU gettext.
84279         * lib/vasnprintf.h: New file, from GNU gettext.
84280         * lib/vasnprintf.c: New file, from GNU gettext.
84281         * lib/asnprintf.c: New file, from GNU gettext.
84282         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84283         * lib/vasprintf.c: New file, from GNU gettext.
84284         * lib/asprintf.c: New file, from GNU gettext.
84285
84286 2003-01-29  Bruno Haible  <bruno@clisp.org>
84287
84288         * modules/stpncpy: New module.
84289         * MODULES.html.sh (func_all_modules): Add it.
84290
84291 2003-01-29  Bruno Haible  <bruno@clisp.org>
84292
84293         * m4/stpncpy.m4: New file.
84294
84295 2003-01-29  Bruno Haible  <bruno@clisp.org>
84296
84297         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84298         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84299
84300 2003-01-28  Bruno Haible  <bruno@clisp.org>
84301
84302         * modules/c-ctype: New module.
84303         * MODULES.html.sh (func_all_modules): Add it.
84304
84305 2003-01-28  Bruno Haible  <bruno@clisp.org>
84306
84307         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84308         Paul Eggert.
84309         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84310         Paul Eggert.
84311
84312 2003-01-27  Bruno Haible  <bruno@clisp.org>
84313
84314         * modules/xsetenv: New module.
84315         * MODULES.html.sh (func_all_modules): Add it.
84316
84317 2003-01-27  Bruno Haible  <bruno@clisp.org>
84318
84319         * lib/xsetenv.h: New file, from GNU gettext.
84320         * lib/xsetenv.c: New file, from GNU gettext.
84321
84322 2003-01-23  Jim Meyering  <jim@meyering.net>
84323
84324         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84325         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84326
84327 2003-01-23  Bruno Haible  <bruno@clisp.org>
84328
84329         * modules/minmax: New module.
84330         * MODULES.html.sh (func_all_modules): Add it.
84331
84332 2003-01-23  Bruno Haible  <bruno@clisp.org>
84333
84334         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84335         Eggert.
84336
84337 2003-01-22  Bruno Haible  <bruno@clisp.org>
84338
84339         * modules/exit: New module.
84340         * MODULES.html.sh (func_all_modules): Add it.
84341
84342 2003-01-22  Bruno Haible  <bruno@clisp.org>
84343
84344         * lib/exit.h: New file, from GNU gettext.
84345
84346 2003-01-19  Bruno Haible  <bruno@clisp.org>
84347
84348         * gnulib-tool: Recognize option --extract-maintainer.
84349         (func_get_maintainer): New function.
84350         * modules/*: Add Maintainer entry.
84351
84352 2003-01-16  Jim Meyering  <jim@meyering.net>
84353
84354         * m4/regex.m4: The `regex' struct is both input and output.
84355         Initialize it before each use.  Patch by Tim Waugh.
84356
84357 2003-01-16  Bruno Haible  <bruno@clisp.org>
84358
84359         * MODULES.html.sh: Add a table of contents. Add the module name as
84360         leftmost column. Add hyperlinks.
84361
84362 2003-01-15  Bruno Haible  <bruno@clisp.org>
84363
84364         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84365
84366 2003-01-15  Bruno Haible  <bruno@clisp.org>
84367
84368         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84369         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84370         suffix.
84371
84372 2003-01-15  Bruno Haible  <bruno@clisp.org>
84373
84374         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84375
84376 2003-01-15  Bruno Haible  <bruno@clisp.org>
84377
84378         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84379         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84380
84381 2003-01-14  Jim Meyering  <jim@meyering.net>
84382
84383         * lib/same.c (same_name): Tweak a comment.
84384
84385 2003-01-14  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84388         when a string comparison is sufficient.
84389
84390 2003-01-14  Bruno Haible  <bruno@clisp.org>
84391
84392         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84393         'unsigned int'.
84394
84395 2003-01-14  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/hash-pjw.c: Add comment about low quality of this function.
84398
84399 2003-01-13  Bruno Haible  <bruno@clisp.org>
84400
84401         * modules/stpcpy: Distribute lib/stpcpy.h.
84402         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84403
84404 2003-01-13  Bruno Haible  <bruno@clisp.org>
84405
84406         * modules/*: Add a description.
84407         * modules/strpbrk: Fix Makefile.am snippet.
84408         * modules/strtoimax: Fix dependencies.
84409         * modules/strtoumax: Likewise.
84410
84411 2003-01-13  Bruno Haible  <bruno@clisp.org>
84412
84413         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84414         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84415         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84416
84417 2003-01-13  Bruno Haible  <bruno@clisp.org>
84418
84419         * gnulib-tool (func_create_testdir): Store config/* files in the main
84420         directory.
84421         * config.rpath: Move to ...
84422         * config/config.rpath: ... here.
84423         * modules/gettext: Contains config/config.rpath, not config.rpath.
84424         * modules/iconv: Likewise.
84425
84426 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84427
84428         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84429         to avoid collisions with libcurses and libreadline.
84430
84431         * m4/getstr.m4: Remove.
84432         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84433
84434 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84435
84436         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84437         to avoid collisions with libcurses and libreadline.
84438
84439         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84440         * lib/getstr.h, getstr.c: Remove.
84441         * lib/getline.c: Include "getline.h", to check interface.
84442         Move body of old getstr.c here: this defines MIN_CHUNK and
84443         declares getdelim2, which is renamed from getstr.
84444         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84445
84446         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84447         All uses changed.
84448         * lib/linebuffer.h: Likewise.
84449         (readline): Remove backward-compatibility macro.
84450
84451 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84452
84453         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84454         to avoid collisions with libcurses and libreadline.
84455         * getstr: Remove.
84456         * MODULES.html.sh: Remove getstr.
84457         * modules/getline: Depend on unlocked-io, not getstr.
84458
84459 2003-01-12  Jim Meyering  <jim@meyering.net>
84460
84461         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84462
84463 2003-01-10  Bruno Haible  <bruno@clisp.org>
84464
84465         * modules/alloca: Change Makefile.am requirements. Simplify Include
84466         requirements. Add lib/alloca_.h to file list.
84467
84468 2003-01-10  Bruno Haible  <bruno@clisp.org>
84469
84470         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84471
84472 2003-01-10  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/alloca_.h: New file.
84475         * lib/getdate.y: Unconditionally include alloca.h.
84476         * lib/makepath.c: Likewise.
84477         * lib/setenv.c: Likewise.
84478         * lib/userspec.c: Likewise.
84479
84480 2003-01-09  Karl Berry  <karl@gnu.org>
84481
84482         * MODULES.html.sh: include `dirname $0` in PATH, to find
84483         gnulib-tool.
84484
84485 2003-01-09  Bruno Haible  <bruno@clisp.org>
84486
84487         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84488         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84489
84490 2003-01-09  Bruno Haible  <bruno@clisp.org>
84491
84492         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84493
84494 2003-01-09  Bruno Haible  <bruno@clisp.org>
84495
84496         * lib/stdbool.h.in: New file.
84497
84498 2003-01-09  Bruno Haible  <bruno@clisp.org>
84499
84500         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84501         * MODULES.html.sh: Likewise.
84502
84503 2003-01-08  Jim Meyering  <jim@meyering.net>
84504
84505         * lib/full-write.c: Undefine and define-away `const' after inclusion
84506         of errno.h, not before.  Suggestion from Bruno Haible.
84507
84508 2003-01-08  Bruno Haible  <bruno@clisp.org>
84509
84510         * modules/full-read: Depend on full-write.
84511
84512 2003-01-08  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/safe-read.c: Include specification header first, to ensure its
84515         selfcontainedness.
84516         * lib/full-write.c: Likewise.
84517
84518 2003-01-07  Jim Meyering  <jim@meyering.net>
84519
84520         * lib/full-write.c: Rework so that it may serve to define full_read,
84521         too.
84522         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84523
84524 2003-01-07  Bruno Haible  <bruno@clisp.org>
84525
84526         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84527         <inttypes.h>.
84528         * lib/xstrtol.h: Likewise.
84529         * lib/xstrtoimax.c: Likewise.
84530         * lib/xstrtoumax.c: Likewise.
84531         * lib/human.h: Likewise.
84532
84533         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84534         on systems that have <inttypes.h> but not <stdint.h>.
84535
84536 2003-01-07  Bruno Haible  <bruno@clisp.org>
84537
84538         * MODULES.html.sh: Add copyright notice.
84539         (missed_files): Omit CVS directory entries.
84540         (func_module): Make it work with sed-3.02.
84541         * MODULES.txt: Remove file.
84542
84543 2003-01-06  Jim Meyering  <jim@meyering.net>
84544
84545         * lib/version-etc.c: Update year in translatable copyright string.
84546
84547 2003-01-03  Karl Berry  <karl@gnu.org>
84548
84549         * config/config.{guess,sub}: update from prep.
84550
84551 2003-01-02  Karl Berry  <karl@gnu.org>
84552
84553         * doc/COPYING.DOC: belatedly updated to 1.2.
84554
84555 2003-01-01  Karl Berry  <karl@gnu.org>
84556
84557         * gnulib-tool (func_verify_module): report module name $module in
84558         error message, not $1.
84559         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84560         be created, only if it doesn't exist.
84561         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84562
84563 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84564
84565         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84566
84567 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84568
84569         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84570         memcmp if strcoll doesn't work.
84571
84572 2002-12-31  Bruno Haible  <bruno@clisp.org>
84573
84574         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84575         nonempty.
84576
84577 2002-12-31  Bruno Haible  <bruno@clisp.org>
84578
84579         * lib/memcoll.c (STRCOLL): New macro.
84580         (memcoll): Use it.
84581
84582 2002-12-31  Bruno Haible  <bruno@clisp.org>
84583
84584         * lib/localcharset.h: New file.
84585         * lib/localcharset.c: Include it.
84586         * lib/unicodeio.c: Likewise.
84587
84588 2002-12-31  Bruno Haible  <bruno@clisp.org>
84589
84590         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84591         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84592
84593 2002-12-31  Bruno Haible  <bruno@clisp.org>
84594
84595         * lib/getline.h: Include <stddef.h>, for size_t.
84596
84597         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84598         * lib/unicodeio.c: Don't include <stddef.h>.
84599
84600 2002-12-31  Bruno Haible  <bruno@clisp.org>
84601
84602         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84603         HAVE_TM_ZONE.
84604
84605 2002-12-24  Karl Berry  <karl@gnu.org>
84606
84607         * config/config.guess: update from prep.
84608
84609 2002-12-24  Bruno Haible  <bruno@clisp.org>
84610
84611         General infrasructure.
84612         * m4/README: Rewritten.
84613         * m4/onceonly.m4: New file.
84614         * m4/onceonly_2_57.m4: New file.
84615
84616         Module atexit.
84617         * m4/atexit.m4: New file.
84618
84619         Module strtod.
84620         * m4/strtod.m4: New file.
84621
84622         Module strtol.
84623         * m4/strtol.m4: New file.
84624
84625         Module strtoul.
84626         * m4/strtoul.m4: New file.
84627
84628         Module memchr.
84629         * m4/memchr.m4: New file.
84630
84631         Module memcmp.
84632         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84633         (jm_FUNC_MEMCMP): Invoke it.
84634
84635         Module memcpy.
84636         * m4/memcpy.m4: New file.
84637
84638         Module memmove.
84639         * m4/memmove.m4: New file.
84640
84641         Module memset.
84642         * m4/memset.m4: New file.
84643
84644         Module strcspn.
84645         * m4/strcspn.m4: New file.
84646
84647         Module strpbrk.
84648         * m4/strpbrk.m4: New file.
84649
84650         Module strstr.
84651         * m4/strstr.m4: New file.
84652
84653         Module strerror.
84654         * m4/strerror.m4: New file.
84655
84656         Module mktime.
84657         * m4/mktime.m4: Renamed from jm-mktime.m4.
84658         (gl_PREREQ_MKTIME): New macro.
84659         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84660
84661         Module malloc.
84662         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84663         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84664         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84665
84666         Module realloc.
84667         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84668         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84669         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84670
84671         Module strftime.
84672         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84673         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84674         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84675         gl_TM_GMTOFF.
84676         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84677
84678         Module xalloc.
84679         * m4/xalloc.m4: New file.
84680
84681         Module alloca.
84682         * m4/alloca.m4: New file.
84683
84684         Module putenv.
84685         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84686         (jm_FUNC_PUTENV): Invoke it.
84687
84688         Module setenv.
84689         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84690         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84691         when invoked twice.
84692         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84693         gt_FUNC_SETENV.
84694
84695         Module memrchr.
84696         * m4/memrchr.m4: New file.
84697
84698         Module stpcpy.
84699         * m4/stpcpy.m4: New file.
84700
84701         Module strcase.
84702         * m4/strcase.m4: New file.
84703
84704         Module strdup.
84705         * m4/strdup.m4: New file.
84706
84707         Module strnlen.
84708         * m4/strnlen.m4: New file.
84709
84710         Module strndup.
84711         * m4/strndup.m4: New file.
84712
84713         Module xstrtod.
84714         * m4/xstrtod.m4: New file.
84715
84716         Module xstrtol.
84717         * m4/xstrtol.m4: New file.
84718
84719         Module getdate.
84720         * m4/getdate.m4: New file.
84721
84722         Module unlocked-io.
84723         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84724         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84725         * m4/jm-glibc-io.m4n: Remove file.
84726
84727         Module long-options.
84728         * m4/long-options.m4: New file.
84729
84730         Module md5.
84731         * m4/md5.m4: New file.
84732
84733         Module sha.
84734         * m4/sha.m4: New file.
84735
84736         Module getstr.
84737         * m4/getstr.m4: New file.
84738
84739         Module getline.
84740         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84741         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84742         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84743         simply getline. Infoke gl_PREREQ_GETLINE.
84744
84745         Module obstack.
84746         * m4/obstack.m4: New file.
84747
84748         Module hash.
84749         * m4/hash.m4: New file.
84750
84751         Module readtokens.
84752         * m4/readtokens.m4: New file.
84753
84754         Module strverscmp.
84755         * m4/strverscmp.m4: New file.
84756
84757         Module stdbool.
84758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84759         OSF/1.
84760
84761         Module strtoll.
84762         * m4/strtoll.m4: New file.
84763
84764         Module strtoull.
84765         * m4/strtoull.m4: New file.
84766
84767         Module strtoimax.
84768         * m4/strtoimax.m4: New file.
84769
84770         Module strtoumax.
84771         * m4/strtoumax.m4: New file.
84772
84773         Module xstrtoimax.
84774         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84775         jm_AC_PREREQ_XSTRTOIMAX.
84776         Moved the strtol prerequisites to strtol.m4.
84777         Moved the strtoll prerequisites to strtoll.m4.
84778         Moved the strtoimax prerequisites to strtoimax.m4.
84779
84780         Module xstrtoumax.
84781         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84782         jm_AC_PREREQ_XSTRTOUMAX.
84783         Moved the strtoul prerequisites to strtoul.m4.
84784         Moved the strtoull prerequisites to strtoull.m4.
84785         Moved the strtoumax prerequisites to strtoumax.m4.
84786
84787         Module chown.
84788         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84789         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84790
84791         Module dup2.
84792         * m4/dup2.m4: New file.
84793
84794         Module ftruncate.
84795         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84796         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84797
84798         Module getgroups.
84799         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84800         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84801
84802         Module gettimeofday.
84803         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84805         gl_PREREQ_GETTIMEOFDAY.
84806
84807         Module mkdir.
84808         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84809         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84810
84811         Module mkstemp.
84812         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84813         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84814         jm_AC_TYPE_UINTMAX_T.
84815         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84816
84817         Module stat.
84818         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84819         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84820
84821         Module lstat.
84822         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84823         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84824
84825         Module timespec.
84826         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84827         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84828         * m4/st_mtim.m4: Indentation.
84829
84830         Module nanosleep.
84831         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84832         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84833         gl_PREREQ_NANOSLEEP.
84834
84835         Module regex.
84836         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84837         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84838         (gl_REGEX): New macro.
84839
84840         Module rename.
84841         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84842         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84843
84844         Module rmdir.
84845         * m4/rmdir.m4: New file.
84846
84847         Module utime.
84848         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84849         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84850         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84851
84852         Module dirname.
84853         * m4/dirname.m4: New file.
84854
84855         Module getopt.
84856         * m4/getopt.m4: New file.
84857
84858         Module unistd-safer.
84859         * m4/unistd-safer.m4: New file.
84860
84861         Module fnmatch.
84862         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84863         declaration.
84864         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84865         (gl_FUNC_FNMATCH_POSIX): New macro.
84866         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84867         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84868         simply fnmatch.
84869
84870         Module exclude.
84871         * m4/exclude.m4: New file.
84872
84873         Module human.
84874         * m4/human.m4: New file.
84875
84876         Module acl.
84877         * m4/acl.m4: Nop.
84878
84879         Module backupfile.
84880         * m4/backupfile.m4: New file.
84881         * m4/d-ino.m4: Indentation.
84882
84883         Module fsusage.
84884         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84885         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84886         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84887
84888         Module dirfd.
84889         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84890         requirements.
84891
84892         Module euidaccess.
84893         * m4/euidaccess.m4: New file.
84894
84895         Module file-type.
84896         * m4/file-type.m4: New file.
84897
84898         Module fileblocks.
84899         * m4/fileblocks.m4: New file.
84900
84901         Module filemode.
84902         * m4/filemode.m4: New file.
84903
84904         Module isdir.
84905         * m4/isdir.m4: New file.
84906
84907         Module lchown.
84908         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84909         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84910
84911         Module makepath.
84912         * m4/makepath.m4: New file.
84913
84914         Module modechange.
84915         * m4/modechange.m4: New file.
84916
84917         Module mountlist.
84918         * m4/mountlist.m4: New file.
84919         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84920         Indentation.
84921
84922         Module path-concat.
84923         * m4/path-concat.m4: New file.
84924
84925         Module pathmax.
84926         * m4/pathmax.m4: New file.
84927
84928         Module same.
84929         * m4/same.m4: New file.
84930
84931         Module save-cwd.
84932         * m4/save-cwd.m4: New file.
84933
84934         Module savedir.
84935         * m4/savedir.m4: New file.
84936
84937         Module xgetcwd.
84938         * m4/xgetcwd.m4: New file.
84939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84940
84941         Module xreadlink.
84942         * m4/xreadlink.m4: New file.
84943
84944         Module safe-read.
84945         * m4/safe-read.m4: New file.
84946
84947         Module safe-write.
84948         * m4/safe-write.m4: New file.
84949
84950         Module closeout.
84951         * m4/closeout.m4: New file.
84952
84953         Module stdio-safer.
84954         * m4/stdio-safer.m4: New file.
84955
84956         Module getpass.
84957         * m4/getpass.m4: New file.
84958
84959         Module getugroups.
84960         * m4/getugroups.m4: New file.
84961
84962         Module group-member.
84963         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84964         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84965
84966         Module idcache.
84967         * m4/idcache.m4: New file.
84968
84969         Module userspec.
84970         * m4/userspec.m4: New file.
84971
84972         Module gettime.
84973         * m4/clock_time.m4: New file.
84974         * m4/gettime.m4: New file.
84975
84976         Module settime.
84977         * m4/settime.m4: New file.
84978
84979         Module posixtm.
84980         * m4/posixtm.m4: New file.
84981
84982         Module gethostname.
84983         * m4/gethostname.m4: New file.
84984
84985         Module canon-host.
84986         * m4/canon-host.m4: New file.
84987
84988         Module gettext.
84989         * m4/codeset.m4: New file, from gettext-0.11.5.
84990         * m4/gettext.m4: New file, from gettext-0.11.5.
84991         * m4/glibc21.m4: New file, from gettext-0.11.5.
84992         * m4/iconv.m4: New file, from gettext-0.11.5.
84993         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84994         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84995         * m4/inttypes.m4: New file, from gettext-0.11.5.
84996         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84997         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84998         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84999         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85000         * m4/lib-link.m4: New file, from gettext-0.11.5.
85001         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85002         * m4/progtest.m4: New file, from gettext-0.11.5.
85003         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85004         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85005         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85006
85007         Module localcharset.
85008         * m4/localcharset.m4: New file.
85009
85010         Module hard-locale.
85011         * m4/hard-locale.m4: New file.
85012
85013         Module mbswidth.
85014         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85015         onceonly macros.
85016         * m4/mbrtowc.m4: Add comment.
85017
85018         Module memcasecmp.
85019         * m4/memcasecmp.m4: New file.
85020
85021         Module memcoll.
85022         * m4/memcoll.m4: New file.
85023
85024         Module unicodeio.
85025         * m4/unicodeio.m4: New file.
85026
85027         Module rpmatch.
85028         * m4/rpmatch.m4: New file.
85029
85030         Module yesno.
85031         * m4/yesno.m4: New file.
85032
85033         Module exitfail.
85034         * m4/exitfail.m4: New file.
85035
85036         Module c-stack.
85037         * m4/c-stack.m4 (gl_C_STACK): New macro.
85038         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85039
85040         Module error.
85041         * m4/error.m4 (gl_ERROR): New macro.
85042         (jm_PREREQ_ERROR): Use onceonly macros.
85043
85044         Module fatal.
85045         * m4/fatal.m4: New file.
85046
85047         Module getloadavg.
85048         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85049         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85050
85051         Module getpagesize.
85052         * m4/getpagesize.m4: New file.
85053
85054         Module getusershell.
85055         * m4/getusershell.m4: New file.
85056
85057         Module physmem.
85058         * m4/physmem.m4: New file.
85059
85060         Module posixver.
85061         * m4/posixver.m4: New file.
85062
85063         Module quotearg.
85064         * m4/quotearg.m4: New file.
85065
85066         Module quote.
85067         * m4/quote.m4: New file.
85068
85069         Module readutmp.
85070         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85071
85072         Module sig2str.
85073         * m4/sig2str.m4: New file.
85074
85075         Other.
85076         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85077         ulonglong.m4.
85078         * m4/intmax_t.m4: New file.
85079         * m4/d-type.m4: Indentation.
85080         * m4/jm-macros.m4: Update.
85081         * m4/prereq.m4 (jm_PREREQ): Update.
85082         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85083         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85084         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85085         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85086         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85087         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85088         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85089         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85090         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85091         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85092         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85093         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85094         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85095         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85096         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85097         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85098         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85099         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85100         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85101
85102 2002-12-24  Bruno Haible  <bruno@clisp.org>
85103
85104         * MODULES.txt: Update according to m4/ changes.
85105
85106         Module gettext.
85107         * config.rpath: New file, from gettext-0.11.5.
85108
85109         * modules/*: New module descriptions.
85110         * gnulib-tool: New file.
85111         * MODULES.html.sh: New file.
85112
85113 2002-12-21  Karl Berry  <karl@gnu.org>
85114
85115         * doc/fdl.texi: update to version 1.2.
85116
85117 2002-12-19  Karl Berry  <karl@gnu.org>
85118
85119         * config/config.guess: update from prep.
85120
85121 2002-12-18  Bruno Haible  <bruno@clisp.org>
85122
85123         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85124         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85125
85126 2002-12-17  Bruno Haible  <bruno@clisp.org>
85127
85128         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85129         stdlib.h, string.h.
85130
85131 2002-12-17  Bruno Haible  <bruno@clisp.org>
85132
85133         * lib/canon-host.c (strdup): Remove unused declaration.
85134
85135         * lib/fsusage.c: Include full_read.h.
85136         (get_fs_usage): Use full_read instead of safe_read.
85137
85138         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85139
85140 2002-12-12  Karl Berry  <karl@gnu.org>
85141
85142         * config/config.guess: update from prep.
85143
85144 2002-12-11  Bruno Haible  <bruno@clisp.org>
85145
85146         * m4/setenv.m4: New file, from gettext-0.11.5.
85147
85148 2002-12-11  Bruno Haible  <bruno@clisp.org>
85149
85150         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85151         not unsetenv().
85152         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85153         modifications:
85154
85155         2002-12-11  Bruno Haible  <bruno@clisp.org>
85156
85157                 * setenv.c (alloca): Fall back to malloc.
85158                 (freea): New macro.
85159                 (setenv): Use freea() to free memory allocated with alloca().
85160
85161         2002-11-13  Bruno Haible  <bruno@clisp.org>
85162
85163                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85164                 function declarations.
85165                 * unsetenv.c (unsetenv): Likewise.
85166
85167         2002-03-04  Bruno Haible  <bruno@clisp.org>
85168
85169                 Portability to AIX 4.3.3.
85170                 * unsetenv.c: New file, extracted from setenv.c.
85171                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85172
85173         2001-12-20  Bruno Haible  <bruno@clisp.org>
85174
85175                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85176                 use malloc instead. For SunOS 4.
85177
85178         2001-12-11  Bruno Haible  <bruno@clisp.org>
85179
85180                 * setenv.c: Declare alloca.
85181                 (compar_fn_t): New typedef.
85182                 (KNOWN_VALUE, STORE_VALUE): Use it.
85183
85184         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85185         setenv.h.
85186
85187 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85188
85189         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85190         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85191         Choose values that are less likely to collide with system fnmatch
85192         options.
85193         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85194         defined (e.g., a pure POSIX system).
85195         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85196         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85197
85198 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85199
85200         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85201         a pain in practice to deal with generated m4 files.  This change
85202         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85203
85204         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85205         and jm-glibc-io.m4, as they are no longer a special case.
85206         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85207         kludge and the auto-generation stuff.  Check only whether the
85208         functions are declared, not whether they exist, since older hosts
85209         that don't declare the functions can't use the optimization anyway.
85210
85211 2002-12-06  Jim Meyering  <jim@meyering.net>
85212
85213         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85214
85215         Merge in changes from libc's misc/error.c, in preparation
85216         for the merge of gnulib's changes back into libc.
85217
85218         * lib/error.c (_): Define only if not already defined.
85219         Move definition to follow all #include directives.
85220         Include unlocked-io.h only if !_LIBC.
85221         [_LIBC]: Include <libio/libioP.h>.
85222         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85223         (fflush): Tweak definition to use INTUSE.
85224         (putc): Define.
85225
85226 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85227
85228         * lib/alloca.c [defined emacs]: Include "lisp.h".
85229         (xalloc_die) [defined emacs]: New macro.
85230         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85231         [! defined emacs]: Include <xalloc.h>.
85232         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85233         (pointer): Typedef to POINTER_TYPE *.
85234         (malloc): Remove decl; we now always use xmalloc.
85235         (alloca): Use old-style definition, since Emacs needs this.
85236         Check for arithmetic overflow when computing combined size.
85237
85238 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85239
85240         Do not generate unlocked-io.h automatically, since it's easier to
85241         maintain it by hand.
85242
85243         * lib/unlocked-io.h: New file, from GNU diffutils,
85244         but with proper copyright notice and attribution.
85245         * lib/gen-uio: Remove.
85246         * lib/Makefile.am: Add copyright notice.
85247         (libfetish_a_SOURCES): Add unlocked-io.h.
85248         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85249         (DISTCLEANFILES, io_functions): Remove macros.
85250         (EXTRA_DIST): Remove gen_uio.
85251         (unlocked-io.h): Remove rule.
85252
85253 2002-12-04  Jim Meyering  <jim@meyering.net>
85254
85255         Reflect the fact that stat.c and lstat.c are no longer generated.
85256         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85257         (DISTCLEANFILES): Likewise.
85258         (EXTRA_DIST): Likewise.
85259         (all_local): Don't depend on stat.c or lstat.c.
85260         (stat.c, lstat.c): Remove rules.
85261         (EXTRA_DIST): Remove xstat.in.
85262
85263         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85264         * lib/stat.c: New file.  Contents mostly from xstat.in.
85265         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85266         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85267
85268         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85269         too.
85270         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85271
85272 2002-12-03  Jim Meyering  <jim@meyering.net>
85273
85274         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85275         but not semantics, to minimize the differences between these two files.
85276         (safe_read): Change comment to mention SAFE_READ_ERROR.
85277
85278         * lib/safe-read.c (IS_EINTR): Define.
85279         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85280
85281 2002-12-02  Jim Meyering  <jim@meyering.net>
85282
85283         * lib/safe-read.c (EINTR): Define.
85284         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85285         (INT_MAX): Provide fallback.
85286         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85287
85288         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85289
85290 2002-12-02  Bruno Haible  <bruno@clisp.org>
85291
85292         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85293         Define, taken from safe-read.c.
85294         (INT_MAX): Provide fallback.
85295         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85296         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85297
85298         * lib/safe-read.c (EINTR): Remove definition.
85299         (safe_read): Don't use EINTR if it is absent.
85300
85301 2002-12-01  Jim Meyering  <jim@meyering.net>
85302
85303         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85304         zero.
85305         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85306
85307 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85308
85309         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85310         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85311         with `if (! (value < limit)) abort ();', for readability.
85312
85313 2002-11-26  Karl Berry  <karl@gnu.org>
85314
85315         * lib/strdup.c: copy from libc again, with jim's ok.
85316         * lib/.cppi-disable: re-add strdup.c
85317
85318 2002-11-25  Karl Berry  <karl@gnu.org>
85319
85320         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85321         instead of "strtol.c".
85322
85323 2002-11-25  Karl Berry  <karl@gnu.org>
85324
85325         * config/install-sh: update from automake for variable quoting, $0 in
85326         error msgs, etc.
85327
85328         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85329         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85330         entry.
85331
85332 2002-11-25  Jim Meyering  <jim@meyering.net>
85333
85334         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85335
85336 2002-11-24  Karl Berry  <karl@gnu.org>
85337
85338         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85339         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85340
85341 2002-11-24  Jim Meyering  <jim@meyering.net>
85342
85343         Update from coreutils:
85344
85345         * lib/mktime.c: Merge in changes from libc.
85346
85347         Avoid a link-time failure on some Linux systems.
85348         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85349         (otherwise).
85350         (__mon_yday): Declare with the STATIC attribute.
85351         (__mktime_internal): Likewise.
85352         Based on a report from Greg Schafer.
85353
85354 2002-11-23  Jim Meyering  <jim@meyering.net>
85355
85356         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85357         Use `unsigned', not `int', as type of index.
85358
85359         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85360
85361         * lib/fsusage.c: Remove unneeded parentheses around operands of
85362         `defined'.
85363
85364 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85365
85366         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85367         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85368         so that we can be included first.
85369         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85370         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85371         No need to include stddef.h or sys/types.h any more.
85372         Surround local include files with "", not "<>".
85373         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85374         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85375         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85376         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85377         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85378         (ISPRINT): Remove; no longer needed now that we assume C89.
85379
85380         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85381         Preserve errno.
85382
85383         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85384         quotearg_char): Use SIZE_MAX rather than
85385         (size_t) -1 when we are talking about "infinity".
85386
85387         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85388
85389 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85390
85391         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85392         hint that one should use `if (! x) abort ();' rather than `assert
85393         (x);', and anyway it's one less thing to worry about configuring.
85394         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85395         hash_rehash, hash_insert): Use abort rather than assert.
85396
85397 2002-11-22  Bruno Haible  <bruno@clisp.org>
85398
85399         * lib/safe-read.h: Assume C89. Add comments.
85400         (safe_read): Change return type to size_t.
85401         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85402         byte counts > SSIZE_MAX correctly.
85403         * lib/safe-write.h: New file.
85404         * lib/safe-write.c: New file.
85405         * lib/full-read.h: New file.
85406         * lib/full-read.c: New file.
85407         * lib/full-write.h: Assume C89. Add comments.
85408         * lib/full-write.c: Include safe-write.h.
85409         (full_write): Rewritten to use safe_write.
85410         Suggested by Jim Meyering and Paul Eggert.
85411
85412 2002-11-21  Jim Meyering  <jim@meyering.net>
85413
85414         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85415
85416         Merge in changes from the coreutils.
85417
85418         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85419         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85420         <stdint.h>.
85421         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85422         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85423         int.  Work more efficiently if X is the same width as uintmax_t.
85424         Do not compare X to -1, to avoid bogus compiler warning.
85425         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85426         Don't assume that f_frsize and f_bsize are the same type.
85427
85428         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85429         warning on FreeBSD.
85430
85431         * lib/makepath.c (make_path): Restore umask *before* creating the final
85432         component.
85433         (make_path): Minor reformatting.
85434
85435         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85436         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85437         HAVE_MALLOC/HAVE_REALLOC.
85438
85439         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85440         dummy ones.  At least on GNU/Linux systems, `auto' means something
85441         else.
85442         From Michael Stone.
85443
85444 2002-11-21  Bruno Haible  <bruno@clisp.org>
85445
85446         Remove case insensitive option matching.
85447         * lib/argmatch.h (argcasematch): Remove declaration.
85448         (ARGCASEMATCH): Remove macro.
85449         (__xargmatch_internal): Remove case_sensitive argument.
85450         (XARGMATCH): Update.
85451         (XARGCASEMATCH): Remove macro.
85452         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85453         case_sensitive argument.
85454         (argcasematch): Remove function.
85455         (__xargmatch_internal): Remove case_sensitive argument.
85456         (main): Use XARGMATCH instead of XARGCASEMATCH.
85457
85458         * lib/xmalloc.c: Change compile-time error message. Add comment about
85459         required autoconf version.
85460
85461 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85462
85463         Merge argmatch cleanups from Bison.  Assume C89.
85464
85465         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85466         Include stdlib.h, for EXIT_FAILURE.
85467         Always include <string.h>, since we assume C89.
85468         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85469         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85470         Include <stddef.h> instead, since it's all we need for size_t.
85471         (PARAMS): Remove.  All uses removed.
85472         (ARRAY_CARDINALITY): Do not bother to #undef.
85473         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85474         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85475         Remove unnecessary parentheses.
85476         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85477         Insert necessary parentheses.
85478         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85479         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85480
85481 2002-11-19  Bruno Haible  <bruno@clisp.org>
85482
85483         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85484         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85485
85486         * lib/mbswidth.h (PARAMS): Remove macro.
85487         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85488         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85489
85490         * lib/gcd.h (PARAMS): Remove macro.
85491         (gcd): Use ANSI C function declarations.
85492         * lib/gcd.c (gcd): Likewise.
85493
85494 2002-11-15  Bruno Haible  <bruno@clisp.org>
85495
85496         * lib/strcspn.c: Include <stddef.h>.
85497         (strcspn): Use ANSI C function declaration. Change return type to
85498         size_t. Use NULL.
85499         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85500         (strpbrk): Use NULL.
85501         * lib/strpbrk.h (PARAMS): Remove macro.
85502         (strpbrk): Use ANSI C function declaration.
85503         * lib/strstr.c: Don't include <sys/types.h>.
85504         * lib/strstr.h (PARAMS): Remove macro.
85505         (strstr): Use ANSI C function declarations.
85506
85507 2002-11-14  Karl Berry  <karl@gnu.org>
85508
85509         * config/mkinstalldirs: `do' on separate line, instead of
85510         `for var; do'.
85511
85512 2002-11-06  Bruno Haible  <bruno@clisp.org>
85513
85514         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85515         * lib/gcd.c (gcd): Likewise.
85516
85517 2002-11-05  Bruno Haible  <bruno@clisp.org>
85518
85519         * lib/gcd.h: New file, from gettext-0.11.5.
85520         * lib/gcd.c: New file, from gettext-0.11.5.
85521
85522 2002-11-05  Bruno Haible  <bruno@clisp.org>
85523
85524         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85525         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85526         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85527         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85528
85529         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85530         <libintl.h>.
85531         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85532         <libintl.h>.
85533
85534         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85535         * lib/human.c: Include gettext.h instead of <libintl.h>.
85536         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85537         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85538         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85539         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85540         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85541         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85542         (textdomain): Remove definition.
85543         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85544
85545         * lib/long-options.c: Remove include of <libintl.h> and definition of
85546         _.
85547         * lib/same.c: Remove include of <libintl.h> and definition of _.
85548
85549 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85550
85551         * lib/config.charset: A few additions for Solaris.
85552
85553 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85554
85555         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85556         * lib/localcharset.c (locale_charset): Declare as extern "C".
85557
85558 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85559
85560         * lib/config.charset: msdos in uk_UA uses CP1125.
85561
85562 2002-11-04  Bruno Haible  <bruno@clisp.org>
85563
85564         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85565         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85566         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85567         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85568         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85569
85570 2002-11-04  Bruno Haible  <bruno@clisp.org>
85571
85572         * lib/localcharset.c (locale_charset): Don't return an empty string.
85573
85574 2002-11-04  Bruno Haible  <bruno@clisp.org>
85575
85576         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85577         aliases.
85578
85579 2002-11-04  Bruno Haible  <bruno@clisp.org>
85580
85581         * lib/config.charset: Update for newest glibc. Add canonical names
85582         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85583
85584 2002-11-04  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/config.charset: Add support for NetBSD.
85587
85588 2002-11-04  Bruno Haible  <bruno@clisp.org>
85589
85590         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85591
85592 2002-11-01  Bruno Haible  <bruno@clisp.org>
85593
85594         * configure.in: Add AC_CONFIG_AUX_DIR call.
85595         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85596         test/Makefile.
85597         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85598
85599 2002-09-28  Karl Berry  <karl@gnu.org>
85600
85601         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85602         installed automake until the next release, since changes have been
85603         made.
85604
85605 2002-09-25  Karl Berry  <karl@gnu.org>
85606
85607         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85608         * lib/getopt*: copy from libc/posix.
85609         * lib/gettext.h: copy from gettext.
85610         * lib/.cppi-disable: add strdup.c, gettext.h.
85611
85612 2002-09-25  Karl Berry  <karl@gnu.org>
85613
85614         * config/srclist.txt: enable gettext.h check.
85615         * config/config.{guess,sub}: update from prep.
85616         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85617                 from automake 1.6.3.
85618         See srclist*.
85619
85620 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85621
85622         * regex.c (PATFETCH): Remove the translating fetch.
85623         (PATFETCH_RAW): Rename to PATFETCH.
85624         (set_image_of_range): New fun.
85625         (SET_RANGE_TABLE_WORK_AREA): Use it.
85626         (regex_compile): Don't translate the pattern chars so eagerly.
85627         Only do it when inserting an `exactn' bytecode or when handling
85628         a char-range.
85629         (mutually_exclusive_p): Avoid empty statement.
85630
85631 2002-07-06  Jim Meyering  <meyering@lucent.com>
85632
85633         * m4/README: Don't mention Makefile.am.in.
85634         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85635
85636 2002-07-01  Jim Meyering  <meyering@lucent.com>
85637
85638         * lib/c-stack.c: Include sys/time.h.
85639         From Volker Borchert.
85640
85641 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85642
85643         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85644
85645 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85646
85647         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85648         New macro.  Use it uniformly instead of
85649         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85650         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85651         reported by Vin Shelton.
85652
85653 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85654
85655         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85656         Do not assume SA_SIGINFO behavior.
85657         Bug reported by Jim Meyering on NetBSD 1.5.2.
85658
85659 2002-06-22  Jim Meyering  <meyering@lucent.com>
85660
85661         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85663
85664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85665         now that configure.ac uses AC_GNU_SOURCE.
85666         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85667         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85668
85669         Update to latest tools.  Suggestions from Paul Eggert.
85670         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85671         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85672         * m4/fnmatch.m4: Likewise.
85673         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85674         to AC_HEADER_STDBOOL
85675
85676 2002-06-22  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85679         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85680
85681 2002-06-22  Jim Meyering  <meyering@lucent.com>
85682
85683         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85684
85685         * lib/exitfail.c, exitfail.h: Likewise.
85686         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85687
85688         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85689         of fnmatch.h.
85690         (EXTRA_DIST): Add fnmatch_loop.c.
85691         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85692
85693         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85694         * lib/fnmatch.c: Update from diffutils-2.8.2.
85695         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85696         * lib/fnmatch.h: Remove file.
85697
85698 2002-06-21  Jim Meyering  <meyering@lucent.com>
85699
85700         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85701         * m4/mbrtowc.m4: Likewise.
85702
85703         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85704         * m4/mbswidth.m4: Reflect name change:
85705         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85706         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85707
85708         * m4/lib-link.m4: Update from gettext-0.11.2.
85709         * m4/gettext.m4: Likewise.
85710
85711         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85712         From Alfred M. Szmidt.
85713
85714 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85715
85716         * lib/file-type.h: Report an error if neither S_ISREG nor
85717         S_IFREG is defined, instead of using a test specific to glibc
85718         2.2.  This should be safe, since POSIX requires S_ISREG and
85719         Unix Version 7 had S_IFREG.  We don't need to check for
85720         <sys/types.h> since we don't use any symbols that it defines.
85721
85722 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85723
85724         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85725         $@-t, so that each temporary file name is unique and valid in the first
85726         8 characters, for operation under DOS.
85727
85728 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85729
85730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85731
85732 2002-06-15  Jim Meyering  <meyering@lucent.com>
85733
85734         Work even with DJGPP 2.03, which lacks support for symlinks.
85735         From Richard Dawe.
85736         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85737         is defined.
85738         * lib/lchown.c (S_ISLNK): Likewise.
85739
85740 2002-06-15  Jim Meyering  <meyering@lucent.com>
85741
85742         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85743         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85744         have been included before this file.
85745
85746 2002-06-14  Jim Meyering  <meyering@lucent.com>
85747
85748         * lib/file-type.h: Use the version from diffutils-2.8.2.
85749         * lib/file-type.c: Likewise.
85750
85751 2002-06-07  Jim Meyering  <meyering@lucent.com>
85752
85753         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85754         They're needed at least for NetBSD 1.5.2.
85755         ($statxfs_includes): Include those same headers.
85756         ($statxfs_includes): Include sys/vfs.h if available.
85757         ($statxfs_includes): Likewise for sys/statvfs.h.
85758         Check for the following members in both structs statfs and statvfs:
85759         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85760
85761 2002-06-01  Jim Meyering  <meyering@lucent.com>
85762
85763         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85764         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85765
85766 2002-05-28  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85769         Reported by Volker Borchert.
85770
85771 2002-05-27  Jim Meyering  <meyering@lucent.com>
85772
85773         Fix a problem seen only on nonconforming systems whereby ls.c's
85774         use of localtime, and then of gettimeofday would cause trouble:
85775         the localtime call used to initialize rpl_gettimeofday's save
85776         mechanism would clobber ls's current local time information so
85777         that in any long listing the first file would always be listed
85778         with date 1970-01-01.  Analysis by Volker Borchert.
85779
85780         * lib/gettimeofday.c (localtime): Undefine.
85781         (rpl_localtime): New function.
85782
85783 2002-05-27  Jim Meyering  <meyering@lucent.com>
85784
85785         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85786         localtime.
85787
85788         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85789         use the replacement function; it wouldn't resolve at link time.
85790         Reported by Volker Borchert.
85791
85792 2002-05-22  Jim Meyering  <meyering@lucent.com>
85793
85794         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85795         file-type.h.
85796         * lib/file-type.h: New file.
85797         * lib/file-type.c (file_type): New file/function.  Extracted from
85798         diffutils.
85799
85800 2002-04-30  Jim Meyering  <meyering@lucent.com>
85801
85802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85803
85804 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85805
85806         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85807
85808 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85809
85810         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85811         Do not check for alloca.h (no longer used) or stdbool.h (was never
85812         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85813
85814 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85815
85816         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85817
85818 2002-04-29  Jim Meyering  <meyering@lucent.com>
85819
85820         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85821         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85822         Use AC_FUNC_STRNLEN here instead.
85823
85824         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85825         With autoconf-2.53a, it's part of AC_PROG_CC.
85826
85827 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85828
85829         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85830         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85831
85832 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85833
85834         * lib/sig2str.h, lib/sig2str.c: New files.
85835         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85836
85837 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85838
85839         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85840         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85841         of 127, since 64 is the largest conceivable number for ancient
85842         nonstandard hosts.
85843         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85844
85845 2002-04-28  Jim Meyering  <meyering@lucent.com>
85846
85847         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85848
85849 2002-04-24  Jim Meyering  <meyering@lucent.com>
85850
85851         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85852         (jm_PREREQ): Use it.
85853
85854         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85855         mach/mach.h fcntl.h.
85856         Check for this function: setlocale.
85857
85858 2002-04-24  Jim Meyering  <meyering@lucent.com>
85859
85860         * lib/gettext.h: New file, from Gettext.
85861         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85862         (libfetish_a_SOURCES): Add gettext.h.
85863
85864 2002-04-16  Jim Meyering  <meyering@lucent.com>
85865
85866         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85867         ut_pid, ut_id, ut_exit.
85868
85869 2002-04-16  Jim Meyering  <meyering@lucent.com>
85870
85871         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85872         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85873         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85874
85875 2002-04-12  Jim Meyering  <meyering@lucent.com>
85876
85877         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85878         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85879         existence of the getmntinfo function.  Needed for Darwin 5.3.
85880
85881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85882         This is necessary at least on Darwin 5.3.
85883
85884         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85885         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85886         strnlen.o in the library, and that makes some versions of ranlib
85887         object.
85888
85889 2002-04-12  Jim Meyering  <meyering@lucent.com>
85890
85891         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85892
85893 2002-04-09  Jim Meyering  <meyering@lucent.com>
85894
85895         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85896         to be more precise.  Rather than saying we're checking whether the
85897         function `works', say what we're testing.
85898         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85899         Reported by Bruno Haible.
85900
85901 2002-03-10  Jim Meyering  <meyering@lucent.com>
85902
85903         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85904         Suggestion from Santiago Vila.
85905
85906 2002-03-08  Jim Meyering  <meyering@lucent.com>
85907
85908         * lib/rename.c: Mention that this wrapper is needed also on
85909         mips-dec-ultrix4.4 systems.
85910
85911 2002-03-02  Jim Meyering  <meyering@lucent.com>
85912
85913         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85914         not HAVE_CLOCK_SETTIME.
85915
85916 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85917
85918         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85919         Check for clock_settime.
85920
85921 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85922
85923         * lib/nanosleep.h: Rename to....
85924         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85925
85926         * lib/gettime.c: New file.
85927         * lib/settime.c: New file.
85928         * lib/stime.c: Remove.
85929
85930         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85931         timespec.h.  Remove nanosleep.h.
85932
85933 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85934
85935         * m4/acl.m4: New file.
85936         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85937         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85938
85939 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85940
85941         * lib/acl.c, lib/acl.h: New files.
85942         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85943
85944 2002-02-24  Jim Meyering  <meyering@lucent.com>
85945
85946         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85947         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85948         cause trouble.  Reported by Nelson Beebe.
85949
85950 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85951
85952         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85953         compilers that don't know that xalloc_die never returns.
85954
85955 2002-02-20  Jim Meyering  <meyering@lucent.com>
85956
85957         * lib/getdate.c: Regenerate using bison-1.33.
85958
85959 2002-02-17  Jim Meyering  <meyering@lucent.com>
85960
85961         * config/config.guess (main): Don't use `head -1'; it's no longer
85962         portable. Use `sed 1q' instead.
85963
85964 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85965
85966         * m4/codeset.m4: Upgrade to gettext-0.11.
85967         * m4/gettext.m4: Upgrade to gettext-0.11.
85968         * m4/glibc21.m4: Upgrade to gettext-0.11.
85969         * m4/iconv.m4: Upgrade to gettext-0.11.
85970         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85971         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85972         * m4/lib-ld.m4: New file, from gettext-0.11.
85973         * m4/lib-link.m4: New file, from gettext-0.11.
85974         * m4/lib-prefix.m4: New file, from gettext-0.11.
85975         * m4/progtest.m4: Upgrade to gettext-0.11.
85976
85977 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85978
85979         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85980         (jm_PREREQ): Use it.
85981
85982 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85983
85984         * lib/posixver.c, lib/posixver.h: New files.
85985         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85986
85987 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85988             Bruno Haible  <bruno@clisp.org>
85989
85990         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85991         (fwrite_success_callback): New declaration.
85992         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85993         print_unicode_char. Call failure callback instead of error.
85994         (fwrite_success_callback): New function.
85995         (exit_failure_callback): New function.
85996         (fallback_failure_callback): New function.
85997         (print_unicode_char): Call unicode_to_mb.
85998
85999 2002-01-26  Jim Meyering  <meyering@lucent.com>
86000
86001         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86002         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86003
86004 2002-01-26  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86007
86008 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86009
86010         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86011
86012 2002-01-22  Jim Meyering  <meyering@lucent.com>
86013
86014         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86015         Otherwise, some versions of automake would omit the rule that makes
86016         Makefile from Makefile.in.
86017
86018 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86019
86020         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86021         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86022         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86023         (memcoll): Set errno to zero if there is no error.
86024
86025         * lib/quotearg.c (quotearg_buffer_restyled):
86026         Fix bug with quoting buffers containing NUL when backslashing escapes.
86027         This bug was exposed by the other changes in this patch.
86028         (quotearg_n_options): New arg ARGSIZE.
86029         All callers changed.
86030         (quoting_options_from_style): New function.
86031         (quotearg_n_style): Use it.
86032         (quotearg_n_style_mem): New function.
86033
86034         * lib/quotearg.h (quotearg_n_style_mem): New function.
86035
86036 2002-01-19  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86039         Remove useless quotes: DF_PROG="df".
86040         * m4/strnlen.m4: New file.
86041
86042 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86043
86044         * lib/backupfile.c (ISDIGIT): Comment fix.
86045         * lib/getdate.y (ISDIGIT): Likewise.
86046         * lib/posixtm.c (ISDIGIT, year): Likewise.
86047         * lib/strverscmp.c (ISDIGIT): Likewise.
86048         * lib/userspec.c (ISDIGIT): Likewise.
86049
86050 2002-01-16  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/getdate.y: Add three semicolons, each just before a closing
86053         brace. Bison (as of version 1.31) no longer papers over that mistake.
86054
86055 2002-01-05  Jim Meyering  <meyering@lucent.com>
86056
86057         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86058
86059 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86060
86061         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86062         not silently exit merely because the output buffer happens to
86063         have nothing pending.
86064
86065 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86066
86067         See the big note in ../ChangeLog.
86068         * lib/human.c (suffixes): Prefer K to k for 1024.
86069         (generate_suffix_backwards): New function.
86070         (human_readable_inexact): Use it.
86071         * lib/xstrtol.c (__xstrtol): If there is no number but there
86072         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86073         Accept 'K' as well as 'k'.
86074
86075 2001-12-15  Jim Meyering  <meyering@lucent.com>
86076
86077         * lib/regex.h (__restrict_arr): Update from libc.
86078
86079         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86080         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86081         (STREQ): Define.
86082
86083 2001-12-14  Jim Meyering  <meyering@lucent.com>
86084
86085         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86086         Suggestion from Bruno Haible.
86087
86088 2001-12-10  Jim Meyering  <meyering@lucent.com>
86089
86090         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86091         xrealloc, Instead, include "xalloc.h".
86092         (initbuffer): Don't cast xmalloc return value to char*.
86093         (readline): Reword comment.
86094         Don't cast xrealloc return value to char*
86095         Return NULL, not 0.
86096
86097 2001-12-09  Jim Meyering  <meyering@lucent.com>
86098
86099         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86100         about `signed and unsigned type in conditional expression'.
86101         * lib/posixtm.c (posix_time_parse): Likewise.
86102
86103         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86104
86105         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86106         to avoid a pedantic warning.
86107
86108         * lib/getstr.c: Don't include assert.h.
86109         (getstr): Remove warning-evoking assertions.
86110         Return -1 if offset parameter is out of bounds.
86111         Change the type of a local from int to size_t.
86112
86113         * lib/strftime.c (my_strftime_localtime_r): Include this function
86114         definition in the `#if ! HAVE_TM_GMTOFF' block.
86115
86116         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86117         Include xalloc.h instead.
86118
86119 2001-12-02  Jim Meyering  <meyering@lucent.com>
86120
86121         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86122         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86123         included.
86124
86125         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86126         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86127
86128 2001-11-30  Akim Demaille  <akim@epita.fr>
86129
86130         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86131         before being defined.
86132
86133 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86134
86135         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86136         First arg is int, not unsigned.
86137         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86138         (SIZE_MAX, UINT_MAX): New macros.
86139         (quotearg_n_options): Abort if N is negative.
86140         Avoid overflow check on hosts where size_t is 64 bits and int
86141         is 32 bits, as overflow is impossible there.
86142         Fix off-by-one typo that caused unnecessary reallocation.
86143
86144 2001-11-27  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/tempname.c: Merge with version from libc.
86147         * lib/regex.c: Likewise.
86148
86149         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86150         systems for which STDC_HEADERS is 0, it was not included, resulting in
86151         a warning about an integer-to-pointer conversion problem with getenv.
86152         Reported by Volker Borchert.
86153
86154 2001-11-26  Jim Meyering  <meyering@lucent.com>
86155
86156         * lib/gtod.h: Remove file.
86157         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86158         * lib/gettimeofday.c: Don't include gtod.h.
86159         (GTOD_init): Remove function.
86160         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86161         Suggestion from Volker Borchert.
86162
86163 2001-11-23  Jim Meyering  <meyering@lucent.com>
86164
86165         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86166         it.
86167         * lib/hash.c (struct hash_table): Define it here instead.
86168
86169 2001-11-22  Jim Meyering  <meyering@lucent.com>
86170
86171         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86172
86173 2001-11-20  Jim Meyering  <meyering@lucent.com>
86174
86175         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86176         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86177
86178 2001-11-19  Jim Meyering  <meyering@lucent.com>
86179
86180         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86181         directory.  Use "conftestXXXXXX" as the template.
86182         Suggestion from Paul Eggert.
86183
86184         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86185         immediately, so the test doesn't mistakenly hit the max-open-files
86186         limit.
86187
86188 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86191         (TEMPORARIES): New macro.
86192         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86193         removes an artificial limitation (e.g. HP-UX 10.20, where
86194         TMP_MAX is 17576).
86195
86196 2001-11-18  Jim Meyering  <meyering@lucent.com>
86197
86198         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86199
86200 2001-11-18  Jim Meyering  <meyering@lucent.com>
86201
86202         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86203         on SunOS 4.
86204
86205         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86206         files will be created before anything else.
86207
86208 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86209
86210         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86211         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86212
86213 2001-11-17  Jim Meyering  <meyering@lucent.com>
86214
86215         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86216         Prompted by a report from Bob Proulx.
86217
86218         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86219         Instead, require UTILS_FUNC_MKSTEMP.
86220
86221 2001-11-17  Jim Meyering  <meyering@lucent.com>
86222
86223         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86224         Now, that's done as part of AC_FUNC_STRTOD.
86225
86226 2001-11-17  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86229         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86230         rather than group writable.  Patch by Juan F. Codagnone.
86231
86232         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86233         xrealloc, Instead, include "xalloc.h".
86234
86235         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86236         Remove explicit declarations of xmalloc, xrealloc,
86237         and xstrdup.  Instead, include "xalloc.h".
86238
86239         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86240         unlocked-io.h.
86241         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86242         Likewise.
86243         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86244
86245         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86246         Reported by Padraig Brady.
86247
86248         * lib/mkstemp.c: #undef mkstemp.
86249         Include config.h.
86250         (rpl_mkstemp): Rename from mkstemp.
86251         Protoize.
86252
86253 2001-11-16  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86256         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86257         determine the amount of total physical memory, use pstat_getstatic.
86258         HPUX-11 doesn't define _SC_PHYS_PAGES.
86259         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86260         If sysconf couldn't be used to determine the amount of available
86261         physical memory, use both pstat_getstatic and pstat_getdynamic.
86262         Based on a patch from Bob Proulx.
86263
86264 2001-11-10  Jim Meyering  <meyering@lucent.com>
86265
86266         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86267         (jm_PREREQ): Use it.
86268
86269 2001-11-09  Jim Meyering  <meyering@lucent.com>
86270
86271         * m4/jm-macros.m4: Require autoconf-2.52f.
86272         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86273         Use these AC_-prefixed names, not the AM_-prefixed ones.
86274
86275         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86276
86277 2001-11-05  Jim Meyering  <meyering@lucent.com>
86278
86279         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86280
86281 2001-11-04  Jim Meyering  <meyering@lucent.com>
86282
86283         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86284         $DEFS.
86285
86286 2001-11-03  Jim Meyering  <meyering@lucent.com>
86287
86288         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86289         of AC_DEFUN.
86290
86291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86292         know the name of the variable in the macro definition.
86293
86294 2001-11-03  Jim Meyering  <meyering@lucent.com>
86295
86296         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86297         in argmatch_to_argument call.
86298
86299         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86300         argument.
86301
86302         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86303         e.g., a fault due to an attempt to free a NULL pointer.
86304
86305 2001-11-01  Jim Meyering  <meyering@lucent.com>
86306
86307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86308         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86309
86310 2001-11-01  Jim Meyering  <meyering@lucent.com>
86311
86312         * lib/dirfd.c, lib/dirfd.h: New files.
86313         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86314
86315         * lib/hash.c (hash_print) [TESTING]: Clean up.
86316
86317 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86318
86319         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86320         to avoid a warning if -Wall.
86321
86322 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86323
86324         * README: New file
86325         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86326         (per RMS's instructions, this is now the canonical source)
86327         * lgpl/, gpl/: New directories.
86328
86329 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86330
86331         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86332
86333 2001-10-21  Jim Meyering  <meyering@lucent.com>
86334
86335         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86336         this code would end up calling gettext even in packages built
86337         with --disable-nls.
86338         * lib/getopt.c (_): Likewise.
86339         * lib/regex.c (_): Likewise.
86340
86341 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86342
86343         * m4/error.m4 (jm_PREREQ_ERROR):
86344         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86345         AC_FUNC_STRERROR_R does that.
86346         Check for strerror declaration.
86347
86348         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86349         are supposed to have them these days.
86350         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86351         Merge changes from latest Autoconf CVS.
86352         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86353         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86354         POSIX decided to standardize on the int flavor of strerror_r.
86355
86356 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86357
86358         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86359         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86360         Use strerror_r that is only a macro, even if it is not a function.
86361         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86362         (private_strerror): Use prototypes, not old-style function definition.
86363         (print_errno_message): New function.
86364         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86365         char*-flavored one.
86366         (error_tail, error, error_at_line): Use it.
86367
86368 2001-10-11  Jim Meyering  <meyering@lucent.com>
86369
86370         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86371         and quote_n (1, ... to avoid clobbering a buffer.
86372
86373 2001-10-05  Jim Meyering  <meyering@lucent.com>
86374
86375         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86376         hash-pjw.h.
86377         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86378         * lib/hash-pjw.h: New file.
86379
86380 2001-09-30  Jim Meyering  <meyering@lucent.com>
86381
86382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86383         `struct fsstat' has the `f_fstypename' member.
86384         Use that to define FS_TYPE, which is now used to make
86385         the getfsstat link test tighter.
86386
86387 2001-09-30  Jim Meyering  <meyering@lucent.com>
86388
86389         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86390         Include <sys/ucred.h>, for Apple Darwin.
86391         Include sys/mount.h and sys/fs_types.h only if available.
86392         (FS_TYPE): Define.
86393         (read_filesystem_list): Use FS_TYPE.
86394
86395 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86396
86397         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86398         a boolean context.
86399
86400 2001-09-29  Jim Meyering  <meyering@lucent.com>
86401
86402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86403         [one-argument getmntent function]): Include stdio.h before mntent.h.
86404         SunOS 4.1.x needs it for the declaration of `FILE'.
86405         Patch by Volker Borchert.
86406
86407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86408         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86409         sys/fs_types.h, and make the link-test for getfsstat guard #include
86410         directives with appropriate #if HAVE_*_H tests so that we can
86411         detect getfsstat on Apple Darwin1.3.7 systems.
86412         Reported by Nelson Beebe.
86413         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86414
86415 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86416
86417         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86418         #defines strtoimax.  Also treat the other strto* functions
86419         like strtoimax.
86420
86421         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86422         Check for strtoul and strtoumax,
86423         as those declarations are made even in the signed case.
86424         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86425         Likewise, for strtol and strtoimax.
86426
86427 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86428
86429         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86430         #defines strtoimax.  Also treat the other strto* functions
86431         like strtoimax.
86432
86433         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86434         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86435         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86436
86437 2001-09-26  Jim Meyering  <meyering@lucent.com>
86438
86439         Most macros in unlocked-io.h had the wrong number of arguments.
86440         * lib/gen-uio: New script.
86441         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86442         * lib/unlocked-io.hin: Remove file.
86443         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86444         rather than trying to embed it here.
86445         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86446         Reported by Padraig Brady.
86447
86448 2001-09-25  Volker Borchert  <bt@teknon.de>
86449
86450         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86451         `result'.
86452
86453 2001-09-24  Jim Meyering  <meyering@lucent.com>
86454
86455         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86456
86457 2001-09-23  Jim Meyering  <meyering@lucent.com>
86458
86459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86460         instead of the mere test for existence of mntent.h.  The latter
86461         would get a false-positive on AIX 3.4 systems.
86462         In the outer getmntent if-block, don't die if neither of the getmntent
86463         tests succeeds.  Instead, just fall through and continue with the
86464         remaining tests.
86465
86466 2001-09-23  Jim Meyering  <meyering@lucent.com>
86467
86468         * lib/mountlist.c: Remove useless parentheses in #if directives.
86469         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86470         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86471
86472 2001-09-22  Jim Meyering  <meyering@lucent.com>
86473
86474         * m4/gettext.m4: New file.  From gettext.
86475         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86476         * m4/progtest.m4: Likewise
86477         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86478         * m4/glibc21.m4: Likewise.
86479
86480         * m4/libintl.m4: Remove.  No longer used.
86481
86482 2001-09-22  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/localcharset.c: Update from latest gettext.
86485         * lib/config.charset: Likewise.
86486
86487 2001-09-20  Jim Meyering  <meyering@lucent.com>
86488
86489         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86490         strtoimax.
86491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86492         strtoumax.
86493
86494 2001-09-20  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/xstrtol.c (strtoimax): Guard declaration with
86497         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86498         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86499         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86500         (strtoumax): Likewise, for completeness (it wasn't necessary).
86501
86502 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86503
86504         * lib/strtoimax.c (HAVE_LONG_LONG):
86505         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86506         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86507         to work around bug in IBM C compiler.
86508
86509 2001-09-17  Jim Meyering  <meyering@lucent.com>
86510
86511         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86512         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86513         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86514         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86515         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86516         whenever the right hand side need not be expanded by the shell.
86517
86518 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86519
86520         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86521         library.  It's not correct, as some older glibcs are buggy.
86522         fnmatch wasn't fixed until glibc 2.2.
86523
86524         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86525         special shell magic here.
86526
86527 2001-09-16  Jim Meyering  <meyering@lucent.com>
86528
86529         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86530         * m4/jm-macros.m4: Require it.
86531
86532 2001-09-16  Jim Meyering  <meyering@lucent.com>
86533
86534         * lib/mkdir.c: New file.
86535
86536 2001-09-15  Jim Meyering  <meyering@lucent.com>
86537
86538         * m4/jm-macros.m4: Check for help2man.
86539
86540 2001-09-11  Jim Meyering  <meyering@lucent.com>
86541
86542         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86543         The body, by Paul Eggert, was moved here from configure.in.
86544         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86545
86546 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86547
86548         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86549         (jm_PREREQ): Use it.
86550
86551 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86552
86553         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86554         Use ssize_t, not int, to store result of readlink.
86555         Check for ssize_t overflow as well as size_t overflow,
86556         as POSIX says the result of readlink is implementation-defined
86557         when ssize_t overflows.
86558         Remove unnecessary cast to char*.
86559         Use free+malloc instead of realloc, as the storage doesn't need
86560         to be preserved and it's clearer and can be more efficient that way.
86561         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86562         * lib/xreadlink.h (xreadlink): Update prototype.
86563
86564 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86565
86566         * lib/xgetcwd.c: Revert some of the previous change; intead,
86567         fix the HAVE_GETCWD_NULL code to behave more like the
86568         !HAVE_GETCWD_NULL code used to.
86569
86570         Include "xalloc.h".
86571         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86572         invoke xalloc_die.
86573
86574 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86575
86576         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86577         sys/param.h, as pathmax.h includes them.
86578
86579 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86580
86581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86582         (jm_PREREQ_XGETCWD): New macro.
86583
86584         * m4/getcwd.m4: New file.
86585
86586 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86587
86588         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86589         like the HAVE_GETCWD_NULL code.
86590         Include pathmax.h if not HAVE_GETCWD.
86591         Do not include xalloc.h.
86592         (INITIAL_BUFFER_SIZE): New symbol.
86593         Do not use xmalloc / xrealloc, since the caller is responsible for
86594         handling errors.  Preserve errno around `free' during failure.
86595         Do not overrun buffer when using getwd.
86596
86597 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86598
86599         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86600         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86601         getcwd (NULL, 0).
86602
86603 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86604
86605         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86606         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86607         spotted by Jim Meyering.
86608
86609 2001-09-03  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86612         failure.
86613
86614 2001-09-02  Jim Meyering  <meyering@lucent.com>
86615
86616         * lib/error.c: Update from GNU libc.
86617
86618 2001-09-01  Jim Meyering  <meyering@lucent.com>
86619
86620         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86621         Used by df.
86622
86623 2001-09-01  Jim Meyering  <meyering@lucent.com>
86624
86625         * lib/xreadlink.c: New file.
86626         * lib/xreadlink.h: New file.
86627         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86628         xreadlink.h.
86629
86630         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86631         doesn't conflict with sparc Solaris 7's definition in
86632         /usr/include/sys/int_types.h.
86633
86634         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86635         files.
86636         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86637         and strncasecmp as r-values.  Unixware didn't have declarations.
86638
86639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86640
86641         * lib/xstrtol.h: Add copyright notice.
86642         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86643         LONGINT_INVALID_SUFFIX_CHAR.
86644
86645 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86646
86647         * lib/xstrtol.c (strtoimax): New decl.
86648
86649 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86650
86651         * lib/xgetcwd.c: Don't include pathmax.h.
86652         Include stdlib.h and unistd.h if available.
86653         Include xalloc.h.
86654         (xmalloc, xstrdup, free): Remove decls.
86655         (xgetcwd): Don't assume sizes fit in unsigned.
86656         Check for overflow when computing sizes.
86657         Simplify reallocation code.
86658
86659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86660
86661         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86662         a directory's st_size can have an arbitrary value, so the old
86663         usage could waste an arbitrary amount of memory.  All uses
86664         changed.
86665         * lib/savedir.h: Update prototype.
86666
86667 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86668
86669         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86670
86671         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86672         old strtoimax.c.
86673
86674         Also, make the following further changes to make this file's
86675         configuration more similar to that of strtol.c:
86676         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86677         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86678         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86679         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86680         changed to signed values.
86681
86682         And make the following changes as well:
86683         Fix copyright notice, as 1999 was missing.
86684         (verify): New macro.
86685         (strtoimax): Check sizes at compile-time, not run-time.
86686         Prefer strtol to strtoll if both work.
86687         (main): Remove; it was not that useful and was a pain to maintain.
86688
86689         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86690
86691 2001-08-31  Jim Meyering  <meyering@lucent.com>
86692
86693         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86694         Use an initial, malloc'd, buffer of length 128 rather than
86695         a statically allocated one of length 1024.
86696
86697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86698
86699         Simplify code, partly by assuming autoconf 2.52 semantics.
86700
86701         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86702
86703         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86704         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86705         All uses removed.
86706         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86707         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86708         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86709         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86710         jm_AC_HEADER_INTTYPES_H.
86711         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86712
86713         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86714
86715         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86716         Quote first arg of AC_DEFUN.
86717         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86718         since they are needed to parse the include file even if we need
86719         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86720         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86721         but with opposite signedness.
86722
86723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86724
86725         Merge 'exclude' changes from tar 1.13.22.
86726         This fixes one or two unlikely storage allocation overflow bugs,
86727         but doesn't change user-visible behavior otherwise.
86728
86729 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86730
86731         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86732         (jm_PREREQ_EXCLUDE): New macro.
86733
86734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86735
86736         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86737         tm to be declared.
86738
86739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86740
86741         * lib/hash.c: Remove '2001' from copyright notice.
86742
86743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86744
86745         * lib/full-write.h: New file.
86746         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86747         * lib/full-write.c: Correct credits, as cccp.c no longer
86748         exists and anyway it was so heavily changed from the old cccp
86749         code as to be unrecognizable.  Include full-write.h.
86750         (full_write): Return size_t, with short writes meaning failure.
86751         All callers changed.  This fixes a bug with large buffers
86752         on 64-bit hosts.
86753         * lib/utime.c: Include full-write.h.
86754
86755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86756
86757         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86758         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86759         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86760         Include if available.
86761         (<xalloc.h>): Include
86762         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86763         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86764         collide with FNM macros.
86765         (struct patopts): New struct.
86766         (struct exclude): Use it, as exclude patterns now come with options.
86767         (new_exclude): Support above changes.
86768         (new_exclude, add_exclude_file):
86769         Initial size must now be a power of two to simplify overflow checking.
86770         (free_exclude, fnmatch_no_wildcards): New function.
86771         (excluded_filename): No longer requires options arg, as the options
86772         are determined by add_exclude.  Now returns bool, not int.
86773         (excluded_filename, add_exclude):
86774         Add support for the fancy new exclusion options.
86775         (add_exclude, add_exclude_file): Now takes int options arg.
86776         Check for arithmetic overflow when computing sizes.
86777         (add_exclude_file): xrealloc might modify errno, so don't
86778         realloc until after errno might be used.
86779
86780         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86781         New macros.
86782         (free_exclude): New decl.
86783         (add_exclude, add_exclude_file): Now takes int options arg.
86784         (excluded_filename): No longer requires options arg, as the options
86785         are determined by add_exclude.  Now returns bool, not int.
86786
86787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86788
86789         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86790
86791 2001-08-27  Jim Meyering  <meyering@lucent.com>
86792
86793         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86794
86795         * lib/version-etc.c (N_): Remove definition.
86796         Revert most of last change.
86797         Instead, simply don't mark the `Copyright...' string for translation.
86798         Based on advice from Paul Eggert.
86799
86800         * lib/strtoxmax.c: Tweak comment.
86801
86802 2001-08-26  Jim Meyering  <meyering@lucent.com>
86803
86804         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86805
86806         * m4/xstrtoimax.m4: New file.
86807         * m4/xstrtoumax.m4: Add comments explaining why we
86808         AC_REPLACE_FUNCS(strtol).
86809
86810 2001-08-26  Jim Meyering  <meyering@lucent.com>
86811
86812         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86813         of copyright with `%s' so translators don't get an untranslated
86814         message in 2002.
86815         (COPYRIGHT_YEAR): Define.
86816         (version_etc): Use fprintf rather than fputs.
86817         Suggestion from Ulrich Drepper.
86818
86819         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86820
86821         * lib/strtoll.c: New file, from GNU libc.
86822         * lib/xstrtoimax.c: New file.
86823
86824         * lib/xstrtol.h: Add xstrtoimax.
86825         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86826         * lib/strtoimax.c: New file.  Likewise, but first define
86827         STRTOUXMAX_SIGNED.
86828
86829         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86830         ...
86831         * lib/strtoxmax.c: ... then renamed to this.
86832
86833 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86834
86835         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86836         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86837         (jm_AC_TYPE_INTMAX_T): New macro.
86838         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86839
86840         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86841
86842         * m4/longlong.m4: Renamed from ulonglong.m4.
86843         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86844         * m4/uintmax_t.m4: Removed.
86845
86846 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86847
86848         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86849         Port to Solaris 8, where 'sed' requires a space after the 'r'
86850         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86851         Redirect output to $tmp just once.
86852
86853 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86854
86855         * lib/addext.c (<errno.h>): Include.
86856         (errno): Declare if not defined.
86857         (addext): Work correctly when pathconf returns -1 and leaves
86858         errno alone because there is no limit.  Also, work even if
86859         pathconf returns a value greater than SIZE_MAX.
86860
86861 2001-08-12  Jim Meyering  <meyering@lucent.com>
86862
86863         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86864         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86865         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86866         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86867         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86868         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86869         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86870         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86871         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86872         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86873         utime.m4, utimes.m4, xstrtoumax.m4:
86874         Quote the first argument in each use of AC_DEFUN.
86875
86876 2001-08-12  Jim Meyering  <meyering@lucent.com>
86877
86878         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86879         Simply `return getcwd (NULL, 0);'.
86880         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86881         Use 1300 as initial value for length, not PATH_MAX.
86882
86883         * lib/pathmax.h: Clean up cpp syntax.
86884
86885 2001-08-12  Jim Meyering  <meyering@lucent.com>
86886
86887         * lib/gettimeofday.c: New file.
86888         * lib/gtod.h: New file.
86889         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86890
86891 2001-08-05  Jim Meyering  <meyering@lucent.com>
86892
86893         * m4/jm-macros.m4: Require autoconf-2.52.
86894
86895 2001-08-04  Jim Meyering  <meyering@lucent.com>
86896
86897         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86898         stmt, to get in sync with glibc.
86899
86900 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86901
86902         The following changes are from gettext 0.10.39 as maintained by
86903         Bruno Haible.
86904
86905         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86906         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86907         with inverted sense.  All uses changed.
86908
86909         * lib/mbswidth.c: Don't include <limits.h>.
86910         Include <stdlib.h> and <string.h> unconditionally.
86911         (iswcntrl, mbsinit, ISCNTRL): New macros.
86912         (mbsnwidth): Use K&R style function declarations.
86913         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86914         can optimize it when MB_CUR_MAX == 1.
86915         The width of control characters is zero, not 1.
86916
86917 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86918
86919         The following changes are from gettext 0.10.39 as maintained by
86920         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86921
86922         * m4/codeset.m4: Upgrade to serial AM1.
86923         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86924         all uses changed.  Quote first arg of AC_DEFUN.
86925         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86926
86927         * m4/iconv.m4: Upgrade to serial AM2.
86928         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86929         Add --with-libconv-prefix.
86930         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86931         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86932         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86933         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86934         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86935
86936         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86937         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86938         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86939         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86940         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86941         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86942         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86943         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86945
86946         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86947         string.h any more.
86948
86949         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86950         not the default value.
86951
86952         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86953         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86954         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86955         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86956         Also check for iswcntrl, used for wcwidth fallback.
86957         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86958         to Autoconf 2.13.
86959
86960 2001-08-03  Jim Meyering  <meyering@lucent.com>
86961
86962         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86963         as it was in the original.  Reported by Paul Eggert.
86964
86965 2001-07-16  Jim Meyering  <meyering@lucent.com>
86966
86967         * m4/gettimeofday.m4: New file.
86968         Prompted by a report from Bernhard Baehr.
86969
86970 2001-07-15  Jim Meyering  <meyering@lucent.com>
86971
86972         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86973         stuff. Now it's in ../Makefile.cfg.
86974
86975 2001-07-15  Jim Meyering  <meyering@lucent.com>
86976
86977         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86978         (BUILT_SOURCES): Add unlocked-io.h.
86979         (io_functions): Define.
86980         (unlocked-io.h): New rule.
86981         (DISTCLEANFILES): Add unlocked-io.h.
86982         (all-local): Depend on unlocked-io.h, to ensure it is created.
86983
86984         * lib/unlocked-io.hin: New file
86985
86986         * lib/regex.c: Update from glibc.
86987
86988 2001-07-05  Jim Meyering  <meyering@lucent.com>
86989
86990         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86991         recommendation.
86992         (libfetish_a_SOURCES): Put all .h files here instead.
86993         Remove a thus-exposed (better checks in automake) duplicate and
86994         two unnecessary .h files.
86995
86996 2001-07-04  Jim Meyering  <meyering@lucent.com>
86997
86998         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86999         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87000         distcheck failure.
87001
87002 2001-07-02  Jim Meyering  <meyering@lucent.com>
87003
87004         The following changes were prompted by suggestions from Bruno Haible.
87005
87006         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87007         is now generated.
87008         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87009         definition of EXTRA_DIST.
87010         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87011         ensure that the generated file is created/updated whenever the list
87012         of $(unlocked_functions) is changed.
87013         (jm-glibc-io.m4): New rule.
87014         (unlocked-io.h): New rule -- currently unused.
87015
87016 2001-06-24  Jim Meyering  <meyering@lucent.com>
87017
87018         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87019         unmatched right bracket, rather than kludging it with an extra,
87020         falsely-matching quote in a comment.  Patch by Akim Demaille.
87021
87022 2001-06-11  Jim Meyering  <meyering@lucent.com>
87023
87024         * lib/regex.c: Update from GNU libc.
87025
87026 2001-05-27  Jim Meyering  <meyering@lucent.com>
87027
87028         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87029         Check for ut_type in struct utmp.
87030
87031 2001-05-27  Jim Meyering  <meyering@lucent.com>
87032
87033         * lib/readutmp.h (UT_TYPE): Define.
87034
87035 2001-05-24  Jim Meyering  <meyering@lucent.com>
87036
87037         * lib/argmatch.c: Include "quote.h".
87038         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87039         quote function.  Reported by Göran Uddeborg.
87040
87041 2001-05-22  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87044         now that we use the package-supplied version unconditionally.
87045         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87046
87047 2001-05-21  Jim Meyering  <meyering@lucent.com>
87048
87049         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87050         shell syntax errors.
87051
87052 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87053
87054         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87055
87056 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87057
87058         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87059         Don't bother to check library strftime, since
87060         we'll be using our own my_strftime function anyway.
87061         Define my_strftime instead of strftime.
87062
87063 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87064
87065         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87066         which is not yet declared.
87067
87068 2001-05-15  Jim Meyering  <meyering@lucent.com>
87069
87070         * m4/regex.m4: Use proper quoting so brackets appear in the test
87071         program.
87072         Reported by, and with help from, Bruno Haible.
87073
87074 2001-05-13  Jim Meyering  <meyering@lucent.com>
87075
87076         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87077         undefined.
87078
87079 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87080
87081         dirname code cleanup.  base_name now behaves more compatibly
87082         with POSIX basename when given file names that have trailing
87083         slashes, and similarly for dir_name.  Add new primitives
87084         base_len and dir_len.  Put the directory-name-related decls
87085         into dirname.h.
87086
87087         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87088         * lib/backupfile.c (base_name): Likewise.
87089         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87090         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87091         * lib/makepath.c (strip_trailing_slashes): Likewise.
87092         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87093         ISSLASH): Likewise.
87094         * lib/rename.c (strip_trailing_slashes): Likewise.
87095         * lib/same.c (base_name): Likewise.
87096         * lib/stripslash.c (ISSLASH): Likewise.
87097
87098         * lib/addext.c: Include <dirname.h> after size_t is defined.
87099         * lib/backupfile.c: Likewise.
87100
87101         * lib/addext.c (addext): Use base_len to trim redundant
87102         trailing slashes instead of doing it ourselves.
87103         But do not trim the last slash if it is not redundant.
87104
87105         * lib/backupfile.c (find_backup_file_name,
87106         max_backup_version): Use base_len instead of rolling it ourselves.
87107         Handle the case of "" and (on DOS) "C:" correctly.
87108
87109         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87110         needed. Include <string.h>, <dirname.h>.
87111         (base_name): Allow file names ending in slashes, other than names
87112         that are all slashes.  In this case, return the basename followed
87113         by the slashes.  This is more general, and can be used in places
87114         where the original base_name purposely had an assertion failure.
87115         (base_len): New function.
87116
87117         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87118         Do not include <assert.h>; no longer needed.
87119         Include xalloc.h.
87120         (memrchr): Remove decl.
87121         (dir_name_r): Remove.
87122         (dir_len): Renamed from dirlen.  All callers changed.
87123         Rewrite in terms of base_name, for simplicity and consistency.
87124         (dir_name): Never return NULL.  All callers changed.
87125         Do not include <stdlib.h> in test program; no longer needed.
87126         return 0; is fine for test program.
87127
87128         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87129         New macros.
87130         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87131
87132         * lib/path-concat.c (path_concat): Use base_len to compute
87133         base length, not strlen; this means we cannot rely on memcpy
87134         to null-terminate.
87135
87136         * lib/same.c (STREQ): Remove.
87137         (same_name): Handle the case where the basename ends in trailing '/'.
87138
87139         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87140         a slash was stripped.  Do not strip the last slash after a
87141         file system prefix.
87142
87143 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87144
87145         * lib/Makefile.am (libfetish_a_SOURCES):
87146         Add strftime.c, since we now compile it on all hosts.
87147
87148         * lib/strftime.c (my_strftime):
87149         Define to nstrftime if emacs, but only if my_strftime is not defined.
87150         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87151         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87152         Add one more extra argument: a nanoseconds value.
87153         All uses changed.
87154         (ns): New macro.
87155         (my_strftime function): Add %N format.
87156         (emacs_strftimeu): Renamed from emacs_strftime,
87157         with extra ut argument.
87158
87159 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87160
87161         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87162
87163 2001-04-21  Jim Meyering  <meyering@lucent.com>
87164
87165         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87166         doesn't interfere.
87167
87168 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87169
87170         * m4/ftruncate.m4: Check for chsize.
87171         Link with ftruncate.o unconditionally if ftruncate is missing.
87172         This was required when cross-compiling to i586-mingw32msvc.
87173
87174 2001-04-08  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87177         recomputed; that's necessary when the offset spans a DST transition.
87178         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87179
87180 2001-04-02  Jim Meyering  <meyering@lucent.com>
87181
87182         * lib/regex.h, regex.c: Update from GNU libc.
87183
87184 2001-03-24  Jim Meyering  <meyering@lucent.com>
87185
87186         * m4/jm-macros.m4: Require autoconf-2.49d.
87187
87188 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87189
87190         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87191
87192 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87193
87194         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87195
87196 2001-03-17  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87199         now that the version in autoconf is equivalent.
87200         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87201
87202         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87203         Suggestion from Akim Demaille.
87204
87205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87206         (jm_PREREQ_TEMPNAME): New function.
87207
87208 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87209
87210         * lib/tempname.c (uint64_t): Define to uintmax_t if
87211         not defined, and if UINT64_MAX is not defined.
87212         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87213         Reported by John David Anglin.
87214
87215 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87216
87217         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87218         resolve alias if codeset is empty.
87219         * lib/config.charset (BeOS): Use wildcard syntax.
87220
87221 2001-03-13  Jim Meyering  <meyering@lucent.com>
87222
87223         * lib/path-concat.c (path_concat)
87224         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87225         concatenating e.g., `C:' and `foo'.
87226         From Bruno Haible.
87227
87228 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87229
87230         * lib/localcharset.c (locale_charset): Don't use
87231         setlocale(LC_CTYPE,NULL). Don't return NULL.
87232         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87233
87234 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87235
87236         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87237         support for DOS/DJGPP.
87238
87239 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87240
87241         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87242         lacks mkstemp.  Compile our own tempname.c if we compile our own
87243         mkstemp.c, as mkstemp relies on tempname.
87244
87245 2001-03-01  Jim Meyering  <meyering@lucent.com>
87246
87247         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87248         AH_VERBATIM really does output its argument verbatim.
87249
87250 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87251
87252         * lib/Makefile.am (libfetish_a_SOURCES):
87253         Add dup-safer.c, fopen-safer.c.
87254         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87255
87256         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87257         * lib/unistd-safer.h: New files.
87258
87259 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87260
87261         The mkstemp replacement is taken from glibc 2.2.2, with some
87262         portability fixes for use outside glibc, as follows:
87263
87264         * lib/tempname.c (struct_stat64): New macro.
87265         (direxists, __gen_tempname): Use it.
87266         This avoids a portability problem with Solaris 8.
87267
87268         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87269         (<stddef.h>, <stdint.h>, <string.h>):
87270         Include only if STDC_HEADERS || _LIBC.
87271         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87272         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87273         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87274         (__set_errno): Define this macro if <errno.h> doesn't.
87275         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87276         Define these macros if <stdio.h> doesn't.
87277         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87278         Define these macros if <sys/stat.h>
87279         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87280         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87281         __xstat64): Define if not _LIBC.
87282         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87283         (__gen_tempname): Invoke gettimeofday only if
87284         HAVE_GETTIMEOFDAY || _LIBC;
87285         otherwise, fall back on plain "time".
87286         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87287
87288         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87289
87290         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87291
87292 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87293
87294         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87295
87296 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87297
87298         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87299         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87300         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87302
87303 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87304
87305         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87306         Remove workaround macros for hosts that have mbrtowc but not
87307         mbstate_t, as we now insist on proper declarations for both
87308         before using mbrtowc.
87309
87310 2001-02-17  Jim Meyering  <meyering@lucent.com>
87311
87312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87313         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87314         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87315         UnixWare 7.1.1.
87316
87317         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87318         rather than AC_CACHE_VAL.
87319
87320 2001-02-17  Jim Meyering  <meyering@lucent.com>
87321
87322         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87323         around included file name.
87324
87325         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87326
87327         * lib/strftime.c: Update from GNU libc (the only changes were to
87328         comments).
87329
87330 2001-02-17  Jim Meyering  <meyering@lucent.com>
87331
87332         * lib/regex.c: Update from libc.
87333
87334 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87335
87336         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87337         clash.
87338
87339 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87340
87341         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87342         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87343         Reported by Mark Hounschell via Paul Eggert.
87344
87345 2001-02-07  Jim Meyering  <meyering@lucent.com>
87346
87347         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87348
87349 2001-02-05  Jim Meyering  <meyering@lucent.com>
87350
87351         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87352         it includes the patch required for `large file' support with at least
87353         HP-UX's 10.20 /bin/cc.
87354
87355 2001-02-03  Jim Meyering  <meyering@lucent.com>
87356
87357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87358         AS_IF, now that it works once again (mysteriously).
87359         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87360
87361 2001-01-30  Jim Meyering  <meyering@lucent.com>
87362
87363         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87364         * m4/chown.m4: Rename conftestchown to conftest.chown.
87365         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87366         s/conftestdir2/conftest.d2/.
87367         * m4/utimes.m4: s/conftestdata/conftest.data/
87368         Inspired by Pavel Roskin's change in autoconf.
87369
87370 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87371
87372         * lib/config.charset: Update for FreeBSD 4.2.
87373
87374 2001-01-27  Jim Meyering  <meyering@lucent.com>
87375
87376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87377         a use of AS_IF.
87378         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87379
87380 2001-01-26  Jim Meyering  <meyering@lucent.com>
87381
87382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87383         quotearg.c includes it.
87384
87385 2001-01-26  Jim Meyering  <meyering@lucent.com>
87386
87387         * lib/quotearg.c: Include stddef.h.
87388         * lib/quote.c: Include stddef.h.
87389         Reported by Axel Kittenberger.
87390
87391         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87392         line in double quotes so that it evokes a better diagnostic.
87393         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87394         Reported by Axel Kittenberger.
87395
87396 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87397
87398         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87399         as if it was a `charset'.
87400
87401 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87402
87403         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87404         has const.
87405
87406 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87407
87408         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87409         to avoid a warning.  Add back 'const' to inptr.
87410
87411 2001-01-20  Jim Meyering  <meyering@lucent.com>
87412
87413         Be sure that headers are checked before used in code compiled
87414         for the type checks.
87415         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87416         In place of that, invoke jm_CHECK_ALL_TYPES.
87417         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87418         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87419         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87420         The check for ssize_t was mistakenly run before the test for unistd.h.
87421
87422         The configure-time check for stdbool.h was missing.
87423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87424         (jm_PREREQ_HASH): New function.
87425
87426 2001-01-17  Jim Meyering  <meyering@lucent.com>
87427
87428         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87429         for autoconf-2.49c.
87430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87431
87432 2001-01-16  Jim Meyering  <meyering@lucent.com>
87433
87434         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87435         From Bruno Haible.
87436
87437 2001-01-14  Jim Meyering  <meyering@lucent.com>
87438
87439         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87440         foo and bar.  Create conftestdir/ in the script, not in the C code.
87441         Remove directories in the script, not in the C code.
87442         Remove conftestdir{,2} before trying to create the directory.
87443         Make the entire configure script fail if the mkdir fails.
87444
87445 2001-01-14  Jim Meyering  <meyering@lucent.com>
87446
87447         * lib/rename.c: New file.  From Volker Borchert.
87448         Include stdlib.h, string.h or strings.h, and xalloc.h.
87449         Use strip_trailing_slashes rather than open-coding it.
87450
87451 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87452
87453         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87454
87455 2001-01-03  Jim Meyering  <meyering@lucent.com>
87456
87457         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87458         of local `inptr' to avoid warning with some system declarations of
87459         iconv.
87460
87461 2001-01-02  Volker Borchert  <bt@teknon.de>
87462
87463         * m4/rename.m4: New file.
87464         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87465
87466 2001-01-01  Jim Meyering  <meyering@lucent.com>
87467
87468         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87469         even on systems with utmpx.h.  It's necessary for the declaration of
87470         utmp's ut_user member.  Reported by Andreas Jaeger.
87471
87472         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87473         available. They are required for the declarations of getgrgid and
87474         getpwuid resp.
87475         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87476         Reported by Andreas Jaeger.
87477
87478 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87479
87480         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87481         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87482         so `make install' also works in VPATH builds.
87483
87484 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87485
87486         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87487         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87488         can be used in subdirectories.
87489
87490 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87491
87492         * lib/modechange.c: Do not assume that mode_t uses the
87493         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87494         the other-execute bit of FOO even if S_IXOTH != 1.
87495
87496         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87497         WOTH, XOTH, ALLM): New macros.
87498         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87499          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87500         Use them.
87501         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87502         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87503         (mode_compile):
87504         No need to use uintmax_t; unsigned long is long enough.
87505         Don't bother to get suffix since we don't use it.
87506
87507 2000-12-26  Jim Meyering  <meyering@lucent.com>
87508
87509         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87510         better with autoheader.
87511
87512 2000-12-24  Jim Meyering  <meyering@lucent.com>
87513
87514         * lib/hash.c (is_prime): Return explicit boolean values.
87515         (hash_get_first): Return NULL to appease Irix5.6's 89.
87516         Reported by Nelson Beebe.
87517
87518 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87519
87520         * lib/localcharset.c (locale_charset): Add support for Win32.
87521
87522 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87523
87524         * lib/physmem.h, lib/physmem.c: New files.
87525
87526         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87527         (noinst_HEADERS): Add physmem.h.
87528
87529         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87530         't' for compatibility with Solaris 8 sort.
87531
87532 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87533
87534         * lib/config.charset: Add support for BeOS.
87535
87536 2000-12-17  Jim Meyering  <meyering@lucent.com>
87537
87538         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87539         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87540
87541 2000-12-16  Jim Meyering  <meyering@lucent.com>
87542
87543         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87544         N and M) would have treated it like `chown N:N FILE'.
87545
87546         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87547
87548 2000-12-16  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87551         SHELLS_FILE to a file name that's useful on djgpp systems.
87552         Include stdlib.h.
87553         (ADDITIONAL_DEFAULT_SHELLS): Define.
87554         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87555         Based mostly on a patch from Prashant TR.
87556
87557 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87558
87559         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87560         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87561         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87562
87563 2000-12-08  Andreas Schwab  <schwab@suse.de>
87564
87565         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87566         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87567
87568 2000-12-07  Jim Meyering  <meyering@lucent.com>
87569
87570         * lib/stripslash.c (ISSLASH): Define.
87571         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87572         `/'.
87573         From Prashant TR.
87574
87575         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87576         (dir_name_r): Declare this function as static.
87577         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87578         manifest itself on a name containing a mix of slashes and
87579         backslashes.
87580         Make this function work with names starting with a DOS-style
87581         drive letter and colon prefix.
87582         (dir_name): Append `.' if necessary.
87583         Based mostly on patches from Prashant TR and Eli Zaretskii.
87584
87585         * lib/dirname.h (dir_name_r): Remove prototype.
87586
87587 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87588
87589         * m4/off_t-format.m4: Remove this file.
87590         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87591
87592 2000-12-06  Jim Meyering  <meyering@lucent.com>
87593
87594         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87595         replacement strtoull, we may well need the replacement strtoul, too.
87596         Check for declarations of strtoul and strtoull.
87597         Check for strtol.  Mainly as a cue to cause automake to include
87598         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87599         Check for limits.h -- strtol.c needs it.
87600
87601 2000-12-05  Jim Meyering  <meyering@lucent.com>
87602
87603         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87604
87605 2000-12-04  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87608         Also include memory.h, stdlib.h, unistd.h if appropriate.
87609         Reported by Andreas Jaeger (conflicting declaration of malloc).
87610
87611 2000-12-02  Jim Meyering  <meyering@lucent.com>
87612
87613         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87614         * m4/jm-macros.m4 (jm_MACROS): require it.
87615
87616 2000-12-02  Jim Meyering  <meyering@lucent.com>
87617
87618         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87619
87620 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87621
87622         * lib/memrchr.c: Include <config.h> before any system include file.
87623
87624 2000-11-30  Jim Meyering  <meyering@lucent.com>
87625
87626         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87627
87628 2000-11-30  Jim Meyering  <meyering@lucent.com>
87629
87630         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87631
87632 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87633
87634         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87635
87636 2000-11-26  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87639
87640 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87641
87642         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87643         size of (size_t) -1; it's not portable.
87644
87645 2000-11-17  Jim Meyering  <meyering@lucent.com>
87646
87647         * lib/strstr.c: Update from GNU libc.
87648
87649 2000-11-17  Akim Demaille  <akim@epita.fr>
87650
87651         * lib/obstack.h: Formatting changes.
87652         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87653         prevent type checking.
87654         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87655         cast the value to (void *): assigning a `foo *' to a `void *'
87656         variable is valid.
87657         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87658
87659 2000-11-16  Jim Meyering  <meyering@lucent.com>
87660
87661         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87662
87663 2000-11-11  Jim Meyering  <meyering@lucent.com>
87664
87665         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87666
87667 2000-11-10  Jim Meyering  <meyering@lucent.com>
87668
87669         * lib/obstack.h: Update from GNU libc.
87670         * lib/obstack.c: Likewise.
87671
87672 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87673
87674         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87675
87676 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87677
87678         * lib/getusershell.c (setusershell): Use rewind rather than
87679         fseek/fseeko, to avoid configuration hassles with fseeko.
87680         Don't bother opening SHELLS_FILE if shellstream is NULL;
87681         it's not necessary.
87682
87683 2000-11-05  Jim Meyering  <meyering@lucent.com>
87684
87685         * lib/makepath.h (make_dir): Declare.
87686         * lib/makepath.c (make_dir): Remove `static' attribute.
87687         Tweak a comment.
87688
87689 2000-11-04  Jim Meyering  <meyering@lucent.com>
87690
87691         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87692
87693 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87694
87695         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87696         last one in a bucket, advance to the next bucket.
87697
87698 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87699
87700         * lib/fnmatch.c: Do not comment out all the code if we are using
87701         the GNU C library, because in some cases we are replacing buggy
87702         code in the GNU C library itself.
87703
87704 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87705
87706         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87707         (regex_compile): Catch bogus \(\1\).
87708
87709 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87710
87711         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87712         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87713         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87714
87715 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87716
87717         * lib/error.h, getline.h, modechange.h:
87718         Remove "2000" from Copyright line, as the file hasn't been
87719         changed this year other than in the copyright notice.
87720
87721         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87722         was changed this year.
87723
87724 2000-10-29  Jim Meyering  <meyering@lucent.com>
87725
87726         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87727         renaming.
87728         * m4/ls-mntd-fs.m4: Likewise
87729
87730 2000-10-29  Jim Meyering  <meyering@lucent.com>
87731
87732         * lib/xstat.in: Fix grammar in comment.
87733
87734 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87735
87736         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87737         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87738         doesn't define __restrict_arr.
87739
87740 2000-10-28  Jim Meyering  <meyering@lucent.com>
87741
87742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87743         (jm_PREREQ_MEMCHR): New function.
87744
87745 2000-10-28  Jim Meyering  <meyering@lucent.com>
87746
87747         * lib/memchr.c: Update from libc.
87748         Adjust for portability:
87749         [HAVE_STDLIB_H]: Include stdlib.h.
87750         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87751         Undef __memchr, too.
87752         [!weak_alias]: Define __memchr to memchr.
87753
87754         * lib/regex.c: Update from libc.
87755         * lib/regex.h: Likewise.
87756         * lib/getopt1.c: Likewise.
87757         * lib/memcmp.c: Likewise.
87758
87759         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87760         Avoid using fseek, when possible -- it's broken by design.
87761         Patch by Ulrich Drepper.
87762
87763 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87764
87765         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87766         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87767         Giving in to popular pressure to shut up the compiler with casts.
87768
87769 2000-10-26  Jim Meyering  <meyering@lucent.com>
87770
87771         * lib/strftime.c: Update from libc.
87772
87773 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87774
87775         * regex.c: More `unsigned char' -> `re_char' changes.
87776         Also change several `int' into `re_wchar_t'.
87777         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87778         (PUSH_FAILURE_POINTER): Don't cast any more.
87779         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87780         We want GCC to complain, since this piece of code makes
87781         re_match non-reentrant, which *should* be fixed.
87782         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87783         (EXTEND_BUFFER): Use RETALLOC.
87784         (SET_LIST_BIT): Don't cast.
87785         (re_wchar_t): New type.
87786         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87787         that those two functions will always properly return.
87788         (IMMEDIATE_QUIT_CHECK): Cast to void.
87789         (analyse_first): Use recursion rather than an explicit stack.
87790         (re_compile_fastmap): Can't fail anymore.
87791         (re_search_2): Don't check re_compile_fastmap for failure.
87792         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87793         Now also sets the new value (passed in a new argument).
87794         (re_match_2_internal): Use it.
87795         Also, use a new var `reg' of type size_t when looping through regs
87796         rather than reuse the inappropriate `mcnt'.
87797
87798 2000-10-25  Jim Meyering  <meyering@lucent.com>
87799
87800         * lib/obstack.c: Update from libc.
87801
87802 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87803
87804         * regex.c (regex_compile): Change the way of handling a range from
87805         a char less than 256 to a char not less than 256.
87806
87807 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87808
87809         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87810         NT-Emacs only.
87811         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87812         so that re_search functions only quit when callers expect them to.
87813
87814 2000-10-23  Jim Meyering  <meyering@lucent.com>
87815
87816         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87817         wrong.  That set_locale call must not have any side effects.
87818         From Paul Eggert.
87819
87820 2000-10-22  Jim Meyering  <meyering@lucent.com>
87821
87822         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87823         [CYCLIC]: Remove now-unused definition.
87824
87825         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87826         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87827         Suggestion from Ulrich Drepper.
87828
87829 2000-10-21  Jim Meyering  <meyering@lucent.com>
87830
87831         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87832         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87834
87835 2000-10-21  Jim Meyering  <meyering@lucent.com>
87836
87837         * lib/dirname.c (memrchr): Declare if necessary.
87838         (dir_name): Remove the restriction that there be no
87839         trailing slashes.  Now, this code skips past them, effectively
87840         ignoring them.
87841         [TEST_DIRNAME] (main): New unit tests.
87842
87843         * lib/memrchr.c: New file from GNU libc.
87844         Undef __memrchr, too.
87845         [!weak_alias]: Define __memrchr to memrchr.
87846         Guard weak_alias use with `#ifdef weak_alias'.
87847
87848 2000-10-21  Jim Meyering  <meyering@lucent.com>
87849
87850         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87851         (dir_name): Use dir_name_r.
87852         * lib/dirname.h (dir_name_r): Declare it.
87853
87854 2000-10-17  Jim Meyering  <meyering@lucent.com>
87855
87856         * lib/quote.h (PARAMS): Define and use.
87857         Reported by Akim Demaille.
87858
87859         * lib/getopt.c: Update from libc.
87860
87861 2000-10-16  Jim Meyering  <meyering@lucent.com>
87862
87863         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87864         setlocale.
87865         From Jan Fedak.
87866
87867 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87868
87869         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87870
87871 2000-09-25  Jim Meyering  <meyering@lucent.com>
87872
87873         * lib/md5.h (rol): Define (from GnuPG).
87874
87875         * lib/sha.c: Give credit (GnuPG) where due.
87876         (M): Use rol rather than open-coding it.
87877         Add a FIXME comment.
87878
87879 2000-09-21  Jim Meyering  <meyering@lucent.com>
87880
87881         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87882         Reported by Michael Stone.
87883
87884 2000-09-20  Jim Meyering  <meyering@lucent.com>
87885
87886         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87887         (noinst_HEADERS): Add sha.h.
87888         Based on code from Scott G. Miller and from GnuPG.
87889
87890 2000-09-18  Jim Meyering  <meyering@lucent.com>
87891
87892         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87893         LIBS. Otherwise, everyone ends up linking with -lelf for some
87894         configurations.
87895         Reported by Mike Stone.
87896
87897 2000-09-15  Jim Meyering  <meyering@lucent.com>
87898
87899         * lib/regex.c: Update from libc.
87900
87901 2000-09-10  Jim Meyering  <meyering@lucent.com>
87902
87903         * lib/getopt.c (_getopt_internal): Update from glibc.
87904
87905 2000-09-09  Jim Meyering  <meyering@lucent.com>
87906
87907         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87908         think it should be used as a general replacement for isascii.
87909         * lib/fnmatch.c: Likewise.
87910         * lib/mbswidth.c: Likewise
87911         * lib/regex.c: Likewise.
87912
87913         Don't use atoi.
87914         * lib/userspec.c: Include sys/param.h and limits.h.
87915         Include xstrtol.h.
87916         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87917         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87918         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87919         UID, GID.  Check range.
87920
87921 2000-09-06  Jim Meyering  <meyering@lucent.com>
87922
87923         * lib/getopt.c (_getopt_internal): Update from glibc.
87924
87925 2000-08-30  Jim Meyering  <meyering@lucent.com>
87926
87927         * lib/strftime.c: Merge in changes from GNU libc.
87928
87929 2000-08-26  Jim Meyering  <meyering@lucent.com>
87930
87931         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87932         * m4/fpending.m4: New file.
87933
87934 2000-08-26  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/closeout.c: Include "__fpending.h".
87937         (close_stdout_status): Return right away if there's nothing to flush.
87938
87939         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87940         * lib/__fpending.c: New file.
87941         * lib/__fpending.h: New file.
87942
87943 2000-08-20  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87946         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87947         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87948
87949 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87950
87951         Improve fileutils installation on systems where running
87952         programs (like install) can't be unlinked.
87953         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87954         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87955
87956 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87957
87958         Standardize on "memory exhausted" instead of "Memory exhausted"
87959         or "virtual memory exhausted".
87960         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87961         "virtual memory exhausted".
87962         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87963         our own message.
87964         * lib/userspec.c (parse_user_spec): Likewise.
87965         * lib/bumpalloc.h: comment fix
87966         * lib/same.c, userspec.c: Include xalloc.h.
87967
87968         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87969         not char *const and pointing to a constant array.
87970         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87971         (xrealloc): Comment fix.
87972
87973         * lib/userspec.c (parse_user_spec):
87974         Don't translate a message until just before returning,
87975         to avoid unnecessary translation.
87976
87977 2000-08-07  Jim Meyering  <meyering@lucent.com>
87978
87979         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87980         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87981         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87982         getgroups.c, gethostname.c, getopt.h, group-member.c,
87983         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87984         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87985         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87986         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87987         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87988         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87989         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87990         yesno.c: Back out Copyright date changes for each file with no change
87991         this year.  This eases coordination with other programs using the same
87992         source code modules.  From Paul Eggert.
87993
87994 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87995
87996         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87997         not char, for compatibility with glibc 2.1.3 strftime.c.
87998
87999 2000-08-03  Greg McGary  <greg@mcgary.org>
88000
88001         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88002         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88003         (EXTEND_BUFFER): Use them.
88004
88005 2000-08-01  Jim Meyering  <meyering@lucent.com>
88006
88007         * lib/dirname.c (ISSLASH): Define.
88008         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88009         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88010         both `\' and `/' may be use as path separators.
88011         Based on a patch from Prashant TR.
88012
88013 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88014
88015         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88016         slot vector a constant, since it might get modified.
88017
88018 2000-07-31  Jim Meyering  <meyering@lucent.com>
88019
88020         * lib/xmalloc.c: Use `virtual memory exhausted', not
88021         `Memory exhausted'.
88022         * lib/obstack.c (print_and_abort): Likewise.
88023
88024 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88025
88026         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88027         buffer, so that the caller can always quote one small
88028         component of a "memory exhausted" message in slot 0.
88029         From a suggestion by Jim Meyering.
88030
88031 2000-07-30  Jim Meyering  <meyering@lucent.com>
88032
88033         * lib/makepath.c (make_path): Quote the other instance, too.
88034
88035         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88036         (STATIC_BUF_SIZE): Define.
88037         (quotearg_n_options): Use only statically allocated storage when
88038         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88039         than STATIC_BUF_SIZE.
88040
88041 2000-07-29  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88044         * lib/dirname.c (dir_name): Likewise.
88045
88046         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88047         `/'.
88048
88049         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88050         (dir_name): Assert that there are no trailing slashes.
88051
88052 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88053
88054         * lib/mbswidth.h (mbswidth): Add a flags argument.
88055         (mbswidth): New declaration.
88056         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88057         * lib/mbswidth.c (mbswidth): Add a flags argument.
88058         (mbsnwidth): New function.
88059
88060 2000-07-24  Jim Meyering  <meyering@lucent.com>
88061
88062         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88063
88064 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88065
88066         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88067
88068 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88069
88070         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88071         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88072         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88073         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88074         invoke multibyte primitives.
88075
88076 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88077
88078         * lib/quotearg.c:
88079         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88080         so that mbstate_t is always defined.
88081
88082         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88083         be 1 in at least one GCC installation, and this configuration
88084         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88085         performance on hosts that have mbrtowc but have only unibyte
88086         locales, but I assume these hosts are rare.
88087
88088 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88089
88090         * lib/mbswidth.c (_XOPEN_SOURCE):
88091         Don't define; this causes problems on Solaris 7.
88092         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88093
88094 2000-07-23  Jim Meyering  <meyering@lucent.com>
88095
88096         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88097         too: getgrgid, getpwuid, getuid.
88098
88099 2000-07-23  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/basename.c (base_name): Add an assertion.
88102
88103 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88104
88105         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88106         shadow its mbsinit function.
88107
88108 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88109
88110         * lib/mbswidth.h: New file.
88111         * lib/mbswidth.c: New file.
88112         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88113         (noinst_HEADERS): Add mbswidth.h.
88114
88115 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88116
88117         * lib/config.charset: Add support for FreeBSD. Improve support for
88118         HP-UX and IRIX 6.
88119
88120 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88121
88122         * m4/mbswidth.m4: New file.
88123         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88124
88125 2000-07-15  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/makepath.c: Include quote.h.
88128         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88129         corresponding argument in a `quote (...)' call.
88130         Give better diagnostics.
88131
88132         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88133         (noinst_HEADERS): Add quote.h.
88134
88135         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88136         from tar's src/misc.c.
88137         * lib/quote.h: New file.  Prototypes for same.
88138
88139 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88140
88141         From a suggestion by Bruno Haible.
88142         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88143         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88144         to decide whether to define the BeOS workaround macro;
88145         this adjusts to the change to AC_MBSTATE_T.
88146
88147 2000-07-14  Jim Meyering  <meyering@lucent.com>
88148
88149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88150         jm_AC_TYPE_UINTMAX_T.
88151
88152 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88153
88154         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88155
88156         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88157         quotearg_buffer_restyled): Add support for
88158         clocale_quoting_style.  Undo previous change to
88159         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88160         and "{RIGHT QUOTATION MARK}" msgids.
88161
88162 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88163
88164         From a suggestion by Bruno Haible.
88165         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88166         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88167         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88168         and mbstate_t, to a single-part test that simply defines mbstate_t.
88169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88170         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88171
88172 2000-07-10  Jim Meyering  <meyering@lucent.com>
88173
88174         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88175
88176         * m4/gnu-source.m4: Output to confdefs.h directly.
88177         Suggestion from Akim Demaille.
88178
88179 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88180
88181         The old behavior of quoting `like this' doesn't look good with
88182         newer, ISO-style fonts.  See:
88183         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88184
88185         Instead, quote "like this" by default.  Let the translator
88186         tailor the locale-specific quoting behavior by providing
88187         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88188
88189         * lib/quotearg.c (N_): New macro.
88190         (gettext_default): New function.
88191         (quotearg_buffer_restyled): Use
88192         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88193         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88194
88195 2000-07-09  Jim Meyering  <meyering@lucent.com>
88196
88197         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88198         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88199
88200         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88202
88203 2000-07-09  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/Most files: Update copyright dates to include 2000.
88206
88207 2000-07-08  Jim Meyering  <meyering@lucent.com>
88208
88209         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88210         if not defined.
88211         (xgethostname): Remove now-unnecessary #ifdef.
88212         Move declaration of `err' into loop where it's used.
88213
88214 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88215         and Bruno Haible  <haible@clisp.cons.org>
88216
88217         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88218         only if the test for an object-type mbstate_t fails.  This
88219         prevents us from mistakenly reporting that mbstate_t is a
88220         system object type after we "#define mbstate_t int" to work
88221         around its lack.
88222
88223 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88224         and Bruno Haible  <haible@clisp.cons.org>
88225
88226         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88227
88228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88229
88230         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88231         to strerror_r.
88232         Include <ctype.h> for use of isalpha.
88233
88234 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88235
88236         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88237         by allocating a larger buffer. Test the gethostname return value for
88238         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88239         returns an error and ENAMETOOLONG isn't defined.
88240
88241 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88242
88243         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88244         dimension.
88245
88246 2000-07-04  Jim Meyering  <meyering@lucent.com>
88247
88248         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88249         of the deprecated AC_CHECKING.
88250
88251 2000-07-04  Jim Meyering  <meyering@lucent.com>
88252
88253         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88254         Reported by Bruno Haible.
88255
88256 2000-07-04  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88259         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88260         lacks mbrtowc.
88261
88262 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88263
88264         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88265         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88266
88267 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88268         and Bruno Haible  <haible@clisp.cons.org>
88269
88270         * lib/quotearg.c (mbrtowc):
88271         Assign to *pwc, and return 1 only if result is nonzero.
88272         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88273
88274 2000-07-03  Jim Meyering  <meyering@lucent.com>
88275
88276         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88277
88278 2000-07-03  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88281         This is necessary to get a definition of e.g., UTMP_FILE on
88282         HP-UX 10.20.
88283         From Bob Proulx.
88284
88285 2000-07-02  Jim Meyering  <meyering@lucent.com>
88286
88287         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88288
88289         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88290         AC_LIBOBJ(function_name).
88291         * m4/chown.m4: Likewise.
88292         * m4/fnmatch.m4: Likewise.
88293         * m4/ftruncate.m4: Likewise.
88294         * m4/getgroups.m4: Likewise.
88295         * m4/getline.m4: Likewise.
88296         * m4/group-member.m4: Likewise.
88297         * m4/jm-macros.m4: Likewise.
88298         * m4/lstat.m4: Likewise.
88299         * m4/malloc.m4: Likewise.
88300         * m4/memcmp.m4: Likewise.
88301         * m4/nanosleep.m4: Likewise.
88302         * m4/putenv.m4: Likewise.
88303         * m4/realloc.m4: Likewise.
88304         * m4/regex.m4: Likewise.
88305         * m4/stat.m4: Likewise.
88306         * m4/strftime.m4: Likewise.
88307
88308 2000-07-02  Jim Meyering  <meyering@lucent.com>
88309
88310         * lib/quotearg.c (mbstate_t): Don't define here.
88311
88312 2000-07-02  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88315
88316 2000-07-01  Jim Meyering  <meyering@lucent.com>
88317
88318         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88319
88320 2000-07-01  Jim Meyering  <meyering@lucent.com>
88321
88322         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88323         problem.
88324
88325 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88326
88327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88328         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88329
88330 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88331
88332         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88333         per change in ../m4/ls-mntd-fs.m4.
88334         (read_filesystem_list): Ignore symbolic links.
88335
88336 2000-06-29  Jim Meyering  <meyering@lucent.com>
88337
88338         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88339         for declaration of strcmp.
88340
88341         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88342
88343         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88344         Avoid warning by casting result to `char *' to remove `const'.
88345
88346 2000-06-28  Jim Meyering  <meyering@lucent.com>
88347
88348         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88349         included by quotearg.c, for which we perform this test.  From
88350         Bruno Haible.
88351
88352 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88353
88354         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88355         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88356         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88357
88358 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88359
88360         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88361
88362 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88363
88364         savedir now sets errno on failure and invokes xmalloc to get memory.
88365         Fix a couple of other minor bugs while we're at it.
88366
88367         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88368         (NAMLEN): Remove macro.
88369         (malloc, realloc): Remove decls.
88370         (stpcpy): Likewise.
88371         ("xalloc.h"): Include.
88372         (NAME_SIZE_DEFAULT): New macro.
88373         (savedir): Use xmalloc / xrealloc to allocate memory.
88374         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88375         Skip "" directory entries.
88376         Use strlen to calculate directory entry length, since the old method
88377         is rarely used these days and isn't worth supporting.
88378         Don't use a pointer after freeing it.
88379         Check for integer overflow when calculating allocation size.
88380         Use memcpy to copy entries, instead of stpcpy.
88381         Set errno properly when returning NULL.
88382         Check for readdir error.
88383
88384 2000-06-26  Jim Meyering  <meyering@lucent.com>
88385
88386         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88387
88388 2000-06-25  Jim Meyering  <meyering@lucent.com>
88389
88390         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88391         Linux header bug when _XOPEN_SOURCE is defined to 500.
88392
88393 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88394
88395         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88396         deficiency.
88397
88398 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88399
88400         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88401         Include xalloc.h.
88402         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88403
88404 2000-06-24  Jim Meyering  <meyering@lucent.com>
88405
88406         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88407         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88408         for which strerror does return char*, but which lacks a conveniently
88409         accessible declaration of the function.  If the compile-test says
88410         strerror_r doesn't work, then resort to a `run'-test that works on
88411         BeOS and segfaults on DEC Unix.
88412
88413 2000-06-24  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88416
88417 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88418
88419         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88420         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88421
88422 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88423
88424         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88425         (mbrtowc, mbstate_t): Define substitutes if
88426         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88427         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88428         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88429
88430 2000-06-23  Jim Meyering  <meyering@lucent.com>
88431
88432         * m4/afs.m4: Add missing AC_MSG_RESULT.
88433         Reported by Bruno Haible.
88434
88435         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88436         Suggestion from Bruno Haible.
88437
88438 2000-06-23  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88441
88442 2000-06-21  Jim Meyering  <meyering@lucent.com>
88443
88444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88445
88446 2000-06-21  Jim Meyering  <meyering@lucent.com>
88447
88448         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88449         (noinst_HEADERS): Add getstr.h.
88450
88451         * lib/getline.c (getstr): Move into a separate file.
88452         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88453         the following changes: new parameter, delim2; both delim[12]
88454         parameters have type `int', not `char'.  The latter would lose
88455         with 8-bit delimiters.
88456         * lib/getstr.h: New file.
88457
88458 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88459
88460         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88461         than 1024, return a memory chunk of least possible size, instead
88462         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88463         Use free/xmalloc instead of xrealloc to avoid copying for very long
88464         paths.
88465
88466 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88467
88468         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88469         the empty string.
88470
88471 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88472
88473         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88474         address, not strdup.  Include <stdlib.h> and don't declare free().
88475
88476 2000-06-19  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88479
88480 2000-06-18  Jim Meyering  <meyering@lucent.com>
88481
88482         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88483
88484         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88485         `checking whether...' message to be consistent with that of the
88486         lstat test.
88487
88488 2000-06-18  Jim Meyering  <meyering@lucent.com>
88489
88490         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88491         Besides, these days every porting target provides a mkdir function.
88492
88493         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88494         needed. (this snippet comes from src/system.h).
88495
88496 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88497
88498         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88499
88500 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88501
88502         * lib/human.c (adjust_value): New function.
88503         (human_readable_inexact): Apply rounding style even when
88504         printing approximate values.
88505
88506 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88507
88508         * lib/human.c (human_readable_inexact): Allow an input block
88509         size that is not a multiple of the output block size, and vice versa.
88510         Reported by Piergiorgio Sartor.
88511
88512 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/getdate.y (get_date): Apply relative times after time
88515         zone indicator, not before.  Reported by Todd A. Jacobs.
88516
88517 2000-06-13  Jim Meyering  <meyering@lucent.com>
88518
88519         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88520
88521         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88522
88523 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88524
88525         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88526
88527 2000-06-12  Jim Meyering  <meyering@lucent.com>
88528
88529         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88530         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88531         optional argument.
88532         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88533         the optional argument, `lib'.
88534
88535 2000-06-08  Jim Meyering  <meyering@lucent.com>
88536
88537         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88538
88539 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88540
88541         Rewrite largefile configuration so that we don't need to run
88542         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88543         AC_CANONICAL_HOST in configure.in -- jmm]
88544
88545         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88546         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88547         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88548         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88549         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88550         All uses changed.
88551         Instead of inspecting the output of getconf, try to compile the
88552         test program without and with the macro definition.
88553         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88554         for getconf.  Instead, check for the needed flags by compiling
88555         test programs.
88556
88557 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88558
88559         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88560
88561 2000-06-04  Jim Meyering  <meyering@lucent.com>
88562
88563         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88564         SunOS 4.1.4 for which gid_t is an unsigned type.
88565
88566 2000-06-03  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88569         now that autoconf requires that.
88570
88571         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88572         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88573         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88574
88575 2000-06-03  Jim Meyering  <meyering@lucent.com>
88576
88577         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88578
88579 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88580
88581         * m4/glibc21.m4: New file.
88582         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88583
88584 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88585
88586         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88587         newer, don't install charset.alias.
88588         * lib/config.charset: Change the Linux/glibc rules so they become empty
88589         on glibc-2.1 or newer.
88590
88591 2000-06-02  Jim Meyering  <meyering@lucent.com>
88592
88593         * lib/mountlist.c: Back out last change.  Instead, do this...
88594         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88595         me_dummy member using the same `ignore'-testing code.
88596         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88597         fs_type strings.
88598         From Mark D. Roth.
88599
88600 2000-05-29  Jim Meyering  <meyering@lucent.com>
88601
88602         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88603         mounts with the `ignore' attribute.  Based on a patch from
88604         Mark D. Roth.
88605
88606 2000-05-28  Jim Meyering  <meyering@lucent.com>
88607
88608         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88609         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88610         * m4/stat.m4: Likewise.
88611         * m4/lstat.m4: Likewise.
88612         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88613
88614         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88615         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88616
88617 2000-05-26  Jim Meyering  <meyering@lucent.com>
88618
88619         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88620
88621 2000-05-24  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88624         autoconf requires that.
88625         * m4/lib-check.m4: Likewise.
88626         * m4/jm-macros.m4: Likewise.
88627         * m4/strftime.m4: Likewise.
88628
88629         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88630         AC_CHECK_DECLS, now that autoconf requires that.
88631
88632 2000-05-22  Jim Meyering  <meyering@lucent.com>
88633
88634         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88635         * m4/lstat.m4: Likewise.
88636
88637 2000-05-22  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88640
88641 2000-05-20  Jim Meyering  <meyering@lucent.com>
88642
88643         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88644         (jm_PREREQ): Use it.
88645
88646 2000-05-18  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88649         back, too, since it may have been modified by allocate_entry.
88650         (hash_delete): Rewrite to use neither the assignment operator
88651         nor the comma operator in an if-expression.
88652
88653 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88654
88655         * lib/closeout.c:
88656         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88657         Remove; no longer needed.
88658         "quotearg.h": Add include.
88659         (file_name): Do not bother to explicitly initialize to NULL; it's less
88660         efficient on some hosts.
88661         (close_stdout_status): Remove test as to whether stdout was already
88662         closed; it breaks for the case "echo x | sort >&-".
88663         Quote file name colons.
88664         Do not assume that _("write error") lacks format strings.
88665
88666 2000-05-15  Jim Meyering  <meyering@lucent.com>
88667
88668         * lib/version-etc.c (version_etc_copyright): Update the copyright
88669         string used in all --version output.
88670
88671 2000-05-14  Jim Meyering  <meyering@lucent.com>
88672
88673         * lib/closeout.c (close_stdout_set_file_name): New function.
88674         (close_stdout_status): Use new file-scoped global.
88675         Return right away if fstat says the stdout file descriptor is invalid.
88676         * lib/closeout.h (close_stdout_set_file_name): Declare.
88677
88678 2000-05-10  Jim Meyering  <meyering@lucent.com>
88679
88680         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88681         (close_stdout_set_status): New function.
88682         * lib/closeout.h (close_stdout_set_status): Declare.
88683
88684 2000-05-09  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/gettext.m4: Rename this...
88687         * m4/libintl.m4: ...to this.
88688
88689 2000-05-08  Jim Meyering  <meyering@lucent.com>
88690
88691         * lib/long-options.c: Don't include closeout.h.
88692         (parse_long_options): Don't call close_stdout for --version.
88693
88694 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88695
88696         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88697         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88698         2.1.3 bug.  This avoids a clash when files like regex.c define
88699         _GNU_SOURCE.
88700
88701 2000-05-06  Jim Meyering  <meyering@lucent.com>
88702
88703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88704         (AC_REPLACE_FUNCS): Add strnlen.
88705
88706         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88707         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88708
88709         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88710         AC_SEARCH_LIBS call for nanosleep.
88711         (LIB_NANOSLEEP): Set and AC_SUBST.
88712
88713 2000-05-06  Jim Meyering  <meyering@lucent.com>
88714
88715         * lib/strnlen.c: Undefine __strnlen and strnlen.
88716         [!weak_alias]: Define __strnlen to strnlen.
88717
88718         * lib/atexit.c: New file, from libiberty.
88719
88720 2000-05-06  Jim Meyering  <meyering@lucent.com>
88721
88722         * lib/closeout.c (close_stdout_status): Also check for errors on the
88723         stderr stream.
88724
88725 2000-05-05  Jim Meyering  <meyering@lucent.com>
88726
88727         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88728         AC_SEARCH_LIBS call for clock_gettime.
88729         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88730
88731         * m4/search-libs.m4: Update from autoconf.
88732
88733         su doesn't work on Solaris 2.6.
88734         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88735         <shadow.h>.  Reported by Dragos Harabor.
88736
88737 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88738
88739         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88740         memcpy instead of xmalloc, xrealloc, path_concat.
88741         (locale_charset): Treat empty environment variables as absent.
88742         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88743
88744 2000-05-04  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/getopt.c: Update from glibc.
88747         * lib/obstack.c: Likewise.
88748         * lib/obstack.h: Likewise.
88749         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88750         file
88751
88752         * lib/regex.h: Likewise.
88753         * lib/strndup.c: Likewise.
88754         * lib/strnlen.c: New file, from glibc.
88755
88756 2000-05-03  Jim Meyering  <meyering@lucent.com>
88757
88758         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88759
88760 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88761
88762         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88763         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88764         compile-time test, rather than inspecting host and OS, to
88765         decide whether to define _LARGEFILE_SOURCE.
88766
88767 2000-05-01  Jim Meyering  <meyering@lucent.com>
88768
88769         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88770
88771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88772         Based on a patch from Bruno Haible.
88773
88774 2000-05-01  Jim Meyering  <meyering@lucent.com>
88775
88776         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88777
88778 2000-04-29  Jim Meyering  <meyering@lucent.com>
88779
88780         * lib/path-concat.c: Declare strdup only if it's not defined.
88781         * lib/canon-host.c: Likewise.
88782
88783 2000-04-28  Jim Meyering  <meyering@lucent.com>
88784
88785         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88786         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88787         is included first, then limits.h is included by locale.h by libintl.h.
88788         From John David Anglin.
88789
88790 2000-04-25  Jim Meyering  <meyering@lucent.com>
88791
88792         * lib/makepath.c (S_IRWXUGO): Define.
88793         (make_path): Always perform explicit chmod if MODE specifies any
88794         of the `special' permission bits.  Prompted by a bug report against
88795         install from Mate Wierdl and Joost van Baal.
88796
88797 2000-04-18  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88800         (jm_PREREQ): Use it.
88801
88802 2000-04-18  Jim Meyering  <meyering@lucent.com>
88803
88804         * lib/README: New file.
88805
88806         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88807         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88808
88809 2000-04-17  Jim Meyering  <meyering@lucent.com>
88810
88811         Get it right :-)
88812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88813         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88814         Suggestion from Akim Demaille.
88815
88816 2000-04-17  Jim Meyering  <meyering@lucent.com>
88817
88818         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88819         the definition of it to rpl_strftime also defined-away the system's
88820         declaration.
88821
88822 2000-04-15  Jim Meyering  <meyering@lucent.com>
88823
88824         Use `C' to denote so-called `contiguous' files, the same way
88825         that tar does.
88826         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88827         (ftypelet): Use S_ISCTG.
88828         From Michael Deutschmann.
88829
88830 2000-04-14  Jim Meyering  <meyering@lucent.com>
88831
88832         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88833         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88834         clobbered.
88835
88836 2000-04-14  Jim Meyering  <meyering@lucent.com>
88837
88838         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88839
88840 2000-04-13  Jim Meyering  <meyering@lucent.com>
88841
88842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88843         AH_VERBATIM to insert required #ifndef into config.h.in.
88844         Suggestion from Akim Demaille.
88845
88846 2000-04-12  Jim Meyering  <meyering@lucent.com>
88847
88848         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88849         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88850         Christian Krackowizer.
88851
88852         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88853         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88854         (AC_SYS_LARGEFILE): Require.
88855         (AM_C_PROTOTYPES): Require.
88856
88857 2000-04-08  Jim Meyering  <meyering@lucent.com>
88858
88859         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88860         names don't conflict.  Reported by Eli Zaretskii.
88861
88862 2000-04-07  Jim Meyering  <meyering@lucent.com>
88863
88864         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88865         sys/types.h, to work around system header problems on AIX 3.2.5.
88866         From Bruno Haible.
88867
88868 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88869
88870         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88871         bug.  Deal with the different error behavior of Irix iconv.
88872
88873 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88874
88875         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88876         IRIX if the installer said otherwise.
88877
88878 2000-04-05  Jim Meyering  <meyering@lucent.com>
88879
88880         Portability tweaks required for ultrix4.3.
88881         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88882         (jm_CHECK_DECLS): Add getutent to the list of functions.
88883         (_jm_DECL_HEADERS): Add utmpx.h.
88884         From John David Anglin.
88885
88886         * m4/strftime.m4: Back out the 2000-04-02 change.
88887         Instead of that change, simply undefine putenv in the test program.
88888
88889 2000-04-05  Jim Meyering  <meyering@lucent.com>
88890
88891         Portability tweaks required for ultrix4.3.
88892         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88893         getutent.
88894         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88895         * lib/canon-host.c: Declare strdup.
88896         * lib/path-concat.c: Likewise.
88897         From John David Anglin.
88898
88899 2000-04-04  Jim Meyering  <meyering@lucent.com>
88900
88901         Be more DOS 8.3-friendly.
88902         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88903         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88904         * lib/Makefile.am: Reflect renaming.
88905         Reported by Eli Zaretskii.
88906
88907         Use a temporary file name that won't clash with `charset.alias'
88908         in the DOS 8.3 name space.
88909         * lib/Makefile.am (charset_tmp): Define.
88910         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88911         (uninstall-local): Likewise.
88912         Reported by Eli Zaretskii.
88913
88914 2000-04-03  Jim Meyering  <meyering@lucent.com>
88915
88916         * m4/gettext.m4: Fix typo in comment.
88917
88918         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88919         textutils/configure.in).  Suggestion from Paul Eggert.
88920         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88921
88922 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88923
88924         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88925         variable in the shell rather than using putenv, which isn't
88926         portable.  This avoids the configure-time inter-test dependency
88927         on the potentially-renamed putenv function.
88928
88929 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88930
88931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88932         before checking struct stat.st_blksize, so that
88933         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88934
88935 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88936
88937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88938         since strftime.c uses HAVE_STRFTIME to decide whether to use
88939         the underlying strftime.
88940
88941 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88942
88943         * lib/time/strftime.c (my_strftime): Make sure we call the system
88944         strftime, not ourselves, when invoking the underlying strftime.
88945
88946 2000-03-24  Jim Meyering  <meyering@lucent.com>
88947
88948         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88949         (charset_alias): Define.
88950         (install-exec-local): Factor out common code.
88951         (uninstall-local): Split lines longer than 80.
88952         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88953         (SUFFIXES): Define.
88954         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88955         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88956
88957 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88958
88959         * lib/config.charset: Output a line containing "Packages using this
88960         file".
88961         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88962         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88963         ref-del.sed): New rules.
88964
88965 2000-03-17  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88968         Otherwise, include <strings.h>
88969
88970 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88971
88972         * lib/unicodeio.c (utf8_wctomb): New function.
88973         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88974         format instead of in UCS-4 with platform dependent endianness.
88975
88976 2000-03-10  Jim Meyering  <meyering@lucent.com>
88977
88978         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88979         From Marco Franzen.
88980
88981 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88982
88983         * lib/savedir.c (savedir): Work even if directory size is
88984         negative; this can happen with some screwy NFS configurations.
88985
88986 2000-03-06  Jim Meyering  <meyering@lucent.com>
88987
88988         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88989         if it's NULL (because we ran out of memory).  From Bruno Haible.
88990
88991 2000-03-05  Jim Meyering  <meyering@lucent.com>
88992
88993         * lib/localcharset.c ("path-concat.h"): Include.
88994         (get_charset_aliases): Use path_concat instead of ANSI string
88995         concatenation.
88996
88997         * lib/unicodeio.h (PARAMS): Define.
88998         Use it to guard prototype.
88999
89000 2000-03-04  Jim Meyering  <meyering@lucent.com>
89001
89002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89003         for lib/localcharset.c.
89004
89005 2000-03-04  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89008         installing into it.
89009         (uninstall-local): Uncomment this rule so `make distcheck' works
89010         once again.
89011
89012         * lib/unicodeio.c (<errno.h>): Include it.
89013         (errno): Declare if not defined.
89014
89015         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89016
89017         * lib/config.charset: New version, incorporating remarks from a linux
89018         i18n mailing list.  From Bruno Haible.
89019
89020 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89021
89022         * m4/codeset.m4: New file.
89023         * m4/iconv.m4: New file.
89024         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89025
89026 2000-03-03  Jim Meyering  <meyering@lucent.com>
89027
89028         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89029
89030 2000-03-02  Jim Meyering  <meyering@lucent.com>
89031
89032         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89033         the messages come out on separate lines.
89034
89035         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89036         rather than jm_CHECK_DECLARATIONS.
89037         * m4/decl.m4: Remove now-unused file.
89038
89039         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89040         geteuid.
89041
89042 2000-03-02  Jim Meyering  <meyering@lucent.com>
89043
89044         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89045
89046 2000-03-01  Jim Meyering  <meyering@lucent.com>
89047
89048         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89049         * lib/unicodeio.c: Likewise.
89050
89051 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89052
89053         * lib/config.charset: New file.
89054         * lib/localcharset.c: New file.
89055         * lib/unicodeio.h, lib/unicodeio.c: New files.
89056         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89057         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89058         (noinst_HEADERS): Add unicodeio.h.
89059         (all-local, install-exec-local, charset.alias): New targets.
89060
89061 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89062
89063         * lib/quotearg.c (ALERT_CHAR): New macro.
89064         (quotearg_buffer_restyled): Use it.
89065
89066 2000-02-27  Jim Meyering  <meyering@lucent.com>
89067
89068         * m4/check-decl.m4: Add getenv to the list.
89069
89070 2000-02-27  Jim Meyering  <meyering@lucent.com>
89071
89072         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89073         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89074
89075         * lib/backupfile.c: Guard inclusion of stdlib.h with
89076         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89077         Declare malloc if needed.
89078
89079         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89080         `#ifndef HAVE_DECL..'
89081         now that autoconf always defines the HAVE_DECL_ symbols.
89082         * lib/human.c: Likewise.
89083         * lib/same.c: Likewise.
89084         * lib/strtoumax.c: Likewise.
89085
89086         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89087         declaration check was not run.
89088         * lib/hash.c: Likewise.
89089         * lib/human.c: Likewise.
89090         * lib/same.c: Likewise.
89091         * lib/strtoumax.c: Likewise.
89092
89093         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89094         `.', then first look up the entire `.'-containing string as a login
89095         name.
89096
89097 2000-02-23  Jim Meyering  <meyering@lucent.com>
89098
89099         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89100         in place of my hack.
89101
89102 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89103
89104         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89105         (textint): New typedef.
89106         (parser_control): Member year changed from int to textint.
89107         All uses changed.
89108         (YYSTYPE): Removed; replaced by %union with int and textint members.
89109         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89110         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89111         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89112         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89113         (date, number, to_year): Use width of number in digits, not its value,
89114         to determine whether it's a 2-digit year, or a 2-digit time.
89115         (yylex): Store number of digits of numeric tokens.
89116         Reported by John Kendall.
89117
89118         (parser_control): Changed from struct parser_control to typedef (for
89119         consistency).  All uses changed.
89120
89121         (tID): Removed; not used.
89122         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89123
89124 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89125
89126         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89127         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89128
89129 2000-02-12  Jim Meyering  <meyering@lucent.com>
89130
89131         * lib/userspec.c (ISDIGIT): Define it.
89132         (isdigit): Remove definition.
89133         (is_number): Use ISDIGIT, not isdigit.
89134         <libintl.h>: Include.
89135         (_ and N_): Define.
89136         (parse_user_spec): Mark translatable strings.
89137
89138 2000-02-10  Jim Meyering  <meyering@lucent.com>
89139
89140         With these changes, nanosleep.[ch] are finally enough like the other
89141         lib/* replacement files to compile on a few more losing systems.
89142
89143         * lib/nanosleep.h: Don't include config.h.
89144         Remove prototype from declaration of nanosleep.
89145         (PARAMS): Remove now-unneeded definition.
89146         * lib/nanosleep.c: #undef nanosleep.
89147         (rpl_nanosleep): Rename from nanosleep.
89148
89149 2000-02-10  Jim Meyering  <meyering@lucent.com>
89150
89151         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89152         gnu_nanosleep to rpl_nanosleep.
89153
89154 2000-02-09  Jim Meyering  <meyering@lucent.com>
89155
89156         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89157         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89158
89159 2000-02-08  Akim Demaille  <akim@epita.fr>
89160
89161         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89162         `[' and `]' and remove uses of `changequote'.
89163         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89164         (AC_SYS_LARGEFILE): Likewise.
89165         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89166         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89167         of changequote.
89168         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89169         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89170         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89171         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89172
89173 2000-02-05  Jim Meyering  <meyering@lucent.com>
89174
89175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89176         Remove explicit use of AC_HEADER_TIME.  It is required by
89177         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89178         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89179         in autoconf whereby the expansion of the latter ended up preceding
89180         the expansion of its prerequisite, AC_HEADER_TIME.
89181         Reported by Volker Borchert.
89182
89183 2000-02-03  Jim Meyering  <meyering@lucent.com>
89184
89185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89186
89187 2000-02-03  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89190         rather than with `#if HAVE_UTMPNAME'.
89191
89192 2000-02-02  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89195         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89196         Reported by Eli Zaretskii.
89197
89198 2000-02-01  Jim Meyering  <meyering@lucent.com>
89199
89200         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89201
89202 2000-01-31  Jim Meyering  <meyering@lucent.com>
89203
89204         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89205         functions.  Add the time.h and sys/time.h headers along with the
89206         AC_REQUIRE'ment of AC_HEADER_TIME.
89207
89208 2000-01-31  Jim Meyering  <meyering@lucent.com>
89209
89210         * lib/nanosleep.h (nanosleep): Guard declaration with
89211         `#if ! HAVE_DECL_NANOSLEEP'.
89212         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89213         the declaration in that vendor's sys/timers.h.
89214         Reported by Christian Krackowizer.
89215
89216         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89217         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89218         (ISPRINT): Likewise.
89219         Reported by Tom Tromey.
89220
89221 2000-01-30  Jim Meyering  <meyering@lucent.com>
89222
89223         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89224
89225         * m4/prereq.m4 (utmp_includes): Define.
89226         Check for ut_user and ut_name members in both struct utmpx
89227         and struct utmp.
89228
89229 2000-01-30  Jim Meyering  <meyering@lucent.com>
89230
89231         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89232         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89233         header files where only utmpx.ut_user is declared.
89234
89235         * lib/readutmp.h (UT_USER): Define.
89236
89237 2000-01-29  Jim Meyering  <meyering@lucent.com>
89238
89239         * m4/lib-check.m4: New file containing library-related checks from
89240         fileutils and sh-utils (textutils had none).
89241
89242 2000-01-28  Jim Meyering  <meyering@lucent.com>
89243
89244         * m4/perl.m4: Change format of warning message to look more like that
89245         from the missing script.  Suggestion from François Pinard.
89246
89247 2000-01-25  Jim Meyering  <meyering@lucent.com>
89248
89249         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89250         well as time.h in the compile check.
89251         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89252         Fix typo in cross-compiling case: s/yes/no/.
89253
89254 2000-01-23  Jim Meyering  <meyering@lucent.com>
89255
89256         * m4/jm-macros.m4: Move df-related tests here from
89257         fileutils/configure.in
89258
89259         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89260         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89261
89262         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89263         s/space/ac_fsusage_space/.
89264         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89265
89266         * m4/ftruncate.m4: New file (derived from part of
89267         fileutils/configure.in).
89268         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89269         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89270
89271         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89272         AC_SUBST these here, rather than just in sh-util/configure.in, so
89273         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89274         all the same.
89275         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89276         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89277         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89278         (AC_SUBST(POW_LIBM)): Likewise.
89279         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89280
89281 2000-01-23  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89284         obstack.c.
89285
89286 2000-01-22  Jim Meyering  <meyering@lucent.com>
89287
89288         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89289
89290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89291
89292         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89293         configure.in
89294         (AC_CHECK_HEADERS): Likewise for sh-utils.
89295         (AC_CHECK_HEADERS): Likewise for textutils.
89296         Merge the three lists of headers.
89297
89298         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89299         from fileutils' configure.in.
89300
89301         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89302         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89303         check-decl.m4.
89304
89305         * m4/check-decl.m4: Use #if rather than #ifdef.
89306         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89307         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89308         (_jm_DECL_HEADERS): Define new function.
89309         (jm_CHECK_DECLARATIONS): Require it.
89310
89311 2000-01-22  Jim Meyering  <meyering@lucent.com>
89312
89313         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89314         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89315         Required for some AIX systems.  Reported by Christian Krackowizer.
89316         [TESTING] (main): New function.
89317
89318         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89319         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89320         letters.
89321
89322         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89323         iswprint.
89324
89325         * lib/strverscmp.c (ISDIGIT): Define.
89326         (strverscmp): Use ISDIGIT, not isdigit.
89327
89328 2000-01-19  Jim Meyering  <meyering@lucent.com>
89329
89330         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89331         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89332         defines `struct timespec' in <sys/time.h>
89333
89334         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89335         Thanks to Akim for explaining.
89336
89337 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89338
89339         * lib/nanosleep.c (nanosleep):
89340         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89341         POSIX.1 doesn't require SA_INTERRUPT and some systems
89342         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89343         it's been part of POSIX.1 since day 1 (in 1988).
89344
89345 2000-01-17  Jim Meyering  <meyering@lucent.com>
89346
89347         * lib/interlock: Remove unused file.  Reported by François Pinard.
89348
89349 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89350
89351         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89352         alert, backslash, formfeed, and vertical tab unnecessarily in
89353         shell quoting style.
89354
89355 2000-01-16  Jim Meyering  <meyering@lucent.com>
89356
89357         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89358         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89359         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89360         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89361
89362 2000-01-16  Jim Meyering  <meyering@lucent.com>
89363
89364         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89365         because the latter didn't work.
89366
89367 2000-01-15  Jim Meyering  <meyering@lucent.com>
89368
89369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89370         (AC_REPLACE_FUNCS): Add memcpy and memset.
89371         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89372         Add strpbrk.
89373         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89374
89375 2000-01-12  Jim Meyering  <meyering@lucent.com>
89376
89377         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89378         (jm_PREREQ): Use it.
89379         (jm_PREREQ_READUTMP): New macro.
89380         (jm_PREREQ): Use it.
89381
89382 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89383
89384         Quote multibyte characters correctly.
89385         * m4/c-bs-a.m4: New file.
89386         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89387         (jm_PREREQ): Use it.
89388
89389 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89390
89391         * m4/uintmax_t.m4: Port to autoconf 2.13.
89392
89393 2000-01-08  Jim Meyering  <meyering@ascend.com>
89394
89395         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89396         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89397
89398 2000-01-04  Jim Meyering  <meyering@ascend.com>
89399
89400         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89401         jm_STRUCT_DIRENT_D_TYPE.
89402         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89403         jm_STRUCT_DIRENT_D_INO.
89404         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89405         jm_STRUCT_UTIMBUF.
89406         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89407         renamings.
89408         * m4/utime.m4: Likewise.
89409
89410         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89411         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89412
89413 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89414
89415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89416         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89417
89418 2000-01-02  Jim Meyering  <meyering@ascend.com>
89419
89420         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89421         remember if this is necessary.
89422
89423 1999-12-26  Jim Meyering  <meyering@ascend.com>
89424
89425         * m4/jm-macros.m4: Use it here.
89426         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89427
89428 1999-12-23  Jim Meyering  <meyering@ascend.com>
89429
89430         * m4/jm-macros.m4: Check for clock_gettime (moved from
89431         fileutils/configure.in)
89432         Check for gettimeofday.
89433
89434 1999-12-20  Jim Meyering  <meyering@ascend.com>
89435
89436         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89437         autoconf-2.14a-1999-12-20.
89438
89439 1999-12-19  Jim Meyering  <meyering@ascend.com>
89440
89441         * m4/lstat-slash.m4: New file.
89442         * m4/jm-macros.m4: Use the new macro:
89443         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89444
89445 1999-12-07  Jim Meyering  <meyering@ascend.com>
89446
89447         * m4/perl.m4: Require that File::Compare be available, too.
89448         Too many systems seem to lack it.
89449
89450         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89451         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89452
89453 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89454
89455         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89456         problem with the QNX 4.25 shell, which doesn't propagate exit
89457         status of failed commands inside shell assignments.
89458
89459 1999-11-17  Jim Meyering  <meyering@ascend.com>
89460
89461         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89462
89463 1999-11-07  Jim Meyering  <meyering@ascend.com>
89464
89465         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89466
89467 1999-11-06  Jim Meyering  <meyering@ascend.com>
89468
89469         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89470         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89471
89472 1999-11-05  Jim Meyering  <meyering@ascend.com>
89473
89474         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89475         configure.in of textutils, fileutils, and sh-utils into this one
89476         (shared between those packages) file.
89477         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89478         AC_STRUCT_ST_BLKSIZE.
89479
89480 1999-11-03  Jim Meyering  <meyering@ascend.com>
89481
89482         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89483         of AC_CHECK_TYPE checks includes unistd.h.
89484         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89485         Suggestion from Akim Demaille.
89486
89487 1999-10-30  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89490         m4-quoted string.
89491         * m4/ls-mntd-fs.m4: Likewise.
89492         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89493         * m4/jm-winsz1.m4: Likewise.
89494
89495         * m4/const.m4: Remove file, since the fix made it into the experimental
89496         version of autoconf.
89497         * m4/mktime.m4: Likewise.
89498
89499         * m4/check-type.m4: Remove file, now that the latest version of
89500         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89501
89502         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89503         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89504         AC_CHECK_TYPE.
89505
89506 1999-10-04  Jim Meyering  <meyering@ascend.com>
89507
89508         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89509
89510 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89511
89512         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89513         2.95.1 bug with HP-UX 10.20.
89514
89515 1999-09-17  Jim Meyering  <meyering@ascend.com>
89516
89517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89518         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89519         due to missing strdup (against sh-utils-2.0).
89520
89521 1999-08-29  Jim Meyering  <meyering@ascend.com>
89522
89523         * m4/jm-macros.m4: Require jm_BISON.
89524         * m4/bison.m4: New file.
89525
89526 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89527
89528         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89529         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89530
89531 1999-08-05  Jim Meyering  <meyering@ascend.com>
89532
89533         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89534         to avoid conflicts with `conftest' on 8+3 filesystems.
89535         Suggestion from Eli Zaretskii.
89536
89537 1999-08-04  Jim Meyering  <meyering@ascend.com>
89538
89539         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89540         fileutils and sh-utils (textutils's getline test was inadequate).
89541         (AM_FUNC_GETLINE): Run this test.
89542         (AC_CHECK_FUNCS): Check for getdelim.
89543         Reported by Bob Proulx.
89544
89545 1999-08-02  Jim Meyering  <meyering@ascend.com>
89546
89547         * m4/jm-macros.m4: Add a comment.
89548
89549 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89550
89551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89552         <inttypes.h> defines strtoumax as a macro (and not as a
89553         function).
89554
89555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89556
89557         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89558         that we can shift, multiply and divide unsigned long long
89559         values; Ultrix cc can't do it.
89560
89561 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89562
89563         * m4/mktime.m4: New file, which is a preview of what should appear
89564         in the next public autoconf release.
89565
89566 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89567
89568         * m4/lfs.m4: Remove this file.
89569         * m4/largefile.m4: New file.  It contains the old contents of
89570         lfs.m4, except that all names with prefix AC_LFS have been
89571         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89572         compatible with future autoconf versions.  Also, some minor m4
89573         quoting problems have been fixed.
89574
89575 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89576
89577         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89578         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89579         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89580         and simplify the shell code.
89581
89582 1999-08-01  Jim Meyering  <meyering@ascend.com>
89583
89584         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89585         m4.
89586
89587 1999-07-20  Jim Meyering  <meyering@ascend.com>
89588
89589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89590
89591 1999-07-15  Jim Meyering  <meyering@ascend.com>
89592
89593         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89594
89595 1999-05-22  Jim Meyering  <meyering@ascend.com>
89596
89597         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89598
89599 1999-05-20  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89602         Add a colon after each `then' in case $4 is empty.
89603
89604 1999-05-16  Jim Meyering  <meyering@ascend.com>
89605
89606         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89607
89608 1999-05-10  Jim Meyering  <meyering@ascend.com>
89609
89610         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89611
89612         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89613         AC_FUNC_MKTIME.
89614
89615 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89616
89617         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89618
89619 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89620
89621         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89622         not CPPFLAGS, so that linking works correctly in IRIX.
89623
89624 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89625
89626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89627
89628 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89629
89630         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89631         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89633         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89634         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89635
89636         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89637
89638 1999-04-20  Jim Meyering  <meyering@ascend.com>
89639
89640         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89641         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89642         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89643
89644 1999-04-18  Jim Meyering  <meyering@ascend.com>
89645
89646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89647         * m4/jm-macros.m4: Use it.
89648
89649 1999-04-06  Jim Meyering  <meyering@ascend.com>
89650
89651         * m4/strftime.m4: Remove test for %f.
89652
89653 1999-03-29  Jim Meyering  <meyering@ascend.com>
89654
89655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89656         superset of the AC_TYPE_* checks in the textutils, fileutils,
89657         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89658         AC_TYPE_PID_T.
89659
89660 1999-03-28  Jim Meyering  <meyering@ascend.com>
89661
89662         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89663         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89664         replaced e.g., in the *.sh files of the sh-utils.
89665
89666 1999-03-20  Jim Meyering  <meyering@ascend.com>
89667
89668         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89669         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89670         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89671
89672 1999-03-19  Jim Meyering  <meyering@ascend.com>
89673
89674         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89675
89676 1999-03-12  Jim Meyering  <meyering@ascend.com>
89677
89678         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89679
89680 1999-03-07  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89683         declared.
89684
89685 1999-02-17  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89688         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89689
89690 1999-02-07  Jim Meyering  <meyering@ascend.com>
89691
89692         * m4/group-member.m4: New file -- extracted from sh-utils'
89693         configure.in.
89694
89695         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89696         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89697
89698 1999-02-06  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89701         * m4/fnmatch.m4: Likewise.
89702         * m4/getgroups.m4: Likewise.
89703         * m4/lstat.m4: Likewise.
89704         * m4/malloc.m4: Likewise.
89705         * m4/putenv.m4: Likewise.
89706         * m4/realloc.m4: Likewise.
89707         * m4/regex.m4: Likewise.
89708         * m4/stat.m4: Likewise.
89709         * m4/strftime.m4: Likewise.
89710         Suggestion from Alain Magloire.
89711
89712         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89713         * m4/fnmatch.m4: Likewise.
89714         * m4/getgroups.m4: Likewise.
89715         * m4/getline.m4: Likewise.
89716         * m4/lstat.m4: Likewise.
89717         * m4/malloc.m4: Likewise.
89718         * m4/memcmp.m4: Likewise.
89719         * m4/putenv.m4: Likewise.
89720         * m4/realloc.m4: Likewise.
89721         * m4/regex.m4: Likewise.
89722         * m4/stat.m4: Likewise.
89723         * m4/strftime.m4: Likewise.
89724         Suggestion from Alain Magloire.
89725
89726         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89727         an argument.
89728
89729         * m4/regex.m4: Add a run-time Test for proper operation of
89730         re_compile_pattern.
89731
89732 1999-01-31  Jim Meyering  <meyering@ascend.com>
89733
89734         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89735
89736 1999-01-30  Jim Meyering  <meyering@ascend.com>
89737
89738         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89739
89740         * m4/jm-mktime.m4: Make this a wrapper around the official
89741         AM_FUNC_MKTIME rather than my private copy, now that the official one
89742         is up to date.
89743         * m4/mktime.m4: Remove file.
89744
89745         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89746         * m4/uptime.m4: Likewise.
89747         * m4/uintmax_t.m4: Likewise.
89748
89749 1999-01-28  Jim Meyering  <meyering@ascend.com>
89750
89751         * m4/jm-macros.m4: Use jm_AFS.
89752         * m4/afs.m4: New file (from fileutils' configure.in).
89753
89754         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89755         * m4/chown.m4: Likewise.
89756         * m4/d-ino.m4: Likewise.
89757         * m4/d-type.m4: Likewise.
89758         * m4/fnmatch.m4: Likewise.
89759         * m4/getgroups.m4: Likewise.
89760         * m4/gettext.m4: Likewise.
89761         * m4/jm-mktime.m4: Likewise.
89762         * m4/jm-winsz2.m4: Likewise.
89763         * m4/lcmessage.m4: Likewise.
89764         * m4/ls-mntd-fs.m4: Likewise.
89765         * m4/malloc.m4: Likewise.
89766         * m4/memcmp.m4: Likewise.
89767         * m4/putenv.m4: Likewise.
89768         * m4/realloc.m4: Likewise.
89769         * m4/st_mtim.m4: Likewise.
89770         * m4/strftime.m4: Likewise.
89771
89772 1999-01-16  Jim Meyering  <meyering@ascend.com>
89773
89774         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89775         (ARGMATCH_DIE_DECL): Define.
89776
89777 1999-01-12  Jim Meyering  <meyering@ascend.com>
89778
89779         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89780         Reported by Lars Hecking.
89781
89782 1999-01-10  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89785         gross kludge.
89786         * m4/inttypes_h.m4: Likewise.
89787         * m4/lstat.m4: Likewise.
89788         * m4/malloc.m4: Likewise.
89789         * m4/readdir.m4: Likewise.
89790         * m4/realloc.m4: Likewise.
89791         * m4/st_dm_mode.m4: Likewise.
89792         * m4/stat.m4: Likewise.
89793         * m4/utimbuf.m4: Likewise.
89794         * m4/utimes.m4: Likewise.
89795
89796         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89797         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89798         comments in config.h.in are meaningful.
89799
89800         * m4/jm-macros.m4: Require autoconf-2.13 here.
89801
89802         * m4/regex.m4: By default, don't use the included regex.c on systems
89803         with glibc 2.  Suggestion from Uli Drepper.
89804
89805 1999-01-02  Jim Meyering  <meyering@ascend.com>
89806
89807         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89808
89809 1998-12-18  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89812         Based on a suggestion from Lars Hecking.
89813
89814 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89815
89816         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89817
89818 1998-11-16  Jim Meyering  <meyering@ascend.com>
89819
89820         * m4/lfs.m4: Double-quote the `uname...` expression.
89821
89822 1998-11-14  Jim Meyering  <meyering@ascend.com>
89823
89824         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89825         * m4/stat.m4: Likewise.
89826
89827 1998-11-03  Jim Meyering  <meyering@ascend.com>
89828
89829         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89830         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89831
89832 1998-10-18  Jim Meyering  <meyering@ascend.com>
89833
89834         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89835
89836 1998-10-17  Jim Meyering  <meyering@ascend.com>
89837
89838         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89839         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89840         calls for those previously hard-coded headers.  Instead, take a new
89841         parameter.
89842         (jm_CHECK_DECLARATIONS): Reflect interface change.
89843         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89844         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89845
89846         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89847
89848 1998-10-14  Jim Meyering  <meyering@ascend.com>
89849
89850         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89851         instead of "TZ=America/Vancouver".  From Paul Eggert.
89852
89853 1998-10-11  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89856         This adds a test for a recently added compatibility fix for mktime.c.
89857         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89858
89859 1998-09-27  Jim Meyering  <meyering@ascend.com>
89860
89861         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89862
89863         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89864         ../configure.in, including a change from Gordon Matzigkeit to allow
89865         cross-compiling for the Hurd.
89866
89867         * m4/glibc.m4: New file/macro to test for the GNU C Library
89868         versions 1 and 2.  From Gordon Matzigkeit.
89869         Indent.
89870
89871 1998-09-21  Jim Meyering  <meyering@ascend.com>
89872
89873         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89874
89875 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89876
89877         Port nanosecond-resolution times to UnixWare 2.1.2 and
89878         pedantic Solaris 2.6.
89879
89880         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89881         AC_STRUCT_ST_MTIM.
89882         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89883         Generate name of ns member, instead of just 1 or undef.
89884         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89885
89886 1998-08-15  Jim Meyering  <meyering@ascend.com>
89887
89888         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89889         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89890         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89891         instead of jm_TYPE_SSIZE_T.
89892
89893 1998-08-12  Jim Meyering  <meyering@ascend.com>
89894
89895         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89896
89897 1998-08-02  Jim Meyering  <meyering@ascend.com>
89898
89899         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89900         in acconfig.h manually.
89901
89902 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89903
89904         * m4/st_mtim.m4: New file.
89905
89906 1998-07-28  Jim Meyering  <meyering@ascend.com>
89907
89908         * m4/utimes.m4: Undef stat.
89909
89910 1998-07-25  Jim Meyering  <meyering@ascend.com>
89911
89912         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89913         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89914
89915 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89916
89917         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89918         uid and gid actually remain unchanged.
89919
89920 1998-07-07  Jim Meyering  <meyering@ascend.com>
89921
89922         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89923
89924 1998-07-04  Jim Meyering  <meyering@ascend.com>
89925
89926         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89927         to prove that this macro can be used in packages without regex.c.
89928
89929 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89930
89931         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89932         is to be used.
89933
89934 1998-07-03  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89937
89938         * m4/gettext.m4: New file -- from gettext-0.10.35.
89939         * m4/lcmessage.m4: Likewise.
89940         * m4/progtest.m4: Likewise.
89941
89942         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89943         * m4/jm-macros.m4: Require the new macro.
89944
89945 1998-06-29  Jim Meyering  <meyering@ascend.com>
89946
89947         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89948         for the definition of NGROUPS (used in a system header included
89949         by sys/mount.h).
89950
89951 1998-06-28  Jim Meyering  <meyering@ascend.com>
89952
89953         * m4/ls-mntd-fs.m4: New file.
89954         * m4/fstypename.m4: New file.
89955
89956         * m4/jm-macros.m4: Require the new macro.
89957         * m4/jm-glibc-io.m4: New file.
89958
89959 1998-05-19  Jim Meyering  <meyering@ascend.com>
89960
89961         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89962         * m4/lchown.m4: New file.
89963
89964         * m4/Makefile.am.in: New file.
89965         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89966
89967 1998-05-14  Jim Meyering  <meyering@ascend.com>
89968
89969         * m4/Makefile.am (EXTRA_DIST): Add them.
89970         * m4/jm-macros.m4: New file.
89971         * m4/utimbuf.m4: New file.
89972
89973 1998-05-12  Jim Meyering  <meyering@ascend.com>
89974
89975         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89976
89977 1998-05-11  Jim Meyering  <meyering@ascend.com>
89978
89979         * m4/isc-posix.m4: New file.
89980
89981 1998-05-10  Jim Meyering  <meyering@ascend.com>
89982
89983         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89984
89985 1998-05-09  Jim Meyering  <meyering@ascend.com>
89986
89987         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89988         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89989         with automake.
89990
89991         * m4/ssize_t.m4: New file.
89992         * m4/mktime.m4: Remove file -- the new automake has this now.
89993
89994 1998-04-26  Jim Meyering  <meyering@ascend.com>
89995
89996         * m4/assert.m4: New file.
89997         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89998
89999 1998-04-05  Jim Meyering  <meyering@ascend.com>
90000
90001         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90002         (jm_PREREQ): Use it here.
90003
90004 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90005
90006         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90007         in acconfig.h.
90008
90009 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90010
90011         * m4/prereq.m4: New file.
90012         * m4/error.m4: New file.
90013         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90014
90015 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90016
90017         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90018         cache-check for the same variable -- that defeated the purpose of
90019         the test; the test program was never run.  This was a problem only
90020         on systems with losing getline functions -- HP-UX 10.20 is one.
90021         Reported by Bjorn Helgaas.
90022
90023 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90024
90025         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90026
90027 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90028
90029         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90030
90031         * m4/const.m4: New file.  Use an initializer in this declaration
90032         typedef int charset[2]; const charset x;
90033         Reported by Bob Glickstein.
90034
90035 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90036
90037         * m4/chown.m4: Fix reversed types on -1 args to chown.
90038         From Kaveh Ghazi.
90039
90040 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90041
90042         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90043         Add lseek and memchr.
90044
90045         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90046         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90047         have a 20-character limit on names.
90048
90049 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90050
90051         * m4/inttypes_h.m4: New file.
90052         * m4/uintmax_t.m4: New file.
90053         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90054
90055
90056         -----
90057
90058         Local Variables:
90059         coding: utf-8
90060         End:
90061
90062         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90063
90064         Copying and distribution of this file, with or without
90065         modification, are permitted provided the copyright notice
90066         and this notice are preserved.